lib/monads: rename OptionMonad to Reader_Option_Monad
Signed-off-by: Corey Lewis <corey.lewis@proofcraft.systems>
This commit is contained in:
parent
c9dc6d2850
commit
26f41e1764
|
@ -34,6 +34,6 @@ in weakest-precondition style.
|
||||||
|
|
||||||
[l4v]: https://github.com/seL4/l4v/
|
[l4v]: https://github.com/seL4/l4v/
|
||||||
[nondet]: ./NonDetMonad.thy
|
[nondet]: ./NonDetMonad.thy
|
||||||
[option]: ./OptionMonad.thy
|
[option]: ./Reader_Option_Monad.thy
|
||||||
[trace]: ./TraceMonad.thy
|
[trace]: ./TraceMonad.thy
|
||||||
[AutoCorres]: ../../tools/autocorres/
|
[AutoCorres]: ../../tools/autocorres/
|
|
@ -20,15 +20,15 @@ session Monads (lib) = HOL +
|
||||||
theories
|
theories
|
||||||
WhileLoopRules
|
WhileLoopRules
|
||||||
TraceMonad
|
TraceMonad
|
||||||
OptionMonadND
|
Reader_Option_ND
|
||||||
OptionMonadWP
|
Reader_Option_VCG
|
||||||
Strengthen_Demo
|
Strengthen_Demo
|
||||||
TraceMonadLemmas
|
TraceMonadLemmas
|
||||||
Datatype_Schematic
|
Datatype_Schematic
|
||||||
WhileLoopRulesCompleteness
|
WhileLoopRulesCompleteness
|
||||||
Strengthen
|
Strengthen
|
||||||
Strengthen_Setup
|
Strengthen_Setup
|
||||||
OptionMonad
|
Reader_Option_Monad
|
||||||
TraceMonadVCG
|
TraceMonadVCG
|
||||||
In_Monad
|
In_Monad
|
||||||
NonDetMonadVCG
|
NonDetMonadVCG
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
* Option monad while loop formalisation.
|
* Option monad while loop formalisation.
|
||||||
*)
|
*)
|
||||||
|
|
||||||
theory OptionMonad (* FIXME: this is really a Reader_Option_Monad *)
|
theory Reader_Option_Monad
|
||||||
imports
|
imports
|
||||||
Monad_Lib
|
Monad_Lib
|
||||||
Fun_Pred_Syntax
|
Fun_Pred_Syntax
|
|
@ -4,12 +4,12 @@
|
||||||
* SPDX-License-Identifier: BSD-2-Clause
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
*)
|
*)
|
||||||
|
|
||||||
(* Option monad syntax plus the connection between the option monad and the nondet monad *)
|
(* Reader option monad syntax plus the connection between the reader option monad and the nondet monad *)
|
||||||
|
|
||||||
theory OptionMonadND
|
theory Reader_Option_ND
|
||||||
imports
|
imports
|
||||||
NonDetMonadLemmas
|
NonDetMonadLemmas
|
||||||
OptionMonad
|
Reader_Option_Monad
|
||||||
begin
|
begin
|
||||||
|
|
||||||
(* FIXME: remove this syntax, standardise on do {..} instead *)
|
(* FIXME: remove this syntax, standardise on do {..} instead *)
|
|
@ -5,14 +5,14 @@
|
||||||
*)
|
*)
|
||||||
|
|
||||||
(*
|
(*
|
||||||
Hoare reasoning and WP (weakest-precondition) generator rules for the option monad.
|
Hoare reasoning and WP (weakest-precondition) generator rules for the reader option monad.
|
||||||
|
|
||||||
This list is almost certainly incomplete; add rules here as they are needed.
|
This list is almost certainly incomplete; add rules here as they are needed.
|
||||||
*)
|
*)
|
||||||
|
|
||||||
theory OptionMonadWP
|
theory Reader_Option_VCG
|
||||||
imports
|
imports
|
||||||
OptionMonadND
|
Reader_Option_ND
|
||||||
WP
|
WP
|
||||||
No_Fail
|
No_Fail
|
||||||
begin
|
begin
|
Loading…
Reference in New Issue