2014-01-01 21:52:25 +00:00
|
|
|
Import Int.
|
2013-09-02 19:24:29 +00:00
|
|
|
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
|
2013-12-19 05:18:45 +00:00
|
|
|
SetOption 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
|
2013-12-19 05:18:45 +00:00
|
|
|
SetOption lean::pp::notation false
|
2014-01-05 19:03:35 +00:00
|
|
|
print n + m + 10 + x
|