Monoid - Definition

Definition

A monoid is a set, S, together with a binary operation "•" (pronounced "dot" or "times") that satisfies the following three axioms:

Closure
For all a, b in S, the result of the operation ab is also in S.
Associativity
For all a, b and c in S, the equation (ab) • c = a • (bc) holds.
Identity element
There exists an element e in S, such that for all elements a in S, the equation ea = ae = a holds.

And in mathematical notation we can write these as

  • Closure: ,
  • Associativity: and
  • Identity element: .

More compactly, a monoid is a semigroup with an identity element. It can also be thought of as a magma with associativity and identity. A monoid with invertibility property is a group.

The symbol for the binary operation is commonly omitted; for example the monoid axioms require and . This does not necessarily mean the variables are numbers being multiplied, any operation or elements may be used if they are well defined.

Read more about this topic:  Monoid

Famous quotes containing the word definition:

    The very definition of the real becomes: that of which it is possible to give an equivalent reproduction.... The real is not only what can be reproduced, but that which is always already reproduced. The hyperreal.
    Jean Baudrillard (b. 1929)

    The definition of good prose is proper words in their proper places; of good verse, the most proper words in their proper places. The propriety is in either case relative. The words in prose ought to express the intended meaning, and no more; if they attract attention to themselves, it is, in general, a fault.
    Samuel Taylor Coleridge (1772–1834)

    ... if, as women, we accept a philosophy of history that asserts that women are by definition assimilated into the male universal, that we can understand our past through a male lens—if we are unaware that women even have a history—we live our lives similarly unanchored, drifting in response to a veering wind of myth and bias.
    Adrienne Rich (b. 1929)