Let A and B be given.
Assume H1: (AB) (BA).
Apply H1 to the current goal.
Assume H2: AB.
Assume H3: BA.
An exact proof term for the current goal is iffI B A H3 H2.