aboutsummaryrefslogtreecommitdiff
path: root/src/LegacyArithmetic/InterfaceProofs.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/LegacyArithmetic/InterfaceProofs.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/LegacyArithmetic/InterfaceProofs.v')
-rw-r--r--src/LegacyArithmetic/InterfaceProofs.v5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/LegacyArithmetic/InterfaceProofs.v b/src/LegacyArithmetic/InterfaceProofs.v
index 9ef97fa55..33917e00d 100644
--- a/src/LegacyArithmetic/InterfaceProofs.v
+++ b/src/LegacyArithmetic/InterfaceProofs.v
@@ -99,8 +99,9 @@ Global Instance decode_proj n W (dec : W -> Z)
: @decode n W {| decode := dec |} =~> dec.
Proof. reflexivity. Qed.
-Global Instance decode_if_bool n W (decode : decoder n W) (b : bool) x y
- : decode (if b then x else y)
+Global Instance decode_if_bool n W (decode : decoder n W)
+ : forall (b : bool) x y,
+ decode (if b then x else y)
=~> if b then decode x else decode y.
Proof. destruct b; reflexivity. Qed.