Let X, Tx, Y, Ty, f and C be given.
We prove the intermediate
claim HfunXY:
function_on f X Y.
We prove the intermediate
claim Hex:
∃U : set, U ∈ Ty ∧ C = Y ∖ U.
Apply Hex to the current goal.
Let U be given.
Assume HUpair.
We prove the intermediate
claim HUopen:
U ∈ Ty.
An
exact proof term for the current goal is
(andEL (U ∈ Ty) (C = Y ∖ U) HUpair).
We prove the intermediate
claim HCe:
C = Y ∖ U.
An
exact proof term for the current goal is
(andER (U ∈ Ty) (C = Y ∖ U) HUpair).
We prove the intermediate
claim HpreUopen:
preimage_of X f U ∈ Tx.
rewrite the current goal using HCe (from left to right).
rewrite the current goal using HpreEq (from left to right).
∎