Let A, X, Y, f, g and a be given.
Let a0 be given.
We prove the intermediate
claim Ha_eq:
a = a0.
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 Ha_eq (from left to right).
Use reflexivity.
∎