Completion settings:
Axiom: ab=1.
Defines rule #1.
Axiom: baa=acc.
Flip LHS and RHS.
Defines rule #2.