EasyCrypt's if on the first statement #
stmt_if -- EC's `if`: the first statements, conditionals (on both sides of `equiv`)
stmt_if{i} -- EC's `if{i}`: side `i`'s first statement, a conditional
stmt_rcondt{i} n -- EC's `rcondt{i} n`: statement `n` a conditional whose test holds there
stmt_rcondf{i} n -- EC's `rcondf{i} n`: … whose test fails there
EC's if works on the first statement of the code, the rest following each branch. Here the
conditional takes the rest into its branches (StmtWithHoles.Equiv.ifThenElse_seq, an
equivalence, for any judgment), then the judgment's rule for a conditional applies: hoareStmt_if,
phoareStmt_if (any relation to the bound), prhlStmt_if (the guard goal: the tests agree), or
prhlStmt_if_left/_right. Goals in EC's order: guard for the two-sided
rule (the tests agree), then then, else (the precondition with the test true, false).
A conditional followed by r: r in both branches.
EC's if on a Hoare triple whose statement is a conditional.
EC's if on a phoare judgment whose statement is a conditional (any relation ρ to the
bound).
rcondt, rcondf: a conditional whose test is known #
EC's rcondt n (rcondf n): the statement at position n is a conditional whose test holds
(fails) wherever the code before it ends, from the precondition (a Hoare triple on that code);
the conditional is replaced by its branch. On a loop (EC's rcondt/rcondf on a while), the
loop unrolled first (Stmt.Equiv.unroll): rcondt leaves its body before the loop, rcondf
nothing.
A conditional run where its test is b: the branch b selects.
The core of rcondt/rcondf: from states where p's runs end with the test b,
p; (if c then t else e); r runs as p; (branch b); r.
EC's rcondt/rcondf on a Hoare triple.
EC's rcondt/rcondf on a phoare judgment.
The first statement of s, a conditional followed by more code, with that code in its
branches; s itself if it is a conditional, or not one (a proof of s.Equiv s').
EC's if: see the module docstring.
Equations
- One or more equations did not get rendered due to their size.
Instances For
EC's rcondt{i} n (b = true) and rcondf{i} n (b = false).
Equations
- One or more equations did not get rendered due to their size.
Instances For
EC's rcondt{i} n: see the module docstring.
Equations
- One or more equations did not get rendered due to their size.
Instances For
EC's rcondf{i} n: see the module docstring.
Equations
- One or more equations did not get rendered due to their size.