Let X, f, g and x be given.
Assume Hx.
Let y be given.
We prove the intermediate
claim Hx_eq:
x = y.
rewrite the current goal using Heq (from left to right).
Use reflexivity.
rewrite the current goal using Heq (from left to right).
Use reflexivity.
rewrite the current goal using Hz_eq (from left to right).
rewrite the current goal using Hx_eq (from right to left).
Use reflexivity.
∎