Completion settings:
Axiom: aba=a.
Defines rule #1.
Axiom: aaab=abb.
Flip LHS and RHS.
Defines rule #2.