chore: add simp lemma for converting Nat.add back into + notation
This commit is contained in:
parent
bd02f16b43
commit
9032ddd773
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue