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