Let x be given.
We prove the intermediate
claim H0ltxR:
Rlt 0 x.
An
exact proof term for the current goal is
(RltI 0 x real_0 HxR H0ltx).
Apply Hexb to the current goal.
Let b be given.
Assume Hbpair.
We prove the intermediate
claim HbK:
b ∈ K_set.
We prove the intermediate
claim HbR:
b ∈ R.
An
exact proof term for the current goal is
(K_set_Subq_R b HbK).
We prove the intermediate
claim Hbprop:
¬ (Rlt b 0) ∧ Rlt b x.
An
exact proof term for the current goal is
(SepE2 R (λy0 : set ⇒ ¬ (Rlt y0 0) ∧ Rlt y0 x) b Hbhalf).
We prove the intermediate
claim HbLtX:
Rlt b x.
An
exact proof term for the current goal is
(andER (¬ (Rlt b 0)) (Rlt b x) Hbprop).
We prove the intermediate
claim Hbpos:
Rlt 0 b.
Let n be given.
rewrite the current goal using Hbeq (from left to right).
An
exact proof term for the current goal is
(inv_nat_pos n HnIn).
We prove the intermediate
claim HxV:
x ∈ V.
An
exact proof term for the current goal is
(SepI R (λy0 : set ⇒ Rlt b y0) x HxR HbLtX).
Set F to be the term
K_set ∩ V.
We prove the intermediate
claim HFfin:
finite F.
rewrite the current goal using HFdef (from left to right).
We prove the intermediate
claim HFsubR:
F ⊆ R.
Let z be given.
We prove the intermediate
claim HzK:
z ∈ K_set.
An
exact proof term for the current goal is
(K_set_Subq_R z HzK).
Set U to be the term
V ∩ (R ∖ F).
We prove the intermediate
claim HxnotF:
x ∉ F.
We prove the intermediate
claim HxK':
x ∈ K_set.
An exact proof term for the current goal is (HxnotK HxK').
We prove the intermediate
claim HxRmF:
x ∈ R ∖ F.
An
exact proof term for the current goal is
(setminusI R F x HxR HxnotF).
We prove the intermediate
claim HxU:
x ∈ U.
An
exact proof term for the current goal is
(binintersectI V (R ∖ F) x HxV HxRmF).
Let z be given.
Apply FalseE to the current goal.
We prove the intermediate
claim HzU:
z ∈ U.
We prove the intermediate
claim HzK:
z ∈ K_set.
We prove the intermediate
claim HzV_RmF:
z ∈ V ∩ (R ∖ F).
An exact proof term for the current goal is HzU.
We prove the intermediate
claim HzV:
z ∈ V.
An
exact proof term for the current goal is
(binintersectE1 V (R ∖ F) z HzV_RmF).
We prove the intermediate
claim HzRmF:
z ∈ R ∖ F.
An
exact proof term for the current goal is
(binintersectE2 V (R ∖ F) z HzV_RmF).
We prove the intermediate
claim HzF:
z ∈ F.
We prove the intermediate
claim HznotF:
z ∉ F.
An
exact proof term for the current goal is
(setminusE2 R F z HzRmF).
An exact proof term for the current goal is (HznotF HzF).
We use U to witness the existential quantifier.
Apply andI to the current goal.
Apply andI to the current goal.
An exact proof term for the current goal is HUopen.
An exact proof term for the current goal is HxU.
An exact proof term for the current goal is HUempty.
∎