Let y be given.
We prove the intermediate
claim HyX:
y ∈ X.
An
exact proof term for the current goal is
(andEL (y ∈ X) (y ∉ U) (setminusE X U y HyOut)).
We prove the intermediate
claim Hgzero:
∀y0 : set, y0 ∈ X ∖ U → apply_fun g y0 = 0.
We prove the intermediate
claim Hgy0:
apply_fun g y = 0.
An exact proof term for the current goal is (Hgzero y HyOut).
rewrite the current goal using Happ (from left to right).
rewrite the current goal using Hgy0 (from left to right).
∎