Let X, Tx and Fam be given.
We prove the intermediate
claim HUnionSubX:
⋃ Fam ⊆ X.
Let x be given.
Let A be given.
Assume HxA.
Assume HAFam.
An exact proof term for the current goal is ((HFsub A HAFam) x HxA).
Let x be given.
Let W be given.
Assume HxW.
Assume HWClFam.
Apply (ReplE Fam (λA : set ⇒ closure_of X Tx A) W HWClFam) to the current goal.
Let A be given.
Assume HAconj.
We prove the intermediate
claim HAFam:
A ∈ Fam.
An
exact proof term for the current goal is
(andEL (A ∈ Fam) (W = closure_of X Tx A) HAconj).
We prove the intermediate
claim HWeq:
W = closure_of X Tx A.
An
exact proof term for the current goal is
(andER (A ∈ Fam) (W = closure_of X Tx A) HAconj).
We prove the intermediate
claim HxclA:
x ∈ closure_of X Tx A.
rewrite the current goal using HWeq (from right to left).
An exact proof term for the current goal is HxW.
We prove the intermediate
claim HASubUnion:
A ⊆ ⋃ Fam.
Let y be given.
An
exact proof term for the current goal is
(UnionI Fam y A Hy HAFam).
We prove the intermediate
claim HxclUnion:
x ∈ closure_of X Tx (⋃ Fam).
An
exact proof term for the current goal is
(closure_monotone X Tx A (⋃ Fam) Htop HASubUnion HUnionSubX x HxclA).
An exact proof term for the current goal is HxclUnion.
∎