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/Util/HList.v | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/Util/HList.v') diff --git a/src/Util/HList.v b/src/Util/HList.v index 2a135c75c..d2ea841d3 100644 --- a/src/Util/HList.v +++ b/src/Util/HList.v @@ -142,13 +142,14 @@ Proof. destruct n; [ simpl; tauto | apply fold_right_and_True_hlist' ]. Qed. -Global Instance mapt_Proper {n A F B} - : Proper +Global Instance mapt_Proper + : forall {n A F B}, + Proper ((forall_relation (fun x => pointwise_relation _ Logic.eq)) ==> forall_relation (fun ts => Logic.eq ==> Logic.eq)) (@mapt n A F B). Proof. - unfold forall_relation, pointwise_relation, respectful. + intro n; unfold forall_relation, pointwise_relation, respectful. repeat intro; subst; destruct n as [|n]; [ reflexivity | ]. induction n; simpl in *; congruence. Qed. -- cgit v1.2.3