Algebraic Structures & Axioms
00 · Symbol Glossary
Every symbol you'll see in this chapter, named and explained. When a new one appears, refer back here.
A placeholder symbol for "some operation," used when we want to talk about structure without committing to , , or any specific rule. just means "combine and using whatever operation we've fixed."
A set paired with an operation defined on it. The parentheses notation emphasizes that a structure is both the set and the rule together — and are different structures on the same underlying set.
The standard number systems, each containing the previous one: . These will be our default examples until we build new structures from scratch.
The set of remainders left after dividing by : , equipped with addition (and multiplication) "wrapping around" at . Built formally in Section 06 — it will reappear in every later chapter.
Reads " is congruent to modulo ." Means divides — equivalently, and leave the same remainder when divided by . Example: , the arithmetic behind clock time.
A generic symbol for "is related to." means and are related in whatever way we've defined — not necessarily equal, but grouped together.
The set of every element related to under : . All elements in are considered "the same" for the purposes of the relation.
The set of all equivalence classes of under — a new set whose elements are themselves sets. Read " mod tilde." This exact construction reappears as quotient groups and quotient rings in later chapters.
The "do nothing" element of a structure: combining with anything leaves that thing unchanged. Additive identity is usually written , multiplicative identity ; is the generic symbol used when the operation is unspecified.
The element that "undoes" : combining with produces the identity. Written for addition, or for multiplication.
Quantifiers from formal logic. (exists-unique) is stronger than : it asserts existence and asserts there is only one such object — exactly the claim made by uniqueness theorems in Section 03.
Biconditional — both directions of implication hold. means implies and implies ; they are logically equivalent statements.
reads " divides ," meaning for some integer — no remainder. Distinct from the vertical bar used in set-builder notation, but context always makes the meaning clear.
01 · What Is Algebra, Really?
High-school algebra is about solving equations with numbers. Abstract algebra asks a different question: what makes the arithmetic of numbers work — and where else does that same working show up?
Addition of integers, multiplication of nonzero reals, composition of functions, symmetries of a triangle, shuffles of a deck of cards — these look unrelated. But strip away the specific objects and look only at the rules the combining operation obeys, and the same small list of patterns keeps reappearing: closure, associativity, an identity, inverses. Abstract algebra studies those patterns directly, as objects in their own right, so that a theorem proved once (say, "identities are unique") applies instantly to every structure satisfying the pattern — numbers, symmetries, matrices, polynomials, all at once.
This chapter builds the vocabulary. Nothing here is a new discovery about numbers; it is the scaffolding that lets Chapter 02 onward talk about groups, and eventually rings and fields, with total precision.
02 · Binary Operations
A binary operation on a set is a rule that takes any two elements of (in order) and produces a single output that must also land in :
— the set of all ordered pairs with .
— "maps to." The pair is sent to the single output .
The requirement that the output land back in is called closure, and it is not automatic — it is a real condition that can fail.
Addition on : , and sends . Closed — the sum of two integers is always an integer.
Composition of functions : , and , the function . Closed — composing two real functions gives another real function.
Is subtraction a binary operation on the natural numbers ? Take , : . The output escapes the set. Subtraction is not a binary operation on — it fails closure, even though it's a perfectly good operation on .
This is why "is this closed?" is always the first question to ask about a candidate structure, and why so many exercises in this subject are disguised closure checks.
For a finite set, a binary operation can be given entirely by a table, with no formula at all. Let and define by:
Read row-then-column: (row , column ). Every entry is in , so this is closed — and it is a complete, legitimate binary operation even though it has no numerical meaning at all. This table happens to describe the two symmetries of a non-square rectangle: = "do nothing," = "flip." You will meet it again, formally, in Chapter 02.
03 · Associativity and Commutativity
Closure alone gives very little to work with. Two further properties, each independently optional, are what make an operation usable.
An operation on is associative if, for all :
In words: when combining three (or more) elements in a fixed order, it does not matter which adjacent pair you combine first. Parentheses become optional, and is unambiguous.
, but . Different answers — subtraction on is not associative. This is exactly why is only unambiguous by convention (read left to right), not by any inherent property of subtraction.
An operation on is commutative if, for all :
Order of the two inputs does not matter. Commutativity and associativity are logically independent — a structure can have either, both, or neither.
Matrix multiplication on real matrices is associative ( always) but not commutative in general. For instance:
Different results depending on order. This single example is the template for every noncommutative group you will meet later — symmetries, permutations, and matrices all behave this way, and it is precisely this failure of commutativity that makes group theory richer than arithmetic.
but — usually different functions. Try , : , while . Order of composition matters, exactly as order of matrix multiplication does — not a coincidence, since matrices represent linear functions.
04 · Identity Elements and Inverses
Let be a structure. An element is an identity for if:
Combining with anything changes nothing. Both orders must give back — this matters when is not commutative.
: identity is , since .
: identity is , since .
: identity is , since for every .
Before defining inverses, it is worth proving something that looks obvious but is not free: a structure cannot have two different identities.
If has an identity, it has exactly one.
Suppose and are both identities for on . Since is an identity, applying it to gives:
Since is also an identity, applying it to gives:
The left-hand sides of both equations are literally the same expression, , so the right-hand sides must be equal: . Hence any two identities coincide — there is at most one.
This "combine the two candidates and read the answer two ways" trick is the single most common proof technique in algebra. You will see it again to prove inverses are unique, homomorphic images of identities are identities, and much more. Learn to recognize the shape: two things are each assumed to have property ; combine them; each assumption gives a different-looking expression for the same combination; equate.
Let have identity . An element is an inverse of if:
If such a exists, is called invertible, and is written (or when is addition).
In , identity is . Does have an inverse? We'd need with — but . has no multiplicative inverse in . Only and are invertible in . Invertibility is a per-element property, not automatic just because an identity exists — this is precisely the gap between a monoid and a group, made formal in Section 05.
If is associative and has identity , then every invertible has exactly one inverse.
Suppose and are both inverses of : and . Compute two ways, using associativity to regroup freely.
Group the left two first: , using and then the identity law.
Group the right two first: , using and then the identity law.
Both computations evaluate the same three-fold product — associativity guarantees the grouping doesn't change the value — so the two results must agree: . Hence the inverse is unique.
Look closely: the proof needed to regroup , which is only legal because is associative. Without associativity, "the inverse" would not even be well-defined language — there could genuinely be several unrelated elements satisfying . This is why every structure from here on (semigroups, monoids, groups, rings) builds associativity in from the start.
05 · A Hierarchy of Structures
Closure, associativity, identity, and inverses are four independent ingredients. Naming which subset a structure satisfies gives a standard hierarchy — a preview of names that will be defined properly, one at a time, starting with groups in Chapter 02.
| Structure | Closure | Associative | Identity | Inverses | Example |
|---|---|---|---|---|---|
| Magma | ✓ | — | — | — | restricted to stay nonnegative, informally |
| Semigroup | ✓ | ✓ | — | — | — no identity if 's convention used |
| Monoid | ✓ | ✓ | ✓ | — | — identity , but has no inverse |
| Group | ✓ | ✓ | ✓ | ✓ | — identity , inverse of is |
Each row adds a requirement to the row above — a group is a monoid in which every element happens to be invertible. This is why stalls at "monoid": it has an identity () but most elements lack inverses. Swapping to upgrades all the way to a group, since every nonzero rational has a reciprocal.
: closed, associative, identity , every has inverse . Group.
: closed, associative, identity , but has no inverse in . Monoid, not a group.
— the even integers under addition: sum of two evens is even (closed), associative (inherited from ), identity , inverse of is . Group. Notice this group lives inside — exactly the idea behind subgroups in Chapter 03.
06 · Equivalence Relations & Partitions
One more piece of machinery is needed before this chapter can build , and it will resurface, unchanged, when quotient groups and quotient rings are built in later chapters: the idea of declaring certain elements "the same" without them being literally equal.
A relation on a set is an equivalence relation if for all :
Reflexive. .
Symmetric. .
Transitive. and .
Ordinary equality "" on any set satisfies all three: ; ; . Equivalence relations generalize equality by relaxing which elements count as interchangeable, while keeping the same three structural guarantees.
Define on by ( divides ). Reflexive: yes, . Transitive: yes. Symmetric: no — but . Failing even one of the three conditions disqualifies a relation from being an equivalence relation, no matter how natural it looks.
For , the equivalence class of is:
the set of everything related to . Note always, by reflexivity.
If is an equivalence relation on , the equivalence classes are pairwise disjoint or identical, and their union is all of . Equivalently: every element of lies in exactly one equivalence class.
Union is everything. For any , reflexivity gives , so . Hence every element belongs to some class, and the union of all classes is .
Distinct classes don't overlap. Suppose — some satisfies and . By symmetry, . By transitivity applied to and , we get .
Now take any , so . Since , transitivity gives , so . This shows . The symmetric argument (swap the roles of and ) gives . Hence .
So two classes are either completely disjoint or exactly equal — never partially overlapping. Combined with the first part, every element sits in precisely one class, i.e. the classes partition .
This exact three-line argument — "shared element forces the classes to merge" — is the mechanism behind cosets partitioning a group in Chapter 04, and behind the fact that quotient structures (quotient groups, quotient rings) are always built from a genuine partition, never from an ambiguous or overlapping grouping. Once you've internalized this proof, several later theorems become "the same proof, different notation."
07 · Modular Arithmetic — A Running Example
Everything above becomes concrete in a single construction that will recur in every remaining chapter of this subject.
Fix a positive integer . For , say is congruent to modulo , written , if:
Equivalently, and leave the same remainder when divided by .
For fixed , the relation is an equivalence relation on .
Reflexive. , so ; hence .
Symmetric. If , then for some integer . Then , and , so ; hence .
Transitive. If and , then and for integers . Adding: , and , so ; hence .
By Theorem 1.3, congruence mod partitions into equivalence classes. This partition is the object we actually want.
The set of equivalence classes of under is denoted :
There are exactly classes, one per possible remainder, since every integer is congruent to its remainder on division by , and two different remainders in are never congruent to each other (their difference is smaller than in absolute value and nonzero, so cannot divide it).
We now want to add and multiply classes, not just integers. The natural definition is — but this is only legitimate if the answer does not depend on which representative of each class we happened to pick.
If and , then:
Consequently, and are legitimate operations on — the result does not depend on the choice of representative.
By hypothesis, and for some integers .
Addition. , and . So , giving .
Multiplication. Write and . Then:
The quantity is an integer, so is a multiple of . Hence .
Since the congruence class of the sum/product depends only on the classes of and — not on which representative was used to compute it — the operations and are unambiguous rules on .
Whenever a later chapter defines an operation on a quotient object — a quotient group , a quotient ring — this exact question resurfaces: does the formula depend on which representative you picked? The proof pattern here (write the difference as a multiple of , expand, factor back out) is the template used again, essentially unchanged, in Chapter 05 and Chapter 12.
Writing classes as bare numbers for brevity (each really means ):
| 0 | 1 | 2 | 3 | |
|---|---|---|---|---|
| 0 | 0 | 1 | 2 | 3 |
| 1 | 1 | 2 | 3 | 0 |
| 2 | 2 | 3 | 0 | 1 |
| 3 | 3 | 0 | 1 | 2 |
Every row and column contains each element exactly once, and the table is symmetric across the diagonal (commutative). Identity is (its row/column reproduces the header). Every element has an inverse: , , . This is satisfying every group axiom you will meet formally in Chapter 02 — it is, in fact, the very first genuinely new group in this course, distinct from anything built purely from , , or .
Look at the multiplication table restricted to : . Two nonzero classes multiplied together gave the "zero" class — something that never happens in , , or . Consequently has no multiplicative inverse in : there is no with (checking gives products — never ). So is a monoid (identity ) but not a group. This "zero times nonzero equals zero" failure, called a zero divisor, becomes an entire topic of its own — it's precisely why Chapter 15 needs to distinguish domains from general rings.
08 · Exercises
Check the three conditions in order: does the output always land back in ? Try a potential counterexample with small numbers before assuming yes.
Let , so , for integers . Then , and , so . Closed.
Associativity and commutativity are inherited from since and the addition rule is the same operation, just restricted.
Identity: , and . Identity exists.
Inverses: for , , and . Every element has an inverse.
All four properties hold: is a group.
Is — the multiples of 3 under addition — a group? Check closure, associativity, identity, and inverses explicitly.
Apply Theorem 1.2's proof directly to this specific structure: what is here, and can you exhibit two candidate inverses that must be shown equal?
In , the identity is . Suppose and both satisfy and . Then, exactly as in Theorem 1.2's proof:
Multiplication of real numbers is associative, so both expressions equal , forcing . This confirms directly what Theorem 1.2 already guarantees in general: real multiplicative inverses () are unique.
Without quoting Theorem 1.2 by name, reprove directly that inverses in are unique.
Reflexive and transitive are usually easy. For symmetric, try to find two integers where but not .
Define to mean on . Reflexive: , true. Transitive: , true. Symmetric: would need for all — false, e.g. but .
Not an equivalence relation — it fails symmetry. ( is instead an example of a partial order, a different structure entirely.)
Is an equivalence relation on ? Justify by checking all three conditions.
Find the remainder of each number after division by 5, then group numbers sharing the same remainder.
Remainders mod 5: . . . . .
So all land in , and alone lands in . Two classes appear: and , consistent with Theorem 1.3 — every element falls in exactly one class, and elements in the same class really do share a remainder.
Sort into equivalence classes under .
Build the full multiplication table for mentally or on paper, and check each row for whether appears.
Multiplying every nonzero pair mod 5: , , , , and each element times itself: , , .
Checking inverses: (); (); (); ().
Every nonzero element of has a multiplicative inverse — unlike . The difference: is prime, so no nonzero remainder shares a common factor with , and (as Chapter 15 will make precise) that is exactly the condition for multiplicative inverses to exist mod .
In , does every nonzero element have a multiplicative inverse? Find each one, or explain why one fails to exist.
Mimic the two-column proof of Theorem 1.1 exactly, but swap "identity" for "absorbing element": what equation does give you, twice, in two different ways?
Call absorbing if for every . Suppose and are both absorbing. Apply 's property to : . Apply 's property to : . The left-hand sides are the same expression, so the right-hand sides agree: .
An absorbing element, if one exists, is unique — by the identical proof strategy as Theorem 1.1, with the roles of the defining equation swapped.
An element is called absorbing for if for every (e.g. is absorbing for multiplication: ). Prove that if a structure has an absorbing element, it has only one.
09 · Chapter Summary
| Concept | Statement |
|---|---|
| Binary operation | ; must satisfy closure |
| Associative | |
| Commutative | |
| Identity | ; unique when it exists (Thm 1.1) |
| Inverse | ; unique under associativity (Thm 1.2) |
| Hierarchy | Magma Semigroup Monoid Group |
| Equivalence relation | Reflexive, symmetric, transitive |
| Equivalence classes | Partition the set (Thm 1.3) |
| Equivalence classes of under | |
| Well-definedness on | don't depend on choice of representative (Thm 1.5) |
Next: Chapter 02 — Groups formalizes the "closure + associative + identity + inverses" row of the hierarchy table above as a single object of study, and starts building the standard library of examples: symmetric groups, dihedral groups, and revisited from a group-theoretic point of view.