aboutsummaryrefslogtreecommitdiff
path: root/test-suite/bugs
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2020-09-08 10:37:24 +0200
committerPierre-Marie Pédrot2020-09-08 10:37:24 +0200
commitdde607ce50ddcf5f965d4ce222ca50f4d169a2f3 (patch)
tree7f1eb9b6d5af851e776b0a6eb7594eb8b8910c00 /test-suite/bugs
parentedb2cefe61d5f5b3230ab33842e61423ca02fbdb (diff)
parente5890700b4574ee9207b2daf6ec95707b9290275 (diff)
Merge PR #12954: Fixes a freshness issue with destruct/induction (see comment in #12944).
Ack-by: RalfJung Ack-by: jashug Reviewed-by: ppedrot
Diffstat (limited to 'test-suite/bugs')
-rw-r--r--test-suite/bugs/closed/bug_12944.v12
1 files changed, 12 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_12944.v b/test-suite/bugs/closed/bug_12944.v
new file mode 100644
index 0000000000..d6720d9906
--- /dev/null
+++ b/test-suite/bugs/closed/bug_12944.v
@@ -0,0 +1,12 @@
+
+Inductive vector A : nat -> Type :=
+ |nil : vector A 0
+ |cons : forall (h:A) (n:nat), vector A n -> vector A (S n).
+
+Global Set Mangle Names.
+
+Lemma vlookup_middle {A n} (v : vector A n) : True.
+Proof.
+ induction v as [|?? IHv].
+ all:exact I.
+Qed.