Let X, Y, f and y be given.
Apply Hbij to the current goal.
Assume Huniq.
Apply (Huniq y Hy) to the current goal.
Let x be given.
We use x to witness the existential quantifier.
We prove the intermediate
claim Hx0:
x ∈ X ∧ apply_fun f x = y.
An exact proof term for the current goal is Hx0.
∎