
The same formula can define different structures when its underlying set changes. Subtraction is a binary operation on the integers, whereas subtracting two nonnegative integers can take us outside the nonnegative integers. Every law and every special element below is relative to the chosen set and operation.
1. Operations and Closure
An algebraic structure consists of a nonempty set together with specified operations. An internal -ary operation is a total function . In particular, a unary operation takes one input, and a binary operation takes an ordered pair. Totality requires exactly one output for each input pair. Closure requires that the output belong to .
| Rule and domain | Binary operation? | Reason |
|---|---|---|
| Subtraction on | Yes | Every difference is an integer |
| Subtraction on | No | is outside the set |
| Division on | No | A zero denominator leaves a pair without an output |
| Division on | Yes | Every quotient of two nonzero rationals is a nonzero rational |
For a finite set, a table gives the result of the row element operated on by the column element. With elements there are ordered pairs and choices per cell, so there are binary operations for . A two-element set has such operations.
2. Laws of One Operation
| Law | Test on arbitrary elements of |
|---|---|
| Commutativity | |
| Associativity | |
| Idempotence | |
| Left cancellation | implies |
| Right cancellation | implies |
Commutativity controls input order. Associativity controls how a sequence with fixed input order is grouped. In a table, commutativity gives symmetry across the diagonal, idempotence makes each diagonal entry equal to its row label, and left or right cancellation requires distinct entries within each row or column, respectively. To prove associativity from a table, compare the two evaluations for every ordered triple or derive a formula that establishes the identity for all triples.
Example. Determine the laws for on a set with at least two elements. Both groupings of three inputs return , so the operation is associative. Its diagonal returns , so it is idempotent. For , and , so it fails commutativity. Every row is constant, which defeats left cancellation. Each column lists the row labels, which proves right cancellation.
3. Laws Relating Several Operations
An operation distributes over on the left when , and on the right when . For two commutative operations, and on illustrate mutual distributivity.
The absorption identities on are and . With complement relative to , De Morgan’s laws give and . The first law follows because an element outside must lie outside both sets. The second follows because an element outside must lie outside at least one of them.
4. Identity, Absorbing Element, and Inverse
| Element | Defining condition |
|---|---|
| Two-sided identity | for every |
| Two-sided absorbing element | for every |
| Two-sided inverse of relative to |
In a table an identity’s row and column reproduce the input labels. An absorbing element’s row and column both contain a single repeated value. A left identity and a right identity , if both exist, coincide because . Two-sided absorbing elements are likewise unique, by evaluating their product. Once associativity and an identity are available, a left inverse and a right inverse of one element coincide because .
Worked example. On , define . Find its special elements and determine which elements can be cancelled.
Show the calculation
Write . This is a bijection on , and . Closure holds by rational arithmetic. Injectivity of transfers associativity and commutativity from multiplication. The identity is , and the absorbing element is . For , solving gives . The absorbing element has no inverse.
If and , then gives . At , both sides are always , so the operation fails the cancellation laws on all of . Finally, becomes , so the idempotent elements are exactly and .
Sources
- Bernard Kolman, Robert C. Busby, and Sharon Cutler Ross, Discrete Mathematical Structures, 6th edition, Sections 1.6 and 9.1.
- Course slides.
Updated: