Skip to content

Commit 23cf445

Browse files
oskgostrub
authored andcommitted
stop hardcoding the bound memory in program logic statements
1 parent cda7fdf commit 23cf445

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+4349
-3049
lines changed

examples/FundamentalLemma.ec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ apply (ler_trans (max Pr[G1.main() @ &m: A (glob Mem) res /\ F (glob Mem) res]
4444
Pr[G2.main() @ &m: B (glob Mem) res /\ F (glob Mem) res])).
4545
+ smt(ge0_mu).
4646
have -> //: forall (x y x' y':real), x <= x' => y <= y' => max x y <= max x' y' by smt().
47-
+ by rewrite -(Pr_split G1 Mem F A &m) andbC; smt(ge0_mu).
48-
by rewrite -(Pr_split G2 Mem F B &m) andbC; smt(ge0_mu).
47+
+ by rewrite -(Pr_split G1 Mem F A &m); smt(ge0_mu).
48+
by rewrite -(Pr_split G2 Mem F B &m); smt(ge0_mu).
4949
qed.

examples/hashed_elgamal_generic.ec

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,12 @@ section.
260260
by rewrite dt_ll DBool.dbool_ll.
261261
+ by move=> H H_o_ll; proc; auto; call (guess_ll H _)=> //; auto=> />.
262262
+ by move=> _; apply: dbits_ll.
263-
by rewrite !eqT.
263+
apply iffLR.
264+
congr; 2:congr.
265+
+ byequiv (: ={glob OnBound.G0(D, LRO), arg} ==>
266+
={glob OnBound.G0(D, LRO), res}) => />; 1:sim.
267+
byequiv (: ={glob OnBound.G1(D, LRO), arg} ==>
268+
={glob OnBound.G1(D, LRO), res}) => />; 1:sim.
264269
qed.
265270

266271
local module G1' = {

0 commit comments

Comments
 (0)