Definition. Monoid [01C7]

A monoid is a set M together with

  • a binary operation, say \bullet \colon M\times M\to M,
  • a neutral element, say e: M,
satisfying
  • the neutral element laws: e\bullet x = x = x \bullet e, and
  • the associativity law: (x\bullet y)\bullet z = x \bullet (y\bullet z).

A monoid (M,\bullet ,e) is called commutative when the commutativity law x\bullet y = y \bullet x is satisfied.