Let A, X, Tx and U be given.
We prove the intermediate
claim Hexx:
∃x : set, x ∈ U.
Apply Hexx to the current goal.
Let x be given.
We prove the intermediate
claim HTsub:
Tx ⊆ 𝒫 X.
We prove the intermediate
claim HUpow:
U ∈ 𝒫 X.
An exact proof term for the current goal is (HTsub U HU).
We prove the intermediate
claim HxX:
x ∈ X.
An
exact proof term for the current goal is
(PowerE X U HUpow x HxU).
We prove the intermediate
claim Hcl:
x ∈ closure_of X Tx A.
rewrite the current goal using Hdense (from left to right).
An exact proof term for the current goal is HxX.
We prove the intermediate
claim Hneigh:
∀V ∈ Tx, x ∈ V → V ∩ A ≠ Empty.
An exact proof term for the current goal is (Hneigh U HU HxU).
∎