From 9f0abdf5d9f3dde45758c8b9fe0fbe86eef01ee2 Mon Sep 17 00:00:00 2001 From: Amin Timany Date: Fri, 7 Jul 2017 15:41:41 +0200 Subject: Add Jason's example of fun-ext with cumulativity --- test-suite/success/cumulativity.v | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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. -- cgit v1.2.3