Let x, y, U, V and p be given.
We will
prove x ∈ U ∧ y ∈ V.
We prove the intermediate
claim Hp0x:
p 0 ∈ {x}.
An
exact proof term for the current goal is
(ap0_Sigma {x} (λu ⇒ {y}) p Hpxy).
We prove the intermediate
claim Hp1y:
p 1 ∈ {y}.
An
exact proof term for the current goal is
(ap1_Sigma {x} (λu ⇒ {y}) p Hpxy).
We prove the intermediate
claim Hp0_eq_x:
p 0 = x.
We prove the intermediate
claim Hp1_eq_y:
p 1 = y.
We prove the intermediate
claim Hp0U:
p 0 ∈ U.
An
exact proof term for the current goal is
(ap0_Sigma U (λu ⇒ V) p HpUV).
We prove the intermediate
claim Hp1V:
p 1 ∈ V.
An
exact proof term for the current goal is
(ap1_Sigma U (λu ⇒ V) p HpUV).
Apply andI to the current goal.
rewrite the current goal using Hp0_eq_x (from right to left).
An exact proof term for the current goal is Hp0U.
rewrite the current goal using Hp1_eq_y (from right to left).
An exact proof term for the current goal is Hp1V.
∎