Apply Hex to the current goal.
Let a be given.
Assume Hapair.
We prove the intermediate
claim HaR:
a ∈ R.
An
exact proof term for the current goal is
(andEL (a ∈ R) (U = {y ∈ R|Rlt y a}) Hapair).
We prove the intermediate
claim HUeq:
U = {y ∈ R|Rlt y a}.
An
exact proof term for the current goal is
(andER (a ∈ R) (U = {y ∈ R|Rlt y a}) Hapair).
We prove the intermediate
claim HxUa:
x ∈ {y ∈ R|Rlt y a}.
rewrite the current goal using HUeq (from right to left).
An exact proof term for the current goal is HxU.
We prove the intermediate
claim Hxlt:
Rlt x a.
An
exact proof term for the current goal is
(SepE2 R (λy0 : set ⇒ Rlt y0 a) x HxUa).
We prove the intermediate
claim HxltS:
x < a.
An
exact proof term for the current goal is
(RltE_lt x a Hxlt).
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 H0ltaS:
0 < a.
An
exact proof term for the current goal is
(SNoLeLt_tra 0 x a SNo_0 HxS HaS H0lex HxltS).
We prove the intermediate
claim H0lta:
Rlt 0 a.
An
exact proof term for the current goal is
(RltI 0 a real_0 HaR H0ltaS).
Apply Hexy to the current goal.
Let y be given.
Assume Hypair.
We prove the intermediate
claim HyK:
y ∈ K_set.
We prove the intermediate
claim Hylt:
Rlt y a.
We prove the intermediate
claim HyU:
y ∈ U.
rewrite the current goal using HUeq (from left to right).
An
exact proof term for the current goal is
(SepI R (λy0 : set ⇒ Rlt y0 a) y (K_set_Subq_R y HyK) Hylt).
We prove the intermediate
claim HyInt:
y ∈ U ∩ K_set.