Let A, g, a and b be given.
Assume Ha: a A.
rewrite the current goal using (apply_fun_graph A g a Ha) (from left to right).
Use reflexivity.