aboutsummaryrefslogtreecommitdiff
path: root/src/CompleteEdwardsCurve/CompleteEdwardsCurveTheorems.v
diff options
context:
space:
mode:
authorGravatar Andres Erbsen <andreser@mit.edu>2016-02-12 16:47:41 -0500
committerGravatar Andres Erbsen <andreser@mit.edu>2016-02-12 16:47:41 -0500
commit1a51bcb7bc1811553dfa658a04bb6d0764825fd6 (patch)
treed3580bfa12e74b447b2ec9780c0f5d31195fc26a /src/CompleteEdwardsCurve/CompleteEdwardsCurveTheorems.v
parent34875f01c422e5665a73f076e7e17b9c7e1d5aa0 (diff)
document field issue re-appearing
Diffstat (limited to 'src/CompleteEdwardsCurve/CompleteEdwardsCurveTheorems.v')
-rw-r--r--src/CompleteEdwardsCurve/CompleteEdwardsCurveTheorems.v6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/CompleteEdwardsCurve/CompleteEdwardsCurveTheorems.v b/src/CompleteEdwardsCurve/CompleteEdwardsCurveTheorems.v
index 90f5907fd..b1be7dd63 100644
--- a/src/CompleteEdwardsCurve/CompleteEdwardsCurveTheorems.v
+++ b/src/CompleteEdwardsCurve/CompleteEdwardsCurveTheorems.v
@@ -24,19 +24,19 @@ Section CompleteEdwardsCurveTheorems.
Qed.
Hint Resolve point_eq.
- Ltac Edefn := unfold unifiedAdd, zero; intros;
+ Ltac Edefn := unfold unifiedAdd, unifiedAdd', zero; intros;
repeat match goal with
| [ p : point |- _ ] =>
let x := fresh "x" p in
let y := fresh "y" p in
let pf := fresh "pf" p in
destruct p as [[x y] pf]; unfold onCurve in pf
- | _ => eapply point_eq, f_equal2
+ | _ => eapply point_eq, (f_equal2 pair)
| _ => eapply point_eq
end.
Lemma twistedAddComm : forall A B, (A+B = B+A)%E.
Proof.
- Edefn; f_equal; field.
+ Edefn; apply f_equal2; ring.
Qed.
Lemma twistedAddAssoc : forall A B C, A+(B+C) = (A+B)+C.