8c956280d9
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
18 lines
335 B
Text
18 lines
335 B
Text
import Int.
|
|
check 10 + 20
|
|
check 10
|
|
check 10 - 20
|
|
eval 10 - 20
|
|
eval 15 + 10 - 20
|
|
check 15 + 10 - 20
|
|
variable x : Int
|
|
variable n : Nat
|
|
variable m : Nat
|
|
print n + m
|
|
print n + x + m
|
|
set::option lean::pp::coercion true
|
|
print n + x + m + 10
|
|
print x + n + m + 10
|
|
print n + m + 10 + x
|
|
set::option lean::pp::notation false
|
|
print n + m + 10 + x
|