窗边倒牛奶的女仆、面包与陶罐
倒牛奶的女仆 · 约翰内斯·维米尔 / Wikimedia Commons

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 SS together with specified operations. An internal nn-ary operation is a total function Sn→SS^n\to S. In particular, a unary operation takes one input, and a binary operation ∗:S×S→S\ast:S\times S\to S takes an ordered pair. Totality requires exactly one output for each input pair. Closure requires that the output belong to SS.

Rule and domainBinary operation?Reason
Subtraction on Z\mathbb ZYesEvery difference is an integer
Subtraction on Z≥0\mathbb Z_{\ge 0}No1−2=−11-2=-1 is outside the set
Division on Q\mathbb QNoA zero denominator leaves a pair without an output
Division on Q∖{0}\mathbb Q\setminus\{0\}YesEvery 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 nn elements there are n2n^2 ordered pairs and nn choices per cell, so there are nn2n^{n^2} binary operations for n≥1n\ge1. A two-element set has 24=162^4=16 such operations.

2. Laws of One Operation

LawTest on arbitrary elements of SS
Commutativitya∗b=b∗aa\ast b=b\ast a
Associativity(a∗b)∗c=a∗(b∗c)(a\ast b)\ast c=a\ast(b\ast c)
Idempotencea∗a=aa\ast a=a
Left cancellationa∗b=a∗ca\ast b=a\ast c implies b=cb=c
Right cancellationb∗a=c∗ab\ast a=c\ast a implies b=cb=c

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 a∗b=aa\ast b=a on a set with at least two elements. Both groupings of three inputs return aa, so the operation is associative. Its diagonal returns aa, so it is idempotent. For a≠ba\ne b, a∗b=aa\ast b=a and b∗a=bb\ast a=b, 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 ∗\ast distributes over ∘\circ on the left when a∗(b∘c)=(a∗b)∘(a∗c)a\ast(b\circ c)=(a\ast b)\circ(a\ast c), and on the right when (b∘c)∗a=(b∗a)∘(c∗a)(b\circ c)\ast a=(b\ast a)\circ(c\ast a). For two commutative operations, ∪\cup and ∩\cap on P(U)\mathcal P(U) illustrate mutual distributivity.

The absorption identities on P(U)\mathcal P(U) are X∪(X∩Y)=XX\cup(X\cap Y)=X and X∩(X∪Y)=XX\cap(X\cup Y)=X. With complement relative to UU, De Morgan’s laws give (X∪Y)c=Xc∩Yc(X\cup Y)^c=X^c\cap Y^c and (X∩Y)c=Xc∪Yc(X\cap Y)^c=X^c\cup Y^c. The first law follows because an element outside X∪YX\cup Y must lie outside both sets. The second follows because an element outside X∩YX\cap Y must lie outside at least one of them.

4. Identity, Absorbing Element, and Inverse

ElementDefining condition
Two-sided identity eee∗x=x∗e=xe\ast x=x\ast e=x for every x∈Sx\in S
Two-sided absorbing element zzz∗x=x∗z=zz\ast x=x\ast z=z for every x∈Sx\in S
Two-sided inverse bb of aa relative to eea∗b=b∗a=ea\ast b=b\ast a=e

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 eLe_L and a right identity eRe_R, if both exist, coincide because eL∗eR=eR=eLe_L\ast e_R=e_R=e_L. Two-sided absorbing elements are likewise unique, by evaluating their product. Once associativity and an identity are available, a left inverse bb and a right inverse cc of one element aa coincide because b=b∗(a∗c)=(b∗a)∗c=cb=b\ast(a\ast c)=(b\ast a)\ast c=c.

Worked example. On Q\mathbb Q, define a∗b=a+b+2aba\ast b=a+b+2ab. Find its special elements and determine which elements can be cancelled.

Show the calculation

Write h(a)=1+2ah(a)=1+2a. This is a bijection on Q\mathbb Q, and h(a∗b)=(1+2a)(1+2b)h(a\ast b)=(1+2a)(1+2b). Closure holds by rational arithmetic. Injectivity of hh transfers associativity and commutativity from multiplication. The identity is 0=h−1(1)0=h^{-1}(1), and the absorbing element is −1/2=h−1(0)-1/2=h^{-1}(0). For a≠−1/2a\ne-1/2, solving a+b+2ab=0a+b+2ab=0 gives b=−a/(1+2a)b=-a/(1+2a). The absorbing element has no inverse.

If a∗b=a∗ca\ast b=a\ast c and a≠−1/2a\ne-1/2, then (1+2a)(b−c)=0(1+2a)(b-c)=0 gives b=cb=c. At a=−1/2a=-1/2, both sides are always −1/2-1/2, so the operation fails the cancellation laws on all of Q\mathbb Q. Finally, a∗a=aa\ast a=a becomes a(1+2a)=0a(1+2a)=0, so the idempotent elements are exactly 00 and −1/2-1/2.

Sources

  • Bernard Kolman, Robert C. Busby, and Sharon Cutler Ross, Discrete Mathematical Structures, 6th edition, Sections 1.6 and 9.1.
  • Course slides.

Updated:

AlgebraBinary Operations