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