Let y be given.
rewrite the current goal using Hginv (from left to right).
We prove the intermediate
claim Hsurj:
∀w ∈ Y, ∃u ∈ X, apply_fun f u = w.
Let w be given.
We prove the intermediate
claim Hex:
∃u : set, u ∈ X ∧ apply_fun f u = w.
An
exact proof term for the current goal is
(bijection_surj X Y f w Hbij Hw).
An exact proof term for the current goal is Hex.
An
exact proof term for the current goal is
(surj_rinv X Y (λu : set ⇒ apply_fun f u) Hsurj y Hy).
Let V be given.
Set C to be the term
X ∖ V.
We prove the intermediate
claim HCclosed:
closed_in X Tx C.
We prove the intermediate
claim HCsub:
C ⊆ X.
Let y be given.
Let x0 be given.
We prove the intermediate
claim Hx0X:
x0 ∈ X.
An exact proof term for the current goal is (HCsub x0 Hx0C).
rewrite the current goal using Heq (from left to right).
An exact proof term for the current goal is (Hfun x0 Hx0X).
rewrite the current goal using HpreCeq (from left to right) at position 1.
An exact proof term for the current goal is HimgClosed.
We prove the intermediate
claim HopTy:
(Y ∖ preimage_of Y g C) ∈ Ty.
Let y be given.
We prove the intermediate
claim HyY:
y ∈ Y.
An
exact proof term for the current goal is
(SepE1 Y (λu : set ⇒ apply_fun g u ∈ V) y Hy).
We prove the intermediate
claim HgyV:
apply_fun g y ∈ V.
An
exact proof term for the current goal is
(SepE2 Y (λu : set ⇒ apply_fun g u ∈ V) y Hy).
An exact proof term for the current goal is HyY.
We prove the intermediate
claim HgyC:
apply_fun g y ∈ C.
An
exact proof term for the current goal is
(SepE2 Y (λu : set ⇒ apply_fun g u ∈ C) y HyC).
Assume _.
Assume HnotV.
An exact proof term for the current goal is (HnotV HgyV).
Let y be given.
Apply SepI to the current goal.
An exact proof term for the current goal is HyY.
We prove the intermediate
claim HgyX:
apply_fun g y ∈ X.
An exact proof term for the current goal is (Hgfun y HyY).
Assume HVin.
An exact proof term for the current goal is HVin.
We prove the intermediate
claim HnotVin:
apply_fun g y ∉ V.
Assume H0.
An exact proof term for the current goal is (HnotV H0).
We prove the intermediate
claim HgyC:
apply_fun g y ∈ C.
Apply SepI to the current goal.
An exact proof term for the current goal is HyY.
An exact proof term for the current goal is HgyC.
Apply FalseE to the current goal.
An exact proof term for the current goal is (HyNot HyC).
rewrite the current goal using HpreEq (from left to right).
An exact proof term for the current goal is HopTy.
∎