Monoid
It is a category with only one object.
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. - 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.