Let p be given.
Let V0 be given.
We prove the intermediate
claim HV0Ty:
V0 ∈ Ty.
An
exact proof term for the current goal is
(SepE1 Ty (λV1 : set ⇒ V1 ∩ Im ∈ U) V0 HV0W).
We prove the intermediate
claim Hpre:
preimage_of X f V0 ∈ Tx.
rewrite the current goal using Hpeq (from left to right).
An exact proof term for the current goal is Hpre.
Let x be given.
We will
prove ∃p : set, p ∈ P ∧ x ∈ p.
We prove the intermediate
claim HfxIm:
apply_fun f x ∈ Im.
An
exact proof term for the current goal is
(ReplI X (λx0 : set ⇒ apply_fun f x0) x HxX).
We prove the intermediate
claim Hexu:
∃u : set, u ∈ U ∧ apply_fun f x ∈ u.
An
exact proof term for the current goal is
(HUcov (apply_fun f x) HfxIm).
Apply Hexu to the current goal.
Let u be given.
We prove the intermediate
claim HuU:
u ∈ U.
An
exact proof term for the current goal is
(andEL (u ∈ U) (apply_fun f x ∈ u) Hupair).
We prove the intermediate
claim Hfxu:
apply_fun f x ∈ u.
An
exact proof term for the current goal is
(andER (u ∈ U) (apply_fun f x ∈ u) Hupair).
An exact proof term for the current goal is (HUmem u HuU).
We prove the intermediate
claim HexV:
∃V ∈ Ty, u = V ∩ Im.
Apply HexV to the current goal.
Let V be given.
We prove the intermediate
claim HVTy:
V ∈ Ty.
An
exact proof term for the current goal is
(andEL (V ∈ Ty) (u = V ∩ Im) HVpair).
We prove the intermediate
claim Hueq:
u = V ∩ Im.
An
exact proof term for the current goal is
(andER (V ∈ Ty) (u = V ∩ Im) HVpair).
We prove the intermediate
claim HfxVIm:
apply_fun f x ∈ V ∩ Im.
Let S and T be given.
rewrite the current goal using HeqST (from right to left) at position 1.
An exact proof term for the current goal is HyS.
An
exact proof term for the current goal is
(HsubstMem u (V ∩ Im) Hueq Hfxu).
We prove the intermediate
claim HfxV:
apply_fun f x ∈ V.
We prove the intermediate
claim HxPre:
x ∈ preimage_of X f V.
Apply SepI to the current goal.
An exact proof term for the current goal is HxX.
An exact proof term for the current goal is HfxV.
We prove the intermediate
claim HVWfam:
V ∈ Wfam.
Apply SepI to the current goal.
An exact proof term for the current goal is HVTy.
We prove the intermediate
claim HsubstU:
∀S T : set, S = T → S ∈ U → T ∈ U.
Let S and T be given.
rewrite the current goal using HeqST (from right to left) at position 1.
An exact proof term for the current goal is HS.
An
exact proof term for the current goal is
(HsubstU u (V ∩ Im) Hueq HuU).
We use
(preimage_of X f V) to
witness the existential quantifier.
Apply andI to the current goal.
An
exact proof term for the current goal is
(ReplI Wfam (λV0 : set ⇒ preimage_of X f V0) V HVWfam).
An exact proof term for the current goal is HxPre.