Let f, X and Y be given.
Let x and y be given.
We prove the intermediate
claim HxyXY:
(x,y) ∈ setprod X Y.
An exact proof term for the current goal is (Hsub (x,y) Hxy).
We prove the intermediate
claim Hy1:
(x,y) 1 ∈ Y.
An
exact proof term for the current goal is
(ap1_Sigma X (λ_ : set ⇒ Y) (x,y) HxyXY).
rewrite the current goal using
(tuple_2_1_eq x y) (from right to left).
An exact proof term for the current goal is Hy1.
∎