Let x be given.
We prove the intermediate
claim HxX:
x ∈ X.
An
exact proof term for the current goal is
(setminusE1 X (⋃ Fam) x Hx).
rewrite the current goal using HdefInt (from left to right).
Apply (SepI X (λx0 : set ⇒ ∀U0 : set, U0 ∈ {X ∖ A|A ∈ Fam} → x0 ∈ U0) x HxX) to the current goal.
Let U0 be given.
We prove the intermediate
claim HexA:
∃A : set, A ∈ Fam ∧ U0 = X ∖ A.
An
exact proof term for the current goal is
(ReplE Fam (λA0 : set ⇒ X ∖ A0) U0 HU0).
Apply HexA to the current goal.
Let A be given.
We prove the intermediate
claim HAin:
A ∈ Fam.
An
exact proof term for the current goal is
(andEL (A ∈ Fam) (U0 = X ∖ A) HA).
We prove the intermediate
claim HU0eq:
U0 = X ∖ A.
An
exact proof term for the current goal is
(andER (A ∈ Fam) (U0 = X ∖ A) HA).
rewrite the current goal using HU0eq (from left to right).
An exact proof term for the current goal is HxX.
An
exact proof term for the current goal is
(UnionI Fam x A HxA HAin).
∎