Skip to content

Commit

Permalink
lib/monads: coherent document structure
Browse files Browse the repository at this point in the history
Now that we're producing a proof document, theory order and
chapter/section nesting matters more.

Signed-off-by: Gerwin Klein <[email protected]>
  • Loading branch information
lsf37 committed Oct 12, 2023
1 parent 0873e0d commit 52462c4
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 8 deletions.
2 changes: 2 additions & 0 deletions lib/Monads/Fun_Pred_Syntax.thy
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
(* Syntax for using multi-argument functions as predicates, e.g "P and Q" where P and Q are
functions to bool, taking one or more parameters. *)

chapter \<open>Function Predicate Syntax\<close>

theory Fun_Pred_Syntax
imports Main
begin
Expand Down
17 changes: 9 additions & 8 deletions lib/Monads/ROOT
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,7 @@ session Monads (lib) = HOL +
trace

theories
WPBang
WPFix
Eisbach_WP
WPI
WPC
WP_Pre
WP
Datatype_Schematic
Fun_Pred_Syntax
Nondet_Monad
Nondet_Lemmas
Nondet_VCG
Expand All @@ -53,6 +46,14 @@ session Monads (lib) = HOL +
Strengthen
Nondet_Strengthen_Setup
Strengthen_Demo
WPBang
WPFix
Eisbach_WP
WPI
WPC
WP_Pre
WP
Datatype_Schematic

document_files
"root.tex"
2 changes: 2 additions & 0 deletions lib/Monads/Strengthen.thy
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* SPDX-License-Identifier: BSD-2-Clause
*)

section \<open>Manipulating Hoare Logic Assertions\<close>

theory Strengthen
imports Main
begin
Expand Down
2 changes: 2 additions & 0 deletions lib/Monads/reader_option/Reader_Option_Monad.thy
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
* Option monad while loop formalisation.
*)

chapter \<open>State Projections and Reader Option Monad\<close>

theory Reader_Option_Monad
imports
Monad_Lib
Expand Down
2 changes: 2 additions & 0 deletions lib/Monads/wp/WP.thy
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* SPDX-License-Identifier: BSD-2-Clause
*)

section \<open>Weakest Preconditions\<close>

theory WP
imports
WP_Pre
Expand Down
2 changes: 2 additions & 0 deletions lib/Monads/wp/WP_Pre.thy
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ imports
"HOL-Eisbach.Eisbach_Tools"
begin

section \<open>Creating Schematic Preconditions\<close>

ML \<open>
structure WP_Pre = struct
Expand Down

0 comments on commit 52462c4

Please sign in to comment.