lean2/tests/lean/arith2.lean
Leonardo de Moura 4ba097a141 feat(frontends/lean): use lowercase commands, replace 'endscope' and 'endnamespace' with 'end'
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-05 13:06:36 -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