Let x and y be given.
Assume H1 H2.
Apply H1 to the current goal.
Use symmetry.
An exact proof term for the current goal is H2.