Index: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Home > Monoid
In abstract algebra, a branch of mathematics, a monoid is an algebraic structure with a single, associative binary operation and an identity element. In other words, it is a unital semigroup.1 Definition
A monoid is a magma (M,*), i.e. a set M with binary operation * : M × M → M, obeying the following axioms:
- Associativity: for all a, b, c in M, (a*b)*c = a*(b*c)
- Identity element: there exists an element e in M, such that for all a in M, a*e = e*a = a.
One often sees the additional axiom
- Closure: for all a, b in M, a*b is in M
though, strictly speaking, this isn't necessary as it is implied by the notion of a binary operation.
Alternatively, a monoid is a semigroup with an identity element.
Note that a monoid satisfies all the axioms of a group with the exception of having inverses. A monoid with inverses is the same thing as a group.
A monoid whose operation is commutative is called a commutative monoid (or, less commonly, an abelian monoid).
2 Examples
- Every singleton set {x} gives rise to a one-element (trivial) monoid. For fixed x this monoid is unique, since the monoid axioms require that x*x = x in this case.
- Every group is a monoid and every abelian groupAbstract algebra Algebra Group theory In mathematics, an abelian group is a commutative group, i. a group G ) such that a b b a for all a and b in G''. Abelian groups are named after Niels Henrik Abel. Notation There are two main notational conventions fo a commutative monoid.
- Every semilatticeIn mathematical order theory, a semilattice is a partially ordered set (poset) within which all binary sets have a supremum (join) or infimum (meet), respectively. Consequently, one speaks of either a join-semilattice or a meet-semilattice . Semilattices is an idempotentIn mathematics, an idempotent element (or simply an idempotent is something that when multiplied by (for a function, composed with) itself, gives itself as a result. For example, the only two real numbers which are idempotent under multiplication are 0 an commutative monoid.
- Any semigroup S may be turned into a monoid simply by adjoining an element e not in S and defining ee = e and es = s = se for all s ∈ S. Note that this can be done recursively (i.e. if S is monoid with identity e, one obtains a new monoid S ∪ {e′} with identity e′, and so on).
- The natural numbers, N, form a commutative monoid under addition (identity element zero), or multiplication (identity element one).
- The elements of any unital ring, with addition or multiplication as the operation.
- The set of all finite strings over some fixed alphabet Σ forms a monoid with string concatenation as the operation. The empty string serves as the identity element. This monoid is denoted Σ* and is called the free monoid over Σ.
- Fix a monoid M, and consider its power set P(M) consisting of all subsets of M. A binary operation for such subsets can be defined by S * T = {s * t : s in S and t in T}. This turns P(M) into a monoid with identity element {e}.
- Let S be a set. The set of all functions S → S forms a monoid under function composition. The identity is just the identity function. If S is finite with n elements, the monoid of functions on S is finite with nn elements.
- Generalizing the previous example, let C be a category and X an object in C. The set of all endomorphisms of X, denoted EndC(X), forms a monoid under composition of morphisms. For more on the relationship between category theory and monoids see below.
Read more »