2013-12-30 21:35:37 +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
|
|
|
|
Show n + m
|
|
|
|
Show n + x + m
|
2013-12-19 05:18:45 +00:00
|
|
|
SetOption lean::pp::coercion true
|
2013-09-02 19:24:29 +00:00
|
|
|
Show n + x + m + 10
|
|
|
|
Show x + n + m + 10
|
|
|
|
Show n + m + 10 + x
|
2013-12-19 05:18:45 +00:00
|
|
|
SetOption lean::pp::notation false
|
2013-09-02 19:24:29 +00:00
|
|
|
Show n + m + 10 + x
|