lean2/tests/lean/arith2.lean
Leonardo de Moura 7726ccad28 chore(builtin): rename nat, int and real modules to Nat, Int and Real.
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-01 13:52:25 -08:00

16 lines
No EOL
252 B
Text

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