Semigroup
A set equipped with an associative binary operation
Semigroup
A semigroup is a set together with an associative binary operation , meaning that for all ,
Semigroups are the weakest common algebraic setting in which repeated products are unambiguous (associativity lets you omit parentheses). A monoid is a semigroup with an identity element, and a group is a monoid in which every element has an inverse.
Examples:
- is a semigroup (addition is associative).
- is a semigroup (multiplication is associative).
- The set of all real matrices under matrix multiplication is a semigroup.
- (Edge case) If one allows empty algebraic structures, the empty set has a unique binary operation and is a semigroup, but it cannot be a monoid (no identity element exists).