Skip to content

Commit d041d90

Browse files
committed
trying to fix smt instability
1 parent 0aaab06 commit d041d90

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

theories/algebra/ZModPCentered.ec

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,12 @@ lemma rg_to_crepr x :
7171
proof. smt(ge2_p rg_asint). qed.
7272
7373
lemma to_crepr_zmodcgr x : zmodcgr x (to_crepr x).
74-
proof. smt(ge2_p). qed.
74+
proof.
75+
rewrite /to_crepr /=; case ((p + 1) %/ 2 <= x %% p) => _.
76+
- have -> : x %% p - p = x %% p + (-1) * p by ring.
77+
by rewrite /zmodcgr modzMDr modz_mod.
78+
- by rewrite /zmodcgr modz_mod.
79+
qed.
7580
7681
lemma to_crepr_id x :
7782
(p + 1) %/ 2 - p <= x < (p + 1) %/ 2 => to_crepr x = x.

0 commit comments

Comments
 (0)