Let X, Y and p be given.
An
exact proof term for the current goal is
(ReplI (setprod X Y) (λq : set ⇒ (q,q 0)) p Hp).
Let q be given.
We prove the intermediate
claim Hpq:
p = q.
rewrite the current goal using
(tuple_2_0_eq q (q 0)) (from right to left).
rewrite the current goal using Heq (from left to right).
Use reflexivity.
rewrite the current goal using
(tuple_2_1_eq q (q 0)) (from right to left).
rewrite the current goal using Heq (from left to right).
Use reflexivity.
We prove the intermediate
claim Hq0p0:
q 0 = p 0.
rewrite the current goal using Hpq (from right to left).
Use reflexivity.
rewrite the current goal using Hzq0 (from left to right).
An exact proof term for the current goal is Hq0p0.
∎