aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorMaxime Dénès2017-05-02 16:30:54 +0200
committerMaxime Dénès2017-05-02 16:30:54 +0200
commit4bff930da2c029a66eaf5378e5abd2cc35554f8f (patch)
tree6c0a89614fd65c681a0f5c3105f7aa11914327c3 /test-suite
parent28accc370aa2f6fafbf50b69be7ae5dc06104212 (diff)
parent5c7163d2ee1412fa5af523fbcd275518fc61fbde (diff)
Merge PR#592: Fix bug #5501: Universe polymorphism breaks proof involving auto.
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/bugs/closed/5501.v21
1 files changed, 21 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/5501.v b/test-suite/bugs/closed/5501.v
new file mode 100644
index 0000000000..24739a3658
--- /dev/null
+++ b/test-suite/bugs/closed/5501.v
@@ -0,0 +1,21 @@
+Set Universe Polymorphism.
+
+Record Pred@{A} :=
+ { car :> Type@{A}
+ ; P : car -> Prop
+ }.
+
+Class All@{A} (A : Pred@{A}) : Type :=
+ { proof : forall (a : A), P A a
+ }.
+
+Record Pred_All@{A} : Type :=
+ { P' :> Pred@{A}
+ ; P'_All : All P'
+ }.
+
+Global Instance Pred_All_instance (A : Pred_All) : All A := P'_All A.
+
+Definition Pred_All_proof {A : Pred_All} (a : A) : P A a.
+Proof.
+solve[auto using proof].