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