© 2026 Neckpinch · www.neckpinch.com · All rights reserved.
Course 2Book 2A: Numbers, Limits and the IntegralChapter 8
Infinite Sets
Countable and uncountable sets, the diagonal argument, and where the axiom of choice will be needed.
Read with Tao, Analysis I, chapter "Infinite sets" (countability, summation on infinite sets, uncountable sets, the axiom of choice, ordered sets), together with the last section of "Set theory" (cardinality of sets).
In this chapter · 5 sections
- 8.1Same size means a bijection
- 8.1.1Infinite sets are different
- 8.1.2Every infinite set contains a copy of N\mathbb{N}N
- 8.2Countable sets
- 8.2.1Countable unions, and numbers no polynomial can reach
- 8.2.2Summing over a countable set
- 8.3Uncountable sets
- 8.3.1Cantor's first proof: nested intervals
- 8.3.2What cardinality does not see
- 8.4The axiom of choice
- 8.4.1The choices analysis makes every day
- 8.5Exercises
- ↗Free resources
The last two chapters measured infinity in one way: how big an infinite sum is. This chapter measures it in another: how many elements an infinite set has. The answer, found by Georg Cantor in the 1870s and 1880s, is that there are different sizes of infinity. The rationals and the natural numbers have the same size, even though the rationals seem far more numerous. The real numbers have strictly more.
This is the lightest chapter of Book 2A in terms of what later courses use directly, and it is honest to say so. Three things from it do matter. Countability is what makes the measure theory of 3A.1 The Problem of Measure work: countably many small sets can be ignored, uncountably many can't. Uncountability of explains why almost every real number can't be computed. And the axiom of choice is the silent assumption behind several theorems of functional analysis and topology, so it is worth knowing where it enters.
By the end of this chapter you will be able to:
- compare the sizes of sets with bijections, and use the pigeonhole principle;
- prove that , and are countable;
- prove, by Cantor's diagonal argument, that is uncountable, and prove the Schröder–Bernstein theorem;
- explain what the axiom of choice says, and recognise where later theorems depend on it.
Same size means a bijection
How do you know two collections have the same size without counting them? Match them up. If every seat in a theatre is taken and nobody is standing, there are as many people as seats, and no number needs to be known. Cantor took this as the definition of equal size, and applied it to infinite sets as well.
Two sets and have equal cardinality if there is a bijection (2A.2 Sets, Functions and Equivalence). A set has cardinality , for a natural number , if it has equal cardinality with . It is finite if it has cardinality for some , and infinite otherwise.
For finite sets this agrees with counting, and Tao proves carefully that a finite set has exactly one cardinality. The proof rests on a principle so obvious it is easy to overlook.
If , there is no injective function from a set of cardinality to a set of cardinality . Equivalently, if objects are placed in boxes with , some box contains at least two.
Proof. It is enough to treat the sets and , since composing with bijections preserves injectivity (2A.2 Sets, Functions and Equivalence). Induct on , proving: for every , no map is injective.
Base case . The target is empty, and is not (as ), so there is no function at all.
Inductive step. Suppose the claim holds for , and suppose is injective with . Let be the bijection of that swaps and (the identity if they are equal). Then is injective and sends to . By injectivity, no other input goes to , so restricts to an injective map . Since , this contradicts the inductive hypothesis.
If a set has cardinality and cardinality , then .
Proof. Composing the two bijections gives a bijection . If it would be an injection contradicting the pigeonhole principle; if , its inverse would. So .
We write for the cardinality of a finite set . The familiar rules all follow by induction, with the pigeonhole principle doing the real work. The two used most are: a subset of a finite set is finite, with no more elements ( implies , with equality only if ); and cardinalities of disjoint finite sets add ( if ). The engine of both is the lemma that removing one element from a set of cardinality leaves a set of cardinality (Exercise 8.18).
A lossless compression program, such as the one inside every ZIP file, must be injective: two different files must compress to different outputs, or decompression couldn't tell them apart. The pigeonhole principle shows that no such program can make every file smaller. There are different files of exactly bits, but only files shorter than bits. So at least one file of length cannot be shortened, and if some files get shorter, others must get longer. Compressors work in practice because real data (text, images, audio) is highly non-random, and they are designed to shrink the files people actually have, at the cost of slightly enlarging random-looking ones.
Infinite sets are different
For infinite sets the matching definition produces results that defy intuition. Galileo noticed one in 1638, in his Two New Sciences: the squares can be matched one-to-one with the natural numbers (), although most natural numbers are not squares. Galileo concluded that "equal", "greater" and "less" do not apply to infinite collections. Cantor concluded instead that an infinite set can have the same size as a proper part of itself, and that this is what being infinite means.
David Hilbert, in lectures in the 1920s, told the same fact as a story that is worth having in mind for the rest of the chapter. A hotel has rooms numbered , every one occupied. A new guest arrives. The manager asks every guest to move from room to room , and room is free: the map is a bijection from onto . Then a coach arrives with infinitely many new guests, numbered . The manager moves every resident from room to room , freeing all the odd rooms, and puts new guest in room . The hotel was full, and it took in infinitely many more people without anyone sharing a room. Nothing in the story is paradoxical once you accept the definition: "full" and "no room for more" mean the same thing only for finite hotels.
Every infinite set contains a copy of
The countable sets are the smallest infinite sets, in a precise sense.
Every infinite set contains a countably infinite subset. Consequently, has the same cardinality as a proper subset of itself.
Proof. Choose ; is nonempty because it is infinite. Having chosen distinct , the set is nonempty, because otherwise would be finite; choose in it. The are distinct, so is countably infinite.
For the second statement, let and define by and for . This is Hilbert's hotel inside : the elements of move up one place, everything else stays, and is a bijection onto the proper subset .
Look at what the proof did: it made infinitely many choices, one after another, each depending on the earlier ones. For a general set there is no rule that picks "the next element", so the proof uses a weak form of the axiom of choice, discussed at the end of the chapter. For subsets of it is often avoidable, and noticing when it is used is part of reading analysis carefully.
The proposition says that being infinite and having the same size as a proper part of yourself are the same thing. This is the property Galileo found troubling, turned by Richard Dedekind (1888) into a definition of "infinite". It also says that is the smallest infinite cardinality: every infinite set has an injection from into it.
Countable sets
A set is countably infinite if it has the same cardinality as , and countable if it is finite or countably infinite. Otherwise it is uncountable.
A set is countable exactly when its elements can be listed as a sequence (possibly with repeats, if the set is finite) that eventually reaches every element. That reformulation makes the next results easy to see. It rests on two lemmas, which turn "list them and skip what you don't want" into proofs.
Every subset of is countable. An infinite one is countably infinite, listed in increasing order.
Proof. A finite subset is countable by definition. Let be infinite. Define and , using the well-ordering principle (2A.1 The Natural Numbers). The set in the second definition is nonempty: otherwise , and would be finite. By recursion this defines a strictly increasing sequence in , so is injective. It is also surjective onto . Let . Since for every (by induction), the set is nonempty; let be its least element. If , then , so . If , then , and is the least element of above , so , and .
If is countable, every subset of is countable, and for every function the image is countable. In particular a nonempty set is countable if and only if there is a surjection .
Proof. If is finite, so are its subsets and images (Exercise 8.18). Otherwise fix a bijection . For a subset , restricts to a bijection from onto , and is countable by Lemma 8.6. For the image, let , and keep only the first index giving each value: . Then is injective on (two indices in with the same value would contradict the definition for the larger one), and (each value has a least index giving it, which lies in ). So is in bijection with , which is countable. The last sentence follows: a surjection from makes an image of , and conversely a countable nonempty is listed by a bijection from or, if finite, from , which extends to a surjection from by repeating the last element.
- Every subset of a countable set is countable.
- is countable.
- is countable.
- is countable.
Proof. (1) This is Lemma 8.7. (2) List . (3) List the pairs by increasing , and within each diagonal by increasing : ; ; ; … (Figure 8.3). Each pair is reached after finitely many steps. An explicit formula is Cantor's pairing , a bijection from to . To check it, write . The pairs on the diagonal are sent to , a block of consecutive integers. Since , the blocks for are , which fit together without gaps or overlaps and cover . So every natural number is for exactly one pair. (4) Every rational is for some integers and , so is the image of a subset of , which is countable by (2) and (3) ( is in bijection with , using a bijection in the first coordinate). An image of a countable set is countable (Lemma 8.7).
That is countable is the most surprising statement here. The rationals are dense (2A.3 Integers and Rationals): between any two there are infinitely many more, yet they can all be put in a single list.
The surprise comes from confusing two different ideas of "how many". Density is about order: how the elements sit on the line. Cardinality ignores order completely and asks only whether the elements can be paired off. The listing of jumps all over the line, , and that is allowed: a bijection need not respect order. If you insisted on listing the rationals in increasing order you would fail at once, because there is no "next" rational after . Cardinality is the coarsest way of comparing infinite sets, and it is blind to almost all of their structure.
Countable unions, and numbers no polynomial can reach
Countability is robust: a countable union of countable sets is countable (Exercise 8.19). List the -th set as , arrange all the lists as the rows of a table, and walk the table diagonal by diagonal, exactly as for . (The proof chooses a listing of each set, one for each : another quiet use of countable choice.)
This has a striking consequence, and it was Cantor's motivation in 1874. A real number is algebraic if it is a root of a nonzero polynomial with integer coefficients: (a root of ), , the golden ratio. There are countably many such polynomials (for each degree , a polynomial is a list of integers, and a countable union over of countable sets is countable), and each has finitely many roots. So the algebraic numbers are countable (Exercise 8.20). The real numbers are not, as the next section shows. Therefore transcendental numbers, reals that are not algebraic, exist, and in fact almost all reals are transcendental.
The argument shows existence without exhibiting a single example. Joseph Liouville had constructed the first explicit transcendental numbers in 1844, by a delicate estimate, and proving that a specific number is transcendental remains hard: Charles Hermite proved it for in 1873 and Ferdinand von Lindemann for in 1882, and whether is transcendental is still unknown. Counting says that transcendental numbers are everywhere; it says nothing about which ones. That contrast, between "almost all objects have a property" and "here is one that does", returns throughout analysis.
Summing over a countable set
2A.7 Series showed that the value of an infinite sum can depend on the order of its terms, unless the sum converges absolutely. That makes it possible to sum over a countable set with no given order.
Let be countably infinite and . If for some (equivalently, every) bijection the series converges absolutely, then the sum doesn't depend on . It is written .
Proof. If are two bijections, then is a bijection of , and . So the series built from is a rearrangement of the series built from . By the rearrangement theorem of 2A.7 Series, if one converges absolutely, so does the other, to the same sum.
This is the rearrangement theorem of 2A.7 Series in different words. It gives meaning to sums like , with no preferred order of the pairs. For absolutely summable double sums, adding by rows, by columns, or along any listing gives the same answer, the infinite version of the double-sum swap (Exercise 8.23).
Uncountable sets
Is every infinite set countable? Cantor's answer, first published in 1874 and in its best-known form in 1891, was no. The 1891 argument is short enough to give in full.
The interval , and hence , is uncountable.
Proof (Cantor's diagonal argument). Suppose, for contradiction, that the numbers in could be listed as . Write each in decimal, choosing the expansion that doesn't end in an infinite string of nines:
Now build a new number digit by digit, changing the diagonal: let if , and if . Then , its expansion has no digit , and it differs from each in the -th decimal place. So is not on the list, contradicting the assumption that the list contained every number in .
The careful choice of digits ( and , never or ) avoids the one subtlety of decimals, that (2A.4 The Real Numbers), so that "different digits" really does mean "different numbers".
Why the argument does not prove that is uncountable. Run the same construction on a list of all the rationals in , which exists. It produces a number that differs from every rational on the list, and there is no contradiction: is simply irrational. Its digits are $4$s and $5$s chosen according to the diagonal of the list, and nothing makes them repeat, so need not be rational. The diagonal argument proves "every list of elements of misses some element of ". For that is a contradiction, because the missed element is a real number; for the missed element is not a rational, and the argument says nothing. The real numbers are uncountable because they are complete: every digit sequence defines a real number, and that is exactly what the rationals lack.
The argument is a construction. Read positively, the proof is an algorithm: given any list of reals, it computes, digit by digit, a real not on the list. Nothing in it is by contradiction except the final sentence. That is one reason it is so convincing.
Cantor's first proof: nested intervals
Cantor's first proof of uncountability, in 1874, used no decimals at all. It is worth seeing because it shows that the uncountability of is the completeness of in disguise.
Second proof of Theorem 8.10. Let be any sequence of reals; we find a real in that is not among them. Start with . Given a closed interval of positive length, cut it into three closed thirds. A point lies in at most two of them, so at least one third does not contain ; let be such a third. This gives nested closed intervals , with . The left endpoints increase and are bounded by , so they converge to some (2A.6 Sequences, monotone convergence). For each , the terms with lie in , which is closed, so (2A.6 Sequences, limits preserve ). So lies in every , and therefore for every .
Over the rationals this proof also breaks, at exactly one point: the increasing bounded sequence need not have a rational limit. Both proofs locate the uncountability of in the same place, the absence of holes.
The same idea proves a much more general theorem, with no decimals in sight.
For every set , there is no surjection from onto its power set , the set of all subsets of . So is strictly larger than .
Proof. Let be any function. Consider . If for some , then exactly when , a contradiction. So is not in the image of .
This is the diagonal argument with the table hidden. Row is the set , and is built to disagree with row about the element . It also echoes Russell's paradox from 2A.2 Sets, Functions and Equivalence, which has the same self-referential shape. Applying the theorem repeatedly gives an unending ladder of infinite sizes: , , , …, each strictly bigger than the last. The set has the same cardinality as (Exercise 8.21).
If there are injections and , then and have equal cardinality.
The theorem is intuitively obvious ("each is at most as big as the other"), but its proof requires a genuine construction, building a bijection out of pieces of the two injections. It is the practical tool for comparing cardinalities: to show and have the same size, for instance, it is enough to inject each into the other (Exercise 8.22).
Proof. Let and be injections. The difficulty is that neither need be surjective, and we must decide, point by point, whether to use or the inverse of .
The set where we use . Let , the points of that misses; on these, is unavailable, so we must use . Then let , and . Think of as the points of that can be reached from by going across with and back with , some number of times.
The map. Define by if , and if . The second case makes sense: if then , so , and since is injective there is exactly one with .
is injective. Let . If both lie in , then gives . If neither does, gives (apply ). If and , then , so . But for some , so , a contradiction.
is surjective. Let and consider . If , then . If , then (it is in ), so for some : for some . As is injective, , since .
So is a bijection.
Schröder–Bernstein settles at once that and have the same cardinality: the inclusion is injective, and so is from into . But it is instructive to build a bijection by hand, because the construction is Hilbert's hotel again. The problem is two extra points, and . Pick a sequence of distinct points inside , say , and shift along it to make room:
The points are the guests who move, two places along the sequence; every other point stays in its room. Each point of is hit exactly once: by , by , for by , and every other point by itself. The bijection is badly discontinuous at , and every , which is unavoidable: no continuous bijection from onto exists (2A.9 Continuous Functions shows that a continuous function on attains a maximum, and has none).
In 1936 Alan Turing defined a real number to be computable if some machine following a finite program can print its decimal expansion, digit after digit, forever. Every computer program is a finite string of symbols from a finite alphabet, and the set of all finite strings is countable (list them by length, and alphabetically within each length). So there are only countably many programs, and hence only countably many computable numbers. Turing observed exactly this in his paper. Since is uncountable, almost all real numbers, in the sense of cardinality and, as 3A.2 Lebesgue Measure will show, also in the sense of measure, are not computable. Every number you will ever compute with, including , , and the outputs of every simulation of Ricci flow, belongs to a countable set.
What cardinality does not see
Cardinality is a blunt instrument, and the results it gives are often the opposite of what geometric intuition expects. The interval has the same cardinality as the whole line (Exercise 8.27), the line the same as the plane (Exercise 8.22), and the plane the same as space of any dimension. A segment of length has exactly as many points as all of space. Cantor wrote to Dedekind in 1877, after finding the bijection between the line and the plane, "I see it, but I don't believe it".
The lesson is not that dimension is an illusion. The bijections that prove these statements are wildly discontinuous: they scramble nearby points to faraway places. Once continuity is required, dimension comes back. There is no continuous bijection from the plane onto the line with a continuous inverse. (For these two there is an elementary reason: removing one point disconnects the line but not the plane. The statement for every pair of dimensions, the invariance of dimension, was proved by L. E. J. Brouwer in 1911.) Most of the guidebook works with structure that cardinality ignores: order, distance, continuity, measure. Cardinality answers one question, "can these be paired off at all?", and later chapters ask better ones. In 3A.2 Lebesgue Measure the rationals and the irrationals, both dense, turn out to have lengths and on the line; in Book 7A spaces of the same cardinality are told apart by their topology (7A.4 The Fundamental Group).
A large set of length zero. The Cantor set is what remains of after removing the open middle third , then the open middle thirds of the two remaining pieces, and so on forever. Its points are exactly the numbers in that have a base- expansion using only the digits and . Replacing each by and reading the result in base maps the Cantor set onto , so the Cantor set has at least as many points as , and by Schröder–Bernstein exactly as many: it is uncountable. Yet the pieces removed have total length , a geometric series (2A.7 Series), so what remains has length zero (3A.2 Lebesgue Measure). Cardinality says the Cantor set is as large as an interval; length says it is nothing. Both are right, about different questions.
The continuum hypothesis. Is there a set strictly bigger than and strictly smaller than ? Cantor conjectured that there is not, and tried for years to prove it. Kurt Gödel (1938) showed that the conjecture cannot be disproved from the usual axioms of set theory, and Paul Cohen (1963) that it cannot be proved from them either. It is independent: the axioms do not decide it. Nothing in this guidebook depends on the answer, and that is typical of analysis, whose theorems hold whichever way it goes.
The axiom of choice
Many arguments involve making choices: "pick an element from each nonempty set ". Finitely many choices are justified by induction. For infinitely many, the other axioms of set theory don't suffice, and an extra axiom is needed.
For every family of nonempty sets, there is a function that assigns to each index an element (a choice function).
It sounds harmless, and for most purposes it is. But its consequences include some genuinely strange results, which is why mathematicians keep track of where it is used.
Ernst Zermelo formulated the axiom explicitly in 1904, to prove that every set can be well-ordered, that is, given an ordering in which every nonempty subset has a least element, like (2A.1 The Natural Numbers). Nobody can write down such an ordering of , and the proof didn't provide one, which many mathematicians found unacceptable. The axiom also implies the Banach–Tarski paradox (1924): a solid ball in space can be cut into finitely many pieces that can be moved rigidly and reassembled into two balls of the same size as the first. The pieces are so irregular that they have no volume at all (no well-defined measure), which is how volume fails to be conserved. Kurt Gödel (1938) and Paul Cohen (1963) showed that the axiom can neither be proved nor disproved from the other axioms of set theory. Most of mathematics, including all of this guidebook, assumes it.
A form of the axiom that is easier to apply in practice concerns partially ordered sets.
A partial order on a set is a relation that is reflexive, antisymmetric and transitive. A chain is a subset in which any two elements are comparable. An upper bound of a subset is an with for every . A maximal element is an with no .
If is a nonempty partially ordered set in which every chain has an upper bound, then has a maximal element.
Zorn's lemma is equivalent to the axiom of choice. (The proof of the equivalence belongs to set theory and is not needed in this guidebook; what is needed is to recognise the pattern of a Zorn argument.) Here is the typical use, written out in full, because the same three steps recur in 4A.4 Hahn–Banach and Duality.
Let be a vector space, and let be the set of linearly independent subsets of , partially ordered by inclusion . It is nonempty, since .
Every chain has an upper bound. Let be a chain, and . Then is linearly independent. Linear independence is about finite subsets: take . Each lies in some , and since the are pairwise comparable, one of them, say , contains all the others, so all lie in , which is independent. So , and it contains every member of the chain.
A maximal element is a basis. By Zorn's lemma, has a maximal element . It is independent; suppose it did not span , and take . Then is independent (in a relation with , would put in the span of , so , and then all ). That contradicts the maximality of . So is a basis.
For regarded as a vector space over , such a basis exists but cannot be written down. That is typical of Zorn's lemma: it guarantees existence and gives no construction.
The choices analysis makes every day
The full axiom of choice, with uncountably many arbitrary choices, appears rarely in this guidebook, and each time it is flagged. A much weaker form is used constantly, usually without comment, and it is worth learning to see it.
Countable choice says that a sequence of nonempty sets has a sequence of choices . Dependent choice allows each choice to depend on the earlier ones, as in the proof of Proposition 8.4. Every time an analysis proof says "for each , pick with …" and there is no rule that singles out one , it is using one of these.
- In the contradiction–compactness template of 2A.5 Quantifiers and the Shape of a Proof, "for each there is a counterexample; pick one" is countable choice.
- In 2A.9 Continuous Functions, the proof that continuity at a point is the same as " implies " picks, for each , a point within of where misbehaves. That is countable choice too.
- In the proof of Bolzano–Weierstrass (2A.6 Sequences), no choice is needed: "the least index with in the interval" is a definite rule, thanks to the well-ordering of , and so is "the left half if it contains infinitely many terms, otherwise the right half". Making a rule where a proof says "choose" is the standard way of avoiding the axiom.
Countable and dependent choice are accepted by almost all mathematicians, including many who are wary of the full axiom, because they cause none of its paradoxes. The Banach–Tarski paradox and the non-measurable sets of 3A.1 The Problem of Measure need uncountably many arbitrary choices. That distinction is behind the remark in the box below about separable spaces: where a space has a countable dense subset, many theorems that seem to need the full axiom can be proved with countable choices alone.
- 3A.1 The Problem of Measure: with the axiom of choice one can build a subset of , Vitali's set, that has no reasonable length. This is why measure theory must restrict which sets are measured. Countability is also built into the axioms of measure: lengths add over countably many disjoint pieces, never uncountably many (a line segment is an uncountable union of points of length zero).
- 3A.2 Lebesgue Measure: every countable set has length zero, so is "negligible" inside , even though it is dense.
- 4A.4 Hahn–Banach and Duality: the Hahn–Banach theorem, which supplies the linear functionals of functional analysis, uses Zorn's lemma.
- 4A.7 Weak Convergence and the Direct Method, 7A.2 Compactness and Compactification: the general Banach–Alaoglu and Tychonoff theorems use choice. In the separable spaces used for PDE, the guidebook proves the needed cases with a diagonal argument instead, which needs only countable choices.
- 2B.5 Uniform Convergence and Arzelà–Ascoli: the diagonal argument itself returns, in the proof of Arzelà–Ascoli, to extract a subsequence that converges at countably many points at once.
Size is measured by bijections. , , and are countable; is not; and every set is strictly smaller than its power set. The axiom of choice allows infinitely many arbitrary choices and is equivalent to Zorn's lemma. The next chapter, 2A.9 Continuous Functions, returns to the real line and to functions on it: continuity, and the first maximum principle.
Exercises
Prove Proposition 8.2 by induction on . Then use it to show that among any people, two share a birthday. (Unlike the "birthday paradox", which says that people have a better than even chance of a shared birthday, this is a certainty.)
Solution
The induction is the proof given after Proposition 8.2. For birthdays, "birthday" is a function from the set of people to the set of possible dates (including 29 February). Since , it is not injective: two people share a birthday.
Let have cardinality and . Show that has cardinality . Deduce, by induction on , that every subset of a set of cardinality is finite with cardinality at most .
Solution
Let be a bijection, and swap the values at and , so that . Then restricts to a bijection . For subsets, induct on : for the only subset is . If the claim holds for and , take . If we are done. Otherwise pick ; then , which has cardinality , so is finite with .
Show that a union of countably many countable sets is countable. Where does your proof make infinitely many choices? (You must pick a listing of each set.)
Hint
Choose a listing of the -th set. Then maps onto the union. The listings are the infinitely many choices: this is a use of the (countable) axiom of choice.
Solution
Let be countable, and discard the empty ones. For each choose a surjection (Lemma 8.7); choosing one for every at once is where the axiom of choice is used. The map from onto is surjective. Since is countable, the union is an image of a countable set, hence countable.
A real number is algebraic if it is a root of a nonzero polynomial with integer coefficients ( is a root of ). Show that the algebraic numbers are countable, and deduce that transcendental (non-algebraic) numbers exist. This was Cantor's own application in 1874.
Solution
For each and each bound , there are finitely many integer polynomials of degree with coefficients bounded by in absolute value, and each has at most roots. So the algebraic numbers are a countable union of finite sets, hence countable. Since is uncountable, some real numbers are not algebraic.
Show that and have the same cardinality, using Schröder–Bernstein: send a subset to (injective, because base-3 digits and only, with no ambiguity), and send to a set built from its binary expansion.
Solution
Injection . The sum converges (compare with ) and lies in . If , let be the least element of one but not the other, say . The two sums agree on the indices below ; after that, contributes at least , while contributes at most . So the sum for is larger, and the map is injective.
Injection . For , take its binary expansion that does not end in infinitely many ones (the binary analogue of 2A.4 The Real Numbers's decimal expansion), and send to . Different have different expansions, so different sets. These sets never contain every from some point on, so we can send to without collision.
Schröder–Bernstein gives a bijection.
Show that and have the same cardinality, by interleaving decimal digits: . Explain why this map is injective but not surjective, and how Schröder–Bernstein finishes the proof. (Cantor was astonished by this result.)
Solution
Use for each number the decimal expansion not ending in infinitely many nines. Different pairs have different digit sequences, and so the interleaved sequences differ. The interleaved sequence never ends in infinitely many nines (that would need both and to), so different interleaved sequences are different numbers. Hence the map is injective. It is not surjective: would need , which is not an allowed expansion. In the other direction is injective. Schröder–Bernstein turns the two injections into a bijection.
Compute , justifying any reordering. Compare with the double sum in 2A.7 Series, where the two orders disagreed, and say which hypothesis holds here and failed there.
Solution
The terms are positive, so the sum is absolutely convergent and may be computed in any order: . In 2A.7 Series's example the terms were and the sum of absolute values was infinite.
Let be a sequence of sequences, all bounded: for all . Show that there is a subsequence such that converges as for every . (Use Bolzano–Weierstrass (2A.6 Sequences) for , then on that subsequence for , and so on; then take the "diagonal" subsequence: the -th term of the -th subsequence.) This is the same diagonal idea as Cantor's, put to constructive use. It is the key step of the Arzelà–Ascoli theorem (2B.5 Uniform Convergence and Arzelà–Ascoli), and through it of every compactness theorem for spaces of functions, metrics and Ricci flows later in the route.
Solution
The sequence is bounded, so by Bolzano–Weierstrass it has a convergent subsequence: an infinite set of indices along which converges. Along , is bounded, so there is an infinite along which converges too. Continue: , each infinite, with convergent along (and along any subsequence of it). Now let be the -th element of (in increasing order). Then : the -th element of is at least the -th element of , since , which is larger than the -th. And for each fixed , the terms with all lie in , so from on, is a subsequence of a convergent sequence, hence convergent. A single subsequence works for every , though no single does.
Show that the set of all finite subsets of is countable. Why doesn't this contradict Cantor's theorem?
Solution
It is the union over of the sets of subsets of , each finite (with elements), so a countable union of finite sets, hence countable. (No choice is needed: each can be listed by an explicit rule, for instance by the binary number , which is itself a bijection from finite subsets to .) Cantor's theorem concerns all subsets; the infinite ones are what make uncountable.
Show that the set of irrational numbers is uncountable.
Solution
If it were countable, would be a union of two countable sets, hence countable, contradicting Theorem 8.10.
Show that is an injection from into , and conclude with Schröder–Bernstein that and have the same cardinality.
Solution
Let . For , , which increases strictly and lies in ; for , , which increases strictly and lies in . So is strictly increasing on with values in , hence injective, and is an injection into . The inclusion is an injection the other way.
Free resources for this chapter
Chosen for what this chapter covers, and all free to read or watch. Where a lecture covers more than this chapter, the minutes to watch are given, and the link starts there when it can. Links checked Nov 6, 2026.
Read
- Notes Lecture 2: Cantor’s Theory of Cardinality (Size)MIT OpenCourseWare 18.100A Real Analysis (Fall 2020)Cardinality as the existence of a bijection.
- Notes Lecture 6: The Uncountabality of the Real NumbersMIT OpenCourseWare 18.100A Real Analysis (Fall 2020)Cantor’s proof that the real numbers are uncountable.
- Book Chapter 14: Cardinality of SetsRichard Hammack, Book of Proof (free textbook)Countable and uncountable sets and the Cantor–Bernstein–Schröder theorem.
- Reference Axiom of choiceWikipediaThe axiom itself and the places in analysis where it is needed.
Watch 4 lectures and talks
- Video Lecture 2: Cantor’s Theory of Cardinality (Size)MIT OpenCourseWare 18.100A Real Analysis (Fall 2020), Casey Rodriguez · 21:04 to the end (cardinality)Cantor’s definition of size by bijections, and countable sets.
- Video Lecture 3: Cantor’s Remarkable Theorem and the Rationals’ Lack of the Least Upper Bound PropertyMIT OpenCourseWare 18.100A Real Analysis (Fall 2020), Casey Rodriguez · 0:00–19:47 (Cantor’s theorem)Cantor’s theorem: no set is in bijection with its power set.
- Video Lecture 6: The Uncountabality of the Real NumbersMIT OpenCourseWare 18.100A Real Analysis (Fall 2020), Casey RodriguezThe uncountability of ℝ.
- Video Lecture 7: Countable and Uncountable SetsFrancis Su, Real Analysis lectures (Harvey Mudd College, 2010)Countable and uncountable sets, in the course that ends with ordinals and transfinite induction.
© 2026 Neckpinch (www.neckpinch.com). All content in the guidebook (text, mathematics, figures and exercises) is protected by copyright. All rights reserved. No part may be copied, republished or redistributed without written permission.