aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Andres Erbsen <andreser@mit.edu>2016-06-28 17:22:03 -0400
committerGravatar Andres Erbsen <andreser@mit.edu>2016-06-28 17:22:03 -0400
commit4ab9da1b82913f1ad798bcdacd8801f619ee2fdf (patch)
treec0871bfb3fee7e2d2141e08373fbd7a25d6f67a5
parent55c3fc171a557aadc4314bd1241293b3c2ec0d97 (diff)
CompleteEdwardsCurveTheorems: build on 8.4 after field_algebra cahnge
-rw-r--r--src/CompleteEdwardsCurve/CompleteEdwardsCurveTheorems.v6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/CompleteEdwardsCurve/CompleteEdwardsCurveTheorems.v b/src/CompleteEdwardsCurve/CompleteEdwardsCurveTheorems.v
index 0afc07c5d..43787dd70 100644
--- a/src/CompleteEdwardsCurve/CompleteEdwardsCurveTheorems.v
+++ b/src/CompleteEdwardsCurve/CompleteEdwardsCurveTheorems.v
@@ -155,12 +155,14 @@ Module E.
Proof.
intros ? eq_zero.
destruct square_a as [sqrt_a sqrt_a_id]; rewrite <- sqrt_a_id in eq_zero.
- destruct (eq_dec y 0); [apply nonzero_a|apply nonsquare_d with (sqrt_a/y)]; field_algebra.
+ destruct (eq_dec y 0); [apply nonzero_a|apply nonsquare_d with (sqrt_a/y)]; super_nsatz.
Qed.
Lemma solve_correct : forall x y, onCurve (x, y) <-> (x^2 = solve_for_x2 y).
Proof.
- unfold solve_for_x2; simpl; split; intros; field_algebra; auto using a_d_y2_nonzero.
+ unfold solve_for_x2; simpl; split; intros H; pose proof a_d_y2_nonzero y.
+ - super_nsatz.
+ - rewrite H; clear H. super_nsatz.
Qed.
End PointCompression.
End CompleteEdwardsCurveTheorems.