Monoid
A semigroup with an identity element
Monoid
A monoid is a semigroup together with an element (called an identity element) such that for every ,
Monoids generalize groups by dropping the requirement that elements have inverses. Many monoids arise from composition of endomorphisms (self-maps).
Examples:
- is a monoid.
- is a monoid.
- For any set , the set of all functions is a monoid under composition, with identity .
- The set of all real matrices is a monoid under multiplication, with identity matrix ; it is not a group because not every matrix is invertible.