lean2/tests/lean/arith7.lean
Leonardo de Moura 9f08156a73 feat(frontends/lean/parser): combine Echo and Show commands into the 'print' command
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-05 11:03:35 -08:00

16 lines
No EOL
408 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
SetOption pp::notation false
print |x + y| > x
print |x + y| + |y + x| > x