lean2/tests/lean/arith3.lean
Leonardo de Moura 08718e33dc refactor(builtin): only load the kernel and natural numbers by default
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-12-30 13:35:37 -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)