Exercise 26d.

Let be a semigroup with a finite number of elements. Suppose that the two cancellation laws hold in ; that is, if either or , then . Show that is a group.


Proof (faulty, read below)

Note: This proof is wrong, but I'm leaving it for educational purposes. Feel free to find the mistake. Link to correct solution and more comments below in the Additional thoughts section.

Once again, we need to prove that the group axioms are true for .

  1. Closure: is a semigroup, so by definition closure holds in .
  2. Associativity: Same as closure.
  3. Existence of the identity element: Let's assume , this means . Consider now the following set We know the following two things: . That is not empty we know because . And we know is a subset of since we have, by induction and closure of the semigroup, . Now, by Dirichlet's (aka pigeonhole) principle, since is finite, and is infinite, there must exist for which we have Expanding the semigroup products on both sides of this equality: Above we used the associativity of the semigroup, and the left cancellation law. So, we found an element that leaves invariant, i.e. we proved that every element has its own identity. To prove that this really is the identity element, it will suffice to prove that they are all the same element. More precisely, we want to show , and we can do this by induction. For we know it's true. Now we assume it's true for . Then for we have , the last equality being true by the inductive hypothesis. Thus we've shown that all the elements have the one and the same identity element, hence has the identity element.

  4. Existence of an inverse for all elements of : Continuing the reasoning from above, consider the following the above equalities being true by associativity. But this tells us that for an arbitrary its inverse is . It just remains to consider what if since then the inverse would be and we don't know whether this element is in . For this case, we would have , in particular , thus in this case as well is invertible.

We proved everything that needed to be proved, the proof is complete.

\(\square\)

Additional thoughts

If you just want the correct and arguably better solution of this exercise, here you go:A finite, cancellative semigroup is a group. As in for the mentioned mistake, I believe that we showed that only the set has the identity element, but we didn't do so for the whole semigroup . Only after typing up this proof I realized this mistake, so I decided to leave it as an example of a faulty proof, for educational purposes. Here is also a link to the question about this proof I asked on MSE that helped me understand some previous insufficiencies of the proof (check the discussion in the comments).