Let x be given.
We prove the intermediate
claim Hex:
∃N : set, N ∈ Tx ∧ x ∈ N ∧ ∃S0 : set, finite S0 ∧ S0 ⊆ Fam ∧ ∀A : set, A ∈ Fam → A ∩ N ≠ Empty → A ∈ S0.
An
exact proof term for the current goal is
(andER (topology_on X Tx) (∀x0 : set, x0 ∈ X → ∃N : set, N ∈ Tx ∧ x0 ∈ N ∧ ∃S0 : set, finite S0 ∧ S0 ⊆ Fam ∧ ∀A : set, A ∈ Fam → A ∩ N ≠ Empty → A ∈ S0) HLF x HxX).
Apply Hex to the current goal.
Let N be given.
We prove the intermediate
claim HNcore:
N ∈ Tx ∧ x ∈ N.
An
exact proof term for the current goal is
(andEL (N ∈ Tx ∧ x ∈ N) (∃S0 : set, finite S0 ∧ S0 ⊆ Fam ∧ ∀A : set, A ∈ Fam → A ∩ N ≠ Empty → A ∈ S0) HNpack).
We prove the intermediate
claim HNTx:
N ∈ Tx.
An
exact proof term for the current goal is
(andEL (N ∈ Tx) (x ∈ N) HNcore).
We prove the intermediate
claim HxN:
x ∈ N.
An
exact proof term for the current goal is
(andER (N ∈ Tx) (x ∈ N) HNcore).
We prove the intermediate
claim HexS0:
∃S0 : set, finite S0 ∧ S0 ⊆ Fam ∧ ∀A : set, A ∈ Fam → A ∩ N ≠ Empty → A ∈ S0.
An
exact proof term for the current goal is
(andER (N ∈ Tx ∧ x ∈ N) (∃S0 : set, finite S0 ∧ S0 ⊆ Fam ∧ ∀A : set, A ∈ Fam → A ∩ N ≠ Empty → A ∈ S0) HNpack).
Apply HexS0 to the current goal.
Let S0 be given.
We prove the intermediate
claim HS0left:
finite S0 ∧ S0 ⊆ Fam.
An
exact proof term for the current goal is
(andEL (finite S0 ∧ S0 ⊆ Fam) (∀A : set, A ∈ Fam → A ∩ N ≠ Empty → A ∈ S0) HS0).
We prove the intermediate
claim HS0fin:
finite S0.
An
exact proof term for the current goal is
(andEL (finite S0) (S0 ⊆ Fam) HS0left).
We prove the intermediate
claim HS0subFam:
S0 ⊆ Fam.
An
exact proof term for the current goal is
(andER (finite S0) (S0 ⊆ Fam) HS0left).
We prove the intermediate
claim HS0prop:
∀A : set, A ∈ Fam → A ∩ N ≠ Empty → A ∈ S0.
An
exact proof term for the current goal is
(andER (finite S0 ∧ S0 ⊆ Fam) (∀A : set, A ∈ Fam → A ∩ N ≠ Empty → A ∈ S0) HS0).
We use N 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 HNTx.
An exact proof term for the current goal is HxN.
We use S to witness the existential quantifier.
Apply andI to the current goal.
Apply andI to the current goal.
Let C be given.
Let A be given.
We prove the intermediate
claim HAFam:
A ∈ Fam.
An exact proof term for the current goal is (HS0subFam A HA0).
rewrite the current goal using HeqC (from left to right).
An
exact proof term for the current goal is
(ReplI Fam (λA0 : set ⇒ closure_of X Tx A0) A HAFam).
Let C be given.
Let A be given.
rewrite the current goal using HeqC (from right to left).
An exact proof term for the current goal is HCmeet.
We prove the intermediate
claim HAmeet:
A ∩ N ≠ Empty.
We prove the intermediate
claim HAinS0:
A ∈ S0.
An exact proof term for the current goal is (HS0prop A HAFam HAmeet).
rewrite the current goal using HeqC (from left to right).
An
exact proof term for the current goal is
(ReplI S0 (λA0 : set ⇒ closure_of X Tx A0) A HAinS0).
∎