2013-09-06 17:06:26 +00:00
|
|
|
|
Set: pp::colors
|
|
|
|
|
Set: pp::unicode
|
2014-01-01 21:52:25 +00:00
|
|
|
|
Imported 'Int'
|
2013-09-06 17:06:26 +00:00
|
|
|
|
let a : ℕ := 10, b : ℕ := 20, c : ℕ := 30, d : ℕ := 10 in a + b + c + d
|
|
|
|
|
let a : ℕ := 1000000000000000000,
|
|
|
|
|
b : ℕ := 20000000000000000000,
|
|
|
|
|
c : ℕ := 3000000000000000000,
|
|
|
|
|
d : ℕ := 4000000000000000000
|
|
|
|
|
in a + b + c + d
|
2013-09-09 05:54:22 +00:00
|
|
|
|
let a : ℕ := 10 in a + 1 : ℕ
|
2013-09-06 17:06:26 +00:00
|
|
|
|
30
|
|
|
|
|
30
|
2013-09-09 05:54:22 +00:00
|
|
|
|
let a : ℤ := 20 in a + 10 : ℤ
|
2013-09-06 17:06:26 +00:00
|
|
|
|
Set: lean::pp::coercion
|
2013-12-19 20:46:14 +00:00
|
|
|
|
let a : ℤ := nat_to_int 20 in a + nat_to_int 10
|