Homology
Part I · Foundations
Chapter 1.2

Equivalence and Quotients

The art of declaring different things the same

about 45 min Builds on 1.1 Sets and Functions

…mathematics is the art of giving the same name to different things.

— Henri Poincaré, Science and Method (1908), translated by G. B. Halsted

Is the same number as Is three o’clock the same time as fifteen o’clock? Is a coffee mug the same shape as a doughnut? Each time the honest answer is “yes — once you decide what to ignore.” Our job is to make that decision precisely, and then to watch what it does: a whole pile of different things, once declared the same, becomes a single new object.

Same, up to what?

Mathematicians say “the same” all the time, and they almost never mean “identical.” They mean the same up to something: the same up to a whole number of days, the same up to cancelling a common factor, the same up to stretching and bending. The phrase “up to” names what we have agreed to ignore.

  • Clocks. A wall clock ignores whole turns of its hand: 3 o’clock and 15 o’clock (and 27 o’clock, if you kept counting) all point the hand at the same place. The clock treats hours that differ by a multiple of 12 as the same.
  • Fractions. and are written differently, but every one of them describes the same amount. A fraction ignores common factors of its top and bottom.
  • Shapes. In §0.1 The Shape of a Question a topologist declared the coffee mug and the doughnut the same, because one can be bent into the other without tearing. Topology ignores bending and stretching.
  • Parity. For many purposes the only thing that matters about a whole number is whether it is even or odd. Then 2, 8 and −40 are “the same”, and so are 1, 7 and 101.

In every case, many different things get one shared name, which is exactly what Poincaré meant in the epigraph (Poincaré 1908, bk I, ch. II). But “declaring things the same” cannot be done carelessly. Suppose you decided that two numbers are the same whenever they are close, say within of each other. Then would be the same as which is the same as which is the same as … and after a thousand small steps, would be “the same” as A notion of sameness that lets every number be the same as every other is useless. So sameness must obey some rules, and finding the right rules is our first job.

We take the idea in five steps:

  1. say precisely what “declaring things the same” means (an equivalence relation);
  2. see what it does to a set: it sorts it into non-overlapping piles (classes, forming a partition);
  3. make a new set whose elements are the piles (the quotient set);
  4. learn the one safety check you need before computing with piles (well-definedness);
  5. use all of this to build shapes by gluing (a preview of §2.2 Gluing Spaces Together).

Relations: a yes-or-no question about pairs

Before we can talk about sameness, we need a way to talk about any connection between elements of a set. Think of a question that can be asked about two things and in that order, and that always has a definite yes-or-no answer:

  • “Is less than (asked about numbers)
  • “Does divide (asked about whole numbers)
  • “Was born on the same day of the year as (asked about people)
  • “Do and leave the same remainder when divided by 3?” (asked about integers)

Such a question is completely described by listing the pairs for which the answer is “yes.” That list is a collection of ordered pairs  — a subset of the that you met in §1.1 Sets and Functions. And that is precisely the definition.

The symbol is called a tilde. When we use it for a relation, think of it as a fill-in-the-blank: is the statement “the answer to our question about is yes,” and means “the answer is no.”

There are two pictures of a relation that we will use constantly, and the next figure shows both side by side.

  • The table. Draw the grid one row for each one column for each Mark the cell in row and column when The relation is the set of marked cells.
  • The arrows. Draw each element as a dot and draw an arrow whenever If the arrow starts and ends at the same dot: a little loop.

Three rules for sameness

Most relations have nothing to do with sameness: “less than” certainly doesn’t. So let us ask: what must be true of a question like “are and the same (in the way we care about)?” Three things, which you have known all your life without saying them out loud.

  1. Everything is the same as itself. Whatever we ignore, never differs from
  2. Sameness goes both ways. If is the same as then is the same as
  3. Sameness can be chained. If is the same as and is the same as then is the same as

The third rule is the one that failed for “close to” in the first section. These three rules are the entire definition.

Each rule has a shape in each picture, and once you can see the shapes you can check the rules at a glance.

  • Reflexive: every cell on the diagonal of the table is marked; in the arrow picture, every dot carries a loop.
  • Symmetric: the table is a mirror image of itself across the diagonal; in the arrow picture, every arrow has a partner coming back.
  • Transitive: whenever you can walk in two steps, there is also a one-step shortcut
Three rules, checked live Tap cells to add or remove pairs · try the presets
The relation as a table: row column
∼1234
1
2
3
4
The same relation as arrows: when
1234
Reflexive every
Symmetric every arrow has a partner coming back
Transitive and but not

Not an equivalence relation. Try “close it up”: it adds exactly the pairs that the three rules force.

Try:
Figure 1.2.1 A relation on drawn as a table and as arrows. The three lights test the rules; when one fails, a witness is highlighted: the gold arrows exist, the dashed rose arrow is the one the rule demands but which is missing. “Close it up” adds exactly the pairs the rules force (shown in violet). Try “ it is reflexive and symmetric, yet fails transitivity, just like “close to.”

The star example: same remainder

Fix a whole number Two integers are congruent modulo if they leave the same remainder when divided by With and are congruent (both leave remainder while and are not.

There is a neater way to say this that avoids talking about remainders. Two integers leave the same remainder when divided by exactly when their difference is a multiple of We write read “ divides to mean that for some integer (Careful: is a statement, true or false; it is not the fraction

Each rule needed one everyday fact about the multiples of is one; the negative of one is one; the sum of two is one. Keep that short list in mind. In §1.3 Groups those three facts become the definition of a subgroup, and the proof you have just read then works word for word for “differ by an element of a subgroup” — which is how homology will declare two loops the same.

More examples

  • Equality, is an equivalence relation. It is the strictest one: it declares nothing the same except a thing and itself.
  • “Everything is related to everything” is also an equivalence relation, the most generous one: it declares all elements the same.
  • Same colour on a bag of marbles; same birthday on a set of people; same number of letters on a set of words. Any relation of the form “ and give the same answer to a fixed question” is an equivalence relation, and the three rules hold for three small reasons: an answer equals itself, equality goes both ways, and equalities chain.
  • Same distance from the origin, for points of the plane: when This is again “same answer to a question” — the question being “how far are you from

That last pattern is so useful that it deserves to be said in general. If is any , then

is an equivalence relation on “same output.” Every function quietly sorts its inputs into groups, one group for each output it actually produces. Remember this; it comes back at the end of the chapter.

Non-examples, each failing exactly one rule

The best way to understand a definition with several conditions is to look at examples that satisfy all but one of them. Each of the following fails exactly one rule. (The first two are presets in Figure 1.2.1, on four numbers.)

RelationReflexive?Symmetric?Transitive?
on yesno: but yes
on (“close to”)yesyesno: but
on (“same strict sign”)no: so yesyes

The third row is the subtle one. For nonzero numbers, says “ and have the same sign,” which is a perfectly good sameness. It fails reflexivity at a single point, which is related to nothing at all — not even itself. And that single point is enough to disqualify it.

Classes and partitions

Sort the integers by their remainder on division by and they fall into three piles: the multiples of the numbers one more than a multiple, and the numbers two more. Every equivalence relation sorts its set like this. Each element has a pile — everything equivalent to it — and from here on the piles, rather than the elements, take centre stage.

(The notation is the set-builder notation of §1.1 Sets and Functions: “the set of all in such that

Two facts keep classes tidy. The first says that “same class” and “equivalent” are the same thing; the second says that classes never partly overlap.

A way of chopping a set into non-overlapping pieces has a name, and the theorem says that the classes are such a chopping.

So every equivalence relation gives a partition (its classes). The surprise is that it also works backwards, so that equivalence relations and partitions are really the same thing in two costumes (Hammack 2018, §11.4).

The next figure lets you choose a relation and paints each element with the colour of its class. Ignore the “Collapse” button for a moment; it is the subject of the next section.

The partition painter Choose a relation · tap a point to see its class · then collapse
……−8−7−6−5−4−3−2−10123456789101112131415
exactly when and leave the same remainder on division by
Tap a number to see its class. has 3 elements.
n 3
Figure 1.2.2 Three equivalence relations, each painting its set by classes: integers with the same remainder modulo (try several marbles of the same colour, and lattice points at the same distance from Tap any element to light up its whole class. Then press Collapse: each class flies together into a single point, and the arrows show where every element went — the projection onto the quotient set

The quotient set: one point per class

Here is the bold step. We have sorted into piles. Now we build a brand-new set whose elements are the piles themselves.

Two properties of follow at once, and between them they sum up everything so far.

  • is : every class is the class of something (namely of any of its representatives).
  • exactly when That is the lemma above, rewritten: the projection “forgets” precisely the differences we declared unimportant, and nothing else.

Look back at the partition painter and press Collapse. Each pile shrinks to a single point; the arrows that remain are In the first mode you get sitting on a clock face. In the third mode the collapse has a geometric meaning: every lattice point swings round its circle to the positive -axis, so points at the same distance land on the same spot, and the quotient becomes a row of points on a ray, one per distance.

The hardest step, and how to take it

Researchers who study how people learn this material keep finding the same sticking point: students can compute a class as a list, but find it hard to treat the whole class as a single object that can itself be an element of a set, be added, or be fed into a function (Dubinsky et al. 1994). If that feels strange to you, you are in good company. Here are three ways to make it feel natural.

  • Sealed envelopes. Put each pile into an envelope and seal it. The quotient set is the set of envelopes. You can count envelopes, line them up, or hand one to a friend, without opening any of them — even if one contains infinitely many slips of paper.
  • Names on the outside. To refer to an envelope you write a name on it, and any slip inside will do: and are three labels for the same envelope. A label is not the envelope.
  • Positions on a clock. is the set of 12 positions of a clock hand. The position “3 o’clock” is one thing, even though infinitely many hour-counts (3, 15, 27, −9, …) put the hand there.

Which picture is “right”? All of them, and good mathematicians switch between them constantly. What matters is knowing which operations are safe in which picture. Counting envelopes is always safe. Reading what is written on the label is not, because the same envelope carries many labels — and that danger is the subject of the well-definedness check below.

Fractions are classes

Here is an example you have used since childhood without knowing it was a quotient. A fraction is written with an integer on top and a nonzero integer on the bottom, so it is described by a pair with But different pairs describe the same fraction: and all describe one half. When do and describe the same fraction? When which — multiplying both sides by  — says That condition involves no division at all, so we can use it as a definition.

The same up to rotation

For a final example, colour each corner of a square gold or violet. There are colourings. But suppose the square is a necklace of four beads that can be turned: then a colouring and its rotations should count as the same necklace. “Can be turned into each other by a rotation” is an equivalence relation (turning by nothing is a rotation; a rotation can be undone by turning back; two rotations in a row make a rotation). How many different necklaces are there?

Same up to rotation Switch stages · tap a necklace to light up its class

Each corner is gold or violet: two choices at each of four corners make colourings. Declare two colourings the same when a rotation turns one into the other.

Figure 1.2.3 The 16 colourings of a square’s corners, sorted into classes of colourings that differ by a rotation. The class sizes are a necklace with all beads alike has only itself in its class, and the alternating necklace has just two members. Collapsing each class to one point gives the quotient set: exactly 6 necklaces.

Notice that the classes have different sizes. Nothing in the definition requires classes to be the same size — only that they don’t overlap and that together they cover everything.

There is a way to get the answer 6 without drawing a single necklace. For each of the four rotations, count the colourings it leaves unchanged: turning by nothing fixes all a quarter turn either way fixes only the one-colour necklaces, and a half turn fixes (opposite corners must match). The average, is exactly That this always works is Burnside’s counting theorem, one of the first rewards of group theory, though this book will not need it (Judson 2025, §14.3).

Functions on classes: the well-definedness check

We now want to compute with classes, and the natural way is through representatives: to tell what a function does to a class, say what it does to a member of the class. But a class has many members. The rule had better give the same answer no matter which member you ask.

The name is a little misleading: “well-defined” does not mean “defined nicely.” It means “actually defined” — that the recipe, which secretly depended on a choice of representative, turns out not to depend on that choice. Whenever a mathematician defines something on classes using representatives, the very next sentence of the proof is the check. (You met the word as a proof shape in §0.2 How to Read Mathematics.)

Ask every representative Pick a rule · change n · look for rose clashes
The rule on
−6 ↦ 0 ↦ 6 ↦ 12 ↦
−5 ↦ 1 ↦ 7 ↦ 13 ↦
−4 ↦ 2 ↦ 8 ↦ 14 ↦
−3 ↦ 3 ↦ 9 ↦ 15 ↦
−2 ↦ 4 ↦ 10 ↦ 16 ↦
−1 ↦ 5 ↦ 11 ↦ 17 ↦

Not well defined: in yet the representative gives while gives

n (we work in ℤ/n) 6
Figure 1.2.4 A rule on given by a formula in a representative For each class we ask four representatives, if they disagree, the class turns rose. Discover the pattern: “remainder mod is well defined on exactly when divides while and always work.

More checks

  • Fractions, badly. “The numerator of a fraction” is not well defined: but the numerators are and Neither is “add the top and the bottom”: Both rules secretly depend on how the fraction is written.
  • Fractions, well. “The decimal value is well defined: if then So is the usual addition although proving it takes a few lines (see the exercise “Adding fractions is well defined”).
  • Clock addition. On define If we change representatives, and then which is congruent to So the answer does not depend on the representatives: clock addition is well defined. This tiny check is what makes into a number system with its own arithmetic, the subject of §1.3 Groups.

There is a tidy way to package the whole idea. A function that gives equal answers on equivalent elements is said to be constant on classes. Such a function “factors through” the quotient:

Read the theorem as a recipe for building functions on a quotient: find a function on the original set that ignores exactly the differences you declared unimportant, and it automatically becomes a function on the classes. This is how almost every function on a quotient in this book will be built, including the maps between homology groups in §3.5 Maps, Invariance, and First Triumphs.

Gluing: making shapes by declaring points the same

So far our quotients have been sets of numbers or necklaces. Now apply the same idea to the points of a shape, and something visual happens: declaring points the same glues them together.

An interval becomes a circle

Take the interval all real numbers from to Declare the two endpoints the same, and declare nothing else (every point is, of course, still the same as itself). The classes are

So the quotient has one point for the pair of endpoints and one point for each interior point. Picture a piece of string whose two ends are tied together: a loop. The quotient of an interval by “its ends are the same” is a circle.

Gluing the ends Play or scrub the gluing

The interval Every point is alone in its class: and are different points.

interval circle
Figure 1.2.5 Bending the interval changes nothing about which points are the same; only when the ends meet do and become a single point, and the interval becomes a circle. The marks show that the points in between are untouched.

Winding the real line

Here is a second road to the circle. On the whole real line declare two numbers the same when they differ by a whole number:

(This is an equivalence relation for the same reasons as congruence: is a whole number, the negative of a whole number is a whole number, and so is the sum of two.) The class of is often written Every class has exactly one representative in so you might think the quotient “is” the interval But walk along from to when you reach you are back in the class of The quotient closes up into a circle, just like the glued interval.

The figure below makes this visible by winding the line around a cylinder, one unit per turn, like a spring. Numbers in the same class sit directly above one another, on one vertical line. The projection drops every point straight down onto the floor, where its shadow traces a circle. The integers wound the same way, with points per turn, give exactly the clock face of the partition painter.

Winding the line Drag to rotate · change n or t · press Project

Integers and sit on the same vertical line: they are one class of Dropping every point straight down is the projection

n (points per turn) 5
Figure 1.2.6 The integers (or the real numbers) wound into a helix. Every class is a vertical “fibre”: in with the integers sit on one line above Pressing Project squashes the spring flat; what survives is one point per class — the circle or the points of

A square becomes a torus

Now take a filled square and glue its left side to its right side, point by point at the same height, and its bottom to its top, point by point at the same horizontal position. The left–right gluing alone rolls the square into a tube (a cylinder); the bottom–top gluing then joins the two ends of the tube into a doughnut surface — a torus. We will carry this out carefully, with pictures in three dimensions, in §2.2 Gluing Spaces Together. For now there is one subtle point that only equivalence relations can settle.

Our gluing instructions — “each left point is the same as the right point at the same height,” and so on — are a relation, but not an equivalence relation: they do not say that a point is the same as itself, and they are not transitive. We use the smallest equivalence relation that contains them, the one you get by adding everything the three rules force. (The “close it up” button in Figure 1.2.1 does exactly this.) Formally:

Now watch the corners. The bottom-left corner is glued to the bottom-right corner (left side to right side, at the bottom). It is also glued to the top-left corner (bottom to top, at the left). And the top-left corner is glued to the top-right corner. By transitivity, all four corners become a single point. A common mistake is to say the corners give two points, or four; the chain of gluings says one. Play Figure 1.2.7 and watch the corner count: four, then two once the sides are glued, then one.

A square becomes a torus Press play or drag the slider · drag the picture to turn it
The square. Points of the same colour will become one point.
corners: 4 points : 2 points : 2 points
square torus
Figure 1.2.7 Gluing the sides marked to each other and the sides marked to each other, matching the arrows. Rolling the sheet glues the -sides together and bending it glues the -sides; points of the same colour close in on each other and meet. The counts underneath are the classes, measured as the sheet moves: the two become one point, the two become one point, and the four corners become two points and then one, the point of the torus where the loops and cross. (A preview of §2.2 Gluing Spaces Together.)

Why this is the most important idea in the book

One recipe has done all the work: declare some things the same, then treat each pile as a single new thing. Applied to numbers it gave clocks and fractions; to beads, necklaces; to the points of a square, a torus. Along the way we learned the one precaution it demands — check that nothing depends on which representative you picked. This recipe is the first of the four ideas that run through the whole book, and it returns in every part of it:

  • Arithmetic (§1.3 Groups and §1.4 Abelian Groups and Formal Sums): gets its addition from the well-defined rule and every abelian group can be divided by a subgroup in the same way.
  • Shapes (§2.2 Gluing Spaces Together): cylinders, Möbius bands, tori, Klein bottles and projective planes are all quotients of a square by different gluing instructions.
  • Homology (§3.3 Homology Groups): a loop on a surface may or may not enclose a region. Two loops are declared the same when together they form the edge of a region between them. Set this beside congruence, where when is a multiple of homology plays the same game with loops, and “differ by a multiple of becomes “differ by the edge of a region.” The piles of loops that result are the elements of the first group, and each pile — like  — is one object with infinitely many names. The formula at the centre of the book is this chapter’s with new letters.

When you get there, you will already know the moves: choose a representative, do the computation, and check that the answer does not depend on the choice.

One thing the recipe never provides is a way to decide whether two given things lie in the same pile. For remainders it is easy: divide and compare. For shapes it is the whole difficulty of topology, and the rest of the book builds tools for it. Even for finite, completely explicit objects it can be surprisingly hard.

Exercises

Summary

Further reading

  • Book of Proof, Chapter 11: Relations — Richard Hammack free
    A patient, free undergraduate text. Sections 11.3–11.5 cover equivalence relations, classes and partitions, and the integers modulo n, with many exercises (the odd-numbered ones are solved at the back).
  • Chapter 4 (“Relations”) builds equivalence relations from the logic up; excellent if you want to practise writing the proofs in this chapter yourself.
  • What’s a Quotient Group, Really? (Parts 1 and 2) — Tai-Danae Bradley, Math3ma free
    Two short, friendly blog posts (2016) built on one picture: a quotient is the set of “piles”. Written for groups (our §1.4), but Part 1 is mostly about this chapter’s idea.
  • Quotient Groups — Keith Conrad free
    A careful expository note that stresses well-definedness and the “wrapping ℝ onto a circle” picture. A good bridge to §1.4.
  • Torus Games — Jeff Weeks free
    Free games played on a square whose opposite sides are glued: the best way to feel at home on the quotient that becomes a torus.
  • Builds a torus and a Möbius strip out of pairs of points on a loop: gluing and quotients used to solve a real problem.

References

  1. Henri Poincaré (1908). Science et méthode. Flammarion, Paris; English translation by George Bruce Halsted as “Science and Method” in The Foundations of Science (Science Press, 1913). free online
  2. Carl Friedrich Gauss (1801). Disquisitiones Arithmeticae. Gerhard Fleischer, Leipzig; English translation by Arthur A. Clarke (Yale, 1966; Springer, 1986). free online
  3. Richard Hammack (2018). Book of Proof (3rd edition). self-published. free online
  4. Ed Dubinsky, Jennie Dautermann, Uri Leron and Rina Zazkis (1994). On learning fundamental concepts of group theory. Educational Studies in Mathematics 27(3), 267–305. doi
  5. Thomas W. Judson (2025). Abstract Algebra: Theory and Applications. Annual edition 2025, free under the GNU Free Documentation License. free online
  6. James R. Munkres (2000). Topology (2nd edition). Prentice Hall.
  7. László Babai (2016). Graph isomorphism in quasipolynomial time. Proceedings of the 48th Annual ACM Symposium on Theory of Computing (STOC 2016), 684–697. free online
  8. Harald A. Helfgott (2017). Graph isomorphisms in quasi-polynomial time. English version, with additions, of Séminaire Bourbaki exposé 1125. free online