Skip to content

Commit 0e44116

Browse files
committed
fix last two rewrites under Prs in stdlib
1 parent ecfe087 commit 0e44116

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

theories/crypto/AdvAbsVal.ec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ lemma abs_val (P:real -> bool):
3838
proof.
3939
move=> HP &m A Hl.
4040
case (Pr[A.main() @ &m : res] <= 1%r / 2%r)=> Hle.
41-
+ by move: (HP &m (Neg_main(A))); rewrite (Neg_A_Pr_minus A &m) /#.
41+
+ move: (HP &m (Neg_main(A))); rewrite (Neg_A_Pr_minus A &m); 1:auto; smt().
4242
by move: (HP &m A)=> /#.
4343
qed.

theories/modules/EventPartitioning.ec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@ abstract theory FPredPartitioning.
103103
Pr[M.f(i) @ &m: E i (glob M) res /\ phi i (glob M) res = a]) (to_seq P)
104104
+ Pr[M.f(i) @ &m: E i (glob M) res /\ !P (phi i (glob M) res)].
105105
proof.
106-
move=> /mem_to_seq <-.
106+
move=> /mem_to_seq H.
107+
have->:Pr[M.f(i) @ &m : E i (glob M){hr} res{hr} /\ ! P (phi i (glob M){hr} res{hr})]=
108+
Pr[M.f(i) @ &m : E i (glob M){hr} res{hr} /\ ! (phi i (glob M){hr} res{hr}) \in to_seq P].
109+
- by smt().
107110
apply/(@list_partitioning M i E phi (to_seq P) &m)/uniq_to_seq.
108111
qed.
109112
end section.

0 commit comments

Comments
 (0)