lean2/tests/lean/arith2.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
261 B
Text

Import Int.
Import Real.
print 1/2
Eval 4/6
print 3 div 2
Variable x : Real
Variable i : Int
Variable n : Nat
print x + i + 1 + n
SetOption lean::pp::coercion true
print x + i + 1 + n
print x * i + x
print x - i + x - x >= 0
print x < x
print x <= x
print x > x