Binary operations are where algebra becomes precise. The phrase “an operation on a set” must mean a genuine function , 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 is a function

For , the output is written . The requirement that maps into means closure is built into the definition: for all .

Remark 2.2 (Closure is not a separate axiom)

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


§2.2 Properties of binary operations

Definition 2.3 (Commutativity)

A binary operation on is commutative if

Definition 2.4 (Associativity)

A binary operation on is associative if

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 .

Definition 2.5 (Identity element)

An element is an identity for if

Definition 2.6 (Inverse)

Suppose has an identity . An element is an inverse of if


§2.3 Examples and non-examples

Example 2.7 (Standard binary operations)

OperationSetBinary op?Commutative?Associative?Identity
YesYesYes
YesYesYes
YesNoNoNone (right: )
No---------
YesYesYesNone
YesYesYesNone
(matrix)YesNo ()Yes

Example 2.8 (Subtraction is not associative)

On , subtraction is a binary operation (closed: ), but:

Since , subtraction is not associative. Also, is a right identity () but not a left identity ( for ), so there is no two-sided identity.

Example 2.9 (Division is not a binary operation on )

The rule is not defined for , and even when defined, . So is not a function. The discussion stops here.

Example 2.10 (The left-projection operation)

On any nonempty set , define . This is a binary operation:

  • Closure: . Yes.
  • Associative: , and . Yes.
  • Commutative: vs ; fails unless . Not commutative (if ).
  • Identity: Need for all . But , so for all , impossible if . No identity.

This example shows that associativity alone forces nothing about invertibility.

Example 2.11 (Max on )

On , define . Associative and commutative, with as identity (). But only has an inverse (itself), since forces . Not a group.


§2.4 Operation tables for finite sets

Definition 2.12 (Operation table / Cayley table)

For a finite set with binary operation , the operation table (or Cayley table) is the array whose -entry is .

Example 2.13 (Operation table for under addition)

Reading the table:

  • Closure: automatic (every entry is in ).
  • Commutativity: the table is symmetric across the main diagonal.
  • Identity: the row for 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 on by: , , , .

This looks like a group table (it is in fact ): under the identification , , the operation is addition mod . One can also read the group axioms directly from the table: is the identity (its row and column reproduce the header), and every element is its own inverse (, ).

But change one entry: let instead.

Now check: , but . 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 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 on has a two-sided identity, it is unique.

Theorem 2.17 (Uniqueness of inverse in an associative structure)

If is associative with identity , and 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 . If this fails, the argument collapses.


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

Theorem 2.19 (Left identity + left inverses group)

Let be an associative binary structure with a left identity (so for all ) and left inverses (for each , there exists with ). Then 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).