Let A, B, f and g be given.
Let x and y be given.
We will
prove x ∈ (A ∪ B).
Apply (binunionE f g (x,y) Hxy) to the current goal.
We prove the intermediate
claim HxA:
x ∈ A.
An exact proof term for the current goal is (Hdf x y Hxyf).
An
exact proof term for the current goal is
(binunionI1 A B x HxA).
We prove the intermediate
claim HxB:
x ∈ B.
An exact proof term for the current goal is (Hdg x y Hxyg).
An
exact proof term for the current goal is
(binunionI2 A B x HxB).
∎