Skip to content

Commit c7dc1ec

Browse files
committed
fix documentation
1 parent 00518af commit c7dc1ec

2 files changed

Lines changed: 12 additions & 8 deletions

File tree

doc/tactics/simplify-if.rst

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ weakest precondition can grow exponentially:
1414

1515
.. ecproof::
1616
:title: Weakest precondition grows exponentially.
17+
1718
require import AllCore.
1819

1920
module M = {
@@ -41,14 +42,15 @@ weakest precondition can grow exponentially:
4142
smt().
4243
qed.
4344
45+
Since the tactic preserves semantics, it can be applied to all program logics.
46+
4447
.. admonition:: Syntax
45-
Since the tactic preserves semantics, it can be applied to all program logics.
4648

47-
`simplify if side? codepos?`
49+
`simplify if side? codepos?`
4850

49-
The `side` argument is required when the goal is an `equiv` judgment; it specifies
51+
The `side` argument is required when the goal is an `equiv` judgment; it specifies
5052
on which side the transformation should be applied.
51-
The `codepos` argument allows you to indicate which `if` statement the transformation
53+
The `codepos` argument allows you to indicate which `if` statement the transformation
5254
should target.
5355

5456
.. contents::
@@ -59,8 +61,10 @@ Variant: Transform at a given code possition
5961
------------------------------------------------------------------------
6062
The tactic applies only if the branches of the selected `if` statement consist solely of
6163
assignments.
62-
.. exproof::
63-
: title: Hoare logic example selecting where to apply the transformation
64+
65+
.. ecproof::
66+
:title: Hoare logic example selecting where to apply the transformation.
67+
6468
require import AllCore.
6569

6670
module M = {
@@ -104,7 +108,7 @@ This variant attempts to find a position where the transformation can be applied
104108
applies it. The process is repeated until no applicable position remains.
105109

106110
.. ecproof::
107-
:title: Hoare logic example
111+
:title: Hoare logic example.
108112

109113
require import AllCore.
110114

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
buildInputs =
108108
devPackages
109109
++ [ pkgs.git scope'.why3 packages.provers ]
110-
++ (with pkgs.python3Packages; [ pyyaml ]);
110+
++ (with pkgs.python3Packages; [ pyyaml pip ]);
111111
};
112112
});
113113
}

0 commit comments

Comments
 (0)