2014-10-31 08:25:36 -07:00
|
|
|
|
import data.nat.basic
|
|
|
|
|
open nat
|
|
|
|
|
|
|
|
|
|
theorem zero_left (n : ℕ) : 0 + n = n :=
|
|
|
|
|
nat.induction_on n
|
2015-10-14 12:27:09 -07:00
|
|
|
|
!nat.add_zero
|
2014-10-31 08:25:36 -07:00
|
|
|
|
(take m IH, show 0 + succ m = succ m, from
|
|
|
|
|
calc
|
2014-12-23 17:34:16 -05:00
|
|
|
|
0 + succ m = succ (0 + m) : add_succ
|
2014-10-31 08:25:36 -07:00
|
|
|
|
... = succ m : IH)
|