Let x and y be given.
We prove the intermediate
claim Lmx:
SNo (- x).
We prove the intermediate
claim Lmy:
SNo (- y).
We prove the intermediate
claim Lxy:
SNo (x + y).
An
exact proof term for the current goal is
SNo_add_SNo x y Hx Hy.
We prove the intermediate
claim L1:
(x + y) + - (x + y) = (x + y) + ((- x) + (- y)).
We will
prove 0 = (x + y) + ((- x) + (- y)).
rewrite the current goal using
add_SNo_assoc (x + y) (- x) (- y) Lxy Lmx Lmy (from left to right).
We will
prove 0 = ((x + y) + (- x)) + (- y).
rewrite the current goal using
add_SNo_com x y Hx Hy (from left to right).
We will
prove 0 = ((y + x) + - x) + - y.
rewrite the current goal using
add_SNo_assoc y x (- x) Hy Hx Lmx (from right to left).
We will
prove 0 = (y + (x + - x)) + - y.
We will
prove 0 = (y + 0) + - y.
rewrite the current goal using
add_SNo_0R y Hy (from left to right).
We will
prove 0 = y + - y.
Use reflexivity.
∎