aboutsummaryrefslogtreecommitdiff
path: root/mathcomp/ssrtest
diff options
context:
space:
mode:
authorEnrico Tassi2015-12-03 09:59:11 +0100
committerEnrico Tassi2015-12-03 09:59:50 +0100
commitc570d3d8c64d2202b00de7583924515ac1ab54e2 (patch)
treec676d087e09249a4ff9f4d0b0e414a30b99454bf /mathcomp/ssrtest
parent4d0f111956307c5a134db701fe27f01f8ac50e9d (diff)
fix: autogen + abstract variables clash
Diffstat (limited to 'mathcomp/ssrtest')
-rw-r--r--mathcomp/ssrtest/abstract_var2.v16
1 files changed, 16 insertions, 0 deletions
diff --git a/mathcomp/ssrtest/abstract_var2.v b/mathcomp/ssrtest/abstract_var2.v
new file mode 100644
index 0000000..5372c5c
--- /dev/null
+++ b/mathcomp/ssrtest/abstract_var2.v
@@ -0,0 +1,16 @@
+Require Import ssreflect.
+
+Set Implicit Arguments.
+
+Axiom P : nat -> nat -> Prop.
+
+Axiom tr :
+ forall x y z, P x y -> P y z -> P x z.
+
+Lemma test a b c : P a c -> P a b.
+Proof.
+intro H.
+Fail have [: s1 s2] H1 : P a b := @tr _ _ _ s1 s2.
+have [: w s1 s2] H1 : P a b := @tr _ w _ s1 s2.
+Abort.
+