Let x, y and r be given.
We prove the intermediate
claim HxS:
SNo x.
An
exact proof term for the current goal is
(real_SNo x HxR).
We prove the intermediate
claim HyS:
SNo y.
An
exact proof term for the current goal is
(real_SNo y HyR).
We prove the intermediate
claim HrS:
SNo r.
An
exact proof term for the current goal is
(real_SNo r HrR).
We prove the intermediate
claim HtS:
SNo t.
We prove the intermediate
claim HrposS:
0 < r.
An
exact proof term for the current goal is
(RltE_lt 0 r Hrpos).
We prove the intermediate
claim HhiLt:
x < add_SNo y r.
An
exact proof term for the current goal is
(RltE_lt x (add_SNo y r) Hhi).
We prove the intermediate
claim Hx_lt_ry:
x < add_SNo r y.
rewrite the current goal using
(add_SNo_com y r HyS HrS) (from right to left).
An exact proof term for the current goal is HhiLt.
We prove the intermediate
claim Ht_lt_r:
t < r.
An
exact proof term for the current goal is
(add_SNo_minus_Lt1b x y r HxS HyS HrS Hx_lt_ry).
We prove the intermediate
claim Hyr_lt_x:
y < add_SNo x r.
An
exact proof term for the current goal is
(add_SNo_minus_Lt1 y r x HyS HrS HxS HloLt).
We prove the intermediate
claim Hy_lt_rx:
y < add_SNo r x.
rewrite the current goal using
(add_SNo_com x r HxS HrS) (from right to left).
An exact proof term for the current goal is Hyr_lt_x.
An
exact proof term for the current goal is
(add_SNo_minus_Lt1b y x r HyS HxS HrS Hy_lt_rx).
rewrite the current goal using HtDef (from left to right) at position 1.
An
exact proof term for the current goal is
(SNo_minus_SNo y HyS).
rewrite the current goal using Hneg0 (from left to right) at position 1.
rewrite the current goal using
(minus_SNo_invol y HyS) (from left to right).
rewrite the current goal using Hcom (from left to right).
Use reflexivity.
Apply (xm (0 ≤ t)) to the current goal.
rewrite the current goal using
(nonneg_abs_SNo t H0let) (from left to right) at position 1.
An exact proof term for the current goal is Ht_lt_r.
rewrite the current goal using
(not_nonneg_abs_SNo t Hn0let) (from left to right) at position 1.
rewrite the current goal using HmtEq (from left to right) at position 1.
An exact proof term for the current goal is Hy_minus_x_lt_r.
∎