Let f, x and y be given.
We will
prove pair x y ∈ f.
Let z be given.
Apply H1 to the current goal.
Let v be given.
We prove the intermediate
claim L1:
y = v.
rewrite the current goal using H2 (from left to right).
rewrite the current goal using H3 (from left to right).
We will
prove proj1 (pair x v) = v.
We prove the intermediate
claim L2:
z = pair x y.
rewrite the current goal using L1 (from left to right).
An exact proof term for the current goal is H3.
rewrite the current goal using L2 (from right to left).
An exact proof term for the current goal is Hz.
∎