Completion settings:
Axiom: aa=1.
Defines rule #1.
Axiom: bbb=bab.
Flip LHS and RHS.
Defines rule #2.