lean2/tests/lean/tst15.lean

21 lines
477 B
Text
Raw Normal View History

Variable x : (Type max U+1+2 M+1 M+2 3)
Check x
Variable f : (Type U+10) -> Type
Check f
Check f x
Check (Type 4)
Check x
Check (Type max U M)
print (Type U+3)
Check (Type U+3)
Check (Type U ⊔ M)
Check (Type U ⊔ M ⊔ 3)
print (Type U+1 ⊔ M ⊔ 3)
Check (Type U+1 ⊔ M ⊔ 3)
print (Type U) -> (Type 5)
Check (Type U) -> (Type 5)
Check (Type M ⊔ 3) -> (Type U+5)
print (Type M ⊔ 3) -> (Type U) -> (Type 5)
Check (Type M ⊔ 3) -> (Type U) -> (Type 5)
print (Type U)