2014-01-05 20:05:08 +00:00
|
|
|
import Int.
|
|
|
|
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.
|
2014-01-05 20:05:08 +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
|
2014-01-09 16:33:52 +00:00
|
|
|
set_option pp::notation false
|
2014-01-05 19:03:35 +00:00
|
|
|
print |x + y| > x
|
|
|
|
print |x + y| + |y + x| > x
|