aboutsummaryrefslogtreecommitdiff
path: root/src/Algebra.v
diff options
context:
space:
mode:
authorGravatar jadep <jade.philipoom@gmail.com>2016-08-22 15:45:14 -0400
committerGravatar jadep <jade.philipoom@gmail.com>2016-08-22 15:45:14 -0400
commit090da932fadc5970d3d510ec789960d57ef2330b (patch)
treee5b61e50de4c55030868fbc47a8b3a2ba7dcdd17 /src/Algebra.v
parent88e87ee88c58f5fcf4cba3f990453eb36cabc110 (diff)
fast-inverse rebase
Diffstat (limited to 'src/Algebra.v')
-rw-r--r--src/Algebra.v8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/Algebra.v b/src/Algebra.v
index 5601b9d28..adbf5b86b 100644
--- a/src/Algebra.v
+++ b/src/Algebra.v
@@ -365,14 +365,12 @@ Module ScalarMult.
Global Instance Proper_scalarmult_ref : Proper (Logic.eq==>eq==>eq) scalarmult_ref.
Proof.
- repeat intro; subst;
- match goal with [n:nat |- _ ] =>
- solve [induction n; simpl scalarmult_ref; rewrite_hyp ?*; reflexivity]
- end.
+ repeat intro; subst.
+ match goal with [n:nat |- _ ] => induction n; simpl @scalarmult_ref; [reflexivity|] end.
+ repeat match goal with [H:_ |- _ ] => rewrite H end; reflexivity.
Qed.
Lemma scalarmult_ext : forall n P, mul n P = scalarmult_ref n P.
- Proof.
induction n; simpl @scalarmult_ref; intros; rewrite <-?IHn; (apply scalarmult_0_l || apply scalarmult_S_l).
Qed.