aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmin Timany2017-07-07 15:41:41 +0200
committerAmin Timany2017-07-31 18:05:54 +0200
commit9f0abdf5d9f3dde45758c8b9fe0fbe86eef01ee2 (patch)
treed5d6bf15e72f0c41789fa2071d86c6fc2d724cde
parent7f78827b3f8583a7c0e79a78266bc01a411ed818 (diff)
Add Jason's example of fun-ext with cumulativity
-rw-r--r--test-suite/success/cumulativity.v17
1 files changed, 17 insertions, 0 deletions
diff --git a/test-suite/success/cumulativity.v b/test-suite/success/cumulativity.v
index 351d472a11..8854435cf3 100644
--- a/test-suite/success/cumulativity.v
+++ b/test-suite/success/cumulativity.v
@@ -81,3 +81,20 @@ Section NCListLift.
Fail Definition LiftNCL {A} : NCList@{i} A -> NCList@{j} A := fun x => x.
End NCListLift.
+
+Inductive eq@{i} {A : Type@{i}} (x : A) : A -> Type@{i} := eq_refl : eq x x.
+
+Definition funext_type@{a b e} (A : Type@{a}) (B : A -> Type@{b})
+ := forall f g : (forall a, B a),
+ (forall x, eq@{e} (f x) (g x))
+ -> eq@{e} f g.
+
+Section down.
+ Universes a b e e'.
+ Constraint e' < e.
+ Lemma funext_down {A B}
+ : @funext_type@{a b e} A B -> @funext_type@{a b e'} A B.
+ Proof.
+ intros H f g Hfg. exact (H f g Hfg).
+ Defined.
+End down.