Let X and y be given.
Assume HFinX HyNot HXind.
We prove the intermediate
claim HsubX:
X ⊆ R.
Let z be given.
An
exact proof term for the current goal is
(HsubXY z (binunionI1 X {y} z HzX)).
We prove the intermediate
claim HyR:
y ∈ R.
An
exact proof term for the current goal is
(HsubXY y (binunionI2 X {y} y (SingI y))).
An exact proof term for the current goal is (HXind HsubX).
rewrite the current goal using
(Sing_eq_UPair y) (from left to right).
We prove the intermediate
claim Hdecomp:
R ∖ (X ∪ {y}) = (R ∖ X) ∩ (R ∖ {y}).
rewrite the current goal using Hdecomp (from left to right).