semigroup with two elements
Perhaps the simplest non-trivial example of a semigroup which is not a group is a particular semigroup with two elements. The underlying set of thissemigroup is and the operation is defined as follows:
It is rather easy to check that this operation is associative, as itshould be:
It is worth noting that this semigroup is commutative and has an identityelement
, which is . It is not a group because the element doesnot have an inverse
. In fact, it is not even a cancellative semigroupbecause we cannot cancel the in the equation .
This semigroup also arises in various contexts. For instance,if we choose to be the truth value ”true” and to be the truthvalue ”false” and the operation to be the logical connective ”and”,we obtain this semigroup in logic. We may also represent it by matriceslike so: