Set U to be the term
{t ∈ A|Rlt t z}.
Set V to be the term
{t ∈ A|Rlt z t}.
We prove the intermediate
claim HUeq:
U = L ∩ A.
Let t be given.
We prove the intermediate
claim HtA:
t ∈ A.
An
exact proof term for the current goal is
(SepE1 A (λt0 : set ⇒ Rlt t0 z) t Ht).
We prove the intermediate
claim HtR:
t ∈ R.
An exact proof term for the current goal is (HA t HtA).
We prove the intermediate
claim Htlt:
Rlt t z.
An
exact proof term for the current goal is
(SepE2 A (λt0 : set ⇒ Rlt t0 z) t Ht).
We prove the intermediate
claim HtL:
t ∈ L.
An
exact proof term for the current goal is
(SepI R (λt0 : set ⇒ Rlt t0 z) t HtR Htlt).
An
exact proof term for the current goal is
(binintersectI L A t HtL HtA).
Let t be given.
We prove the intermediate
claim HtL:
t ∈ L.
An
exact proof term for the current goal is
(binintersectE1 L A t Ht).
We prove the intermediate
claim HtA:
t ∈ A.
An
exact proof term for the current goal is
(binintersectE2 L A t Ht).
We prove the intermediate
claim Htlt:
Rlt t z.
An
exact proof term for the current goal is
(SepE2 R (λt0 : set ⇒ Rlt t0 z) t HtL).
An
exact proof term for the current goal is
(SepI A (λt0 : set ⇒ Rlt t0 z) t HtA Htlt).
We prove the intermediate
claim HUpow:
U ∈ 𝒫 A.
Apply PowerI to the current goal.
Let t be given.
An
exact proof term for the current goal is
(SepE1 A (λt0 : set ⇒ Rlt t0 z) t Ht).
We use L to witness the existential quantifier.
Apply andI to the current goal.
An exact proof term for the current goal is HLopen.
An exact proof term for the current goal is HUeq.
Set Rray to be the term
{t ∈ R|Rlt z t}.
We prove the intermediate
claim HVeql:
V = Rray ∩ A.
Let t be given.
We will
prove t ∈ Rray ∩ A.
We prove the intermediate
claim HtA:
t ∈ A.
An
exact proof term for the current goal is
(SepE1 A (λt0 : set ⇒ Rlt z t0) t Ht).
We prove the intermediate
claim HtR:
t ∈ R.
An exact proof term for the current goal is (HA t HtA).
We prove the intermediate
claim Htlt:
Rlt z t.
An
exact proof term for the current goal is
(SepE2 A (λt0 : set ⇒ Rlt z t0) t Ht).
We prove the intermediate
claim HtRray:
t ∈ Rray.
An
exact proof term for the current goal is
(SepI R (λt0 : set ⇒ Rlt z t0) t HtR Htlt).
An
exact proof term for the current goal is
(binintersectI Rray A t HtRray HtA).
Let t be given.
We prove the intermediate
claim HtRray:
t ∈ Rray.
An
exact proof term for the current goal is
(binintersectE1 Rray A t Ht).
We prove the intermediate
claim HtA:
t ∈ A.
An
exact proof term for the current goal is
(binintersectE2 Rray A t Ht).
We prove the intermediate
claim Htlt:
Rlt z t.
An
exact proof term for the current goal is
(SepE2 R (λt0 : set ⇒ Rlt z t0) t HtRray).
An
exact proof term for the current goal is
(SepI A (λt0 : set ⇒ Rlt z t0) t HtA Htlt).
We prove the intermediate
claim HVpow:
V ∈ 𝒫 A.
Apply PowerI to the current goal.
Let t be given.
An
exact proof term for the current goal is
(SepE1 A (λt0 : set ⇒ Rlt z t0) t Ht).
We use Rray to witness the existential quantifier.
Apply andI to the current goal.
An exact proof term for the current goal is HRopen.
An exact proof term for the current goal is HVeql.
We prove the intermediate
claim HUsubA:
U ⊆ A.
Let t be given.
An
exact proof term for the current goal is
(SepE1 A (λt0 : set ⇒ Rlt t0 z) t Ht).
We prove the intermediate
claim HVsubA:
V ⊆ A.
Let t be given.
An
exact proof term for the current goal is
(SepE1 A (λt0 : set ⇒ Rlt z t0) t Ht).
We prove the intermediate
claim HUpowA:
U ∈ 𝒫 A.
An
exact proof term for the current goal is
(PowerI A U HUsubA).
We prove the intermediate
claim HVpowA:
V ∈ 𝒫 A.
An
exact proof term for the current goal is
(PowerI A V HVsubA).
We prove the intermediate
claim Hdisj:
U ∩ V = Empty.
Let t be given.
We prove the intermediate
claim HtA:
t ∈ A.
An
exact proof term for the current goal is
(SepE1 A (λt0 : set ⇒ Rlt t0 z) t HtU).
We prove the intermediate
claim HtR:
t ∈ R.
An exact proof term for the current goal is (HA t HtA).
We prove the intermediate
claim Hlt1:
Rlt t z.
An
exact proof term for the current goal is
(SepE2 A (λt0 : set ⇒ Rlt t0 z) t HtU).
We prove the intermediate
claim Hlt2:
Rlt z t.
An
exact proof term for the current goal is
(SepE2 A (λt0 : set ⇒ Rlt z t0) t HtV).
We prove the intermediate
claim Htt:
Rlt t t.
An
exact proof term for the current goal is
(Rlt_tra t z t Hlt1 Hlt2).
Apply FalseE to the current goal.
An
exact proof term for the current goal is
((not_Rlt_refl t HtR) Htt).
We prove the intermediate
claim HUne:
U ≠ Empty.
Apply (xm (Rlt x z ∧ Rlt z y)) to the current goal.
We prove the intermediate
claim Hxz:
Rlt x z.
An
exact proof term for the current goal is
(andEL (Rlt x z) (Rlt z y) Hxzzy).
We prove the intermediate
claim HxU:
x ∈ U.
An
exact proof term for the current goal is
(SepI A (λt0 : set ⇒ Rlt t0 z) x Hx Hxz).
Assume Hnot.
We prove the intermediate
claim Hyz:
Rlt y z.
Apply Hbetw to the current goal.
Apply FalseE to the current goal.
An exact proof term for the current goal is (Hnot Hxzzy).
An
exact proof term for the current goal is
(andEL (Rlt y z) (Rlt z x) Hyzzx).
We prove the intermediate
claim HyU:
y ∈ U.
An
exact proof term for the current goal is
(SepI A (λt0 : set ⇒ Rlt t0 z) y Hy Hyz).
We prove the intermediate
claim HVne:
V ≠ Empty.
Apply (xm (Rlt x z ∧ Rlt z y)) to the current goal.
We prove the intermediate
claim Hzy:
Rlt z y.
An
exact proof term for the current goal is
(andER (Rlt x z) (Rlt z y) Hxzzy).
We prove the intermediate
claim HyV:
y ∈ V.
An
exact proof term for the current goal is
(SepI A (λt0 : set ⇒ Rlt z t0) y Hy Hzy).
Assume Hnot.
We prove the intermediate
claim Hzx:
Rlt z x.
Apply Hbetw to the current goal.
Apply FalseE to the current goal.
An exact proof term for the current goal is (Hnot Hxzzy).
An
exact proof term for the current goal is
(andER (Rlt y z) (Rlt z x) Hyzzx).
We prove the intermediate
claim HxV:
x ∈ V.
An
exact proof term for the current goal is
(SepI A (λt0 : set ⇒ Rlt z t0) x Hx Hzx).
We prove the intermediate
claim Hunion:
U ∪ V = A.
Let t be given.
Apply (binunionE U V t Ht) to the current goal.
Assume HtU.
An
exact proof term for the current goal is
(SepE1 A (λt0 : set ⇒ Rlt t0 z) t HtU).
Assume HtV.
An
exact proof term for the current goal is
(SepE1 A (λt0 : set ⇒ Rlt z t0) t HtV).
Let t be given.
We prove the intermediate
claim HtR:
t ∈ R.
An exact proof term for the current goal is (HA t HtA).
We prove the intermediate
claim HtS:
SNo t.
An
exact proof term for the current goal is
(real_SNo t HtR).
We prove the intermediate
claim HzS:
SNo z.
An
exact proof term for the current goal is
(real_SNo z Hz).
We prove the intermediate
claim Htlt:
Rlt t z.
An
exact proof term for the current goal is
(RltI t z HtR Hz Hlt).
An
exact proof term for the current goal is
(binunionI1 U V t (SepI A (λt0 : set ⇒ Rlt t0 z) t HtA Htlt)).
We prove the intermediate
claim HzA:
z ∈ A.
rewrite the current goal using Heq (from right to left).
An exact proof term for the current goal is HtA.
Apply FalseE to the current goal.
An exact proof term for the current goal is (HznotA HzA).
We prove the intermediate
claim Hzt:
Rlt z t.
An
exact proof term for the current goal is
(RltI z t Hz HtR Hlt).
An
exact proof term for the current goal is
(binunionI2 U V t (SepI A (λt0 : set ⇒ Rlt z t0) t HtA Hzt)).
Apply andI to the current goal.
Apply andI to the current goal.
Apply andI to the current goal.
Apply andI to the current goal.
Apply andI to the current goal.
An exact proof term for the current goal is HUpowA.
An exact proof term for the current goal is HVpowA.
An exact proof term for the current goal is Hdisj.
An exact proof term for the current goal is HUne.
An exact proof term for the current goal is HVne.
An exact proof term for the current goal is Hunion.
Apply FalseE to the current goal.
Apply Hnosep to the current goal.
We use U to witness the existential quantifier.
We use V 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 HUinTy.
An exact proof term for the current goal is HVinTy.
An exact proof term for the current goal is HsepUV.
∎