Binary operations are where algebra becomes precise. The phrase “an operation on a set” must mean a genuine function S×SSS \times S \to S, and that single statement already packages closure. This chapter isolates the properties of operations before the full group axioms appear.


§2.1 The definition

Definition 2.1 (Binary operation)

A binary operation on a set SS is a function

:S×SS.\ast : S \times S \to S.

For (a,b)S×S(a, b) \in S \times S, the output is written aba \ast b. The requirement that \ast maps into SS means closure is built into the definition: abSa \ast b \in S for all a,bSa, b \in S.

Remark 2.2 (Closure is not a separate axiom)

When we say ”\ast is a binary operation on SS,” we have already asserted closure. If a proposed rule sends some pair outside SS or is not defined on some pair, then it is not a binary operation on SS. The discussion should stop there, before checking any further properties.


§2.2 Properties of binary operations

Definition 2.3 (Commutativity)

A binary operation \ast on SS is commutative if

ab=bafor all a,bS.a \ast b = b \ast a \quad \text{for all } a, b \in S.

Definition 2.4 (Associativity)

A binary operation \ast on SS is associative if

(ab)c=a(bc)for all a,b,cS.(a \ast b) \ast c = a \ast (b \ast c) \quad \text{for all } a, b, c \in S.

Figure: associativity compares the two ways of multiplying a triple.

The diagram says that whether we combine the first two entries first or the last two first, we must land at the same element of SS.

Definition 2.5 (Identity element)

An element eSe \in S is an identity for \ast if

ea=ae=afor all aS.e \ast a = a \ast e = a \quad \text{for all } a \in S.

Definition 2.6 (Inverse)

Suppose \ast has an identity ee. An element bSb \in S is an inverse of aSa \in S if

ab=ba=e.a \ast b = b \ast a = e.

§2.3 Examples and non-examples

Example 2.7 (Standard binary operations)

OperationSetBinary op?Commutative?Associative?Identity
a+ba + bZ\mathbb{Z}YesYesYes00
aba \cdot bZ\mathbb{Z}YesYesYes11
aba - bZ\mathbb{Z}YesNoNoNone (right: 00)
a/ba / bZ\mathbb{Z}No---------
max(a,b)\max(a,b)Z\mathbb{Z}YesYesYesNone
gcd(a,b)\gcd(a,b)Z+\mathbb{Z}^+YesYesYesNone
ABAB (matrix)Mn(R)M_n(\mathbb{R})YesNo (n2n \geq 2)YesInI_n

Example 2.8 (Subtraction is not associative)

On Z\mathbb{Z}, subtraction is a binary operation (closed: abZa - b \in \mathbb{Z}), but:

(53)1=1,5(31)=3.(5 - 3) - 1 = 1, \qquad 5 - (3 - 1) = 3.

Since 131 \neq 3, subtraction is not associative. Also, 00 is a right identity (a0=aa - 0 = a) but not a left identity (0a=aa0 - a = -a \neq a for a0a \neq 0), so there is no two-sided identity.

Example 2.9 (Division is not a binary operation on Z\mathbb{Z})

The rule a/ba / b is not defined for b=0b = 0, and even when defined, 1/2Z1/2 \notin \mathbb{Z}. So /:Z×ZZ/ : \mathbb{Z} \times \mathbb{Z} \to \mathbb{Z} is not a function. The discussion stops here.

Example 2.10 (The left-projection operation)

On any nonempty set SS, define ab=aa \ast b = a. This is a binary operation:

  • Closure: ab=aSa \ast b = a \in S. Yes.
  • Associative: (ab)c=ac=a(a \ast b) \ast c = a \ast c = a, and a(bc)=ab=aa \ast (b \ast c) = a \ast b = a. Yes.
  • Commutative: ab=aa \ast b = a vs ba=bb \ast a = b; fails unless a=ba = b. Not commutative (if S2|S| \geq 2).
  • Identity: Need ea=ae \ast a = a for all aa. But ea=ee \ast a = e, so e=ae = a for all aa, impossible if S2|S| \geq 2. No identity.

This example shows that associativity alone forces nothing about invertibility.

Example 2.11 (Max on {0,1,2}\{0, 1, 2\})

On S={0,1,2}S = \{0, 1, 2\}, define ab=max{a,b}a \ast b = \max\{a, b\}. Associative and commutative, with 00 as identity (max{0,a}=a\max\{0, a\} = a). But only 00 has an inverse (itself), since max{a,b}=0\max\{a, b\} = 0 forces a=b=0a = b = 0. Not a group.


§2.4 Operation tables for finite sets

Definition 2.12 (Operation table / Cayley table)

For a finite set S={a1,,an}S = \{a_1, \ldots, a_n\} with binary operation \ast, the operation table (or Cayley table) is the n×nn \times n array whose (i,j)(i, j)-entry is aiaja_i \ast a_j.

Example 2.13 (Operation table for Z4\mathbb{Z}_4 under addition)

+4+_400112233
0000112233
1111223300
2222330011
3333001122

Reading the table:

  • Closure: automatic (every entry is in {0,1,2,3}\{0, 1, 2, 3\}).
  • Commutativity: the table is symmetric across the main diagonal.
  • Identity: the row for 00 reproduces the header, and so does the column.
  • Inverses: every element appears in every row (Latin square property).

Example 2.14 (A non-associative operation table)

Define \ast on {a,b}\{a, b\} by: aa=aa \ast a = a, ab=ba \ast b = b, ba=bb \ast a = b, bb=ab \ast b = a.

\astaabb
aaaabb
bbbbaa

This looks like a group table (it is in fact Z2\mathbb{Z}_2): under the identification a0a \mapsto 0, b1b \mapsto 1, the operation \ast is addition mod 22. One can also read the group axioms directly from the table: aa is the identity (its row and column reproduce the header), and every element is its own inverse (aa=aa \ast a = a, bb=ab \ast b = a).

But change one entry: let ba=ab \ast a = a instead.

\ast'aabb
aaaabb
bbaaaa

Now check: (bb)b=ab=b(b \ast' b) \ast' b = a \ast' b = b, but b(bb)=ba=ab \ast' (b \ast' b) = b \ast' a = a. Not associative. A valid-looking table does not guarantee associativity.

Remark 2.15 (Associativity cannot be read from the table at a glance)

Closure, identity, inverses, and commutativity can all be checked directly from a Cayley table. Associativity cannot: it requires checking n3n^3 triples. For small tables one checks by hand; for larger structures one inherits associativity from a known associative ambient operation.


§2.5 Uniqueness of identity and inverse

Theorem 2.16 (Uniqueness of identity)

If a binary operation \ast on SS has a two-sided identity, it is unique.

Theorem 2.17 (Uniqueness of inverse in an associative structure)

If \ast is associative with identity ee, and aSa \in S has a two-sided inverse, that inverse is unique.

Remark 2.18 (Associativity is essential for uniqueness of inverses)

Without associativity, inverses need not be unique. The proof above uses associativity in exactly one place: the regrouping b(ac)=(ba)cb \ast (a \ast c) = (b \ast a) \ast c. If this fails, the argument collapses.


§2.6 One-sided data can force two-sided data

Theorem 2.19 (Left identity + left inverses     \implies group)

Let (S,)(S, \ast) be an associative binary structure with a left identity ee (so ex=xe \ast x = x for all xx) and left inverses (for each aa, there exists \ell with a=e\ell \ast a = e). Then ee is a two-sided identity and every left inverse is a two-sided inverse.

This theorem shows how much associativity controls the algebra: purely one-sided hypotheses become two-sided.


Mastery Checklist

  • State the definition of binary operation and explain why closure is part of the definition, not a separate axiom.
  • Distinguish associativity from commutativity with examples where one holds but not the other.
  • Give a non-example where the proposed rule fails to be a binary operation (closure fails).
  • Prove uniqueness of the identity element.
  • Prove uniqueness of inverses in the presence of associativity.
  • Read a Cayley table and extract identity, inverses, and commutativity; explain why associativity cannot be read off.
  • State and explain the “left identity + left inverses” theorem (Theorem 2.19).