lean2/tests/lean/arith2.lean
Leonardo de Moura 8c956280d9 chore(frontends/lean): rename setoption and setopaque commands to set::option and set::opaque
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-06 11:41:03 -08:00

16 lines
No EOL
263 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
set::option 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