aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jadep <jade.philipoom@gmail.com>2016-10-03 18:55:33 -0400
committerGravatar jadep <jade.philipoom@gmail.com>2016-10-03 18:55:33 -0400
commit1283ca66b0280250071696377a4ca19bc809beea (patch)
treeab971777167adca4bbe66a8cfb56c4b170ceb8b0
parent0b22eb729a738daaa9837acd3f0643aed642d873 (diff)
A couple hotfixes; recent commits somehow broke things
-rw-r--r--src/Spec/PointEncoding.v8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Spec/PointEncoding.v b/src/Spec/PointEncoding.v
index b63d9fd6b..6c6e3fa9d 100644
--- a/src/Spec/PointEncoding.v
+++ b/src/Spec/PointEncoding.v
@@ -8,6 +8,7 @@ Require Import Crypto.Tactics.VerdiTactics.
Require Import Crypto.Util.Option.
Require Import Crypto.Util.NatUtil.
Require Import Crypto.Util.WordUtil.
+Require Import Crypto.Util.FixCoqMistakes.
Require Crypto.Encoding.PointEncodingPre.
(* This file should fill in the following context variables from EdDSARepChange.v
@@ -310,10 +311,11 @@ Section PointEncoding.
{
destruct (sign_bit); rewrite ?Bool.andb_true_r, ?Bool.andb_false_r; auto.
cbv [PointEncodingPre.F_eqb].
+ pose proof (@Algebra.Ring.homomorphism_is_homomorphism _ _ _ _ _ _ _ _ _ _ _ phi_homomorphism).
+ pose proof (@Algebra.Group.homomorphism_id _ _ _ _ _ _ _ _ _ _ _ _ _ H).
match goal with |- (if ?x then _ else _) = _ => destruct x as [keq | keq] end;
- rewrite phi_solve_for_x2, <-phi_sqrt, <-Algebra.Group.homomorphism_id,
- phi_bijective in keq; cbv [F.zero]; break_if; try congruence; reflexivity.
-
+ rewrite phi_solve_for_x2, <-phi_sqrt, <-H0 in keq;
+ rewrite phi_bijective in keq; cbv [F.zero]; break_if; try congruence; reflexivity.
}
rewrite H.
break_if; try reflexivity.