From 7488682db4cf259e0bb0c886e13301c32a2eeaa2 Mon Sep 17 00:00:00 2001 From: Jason Gross Date: Fri, 2 Jun 2017 00:01:35 -0400 Subject: Don't rely on autogenerated names This fixes all of the private-names warnings emitted by compiling fiat-crypto with https://github.com/coq/coq/pull/268 (minus the ones in coqprime, which I didn't touch). --- src/Algebra/Monoid.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Algebra/Monoid.v') diff --git a/src/Algebra/Monoid.v b/src/Algebra/Monoid.v index e5755b6f0..aa30865c3 100644 --- a/src/Algebra/Monoid.v +++ b/src/Algebra/Monoid.v @@ -12,7 +12,7 @@ Section Monoid. Lemma cancel_right z iz (Hinv:op z iz = id) : forall x y, x * z = y * z <-> x = y. Proof using Type*. - split; intros. + intros x y; split; intro. { assert (op (op x z) iz = op (op y z) iz) as Hcut by (rewrite_hyp ->!*; reflexivity). rewrite <-associative in Hcut. rewrite <-!associative, !Hinv, !right_identity in Hcut; exact Hcut. } @@ -22,7 +22,7 @@ Section Monoid. Lemma cancel_left z iz (Hinv:op iz z = id) : forall x y, z * x = z * y <-> x = y. Proof using Type*. - split; intros. + intros x y; split; intros. { assert (op iz (op z x) = op iz (op z y)) as Hcut by (rewrite_hyp ->!*; reflexivity). rewrite !associative, !Hinv, !left_identity in Hcut; exact Hcut. } { rewrite_hyp ->!*; reflexivity. } -- cgit v1.2.3