Completion settings:
Axiom: aab=ba.
Flip LHS and RHS.
Defines rule #2.
Axiom: aaaaaa=1.
Defines rule #1.