2014-01-01 21:52:25 +00:00
|
|
|
Import Int.
|
2013-09-04 03:39:54 +00:00
|
|
|
Eval | -2 |
|
2014-01-05 16:52:46 +00:00
|
|
|
|
|
|
|
-- 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.
|
2013-09-04 03:39:54 +00:00
|
|
|
Eval |3|
|
|
|
|
Definition x : Int := -3
|
|
|
|
Eval |x + 1|
|
|
|
|
Eval |x + 1| > 0
|
|
|
|
Variable y : Int
|
|
|
|
Eval |x + y|
|
2014-01-05 19:03:35 +00:00
|
|
|
print |x + y| > x
|
2013-12-19 05:18:45 +00:00
|
|
|
SetOption pp::notation false
|
2014-01-05 19:03:35 +00:00
|
|
|
print |x + y| > x
|
|
|
|
print |x + y| + |y + x| > x
|