Let x be given.
Apply (HUcov x HxX) to the current goal.
Let u be given.
Assume Hupair.
We prove the intermediate
claim HuU:
u ∈ U.
An
exact proof term for the current goal is
(andEL (u ∈ U) (x ∈ u) Hupair).
We prove the intermediate
claim Hxu:
x ∈ u.
An
exact proof term for the current goal is
(andER (u ∈ U) (x ∈ u) Hupair).
We prove the intermediate
claim HuTx:
u ∈ Tx.
An exact proof term for the current goal is (HUopen u HuU).
rewrite the current goal using HgenEq (from left to right).
An exact proof term for the current goal is HuTx.
We prove the intermediate
claim Href:
∀z ∈ u, ∃b ∈ B, z ∈ b ∧ b ⊆ u.
An
exact proof term for the current goal is
(SepE2 (𝒫 X) (λU0 : set ⇒ ∀z ∈ U0, ∃b ∈ B, z ∈ b ∧ b ⊆ U0) u HuGen).
We prove the intermediate
claim Hexb:
∃b ∈ B, x ∈ b ∧ b ⊆ u.
An exact proof term for the current goal is (Href x Hxu).
Apply Hexb to the current goal.
Let b be given.
Assume Hbpair.
We prove the intermediate
claim HbB:
b ∈ B.
An
exact proof term for the current goal is
(andEL (b ∈ B) (x ∈ b ∧ b ⊆ u) Hbpair).
We prove the intermediate
claim Hbprop:
x ∈ b ∧ b ⊆ u.
An
exact proof term for the current goal is
(andER (b ∈ B) (x ∈ b ∧ b ⊆ u) Hbpair).
We prove the intermediate
claim Hxb:
x ∈ b.
An
exact proof term for the current goal is
(andEL (x ∈ b) (b ⊆ u) Hbprop).
We prove the intermediate
claim Hbsubu:
b ⊆ u.
An
exact proof term for the current goal is
(andER (x ∈ b) (b ⊆ u) Hbprop).
We prove the intermediate
claim Hb0:
b ∈ B0.
Apply (SepI B (λb0 : set ⇒ ∃u0 : set, u0 ∈ U ∧ b0 ⊆ u0) b HbB) to the current goal.
We use u to witness the existential quantifier.
Apply andI to the current goal.
An exact proof term for the current goal is HuU.
An exact proof term for the current goal is Hbsubu.
We prove the intermediate
claim Hchooseprop:
choose b ∈ U ∧ b ⊆ choose b.
An
exact proof term for the current goal is
(Eps_i_ax (λu0 ⇒ u0 ∈ U ∧ b ⊆ u0) u (andI (u ∈ U) (b ⊆ u) HuU Hbsubu)).
We prove the intermediate
claim Hbsubchoose:
b ⊆ choose b.
An
exact proof term for the current goal is
(andER (choose b ∈ U) (b ⊆ choose b) Hchooseprop).
We prove the intermediate
claim Hxchoose:
x ∈ choose b.
An exact proof term for the current goal is (Hbsubchoose x Hxb).
We use choose b to witness the existential quantifier.
Apply andI to the current goal.
An
exact proof term for the current goal is
(ReplI B0 choose b Hb0).
An exact proof term for the current goal is Hxchoose.
∎