Let X, Tx and W be given.
We prove the intermediate
claim HcoreW:
∀w : set, w ∈ W → coreW w ∈ Tx ∧ coreW w ⊆ w ∧ closure_of X Tx (coreW w) ⊆ w.
Let w be given.
We prove the intermediate
claim Hex:
∃Bw : set, Bw ∈ Tx ∧ Bw ⊆ w ∧ closure_of X Tx Bw ⊆ w.
Apply Hex to the current goal.
Let Bw be given.
An
exact proof term for the current goal is
(Eps_i_ax (λBw0 : set ⇒ Bw0 ∈ Tx ∧ Bw0 ⊆ w ∧ closure_of X Tx Bw0 ⊆ w) Bw HBw).
Set B to be the term
{coreW w|w ∈ W}.
We prove the intermediate
claim HBmemTx:
∀b : set, b ∈ B → b ∈ Tx.
Let b be given.
Apply (ReplE_impred W (λw0 : set ⇒ coreW w0) b Hb (b ∈ Tx)) to the current goal.
Let w be given.
rewrite the current goal using Heq (from left to right).
We prove the intermediate
claim Hpair:
coreW w ∈ Tx ∧ coreW w ⊆ w.
An
exact proof term for the current goal is
(andEL (coreW w ∈ Tx ∧ coreW w ⊆ w) (closure_of X Tx (coreW w) ⊆ w) (HcoreW w HwW)).
An
exact proof term for the current goal is
(andEL (coreW w ∈ Tx) (coreW w ⊆ w) Hpair).
We prove the intermediate
claim HcoreWsub:
∀w : set, w ∈ W → coreW w ⊆ w.
Let w be given.
We prove the intermediate
claim Hpair:
coreW w ∈ Tx ∧ coreW w ⊆ w.
An
exact proof term for the current goal is
(andEL (coreW w ∈ Tx ∧ coreW w ⊆ w) (closure_of X Tx (coreW w) ⊆ w) (HcoreW w HwW)).
An
exact proof term for the current goal is
(andER (coreW w ∈ Tx) (coreW w ⊆ w) Hpair).
We prove the intermediate
claim HBsubW:
∀b : set, b ∈ B → ∃w : set, w ∈ W ∧ b ⊆ w.
Let b be given.
Apply (ReplE_impred W (λw0 : set ⇒ coreW w0) b Hb (∃w : set, w ∈ W ∧ b ⊆ w)) to the current goal.
Let w be given.
We use w to witness the existential quantifier.
Apply andI to the current goal.
An exact proof term for the current goal is HwW.
rewrite the current goal using Heq (from left to right).
An exact proof term for the current goal is (HcoreWsub w HwW).
We prove the intermediate
claim HBclsubW:
∀b : set, b ∈ B → ∃w : set, w ∈ W ∧ closure_of X Tx b ⊆ w.
Let b be given.
Let w be given.
We use w to witness the existential quantifier.
Apply andI to the current goal.
An exact proof term for the current goal is HwW.
rewrite the current goal using Heq (from left to right).
An
exact proof term for the current goal is
(andER (coreW w ∈ Tx ∧ coreW w ⊆ w) (closure_of X Tx (coreW w) ⊆ w) (HcoreW w HwW)).
We use B to witness the existential quantifier.
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 HBmemTx.
An exact proof term for the current goal is HBlf.
An exact proof term for the current goal is HBsubW.
An exact proof term for the current goal is HBclsubW.
∎