aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-suite/bugs
diff options
context:
space:
mode:
authorGravatar Matthieu Sozeau <matthieu.sozeau@inria.fr>2018-06-04 14:37:27 +0200
committerGravatar Matthieu Sozeau <matthieu.sozeau@inria.fr>2018-06-04 14:37:27 +0200
commit39cde6238489fafd706dfe7709052df0089ab3d5 (patch)
tree987c8f0f0cf74c635f234d400bfe7827629ad92d /test-suite/bugs
parentf1050affbd0009ea12794bd193184c80f938e1e6 (diff)
parent036a8660f11178a2523982d109ba11b99c062a3d (diff)
Merge PR #7189: Fix #5539: algebraic universe produced by cases.
Diffstat (limited to 'test-suite/bugs')
-rw-r--r--test-suite/bugs/closed/5539.v15
1 files changed, 15 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/5539.v b/test-suite/bugs/closed/5539.v
new file mode 100644
index 000000000..48e5568e9
--- /dev/null
+++ b/test-suite/bugs/closed/5539.v
@@ -0,0 +1,15 @@
+Set Universe Polymorphism.
+
+Inductive D : nat -> Type :=
+| DO : D O
+| DS n : D n -> D (S n).
+
+Fixpoint follow (n : nat) : D n -> Prop :=
+ match n with
+ | O => fun d => let 'DO := d in True
+ | S n' => fun d => (let 'DS _ d' := d in fun f => f d') (follow n')
+ end.
+
+Definition step (n : nat) (d : D n) (H : follow n d) :
+ follow (S n) (DS n d)
+ := H.