chore: add simp lemma for converting Nat.add back into + notation

This commit is contained in:
Leonardo de Moura 2021-09-08 13:45:13 -07:00
parent bd02f16b43
commit 9032ddd773

View file

@ -44,6 +44,9 @@ namespace Nat
@[simp] theorem zero_eq : Nat.zero = 0 :=
rfl
@[simp] theorem add_eq : Nat.add x y = x + y :=
rfl
@[simp] protected theorem zero_add : ∀ (n : Nat), 0 + n = n
| 0 => rfl
| n+1 => congrArg succ (Nat.zero_add n)