lean2/tests/lean/arith1.lean
Leonardo de Moura 8c956280d9 chore(frontends/lean): rename setoption and setopaque commands to set::option and set::opaque
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-06 11:41:03 -08:00

18 lines
335 B
Text

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
print n + m
print n + x + m
set::option lean::pp::coercion true
print n + x + m + 10
print x + n + m + 10
print n + m + 10 + x
set::option lean::pp::notation false
print n + m + 10 + x