EasyCrypt's inline specifications: call (: P ==> Q), byphoare (: P ==> _) #
EC states the judgment about a callee, or the one a probability is read from, where it is used:
phoare_call (: P ==> Q) -- EC's `call (: P ==> Q)` in a `phoare`
phoare_call (: P ==> Q) ≤ r -- … with the callee's own bound
hoare_call (: P ==> Q) -- EC's `call (: P ==> Q)` in a `hoare`
byphoare (: P ==> _) -- EC's `byphoare (: P ==> _)`
P and Q are written as in phoare[ M : P ==> Q ] (Syntax/PHoareSyntax.lean): P reads
the callee's parameters and the globals, Q its result res and the globals. The judgment
about the callee becomes the first goal, tagged spec (EC's order); the code before the call
is the second. In a phoare the callee's relation is the goal's, and its bound the goal's, which
must then not depend on the state, or the one written after the parenthesis.
hoare_call (: inv) (Logic/FelTactic.lean, an invariant of an abstract module's oracles) is
the form without ==>.
The procedure argument p of the call rule rule, once its conclusion is unified with ty
(a judgment about a statement ending in a call). The state is left as it was.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The term stx (a judgment, phoare[ M : P ==> Q ] ρ r or hoare[ M : P ==> Q ])
elaborated, its errors thrown (not logged and replaced by sorry).
Equations
- One or more equations did not get rendered due to their size.
Instances For
A fresh goal of type ty with the tag tag.
Equations
Instances For
EC's call (: P ==> Q) in a phoare judgment, see the module docstring.
Equations
- One or more equations did not get rendered due to their size.
Instances For
EC's call (: P ==> Q) in a Hoare triple, see the module docstring.
Equations
- One or more equations did not get rendered due to their size.
Instances For
EC's byphoare (: P ==> _): byphoare (Logic/PrTactics.lean) with the precondition
P of the judgment, written as in phoare[ M : P ==> Q ], instead of arg = a ∧ glob = m; the
side condition P at the run's arguments and memory is tried as byphoare's are. P may be
_ (EC's byphoare (: _ ==> _)): True.
Equations
- One or more equations did not get rendered due to their size.