Book 2A

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

48 min read · Updated Nov 6, 2026

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
  1. 8.1Same size means a bijection
  2. 8.1.1Infinite sets are different
  3. 8.1.2Every infinite set contains a copy of N\mathbb{N}N
  4. 8.2Countable sets
  5. 8.2.1Countable unions, and numbers no polynomial can reach
  6. 8.2.2Summing over a countable set
  7. 8.3Uncountable sets
  8. 8.3.1Cantor's first proof: nested intervals
  9. 8.3.2What cardinality does not see
  10. 8.4The axiom of choice
  11. 8.4.1The choices analysis makes every day
  12. 8.5Exercises
  13. ↗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 R\mathbb{R} 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 Z\mathbb{Z}, N×N\mathbb{N} \times \mathbb{N} and Q\mathbb{Q} are countable;
  • prove, by Cantor's diagonal argument, that R\mathbb{R} 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.

Definition 8.1 Equal cardinality

Two sets XX and YY have equal cardinality if there is a bijection f:X→Yf : X \to Y (2A.2 Sets, Functions and Equivalence). A set has cardinality nn, for a natural number nn, if it has equal cardinality with {1,2,…,n}\{1, 2, \dots, n\}. It is finite if it has cardinality nn for some nn, 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.

Proposition 8.2 Pigeonhole principle

If m>nm > n, there is no injective function from a set of cardinality mm to a set of cardinality nn. Equivalently, if mm objects are placed in nn boxes with m>nm > n, some box contains at least two.

Proof. It is enough to treat the sets {1,…,m}\{1, \dots, m\} and {1,…,n}\{1, \dots, n\}, since composing with bijections preserves injectivity (2A.2 Sets, Functions and Equivalence). Induct on nn, proving: for every m>nm > n, no map {1,…,m}→{1,…,n}\{1, \dots, m\} \to \{1, \dots, n\} is injective.

Base case n=0n = 0. The target is empty, and {1,…,m}\{1, \dots, m\} is not (as m>0m > 0), so there is no function at all.

Inductive step. Suppose the claim holds for nn, and suppose f:{1,…,m}→{1,…,n+1}f : \{1, \dots, m\} \to \{1, \dots, n + 1\} is injective with m>n+1m > n + 1. Let τ\tau be the bijection of {1,…,n+1}\{1, \dots, n+1\} that swaps f(m)f(m) and n+1n + 1 (the identity if they are equal). Then τ∘f\tau \circ f is injective and sends mm to n+1n + 1. By injectivity, no other input goes to n+1n + 1, so τ∘f\tau \circ f restricts to an injective map {1,…,m−1}→{1,…,n}\{1, \dots, m - 1\} \to \{1, \dots, n\}. Since m−1>nm - 1 > n, this contradicts the inductive hypothesis.

Corollary 8.3 A finite set has exactly one cardinality

If a set has cardinality mm and cardinality nn, then m=nm = n.

Proof. Composing the two bijections gives a bijection {1,…,m}→{1,…,n}\{1, \dots, m\} \to \{1, \dots, n\}. If m>nm > n it would be an injection contradicting the pigeonhole principle; if n>mn > m, its inverse would. So m=nm = n.

We write #X\#X for the cardinality of a finite set XX. 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 (A⊆XA \subseteq X implies #A≤#X\#A \leq \#X, with equality only if A=XA = X); and cardinalities of disjoint finite sets add (#(X∪Y)=#X+#Y\#(X \cup Y) = \#X + \#Y if X∩Y=∅X \cap Y = \varnothing). The engine of both is the lemma that removing one element from a set of cardinality n+1n + 1 leaves a set of cardinality nn (Exercise 8.18).

In the world In use No compressor shrinks every file

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 2n2^n different files of exactly nn bits, but only 20+21+⋯+2n−1=2n−12^0 + 2^1 + \cdots + 2^{n-1} = 2^n - 1 files shorter than nn bits. So at least one file of length nn 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.

Figure 8.1. Eight files of three bits, and only seven shorter files to compress them into. Some file can't get shorter: the pigeonhole principle, applied to compression.

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 1,4,9,16,…1, 4, 9, 16, \dots can be matched one-to-one with the natural numbers 1,2,3,4,…1, 2, 3, 4, \dots (n↔n2n \leftrightarrow n^2), 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.

Figure 8.2. n↦2nn \mapsto 2n is a bijection from N\mathbb{N} to the even numbers. So the even numbers, a proper subset of N\mathbb{N}, have the same cardinality as N\mathbb{N}, which is impossible for a finite set.

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 0,1,2,…0, 1, 2, \dots, every one occupied. A new guest arrives. The manager asks every guest to move from room nn to room n+1n + 1, and room 00 is free: the map n↦n+1n \mapsto n + 1 is a bijection from N\mathbb{N} onto N∖{0}\mathbb{N}\setminus\{0\}. Then a coach arrives with infinitely many new guests, numbered 0,1,2,…0, 1, 2, \dots. The manager moves every resident from room nn to room 2n2n, freeing all the odd rooms, and puts new guest kk in room 2k+12k + 1. 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 N\mathbb{N}

The countable sets are the smallest infinite sets, in a precise sense.

Proposition 8.4 Infinite sets have countably infinite subsets

Every infinite set XX contains a countably infinite subset. Consequently, XX has the same cardinality as a proper subset of itself.

Proof. Choose x0∈Xx_0 \in X; XX is nonempty because it is infinite. Having chosen distinct x0,…,xnx_0, \dots, x_n, the set X∖{x0,…,xn}X\setminus\{x_0, \dots, x_n\} is nonempty, because otherwise XX would be finite; choose xn+1x_{n+1} in it. The xnx_n are distinct, so {x0,x1,… }\{x_0, x_1, \dots\} is countably infinite.

For the second statement, let A={x0,x1,… }A = \{x_0, x_1, \dots\} and define h:X→X∖{x0}h : X \to X\setminus\{x_0\} by h(xn)=xn+1h(x_n) = x_{n+1} and h(x)=xh(x) = x for x∉Ax \notin A. This is Hilbert's hotel inside XX: the elements of AA move up one place, everything else stays, and hh is a bijection onto the proper subset X∖{x0}X\setminus\{x_0\}.

Look at what the proof did: it made infinitely many choices, one after another, each depending on the earlier ones. For a general set XX 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 R\mathbb{R} 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 N\mathbb{N} is the smallest infinite cardinality: every infinite set has an injection from N\mathbb{N} into it.

Countable sets

Definition 8.5 Countable

A set is countably infinite if it has the same cardinality as N\mathbb{N}, 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 x0,x1,x2,…x_0, x_1, x_2, \dots (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.

Lemma 8.6 Subsets of the natural numbers

Every subset of N\mathbb{N} is countable. An infinite one is countably infinite, listed in increasing order.

Proof. A finite subset is countable by definition. Let A⊆NA \subseteq \mathbb{N} be infinite. Define a0=min⁡Aa_0 = \min A and an+1=min⁡{x∈A:x>an}a_{n+1} = \min\{x \in A : x > a_n\}, using the well-ordering principle (2A.1 The Natural Numbers). The set in the second definition is nonempty: otherwise A⊆{0,1,…,an}A \subseteq \{0, 1, \dots, a_n\}, and AA would be finite. By recursion this defines a strictly increasing sequence a0<a1<⋯a_0 < a_1 < \cdots in AA, so n↦ann \mapsto a_n is injective. It is also surjective onto AA. Let x∈Ax \in A. Since an≥na_n \geq n for every nn (by induction), the set {n:an≥x}\{n : a_n \geq x\} is nonempty; let nn be its least element. If n=0n = 0, then x≤a0=min⁡A≤xx \leq a_0 = \min A \leq x, so x=a0x = a_0. If n>0n > 0, then an−1<x≤ana_{n-1} < x \leq a_n, and ana_n is the least element of AA above an−1a_{n-1}, so an≤xa_n \leq x, and x=anx = a_n.

Lemma 8.7 Images and subsets of countable sets

If XX is countable, every subset of XX is countable, and for every function f:X→Yf : X \to Y the image f(X)f(X) is countable. In particular a nonempty set YY is countable if and only if there is a surjection N→Y\mathbb{N} \to Y.

Proof. If XX is finite, so are its subsets and images (Exercise 8.18). Otherwise fix a bijection g:N→Xg : \mathbb{N} \to X. For a subset A⊆XA \subseteq X, gg restricts to a bijection from g−1(A)g^{-1}(A) onto AA, and g−1(A)⊆Ng^{-1}(A) \subseteq \mathbb{N} is countable by Lemma 8.6. For the image, let h=f∘g:N→Yh = f \circ g : \mathbb{N} \to Y, and keep only the first index giving each value: B={n∈N:h(n)≠h(m) for every m<n}B = \{n \in \mathbb{N} : h(n) \neq h(m) \text{ for every } m < n\}. Then hh is injective on BB (two indices in BB with the same value would contradict the definition for the larger one), and h(B)=h(N)=f(X)h(B) = h(\mathbb{N}) = f(X) (each value has a least index giving it, which lies in BB). So f(X)f(X) is in bijection with B⊆NB \subseteq \mathbb{N}, which is countable. The last sentence follows: a surjection from N\mathbb{N} makes YY an image of N\mathbb{N}, and conversely a countable nonempty YY is listed by a bijection from N\mathbb{N} or, if finite, from {1,…,n}\{1, \dots, n\}, which extends to a surjection from N\mathbb{N} by repeating the last element.

Proposition 8.8 Countable sets
  1. Every subset of a countable set is countable.
  2. Z\mathbb{Z} is countable.
  3. N×N\mathbb{N} \times \mathbb{N} is countable.
  4. Q\mathbb{Q} is countable.

Proof. (1) This is Lemma 8.7. (2) List 0,1,−1,2,−2,3,−3,…0, 1, -1, 2, -2, 3, -3, \dots. (3) List the pairs (a,b)(a, b) by increasing a+ba + b, and within each diagonal by increasing aa: (0,0)(0,0); (0,1),(1,0)(0,1), (1,0); (0,2),(1,1),(2,0)(0,2), (1,1), (2,0); … (Figure 8.3). Each pair is reached after finitely many steps. An explicit formula is Cantor's pairing P(a,b)=(a+b)(a+b+1)2+aP(a, b) = \tfrac{(a+b)(a+b+1)}{2} + a, a bijection from N×N\mathbb{N} \times \mathbb{N} to N\mathbb{N}. To check it, write T(s)=s(s+1)2T(s) = \tfrac{s(s+1)}{2}. The s+1s + 1 pairs on the diagonal a+b=sa + b = s are sent to T(s),T(s)+1,…,T(s)+sT(s), T(s) + 1, \dots, T(s) + s, a block of consecutive integers. Since T(s)+s+1=T(s+1)T(s) + s + 1 = T(s + 1), the blocks for s=0,1,2,…s = 0, 1, 2, \dots are {0},{1,2},{3,4,5},…\{0\}, \{1, 2\}, \{3, 4, 5\}, \dots, which fit together without gaps or overlaps and cover N\mathbb{N}. So every natural number is P(a,b)P(a, b) for exactly one pair. (4) Every rational is p/qp/q for some integers pp and q>0q > 0, so Q\mathbb{Q} is the image of a subset of Z×N\mathbb{Z} \times \mathbb{N}, which is countable by (2) and (3) (Z×N\mathbb{Z} \times \mathbb{N} is in bijection with N×N\mathbb{N} \times \mathbb{N}, using a bijection Z→N\mathbb{Z} \to \mathbb{N} in the first coordinate). An image of a countable set is countable (Lemma 8.7).

Figure 8.3. Listing the positive rationals: walk the grid of fractions p/qp/q diagonal by diagonal, skipping fractions not in lowest terms (grey). Every positive rational is reached after finitely many steps, so the positive rationals are countable. Adding 00 and the negatives keeps them countable.

That Q\mathbb{Q} 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 Q\mathbb{Q} jumps all over the line, 1,2,12,3,13,4,32,23,14,…1, 2, \frac12, 3, \frac13, 4, \frac32, \frac23, \frac14, \dots, 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 00. 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 kk-th set as ak0,ak1,ak2,…a_{k0}, a_{k1}, a_{k2}, \dots, arrange all the lists as the rows of a table, and walk the table diagonal by diagonal, exactly as for N×N\mathbb{N}\times\mathbb{N}. (The proof chooses a listing of each set, one for each kk: 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: 2\sqrt2 (a root of x2−2x^2 - 2), 53\sqrt[3]{5}, the golden ratio. There are countably many such polynomials (for each degree dd, a polynomial is a list of d+1d + 1 integers, and a countable union over dd 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 ee in 1873 and Ferdinand von Lindemann for π\pi in 1882, and whether e+πe + \pi 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.

Proposition 8.9 Sums over countable sets

Let XX be countably infinite and f:X→Rf : X \to \mathbb{R}. If for some (equivalently, every) bijection g:N→Xg : \mathbb{N} \to X the series ∑nf(g(n))\sum_n f(g(n)) converges absolutely, then the sum doesn't depend on gg. It is written ∑x∈Xf(x)\sum_{x \in X} f(x).

Proof. If g,g′:N→Xg, g' : \mathbb{N} \to X are two bijections, then σ=g−1∘g′\sigma = g^{-1} \circ g' is a bijection of N\mathbb{N}, and f(g′(n))=f(g(σ(n)))f(g'(n)) = f(g(\sigma(n))). So the series built from g′g' is a rearrangement of the series built from gg. 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 ∑(m,n)∈N212m3n\sum_{(m,n) \in \mathbb{N}^2} \frac{1}{2^m 3^n}, 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.

Theorem 8.10 The real numbers are uncountable

The interval [0,1)[0, 1), and hence R\mathbb{R}, is uncountable.

Proof (Cantor's diagonal argument). Suppose, for contradiction, that the numbers in [0,1)[0, 1) could be listed as x1,x2,x3,…x_1, x_2, x_3, \dots. Write each in decimal, choosing the expansion that doesn't end in an infinite string of nines:

x1=0.d11d12d13…,x2=0.d21d22d23…,x3=0.d31d32d33…,…x_1 = 0.d_{11}d_{12}d_{13}\ldots,\qquad x_2 = 0.d_{21}d_{22}d_{23}\ldots,\qquad x_3 = 0.d_{31}d_{32}d_{33}\ldots,\quad \dots

Now build a new number y=0.e1e2e3…y = 0.e_1e_2e_3\ldots digit by digit, changing the diagonal: let ek=5e_k = 5 if dkk≠5d_{kk} \neq 5, and ek=4e_k = 4 if dkk=5d_{kk} = 5. Then y∈[0,1)y \in [0, 1), its expansion has no digit 99, and it differs from each xkx_k in the kk-th decimal place. So yy is not on the list, contradicting the assumption that the list contained every number in [0,1)[0, 1).

The careful choice of digits (44 and 55, never 00 or 99) avoids the one subtlety of decimals, that 0.0999…=0.10.0999\ldots = 0.1 (2A.4 The Real Numbers), so that "different digits" really does mean "different numbers".

Why the argument does not prove that Q\mathbb{Q} is uncountable. Run the same construction on a list of all the rationals in [0,1)[0, 1), which exists. It produces a number yy that differs from every rational on the list, and there is no contradiction: yy 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 yy need not be rational. The diagonal argument proves "every list of elements of [0,1)[0, 1) misses some element of [0,1)[0, 1)". For R\mathbb{R} that is a contradiction, because the missed element is a real number; for Q\mathbb{Q} 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 R\mathbb{R} is the completeness of R\mathbb{R} in disguise.

Second proof of Theorem 8.10. Let x0,x1,x2,…x_0, x_1, x_2, \dots be any sequence of reals; we find a real in [0,1][0, 1] that is not among them. Start with I0=[0,1]I_0 = [0, 1]. Given a closed interval In=[an,bn]I_n = [a_n, b_n] 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 xnx_n; let In+1I_{n+1} be such a third. This gives nested closed intervals I0⊇I1⊇⋯I_0 \supseteq I_1 \supseteq \cdots, with xn∉In+1x_n \notin I_{n+1}. The left endpoints ana_n increase and are bounded by 11, so they converge to some cc (2A.6 Sequences, monotone convergence). For each nn, the terms ama_m with m≥nm \geq n lie in InI_n, which is closed, so c∈Inc \in I_n (2A.6 Sequences, limits preserve ≤\leq). So cc lies in every In+1I_{n+1}, and therefore c≠xnc \neq x_n for every nn.

Over the rationals this proof also breaks, at exactly one point: the increasing bounded sequence (an)(a_n) need not have a rational limit. Both proofs locate the uncountability of R\mathbb{R} in the same place, the absence of holes.

Figure 8.4. Cantor's diagonal argument. Whatever list of numbers you write down, change the kk-th digit of the kk-th number to build a number that differs from every row in at least one place. It isn't on the list, so no list contains them all.

The same idea proves a much more general theorem, with no decimals in sight.

Theorem 8.11 Cantor's theorem

For every set XX, there is no surjection from XX onto its power set 2X2^X, the set of all subsets of XX. So 2X2^X is strictly larger than XX.

Proof. Let f:X→2Xf : X \to 2^X be any function. Consider D={x∈X:x∉f(x)}D = \{x \in X : x \notin f(x)\}. If D=f(a)D = f(a) for some aa, then a∈Da \in D exactly when a∉f(a)=Da \notin f(a) = D, a contradiction. So DD is not in the image of ff.

This is the diagonal argument with the table hidden. Row xx is the set f(x)f(x), and DD is built to disagree with row xx about the element xx. 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: N\mathbb{N}, 2N2^{\mathbb{N}}, 22N2^{2^{\mathbb{N}}}, …, each strictly bigger than the last. The set 2N2^{\mathbb{N}} has the same cardinality as R\mathbb{R} (Exercise 8.21).

Theorem 8.12 Schröder–Bernstein

If there are injections X→YX \to Y and Y→XY \to X, then XX and YY 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 R\mathbb{R} and R2\mathbb{R}^2 have the same size, for instance, it is enough to inject each into the other (Exercise 8.22).

Proof. Let f:X→Yf : X \to Y and g:Y→Xg : Y \to X be injections. The difficulty is that neither need be surjective, and we must decide, point by point, whether to use ff or the inverse of gg.

The set where we use ff. Let C0=X∖g(Y)C_0 = X \setminus g(Y), the points of XX that gg misses; on these, g−1g^{-1} is unavailable, so we must use ff. Then let Cn+1=g(f(Cn))C_{n+1} = g(f(C_n)), and C=⋃n≥0CnC = \bigcup_{n \geq 0} C_n. Think of CC as the points of XX that can be reached from C0C_0 by going across with ff and back with gg, some number of times.

The map. Define h:X→Yh : X \to Y by h(x)=f(x)h(x) = f(x) if x∈Cx \in C, and h(x)=g−1(x)h(x) = g^{-1}(x) if x∉Cx \notin C. The second case makes sense: if x∉Cx \notin C then x∉C0x \notin C_0, so x∈g(Y)x \in g(Y), and since gg is injective there is exactly one yy with g(y)=xg(y) = x.

hh is injective. Let h(x)=h(x′)h(x) = h(x'). If both lie in CC, then f(x)=f(x′)f(x) = f(x') gives x=x′x = x'. If neither does, g−1(x)=g−1(x′)g^{-1}(x) = g^{-1}(x') gives x=x′x = x' (apply gg). If x∈Cx \in C and x′∉Cx' \notin C, then f(x)=g−1(x′)f(x) = g^{-1}(x'), so x′=g(f(x))x' = g(f(x)). But x∈Cnx \in C_n for some nn, so x′∈Cn+1⊆Cx' \in C_{n+1} \subseteq C, a contradiction.

hh is surjective. Let y∈Yy \in Y and consider x=g(y)x = g(y). If x∉Cx \notin C, then h(x)=g−1(x)=yh(x) = g^{-1}(x) = y. If x∈Cx \in C, then x∉C0x \notin C_0 (it is in g(Y)g(Y)), so x∈Cn+1=g(f(Cn))x \in C_{n+1} = g(f(C_n)) for some nn: g(y)=g(f(x′))g(y) = g(f(x')) for some x′∈Cnx' \in C_n. As gg is injective, y=f(x′)=h(x′)y = f(x') = h(x'), since x′∈Cx' \in C.

So hh is a bijection.

Figure 8.5. The proof on an example: X=Y=NX = Y = \mathbb{N} with f(n)=g(n)=n+1f(n) = g(n) = n + 1. The only point gg misses is 00, so C0={0}C_0 = \{0\}; across with ff and back with gg gives C1={2}C_1 = \{2\}, C2={4}C_2 = \{4\}, and CC is the even numbers. The bijection hh is ff on CC (solid) and g−1g^{-1} elsewhere (dashed): it swaps 0↔10 \leftrightarrow 1, 2↔32 \leftrightarrow 3, and so on.
Example 8.13 A bijection from [0,1][0, 1] to (0,1)(0, 1)

Schröder–Bernstein settles at once that [0,1][0, 1] and (0,1)(0, 1) have the same cardinality: the inclusion (0,1)→[0,1](0, 1) \to [0, 1] is injective, and so is x↦14+x2x \mapsto \frac14 + \frac x2 from [0,1][0, 1] into (0,1)(0, 1). But it is instructive to build a bijection by hand, because the construction is Hilbert's hotel again. The problem is two extra points, 00 and 11. Pick a sequence of distinct points inside (0,1)(0, 1), say 12,13,14,…\frac12, \frac13, \frac14, \dots, and shift along it to make room:

h(0)=12,h(1)=13,h(1n)=1n+2  (n≥2),h(x)=x  otherwise.h(0) = \frac12, \qquad h(1) = \frac13, \qquad h\Big(\frac1n\Big) = \frac{1}{n + 2}\ \ (n \geq 2), \qquad h(x) = x\ \text{ otherwise}.

The points 0,1,12,13,…0, 1, \frac12, \frac13, \dots are the guests who move, two places along the sequence; every other point stays in its room. Each point of (0,1)(0, 1) is hit exactly once: 12\frac12 by 00, 13\frac13 by 11, 1m\frac1m for m≥4m \geq 4 by 1m−2\frac{1}{m - 2}, and every other point by itself. The bijection is badly discontinuous at 00, 11 and every 1n\frac1n, which is unavoidable: no continuous bijection from [0,1][0, 1] onto (0,1)(0, 1) exists (2A.9 Continuous Functions shows that a continuous function on [0,1][0, 1] attains a maximum, and (0,1)(0, 1) has none).

In the world In use Most numbers can't be computed

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 R\mathbb{R} 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 π\pi, ee, 2\sqrt 2 and the outputs of every simulation of Ricci flow, belongs to a countable set.

Figure 8.6. Sizes of infinity. N\mathbb{N}, Z\mathbb{Z}, Q\mathbb{Q} and the computable reals all have the same cardinality. R\mathbb{R} is strictly larger and has the same size as 2N2^{\mathbb{N}}. By Cantor's theorem, 2R2^{\mathbb{R}} is larger still.

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 (0,1)(0, 1) 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 10−910^{-9} 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 00 and ∞\infty 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 [0,1][0, 1] after removing the open middle third (13,23)(\frac13, \frac23), then the open middle thirds of the two remaining pieces, and so on forever. Its points are exactly the numbers in [0,1][0, 1] that have a base-33 expansion using only the digits 00 and 22. Replacing each 22 by 11 and reading the result in base 22 maps the Cantor set onto [0,1][0, 1], so the Cantor set has at least as many points as [0,1][0, 1], and by Schröder–Bernstein exactly as many: it is uncountable. Yet the pieces removed have total length 13+29+427+⋯=1\frac13 + \frac29 + \frac4{27} + \cdots = 1, 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 N\mathbb{N} and strictly smaller than R\mathbb{R}? 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 xnx_n from each nonempty set AnA_n". 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.

Axiom 8.1 The axiom of choice

For every family (Aα)α∈I(A_\alpha)_{\alpha \in I} of nonempty sets, there is a function ff that assigns to each index α\alpha an element f(α)∈Aαf(\alpha) \in A_\alpha (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.

History A controversial axiom

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 N\mathbb{N} (2A.1 The Natural Numbers). Nobody can write down such an ordering of R\mathbb{R}, 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.

Definition 8.14 Partial orders and chains

A partial order on a set XX is a relation ≤\leq that is reflexive, antisymmetric and transitive. A chain is a subset in which any two elements are comparable. An upper bound of a subset YY is an x∈Xx \in X with y≤xy \leq x for every y∈Yy \in Y. A maximal element is an mm with no x>mx > m.

Theorem 8.15 Zorn's lemma

If XX is a nonempty partially ordered set in which every chain has an upper bound, then XX 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.

Example 8.16 Every vector space has a basis

Let VV be a vector space, and let XX be the set of linearly independent subsets of VV, partially ordered by inclusion ⊆\subseteq. It is nonempty, since ∅∈X\varnothing \in X.

Every chain has an upper bound. Let C⊆X\mathcal{C} \subseteq X be a chain, and U=⋃S∈CSU = \bigcup_{S \in \mathcal{C}} S. Then UU is linearly independent. Linear independence is about finite subsets: take v1,…,vk∈Uv_1, \dots, v_k \in U. Each viv_i lies in some Si∈CS_i \in \mathcal{C}, and since the SiS_i are pairwise comparable, one of them, say SjS_j, contains all the others, so all viv_i lie in SjS_j, which is independent. So U∈XU \in X, and it contains every member of the chain.

A maximal element is a basis. By Zorn's lemma, XX has a maximal element BB. It is independent; suppose it did not span VV, and take v∉span⁡Bv \notin \operatorname{span} B. Then B∪{v}B \cup \{v\} is independent (in a relation av+∑biwi=0av + \sum b_i w_i = 0 with wi∈Bw_i \in B, a≠0a \neq 0 would put vv in the span of BB, so a=0a = 0, and then all bi=0b_i = 0). That contradicts the maximality of BB. So BB is a basis.

For R\mathbb{R} regarded as a vector space over Q\mathbb{Q}, 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 A0,A1,A2,…A_0, A_1, A_2, \dots has a sequence of choices an∈Ana_n \in A_n. 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 nn, pick xnx_n with …" and there is no rule that singles out one xnx_n, it is using one of these.

  • In the contradiction–compactness template of 2A.5 Quantifiers and the Shape of a Proof, "for each nn 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 "xn→ax_n \to a implies f(xn)→f(a)f(x_n) \to f(a)" picks, for each nn, a point xnx_n within 1n\frac1n of aa where ff misbehaves. That is countable choice too.
  • In the proof of Bolzano–Weierstrass (2A.6 Sequences), no choice is needed: "the least index nk>nk−1n_k > n_{k-1} with anka_{n_k} in the interval" is a definite rule, thanks to the well-ordering of N\mathbb{N}, 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.

Where this goes Where choice and countability return
  • 3A.1 The Problem of Measure: with the axiom of choice one can build a subset of R\mathbb{R}, 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 Q\mathbb{Q} is "negligible" inside R\mathbb{R}, 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.
Recall Where we stand

Size is measured by bijections. N\mathbb{N}, Z\mathbb{Z}, N×N\mathbb{N} \times \mathbb{N} and Q\mathbb{Q} are countable; R\mathbb{R} 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

Exercise 8.17 The pigeonhole principle

Prove Proposition 8.2 by induction on nn. Then use it to show that among any 367367 people, two share a birthday. (Unlike the "birthday paradox", which says that 2323 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 367367 people to the set of 366366 possible dates (including 29 February). Since 367>366367 > 366, it is not injective: two people share a birthday.

Exercise 8.18 Removing one element

Let XX have cardinality n+1n + 1 and x∈Xx \in X. Show that X∖{x}X \setminus \{x\} has cardinality nn. Deduce, by induction on nn, that every subset of a set of cardinality nn is finite with cardinality at most nn.

Solution

Let g:{1,…,n+1}→Xg : \{1, \dots, n+1\} \to X be a bijection, and swap the values at g−1(x)g^{-1}(x) and n+1n + 1, so that g(n+1)=xg(n+1) = x. Then gg restricts to a bijection {1,…,n}→X∖{x}\{1, \dots, n\} \to X \setminus \{x\}. For subsets, induct on nn: for n=0n = 0 the only subset is ∅\varnothing. If the claim holds for nn and #X=n+1\#X = n + 1, take A⊆XA \subseteq X. If A=XA = X we are done. Otherwise pick x∈X∖Ax \in X \setminus A; then A⊆X∖{x}A \subseteq X \setminus \{x\}, which has cardinality nn, so AA is finite with #A≤n\#A \leq n.

Exercise 8.19 Countable unions

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 an,0,an,1,…a_{n,0}, a_{n,1}, \dots of the nn-th set. Then (n,k)↦an,k(n, k) \mapsto a_{n,k} maps N×N\mathbb{N} \times \mathbb{N} onto the union. The listings are the infinitely many choices: this is a use of the (countable) axiom of choice.

Solution

Let A0,A1,…A_0, A_1, \dots be countable, and discard the empty ones. For each nn choose a surjection an:N→Ana_n : \mathbb{N} \to A_n (Lemma 8.7); choosing one for every nn at once is where the axiom of choice is used. The map (n,k)↦an(k)(n, k) \mapsto a_n(k) from N×N\mathbb{N} \times \mathbb{N} onto ⋃nAn\bigcup_n A_n is surjective. Since N×N\mathbb{N} \times \mathbb{N} is countable, the union is an image of a countable set, hence countable.

Exercise 8.20 Algebraic numbers

A real number is algebraic if it is a root of a nonzero polynomial with integer coefficients (2\sqrt 2 is a root of x2−2x^2 - 2). 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 dd and each bound HH, there are finitely many integer polynomials of degree ≤d\leq d with coefficients bounded by HH in absolute value, and each has at most dd roots. So the algebraic numbers are a countable union of finite sets, hence countable. Since R\mathbb{R} is uncountable, some real numbers are not algebraic.

Exercise 8.21 2N2^{\mathbb{N}} and the reals

Show that 2N2^{\mathbb{N}} and [0,1][0, 1] have the same cardinality, using Schröder–Bernstein: send a subset S⊆NS \subseteq \mathbb{N} to ∑n∈S3−(n+1)\sum_{n \in S} 3^{-(n+1)} (injective, because base-3 digits 00 and 11 only, with no ambiguity), and send x∈[0,1]x \in [0, 1] to a set built from its binary expansion.

Solution

Injection 2N→[0,1]2^{\mathbb{N}} \to [0, 1]. The sum converges (compare with ∑3−(n+1)=12\sum 3^{-(n+1)} = \tfrac12) and lies in [0,12][0, \tfrac12]. If S≠S′S \neq S', let nn be the least element of one but not the other, say n∈S∖S′n \in S \setminus S'. The two sums agree on the indices below nn; after that, SS contributes at least 3−(n+1)3^{-(n+1)}, while S′S' contributes at most ∑k>n3−(k+1)=12⋅3−(n+1)\sum_{k > n} 3^{-(k+1)} = \tfrac12 \cdot 3^{-(n+1)}. So the sum for SS is larger, and the map is injective.

Injection [0,1]→2N[0, 1] \to 2^{\mathbb{N}}. For x∈[0,1)x \in [0, 1), take its binary expansion 0.b0b1b2…0.b_0b_1b_2\ldots that does not end in infinitely many ones (the binary analogue of 2A.4 The Real Numbers's decimal expansion), and send xx to {n:bn=1}\{n : b_n = 1\}. Different xx have different expansions, so different sets. These sets never contain every nn from some point on, so we can send x=1x = 1 to N\mathbb{N} without collision.

Schröder–Bernstein gives a bijection.

Exercise 8.22 The plane is no bigger than the line

Show that [0,1)[0,1) and [0,1)×[0,1)[0,1) \times [0,1) have the same cardinality, by interleaving decimal digits: (0.a1a2…,0.b1b2…)↦0.a1b1a2b2…(0.a_1a_2\ldots, 0.b_1b_2\ldots) \mapsto 0.a_1b_1a_2b_2\ldots. 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 (a,b)(a, b) have different digit sequences, and so the interleaved sequences differ. The interleaved sequence never ends in infinitely many nines (that would need both aa and bb to), so different interleaved sequences are different numbers. Hence the map is injective. It is not surjective: 0.090909…0.090909\ldots would need b=0.999…b = 0.999\ldots, which is not an allowed expansion. In the other direction x↦(x,0)x \mapsto (x, 0) is injective. Schröder–Bernstein turns the two injections into a bijection.

Exercise 8.23 Double sums revisited

Compute ∑(m,n)∈N212m3n\sum_{(m, n) \in \mathbb{N}^2} \frac{1}{2^m 3^n}, 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: ∑m2−m∑n3−n=2⋅32=3\sum_m 2^{-m} \sum_n 3^{-n} = 2 \cdot \tfrac32 = 3. In 2A.7 Series's example the terms were ±1\pm 1 and the sum of absolute values was infinite.

Exercise 8.24 Rehearsal: diagonal extraction

Let (ak(n))(a_{k}(n)) be a sequence of sequences, all bounded: ∣ak(n)∣≤1|a_k(n)| \leq 1 for all k,nk, n. Show that there is a subsequence k1<k2<⋯k_1 < k_2 < \cdots such that akj(n)a_{k_j}(n) converges as j→∞j \to \infty for every nn. (Use Bolzano–Weierstrass (2A.6 Sequences) for n=0n = 0, then on that subsequence for n=1n = 1, and so on; then take the "diagonal" subsequence: the jj-th term of the jj-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 (ak(0))k(a_k(0))_k is bounded, so by Bolzano–Weierstrass it has a convergent subsequence: an infinite set of indices K0⊆NK_0 \subseteq \mathbb{N} along which ak(0)a_k(0) converges. Along K0K_0, (ak(1))(a_k(1)) is bounded, so there is an infinite K1⊆K0K_1 \subseteq K_0 along which ak(1)a_k(1) converges too. Continue: K0⊇K1⊇K2⊇⋯K_0 \supseteq K_1 \supseteq K_2 \supseteq \cdots, each infinite, with ak(n)a_k(n) convergent along KnK_n (and along any subsequence of it). Now let kjk_j be the jj-th element of KjK_j (in increasing order). Then kj+1>kjk_{j+1} > k_j: the (j+1)(j{+}1)-th element of Kj+1K_{j+1} is at least the (j+1)(j{+}1)-th element of KjK_j, since Kj+1⊆KjK_{j+1} \subseteq K_j, which is larger than the jj-th. And for each fixed nn, the terms kjk_j with j≥nj \geq n all lie in KnK_n, so from j=nj = n on, (akj(n))(a_{k_j}(n)) is a subsequence of a convergent sequence, hence convergent. A single subsequence works for every nn, though no single KnK_n does.

Exercise 8.25 Finite subsets

Show that the set of all finite subsets of N\mathbb{N} is countable. Why doesn't this contradict Cantor's theorem?

Solution

It is the union over m∈Nm \in \mathbb{N} of the sets FmF_m of subsets of {0,…,m}\{0, \dots, m\}, each finite (with 2m+12^{m+1} elements), so a countable union of finite sets, hence countable. (No choice is needed: each FmF_m can be listed by an explicit rule, for instance by the binary number ∑n∈S2n\sum_{n \in S} 2^n, which is itself a bijection from finite subsets to N\mathbb{N}.) Cantor's theorem concerns all subsets; the infinite ones are what make 2N2^{\mathbb{N}} uncountable.

Exercise 8.26 Most reals are irrational

Show that the set of irrational numbers is uncountable.

Solution

If it were countable, R=Q∪(R∖Q)\mathbb{R} = \mathbb{Q} \cup (\mathbb{R} \setminus \mathbb{Q}) would be a union of two countable sets, hence countable, contradicting Theorem 8.10.

Exercise 8.27 An interval is as big as the line

Show that x↦12+x2(1+∣x∣)x \mapsto \frac12 + \frac{x}{2(1 + |x|)} is an injection from R\mathbb{R} into (0,1)(0, 1), and conclude with Schröder–Bernstein that (0,1)(0, 1) and R\mathbb{R} have the same cardinality.

Solution

Let u(x)=x1+∣x∣u(x) = \frac{x}{1 + |x|}. For x≥0x \geq 0, u(x)=1−11+xu(x) = 1 - \frac{1}{1 + x}, which increases strictly and lies in [0,1)[0, 1); for x<0x < 0, u(x)=−1+11−xu(x) = -1 + \frac{1}{1 - x}, which increases strictly and lies in (−1,0)(-1, 0). So uu is strictly increasing on R\mathbb{R} with values in (−1,1)(-1, 1), hence injective, and 12+12u(x)\frac12 + \frac12 u(x) is an injection into (0,1)(0, 1). The inclusion (0,1)→R(0, 1) \to \mathbb{R} 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

Watch 4 lectures and talks

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