rewrite the current goal using H3 (from left to right).
rewrite the current goal using Hg2 (from left to right).
rewrite the current goal using Hg1 v H4 (from left to right).
Apply H1 to the current goal.
rewrite the current goal using H5 (from left to right).
An exact proof term for the current goal is Hf1 v H4.