An
exact proof term for the current goal is
(SepE2 (𝒫 Dom) (λS0 : set ⇒ ∃x U : set, x ∈ X ∧ U ∈ Ty ∧ S0 = {f ∈ Dom|apply_fun f x ∈ U}) s Hsp).
Apply Hex to the current goal.
Let x be given.
Apply Hex1 to the current goal.
Let U be given.
We prove the intermediate
claim HxU1:
(x ∈ X ∧ U ∈ Ty).
We prove the intermediate
claim HxX:
x ∈ X.
An
exact proof term for the current goal is
(andEL (x ∈ X) (U ∈ Ty) HxU1).
We prove the intermediate
claim HU:
U ∈ Ty.
An
exact proof term for the current goal is
(andER (x ∈ X) (U ∈ Ty) HxU1).
Set K to be the term
{x}.
We prove the intermediate
claim HKsub:
K ⊆ X.
Let t be given.
We prove the intermediate
claim Hteq:
t = x.
An
exact proof term for the current goal is
(SingE x t Ht).
rewrite the current goal using Hteq (from left to right).
An exact proof term for the current goal is HxX.
We prove the intermediate
claim HKdef:
K = {x}.
We prove the intermediate
claim HS0sub:
S0 ⊆ Dom.
Let f be given.
An
exact proof term for the current goal is
(SepE1 Dom (λf0 : set ⇒ K ⊆ preimage_of X f0 U) f HfS0).
We prove the intermediate
claim HS0pow:
S0 ∈ 𝒫 Dom.
An
exact proof term for the current goal is
(PowerI Dom S0 HS0sub).
We use K to witness the existential quantifier.
We use U 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 HKcomp.
An exact proof term for the current goal is HKsub.
An exact proof term for the current goal is HU.
Let f be given.
We prove the intermediate
claim HfDom:
f ∈ Dom.
An
exact proof term for the current goal is
(SepE1 Dom (λf0 : set ⇒ apply_fun f0 x ∈ U) f Hf).
We prove the intermediate
claim HfxU:
apply_fun f x ∈ U.
An
exact proof term for the current goal is
(SepE2 Dom (λf0 : set ⇒ apply_fun f0 x ∈ U) f Hf).
We prove the intermediate
claim HKpre:
K ⊆ preimage_of X f U.
Let t be given.
We prove the intermediate
claim Hteq:
t = x.
An
exact proof term for the current goal is
(SingE x t HtK).
rewrite the current goal using Hteq (from left to right).
An
exact proof term for the current goal is
(SepI X (λu : set ⇒ apply_fun f u ∈ U) x HxX HfxU).
An
exact proof term for the current goal is
(SepI Dom (λf0 : set ⇒ K ⊆ preimage_of X f0 U) f HfDom HKpre).
Let f be given.
We prove the intermediate
claim HfDom:
f ∈ Dom.
An
exact proof term for the current goal is
(SepE1 Dom (λf0 : set ⇒ K ⊆ preimage_of X f0 U) f Hf).
We prove the intermediate
claim HKpre:
K ⊆ preimage_of X f U.
An
exact proof term for the current goal is
(SepE2 Dom (λf0 : set ⇒ K ⊆ preimage_of X f0 U) f Hf).
We prove the intermediate
claim HxK:
x ∈ K.
An
exact proof term for the current goal is
(SingI x).
We prove the intermediate
claim Hxpre:
x ∈ preimage_of X f U.
An exact proof term for the current goal is (HKpre x HxK).
We prove the intermediate
claim HfxU:
apply_fun f x ∈ U.
An
exact proof term for the current goal is
(SepE2 X (λu : set ⇒ apply_fun f u ∈ U) x Hxpre).
An
exact proof term for the current goal is
(SepI Dom (λf0 : set ⇒ apply_fun f0 x ∈ U) f HfDom HfxU).
We prove the intermediate
claim HS0open:
S0 ∈ Tc.
rewrite the current goal using Hseq (from left to right).
rewrite the current goal using HS0eq (from left to right).
An exact proof term for the current goal is HS0open.