lib/monads: rename OptionMonad to Reader_Option_Monad

Signed-off-by: Corey Lewis <corey.lewis@proofcraft.systems>
This commit is contained in:
Corey Lewis 2023-07-07 14:48:53 +10:00 committed by Corey Lewis
parent c9dc6d2850
commit 26f41e1764
5 changed files with 11 additions and 11 deletions

View File

@ -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/

View File

@ -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

View File

@ -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

View File

@ -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 *)

View File

@ -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