2014-10-31 15:25:36 +00:00
|
|
|
|
import data.nat.basic
|
|
|
|
|
open nat
|
|
|
|
|
|
|
|
|
|
theorem zero_left (n : ℕ) : 0 + n = n :=
|
|
|
|
|
nat.induction_on n
|
2014-12-24 02:14:19 +00:00
|
|
|
|
!add_zero
|
2014-10-31 15:25:36 +00:00
|
|
|
|
(take m IH, show 0 + succ m = succ m, from
|
|
|
|
|
calc
|
2014-12-23 22:34:16 +00:00
|
|
|
|
0 + succ m = succ (0 + m) : add_succ
|
2014-10-31 15:25:36 +00:00
|
|
|
|
... = succ m : IH)
|