Let w be given.
Let y be given.
Let x be given.
rewrite the current goal using Hwy (from left to right).
rewrite the current goal using Hyx (from left to right).
We will
prove g (f x) ∈ X.
rewrite the current goal using H1 x (HX x Hx) (from left to right).
An exact proof term for the current goal is Hx.