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*
18 lines
382 B
Text
18 lines
382 B
Text
--
|
||
open num
|
||
constant b : num
|
||
check b + b + b
|
||
check true ∧ false ∧ true
|
||
check (true ∧ false) ∧ true
|
||
check (2:num) + (2 + 2)
|
||
check (2 + 2) + (2:num)
|
||
check (1:num) = (2 + 3)*2
|
||
check (2:num) + 3 * 2 = 3 * 2 + 2
|
||
check (true ∨ false) = (true ∨ false) ∧ true
|
||
check true ∧ (false ∨ true)
|
||
constant A : Type
|
||
constant a : A
|
||
notation 1 := a
|
||
check a
|
||
open nat
|
||
check ℕ → ℕ
|