Let a, b, d and x be given.
An exact proof term for the current goal is Hrect.
We prove the intermediate
claim Hp0U0:
(x,minus_SNo x) 0 ∈ U.
An exact proof term for the current goal is Hp0U.
We prove the intermediate
claim Hp1V1:
(x,minus_SNo x) 1 ∈ V.
An exact proof term for the current goal is Hp1V.
We prove the intermediate
claim Hx0:
(x,minus_SNo x) 0 = x.
We prove the intermediate
claim HxU:
x ∈ U.
rewrite the current goal using Hx0 (from right to left).
An exact proof term for the current goal is Hp0U0.
We prove the intermediate
claim HmxV:
(minus_SNo x) ∈ V.
rewrite the current goal using Hx1 (from right to left).
An exact proof term for the current goal is Hp1V1.
We prove the intermediate
claim HxUprop:
¬ (Rlt x a) ∧ Rlt x b.
An
exact proof term for the current goal is
(SepE2 R (λt : set ⇒ ¬ (Rlt t a) ∧ Rlt t b) x HxU).
We prove the intermediate
claim Hnlt_xa:
¬ (Rlt x a).
An
exact proof term for the current goal is
(andEL (¬ (Rlt x a)) (Rlt x b) HxUprop).
We prove the intermediate
claim Hnlt_ax:
¬ (Rlt a x).
We prove the intermediate
claim Hltax_lt:
a < x.
An
exact proof term for the current goal is
(RltE_lt a x Hltax).
We prove the intermediate
claim HaS:
SNo a.
An
exact proof term for the current goal is
(real_SNo a HaR).
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 HmxR:
(minus_SNo x) ∈ R.
We prove the intermediate
claim HmaR:
(minus_SNo a) ∈ R.
An exact proof term for the current goal is (Hnlt_mx_ma Hlt).
An
exact proof term for the current goal is
(Rle_antisym x a (RleI x a HxR HaR Hnlt_ax) (RleI a x HaR HxR Hnlt_xa)).
∎