lean2/tests/lean/arith7.lean
Leonardo de Moura 08718e33dc refactor(builtin): only load the kernel and natural numbers by default
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-12-30 13:35:37 -08:00

17 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|
Show |x + y| > x
SetOption pp::notation false
Show |x + y| > x
Show |x + y| + |y + x| > x