lean2/tests/lean/arith1.lean
Leonardo de Moura 4ba097a141 feat(frontends/lean): use lowercase commands, replace 'endscope' and 'endnamespace' with 'end'
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-05 13:06:36 -08:00

18 lines
331 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
setoption lean::pp::coercion true
print n + x + m + 10
print x + n + m + 10
print n + m + 10 + x
setoption lean::pp::notation false
print n + m + 10 + x