Use group axioms from two-sided local inverse identities. Choose any in the nonempty semigroup and put , . The given identities say and for every . Therefore by the right-identity property, and by the left-identity property. Thus is a two-sided identity element.
For an arbitrary , set and . Inserting into the original identities gives and . By associativity,Thus every element has a two-sided inverse element. Closure and associativity were assumed, so all the group axioms hold. No cancellation or identity was used before it had been established.