2014-01-05 20:05:08 +00:00
|
|
|
import Int.
|
2014-02-02 02:27:14 +00:00
|
|
|
check | -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
|
2014-02-02 02:27:14 +00:00
|
|
|
check |x + 1|
|
|
|
|
check |x + 1| > 0
|
2014-01-05 20:05:08 +00:00
|
|
|
variable y : Int
|
2014-02-02 02:27:14 +00:00
|
|
|
check |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
|