Completion settings:
Axiom: abbb=ba.
Flip LHS and RHS.
Defines rule #2.
Axiom: bbbb=b.
Defines rule #1.