2015-08-07 17:25:54 +00:00
|
|
|
import data.nat
|
2015-10-14 19:27:09 +00:00
|
|
|
open nat algebra
|
2015-08-07 17:25:54 +00:00
|
|
|
|
2015-10-13 22:39:03 +00:00
|
|
|
example : ∀ a b : nat, a + b = b + a :=
|
2015-08-07 17:25:54 +00:00
|
|
|
show ∀ a b : nat, a + b = b + a
|
|
|
|
| 0 0 := rfl
|
|
|
|
| 0 (succ b) := by rewrite zero_add
|
|
|
|
| (succ a) 0 := by rewrite zero_add
|
|
|
|
| (succ a) (succ b) := by rewrite [succ_add, this]
|