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
is a set, is a binary operation (called multiplication or composition) mapping , is an element of (called the identity),
satisfying the following axioms:- Associativity:
For all, - Identity:
For all,
Examples of Monoids:
- Natural numbers under addition:
where , is addition, and is the identity. - Natural numbers under multiplication:
. It is a commutative, cancellative monoid with a single unit ( ); its group of fractions is . By the fundamental theorem of arithmetic it is the free commutative monoid on the primes: every is a unique product of primes, . (If , then is an absorbing element.) - Strings under concatenation:
where is the set of all strings over an alphabet , is concatenation, and is the empty string. - Non-zero real numbers under multiplication:
where and is multiplication. - Functions from a set to itself under composition:
where is the set of all functions , is function composition, and is the identity function.
Related: group as a category