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
309 B
Text
7 lines
309 B
Text
--
|
|
open sigma
|
|
inductive List (T : Type) : Type | nil {} : List | cons : T → List → List open List notation h :: t := cons h t notation `[` l:(foldr `,` (h t, cons h t) nil) `]` := l
|
|
check ∃ (A : Type) (x y : A), x = y
|
|
check ∃ (x : num), x = 0
|
|
check Σ (x : num), x = 10
|
|
check Σ (A : Type), List A
|