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