aboutsummaryrefslogtreecommitdiff
path: root/src/Util/HList.v
diff options
context:
space:
mode:
authorGravatar Jason Gross <jgross@mit.edu>2017-06-02 00:01:35 -0400
committerGravatar Jason Gross <jasongross9@gmail.com>2017-06-05 18:47:35 -0400
commit7488682db4cf259e0bb0c886e13301c32a2eeaa2 (patch)
tree9baf80699c9f00b01d3180504d58351b6ecc0f33 /src/Util/HList.v
parentc4a0d1fdde22dbd2faaa1753e973ee9602076ee8 (diff)
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).
Diffstat (limited to 'src/Util/HList.v')
-rw-r--r--src/Util/HList.v7
1 files changed, 4 insertions, 3 deletions
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.