Chapter 01
Medium

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.

$\ast$Star — generic binary operation

A placeholder symbol for "some operation," used when we want to talk about structure without committing to ++, ×\times, or any specific rule. aba \ast b just means "combine aa and bb using whatever operation we've fixed."

$(S, \ast)$Algebraic structure

A set SS paired with an operation \ast defined on it. The parentheses notation emphasizes that a structure is both the set and the rule together — (Z,+)(\mathbb{Z}, +) and (Z,×)(\mathbb{Z}, \times) are different structures on the same underlying set.

$\mathbb{Z}, \mathbb{Q}, \mathbb{R}, \mathbb{C}$Integers, rationals, reals, complex numbers

The standard number systems, each containing the previous one: ZQRC\mathbb{Z} \subset \mathbb{Q} \subset \mathbb{R} \subset \mathbb{C}. These will be our default examples until we build new structures from scratch.

$\mathbb{Z}_n$Integers mod n

The set of remainders left after dividing by nn: {0,1,2,,n1}\{0, 1, 2, \ldots, n-1\}, equipped with addition (and multiplication) "wrapping around" at nn. Built formally in Section 06 — it will reappear in every later chapter.

$a \equiv b \pmod n$a is congruent to b mod n

Reads "aa is congruent to bb modulo nn." Means nn divides aba - b — equivalently, aa and bb leave the same remainder when divided by nn. Example: 175(mod12)17 \equiv 5 \pmod{12}, the arithmetic behind clock time.

$\sim$Tilde — a relation, often an equivalence relation

A generic symbol for "is related to." aba \sim b means aa and bb are related in whatever way we've defined — not necessarily equal, but grouped together.

$[a]$Equivalence class of a

The set of every element related to aa under \sim: [a]={xSxa}[a] = \{x \in S \mid x \sim a\}. All elements in [a][a] are considered "the same" for the purposes of the relation.

$S/\!\sim$Quotient set

The set of all equivalence classes of SS under \sim — a new set whose elements are themselves sets. Read "SS mod tilde." This exact construction reappears as quotient groups and quotient rings in later chapters.

$e$Identity element

The "do nothing" element of a structure: combining ee with anything leaves that thing unchanged. Additive identity is usually written 00, multiplicative identity 11; ee is the generic symbol used when the operation is unspecified.

$a^{-1}$Inverse of a

The element that "undoes" aa: combining aa with a1a^{-1} produces the identity. Written a-a for addition, a1a^{-1} or 1/a1/a for multiplication.

$\forall,\ \exists,\ \exists!$"for all", "there exists", "there exists a unique"

Quantifiers from formal logic. !\exists! (exists-unique) is stronger than \exists: it asserts existence and asserts there is only one such object — exactly the claim made by uniqueness theorems in Section 03.

$\iff$If and only if

Biconditional — both directions of implication hold. P    QP \iff Q means PP implies QQ and QQ implies PP; they are logically equivalent statements.

$\mid$Divides

mnm \mid n reads "mm divides nn," meaning n=mkn = mk for some integer kk — 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

Definition — Binary Operation

A binary operation on a set SS is a rule \ast that takes any two elements of SS (in order) and produces a single output that must also land in SS:

:S×SS,(a,b)ab\ast : S \times S \to S, \qquad (a, b) \mapsto a \ast b

S×SS \times S — the set of all ordered pairs (a,b)(a,b) with a,bSa, b \in S.

\mapsto — "maps to." The pair (a,b)(a,b) is sent to the single output aba \ast b.

The requirement that the output land back in SS is called closure, and it is not automatic — it is a real condition that can fail.

Example — Ordinary operations as binary operations

Addition on Z\mathbb{Z}: =+\ast = +, and +:Z×ZZ+ : \mathbb{Z}\times\mathbb{Z}\to\mathbb{Z} sends (3,5)8(3,5)\mapsto 8. Closed — the sum of two integers is always an integer.

Composition of functions f,g:RRf,g : \mathbb{R}\to\mathbb{R}: =\ast = \circ, and (f,g)fg(f,g)\mapsto f\circ g, the function xf(g(x))x \mapsto f(g(x)). Closed — composing two real functions gives another real function.

Common mistake — Assuming closure for free

Is subtraction a binary operation on the natural numbers N={0,1,2,}\mathbb{N} = \{0,1,2,\ldots\}? Take a=3a=3, b=7b=7: 37=4N3 - 7 = -4 \notin \mathbb{N}. The output escapes the set. Subtraction is not a binary operation on N\mathbb{N} — it fails closure, even though it's a perfectly good operation on Z\mathbb{Z}.

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.

Example — An operation given by a table

For a finite set, a binary operation can be given entirely by a table, with no formula at all. Let S={r,s}S = \{r, s\} and define \ast by:

\astrrss
rrrrss
ssssrr

Read row-then-column: rs=sr \ast s = s (row rr, column ss). Every entry is in {r,s}\{r,s\}, 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: rr = "do nothing," ss = "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.

Definition — Associativity

An operation \ast on SS is associative if, for all a,b,cSa,b,c \in S:

(ab)c=a(bc)(a \ast b) \ast c = a \ast (b \ast c)

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 abca \ast b \ast c is unambiguous.

Common mistake — Subtraction is not associative

(85)2=32=1(8 - 5) - 2 = 3 - 2 = 1, but 8(52)=83=58 - (5-2) = 8 - 3 = 5. Different answers — subtraction on Z\mathbb{Z} is not associative. This is exactly why 8528-5-2 is only unambiguous by convention (read left to right), not by any inherent property of subtraction.

Definition — Commutativity

An operation \ast on SS is commutative if, for all a,bSa,b \in S:

ab=baa \ast b = b \ast a

Order of the two inputs does not matter. Commutativity and associativity are logically independent — a structure can have either, both, or neither.

Example — Associative but not commutative

Matrix multiplication on 2×22\times 2 real matrices is associative ((AB)C=A(BC)(AB)C = A(BC) always) but not commutative in general. For instance:

(1101)(1011)=(2111),(1011)(1101)=(1112)\begin{pmatrix}1&1\\0&1\end{pmatrix}\begin{pmatrix}1&0\\1&1\end{pmatrix} = \begin{pmatrix}2&1\\1&1\end{pmatrix}, \qquad \begin{pmatrix}1&0\\1&1\end{pmatrix}\begin{pmatrix}1&1\\0&1\end{pmatrix} = \begin{pmatrix}1&1\\1&2\end{pmatrix}

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.

Function composition is generally noncommutative too

(fg)(x)=f(g(x))(f\circ g)(x) = f(g(x)) but (gf)(x)=g(f(x))(g\circ f)(x)=g(f(x)) — usually different functions. Try f(x)=x+1f(x)=x+1, g(x)=2xg(x)=2x: f(g(x))=2x+1f(g(x)) = 2x+1, while g(f(x))=2x+2g(f(x))=2x+2. Order of composition matters, exactly as order of matrix multiplication does — not a coincidence, since matrices represent linear functions.


04 · Identity Elements and Inverses

Definition — Identity Element

Let (S,)(S,\ast) be a structure. An element eSe \in S is an identity for \ast if:

ea=ae=afor every aSe \ast a = a \ast e = a \qquad \text{for every } a \in S

Combining ee with anything changes nothing. Both orders must give back aa — this matters when \ast is not commutative.

Example — Identities you already know

(Z,+)(\mathbb{Z}, +): identity is 00, since a+0=0+a=aa + 0 = 0 + a = a.

(R,×)(\mathbb{R}, \times): identity is 11, since a×1=1×a=aa \times 1 = 1 \times a = a.

({functions RR},)(\{\text{functions } \mathbb{R}\to\mathbb{R}\}, \circ): identity is id(x)=x\mathrm{id}(x) = x, since fid=idf=ff \circ \mathrm{id} = \mathrm{id}\circ f = f for every ff.

Before defining inverses, it is worth proving something that looks obvious but is not free: a structure cannot have two different identities.

Theorem 1.1 — Uniqueness of the Identity

If (S,)(S,\ast) has an identity, it has exactly one.

Proof

Suppose ee and ee' are both identities for \ast on SS. Since ee is an identity, applying it to ee' gives:

ee=ee \ast e' = e'

Since ee' is also an identity, applying it to ee gives:

ee=ee \ast e' = e

The left-hand sides of both equations are literally the same expression, eee \ast e', so the right-hand sides must be equal: e=ee' = e. Hence any two identities coincide — there is at most one.

Why this proof pattern matters

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 PP; combine them; each assumption gives a different-looking expression for the same combination; equate.

Definition — Inverse

Let (S,)(S,\ast) have identity ee. An element bSb \in S is an inverse of aSa \in S if:

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

If such a bb exists, aa is called invertible, and bb is written a1a^{-1} (or a-a when \ast is addition).

Common mistake — Not every element needs an inverse

In (Z,×)(\mathbb{Z}, \times), identity is 11. Does 33 have an inverse? We'd need bb with 3b=13b = 1 — but b=1/3Zb = 1/3 \notin \mathbb{Z}. 33 has no multiplicative inverse in Z\mathbb{Z}. Only 11 and 1-1 are invertible in (Z,×)(\mathbb{Z},\times). 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.

Theorem 1.2 — Uniqueness of Inverses (associative case)

If \ast is associative and has identity ee, then every invertible aSa \in S has exactly one inverse.

Proof

Suppose bb and cc are both inverses of aa: ab=ba=ea\ast b = b\ast a = e and ac=ca=ea\ast c = c\ast a = e. Compute bacb \ast a \ast c two ways, using associativity to regroup freely.

Group the left two first: (ba)c=ec=c(b \ast a) \ast c = e \ast c = c, using ba=eb\ast a = e and then the identity law.

Group the right two first: b(ac)=be=bb \ast (a \ast c) = b \ast e = b, using ac=ea \ast c = e and then the identity law.

Both computations evaluate the same three-fold product bacb \ast a \ast c — associativity guarantees the grouping doesn't change the value — so the two results must agree: c=bc = b. Hence the inverse is unique.

Associativity was essential

Look closely: the proof needed to regroup bacb \ast a \ast c, which is only legal because \ast is associative. Without associativity, "the inverse" would not even be well-defined language — there could genuinely be several unrelated elements bb satisfying ab=ba=ea\ast b = b\ast a = e. 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.

StructureClosureAssociativeIdentityInversesExample
Magma(N,)(\mathbb{N}, -) restricted to stay nonnegative, informally
Semigroup(N,+)(\mathbb{N}, +) — no identity if 0N0\notin\mathbb{N}'s convention used
Monoid(Z,×)(\mathbb{Z}, \times) — identity 11, but 33 has no inverse
Group(Z,+)(\mathbb{Z}, +) — identity 00, inverse of aa is a-a
Reading the table

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 (Z,×)(\mathbb{Z},\times) stalls at "monoid": it has an identity (11) but most elements lack inverses. Swapping to (Q{0},×)(\mathbb{Q}\setminus\{0\}, \times) upgrades all the way to a group, since every nonzero rational has a reciprocal.

Example — Classifying $(\mathbb{Z}, +)$, $(\mathbb{Z}, \times)$, and $(2\mathbb{Z}, +)$

(Z,+)(\mathbb{Z}, +): closed, associative, identity 00, every aa has inverse a-a. Group.

(Z,×)(\mathbb{Z}, \times): closed, associative, identity 11, but 22 has no inverse in Z\mathbb{Z}. Monoid, not a group.

(2Z,+)(2\mathbb{Z}, +) — the even integers under addition: sum of two evens is even (closed), associative (inherited from Z\mathbb{Z}), identity 02Z0 \in 2\mathbb{Z}, inverse of 2k2k is 2k2Z-2k \in 2\mathbb{Z}. Group. Notice this group lives inside (Z,+)(\mathbb{Z},+) — exactly the idea behind subgroups in Chapter 03.


06 · Equivalence Relations & Partitions

One more piece of machinery is needed before this chapter can build Zn\mathbb{Z}_n, 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.

Definition — Equivalence Relation

A relation \sim on a set SS is an equivalence relation if for all a,b,cSa,b,c \in S:

Reflexive. aaa \sim a.

Symmetric. ab    baa \sim b \implies b \sim a.

Transitive. aba \sim b and bc    acb \sim c \implies a \sim c.

Example — Equality is the smallest equivalence relation

Ordinary equality "==" on any set satisfies all three: a=aa=a; a=b    b=aa=b\implies b=a; a=b,b=c    a=ca=b, b=c\implies a=c. Equivalence relations generalize equality by relaxing which elements count as interchangeable, while keeping the same three structural guarantees.

Common mistake — "Divides" is not an equivalence relation

Define aba \sim b on Z+\mathbb{Z}^+ by aba \mid b (aa divides bb). Reflexive: yes, aaa \mid a. Transitive: yes. Symmetric: no242 \mid 4 but 424 \nmid 2. Failing even one of the three conditions disqualifies a relation from being an equivalence relation, no matter how natural it looks.

Definition — Equivalence Class

For aSa \in S, the equivalence class of aa is:

[a]={xSxa}[a] = \{\, x \in S \mid x \sim a \,\}

the set of everything related to aa. Note a[a]a \in [a] always, by reflexivity.

Theorem 1.3 — Equivalence Classes Partition the Set

If \sim is an equivalence relation on SS, the equivalence classes are pairwise disjoint or identical, and their union is all of SS. Equivalently: every element of SS lies in exactly one equivalence class.

Proof

Union is everything. For any aSa \in S, reflexivity gives aaa \sim a, so a[a]a \in [a]. Hence every element belongs to some class, and the union of all classes is SS.

Distinct classes don't overlap. Suppose [a][b][a] \cap [b] \neq \varnothing — some cc satisfies cac \sim a and cbc \sim b. By symmetry, aca \sim c. By transitivity applied to aca \sim c and cbc \sim b, we get aba \sim b.

Now take any x[a]x \in [a], so xax \sim a. Since aba \sim b, transitivity gives xbx \sim b, so x[b]x \in [b]. This shows [a][b][a] \subseteq [b]. The symmetric argument (swap the roles of aa and bb) gives [b][a][b] \subseteq [a]. Hence [a]=[b][a] = [b].

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 SS.

Why this theorem is worth remembering by name

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.

Definition — Congruence mod n

Fix a positive integer nn. For a,bZa, b \in \mathbb{Z}, say aa is congruent to bb modulo nn, written ab(modn)a \equiv b \pmod n, if:

n(ab)n \mid (a-b)

Equivalently, aa and bb leave the same remainder when divided by nn.

Theorem 1.4 — Congruence mod n is an Equivalence Relation

For fixed nn, the relation (modn)\equiv \pmod n is an equivalence relation on Z\mathbb{Z}.

Proof

Reflexive. aa=0=n0a - a = 0 = n\cdot 0, so n(aa)n \mid (a-a); hence aa(modn)a \equiv a \pmod n.

Symmetric. If ab(modn)a \equiv b \pmod n, then ab=nka - b = nk for some integer kk. Then ba=n(k)b - a = n(-k), and kZ-k \in \mathbb{Z}, so n(ba)n \mid (b-a); hence ba(modn)b \equiv a \pmod n.

Transitive. If ab(modn)a \equiv b \pmod n and bc(modn)b \equiv c \pmod n, then ab=nka-b = nk and bc=njb-c=nj for integers k,jk,j. Adding: (ab)+(bc)=ac=n(k+j)(a-b)+(b-c) = a - c = n(k+j), and k+jZk+j \in \mathbb{Z}, so n(ac)n \mid (a-c); hence ac(modn)a \equiv c \pmod n.

By Theorem 1.3, congruence mod nn partitions Z\mathbb{Z} into equivalence classes. This partition is the object we actually want.

Definition — The Set $\mathbb{Z}_n$

The set of equivalence classes of Z\mathbb{Z} under (modn)\equiv \pmod n is denoted Zn\mathbb{Z}_n:

Zn={[0],[1],[2],,[n1]}\mathbb{Z}_n = \{\, [0], [1], [2], \ldots, [n-1] \,\}

There are exactly nn classes, one per possible remainder, since every integer is congruent to its remainder on division by nn, and two different remainders in {0,,n1}\{0,\ldots,n-1\} are never congruent to each other (their difference is smaller than nn in absolute value and nonzero, so nn cannot divide it).

Step-by-step — Sorting integers into classes of $\mathbb{Z}_4$
1
Set n=4n=4. The possible remainders on division by 4 are 0,1,2,30,1,2,3 — exactly 4 classes.
2
Locate 1-1: 1=4(1)+3-1 = 4(-1) + 3, remainder 33. So 1[3]-1 \in [3].
3
Locate 99: 9=4(2)+19 = 4(2)+1, remainder 11. So 9[1]9 \in [1].
4
Locate 1616: 16=4(4)+016=4(4)+0, remainder 00. So 16[0]16 \in [0].
5
Conclusion: Z4={[0],[1],[2],[3]}\mathbb{Z}_4 = \{[0],[1],[2],[3]\}, and every integer, no matter how large or negative, lands in exactly one of these four classes.

We now want to add and multiply classes, not just integers. The natural definition is [a]+[b]:=[a+b][a]+[b] := [a+b] — but this is only legitimate if the answer does not depend on which representative of each class we happened to pick.

Theorem 1.5 — Addition and Multiplication on $\mathbb{Z}_n$ Are Well-Defined

If aa(modn)a \equiv a' \pmod n and bb(modn)b \equiv b' \pmod n, then:

a+ba+b(modn)andabab(modn)a+b \equiv a'+b' \pmod n \qquad \text{and} \qquad ab \equiv a'b' \pmod n

Consequently, [a]+[b]:=[a+b][a]+[b] := [a+b] and [a][b]:=[ab][a][b] := [ab] are legitimate operations on Zn\mathbb{Z}_n — the result does not depend on the choice of representative.

Proof

By hypothesis, aa=nka - a' = nk and bb=njb - b' = nj for some integers k,jk,j.

Addition. (a+b)(a+b)=(aa)+(bb)=nk+nj=n(k+j)(a+b) - (a'+b') = (a-a') + (b-b') = nk + nj = n(k+j), and k+jZk+j\in\mathbb{Z}. So n((a+b)(a+b))n \mid \big((a+b)-(a'+b')\big), giving a+ba+b(modn)a+b \equiv a'+b' \pmod n.

Multiplication. Write a=a+nka = a' + nk and b=b+njb = b'+nj. Then:

ab=(a+nk)(b+nj)=ab+anj+nkb+n2kj=ab+n(aj+kb+nkj)ab = (a'+nk)(b'+nj) = a'b' + a'nj + nkb' + n^2kj = a'b' + n(a'j + kb' + nkj)

The quantity aj+kb+nkja'j+kb'+nkj is an integer, so abab=n(aj+kb+nkj)ab - a'b' = n(a'j+kb'+nkj) is a multiple of nn. Hence abab(modn)ab \equiv a'b' \pmod n.

Since the congruence class of the sum/product depends only on the classes of aa and bb — not on which representative was used to compute it — the operations [a]+[b]:=[a+b][a]+[b]:=[a+b] and [a][b]:=[ab][a][b]:=[ab] are unambiguous rules on Zn\mathbb{Z}_n.

Well-definedness is a recurring checkpoint

Whenever a later chapter defines an operation on a quotient object — a quotient group G/NG/N, a quotient ring R/IR/I — this exact question resurfaces: does the formula depend on which representative you picked? The proof pattern here (write the difference as a multiple of nn, expand, factor nn back out) is the template used again, essentially unchanged, in Chapter 05 and Chapter 12.

Example — The addition table of $\mathbb{Z}_4$

Writing classes as bare numbers 0,1,2,30,1,2,3 for brevity (each really means [0],[1],[2],[3][0],[1],[2],[3]):

++0123
00123
11230
22301
33012

Every row and column contains each element exactly once, and the table is symmetric across the diagonal (commutative). Identity is 00 (its row/column reproduces the header). Every element has an inverse: 1+3=01+3=0, 2+2=02+2=0, 3+1=03+1=0. This is (Z4,+)(\mathbb{Z}_4, +) 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 Z\mathbb{Z}, Q\mathbb{Q}, or R\mathbb{R}.

Common mistake — $(\mathbb{Z}_n, \times)$ is usually only a monoid

Look at the multiplication table restricted to Z4\mathbb{Z}_4: 2×2=[4]=[0]2 \times 2 = [4] = [0]. Two nonzero classes multiplied together gave the "zero" class — something that never happens in Z\mathbb{Z}, Q\mathbb{Q}, or R\mathbb{R}. Consequently 22 has no multiplicative inverse in Z4\mathbb{Z}_4: there is no xx with 2x1(mod4)2x \equiv 1 \pmod 4 (checking x=0,1,2,3x=0,1,2,3 gives products 0,2,0,20,2,0,2 — never 11). So (Z4,×)(\mathbb{Z}_4,\times) is a monoid (identity 11) 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

EXERCISE 1.1

Check the three conditions in order: does the output always land back in SS? Try a potential counterexample with small numbers before assuming yes.

Let a,b3Za,b \in 3\mathbb{Z}, so a=3ma=3m, b=3kb=3k for integers m,km,k. Then a+b=3(m+k)a+b = 3(m+k), and m+kZm+k \in \mathbb{Z}, so a+b3Za+b \in 3\mathbb{Z}. Closed.

Associativity and commutativity are inherited from (Z,+)(\mathbb{Z},+) since 3ZZ3\mathbb{Z} \subseteq \mathbb{Z} and the addition rule is the same operation, just restricted.

Identity: 0=3(0)3Z0 = 3(0) \in 3\mathbb{Z}, and a+0=aa+0=a. Identity exists.

Inverses: for a=3ma=3m, a=3(m)3Z-a = 3(-m) \in 3\mathbb{Z}, and a+(a)=0a+(-a)=0. Every element has an inverse.

All four properties hold: (3Z,+)(3\mathbb{Z}, +) is a group.

Is (3Z,+)(3\mathbb{Z}, +) — the multiples of 3 under addition — a group? Check closure, associativity, identity, and inverses explicitly.

EXERCISE 1.2

Apply Theorem 1.2's proof directly to this specific structure: what is ee here, and can you exhibit two candidate inverses that must be shown equal?

In (R{0},×)(\mathbb{R}\setminus\{0\}, \times), the identity is e=1e=1. Suppose bb and cc both satisfy ab=ba=1ab=ba=1 and ac=ca=1ac=ca=1. Then, exactly as in Theorem 1.2's proof:

(ba)c=1c=c,b(ac)=b1=b(b\cdot a)\cdot c = 1 \cdot c = c, \qquad b \cdot (a \cdot c) = b \cdot 1 = b

Multiplication of real numbers is associative, so both expressions equal bacb\cdot a\cdot c, forcing b=cb=c. This confirms directly what Theorem 1.2 already guarantees in general: real multiplicative inverses (1/a1/a) are unique.

Without quoting Theorem 1.2 by name, reprove directly that inverses in (R{0},×)(\mathbb{R}\setminus\{0\}, \times) are unique.

EXERCISE 1.3

Reflexive and transitive are usually easy. For symmetric, try to find two integers a,ba,b where aba \le b but not bab \le a.

Define aba \sim b to mean aba \le b on Z\mathbb{Z}. Reflexive: aaa \le a, true. Transitive: ab,bc    aca\le b, b\le c \implies a\le c, true. Symmetric: would need ab    baa\le b \implies b \le a for all a,ba,b — false, e.g. 252 \le 5 but 5≰25 \not\le 2.

Not an equivalence relation — it fails symmetry. (\le is instead an example of a partial order, a different structure entirely.)

Is ab    aba \sim b \iff a \le b an equivalence relation on Z\mathbb{Z}? Justify by checking all three conditions.

EXERCISE 1.4

Find the remainder of each number after division by 5, then group numbers sharing the same remainder.

Remainders mod 5: 12=5(2)+2[2]12 = 5(2)+2 \to [2]. 3=5(1)+2[2]-3 = 5(-1)+2 \to [2]. 7=5(1)+2[2]7 = 5(1)+2 \to [2]. 20=5(4)+0[0]20 = 5(4)+0 \to [0]. 2=5(0)+2[2]2 = 5(0)+2 \to [2].

So 12,3,7,212, -3, 7, 2 all land in [2][2], and 2020 alone lands in [0][0]. Two classes appear: [2]={12,3,7,2}[2] = \{12,-3,7,2\} and [0]={20}[0]=\{20\}, consistent with Theorem 1.3 — every element falls in exactly one class, and elements in the same class really do share a remainder.

Sort 12,3,7,20,212, -3, 7, 20, 2 into equivalence classes under (mod5)\equiv \pmod 5.

EXERCISE 1.5

Build the full 5×55\times 5 multiplication table for Z5{0}\mathbb{Z}_5\setminus\{0\} mentally or on paper, and check each row for whether 11 appears.

Multiplying every nonzero pair mod 5: 14=41\cdot4=4, 23=612\cdot3=6\equiv1, 24=832\cdot4=8\equiv3, 34=1223\cdot4=12\equiv2, and each element times itself: 22=42\cdot2=4, 33=943\cdot3=9\equiv4, 44=1614\cdot4=16\equiv1.

Checking inverses: 11=11\cdot1=1 (11=11^{-1}=1); 23=612\cdot3=6\equiv1 (21=32^{-1}=3); 32=613\cdot2=6\equiv1 (31=23^{-1}=2); 44=1614\cdot4=16\equiv1 (41=44^{-1}=4).

Every nonzero element of Z5\mathbb{Z}_5 has a multiplicative inverse — unlike Z4\mathbb{Z}_4. The difference: 55 is prime, so no nonzero remainder shares a common factor with 55, and (as Chapter 15 will make precise) that is exactly the condition for multiplicative inverses to exist mod nn.

In Z5={0,1,2,3,4}\mathbb{Z}_5 = \{0,1,2,3,4\}, does every nonzero element have a multiplicative inverse? Find each one, or explain why one fails to exist.

EXERCISE 1.6

Mimic the two-column proof of Theorem 1.1 exactly, but swap "identity" for "absorbing element": what equation does za=zz\ast a = z give you, twice, in two different ways?

Call zz absorbing if za=az=zz \ast a = a \ast z = z for every aSa \in S. Suppose zz and zz' are both absorbing. Apply zz's property to a=za = z': zz=zz \ast z' = z. Apply zz''s property to a=za=z: zz=zz \ast z' = z'. The left-hand sides are the same expression, so the right-hand sides agree: z=zz = z'.

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 zSz \in S is called absorbing for \ast if za=az=zz \ast a = a \ast z = z for every aSa \in S (e.g. 00 is absorbing for multiplication: 0×a=00 \times a = 0). Prove that if a structure has an absorbing element, it has only one.


09 · Chapter Summary

ConceptStatement
Binary operation:S×SS\ast: S\times S\to S; must satisfy closure
Associative(ab)c=a(bc)(a\ast b)\ast c = a\ast(b\ast c)
Commutativeab=baa\ast b = b\ast a
Identityea=ae=ae\ast a = a\ast e = a; unique when it exists (Thm 1.1)
Inverseaa1=a1a=ea\ast a^{-1}=a^{-1}\ast a=e; unique under associativity (Thm 1.2)
HierarchyMagma \subset Semigroup \subset Monoid \subset Group
Equivalence relationReflexive, symmetric, transitive
Equivalence classesPartition the set (Thm 1.3)
Zn\mathbb{Z}_nEquivalence classes of Z\mathbb{Z} under (modn)\equiv \pmod n
Well-definedness on Zn\mathbb{Z}_n+,×+, \times 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 (Zn,+)(\mathbb{Z}_n, +) revisited from a group-theoretic point of view.