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
300 B
Text
5 lines
300 B
Text
foo : Π (A : Type u_1) [H : inhabited A], A → A
|
||
foo' : Π {A : Type u_1} [H : inhabited A] {x : A}, A
|
||
foo ℕ 10 : ℕ
|
||
definition test : ∀ {A : Type u} [H : inhabited A], @foo' ℕ nat.is_inhabited (5 + 5) = 10 :=
|
||
λ {A : Type u} [H : inhabited A], @rfl ℕ (@foo' ℕ nat.is_inhabited (5 + 5))
|