lean2/tests/lean/arith7.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

16 lines
No EOL
410 B
Text

import Int.
eval | -2 |
-- Unfortunately, we can't write |-2|, because |- is considered a single token.
-- It is not wise to change that since the symbol |- can be used as the notation for
-- entailment relation in Lean.
eval |3|
definition x : Int := -3
eval |x + 1|
eval |x + 1| > 0
variable y : Int
eval |x + y|
print |x + y| > x
set::option pp::notation false
print |x + y| > x
print |x + y| + |y + x| > x