← back to algebra

Groups

Tom Judson · GFDL · Abstract Algebra: Theory and Applications, Ch. 1

A group is a set with one operation that satisfies four axioms: closure, associativity, identity, and inverses. It is the simplest algebraic structure that captures symmetry. Every symmetry you will ever encounter is a group.

The four axioms

A set G with a binary operation * is a group if: (1) for all a, b in G, a * b is in G (closure); (2) for all a, b, c in G, (a * b) * c = a * (b * c) (associativity); (3) there exists an element e in G such that e * a = a * e = a (identity); (4) for every a in G, there exists a⁻¹ such that a * a⁻¹ = a⁻¹ * a = e (inverse).

Scheme

Symmetries of a triangle

The symmetries of an equilateral triangle form a group with six elements: three rotations (0, 120, 240 degrees) and three reflections. This is the symmetric group S3, the smallest non-abelian group. Composing two symmetries gives another symmetry.

1 2 3 e (identity) 3 1 2 r (120°) 1 3 2 s (reflect)
Scheme

Cayley tables

A wpCayley table records every product in a finite group. Each row and each column is a permutation of the group elements (this is a consequence of the group axioms). Reading the table tells you everything about the group.

Scheme

Notation reference

Math Scheme Python Meaning
a * b(op a b)op(a, b)Group operation
eidentityidentityIdentity element
a⁻¹(inverse a)inverse(a)Inverse of a
S₃'(3 1 2)[3,1,2]Permutation
Z₄(modulo (+ a b) 4)(a+b)%4Integers mod 4
Neighbors

Algebra track

Category theory connections

  • Milewski Ch.3 — monoids are groups without inverses; a group is a one-object category where every morphism is invertible

Translation notes

Judson's textbook opens with preliminaries on sets and equivalence relations, which we skip. The treatment here covers chapters 3 (Groups) and 4 (Cyclic Groups) of the textbook, compressing the core definitions into executable examples. S3 is built from list permutations, which is less elegant than Judson's cycle notation but easier to run in Scheme. All groups here are finite.