
Associativity makes a sequence of operations unambiguous once its input order is fixed. This is the common feature behind concatenating strings, composing functions, and adding integers.
1. From Magmas to Monoids
A magma is a nonempty set with a binary operation. A semigroup is a magma whose operation is associative. A monoid is a semigroup with a two-sided identity. Commutativity is an additional property at each level.
| Structure | Classification | Reason |
|---|---|---|
| Integers under subtraction | Magma | The two groupings of give and |
| Positive integers under addition | Semigroup | Addition is associative and the candidate identity is outside the set |
| Nonnegative integers under addition | Monoid | is an identity |
| Functions under composition | Monoid | Both groupings evaluate at to , and the identity is the identity function |
| Relations on under composition | Monoid | Relation composition is associative and the identity is |
For a nonempty alphabet , let be the nonempty finite words and all finite words. Concatenation preserves the character sequence under regrouping. Thus is the free semigroup and the free monoid on . The empty word is the identity. With two distinct letters, and exhibit failure of commutativity.
2. Consecutive Products and Powers
Associativity implies that all full parenthesizations of give the same value. Induct on . Every parenthesization splits the word into a prefix and suffix. By induction, each part takes a fixed value. If the suffix has more than one term, its value can be written as its initial product followed by . One application of associativity moves that final factor outside the product of the first terms. Induction makes that prefix independent of the original split.
Define and . Joining two runs of gives and repeating an block gives for positive . In a monoid, setting extends both formulas to nonnegative exponents. For different factors, . Rearranging the middle factors to obtain requires a reason such as .
3. Subsemigroups and Submonoids
A nonempty subset is a subsemigroup if for all . Associativity is inherited. A submonoid of a monoid also contains the identity of the ambient monoid. A nonempty intersection of subsemigroups is closed because a product of two common elements belongs to each set. An intersection of submonoids also contains the common ambient identity.
Worked example. Classify the even integers under multiplication as a subset of . Then classify in the same ambient monoid.
Show the classification
The even integers are nonempty, and remains even. They form a subsemigroup. Their identity would have to satisfy , forcing , which is outside the subset. The singleton is closed and has its own identity , since its only product is . The ambient identity is , so this singleton fails the submonoid condition.
4. Generated Subsemigroups
The subsemigroup generated by is . It is closed by the power law. Every subsemigroup containing also contains every positive power by induction, which proves minimality. A generated submonoid includes as well.
Self-check. In , compute the subsemigroup and submonoid generated by .
Show the powers
The first powers are . Multiplication by alternates between the first two values, so the generated subsemigroup is . Its ambient monoid has identity , so the generated submonoid is .
Sources
- Bernard Kolman, Robert C. Busby, and Sharon Cutler Ross, Discrete Mathematical Structures, 6th edition, Section 9.2.
- Course slides.
Updated: