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×M→M,
  3. e is an element of M (called the identity),
    satisfying the following axioms:
  4. Associativity:
    For all a,b,c∈M,(a⋅b)⋅c=a⋅(b⋅c).
  5. Identity:
    For all a∈M,e⋅a=a⋅e=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 n∈N is a unique product of primes, n=∏ppap. (If 0∈N, 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 X→X, ∘ is function composition, and idX is the identity function.

Related: group as a category