2014-01-05 20:05:08 +00:00
|
|
|
import Int.
|
|
|
|
check 10 + 20
|
|
|
|
check 10
|
|
|
|
check 10 - 20
|
|
|
|
eval 10 - 20
|
|
|
|
eval 15 + 10 - 20
|
|
|
|
check 15 + 10 - 20
|
|
|
|
variable x : Int
|
|
|
|
variable n : Nat
|
|
|
|
variable m : Nat
|
2014-01-05 19:03:35 +00:00
|
|
|
print n + m
|
|
|
|
print n + x + m
|
2014-01-09 16:33:52 +00:00
|
|
|
set_option lean::pp::coercion true
|
2014-01-05 19:03:35 +00:00
|
|
|
print n + x + m + 10
|
|
|
|
print x + n + m + 10
|
|
|
|
print n + m + 10 + x
|
2014-01-09 16:33:52 +00:00
|
|
|
set_option lean::pp::notation false
|
2014-01-05 19:03:35 +00:00
|
|
|
print n + m + 10 + x
|