Given a theorem th, the theorem-tactic IMP_RES_TAC uses RES_CANON to
derive a canonical list of implications, each of which has the form:
   A |- u1 ==> u2 ==> ... ==> un ==> v
   A u {a1,...,ai} |- u(i+1) ==> ... ==> v