aboutsummaryrefslogtreecommitdiff
path: root/src/CompleteEdwardsCurve
diff options
context:
space:
mode:
authorGravatar Jason Gross <jgross@mit.edu>2016-11-21 14:39:03 -0500
committerGravatar Jason Gross <jgross@mit.edu>2016-11-21 14:39:03 -0500
commit41eff23e5118b2ff74651935f167db3b2c85e5f0 (patch)
tree8ed45a143bea8322b8520b98b7d02aba5972e7af /src/CompleteEdwardsCurve
parentfb1000a384f041a96d45bf61d3b471435cf45fb5 (diff)
Fix for Coq 8.4
Diffstat (limited to 'src/CompleteEdwardsCurve')
-rw-r--r--src/CompleteEdwardsCurve/ExtendedCoordinates.v14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/CompleteEdwardsCurve/ExtendedCoordinates.v b/src/CompleteEdwardsCurve/ExtendedCoordinates.v
index 0b84dc4d1..ec4e89a3b 100644
--- a/src/CompleteEdwardsCurve/ExtendedCoordinates.v
+++ b/src/CompleteEdwardsCurve/ExtendedCoordinates.v
@@ -216,15 +216,11 @@ Module Extended.
rewrite <- to_twisted_add_unopt.
{ pose proof (add_coordinates_opt_correct (coordinates P) (coordinates Q)).
cbv [add add_unopt].
- match goal with
- | [ |- context[exist _ ?x ?p] ]
- => generalize p; generalize dependent x
- end.
- match goal with
- | [ |- context[exist ?P ?x (?p ?k)] ]
- => generalize (p k);
- let H := fresh in intro H; change (P x) in H; revert H; generalize x
- end.
+ do 2 match goal with
+ | [ |- context[exist _ ?x ?p] ]
+ => first [ is_var p; fail 1
+ | generalize p; generalize dependent x ]
+ end.
clear add_coordinates_opt add_coordinates_opt_correct.
cbv [to_twisted coordinates proj1_sig E.eq E.coordinates fst snd] in *.
repeat match goal with