Monoid

It is a category with only one object. It is all the same than a group as a category , but you don't need to have inverses. It is the simplest category at all.

A monoid is a triple (M,,e) where:

  1. M is a set,
  2. is a binary operation (called multiplication or composition) mapping M×MM,
  3. e is an element of M (called the identity),
    satisfying the following axioms:
  4. Associativity:
    For all a,b,cM,(ab)c=a(bc).
  5. Identity:
    For all aM,ea=ae=a.

Examples of Monoids:

  1. Natural numbers under addition:
    (N,+,0) where N={0,1,2,}, + is addition, and 0 is the identity.
  2. Natural numbers under multiplication:
    (N,×,1). It is a commutative, cancellative monoid with a single unit (1); its group of fractions is Q+. By the fundamental theorem of arithmetic it is the free commutative monoid on the primes: every nN is a unique product of primes, n=ppap. (If 0N, then 0 is an absorbing element.)
  3. Strings under concatenation:
    (Σ,,ϵ) where Σ is the set of all strings over an alphabet Σ, is concatenation, and ϵ is the empty string.
  4. Non-zero real numbers under multiplication:
    (R,×,1) where R=R{0} and × is multiplication.
  5. Functions from a set to itself under composition:
    (XX,,idX) where XX is the set of all functions XX, is function composition, and idX is the identity function.

Related: group as a category