lean2/tests/lean/arith3.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

10 lines
No EOL
171 B
Text

Import Int.
Eval 8 mod 3
Eval 8 div 4
Eval 7 div 3
Eval 7 mod 3
Show -8 mod 3
SetOption lean::pp::notation false
Show -8 mod 3
Eval -8 mod 3
Eval (-8 div 3)*3 + (-8 mod 3)