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*
11 lines
192 B
Text
11 lines
192 B
Text
namespace list
|
|
inductive list (A : Type*) : Type*
|
|
| nil : list
|
|
| cons : A → list → list
|
|
|
|
check list.{1}
|
|
check list.cons.{1}
|
|
check list.rec.{1 1}
|
|
end list
|
|
|
|
check list.list.{1}
|