Let a, x, y and r be given.
We prove the intermediate
claim Hx_lt_ry:
x < add_SNo r y.
An
exact proof term for the current goal is
(add_SNo_minus_Lt1 x y r HxS HyS HrS Hxy_lt_r).
We prove the intermediate
claim Hx_lt_yr:
x < add_SNo y r.
rewrite the current goal using
(add_SNo_com r y HrS HyS) (from right to left).
An exact proof term for the current goal is Hx_lt_ry.
An
exact proof term for the current goal is
(add_SNo_minus_Lt1b x r y HxS HrS HyS Hx_lt_yr).
∎