Let p, q and alpha be given.
Assume Ha.
Let beta be given.
Assume Hb H1.
Let gamma be given.
Assume H2: gamma beta.
We will prove p gammaq gamma.
Apply H1 to the current goal.
We will prove gamma alpha.
Apply Ha to the current goal.
Assume Ha1 _.
An exact proof term for the current goal is Ha1 beta Hb gamma H2.