In the standard library, we should use explicit universe variables for universe polymorphic definitions. Users that want to declare universe polymorphic definitions but do not want to provide universe level parameters should use Type _ or Type*
5 lines
336 B
Text
5 lines
336 B
Text
inductive [class] is_equiv (A B : Type*) (f : A → B) : Type*
|
|
definition inverse (A B : Type*) (f : A → B) [H : is_equiv A B f] := Type*
|
|
definition foo (A : Type*) (B : A → Type*) (h : A → A) (g : Π(a : A), B a → B a)
|
|
[H : Π(a : A), is_equiv _ _ (g a)] (x : A) : Type* :=
|
|
inverse (B (h x)) (B (h x)) (g (h x))
|