Skip to content

Commit

Permalink
do not unfold Zeq_bool
Browse files Browse the repository at this point in the history
  • Loading branch information
andres-erbsen authored and thery committed Nov 6, 2024
1 parent 6c225a2 commit 845c00c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/Coqprime/elliptic/GZnZ.v
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ intros; subst; auto.
Qed.

Theorem Zeq_iok: forall x y, x = y -> Zeq_bool x y = true.
intros x y H; subst.
unfold Zeq_bool; rewrite Z.compare_refl; auto.
intros x y H; subst. apply Zeq_is_eq_bool, eq_refl.
Qed.

Lemma modz: forall x,
Expand Down
6 changes: 1 addition & 5 deletions src/Coqprime/elliptic/ZEll.v
Original file line number Diff line number Diff line change
Expand Up @@ -607,11 +607,7 @@ Local Coercion Zpos : positive >-> Z.
Lemma is_zero_correct: forall x y,
if (x ?= y) then x = y else x <> y.
Proof.
intros x y; unfold Zeq_bool.
case (Zcompare_Eq_iff_eq x y).
case Z.compare; auto.
intros _ H1 H2; assert (H3:= H1 H2); discriminate.
intros _ H1 H2; assert (H3:= H1 H2); discriminate.
intros x y. apply Zeq_bool_if.
Qed.

Lemma inversible_is_not_k0: forall x, [x] -> x :%p <> 0.
Expand Down

0 comments on commit 845c00c

Please sign in to comment.