Monoid

A semigroup with an identity element
Monoid

A monoid is a (M,)(M,\cdot) together with an element eMe\in M (called an identity element) such that for every aMa\in M, ea=aandae=a. e\cdot a = a \quad\text{and}\quad a\cdot e = a.

Monoids generalize by dropping the requirement that elements have inverses. Many monoids arise from of endomorphisms (self-maps).

Examples:

  • (N,+,0)(\mathbb{N},+,0) is a monoid.
  • (N,×,1)(\mathbb{N},\times,1) is a monoid.
  • For any set XX, the set of all XXX\to X is a monoid under composition, with identity idX\mathrm{id}_X.
  • The set of all n×nn\times n real matrices is a monoid under multiplication, with identity matrix InI_n; it is not a group because not every matrix is invertible.