Mathematical Methods Handbook

Sets, topology and continuity

The language of sets, open sets, continuity and compactness that the rest of the handbook assumes.

In this chapter 6

Tick a unit to add it to your PDF basket.

  1. Sets and functions
  2. Topological spaces

Sets and functions

2

Definition

Sets, functions and countability

Adapted

Fixes the set and map notation used throughout the handbook, including which of the image and inverse-image identities hold without hypotheses, and gives the comparison of cardinalities together with Cantor's theorem and the standard list of countable and uncountable sets.

NoteOriginal

What it means. This unit is the handbook's dictionary for sets and maps. Two things in it are used again and again and are easy to get wrong: the inverse image f−1(E)f^{-1}(E) is defined for every map and every subset EE of the codomain, and never needs ff to be invertible; and "countable" is a statement about the existence of an injection into N\mathbb{N}, not about being small. Cantor's theorem is the reason a handbook needs the word "uncountable" at all: R\mathbb{R}, the set of sequences of 00s and 11s, and the set of all subsets of N\mathbb{N} are all strictly larger than N\mathbb{N}, so no list exhausts them.

Definition(Sets, families and operations)AdaptedAdapted from Folland (1999), Prologue, §0.1, pp. 2-3; Hassani (2013), §1.1, pp. 2-3

Inclusion is always weak: E⊆XE \subseteq X allows E=XE = X. The empty set is ∅\emptyset, and the power set of XX is P(X)={E:E⊆X}\mathcal{P}(X) = \{E : E \subseteq X\}. The words family and collection mean "set".

Given an indexed family {Eα}α∈A\{E_\alpha\}_{\alpha \in A} of sets, with AA a nonempty index set,

⋃α∈AEα={x:x∈Eα for some α∈A},⋂α∈AEα={x:x∈Eα for every α∈A}.\bigcup_{\alpha \in A} E_\alpha = \{x : x \in E_\alpha \text{ for some } \alpha \in A\}, \qquad \bigcap_{\alpha \in A} E_\alpha = \{x : x \in E_\alpha \text{ for every } \alpha \in A\} .

The EαE_\alpha are disjoint if Eα∩Eβ=∅E_\alpha \cap E_\beta = \emptyset whenever α≠β\alpha \neq \beta. The difference is E∖F={x:x∈E and x∉F}E \setminus F = \{x : x \in E \text{ and } x \notin F\}. When every set in sight is a subset of one fixed set XX, the complement of EE in XX is Ec=X∖EE^{c} = X \setminus E, and De Morgan's laws hold for any nonempty family of subsets of XX:

(⋃α∈AEα)c=⋂α∈AEαc,(⋂α∈AEα)c=⋃α∈AEαc.\Bigl(\bigcup_{\alpha \in A} E_\alpha\Bigr)^{c} = \bigcap_{\alpha \in A} E_\alpha^{c}, \qquad \Bigl(\bigcap_{\alpha \in A} E_\alpha\Bigr)^{c} = \bigcup_{\alpha \in A} E_\alpha^{c} .

The Cartesian product X×YX \times Y is the set of ordered pairs (x,y)(x, y) with x∈Xx \in X and y∈Yy \in Y; XnX^{n} is the set of ordered nn-tuples from XX. For a family {Xα}α∈A\{X_\alpha\}_{\alpha \in A}, the product ∏α∈AXα\prod_{\alpha \in A} X_\alpha is the set of maps ff on AA with f(α)∈Xαf(\alpha) \in X_\alpha for every α\alpha.

In this handbook N={1,2,… }\mathbb{N} = \{1, 2, \dots\} excludes 00, and Z\mathbb{Z}, Q\mathbb{Q}, R\mathbb{R}, C\mathbb{C} are the integers, rationals, reals and complex numbers.

Definition(Maps, images and inverse images)AdaptedAdapted from Folland (1999), Prologue, §0.1, pp. 3-4; Hassani (2013), §1.2, pp. 4-6, Example 1.2.5, p. 7

A map f:X→Yf : X \to Y assigns to each x∈Xx \in X exactly one element f(x)∈Yf(x) \in Y. XX is the domain, YY the codomain, and f(X)⊆Yf(X) \subseteq Y the range. A map into R\mathbb{R} or C\mathbb{C} is usually called a function. For D⊆XD \subseteq X and E⊆YE \subseteq Y,

f(D)={f(x):x∈D}⊆Y,f−1(E)={x∈X:f(x)∈E}⊆X,f(D) = \{f(x) : x \in D\} \subseteq Y, \qquad f^{-1}(E) = \{x \in X : f(x) \in E\} \subseteq X ,

the image of DD and the inverse image (or preimage) of EE. The symbol f−1(E)f^{-1}(E) is defined for every map ff and every E⊆YE \subseteq Y; it is a subset of XX, possibly empty, and carries no claim that ff has an inverse.

The composition of f:X→Yf : X \to Y and g:Y→Zg : Y \to Z is g∘f:X→Zg \circ f : X \to Z, (g∘f)(x)=g(f(x))(g \circ f)(x) = g(f(x)). The restriction of ff to A⊆XA \subseteq X is the map f∣A:A→Yf|_A : A \to Y with f∣A(x)=f(x)f|_A(x) = f(x).

The map ff is

  • injective if f(x1)=f(x2)f(x_1) = f(x_2) only when x1=x2x_1 = x_2;
  • surjective if f(X)=Yf(X) = Y;
  • bijective if it is both.

A bijective ff has a unique inverse map f−1:Y→Xf^{-1} : Y \to X, characterised by f−1∘f=idXf^{-1} \circ f = \mathrm{id}_X and f∘f−1=idYf \circ f^{-1} = \mathrm{id}_Y. Whether a map is injective or surjective depends on the domain and codomain, not on the formula alone: x↦x2x \mapsto x^{2} is a bijection of (0,∞)(0, \infty) onto (0,∞)(0, \infty), injective but not surjective as a map (0,∞)→R(0, \infty) \to \mathbb{R}, and neither as a map R→R\mathbb{R} \to \mathbb{R}.

A sequence in XX is a map f:N→Xf : \mathbb{N} \to X, usually written {xn}n=1∞\{x_n\}_{n=1}^{\infty} with xn=f(n)x_n = f(n). A subsequence of it is a composition f∘gf \circ g in which g:N→Ng : \mathbb{N} \to \mathbb{N} is strictly increasing.

Definition(Inverse images respect all three operations; images only unions)AdaptedAdapted from Folland (1999), Prologue, §0.1, p. 4

Let f:X→Yf : X \to Y. For every nonempty family {Eα}α∈A\{E_\alpha\}_{\alpha \in A} of subsets of YY, every E⊆YE \subseteq Y, and every nonempty family {Dα}α∈A\{D_\alpha\}_{\alpha \in A} of subsets of XX:

f−1(⋃α∈AEα)=⋃α∈Af−1(Eα),f−1(⋂α∈AEα)=⋂α∈Af−1(Eα),f^{-1}\Bigl(\bigcup_{\alpha \in A} E_\alpha\Bigr) = \bigcup_{\alpha \in A} f^{-1}(E_\alpha), \qquad f^{-1}\Bigl(\bigcap_{\alpha \in A} E_\alpha\Bigr) = \bigcap_{\alpha \in A} f^{-1}(E_\alpha),f−1(Y∖E)=X∖f−1(E),f(⋃α∈ADα)=⋃α∈Af(Dα).f^{-1}(Y \setminus E) = X \setminus f^{-1}(E), \qquad f\Bigl(\bigcup_{\alpha \in A} D_\alpha\Bigr) = \bigcup_{\alpha \in A} f(D_\alpha) .

That is, the map f−1:P(Y)→P(X)f^{-1} : \mathcal{P}(Y) \to \mathcal{P}(X) commutes with unions, intersections and complements, and the map D↦f(D)D \mapsto f(D) from P(X)\mathcal{P}(X) to P(Y)\mathcal{P}(Y) commutes with unions. The image does not in general commute with intersections or with complements.

Idea of the proof(Images and inverse images)Original

Membership in an inverse image is a condition on the one element f(x)f(x): "x∈f−1(E)x \in f^{-1}(E)" is nothing but "f(x)∈Ef(x) \in E". So "or", "and" and "not" in the condition on f(x)f(x) pass straight through to the same connectives in the condition on xx, and f−1f^{-1} respects all three operations.

Membership in an image is a condition of a different shape: "y∈f(D)y \in f(D)" says that some x∈Dx \in D has f(x)=yf(x) = y. An existential quantifier may be swapped with "or", because both are existential, but not with "and" and not with "not". That single asymmetry is the whole statement, and it is also the source of the failures listed in the remark below.

Proof(Images and inverse images)Original

Folland states these identities and calls them easily verified (p. 4); here is the verification. Each part is a chain of equivalences between conditions on one element, so the two sets in question have the same members. The index set AA is nonempty throughout.

Unions, inverse image. For x∈Xx \in X,

x∈f−1(⋃αEα)  ⟺  f(x)∈⋃αEα  ⟺  f(x)∈Eα for some α  ⟺  x∈f−1(Eα) for some α,x \in f^{-1}\Bigl(\bigcup_\alpha E_\alpha\Bigr) \iff f(x) \in \bigcup_\alpha E_\alpha \iff f(x) \in E_\alpha \text{ for some } \alpha \iff x \in f^{-1}(E_\alpha) \text{ for some } \alpha ,

the three steps being the definition of the inverse image, the definition of the union, and the definition of the inverse image again. The last condition says x∈⋃αf−1(Eα)x \in \bigcup_\alpha f^{-1}(E_\alpha).

Intersections, inverse image. The same four conditions with "for some" replaced by "for every" throughout, and ⋃\bigcup by ⋂\bigcap.

Complements. For x∈Xx \in X, x∈f−1(Y∖E)x \in f^{-1}(Y \setminus E) means f(x)∈Yf(x) \in Y and f(x)∉Ef(x) \notin E. The first clause holds automatically, ff taking values in YY, so the condition reduces to f(x)∉Ef(x) \notin E, that is to x∉f−1(E)x \notin f^{-1}(E). As xx ranges over XX, this says f−1(Y∖E)=X∖f−1(E)f^{-1}(Y\setminus E) = X \setminus f^{-1}(E).

Unions, image. For y∈Yy \in Y,

y∈f(⋃αDα)  ⟺  y=f(x) for some x∈⋃αDα  ⟺  there are α and x∈Dα with y=f(x),y \in f\Bigl(\bigcup_\alpha D_\alpha\Bigr) \iff y = f(x) \text{ for some } x \in \bigcup_\alpha D_\alpha \iff \text{there are } \alpha \text{ and } x \in D_\alpha \text{ with } y = f(x) ,

and the last condition is y∈f(Dα)y \in f(D_\alpha) for some α\alpha, that is y∈⋃αf(Dα)y \in \bigcup_\alpha f(D_\alpha). The only manoeuvre was to exchange two existential quantifiers, which is always allowed.

Why the image stops there. The last chain used that "for some xx" commutes with "for some α\alpha". It does not commute with "for every α\alpha": a yy that is hit from inside every DαD_\alpha need not be hit from inside their intersection, because the witnesses xx may differ from one α\alpha to the next. Nor can an existential quantifier be moved through a negation. The remark below exhibits both failures with f(x)=x2f(x) = x^2. □\square

Definition(Comparison of cardinality; countable sets)AdaptedAdapted from Folland (1999), §0.3, pp. 6-7

For nonempty sets XX and YY write

  • card⁡(X)≤card⁡(Y)\operatorname{card}(X) \le \operatorname{card}(Y) if there exists an injection X→YX \to Y;
  • card⁡(X)=card⁡(Y)\operatorname{card}(X) = \operatorname{card}(Y) if there exists a bijection X→YX \to Y;
  • card⁡(X)≥card⁡(Y)\operatorname{card}(X) \ge \operatorname{card}(Y) if there exists a surjection X→YX \to Y;
  • card⁡(X)<card⁡(Y)\operatorname{card}(X) < \operatorname{card}(Y) if there is an injection X→YX \to Y but no bijection X→YX \to Y;
  • card⁡(X)>card⁡(Y)\operatorname{card}(X) > \operatorname{card}(Y) if there is a surjection X→YX \to Y but no bijection X→YX \to Y.

Note which map each strict relation asks for: << is about injections, >> about surjections, both with no bijection allowed. These are relations between two sets; the symbol card⁡(X)\operatorname{card}(X) standing alone is given no meaning here, except that for finite XX we write card⁡(X)=n\operatorname{card}(X) = n to mean that there is a bijection of XX onto {1,…,n}\{1, \dots, n\}. Only the two weak relations are extended to the empty set, by declaring card⁡(∅)≤card⁡(X)\operatorname{card}(\emptyset) \le \operatorname{card}(X) and card⁡(X)≥card⁡(∅)\operatorname{card}(X) \ge \operatorname{card}(\emptyset) for every nonempty XX; ==, << and >> are left undefined when either set is empty, so every statement below that uses them assumes both sets nonempty, as Folland does for his whole section (p. 6).

XX is countable if card⁡(X)≤card⁡(N)\operatorname{card}(X) \le \operatorname{card}(\mathbb{N}), that is, if some injection X→NX \to \mathbb{N} exists; every finite set is countable, since {1,…,n}\{1, \dots, n\} injects into N\mathbb{N}. XX is countably infinite if it is countable and not finite, so that a countable set is either finite or countably infinite by definition. That countably infinite sets are exactly the sets in bijection with N\mathbb{N} is a theorem, not part of this definition; it is item 3 of the countability list below. XX is uncountable if it is not countable. Finally, card⁡(X)=c\operatorname{card}(X) = \mathfrak{c} ("XX has the cardinality of the continuum") means card⁡(X)=card⁡(R)\operatorname{card}(X) = \operatorname{card}(\mathbb{R}).

Definition(Injections both ways, and injections versus surjections)AdaptedAdapted from Folland (1999), §0.3, Prop 0.6 and Thm 0.8 (Schroeder-Bernstein), p. 7

Let XX and YY be nonempty sets.

  1. (Schröder-Bernstein) If card⁡(X)≤card⁡(Y)\operatorname{card}(X) \le \operatorname{card}(Y) and card⁡(Y)≤card⁡(X)\operatorname{card}(Y) \le \operatorname{card}(X), then card⁡(X)=card⁡(Y)\operatorname{card}(X) = \operatorname{card}(Y). In plain terms: an injection X→YX \to Y together with an injection Y→XY \to X yields a bijection X→YX \to Y.
  2. card⁡(X)≤card⁡(Y)\operatorname{card}(X) \le \operatorname{card}(Y) if and only if card⁡(Y)≥card⁡(X)\operatorname{card}(Y) \ge \operatorname{card}(X): an injection X→YX \to Y exists exactly when a surjection Y→XY \to X exists.
Idea of the proof(Injections both ways)Original

Part 2 is two constructions. An injection is a bijection onto its range, so it can be inverted there and told to send everything else to one fixed point, which produces a surjection the other way. A surjection has nonempty fibres, so picking one element out of each fibre produces an injection the other way — and picking infinitely many things at once is where the axiom of choice enters.

Part 1, the Schröder-Bernstein theorem, is harder, because two injections may interleave the two sets in a complicated way. The device is to let the maps sort the elements themselves: from any element, step backwards through gg and ff alternately, as far as the maps allow. Injectivity makes each backward step unique, so every element has one well-defined backward chain, and the chain either runs forever or comes to a halt on the XX side or on the YY side. This cuts both sets into three matching pieces, on two of which ff is already a bijection and on the third of which gg is; glueing the three gives the bijection wanted.

Proof(Injections both ways)AdaptedAdapted from Folland (1999), §0.3, Prop 0.6 and Thm 0.8, p. 7

Part 2, from an injection to a surjection. Let f:X→Yf : X \to Y be injective. Since XX is nonempty, fix some x∗∈Xx_* \in X and define g:Y→Xg : Y \to X by: g(y)g(y) is the unique xx with f(x)=yf(x) = y when y∈f(X)y \in f(X), and g(y)=x∗g(y) = x_* otherwise. The first clause is unambiguous precisely because ff is injective. Given any x∈Xx \in X, the element y=f(x)y = f(x) has g(y)=xg(y) = x, so gg is surjective.

Part 2, from a surjection to an injection. Let g:Y→Xg : Y \to X be surjective. For each x∈Xx \in X the fibre g−1({x})g^{-1}(\{x\}) is nonempty, by surjectivity, and distinct fibres are disjoint. Choose one element f(x)∈g−1({x})f(x) \in g^{-1}(\{x\}) for every x∈Xx \in X at once; this is an appeal to the axiom of choice (see the remark). Then g(f(x))=xg(f(x)) = x for all xx, so f(x1)=f(x2)f(x_1) = f(x_2) gives x1=g(f(x1))=g(f(x2))=x2x_1 = g(f(x_1)) = g(f(x_2)) = x_2 and ff is injective. The two halves together say card⁡(X)≤card⁡(Y)\operatorname{card}(X) \le \operatorname{card}(Y) if and only if card⁡(Y)≥card⁡(X)\operatorname{card}(Y) \ge \operatorname{card}(X).

Part 1 (Schröder-Bernstein). Let f:X→Yf : X \to Y and g:Y→Xg : Y \to X be injections.

Step 1 (backward chains). Call yy the predecessor of x∈Xx \in X if x=g(y)x = g(y), and xx the predecessor of y∈Yy \in Y if y=f(x)y = f(x). A point of XX has a predecessor exactly when it lies in g(Y)g(Y), a point of YY exactly when it lies in f(X)f(X), and in both cases the predecessor is unique because gg and ff are injective. Starting from any point and passing to predecessors as long as they exist therefore produces one well-defined chain, alternating between the two sets.

Step 2 (three types). The chain of a point does exactly one of three things: it continues for ever; it halts at a point of X∖g(Y)X \setminus g(Y); it halts at a point of Y∖f(X)Y \setminus f(X). Let X∞X_\infty, XXX_X, XYX_Y be the sets of x∈Xx \in X of the three types, and Y∞Y_\infty, YXY_X, YYY_Y likewise for YY. Since every point has one chain with one behaviour, XX is the disjoint union of X∞X_\infty, XXX_X, XYX_Y, and YY of Y∞Y_\infty, YXY_X, YYY_Y; some pieces may be empty.

Step 3 (both maps preserve the type). Let x∈Xx \in X. Then f(x)∈f(X)f(x) \in f(X), so f(x)f(x) has a predecessor, and that predecessor is xx; the chain of f(x)f(x) is thus f(x)f(x) followed by the chain of xx. Prefixing one term changes neither whether a chain halts nor where, so f(x)f(x) has the same type as xx:

f(X∞)⊆Y∞,f(XX)⊆YX,f(XY)⊆YY,f(X_\infty) \subseteq Y_\infty, \qquad f(X_X) \subseteq Y_X, \qquad f(X_Y) \subseteq Y_Y ,

and by the identical argument g(y)g(y) has the same type as yy for every y∈Yy \in Y.

Step 4 (ff exhausts the first two pieces of YY). Let y∈Y∞∪YXy \in Y_\infty \cup Y_X. Its chain does not halt at yy itself: halting at yy would mean y∉f(X)y \notin f(X), which puts yy in YYY_Y. So y∈f(X)y \in f(X), and x=f−1(y)x = f^{-1}(y) has the same type as yy by Step 3. Hence ff maps X∞X_\infty onto Y∞Y_\infty and XXX_X onto YXY_X, and being injective it is a bijection in each case.

Step 5 (gg exhausts the third piece of XX). Let x∈XYx \in X_Y. Its chain does not halt at xx itself, since that would mean x∉g(Y)x \notin g(Y) and put xx in XXX_X. So x∈g(Y)x \in g(Y), and y=g−1(x)y = g^{-1}(x) has the same type as xx, namely type YYY_Y. Conversely g(YY)⊆XYg(Y_Y) \subseteq X_Y by Step 3. So gg restricts to a bijection YY→XYY_Y \to X_Y, and g−1g^{-1} to a bijection XY→YYX_Y \to Y_Y.

Step 6 (glue). Define h:X→Yh : X \to Y by h=fh = f on X∞∪XXX_\infty \cup X_X and h=g−1h = g^{-1} on XYX_Y. The three pieces partition XX, the three sets Y∞Y_\infty, YXY_X, YYY_Y partition YY, and hh is a bijection from each piece onto the corresponding one by Steps 4 and 5. A map that carries each block of one partition bijectively onto a block of another, with distinct blocks going to distinct blocks, is itself a bijection. Hence card⁡(X)=card⁡(Y)\operatorname{card}(X) = \operatorname{card}(Y). □\square

Definition(Cantor's theorem)AdaptedAdapted from Folland (1999), §0.3, Prop 0.9, p. 7

Let XX be any set and let g:X→P(X)g : X \to \mathcal{P}(X) be any map. Then the set

Y={x∈X:x∉g(x)}⊆XY = \{x \in X : x \notin g(x)\} \subseteq X

is not in the range of gg, so gg is not surjective. Consequently

card⁡(X)<card⁡(P(X))\operatorname{card}(X) < \operatorname{card}\bigl(\mathcal{P}(X)\bigr)

for every nonempty set XX: the injection x↦{x}x \mapsto \{x\} exists, but no bijection does. (The first assertion needs no hypothesis on XX; the displayed one is restricted to nonempty XX only because << is defined only there.)

Idea of the proof(Cantor's theorem)Original

The set YY is built to disagree with the candidate g(x)g(x) at the point xx: by its definition, xx belongs to YY exactly when xx does not belong to g(x)g(x). A single set thus differs from every set in the range of gg, each time at a different point, so gg misses YY. Nothing about XX or gg is used. The other half of the conclusion is the cheapest injection there is, x↦{x}x \mapsto \{x\}.

Proof(Cantor's theorem)AdaptedAdapted from Folland (1999), §0.3, Prop 0.9, p. 7

Step 1 (YY is not a value of gg). Suppose Y=g(x0)Y = g(x_0) for some x0∈Xx_0 \in X, and ask whether x0∈Yx_0 \in Y. Exactly one of the two answers must hold, and both are impossible:

  • if x0∈Yx_0 \in Y, then by the definition of YY we have x0∉g(x0)x_0 \notin g(x_0), and g(x0)=Yg(x_0) = Y, so x0∉Yx_0 \notin Y;
  • if x0∉Y=g(x0)x_0 \notin Y = g(x_0), then x0x_0 satisfies the condition defining YY, so x0∈Yx_0 \in Y.

Hence no such x0x_0 exists: Y∉g(X)Y \notin g(X), and gg is not surjective. No hypothesis on XX or on gg entered this step.

Step 2 (the injection). The map x↦{x}x \mapsto \{x\} from XX to P(X)\mathcal{P}(X) is injective, since {x1}={x2}\{x_1\} = \{x_2\} forces x1=x2x_1 = x_2. So card⁡(X)≤card⁡(P(X))\operatorname{card}(X) \le \operatorname{card}(\mathcal{P}(X)) for nonempty XX; note P(X)\mathcal{P}(X) is never empty, containing ∅\emptyset.

Step 3 (no bijection). A bijection X→P(X)X \to \mathcal{P}(X) would in particular be a surjection, which Step 1 forbids. An injection exists and no bijection does, which is the definition of card⁡(X)<card⁡(P(X))\operatorname{card}(X) < \operatorname{card}(\mathcal{P}(X)). □\square

Definition(Which sets are countable, and which are not)AdaptedAdapted from Folland (1999), §0.3, Prop 0.10, Cor 0.11, Prop 0.12, Cor 0.13, pp. 7-8
  1. Products. Countability of XX and of YY carries over to X×YX \times Y.
  2. Indexed unions. Suppose the index set AA is countable and so is each XαX_\alpha, α∈A\alpha \in A. Then ⋃α∈AXα\bigcup_{\alpha \in A} X_\alpha is countable too.
  3. Countable and infinite means in bijection with N\mathbb{N}. Should XX be countably infinite, that is, countable and not finite, then card⁡(X)=card⁡(N)\operatorname{card}(X) = \operatorname{card}(\mathbb{N}): an injection X→NX \to \mathbb{N} can be upgraded to a bijection. The special case that carries the general one: an infinite S⊆NS \subseteq \mathbb{N} admits a bijection onto N\mathbb{N}.
  4. The usual number systems. Both Z\mathbb{Z} and Q\mathbb{Q} are countable.
  5. The reals. card⁡(P(N))=c\operatorname{card}(\mathcal{P}(\mathbb{N})) = \mathfrak{c}. Read together with Cantor's theorem this gives
card⁡(N)<card⁡(P(N))=card⁡(R),\operatorname{card}(\mathbb{N}) < \operatorname{card}\bigl(\mathcal{P}(\mathbb{N})\bigr) = \operatorname{card}(\mathbb{R}) ,

so R\mathbb{R} is not countable. 6. Beyond the continuum. card⁡(X)>c\operatorname{card}(X) > \mathfrak{c} forces XX to be uncountable; here, by the definition of >> above, the hypothesis is that some surjection X→RX \to \mathbb{R} exists and no bijection X→RX \to \mathbb{R} does.

Idea of the proof(The countability list)Original

Almost everything rests on one enumeration: list the pairs (j,k)(j,k) of positive integers by the value of j+kj+k, and within each group by increasing jj. That makes N2\mathbb{N}^2 countable, which gives products; countable unions then reduce to products, once one enumeration has been chosen for each piece; and Z\mathbb{Z} and Q\mathbb{Q} are built from products and unions.

Item 3 needs a different idea: repeatedly take the least element not yet used. It works because every nonempty subset of N\mathbb{N} has a least element, and it never runs out because the set is infinite. Item 5 is the only one about R\mathbb{R} as opposed to N\mathbb{N}, and it is settled by two injections: binary expansions turn a subset of N\mathbb{N} into a real number, and the set of rationals below a real number turns a real number into a subset of Q\mathbb{Q}. Neither is a bijection, and Schröder-Bernstein is what closes the gap between them.

Proof(The countability list)AdaptedAdapted from Folland (1999), §0.3, Prop 0.10, Cor 0.11, Prop 0.12, Cor 0.13, pp. 7-8

Item 1 (products).

Step 1 (N2\mathbb{N}^2 is countable). Group the pairs by the value of n=j+kn = j+k, which runs over the integers n≥2n \ge 2, and inside the nn-th group list the n−1n-1 pairs with j+k=nj+k = n in order of increasing jj:

(1,1);(1,2),(2,1);(1,3),(2,2),(3,1);(1,4),(2,3),(3,2),(4,1); …(1,1);\quad (1,2),(2,1);\quad (1,3),(2,2),(3,1);\quad (1,4),(2,3),(3,2),(4,1);\ \dots

Each pair appears exactly once, namely in the group n=j+kn = j+k at position jj within it, so the listing is a bijection N→N2\mathbb{N} \to \mathbb{N}^2 and its inverse a bijection N2→N\mathbb{N}^2 \to \mathbb{N}. In closed form the inverse sends (j,k)(j,k) to 12(j+k−1)(j+k−2)+j\tfrac12(j+k-1)(j+k-2) + j, the first term being 1+2+⋯+(j+k−2)1 + 2 + \dots + (j+k-2), the number of pairs in all earlier groups.

Step 2 (general XX, YY). If XX or YY is empty then X×Y=∅X \times Y = \emptyset, which is countable. Otherwise choose injections u:X→Nu : X \to \mathbb{N} and v:Y→Nv : Y \to \mathbb{N}, which exist because XX and YY are countable. Then (x,y)↦(u(x),v(y))(x,y) \mapsto (u(x), v(y)) is an injection X×Y→N2X \times Y \to \mathbb{N}^2, being injective in each slot, and composing it with the bijection of Step 1 gives an injection X×Y→NX \times Y \to \mathbb{N}.

Item 2 (indexed unions). Write U=⋃α∈AXαU = \bigcup_{\alpha \in A}X_\alpha. Deleting the indices α\alpha with Xα=∅X_\alpha = \emptyset changes neither UU nor the countability of the index set, a subset of a countable set being countable because the restriction of an injection is an injection. If every XαX_\alpha was empty then U=∅U = \emptyset is countable; so assume the remaining index set, still called AA, is nonempty and every XαX_\alpha is nonempty.

Step 1 (one enumeration per piece). Each XαX_\alpha is nonempty and countable, so by part 2 of the previous statement there is a surjection N→Xα\mathbb{N} \to X_\alpha. Choose one, fαf_\alpha, for every α∈A\alpha \in A simultaneously; this is the axiom of choice again (see the remark).

Step 2 (one surjection onto the union). Define F:N×A→UF : \mathbb{N}\times A \to U by F(n,α)=fα(n)F(n,\alpha) = f_\alpha(n). It is surjective: any u∈Uu \in U lies in some XαX_\alpha, and fαf_\alpha is onto XαX_\alpha, so u=fα(n)u = f_\alpha(n) for some nn.

Step 3 (transfer). N×A\mathbb{N} \times A is countable by item 1. By part 2 of the previous statement the surjection FF yields an injection U→N×AU \to \mathbb{N}\times A, and composing it with an injection N×A→N\mathbb{N}\times A \to \mathbb{N} gives an injection U→NU \to \mathbb{N}. So UU is countable.

Item 3 (countable and infinite means in bijection with N\mathbb{N}).

Step 1 (reduce to a subset of N\mathbb{N}). Let XX be countable and infinite and let u:X→Nu : X \to \mathbb{N} be an injection. Then uu is a bijection of XX onto S=u(X)⊆NS = u(X) \subseteq \mathbb{N}, and SS is infinite because XX is. If φ:N→S\varphi : \mathbb{N} \to S is a bijection then φ−1∘u:X→N\varphi^{-1}\circ u : X \to \mathbb{N} is one, so it is enough to enumerate SS.

Step 2 (take least elements). Set φ(1)=min⁡S\varphi(1) = \min S and recursively φ(n)=min⁡(S∖{φ(1),…,φ(n−1)})\varphi(n) = \min\bigl(S \setminus \{\varphi(1),\dots,\varphi(n-1)\}\bigr). Each set whose minimum is taken is a nonempty subset of N\mathbb{N} — nonempty because SS is infinite while the removed set is finite — and every nonempty subset of N\mathbb{N} has a least element, so φ\varphi is well defined.

Step 3 (φ\varphi is strictly increasing). By construction φ(n)\varphi(n) differs from φ(1),…,φ(n−1)\varphi(1),\dots,\varphi(n-1). Moreover φ(n)>φ(n−1)\varphi(n) > \varphi(n-1): both belong to S∖{φ(1),…,φ(n−2)}S \setminus \{\varphi(1),\dots,\varphi(n-2)\}, of which φ(n−1)\varphi(n-1) is the least element and from which φ(n)\varphi(n) differs. An induction now shows that φ(n)\varphi(n) is the nn-th smallest element of SS.

Step 4 (φ\varphi is onto). Let s∈Ss \in S and let mm be the number of elements of SS that are ≤s\le s; this is finite, there being at most ss positive integers ≤s\le s. Then ss is the mm-th smallest element of SS, hence s=φ(m)s = \varphi(m) by Step 3. So φ\varphi is a bijection and card⁡(X)=card⁡(N)\operatorname{card}(X) = \operatorname{card}(\mathbb{N}). Steps 2 to 4 alone are the special case of an infinite S⊆NS \subseteq \mathbb{N}.

Item 4 (the usual number systems). Z=N∪{−n:n∈N}∪{0}\mathbb{Z} = \mathbb{N}\cup\{-n : n \in \mathbb{N}\}\cup\{0\} is a union of three countable sets over the index set {1,2,3}\{1,2,3\}, which is finite and hence countable, so Z\mathbb{Z} is countable by item 2. Then Z×Z\mathbb{Z}\times\mathbb{Z} is countable by item 1, and

(m,n)↦{m/n,n≠0,0,n=0,(m,n) \mapsto \begin{cases} m/n, & n \neq 0, \\ 0, & n = 0, \end{cases}

is a surjection Z2→Q\mathbb{Z}^2 \to \mathbb{Q}, because every rational is a quotient of two integers with nonzero denominator. Step 3 of item 2 transfers countability along a surjection, so Q\mathbb{Q} is countable. Both are infinite, containing N\mathbb{N}, so by item 3 both are in bijection with N\mathbb{N}.

Item 5 (card⁡(P(N))=c\operatorname{card}(\mathcal{P}(\mathbb{N})) = \mathfrak{c}).

Step 1 (an injection P(N)→R\mathcal{P}(\mathbb{N}) \to \mathbb{R}). For A⊆NA \subseteq \mathbb{N} put s(A)=∑n∈A2−ns(A) = \sum_{n \in A}2^{-n}, a subseries of ∑n≥12−n=1\sum_{n\ge 1}2^{-n} = 1 and so convergent with 0≤s(A)≤10 \le s(A) \le 1. Following Folland (p. 8), define

Φ(A)={s(A),N∖A infinite,1+s(A),N∖A finite.\Phi(A) = \begin{cases} s(A), & \mathbb{N}\setminus A \text{ infinite}, \\ 1 + s(A), & \mathbb{N}\setminus A \text{ finite}. \end{cases}

Values of the first kind lie in [0,1][0,1] and values of the second in (1,2](1,2], since a set with finite complement is nonempty and so has s(A)>0s(A) > 0. So two sets falling under different cases get different values.

Step 2 (injectivity within a case). Let A≠BA \neq B fall under the same case and let mm be the least element of A△BA \triangle B, say m∈A∖Bm \in A \setminus B. Then AA and BB agree on {1,…,m−1}\{1,\dots,m-1\}, so

s(A)−s(B)=2−m+∑n>m, n∈A∖B2−n−∑n>m, n∈B∖A2−n  ≥  2−m−∑n>m2−n=0,s(A) - s(B) = 2^{-m} + \sum_{n > m,\ n \in A\setminus B} 2^{-n} - \sum_{n > m,\ n \in B \setminus A} 2^{-n} \;\ge\; 2^{-m} - \sum_{n>m}2^{-n} = 0 ,

using ∑n>m2−n=2−m\sum_{n>m}2^{-n} = 2^{-m}. Equality would force the subtracted sum to be all of ∑n>m2−n\sum_{n>m}2^{-n} and the added one to vanish, that is, every n>mn > m to lie in BB and none in AA. Then A⊆{1,…,m}A \subseteq \{1,\dots,m\} has infinite complement while N∖B⊆{1,…,m}\mathbb{N}\setminus B \subseteq \{1,\dots,m\} is finite, putting AA and BB under different cases, against the assumption. So s(A)≠s(B)s(A) \neq s(B), hence Φ(A)≠Φ(B)\Phi(A) \neq \Phi(B), and with Step 1, Φ\Phi is injective: card⁡(P(N))≤card⁡(R)\operatorname{card}(\mathcal{P}(\mathbb{N})) \le \operatorname{card}(\mathbb{R}).

Step 3 (an injection R→P(Q)\mathbb{R} \to \mathcal{P}(\mathbb{Q})). Send xx to Cx={q∈Q:q<x}C_x = \{q \in \mathbb{Q} : q < x\}. If x<yx < y, some rational lies strictly between them and belongs to CyC_y but not to CxC_x, so Cx≠CyC_x \neq C_y: the map is injective.

Step 4 (powers sets of countably infinite sets). Q\mathbb{Q} is countable and infinite, so item 3 gives a bijection ψ:Q→N\psi : \mathbb{Q}\to\mathbb{N}. Then A↦ψ(A)A \mapsto \psi(A) is a bijection P(Q)→P(N)\mathcal{P}(\mathbb{Q}) \to \mathcal{P}(\mathbb{N}), its inverse being B↦ψ−1(B)B \mapsto \psi^{-1}(B). With Step 3 this gives card⁡(R)≤card⁡(P(N))\operatorname{card}(\mathbb{R}) \le \operatorname{card}(\mathcal{P}(\mathbb{N})).

Step 5 (conclude). Injections run both ways between P(N)\mathcal{P}(\mathbb{N}) and R\mathbb{R}, so Schröder-Bernstein gives card⁡(P(N))=card⁡(R)=c\operatorname{card}(\mathcal{P}(\mathbb{N})) = \operatorname{card}(\mathbb{R}) = \mathfrak{c}. Cantor's theorem then supplies card⁡(N)<card⁡(P(N))=c\operatorname{card}(\mathbb{N}) < \operatorname{card}(\mathcal{P}(\mathbb{N})) = \mathfrak{c}. Were R\mathbb{R} countable we would have card⁡(R)≤card⁡(N)\operatorname{card}(\mathbb{R}) \le \operatorname{card}(\mathbb{N}), and with card⁡(N)≤card⁡(R)\operatorname{card}(\mathbb{N})\le\operatorname{card}(\mathbb{R}) from the inclusion N⊆R\mathbb{N}\subseteq\mathbb{R}, Schröder-Bernstein would make card⁡(P(N))=card⁡(N)\operatorname{card}(\mathcal{P}(\mathbb{N})) = \operatorname{card}(\mathbb{N}), which Cantor's theorem forbids. So R\mathbb{R} is uncountable. For the second injection Folland instead builds a surjection P(Z)→R\mathcal{P}(\mathbb{Z}) \to \mathbb{R} out of binary expansions; Steps 3 and 4 replace that by an injection, which spares us having to decide which expansions occur.

Item 6 (beyond the continuum). Assume card⁡(X)>c\operatorname{card}(X) > \mathfrak{c}, so some surjection X→RX \to \mathbb{R} exists. Suppose XX were countable, that is, an injection X→NX \to \mathbb{N} exists. Part 2 of the earlier statement converts the surjection X→RX \to \mathbb{R} into an injection R→X\mathbb{R}\to X, which composed with the injection X→NX \to \mathbb{N} gives card⁡(R)≤card⁡(N)\operatorname{card}(\mathbb{R}) \le \operatorname{card}(\mathbb{N}). Together with card⁡(N)≤card⁡(R)\operatorname{card}(\mathbb{N})\le\operatorname{card}(\mathbb{R}) and Schröder-Bernstein that makes card⁡(R)=card⁡(N)\operatorname{card}(\mathbb{R}) = \operatorname{card}(\mathbb{N}), contradicting item 5 and Cantor's theorem. So XX is uncountable. □\square

RemarkOriginal

Sharp forms of the image identities. The one-sided relations in the statement above become equalities exactly under the obvious hypotheses, and this is where most slips occur. For f:X→Yf : X \to Y:

  • D⊆f−1(f(D))D \subseteq f^{-1}(f(D)) for every D⊆XD \subseteq X, with equality for every DD if and only if ff is injective.
  • f(f−1(E))=E∩f(X)f(f^{-1}(E)) = E \cap f(X) for every E⊆YE \subseteq Y; in particular f(f−1(E))⊆Ef(f^{-1}(E)) \subseteq E, with equality for every EE if and only if ff is surjective.
  • f(⋂αDα)⊆⋂αf(Dα)f(\bigcap_\alpha D_\alpha) \subseteq \bigcap_\alpha f(D_\alpha) for every nonempty family, with equality for every such family if and only if ff is injective.

The failures are visible in one example: for f:R→Rf : \mathbb{R} \to \mathbb{R}, f(x)=x2f(x) = x^{2}, take D1={1}D_1 = \{1\} and D2={−1}D_2 = \{-1\}. Then D1∩D2=∅D_1 \cap D_2 = \emptyset, so f(D1∩D2)=∅f(D_1 \cap D_2) = \emptyset, while f(D1)∩f(D2)={1}f(D_1) \cap f(D_2) = \{1\}. The same ff has f(f−1({−1}))=∅≠{−1}f(f^{-1}(\{-1\})) = \emptyset \neq \{-1\}, because ff is not surjective, and f−1(f({1}))={−1,1}≠{1}f^{-1}(f(\{1\})) = \{-1, 1\} \neq \{1\}, because ff is not injective.

Where the hypotheses are used in the countability list. Item 2 needs both that the index set and each XαX_\alpha be countable. Dropping the first gives a false statement: R=⋃x∈R{x}\mathbb{R} = \bigcup_{x \in \mathbb{R}} \{x\} is an uncountable union of one-point sets. Item 2 also uses the axiom of choice (countable choice suffices), to pick one surjection N→Xα\mathbb{N} \to X_\alpha for each α\alpha simultaneously; the same is true of the implication "a surjection Y→XY \to X yields an injection X→YX \to Y" in the second statement above, which chooses one preimage in each fibre. See Zorn's lemma and the axiom of choice. Item 3 needs the word infinite in its hypothesis and not merely "countable": a finite set is countable but admits no bijection onto N\mathbb{N}, so the conclusion card⁡(X)=card⁡(N)\operatorname{card}(X) = \operatorname{card}(\mathbb{N}) would be false for it. Item 3 is also what makes the phrase "countably infinite" unambiguous: without it, the definition used here (countable and not finite) and the one many books give (in bijection with N\mathbb{N}) would be two different conditions.

Technique. The set Y={x:x∉g(x)}Y = \{x : x \notin g(x)\} in Cantor's theorem is the diagonal argument in its cleanest form: YY differs from g(x)g(x) at the point xx, for every xx at once. The familiar decimal version, in which a real number is built to differ from the nn-th number of a proposed list in its nn-th digit, is the same argument applied to X=NX = \mathbb{N} after identifying P(N)\mathcal{P}(\mathbb{N}) with the set of sequences of 00s and 11s.

Remark(Conventions, and what the sources leave open)AdaptedAdapted from Folland (1999), §0.1, p. 1, §0.3, pp. 6-7, and §0.7, p. 17; Hassani (2013), §1.1, p. 2, and §1.4, p. 11; Lee (2013), Appendix A, p. 600

Conventions that differ between books.

  • N\mathbb{N}. Folland (p. 1) and this handbook take N={1,2,… }\mathbb{N} = \{1, 2, \dots\}. Hassani (p. 2) takes N\mathbb{N} to be the nonnegative integers, so his index sets commonly start at 00. Nothing in this unit depends on the choice, but formulas quoted from a book may be off by one index.
  • "Countable" and "countably infinite". Both definitions here are Folland's (p. 7): countable means an injection into N\mathbb{N} exists, and countably infinite means countable and not finite. Lee (p. 600) defines the two in the opposite order, countably infinite first as "admits a bijection with the positive integers" and then countable as "finite or countably infinite". The two routes define the same two classes of sets, but only because of item 3 of the countability list; with Lee's definitions item 3 is a definition and the sentence "a countable set is either finite or countably infinite" is the theorem, and with Folland's it is the other way round. Some older books reserve "countable", or Folland's synonym denumerable, for countably infinite sets only, so that finite sets are not countable; read any such statement with the finite case checked separately.
  • card⁡(X)\operatorname{card}(X) as an object, and the strict relations. We never need a cardinal number; only the five relations listed above are defined, as in Folland (p. 6), and his >> (surjection but no bijection) is not by definition the mirror image of his << (injection but no bijection): that card⁡(X)>card⁡(Y)\operatorname{card}(X) > \operatorname{card}(Y) and card⁡(Y)<card⁡(X)\operatorname{card}(Y) < \operatorname{card}(X) say the same thing needs the injection-surjection equivalence (item 2 of "Injections both ways, and injections versus surjections" above), together with the fact that the inverse of a bijection is a bijection. Books that construct cardinals as sets (via ordinals) can write card⁡(X)\operatorname{card}(X) alone and compute with 2ℵ02^{\aleph_0}; the statements here are the same statements.

What is deliberately left open. The assertion "card⁡(X)<c\operatorname{card}(X) < \mathfrak{c} forces XX to be countable" is the continuum hypothesis. As Folland records on p. 17, set theory with choice can consistently accommodate either it or its negation, so no argument here may lean on it. Hassani (p. 11) notes that Cantor gave two proofs that R\mathbb{R} is not in bijection with the integers, and that the shorter second one is the argument used today.

Example(An explicit bijection N×N→N\mathbb{N}\times\mathbb{N}\to\mathbb{N}, and a numbering of the positive rationals)Original

The diagonal listing used in the proof is not the only enumeration of N2\mathbb{N}^2, and a different one gives formulas that can be evaluated by hand.

  1. The map. Define σ:N×N→N\sigma : \mathbb{N}\times\mathbb{N}\to\mathbb{N} by σ(j,k)=2 j−1 (2k−1).\sigma(j,k) = 2^{\,j-1}\,(2k-1) .
  2. Why it is a bijection. Every n∈Nn \in \mathbb{N} can be written as n=2abn = 2^{a}b with a≥0a \ge 0 an integer and bb odd: divide by 22 while the result is even, which must stop because the quotients strictly decrease. The pair (a,b)(a,b) is determined by nn, since 2ab=2a′b′2^{a}b = 2^{a'}b' with b,b′b, b' odd forces a=a′a = a' (otherwise one side is divisible by a higher power of 22 than the other) and then b=b′b = b'. Putting a=j−1a = j-1 and b=2k−1b = 2k-1 recovers (j,k)(j,k) uniquely, and every (j,k)(j,k) arises. So σ\sigma is a bijection, and N2\mathbb{N}^2 is countable — a second proof of item 1 of the countability list, independent of the diagonal order.
  3. Values both ways. σ(5,13)=24⋅25=400\sigma(5,13) = 2^{4}\cdot 25 = 400. In the other direction, 2024=23⋅2532024 = 2^{3}\cdot 253 with 253253 odd, so j=4j = 4 and 2k−1=2532k-1 = 253, giving k=127k = 127; the check is 23⋅253=20242^{3}\cdot 253 = 2024 and 2⋅127−1=2532\cdot 127 - 1 = 253. Thus σ(4,127)=2024\sigma(4,127) = 2024.
  4. Numbering the positive rationals. Every x∈Qx \in \mathbb{Q} with x>0x > 0 has exactly one representation x=p/qx = p/q with p,q∈Np, q \in \mathbb{N} coprime. Define τ(x)=σ(p,q)=2 p−1(2q−1).\tau(x) = \sigma(p,q) = 2^{\,p-1}(2q-1) . This is injective: τ(x)=τ(x′)\tau(x) = \tau(x') gives (p,q)=(p′,q′)(p,q) = (p',q') because σ\sigma is injective, and the lowest-terms representation determines xx. So Q>0\mathbb{Q}_{>0} is countable, with τ\tau as an explicit injection into N\mathbb{N}.
  5. Values. τ(1)=σ(1,1)=20⋅1=1\tau(1) = \sigma(1,1) = 2^{0}\cdot 1 = 1; τ(3/7)=σ(3,7)=22⋅13=52\tau(3/7) = \sigma(3,7) = 2^{2}\cdot 13 = 52; τ(7/3)=σ(7,3)=26⋅5=320\tau(7/3) = \sigma(7,3) = 2^{6}\cdot 5 = 320. The asymmetry between 5252 and 320320 is expected: τ\tau distinguishes a rational from its reciprocal.
  6. It is an injection and not a bijection. The number 6=21⋅3=σ(2,2)6 = 2^{1}\cdot 3 = \sigma(2,2) would need (p,q)=(2,2)(p,q) = (2,2), which is not in lowest terms, so 66 is not a value of τ\tau. By item 3 of the countability list a bijection Q>0→N\mathbb{Q}_{>0}\to\mathbb{N} nevertheless exists, since Q>0\mathbb{Q}_{>0} is countable and infinite; the point of items 1 to 3 is exactly that one need not exhibit it.
ApplicationOriginal

Whether an index set is countable decides the form every formula written over it can take.

  • Sums or integrals. A separable Hilbert space has a countable orthonormal basis, so the field modes in a box of finite size are indexed by a countable set — in a cubical box, by Z3\mathbb{Z}^3, countable by items 1 and 4 — and every state is a convergent series over that index, every partition function a sum ∑ne−βEn\sum_n e^{-\beta E_n}. Letting the box grow replaces the countable index by R3\mathbb{R}^3, which is uncountable, and every sum must then be rewritten as an integral against a density of states. The passage from Fourier series to the Fourier transform is the same replacement, and the reason the two theories look different is a difference of cardinality in the index set.
  • Why probability is stated for sets and not for outcomes. The outcomes of an infinite sequence of coin tosses are the maps N→{0,1}\mathbb{N}\to\{0,1\}, which correspond bijectively to the subsets of N\mathbb{N} (a map goes to the set where it takes the value 11). By Cantor's theorem and item 5 that set of outcomes has cardinality c\mathfrak{c} and is uncountable, while each individual sequence has probability lim⁡n2−n=0\lim_{n} 2^{-n} = 0. A probability therefore cannot be assembled by adding up the probabilities of the individual outcomes, which is precisely why measures are defined on σ\sigma-algebras of subsets (sigma-algebras and measures) rather than on points.
  • Most functions cannot be written down. Over a finite alphabet the strings of length nn are finitely many, so by item 2 the set of all finite strings is countable: there are only countably many formulas, programs, or closed-form expressions. The functions R→{0,1}\mathbb{R}\to\{0,1\}, on the other hand, correspond to the subsets of R\mathbb{R}, and Cantor's theorem puts their number strictly above c\mathfrak{c}. Almost every function is therefore nameless, which is the background fact that makes numerical analysis and approximation theory necessary rather than merely convenient.

Theorem · advanced

Zorn's lemma and the axiom of choice

Adapted

States Zorn's lemma on partially ordered sets, proves that it implies the well-ordering principle, the axiom of choice and the Hausdorff maximal principle, and gives the standard recipe for extracting a maximal object from it.

Prerequisites: Sets, functions and countability

Definition(Partial orders, chains, bounds and maximal elements)AdaptedAdapted from Kreyszig (1978), §4.1, Def. 4.1-1, p. 210; Folland (1999), Prologue, §0.2, pp. 4-5; Dummit & Foote (2004), Appendix I, §2, pp. 907-908; Reed & Simon (1980), §I.1, Definition, p. 3

A partial order on a set MM is a relation, written ⪯\preceq, such that for all a,b,c∈Ma, b, c \in M

  • a⪯aa \preceq a (reflexivity);
  • a⪯ba \preceq b and b⪯ab \preceq a force a=ba = b (antisymmetry);
  • a⪯ba \preceq b and b⪯cb \preceq c give a⪯ca \preceq c (transitivity).

The pair (M,⪯)(M, \preceq) is a partially ordered set, or poset. We write a≺ba \prec b for "a⪯ba \preceq b and a≠ba \neq b". Nothing requires two given elements to be related: if neither a⪯ba \preceq b nor b⪯ab \preceq a holds, aa and bb are incomparable, and the word "partial" records exactly this possibility. A poset in which no two elements are incomparable is totally ordered (equivalently linearly ordered); a totally ordered subset of a poset is a chain.

Let C⊆MC \subseteq M. An element u∈Mu \in M is an upper bound of CC if x⪯ux \preceq u for every x∈Cx \in C. The upper bound is required to lie in MM, but it need not lie in CC, and it need not exist at all.

An element m∈Mm \in M is maximal if the only x∈Mx \in M with m⪯xm \preceq x is x=mx = m: nothing in MM lies strictly above mm. Three cautions, all of which matter below.

  1. A maximal element need not be a greatest element. Maximality says that nothing beats mm; it does not say that mm beats everything, because elements incomparable with mm are neither.
  2. Maximal elements need not be unique.
  3. A maximal element of a subset CC need not be an upper bound of CC, again because of incomparability.

Four examples fix the idea; the first three are standard and the orders should be checked against the three axioms once.

  • R\mathbb{R} with its usual ≤\le is totally ordered and has no maximal element.
  • The power set P(X)\mathcal{P}(X) ordered by inclusion is partially ordered, with XX as its one maximal element. Distinct singletons {x}\{x\} and {y}\{y\} are incomparable, so the order is not total as soon as XX has two elements.
  • N\mathbb{N} ordered by divisibility (m⪯nm \preceq n when mm divides nn) is partially ordered; 22 and 33 are incomparable.
  • In Rn\mathbb{R}^{n}, declaring x⪯yx \preceq y when xj≤yjx_j \le y_j for every coordinate jj is a partial order, and for n≥2n \ge 2 it is not total.
Definition(Choice functions, well orderings)AdaptedAdapted from Dummit & Foote (2004), Appendix I, §1, Definition, p. 905; Folland (1999), Prologue, §0.1, p. 4 and §0.2, p. 5

Let {Xα}α∈A\{X_\alpha\}_{\alpha \in A} be a family of sets indexed by a nonempty set AA. A choice function for the family is a map

f:A⟶⋃α∈AXαwithf(α)∈Xα  for every α∈A,f : A \longrightarrow \bigcup_{\alpha \in A} X_\alpha \qquad\text{with}\qquad f(\alpha) \in X_\alpha \ \text{ for every } \alpha \in A ,

that is, a simultaneous selection of one element out of each XαX_\alpha. As in Sets, functions and countability, the Cartesian product ∏α∈AXα\prod_{\alpha \in A} X_\alpha is the set of these choice functions, so "a choice function exists" and "the product is nonempty" are the same assertion.

A total order ⪯\preceq on a set XX is a well ordering if every nonempty subset of XX has a least element: for each nonempty B⊆XB \subseteq X there is s∈Bs \in B with s⪯bs \preceq b for all b∈Bb \in B. Such an ss is unique, by antisymmetry. The usual order on N\mathbb{N} is a well ordering; the usual order on R\mathbb{R}, and on Q\mathbb{Q}, is not, since (0,1)(0,1) has no least element.

Theorem(Zorn's lemma)AdaptedAdapted from Kreyszig (1978), §4.1, 4.1-6, p. 211; Folland (1999), Prologue, §0.2, 0.2, p. 5; Dummit & Foote (2004), Appendix I, §2, Zorn's Lemma, p. 909

Suppose (M,⪯)(M, \preceq) is a poset for which

  • M≠∅M \neq \emptyset, and
  • each chain C⊆MC \subseteq M admits at least one upper bound belonging to MM.

Then some element of MM is maximal.

The second hypothesis is required of all chains of MM, not merely of those one happens to be interested in; the conclusion asserts existence only, and says nothing about how many maximal elements there are or how to find one.

Theorem(Equivalence with the axiom of choice)AdaptedAdapted from Dummit & Foote (2004), Appendix I, §2, Theorem 2 and the preceding independence remark, p. 909; Folland (1999), Prologue, §0.1-0.4, pp. 5-6; Kreyszig (1978), §4.1, footnote to 4.1-6, p. 211

Work in Zermelo-Fraenkel set theory with no choice principle assumed. Then these four assertions imply one another, and each is independent of that theory: granting the theory is consistent, neither the assertion nor its negation is derivable in it.

  1. Zorn's lemma, as stated above.
  2. The axiom of choice. Any nonempty family of nonempty sets possesses a choice function; equivalently, its product is not empty.
  3. The well ordering principle. On every nonempty set there exists a well ordering.
  4. The Hausdorff maximal principle. Inside any poset there is a chain which is maximal for inclusion, that is, properly contained in no other chain.

Dummit and Foote state the equivalence of items 1-3 as their Theorem 2 (p. 909) and refer the reader elsewhere for its proof; Folland takes item 4 as his starting principle and derives items 1-3 from it (pp. 5-6). Because none of the four is a theorem of Zermelo-Fraenkel set theory, one of them must be adopted as an axiom; which one is a matter of taste. Kreyszig assumes Zorn's lemma (p. 211), Folland assumes the Hausdorff maximal principle (p. 5), and Reed and Simon note that the choice is exactly this, a starting point rather than a result (p. 3).

Idea of the proofOriginal

Zorn's lemma is a substitute for induction in situations where there is no "next step" to take. To build a maximal object one would like to enlarge a partial object again and again; induction along N\mathbb{N} runs out after countably many enlargements, and in general no countable process reaches the end. Zorn's lemma removes the process altogether: it asks only that every totally ordered family of partial objects can be capped by a single partial object, and returns an object that cannot be enlarged at all.

The proofs below run in one direction around the circle of equivalences and show how each statement feeds the next. Zorn's lemma is applied to a poset whose elements are themselves orders on subsets of XX; the maximal element of that poset turns out to be a well ordering of all of XX, because anything less could be extended by one point. Once XX is well ordered, a choice function costs nothing: take the least element of each XαX_\alpha. The one implication we do not prove, the return from the axiom of choice to Zorn's lemma, is the genuinely hard one, and it is where all the set-theoretic work of the equivalence sits.

Proof(Zorn's lemma implies the other three)AdaptedAdapted from Folland (1999), Prologue, §0.2, pp. 5-6 (proof routes of 0.1, 0.3 and 0.4); Dummit & Foote (2004), Appendix I, §2, Theorem 2, p. 909

Throughout, XX is a nonempty set and Zorn's lemma is assumed.

Step 1: the Hausdorff maximal principle. Let (X,⪯)(X, \preceq) be a poset and let L\mathcal{L} be the set of all chains of XX, ordered by inclusion. It is nonempty, since ∅∈L\emptyset \in \mathcal{L}.

Let C⊆L\mathcal{C} \subseteq \mathcal{L} be a chain of chains and put U=⋃C∈CCU = \bigcup_{C \in \mathcal{C}} C, with U=∅U = \emptyset if C\mathcal{C} is empty. Then U∈LU \in \mathcal{L}: given x,y∈Ux, y \in U, say x∈C1x \in C_1 and y∈C2y \in C_2 with C1,C2∈CC_1, C_2 \in \mathcal{C}, the fact that C\mathcal{C} is totally ordered by inclusion puts both of C1,C2C_1, C_2 inside the larger of the two, which is a chain of XX, so xx and yy are comparable. Plainly C⊆UC \subseteq U for each C∈CC \in \mathcal{C}, so UU is an upper bound of C\mathcal{C} in L\mathcal{L}.

Zorn's lemma applies to L\mathcal{L} and produces a maximal element, which is by definition a chain of XX contained in no strictly larger chain.

Step 2: the well ordering principle. Let W\mathcal{W} be the set of pairs (E,⪯E)(E, \preceq_E) in which E⊆XE \subseteq X and ⪯E\preceq_E is a well ordering of EE. Order W\mathcal{W} by

(E1,⪯1)⊑(E2,⪯2)⟺E1⊆E2,  ⪯2 agrees with ⪯1 on E1,  and y⪯2x  for all y∈E1, x∈E2∖E1.(E_1, \preceq_1) \sqsubseteq (E_2, \preceq_2) \quad\Longleftrightarrow\quad E_1 \subseteq E_2,\ \ \preceq_2 \text{ agrees with } \preceq_1 \text{ on } E_1,\ \text{ and } y \preceq_2 x \ \text{ for all } y \in E_1,\ x \in E_2 \setminus E_1 .

The third clause says that E1E_1 sits at the bottom of E2E_2 as an initial segment; it is what makes the argument work, and it is dropped at no stage. Reflexivity, antisymmetry and transitivity of ⊑\sqsubseteq are immediate from those of ⊆\subseteq together with the agreement clause. W\mathcal{W} is nonempty: XX is nonempty, so pick x∈Xx \in X and take the one-point well ordering of {x}\{x\}.

Let C={(Ei,⪯i)}i∈I\mathcal{C} = \{(E_i, \preceq_i)\}_{i \in I} be a nonempty chain in W\mathcal{W}. Put E=⋃iEiE = \bigcup_i E_i and let ⪯\preceq be the union of the relations ⪯i\preceq_i, that is, y⪯xy \preceq x when y⪯ixy \preceq_i x for some ii. We check the three things an upper bound needs.

  • ⪯\preceq is a well-defined total order on EE. Given x,y∈Ex, y \in E, say x∈Eix \in E_i and y∈Ejy \in E_j, one of (Ei,⪯i)⊑(Ej,⪯j)(E_i, \preceq_i) \sqsubseteq (E_j, \preceq_j) or the reverse holds, since C\mathcal{C} is a chain; in either case both points lie in the larger set and are compared there, and the agreement clause makes the verdict independent of which EkE_k one reads it in. Transitivity and antisymmetry follow the same way, by moving the two or three points into a single EkE_k.
  • ⪯\preceq well orders EE. Let B⊆EB \subseteq E be nonempty and choose x∈Bx \in B, say x∈Eix \in E_i. Then B∩EiB \cap E_i is a nonempty subset of the well-ordered set EiE_i, so it has a ⪯i\preceq_i-least element mm. We claim mm is ⪯\preceq-least in BB. Let b∈Bb \in B, say b∈Ejb \in E_j. If (Ej,⪯j)⊑(Ei,⪯i)(E_j, \preceq_j) \sqsubseteq (E_i, \preceq_i) then b∈Eib \in E_i, so b∈B∩Eib \in B \cap E_i and m⪯ibm \preceq_i b. Otherwise (Ei,⪯i)⊑(Ej,⪯j)(E_i, \preceq_i) \sqsubseteq (E_j, \preceq_j); if b∈Eib \in E_i the same conclusion holds, and if b∈Ej∖Eib \in E_j \setminus E_i then the initial-segment clause gives y⪯jby \preceq_j b for every y∈Eiy \in E_i, in particular for y=my = m.
  • (E,⪯)(E, \preceq) dominates every member of C\mathcal{C}. Each Ei⊆EE_i \subseteq E, the orders agree by construction, and any x∈E∖Eix \in E \setminus E_i lies in some EjE_j with (Ei,⪯i)⊑(Ej,⪯j)(E_i, \preceq_i) \sqsubseteq (E_j, \preceq_j), whence y⪯xy \preceq x for all y∈Eiy \in E_i.

So (E,⪯)∈W(E, \preceq) \in \mathcal{W} is an upper bound of C\mathcal{C}, and Zorn's lemma gives a maximal (E∗,⪯∗)∈W(E_\ast, \preceq_\ast) \in \mathcal{W}. Suppose E∗≠XE_\ast \neq X and pick x0∈X∖E∗x_0 \in X \setminus E_\ast. Extend ⪯∗\preceq_\ast to E∗∪{x0}E_\ast \cup \{x_0\} by placing x0≻yx_0 \succ y for every y∈E∗y \in E_\ast. The result is a well ordering: a nonempty subset either meets E∗E_\ast, and then its least element is the one it has in E∗E_\ast, or it is {x0}\{x_0\}. The extension dominates (E∗,⪯∗)(E_\ast, \preceq_\ast) strictly, contradicting maximality. Hence E∗=XE_\ast = X and ⪯∗\preceq_\ast well orders XX.

Step 3: the axiom of choice. Let {Xα}α∈A\{X_\alpha\}_{\alpha \in A} be a nonempty family of nonempty sets and set X=⋃α∈AXαX = \bigcup_{\alpha \in A} X_\alpha, which is nonempty. By Step 2 fix a well ordering of XX and define

f(α)=the least element of Xα in that well ordering.f(\alpha) = \text{the least element of } X_\alpha \text{ in that well ordering} .

Each XαX_\alpha is a nonempty subset of XX, so the least element exists and is unique, and f(α)∈Xαf(\alpha) \in X_\alpha by construction. Thus ff is a choice function and ∏α∈AXα≠∅\prod_{\alpha \in A} X_\alpha \neq \emptyset. Note what has been bought: one well ordering, chosen once, decides all the selections at once, which is precisely what an arbitrary family refuses to do by itself.

Closing the circle. The Hausdorff maximal principle implies Zorn's lemma in one line: take a maximal chain CC of MM, let uu be an upper bound of CC, and observe that uu is maximal, since u≺xu \prec x would make C∪{x}C \cup \{x\} a strictly larger chain. The remaining implication, from the axiom of choice back to Zorn's lemma or to the Hausdorff maximal principle, is the deep one and is not proved here; Folland records that the two are logically equivalent (p. 6) and Dummit and Foote refer to Hewitt and Stromberg for the full set of implications (p. 909). □\square

Remark(Where the hypotheses are used)Original

Zorn's lemma has exactly two hypotheses, and each has a one-line counterexample.

"MM is nonempty." Without it the conclusion is false for the empty poset, which has no elements and so no maximal one, while the chain condition holds vacuously if one reads "every chain" as "every nonempty chain". The two readings of the chain condition are what is at stake: if the empty chain is admitted, an upper bound for it is any element of MM whatsoever, so the chain condition already forces M≠∅M \neq \emptyset and the first hypothesis becomes redundant. Kreyszig, Folland and Dummit and Foote all state nonemptiness separately, and that is the convention used here.

"Every chain has an upper bound in MM." Drop it and the conclusion fails: R\mathbb{R} with its usual order has no maximal element, and the obstruction is visible in the chain R\mathbb{R} itself, which has no upper bound (Kreyszig, Example 4.1-2, p. 210). The words in MM carry weight. Let MM be the set of proper subsets of N\mathbb{N} ordered by inclusion. The chain {1}⊂{1,2}⊂{1,2,3}⊂⋯\{1\} \subset \{1,2\} \subset \{1,2,3\} \subset \cdots has union N\mathbb{N}, which is not in MM, and no proper subset of N\mathbb{N} contains every {1,…,n}\{1,\dots,n\}; so this chain has no upper bound in MM and the hypothesis fails. Here the conclusion nevertheless holds, since N∖{n}\mathbb{N} \setminus \{n\} is maximal in MM for each nn: the hypothesis is sufficient, not necessary (Dummit and Foote, Appendix I, §2, Examples (2) and (3), p. 909).

In applications the chain hypothesis is almost always the only one that takes work, and it almost always fails for the same reason it fails here: the natural candidate for the upper bound, the union of the chain, leaves the set MM. Step 4 of the method below is where that is checked.

What the lemma does not give is uniqueness or constructibility. It produces at least one maximal element, usually many — the counterexample poset above has one for every nn — and it produces them by an argument that exhibits nothing. A basis of R\mathbb{R} over Q\mathbb{Q} obtained in this way cannot be written down.

Note(A stronger-looking phrasing)AdaptedAdapted from Reed & Simon (1980), §I.1, Thm I.2, p. 3

Reed and Simon keep the hypotheses above but state a formally stronger conclusion: if XX is a nonempty poset each of whose totally ordered subsets is bounded above by an element of XX, then any totally ordered subset of XX has some upper bound which is simultaneously a maximal element of XX (Theorem I.2, p. 3). Taking the chain to be a single point recovers the version stated above. Conversely their form follows from the Hausdorff maximal principle: a chain CC extends to a maximal chain C′C', and an upper bound uu of C′C' is an upper bound of CC and is maximal, since u≺xu \prec x would enlarge C′C'. The two statements are therefore equivalent, and the handbook uses the shorter one.

Method(Getting a maximal object out of Zorn's lemma)Original

Nearly every application follows one template. To produce an object that is maximal with respect to some property PP:

  1. Choose the poset. Let MM be the set of all objects of the relevant kind that have property PP — usually a set of subsets of one fixed set XX, or of partial structures defined on subsets of XX.
  2. Choose the order. Take inclusion, or extension of partial structures. Check the three axioms if the order is anything other than inclusion.
  3. Show M≠∅M \neq \emptyset. Exhibit one object. This step is where a nondegeneracy hypothesis of the theorem ("X≠{0}X \neq \{0\}", "the ideal is proper") is normally consumed.
  4. Bound the chains. Take an arbitrary nonempty chain C⊆M\mathcal{C} \subseteq M, propose u=⋃C∈CCu = \bigcup_{C \in \mathcal{C}} C as its upper bound, and prove that uu has property PP. This is the only step that uses anything specific about PP, and it succeeds precisely when PP can be tested on finitely many elements at a time: any finite set of elements of uu already lies in a single C∈CC \in \mathcal{C}, because C\mathcal{C} is totally ordered, and there PP is known.
  5. Apply the lemma. MM has a maximal element mm.
  6. Cash in maximality. Assume mm fails the conclusion wanted, and use that failure to build an element of MM strictly containing mm. The contradiction with maximality finishes the proof.

Step 6 is the one that decides what the theorem says: the same poset with a different argument at step 6 yields a different conclusion.

Example(A maximal ideal containing 1260Z1260\mathbb{Z})Original

We run the recipe on a case small enough to count, and compare the answer with what the lemma predicts.

Recall that an ideal of Z\mathbb{Z} is a subset J⊆ZJ \subseteq \mathbb{Z} closed under subtraction and under multiplication by arbitrary integers; it is proper if J≠ZJ \neq \mathbb{Z}, equivalently if 1∉J1 \notin J, since an ideal containing 11 contains r⋅1r \cdot 1 for every rr. (See Rings and fields for the general setting.) Fix I0=1260ZI_0 = 1260\mathbb{Z} and ask for a proper ideal containing I0I_0 that is as large as possible.

Steps 1 and 2. Let M={J:J an ideal of Z, I0⊆J⊊Z}M = \{J : J \text{ an ideal of } \mathbb{Z},\ I_0 \subseteq J \subsetneq \mathbb{Z}\}, ordered by inclusion.

Step 3. 1260∤11260 \nmid 1, so 1∉I01 \notin I_0 and I0I_0 is proper; hence I0∈MI_0 \in M and M≠∅M \neq \emptyset.

Step 4. Let C⊆M\mathcal{C} \subseteq M be a nonempty chain and U=⋃J∈CJU = \bigcup_{J \in \mathcal{C}} J. If a,b∈Ua, b \in U, say a∈J1a \in J_1 and b∈J2b \in J_2, then both lie in whichever of J1,J2J_1, J_2 is the larger, so a−ba - b lies in it and hence in UU; and ra∈J1⊆Ura \in J_1 \subseteq U for every r∈Zr \in \mathbb{Z}. So UU is an ideal, and I0⊆UI_0 \subseteq U. It is proper because 11 lies in no member of C\mathcal{C} and therefore not in their union. Thus U∈MU \in M is an upper bound. This is step 4 of the method in its typical form: "is an ideal" and "omits 11" are both testable two elements at a time.

Step 5. Zorn's lemma gives a maximal element m∈M\mathfrak{m} \in M.

Step 6. m\mathfrak{m} is a maximal ideal of Z\mathbb{Z}: if m⊊J⊊Z\mathfrak{m} \subsetneq J \subsetneq \mathbb{Z} for an ideal JJ, then J⊇I0J \supseteq I_0 and JJ is proper, so J∈MJ \in M, contradicting maximality of m\mathfrak{m} in MM.

Counting the poset. Every ideal of Z\mathbb{Z} is dZd\mathbb{Z} for a unique d≥0d \ge 0, and dZ⊆eZd\mathbb{Z} \subseteq e\mathbb{Z} exactly when e∣de \mid d, so inclusion is divisibility read backwards. Hence dZ⊇1260Zd\mathbb{Z} \supseteq 1260\mathbb{Z} iff d∣1260d \mid 1260, and dZd\mathbb{Z} is proper iff d≠1d \neq 1. With

1260=22⋅32⋅5⋅7,τ(1260)=(2+1)(2+1)(1+1)(1+1)=36,1260 = 2^{2} \cdot 3^{2} \cdot 5 \cdot 7 , \qquad \tau(1260) = (2+1)(2+1)(1+1)(1+1) = 36 ,

the poset MM has 36−1=3536 - 1 = \mathbf{35} elements. Its maximal elements are the dZd\mathbb{Z} with d>1d > 1 having no divisor strictly between 11 and dd, that is, with dd prime: 2Z2\mathbb{Z}, 3Z3\mathbb{Z}, 5Z5\mathbb{Z}, 7Z7\mathbb{Z}, so there are exactly 4\mathbf{4} of them. The longest chain in MM has Ω(1260)=2+2+1+1=6\Omega(1260) = 2 + 2 + 1 + 1 = \mathbf{6} elements, one for each prime factor counted with multiplicity, for instance

1260Z⊂630Z⊂210Z⊂42Z⊂21Z⊂7Z.1260\mathbb{Z} \subset 630\mathbb{Z} \subset 210\mathbb{Z} \subset 42\mathbb{Z} \subset 21\mathbb{Z} \subset 7\mathbb{Z} .

The three numbers 3535, 44 and 66 check the whole picture: the lemma promised at least one maximal element and there are four, none of which is an upper bound for all of MM — 2Z2\mathbb{Z} and 3Z3\mathbb{Z} are incomparable — which is caution 1 of the first definition in action.

Two honest remarks. First, in Z\mathbb{Z} the appeal to Zorn's lemma is a formality: the chains here are finite and the answer was read off from the factorisation. Second, the argument of steps 1-6 used nothing about Z\mathbb{Z} beyond the two facts quoted about ideals, so it proves verbatim that in any commutative ring with identity every proper ideal lies in a maximal ideal — and there, with no factorisation to fall back on, the lemma is doing real work.

ApplicationAdaptedAdapted from Kreyszig (1978), §4.1, 4.1-7, p. 211 and 4.1-8, p. 212; Lee (2013), Appendix B, Exercise B.5(a), p. 620; Reed & Simon (1980), §IV.3, p. 101; Folland (1999), Notes to §4.6, p. 148

Zorn's lemma is invisible in calculations and unavoidable in the structure theory that licenses them.

Bases of infinite-dimensional spaces. Every vector space other than {0}\{0\} has a basis, obtained by applying the recipe to the poset of linearly independent subsets ordered by inclusion (Kreyszig, 4.1-7, p. 211); the same argument extends any given linearly independent set to a basis (Lee, Exercise B.5(a), p. 620). In finite dimensions this is ordinary linear algebra, but for a space such as the continuous functions on [0,1][0,1] no basis can be exhibited, and only Zorn's lemma says one exists.

Complete sets of states. Every Hilbert space other than {0}\{0\} contains a total orthonormal set: apply the recipe to the orthonormal subsets, and at step 6 use the fact that a vector orthogonal to a maximal orthonormal set must vanish (Kreyszig, 4.1-8, p. 212). This is the theorem behind the physicist's "complete set of basis states", and it holds with no separability assumption, so it still applies to the non-separable spaces that appear in the thermodynamic limit of a quantum system. See Orthonormal bases in Hilbert space.

Extension of functionals. The Hahn-Banach theorem is proved by Zorn's lemma applied to the poset of partial extensions of a linear functional, ordered by extension of the domain; Kreyszig introduces the lemma for exactly this purpose (§4.1, p. 210). Hahn-Banach is what makes dual spaces large enough to separate points, and hence what makes expectation-value functionals on an algebra of observables a well-behaved object.

Compactness of infinite products. Tychonoff's theorem — an arbitrary product of compact spaces is compact in the product topology, a statement about compactness far beyond the finite-dimensional case — requires the axiom of choice in every known proof, and Kelley's argument shows that it in turn implies the axiom of choice, so the two are equivalent (Reed and Simon, p. 101; Folland, Notes to §4.6, p. 148). Compactness arguments on infinite configuration or state spaces therefore inherit the whole of Zorn's lemma.

The price is paid in the other direction. A basis of R\mathbb{R} as a vector space over Q\mathbb{Q}, which exists by the first item, yields additive functions f(x+y)=f(x)+f(y)f(x+y) = f(x) + f(y) that are not linear and not measurable; and the standard non-measurable subset of the line is built from a choice function. Objects produced by Zorn's lemma are guaranteed, never constructed, and anything one wants to compute with needs to be obtained some other way.

Topological spaces

4

Definition

Topological and metric spaces

Adapted

Defines a topology and the derived notions of closed set, neighbourhood, interior, closure and boundary, gives the metric topology and the subspace topology, and states what a basis is and what the Hausdorff condition buys.

Prerequisites: Sets, functions and countability, Limits of sequences and completeness

NoteOriginal

What it means. A topology is the minimum structure needed to say "near" without saying "how near": it records which sets are open, and everything else - closure, boundary, convergence, continuity - is read off from that. Every metric gives a topology, and that is the case a physicist meets almost always; the abstraction earns its keep when a useful notion of convergence has no natural distance behind it, as for pointwise or weak convergence. The Hausdorff condition is the small extra assumption that makes limits unique, and without it almost nothing familiar survives.

Definition(Topology, open and closed sets)AdaptedAdapted from Lee (2013), Appendix A, p. 596; Folland (1999), §4.1, p. 114; Reed & Simon (1980), §IV.1, pp. 91-92

A topology on a set XX is a collection T\mathcal{T} of subsets of XX such that

  1. ∅∈T\emptyset \in \mathcal{T} and X∈TX \in \mathcal{T};
  2. the union of any family of members of T\mathcal{T} is in T\mathcal{T};
  3. the intersection of any finite family of members of T\mathcal{T} is in T\mathcal{T}.

The pair (X,T)(X, \mathcal{T}) is a topological space, the members of T\mathcal{T} are the open sets, and a set F⊆XF \subseteq X is closed if X∖FX \setminus F is open. By De Morgan's laws the closed sets are therefore closed under arbitrary intersections and finite unions. When the topology is understood one writes "XX is a topological space".

Two topologies always exist on any XX: the discrete topology T=P(X)\mathcal{T} = \mathcal{P}(X), in which every subset is open, and the trivial topology T={∅,X}\mathcal{T} = \{\emptyset, X\}. If T1⊆T2\mathcal{T}_1 \subseteq \mathcal{T}_2 then T1\mathcal{T}_1 is weaker (coarser) than T2\mathcal{T}_2, and T2\mathcal{T}_2 is stronger (finer) than T1\mathcal{T}_1.

Definition(Neighbourhood, interior, closure, boundary, dense)AdaptedAdapted from Lee (2013), Appendix A, pp. 596-597; Folland (1999), §4.1, p. 114; Ahlfors (1979), Ch. 3, §1.2, pp. 52-53

Let (X,T)(X, \mathcal{T}) be a topological space, p∈Xp \in X and S⊆XS \subseteq X. Throughout this handbook a neighbourhood of pp is an open set containing pp, and a neighbourhood of SS is an open set containing SS. Then:

  • the interior Int⁡S\operatorname{Int} S (also written S∘S^{\circ}) is the largest open set that SS contains, obtained as ⋃{U∈T:U⊆S}\bigcup \{U \in \mathcal{T} : U \subseteq S\};
  • the exterior Ext⁡S\operatorname{Ext} S is Int⁡(X∖S)\operatorname{Int}(X \setminus S);
  • the closure S‾\overline{S} is the intersection of all closed sets containing SS: the smallest closed set containing SS;
  • the boundary ∂S\partial S is the set of points of XX lying in neither Int⁡S\operatorname{Int} S nor Ext⁡S\operatorname{Ext} S;
  • pp is a limit point (or accumulation point) of SS if every neighbourhood of pp contains a point of SS other than pp; acc⁡(S)\operatorname{acc}(S) denotes the set of limit points of SS;
  • p∈Sp \in S is an isolated point of SS if some neighbourhood UU of pp has U∩S={p}U \cap S = \{p\};
  • SS is dense in XX if S‾=X\overline{S} = X, and nowhere dense in XX if S‾\overline{S} contains no nonempty open set.

A sequence {pi}i=1∞\{p_i\}_{i=1}^{\infty} in XX converges to p∈Xp \in X if for every neighbourhood UU of pp there is N∈NN \in \mathbb{N} with pi∈Up_i \in U for all i≥Ni \ge N; one writes pi→pp_i \to p.

Definition(How the derived sets are computed)AdaptedAdapted from Folland (1999), §4.1, p. 114 and Prop 4.1; Lee (2013), Appendix A, pp. 596-597; Ahlfors (1979), Ch. 3, §1.2, pp. 52-53

Let XX be a topological space and S⊆XS \subseteq X, and write Sc=X∖SS^{c} = X \setminus S. Then

(Int⁡S)c=Sc‾,(S‾)c=Int⁡(Sc),∂S=S‾∖Int⁡S=S‾∩Sc‾.(\operatorname{Int} S)^{c} = \overline{S^{c}}, \qquad \bigl(\overline{S}\bigr)^{c} = \operatorname{Int}\bigl(S^{c}\bigr), \qquad \partial S = \overline{S} \setminus \operatorname{Int} S = \overline{S} \cap \overline{S^{c}} .

Moreover:

  1. openness of SS amounts to S=Int⁡SS = \operatorname{Int} S, and equally to this: every p∈Sp \in S has an open UU with p∈U⊆Sp \in U \subseteq S;
  2. closedness of SS amounts to S=S‾S = \overline{S};
  3. a point pp lies in S‾\overline{S} exactly when each of its neighbourhoods meets SS;
  4. S‾=S∪acc⁡(S)\overline{S} = S \cup \operatorname{acc}(S), so SS is closed exactly when acc⁡(S)⊆S\operatorname{acc}(S) \subseteq S;
  5. ∂S\partial S is closed, and the three sets Int⁡S\operatorname{Int} S, ∂S\partial S, Ext⁡S\operatorname{Ext} S are pairwise disjoint with union XX.
Idea of the proof(How the derived sets are computed)Original

One identity carries all the others. Taking complements turns the open subsets of SS into the closed supersets of ScS^{c}, and turns a union into an intersection; so "the largest open set inside SS" becomes "the smallest closed set outside ScS^{c}", which is the first display. The second is the first applied to ScS^{c}, and the boundary formulas follow by writing ∂S\partial S as a complement of the other two regions.

The list that follows is then bookkeeping with that identity. Items 1 and 2 are immediate from the extremality built into the definitions of Int⁡\operatorname{Int} and S‾\overline{\phantom{S}}. Item 3 is the complement identity read as a statement about points: a point fails to be in the closure exactly when it is interior to the complement, that is, when one of its neighbourhoods avoids SS entirely. Item 4 only has to deal with the clause "other than pp" in the definition of a limit point, which is free for points outside SS, and item 5 is a disjointness count.

Proof(How the derived sets are computed)AdaptedAdapted from Folland (1999), §4.1, p. 114 and Prop 4.1; Lee (2013), Appendix A, pp. 596-597; Ahlfors (1979), Ch. 3, §1.2, pp. 52-53

Step 1 (the first identity). By definition Int⁡S=⋃{U∈T:U⊆S}\operatorname{Int}S = \bigcup\{U \in \mathcal{T} : U \subseteq S\}, a union over a family that is never empty, ∅\emptyset being open and contained in SS. De Morgan's law gives

(Int⁡S)c=⋂{Uc:U∈T, U⊆S}.(\operatorname{Int}S)^{c} = \bigcap \{U^{c} : U \in \mathcal{T},\ U \subseteq S\} .

Complementation is a bijection of P(X)\mathcal{P}(X) with U∈T  ⟺  UcU \in \mathcal{T} \iff U^{c} closed and U⊆S  ⟺  Sc⊆UcU \subseteq S \iff S^{c} \subseteq U^{c}, so as UU runs over the open subsets of SS, F=UcF = U^{c} runs over exactly the closed sets containing ScS^{c}. The intersection above is therefore ⋂{F closed:Sc⊆F}=Sc‾\bigcap\{F \text{ closed} : S^{c} \subseteq F\} = \overline{S^{c}}.

Step 2 (the second identity). Apply Step 1 with ScS^{c} in place of SS: (Int⁡Sc)c=(Sc)c‾=S‾(\operatorname{Int}S^{c})^{c} = \overline{(S^{c})^{c}} = \overline{S}. Complementing both sides gives (S‾)c=Int⁡(Sc)(\overline{S})^{c} = \operatorname{Int}(S^{c}).

Step 3 (the boundary). By definition ∂S=X∖(Int⁡S∪Ext⁡S)=(Int⁡S)c∩(Int⁡(Sc))c\partial S = X \setminus (\operatorname{Int}S \cup \operatorname{Ext}S) = (\operatorname{Int}S)^{c} \cap (\operatorname{Int}(S^{c}))^{c}, and Steps 1 and 2 identify the two factors as Sc‾\overline{S^{c}} and S‾\overline{S}. Hence ∂S=S‾∩Sc‾\partial S = \overline{S}\cap\overline{S^{c}}. The same two sets also give the other form: S‾∖Int⁡S=S‾∩(Int⁡S)c=S‾∩Sc‾\overline{S}\setminus\operatorname{Int}S = \overline{S}\cap(\operatorname{Int}S)^{c} = \overline{S}\cap\overline{S^{c}} by Step 1.

Step 4 (item 1). Int⁡S\operatorname{Int}S is a union of open sets, hence open by axiom 2, and Int⁡S⊆S\operatorname{Int}S \subseteq S because each set in the union is. If SS is open then SS is itself one of the sets in the union, so S⊆Int⁡SS \subseteq \operatorname{Int}S and therefore S=Int⁡SS = \operatorname{Int}S; conversely S=Int⁡SS = \operatorname{Int}S exhibits SS as open. For the pointwise form: S⊆Int⁡SS \subseteq \operatorname{Int}S says each p∈Sp \in S lies in some open U⊆SU \subseteq S, and conversely any such UU is one of the sets whose union is Int⁡S\operatorname{Int}S.

Step 5 (item 2). S‾\overline{S} is an intersection of closed sets, hence closed (complements, axiom 2 and De Morgan), and S⊆S‾S \subseteq \overline{S} because every set in the intersection contains SS. If SS is closed it belongs to that family, so S‾⊆S\overline{S}\subseteq S and S=S‾S = \overline{S}; conversely S=S‾S = \overline{S} is closed.

Step 6 (item 3). By Step 2 and the pointwise form of Step 4,

p∉S‾  ⟺  p∈Int⁡(Sc)  ⟺  some open U has p∈U⊆Sc  ⟺  some neighbourhood of p misses S.p \notin \overline{S} \iff p \in \operatorname{Int}(S^{c}) \iff \text{some open } U \text{ has } p \in U \subseteq S^{c} \iff \text{some neighbourhood of } p \text{ misses } S .

Negating both ends: p∈S‾p \in \overline{S} exactly when every neighbourhood of pp meets SS.

Step 7 (item 4). For the inclusion ⊇\supseteq: S⊆S‾S \subseteq \overline{S} by Step 5, and if p∈acc⁡(S)p \in \operatorname{acc}(S) then every neighbourhood of pp contains a point of SS (one different from pp, but in particular a point of SS), so p∈S‾p \in \overline{S} by item 3. For ⊆\subseteq: let p∈S‾p \in \overline{S} with p∉Sp \notin S. By item 3 every neighbourhood of pp contains a point of SS, and that point differs from pp because p∉Sp \notin S; so p∈acc⁡(S)p \in \operatorname{acc}(S). Hence S‾=S∪acc⁡(S)\overline{S} = S \cup \operatorname{acc}(S). Consequently SS is closed   ⟺  S=S‾=S∪acc⁡(S)  ⟺  acc⁡(S)⊆S\iff S = \overline{S} = S\cup\operatorname{acc}(S) \iff \operatorname{acc}(S)\subseteq S, using item 2.

Step 8 (item 5). By Step 3, ∂S=S‾∩Sc‾\partial S = \overline{S}\cap\overline{S^{c}} is an intersection of two closed sets, hence closed. Next, Int⁡S⊆S\operatorname{Int}S \subseteq S and Ext⁡S=Int⁡(Sc)⊆Sc\operatorname{Ext}S = \operatorname{Int}(S^{c}) \subseteq S^{c}, so Int⁡S∩Ext⁡S⊆S∩Sc=∅\operatorname{Int}S \cap \operatorname{Ext}S \subseteq S \cap S^{c} = \emptyset. Finally ∂S\partial S is by its very definition the complement of Int⁡S∪Ext⁡S\operatorname{Int}S \cup \operatorname{Ext}S, so it is disjoint from both and the three sets have union XX. □\square

Definition(Metric space and the metric topology)AdaptedAdapted from Lee (2013), Appendix A, Examples A.5-A.6, pp. 598-599; Kreyszig (1978), §1.3, Defs 1.3-1 and 1.3-2, pp. 18-19; Ahlfors (1979), Ch. 3, §1.2, pp. 51-52; Folland (1999), §0.6, p. 15

A metric space is a set MM with a function d:M×M→Rd : M \times M \to \mathbb{R} such that, for all x,y,z∈Mx, y, z \in M,

  1. d(x,y)≥0d(x, y) \ge 0, with d(x,y)=0d(x, y) = 0 if and only if x=yx = y;
  2. d(x,y)=d(y,x)d(x, y) = d(y, x);
  3. d(x,z)≤d(x,y)+d(y,z)d(x, z) \le d(x, y) + d(y, z) (the triangle inequality).

For x∈Mx \in M and r>0r > 0, the open ball and closed ball are

Br(x)={y∈M:d(x,y)<r},B‾r(x)={y∈M:d(x,y)≤r}.B_r(x) = \{y \in M : d(x, y) < r\}, \qquad \overline{B}_r(x) = \{y \in M : d(x, y) \le r\} .

The metric topology on MM declares S⊆MS \subseteq M open if for every x∈Sx \in S there is some r>0r > 0 with Br(x)⊆SB_r(x) \subseteq S. This is a topology, and every open ball is one of its open sets; the open balls in fact form a basis for it, in the sense defined two blocks below. A topological space whose topology arises from some metric in this way is called metrizable.

Call S⊆MS \subseteq M bounded when some R>0R > 0 has d(x,y)≤Rd(x, y) \le R throughout S×SS \times S. For SS nonempty and bounded the diameter of SS is diam⁡S=sup⁡{d(x,y):x,y∈S}\operatorname{diam} S = \sup\{d(x, y) : x, y \in S\}; following Lee (p. 598) we leave diam⁡∅\operatorname{diam} \emptyset undefined, since the supremum would be over the empty set. (Folland, p. 15, instead lets diam⁡\operatorname{diam} take values in [0,∞][0, \infty] and calls SS bounded when diam⁡S<∞\operatorname{diam} S < \infty, which agrees with the definition here on nonempty sets.) A sequence {xi}\{x_i\} is Cauchy when, given ε>0\varepsilon > 0, all sufficiently late pairs of its terms satisfy d(xi,xj)<εd(x_i, x_j) < \varepsilon, and MM is complete when each Cauchy sequence it contains has a limit lying in MM (see Limits of sequences and completeness). Equipped with the Euclidean metric d(x,y)=∣x−y∣d(x, y) = |x - y|, the space Rn\mathbb{R}^{n} is complete, and the topology this metric generates on it is the Euclidean topology.

Definition(Subspace topology)AdaptedAdapted from Folland (1999), §4.1, p. 114; Lee (2013), Appendix A, Prop A.17(c), (f), (g), p. 602

If (X,T)(X, \mathcal{T}) is a topological space and S⊆XS \subseteq X, then

TS={U∩S:U∈T}\mathcal{T}_S = \{U \cap S : U \in \mathcal{T}\}

is a topology on SS, the subspace (or relative) topology; its members are the sets relatively open in SS. A set K⊆SK \subseteq S is closed in SS if and only if K=L∩SK = L \cap S for some set LL closed in XX. Bases restrict too: if B\mathcal{B} is a basis for T\mathcal{T} (next block), then {B∩S:B∈B}\{B \cap S : B \in \mathcal{B}\} is a basis for TS\mathcal{T}_S. If XX is Hausdorff, so is SS. For S⊆MS \subseteq M with MM a metric space, restricting dd to S×SS \times S makes SS a metric space whose metric topology is the subspace topology.

Definition(Basis)AdaptedAdapted from Lee (2013), Appendix A, p. 600, with Exercise A.15, p. 601; Folland (1999), §4.1, Props 4.2-4.3, p. 115; Reed & Simon (1980), §IV.1, p. 91

Reading a basis off a topology. Take XX with a topology T\mathcal{T}. A subfamily B⊆T\mathcal{B} \subseteq \mathcal{T} is called a basis (or base) for T\mathcal{T} when each member of T\mathcal{T} can be written as a union of members of B\mathcal{B}. The equivalent pointwise test: whenever U∈TU \in \mathcal{T} and x∈Ux \in U, some B∈BB \in \mathcal{B} satisfies x∈B⊆Ux \in B \subseteq U. A basis thus determines T\mathcal{T} completely, and is usually far smaller than it - in Rn\mathbb{R}^{n} the balls with rational radii and rational centres suffice, and there are only countably many of them.

Building a topology from a candidate basis. Now let XX be a bare set and B\mathcal{B} any family of subsets of XX subject to two requirements:

  1. X=⋃B∈BBX = \bigcup_{B \in \mathcal{B}} B;
  2. for B1,B2∈BB_1, B_2 \in \mathcal{B} and x∈B1∩B2x \in B_1 \cap B_2, some B3∈BB_3 \in \mathcal{B} has x∈B3⊆B1∩B2x \in B_3 \subseteq B_1 \cap B_2.

Under 1 and 2, all unions of members of B\mathcal{B} together form a topology on XX - the topology generated by B\mathcal{B} - for which B\mathcal{B} is a basis. Condition 2 is weaker than asking B\mathcal{B} to be closed under intersections, which is what makes the construction usable: the open balls of a metric space satisfy 2 but not that stronger condition.

Locally. Given p∈Xp \in X, a family Bp\mathcal{B}_p of neighbourhoods of pp is a neighbourhood basis at pp when each neighbourhood of pp contains at least one member of Bp\mathcal{B}_p. In a metric space the balls Br(p)B_r(p) with rr a positive rational do this.

Idea of the proof(The metric topology)Original

Three claims made in passing above deserve their proofs: that the recipe "open means containing a ball about each of its points" really satisfies the three axioms, that the balls themselves are open, and that they form a basis.

The first is where the word finite in axiom 3 earns its place: finitely many radii have a positive minimum, infinitely many need not. The second is the triangle inequality and nothing else: a point inside a ball has room around it, the amount of room being the distance to the boundary. The third is then automatic, because the defining condition of an open set is already in the pointwise form that the basis test asks for. The same argument shows that restricting the metric to a subset gives exactly the subspace topology.

Proof(The metric topology, its basis, and its subspaces)AdaptedAdapted from Kreyszig (1978), §1.3, pp. 18-21; Ahlfors (1979), Ch. 3, §1.2, pp. 51-52

Let (M,d)(M,d) be a metric space and let T\mathcal{T} be the collection of sets S⊆MS \subseteq M such that every x∈Sx \in S admits some r>0r > 0 with Br(x)⊆SB_r(x)\subseteq S.

Step 1 (axiom 1). ∅∈T\emptyset \in \mathcal{T} because the condition is vacuous, and M∈TM \in \mathcal{T} because Br(x)⊆MB_r(x)\subseteq M for any r>0r>0.

Step 2 (axiom 2, arbitrary unions). Let Sα∈TS_\alpha \in \mathcal{T} and x∈⋃αSαx \in \bigcup_\alpha S_\alpha. Then x∈Sβx \in S_\beta for some β\beta, which supplies r>0r>0 with Br(x)⊆Sβ⊆⋃αSαB_r(x)\subseteq S_\beta \subseteq \bigcup_\alpha S_\alpha.

Step 3 (axiom 3, finite intersections). Let S1,…,Sk∈TS_1,\dots,S_k \in \mathcal{T} and x∈S1∩⋯∩Skx \in S_1\cap\dots\cap S_k. Each SiS_i supplies ri>0r_i>0 with Bri(x)⊆SiB_{r_i}(x)\subseteq S_i. Put r=min⁡{r1,…,rk}r = \min\{r_1,\dots,r_k\}, which is positive because there are finitely many of them; then Br(x)⊆Bri(x)⊆SiB_r(x)\subseteq B_{r_i}(x)\subseteq S_i for every ii, so Br(x)B_r(x) lies in the intersection. This is the step that fails for an infinite family, and the first bullet of the remark below shows it must.

Step 4 (every ball is open). Let y∈Br(x)y \in B_r(x) and put ρ=r−d(x,y)\rho = r - d(x,y), which is positive because d(x,y)<rd(x,y)<r. For z∈Bρ(y)z \in B_\rho(y) the triangle inequality gives

d(x,z)≤d(x,y)+d(y,z)<d(x,y)+ρ=r,d(x,z) \le d(x,y) + d(y,z) < d(x,y) + \rho = r ,

so Bρ(y)⊆Br(x)B_\rho(y)\subseteq B_r(x). As y∈Br(x)y \in B_r(x) was arbitrary, Br(x)∈TB_r(x)\in\mathcal{T}.

Step 5 (the balls are a basis). They belong to T\mathcal{T} by Step 4. If S∈TS \in \mathcal{T} and x∈Sx \in S, the defining condition supplies r>0r>0 with x∈Br(x)⊆Sx \in B_r(x)\subseteq S, which is exactly the pointwise test for a basis given two blocks above. So every member of T\mathcal{T} is a union of balls.

Step 6 (a neighbourhood basis of rational radius). Given p∈Mp \in M and a neighbourhood UU of pp, Step 5 provides s>0s>0 with Bs(p)⊆UB_s(p)\subseteq U, and any rational rr with 0<r<s0<r<s gives Br(p)⊆Bs(p)⊆UB_r(p)\subseteq B_s(p)\subseteq U. So the balls about pp of positive rational radius form a neighbourhood basis at pp.

Step 7 (subspaces). Let S⊆MS \subseteq M. The restriction d∣S×Sd|_{S\times S} satisfies the three metric axioms, each being a condition on two or three points that dd already satisfies for all points of MM and hence in particular for those of SS; its balls are BrS(x)=Br(x)∩SB^{S}_r(x) = B_r(x)\cap S for x∈Sx \in S. If VV is open in (S,d∣S)(S, d|_S), then each x∈Vx \in V has some rxr_x with BrxS(x)⊆VB^{S}_{r_x}(x)\subseteq V, whence V=⋃x∈V(Brx(x)∩S)=(⋃x∈VBrx(x))∩SV = \bigcup_{x\in V}\bigl(B_{r_x}(x)\cap S\bigr) = \bigl(\bigcup_{x\in V}B_{r_x}(x)\bigr)\cap S, the intersection of SS with a set open in MM. Conversely if V=U∩SV = U\cap S with UU open in MM and x∈Vx \in V, then some Br(x)⊆UB_r(x)\subseteq U, so BrS(x)⊆U∩S=VB^{S}_r(x) \subseteq U\cap S = V. The two topologies on SS therefore coincide. □\square

Definition(Hausdorff spaces)AdaptedAdapted from Lee (2013), Appendix A, p. 600 and Exercises A.10-A.11; Folland (1999), §4.1, pp. 116-117 and Prop 4.7

Call XX Hausdorff when any two points of it can be housed in disjoint open sets: given p≠qp \neq q in XX there exist U,VU, V open with

p∈U,q∈V,U∩V=∅.p \in U, \qquad q \in V, \qquad U \cap V = \emptyset .

Then:

  1. the metric topology of any metric space is Hausdorff, so every metrizable space satisfies the condition;
  2. in a Hausdorff space each finite subset is closed;
  3. in a Hausdorff space a sequence that converges does so to one point only.

Items 2 and 3 both use the hypothesis and both fail without it; the remark below gives one topology that breaks each of them.

Idea of the proof(Hausdorff spaces)Original

Each of the three parts is one line of geometry. In a metric space two distinct points are a positive distance apart, so balls of half that radius about them cannot overlap without violating the triangle inequality. If points can be separated, then for a fixed pp every other point sits in an open set avoiding pp, and the union of all those open sets is the complement of {p}\{p\} — so the complement is open. And a sequence cannot settle into two disjoint open sets at once, because beyond some index it would have to lie in both.

Proof(Hausdorff spaces)AdaptedAdapted from Lee (2013), Appendix A, p. 600 and Exercises A.10-A.11; Folland (1999), §4.1, pp. 116-117 and Prop 4.7

Item 1 (metric spaces are Hausdorff). Let p≠qp \neq q in a metric space MM and set r=12d(p,q)r = \tfrac12 d(p,q), which is positive by the first metric axiom, d(p,q)=0d(p,q)=0 holding only for p=qp=q. The balls Br(p)B_r(p) and Br(q)B_r(q) are open by Step 4 of the previous proof and contain pp and qq. They are disjoint: a point zz in both would give

d(p,q)≤d(p,z)+d(z,q)<r+r=d(p,q),d(p,q) \le d(p,z) + d(z,q) < r + r = d(p,q) ,

by the triangle inequality, which is absurd. Hence the metric topology is Hausdorff, and so is the topology of any metrizable space, that topology being a metric topology.

Item 2 (finite sets are closed). First take a single point p∈Xp \in X. For each q∈Xq \in X with q≠pq\neq p the Hausdorff condition supplies open sets Uq∋qU_q \ni q and Vq∋pV_q \ni p with Uq∩Vq=∅U_q \cap V_q = \emptyset; in particular p∉Uqp \notin U_q, so Uq⊆X∖{p}U_q \subseteq X\setminus\{p\}. Every point of X∖{p}X\setminus\{p\} lies in its own UqU_q, so

X∖{p}=⋃q≠pUq,X \setminus \{p\} = \bigcup_{q \neq p} U_q ,

which is open by axiom 2 (and is ∅\emptyset, hence open, if X={p}X = \{p\}). Therefore {p}\{p\} is closed. A nonempty finite set is a finite union of such singletons, and finite unions of closed sets are closed because finite intersections of open sets are open; the empty set is closed because XX is open.

Item 3 (limits are unique). Suppose pi→pp_i \to p and pi→qp_i \to q with p≠qp \neq q. Choose disjoint open U∋pU \ni p and V∋qV \ni q. Convergence to pp gives N1N_1 with pi∈Up_i \in U for all i≥N1i \ge N_1, and convergence to qq gives N2N_2 with pi∈Vp_i \in V for all i≥N2i \ge N_2. For any i≥max⁡{N1,N2}i \ge \max\{N_1,N_2\} we then have pi∈U∩V=∅p_i \in U \cap V = \emptyset, which is impossible. Hence p=qp = q. □\square

Remark(Where the hypotheses are used)AdaptedAdapted from Lee (2013), Appendix A, Exercise A.9, p. 600; Kreyszig (1978), §1.3, p. 21
  • Finiteness in axiom 3. Only finite intersections of open sets are required to be open, and this cannot be relaxed. In R\mathbb{R} the sets (−1/n,1/n)(-1/n, 1/n) are open for every n∈Nn \in \mathbb{N}, but ⋂n∈N(−1/n,1/n)={0}\bigcap_{n \in \mathbb{N}} (-1/n, 1/n) = \{0\} is not. (This example is ours.)
  • Hausdorff in conclusions 2 and 3. One topology breaks both. Give a set XX with at least two points the trivial topology {∅,X}\{\emptyset, X\}, whose only nonempty open set is XX itself. Then every sequence converges to every point, so conclusion 3 fails; this is Lee's Exercise A.9, p. 600. And for p∈Xp \in X the complement X∖{p}X \setminus \{p\} is neither ∅\emptyset nor XX, hence not open, so {p}\{p\} is not closed and conclusion 2 fails as well. Uniqueness of limits therefore genuinely needs a separation hypothesis. The converse of 3 is not available in this generality: unique sequential limits do not imply Hausdorff for an arbitrary space, although they do when every point has a countable neighbourhood basis.
  • A non-metrizable space. Since every metric space is Hausdorff, a space that is not Hausdorff cannot be metrizable. The trivial topology on two or more points is again the cheapest example.

A trap in metric spaces. Br(x)‾\overline{B_r(x)} need not equal B‾r(x)\overline{B}_r(x); Kreyszig warns of this on p. 21 and leaves the example to the reader, so here is one. Take MM with the discrete metric d(x,y)=1d(x, y) = 1 for x≠yx \neq y and d(x,x)=0d(x, x) = 0, where MM has at least two points. Every subset is open, so B1(x)‾={x}‾={x}\overline{B_1(x)} = \overline{\{x\}} = \{x\}, while the closed ball B‾1(x)=M\overline{B}_1(x) = M. The two agree in Rn\mathbb{R}^{n} with the Euclidean metric but not in general.

Remark(Interior and closure do not commute with the obvious operations)Original

Int⁡(A∩B)=Int⁡A∩Int⁡B\operatorname{Int}(A \cap B) = \operatorname{Int} A \cap \operatorname{Int} B and A∪B‾=A‾∪B‾\overline{A \cup B} = \overline{A} \cup \overline{B} always hold, but for unions and intersections only the inclusions Int⁡A∪Int⁡B⊆Int⁡(A∪B)\operatorname{Int} A \cup \operatorname{Int} B \subseteq \operatorname{Int}(A \cup B) and A∩B‾⊆A‾∩B‾\overline{A \cap B} \subseteq \overline{A} \cap \overline{B} hold, and both can be strict: in R\mathbb{R} with A=QA = \mathbb{Q} and B=R∖QB = \mathbb{R} \setminus \mathbb{Q}, the left sides are ∅\emptyset and ∅\emptyset while the right sides are R\mathbb{R} and R\mathbb{R}. For the boundary only ∂(A∪B)⊆∂A∪∂B\partial(A \cup B) \subseteq \partial A \cup \partial B holds, and the same two sets make it strict: ∂(Q∪(R∖Q))=∂R=∅\partial(\mathbb{Q} \cup (\mathbb{R} \setminus \mathbb{Q})) = \partial\mathbb{R} = \emptyset, whereas ∂Q∪∂(R∖Q)=R\partial\mathbb{Q} \cup \partial(\mathbb{R} \setminus \mathbb{Q}) = \mathbb{R}.

Remark(Conventions that differ between books)AdaptedAdapted from Kreyszig (1978), §1.3, pp. 19, 21; Folland (1999), §4.1, pp. 114, 116-117; Reed & Simon (1980), §IV.1, p. 91; Ahlfors (1979), Ch. 3, §1.2, p. 52; Lee (2013), Appendix A, p. 596
  • Neighbourhood. This is the one convention that regularly causes trouble. We follow Lee (p. 596): a neighbourhood of pp is an open set containing pp. Kreyszig (p. 19), Folland (p. 114), Ahlfors (p. 52) and Reed and Simon (p. 91) all use the wider sense, in which a neighbourhood of pp is any set that contains an open set containing pp - Reed and Simon state explicitly that neighbourhoods need not be open, and Kreyszig notes that the older literature took them to be open.

    Every statement in this unit is true under either reading. The reason is that each condition stated in terms of neighbourhoods is monotone in the direction that makes enlarging the family harmless. Conditions of the form "every neighbourhood of pp meets SS" (the definition of limit point, and item 3 of the derived-sets statement) are unchanged, because a wide neighbourhood of pp contains an open one. Conditions of the form "some neighbourhood UU of pp satisfies …\dots" (the definition of an isolated point) are also unchanged, because such a UU may be replaced by the open set Int⁡U\operatorname{Int} U, which still contains pp and is contained in UU. The definition of a neighbourhood basis at pp combines the two quantifiers, and for a family of open sets the two readings again agree, since every wide neighbourhood of pp contains an open one.

    What changes with the convention is how much a single neighbourhood tells you: in the wide sense "UU is a neighbourhood of pp" says only that p∈Int⁡Up \in \operatorname{Int} U, so it does not make UU open, whereas under our convention it does. That is the step to watch. The implication "UU is a neighbourhood of each of its points, therefore UU is open" is not one of the convention-dependent ones: in the wide sense its hypothesis reads p∈Int⁡Up \in \operatorname{Int} U for every p∈Up \in U, that is U⊆Int⁡UU \subseteq \operatorname{Int} U, so UU is open - this is precisely Ahlfors's definition of an open set (Def 2, p. 52) and Folland's remark that a set is open exactly when it is a neighbourhood of itself (p. 114); under our convention it holds trivially.

  • Hausdorff and the separation axioms. Folland (pp. 116-117) presents Hausdorff as the axiom T2T_2 in a ladder T0,…,T4T_0, \dots, T_4, in which T1T_1 says that one-point sets are closed (his Prop 4.7), T3T_3 is regular and T4T_4 is normal. Conclusion 2 of the Hausdorff statement above is exactly "Hausdorff implies T1T_1"; the converse fails, so a book's "T1T_1" is strictly weaker than our "Hausdorff".

  • How the metric topology is introduced. Kreyszig (pp. 18-19) and Ahlfors (p. 52) define open sets in a metric space first and then observe that they satisfy the three axioms, so that "a metric space is a topological space". Lee (pp. 596-599) and Folland (p. 114) define the topology first and give the metric topology as an example. The resulting collection of open sets is the same.

  • Base versus basis. Folland (p. 115) and Reed and Simon (p. 91) write base, Lee (p. 600) writes basis; they are the same notion. Folland additionally uses subbase for a collection whose finite intersections form a base, which is a weaker requirement than condition 2 above.

Example(Interior, closure, boundary and limit points of one set on the line)Original

Work in R\mathbb{R} with the Euclidean topology and take

S=(Q∩[0,1))∪{2}∪(3,4).S = \bigl(\mathbb{Q}\cap[0,1)\bigr) \cup \{2\} \cup (3,4) .
  1. Interior. Int⁡S=(3,4)\operatorname{Int}S = (3,4). The set (3,4)(3,4) is open and contained in SS, so it lies in the interior. No point p∈Q∩[0,1)p \in \mathbb{Q}\cap[0,1) is interior, because every interval about pp contains irrational numbers, which are not in SS; and 22 is not interior, because every interval about 22 contains points outside SS. So the interior has total length 11.
  2. Closure. S‾=[0,1]∪{2}∪[3,4]\overline{S} = [0,1]\cup\{2\}\cup[3,4], of total length 22. Every p∈[0,1]p \in [0,1] lies in S‾\overline{S} by item 3 of the derived-sets statement, since each interval about pp contains a rational of [0,1)[0,1); the point 22 lies in SS; and each p∈[3,4]p \in [3,4] has every interval about it meeting (3,4)(3,4). Nothing else does: the complement of [0,1]∪{2}∪[3,4][0,1]\cup\{2\}\cup[3,4] is open, so a point pp outside has an interval about it inside that complement, and that interval misses SS.
  3. Boundary. ∂S=S‾∖Int⁡S=[0,1]∪{2}∪{3,4}\partial S = \overline{S}\setminus\operatorname{Int}S = [0,1]\cup\{2\}\cup\{3,4\}, of total length 11. Note that ∂S\partial S here has the same length as Int⁡S\operatorname{Int}S: a boundary need not be "thin".
  4. Limit points. acc⁡(S)=[0,1]∪[3,4]\operatorname{acc}(S) = [0,1]\cup[3,4]. Each point of [0,1][0,1] has infinitely many rationals of [0,1)[0,1) in every interval about it, so at least one different from itself; the same holds in [3,4][3,4] with the interval (3,4)(3,4). The point 22 is not a limit point, since (1.5,2.5)∩S={2}(1.5,2.5)\cap S = \{2\} contains no point of SS other than 22. The consistency check is item 4 of the statement: S∪acc⁡(S)=[0,1]∪{2}∪[3,4]=S‾S\cup\operatorname{acc}(S) = [0,1]\cup\{2\}\cup[3,4] = \overline{S}.
  5. Isolated points. Only 22, by the computation in 4.
  6. Neither open nor closed. Int⁡S≠S\operatorname{Int}S \neq S, so SS is not open; and 1/2=0.7071…1/\sqrt{2} = 0.7071\ldots lies in acc⁡(S)\operatorname{acc}(S) but not in SS, so acc⁡(S)⊈S\operatorname{acc}(S)\not\subseteq S and SS is not closed.
  7. Diameter. diam⁡S=sup⁡{∣x−y∣:x,y∈S}=4\operatorname{diam}S = \sup\{\lvert x-y\rvert : x,y\in S\} = 4, approached by x=0∈Sx = 0 \in S and y→4−y \to 4^{-} but not attained; diam⁡S‾=4\operatorname{diam}\overline{S} = 4 as well, and there it is attained at x=0x=0, y=4y=4.
Example(The cofinite topology: points closed, but not Hausdorff)Original

Let XX be any infinite set and put

T={∅}∪{U⊆X:X∖U is finite}.\mathcal{T} = \{\emptyset\}\cup\{U \subseteq X : X\setminus U \text{ is finite}\} .
  1. It is a topology. ∅∈T\emptyset \in \mathcal{T} by fiat and X∈TX \in \mathcal{T} because X∖X=∅X\setminus X = \emptyset is finite. For a union: if every member is ∅\emptyset the union is ∅\emptyset; otherwise some UβU_\beta is nonempty and X∖⋃αUα⊆X∖UβX\setminus\bigcup_\alpha U_\alpha \subseteq X\setminus U_\beta is finite. For a finite intersection: if some member is ∅\emptyset so is the intersection; otherwise X∖⋂i≤kUi=⋃i≤k(X∖Ui)X\setminus\bigcap_{i\le k}U_i = \bigcup_{i \le k}(X\setminus U_i) is a union of finitely many finite sets, hence finite.
  2. The closed sets are XX and the finite sets. Immediately from the definition. In particular every singleton is closed, so this space satisfies the axiom T1T_1 of the conventions remark above.
  3. It is not Hausdorff. Let U,VU, V be nonempty open sets. Then X∖(U∩V)=(X∖U)∪(X∖V)X\setminus(U\cap V) = (X\setminus U)\cup(X\setminus V) is finite, so U∩V≠∅U\cap V \neq \emptyset because XX is infinite. No two points can be put in disjoint open sets. By item 1 of the Hausdorff statement the space is therefore not metrizable either, whatever XX is.
  4. Every infinite subset is dense. If A⊆XA \subseteq X is infinite, the only closed set containing AA is XX, the others being finite, so A‾=X\overline{A} = X. A finite subset is closed and equals its own closure.
  5. A sequence with every point as a limit. Take X=NX = \mathbb{N} and pi=ip_i = i. Let n∈Nn \in \mathbb{N} and let UU be any neighbourhood of nn; then N∖U\mathbb{N}\setminus U is finite. Put N=1N = 1 if N∖U\mathbb{N}\setminus U is empty, that is if U=NU = \mathbb{N}, and N=1+max⁡(N∖U)N = 1 + \max(\mathbb{N}\setminus U) otherwise, the maximum of a nonempty finite set of integers. Either way pi=i∈Up_i = i \in U for all i≥Ni \ge N. Hence pi→np_i \to n for every nn. Concretely, for U=N∖{1,4,9}U = \mathbb{N}\setminus\{1,4,9\} one may take N=10N = 10.
  6. What this separates. The trivial topology of the hypotheses remark above fails both conclusions 2 and 3 of the Hausdorff statement. The cofinite topology satisfies conclusion 2 — points are closed — and still fails conclusion 3. So "points are closed" is strictly weaker than Hausdorff, which is the claim recorded in the conventions remark, and uniqueness of limits needs the full separation condition rather than only T1T_1.
ApplicationOriginal

A physical model usually comes with a distance, but what the physics depends on is often only the topology that distance generates. The circle is the cleanest illustration.

Represent the circle as S1={(cos⁡θ,sin⁡θ):θ∈R}⊂R2S^{1} = \{(\cos\theta,\sin\theta) : \theta \in \mathbb{R}\} \subset \mathbb{R}^{2} and put on it two natural metrics: the chord metric dcd_{c} inherited from the Euclidean metric of R2\mathbb{R}^{2}, and the arc metric dad_{a}, the angle in [0,π][0,\pi] between the two points. If da(p,q)=θd_{a}(p,q) = \theta then dc(p,q)=2sin⁡(θ/2)d_{c}(p,q) = 2\sin(\theta/2), and for θ∈[0,π]\theta \in [0,\pi]

2π da  ≤  dc  ≤  da,\frac{2}{\pi}\, d_{a} \;\le\; d_{c} \;\le\; d_{a} ,

the right inequality from sin⁡u≤u\sin u \le u for u≥0u \ge 0 and the left from sin⁡u≥(2/π)u\sin u \ge (2/\pi)u on [0,π/2][0,\pi/2], which holds because sin⁡\sin is concave there and so lies above the chord joining (0,0)(0,0) to (π/2,1)(\pi/2,1).

Only the left bound is ever an equality. The ratio dc/da=2sin⁡(θ/2)/θd_{c}/d_{a} = 2\sin(\theta/2)/\theta is sin⁡u/u\sin u / u with u=θ/2u = \theta/2, which decreases strictly on (0,π/2](0,\pi/2]: it tends to 11 as θ→0+\theta \to 0^{+} and equals 2/π=0.6366198…2/\pi = 0.6366198\ldots at θ=π\theta = \pi. So the lower bound is attained exactly at the antipodal pair, where da=π=3.1415927…d_{a} = \pi = 3.1415927\ldots and dc=2d_{c} = 2, while the upper bound dc≤dad_{c}\le d_{a} is strict at every pair of distinct points and is sharp only in the limit of nearby points. At da=1d_{a} = 1 radian, for instance, dc=2sin⁡(1/2)=0.9588511…d_{c} = 2\sin(1/2) = 0.9588511\ldots, strictly between 0.63661980.6366198 and 11 as the two inequalities require.

The consequence is that each ball of one metric contains a ball of the other about the same point: Bra(p)⊆Brc(p)B^{a}_{r}(p) \subseteq B^{c}_{r}(p) and B2r/πc(p)⊆Bra(p)B^{c}_{2r/\pi}(p)\subseteq B^{a}_{r}(p). By the pointwise basis test the two families of balls generate the same topology, so the identity map of S1S^{1} is a homeomorphism between the two metric spaces. This is why one speaks of "the circle" without naming a distance: continuity of a wavefunction on a ring, convergence of a Fourier series, and the classification of periodic boundary conditions are all statements about the topology, and are unchanged by the choice between the two metrics. The word that names what matters is metrizable, not metric.

The same reading governs crystal physics. The Brillouin zone of a dd-dimensional crystal is a torus, which may be realised as the product S1×⋯×S1⊂R2dS^{1}\times\dots\times S^{1}\subset\mathbb{R}^{2d}; that set is metrizable, hence Hausdorff by item 1 of the Hausdorff statement, and it is closed and bounded in R2d\mathbb{R}^{2d}, hence compact (compactness, a unit that comes later and is not presupposed here). A band energy ε(k)\varepsilon(k) is a continuous real function on that space, so it attains a greatest and a least value: band edges exist, and a gap between two bands is a well-defined number. Had the space of wave vectors carried a non-Hausdorff topology instead, limits of states would not even be unique, and the whole language of "the state the system approaches" would fail.

Definition

Continuity and homeomorphism

Adapted

Defines continuity by inverse images of open sets, lists the equivalent formulations including the epsilon-delta condition on metric spaces, and defines homeomorphisms and what it means for a property to be topological.

Prerequisites: Topological and metric spaces, Sets, functions and countability

NoteOriginal

What it means. Continuity is the statement that ff cannot tear its domain: pull any open set back through ff and what you get is still open. On metric spaces this is exactly the ε\varepsilon-δ\delta condition from calculus, so nothing is lost; what is gained is that the definition still works where there is no distance. A homeomorphism is an invertible map that is continuous both ways, and two homeomorphic spaces are indistinguishable by any statement phrased in open sets alone. That is the test for whether a property is "topological": compactness and connectedness are, completeness and boundedness are not.

Definition(Continuity)AdaptedAdapted from Folland (1999), §4.2, p. 119; Lee (2013), Appendix A, p. 597

Take spaces XX, YY with topologies TX\mathcal{T}_X, TY\mathcal{T}_Y, and a map f:X→Yf : X \to Y.

  • Globally. Call ff continuous when pulling an open set back through ff always leaves it open: f−1(V)∈TXf^{-1}(V) \in \mathcal{T}_X whenever V∈TYV \in \mathcal{T}_Y.
  • At one point. Call ff continuous at p∈Xp \in X when every neighbourhood VV of the image point f(p)f(p) can be reached from some neighbourhood UU of pp, in the sense that f(U)⊆Vf(U) \subseteq V.

Write C(X,Y)C(X, Y) for the collection of continuous maps from XX to YY. Two cautions. Neither notion presupposes anything about injectivity or surjectivity of ff. And f−1(V)f^{-1}(V) here denotes the inverse image defined in Sets, functions and countability; no inverse map is being asserted.

Definition(Equivalent formulations of continuity)AdaptedAdapted from Folland (1999), §4.2, p. 119, Props 4.8 and 4.9; Lee (2013), Appendix A, p. 597, Exercise A.1

Let XX and YY be topological spaces and f:X→Yf : X \to Y. The following are equivalent.

  1. f−1(V)f^{-1}(V) is open in XX for every open V⊆YV \subseteq Y.
  2. f−1(F)f^{-1}(F) is closed in XX for every closed F⊆YF \subseteq Y.
  3. ff is continuous at every point of XX.
  4. f(A‾)⊆f(A)‾f\bigl(\overline{A}\bigr) \subseteq \overline{f(A)} for every A⊆XA \subseteq X.
  5. f−1(Int⁡B)⊆Int⁡f−1(B)f^{-1}(\operatorname{Int} B) \subseteq \operatorname{Int} f^{-1}(B) for every B⊆YB \subseteq Y.
  6. f−1(V)f^{-1}(V) is open in XX for every VV in some fixed family E\mathcal{E} that generates the topology of YY - for instance, for every VV in a basis of YY.

If ff is continuous and pi→pp_i \to p in XX, then f(pi)→f(p)f(p_i) \to f(p) in YY. The converse of this last implication is not part of the list: preservation of limits of sequences implies continuity when every point of XX has a countable neighbourhood basis, but not in general.

Idea of the proofOriginal

Each item on the list is the first one seen through one set-theoretic operation, and inverse images respect every operation involved. Complementation exchanges open with closed and produces item 2. Choosing, separately at each point, an open set that ff carries into a prescribed target and then taking the union of those sets produces item 3. Interiors and closures are assembled from open and closed sets, which is items 4 and 5. Item 6 needs only that f−1f^{-1} turns unions into unions and intersections into intersections, so controlling the sets out of which the topology of YY is built controls every open set at once.

ProofAdaptedAdapted from Folland (1999), §4.2, Props 4.8 and 4.9, p. 119, with §4.1, Prop 4.4, p. 115; Lee (2013), Appendix A, p. 597, Exercises A.1 and A.3

Three identities for inverse images are used throughout, each immediate from the definition in Sets, functions and countability: f−1(Y∖B)=X∖f−1(B)f^{-1}(Y \setminus B) = X \setminus f^{-1}(B), and f−1f^{-1} of a union or an intersection of a family is the union or the intersection of the f−1f^{-1} of its members. We prove 1⇔21 \Leftrightarrow 2, 1⇔31 \Leftrightarrow 3, 1⇒4⇒21 \Rightarrow 4 \Rightarrow 2, 1⇔51 \Leftrightarrow 5 and 1⇔61 \Leftrightarrow 6, which makes all six equivalent.

1⇒21 \Rightarrow 2 and 2⇒12 \Rightarrow 1. Assume 1 and let F⊆YF \subseteq Y be closed. Then Y∖FY \setminus F is open, so X∖f−1(F)=f−1(Y∖F)X \setminus f^{-1}(F) = f^{-1}(Y \setminus F) is open by 1, and therefore f−1(F)f^{-1}(F) is closed. Exchanging the words open and closed in those two sentences derives 1 from 2.

1⇒31 \Rightarrow 3. Let p∈Xp \in X and let VV be a neighbourhood of f(p)f(p). Put U=f−1(V)U = f^{-1}(V). It is open by 1, it contains pp because f(p)∈Vf(p) \in V, so it is a neighbourhood of pp; and f(U)⊆Vf(U) \subseteq V holds for the inverse image of any set whatever. So ff is continuous at pp, and pp was arbitrary.

3⇒13 \Rightarrow 1. Let V⊆YV \subseteq Y be open and let p∈f−1(V)p \in f^{-1}(V). Since VV is a neighbourhood of f(p)f(p), continuity at pp gives a neighbourhood UpU_p of pp with f(Up)⊆Vf(U_p) \subseteq V, which says Up⊆f−1(V)U_p \subseteq f^{-1}(V). Hence f−1(V)=⋃{Up:p∈f−1(V)}f^{-1}(V) = \bigcup \{U_p : p \in f^{-1}(V)\}, a union of open sets, so f−1(V)f^{-1}(V) is open.

1⇒41 \Rightarrow 4. Let A⊆XA \subseteq X. The set f(A)‾\overline{f(A)} is closed, so f−1(f(A)‾)f^{-1}\bigl(\overline{f(A)}\bigr) is closed by the implication 1⇒21 \Rightarrow 2 just proved, and it contains AA because f(A)⊆f(A)‾f(A) \subseteq \overline{f(A)}. Since A‾\overline{A} sits inside every closed set that has AA as a subset, this gives A‾⊆f−1(f(A)‾)\overline{A} \subseteq f^{-1}\bigl(\overline{f(A)}\bigr); applying ff gives f(A‾)⊆f(A)‾f(\overline{A}) \subseteq \overline{f(A)}.

4⇒24 \Rightarrow 2. Let F⊆YF \subseteq Y be closed and set A=f−1(F)A = f^{-1}(F). Then f(A)⊆Ff(A) \subseteq F, so 4 gives f(A‾)⊆f(A)‾⊆F‾=Ff(\overline{A}) \subseteq \overline{f(A)} \subseteq \overline{F} = F, the last step because FF is closed. Thus A‾⊆f−1(F)=A\overline{A} \subseteq f^{-1}(F) = A, and AA is closed.

1⇒51 \Rightarrow 5. Let B⊆YB \subseteq Y. Then Int⁡B\operatorname{Int} B is open, so f−1(Int⁡B)f^{-1}(\operatorname{Int} B) is open by 1, and it is contained in f−1(B)f^{-1}(B). As Int⁡f−1(B)\operatorname{Int} f^{-1}(B) is the largest open subset of f−1(B)f^{-1}(B), it contains f−1(Int⁡B)f^{-1}(\operatorname{Int} B).

5⇒15 \Rightarrow 1. For open VV we have Int⁡V=V\operatorname{Int} V = V, so 5 reads f−1(V)⊆Int⁡f−1(V)f^{-1}(V) \subseteq \operatorname{Int} f^{-1}(V). The opposite inclusion holds for every set, so f−1(V)f^{-1}(V) coincides with its interior and is open.

1⇒61 \Rightarrow 6. Members of E\mathcal{E} are open in YY, so this direction is 1 itself, applied to fewer sets.

6⇒16 \Rightarrow 1. The topology generated by a family E\mathcal{E} consists of ∅\emptyset, YY, and the unions of finite intersections of members of E\mathcal{E} (Folland (1999), Prop 4.4, p. 115). Given 6, each f−1(V)f^{-1}(V) with V∈EV \in \mathcal{E} is open; a finite intersection of such sets is open, and so is any union of those, by the two identities recorded at the start. Also f−1(∅)=∅f^{-1}(\emptyset) = \emptyset and f−1(Y)=Xf^{-1}(Y) = X. So f−1f^{-1} of every open set is open. When E\mathcal{E} is a basis the intersections are not needed, since each open set is already a union of members of E\mathcal{E}.

Continuity carries convergent sequences forward. Let ff be continuous, pi→pp_i \to p, and VV a neighbourhood of f(p)f(p). By item 3 there is a neighbourhood UU of pp with f(U)⊆Vf(U) \subseteq V, and by convergence there is NN with pi∈Up_i \in U for all i≥Ni \ge N; then f(pi)∈Vf(p_i) \in V for all i≥Ni \ge N. Since VV was an arbitrary neighbourhood of f(p)f(p), f(pi)→f(p)f(p_i) \to f(p).

When the converse holds. Suppose ff carries every convergent sequence of XX to a sequence converging to the image of its limit, and suppose p∈Xp \in X has a countable neighbourhood basis B1,B2,…B_1, B_2, \dots; we check continuity at pp. Replacing BkB_k by B1∩⋯∩BkB_1 \cap \dots \cap B_k, still a neighbourhood of pp and still contained in the old BkB_k, we may take the family decreasing. Were ff not continuous at pp, some neighbourhood VV of f(p)f(p) would admit no neighbourhood UU of pp with f(U)⊆Vf(U) \subseteq V; in particular f(Bk)⊆Vf(B_k) \subseteq V for no kk, so we could pick xk∈Bkx_k \in B_k with f(xk)∉Vf(x_k) \notin V. Any neighbourhood of pp contains some BmB_m, hence contains xkx_k for every k≥mk \ge m because the family decreases; so xk→px_k \to p, while f(xk)→f(p)f(x_k) \to f(p) fails, VV being a neighbourhood of f(p)f(p) that no term enters. That contradiction makes ff continuous at pp. If every point of XX has such a basis, item 3 then makes ff continuous.

Why that hypothesis cannot be dropped. Give R\mathbb{R} the topology T\mathcal{T} whose members are ∅\emptyset together with every set whose complement is countable. This is a topology: R\mathbb{R} itself qualifies, having empty complement; a union of members either is ∅\emptyset or contains a nonempty member, and then its complement, being inside that member's countable complement, is countable; and a finite intersection either contains ∅\emptyset, hence is ∅\emptyset, or has complement the union of finitely many countable sets. In (R,T)(\mathbb{R}, \mathcal{T}) a sequence converges only when it is eventually constant, for if xi≠xx_i \neq x for infinitely many ii then S={xi:xi≠x}S = \{x_i : x_i \neq x\} is countable and R∖S\mathbb{R} \setminus S is a neighbourhood of xx that infinitely many terms avoid. Every map out of (R,T)(\mathbb{R}, \mathcal{T}) therefore carries convergent sequences to convergent sequences, the eventually constant ones. Yet the identity map onto R\mathbb{R} with its Euclidean topology is not continuous: the inverse image of (0,1)(0, 1) is (0,1)(0, 1), whose complement is uncountable, so it is not in T\mathcal{T}. The hypothesis that fails is countability of a neighbourhood basis, and it fails at every point: given countably many neighbourhoods UkU_k of xx, the set ⋃k(R∖Uk)\bigcup_k (\mathbb{R} \setminus U_k) is countable, so some y≠xy \neq x lies in every UkU_k, and then the neighbourhood R∖{y}\mathbb{R} \setminus \{y\} of xx contains no UkU_k. □\square

Definition(Metric spaces: the epsilon-delta form)AdaptedAdapted from Kreyszig (1978), §1.3, Def 1.3-3 and Thm 1.3-4, pp. 20-21; do Carmo (2016), §2-2, Prop 2, p. 124

Let (M1,d1)(M_1, d_1) and (M2,d2)(M_2, d_2) be metric spaces, each carrying its metric topology, and let f:M1→M2f : M_1 \to M_2.

  1. ff is continuous at x0∈M1x_0 \in M_1 in the sense of the definition above if and only if
∀ε>0    ∃δ>0    ∀x∈M1:d1(x,x0)<δ  ⟹  d2(f(x),f(x0))<ε.\forall \varepsilon > 0 \;\; \exists \delta > 0 \;\; \forall x \in M_1 : \qquad d_1(x, x_0) < \delta \;\Longrightarrow\; d_2\bigl(f(x), f(x_0)\bigr) < \varepsilon .
  1. ff is continuous (that is, f−1(S)f^{-1}(S) is open in M1M_1 for every open S⊆M2S \subseteq M_2) if and only if the condition in 1 holds at every x0∈M1x_0 \in M_1.

Here δ\delta is allowed to depend on both ε\varepsilon and x0x_0. Requiring one δ\delta to serve for all x0x_0 at once is the strictly stronger condition of uniform continuity, and requiring d2(f(x),f(y))≤C d1(x,y)d_2(f(x), f(y)) \le C\, d_1(x, y) for a constant CC and all x,yx, y is Lipschitz continuity, which is stronger again.

Idea of the proofOriginal

In a metric space the balls carry all the information: each is open, and each open set contains a ball about every one of its points (Topological and metric spaces). So in the phrase "some neighbourhood UU of x0x_0 has f(U)⊆Vf(U) \subseteq V" both sets may be shrunk to balls without loss, and what is left is f(Bδ(x0))⊆Bε(f(x0))f(B_\delta(x_0)) \subseteq B_\varepsilon(f(x_0)), which is the ε\varepsilon-δ\delta condition written with sets instead of inequalities. Part 2 is then part 1 at every point, read together with the equivalence of global continuity and continuity at each point.

ProofAdaptedAdapted from Kreyszig (1978), §1.3, Thm 1.3-4, pp. 20-21

Part 1, from the topological condition to ε\varepsilon-δ\delta. Let ff be continuous at x0x_0 and let ε>0\varepsilon > 0. The ball V=Bε(f(x0))V = B_\varepsilon(f(x_0)) is open and contains f(x0)f(x_0), so it is a neighbourhood of f(x0)f(x_0), and continuity at x0x_0 supplies a neighbourhood UU of x0x_0 with f(U)⊆Vf(U) \subseteq V. Being open and containing x0x_0, the set UU contains some ball Bδ(x0)B_\delta(x_0). For this δ\delta, any xx with d1(x,x0)<δd_1(x, x_0) < \delta lies in UU, so f(x)∈Vf(x) \in V, that is d2(f(x),f(x0))<εd_2(f(x), f(x_0)) < \varepsilon.

Part 1, back again. Assume the ε\varepsilon-δ\delta condition at x0x_0 and let VV be a neighbourhood of f(x0)f(x_0). Since VV is open, Bε(f(x0))⊆VB_\varepsilon(f(x_0)) \subseteq V for some ε>0\varepsilon > 0. Take the δ\delta the condition provides for that ε\varepsilon and put U=Bδ(x0)U = B_\delta(x_0), a neighbourhood of x0x_0 because balls are open. Every x∈Ux \in U satisfies d1(x,x0)<δd_1(x, x_0) < \delta, hence d2(f(x),f(x0))<εd_2(f(x), f(x_0)) < \varepsilon, so f(U)⊆Bε(f(x0))⊆Vf(U) \subseteq B_\varepsilon(f(x_0)) \subseteq V. This is continuity at x0x_0.

Part 2. By part 1, the ε\varepsilon-δ\delta condition holds at every x0∈M1x_0 \in M_1 exactly when ff is continuous at every point of M1M_1, and by item 3 of the previous statement that is exactly continuity of ff, which for the metric topologies is the openness of f−1(S)f^{-1}(S) for every open S⊆M2S \subseteq M_2. □\square

Definition(Building continuous maps)AdaptedAdapted from Lee (2013), Appendix A, Prop A.17(a), (e) and Lemmas A.19-A.20, p. 602; Folland (1999), §4.2, p. 119; do Carmo (2016), §2-2, Prop 3, p. 124

Spaces XX, YY, ZZ carry topologies throughout.

  1. Trivial cases. idX\mathrm{id}_X is continuous, as is any map X→YX \to Y with constant value.
  2. Composites. Continuity of f:X→Yf : X \to Y at pp, together with continuity of g:Y→Zg : Y \to Z at the point f(p)f(p), yields continuity of g∘fg \circ f at pp. Globally: f∈C(X,Y)f \in C(X, Y) and g∈C(Y,Z)g \in C(Y, Z) give g∘f∈C(X,Z)g \circ f \in C(X, Z).
  3. Restricting the domain. For f∈C(X,Y)f \in C(X, Y) and S⊆XS \subseteq X with its subspace topology, f∣S∈C(S,Y)f|_S \in C(S, Y).
  4. Mapping into a subspace. Let S⊆XS \subseteq X carry the subspace topology, with inclusion ιS:S↪X\iota_S : S \hookrightarrow X. A map F:Y→SF : Y \to S then lies in C(Y,S)C(Y, S) precisely when ιS∘F\iota_S \circ F lies in C(Y,X)C(Y, X). This is what makes the subspace topology the right one.
  5. Continuity is a local property. Should each p∈Xp \in X possess a neighbourhood UpU_p on which the restriction f∣Upf|_{U_p} is continuous, then ff itself is continuous.
  6. Gluing lemma. Let {Bi}i∈A\{B_i\}_{i \in A} be a family of subsets with ⋃i∈ABi=X\bigcup_{i \in A} B_i = X, subject to one of two alternatives: either AA is finite and every BiB_i is closed, or AA is arbitrary and every BiB_i is open. Give continuous fi:Bi→Yf_i : B_i \to Y matching wherever their domains overlap, so that fif_i and fjf_j agree on Bi∩BjB_i \cap B_j for each pair i,ji, j. Exactly one continuous f:X→Yf : X \to Y then satisfies f∣Bi=fif|_{B_i} = f_i throughout AA.
Idea of the proofOriginal

Items 1 to 3 are one-line computations with inverse images. Item 4 holds because a relatively open subset of SS is the trace on SS of an open subset of XX, so testing FF against the one is testing ιS∘F\iota_S \circ F against the other. Item 5 holds because openness is a condition checked separately at each point, and item 6 because the inverse image of an open set is the union of its inverse images under the pieces - a union that is open when the pieces are open, and whose closed-set analogue is a finite union, which is why that half of the hypothesis asks for finitely many pieces.

ProofAdaptedAdapted from Lee (2013), Appendix A, Prop A.17(a), (e), Lemmas A.19-A.20 and Exercises A.18 and A.21, p. 602; Folland (1999), §4.2, p. 119

Two facts about subspaces are used repeatedly, both from Topological and metric spaces: a set is open (closed) in a subspace SS precisely when it is the intersection with SS of a set open (closed) in XX; consequently, if SS itself is open in XX then the sets open in SS are open in XX, and if SS is closed in XX then the sets closed in SS are closed in XX.

  1. Trivial cases. idX−1(V)=V\mathrm{id}_X^{-1}(V) = V, which is open for open VV. If ff has constant value y0y_0 then f−1(V)f^{-1}(V) is XX when y0∈Vy_0 \in V and ∅\emptyset otherwise, and both are open.

  2. Composites. At a point: let WW be a neighbourhood of g(f(p))g(f(p)). Continuity of gg at f(p)f(p) gives a neighbourhood VV of f(p)f(p) with g(V)⊆Wg(V) \subseteq W, and continuity of ff at pp gives a neighbourhood UU of pp with f(U)⊆Vf(U) \subseteq V; then (g∘f)(U)⊆g(V)⊆W(g \circ f)(U) \subseteq g(V) \subseteq W. Globally it is faster: (g∘f)−1(W)=f−1(g−1(W))(g \circ f)^{-1}(W) = f^{-1}\bigl(g^{-1}(W)\bigr), which is open for open WW since g−1(W)g^{-1}(W) is open and ff is continuous.

  3. Restricting the domain. For VV open in YY, (f∣S)−1(V)=f−1(V)∩S(f|_S)^{-1}(V) = f^{-1}(V) \cap S, the intersection with SS of a set open in XX, hence open in SS.

  4. Mapping into a subspace. The inclusion satisfies ιS−1(V)=V∩S\iota_S^{-1}(V) = V \cap S, so ιS\iota_S is continuous; if FF is continuous then ιS∘F\iota_S \circ F is continuous by item 2. Conversely let ιS∘F\iota_S \circ F be continuous and let WW be open in SS, say W=V∩SW = V \cap S with VV open in XX. Every value of FF lies in SS, so F(y)∈WF(y) \in W holds exactly when ιS(F(y))∈V\iota_S(F(y)) \in V; that is, F−1(W)=(ιS∘F)−1(V)F^{-1}(W) = (\iota_S \circ F)^{-1}(V), which is open. Hence FF is continuous.

  5. Continuity is a local property. Let VV be open in YY and p∈f−1(V)p \in f^{-1}(V). On the neighbourhood UpU_p the restriction is continuous, so f−1(V)∩Up=(f∣Up)−1(V)f^{-1}(V) \cap U_p = (f|_{U_p})^{-1}(V) is open in UpU_p, and therefore open in XX because UpU_p is open in XX. This set contains pp and lies inside f−1(V)f^{-1}(V), so f−1(V)f^{-1}(V) contains an open set around each of its points and is open.

  6. Gluing lemma. The map is forced: the sets BiB_i cover XX, so f(x)=fi(x)f(x) = f_i(x) for any ii with x∈Bix \in B_i, and the agreement on overlaps makes this unambiguous; that gives existence and uniqueness of ff as a map with f∣Bi=fif|_{B_i} = f_i. For continuity in the open case, let V⊆YV \subseteq Y be open. Then f−1(V)=⋃i∈Afi−1(V)f^{-1}(V) = \bigcup_{i \in A} f_i^{-1}(V), because each xx lies in some BiB_i; each fi−1(V)f_i^{-1}(V) is open in BiB_i by continuity of fif_i, hence open in XX as BiB_i is open, and a union of open sets is open. In the closed case, let F⊆YF \subseteq Y be closed. The same computation gives f−1(F)=⋃i=1mfi−1(F)f^{-1}(F) = \bigcup_{i=1}^{m} f_i^{-1}(F) with each fi−1(F)f_i^{-1}(F) closed in BiB_i, hence closed in XX as BiB_i is closed; here the union is finite, and a finite union of closed sets is closed. So f−1(F)f^{-1}(F) is closed for every closed FF, and ff is continuous by item 2 of the equivalence statement. □\square

Definition(Open and closed maps, homeomorphism, embedding)AdaptedAdapted from Lee (2013), Appendix A, p. 597 and pp. 606-607; Folland (1999), §4.2, pp. 119-120; Reed & Simon (1980), §IV.1, p. 92

Let f:X→Yf : X \to Y be a map between topological spaces, continuous or not.

  • ff is an open map if f(U)f(U) is open in YY for every open U⊆XU \subseteq X, and a closed map if f(K)f(K) is closed in YY for every closed K⊆XK \subseteq X.
  • ff is a homeomorphism if it is a continuous bijection whose inverse f−1:Y→Xf^{-1} : Y \to X is also continuous. XX and YY are homeomorphic if such an ff exists. A homeomorphism carries the open sets of XX bijectively onto the open sets of YY.
  • ff is a topological embedding if ff is injective and f:X→f(X)f : X \to f(X) is a homeomorphism, where f(X)f(X) carries the subspace topology of YY.
  • ff is a local homeomorphism if every p∈Xp \in X has a neighbourhood UU such that f(U)f(U) is open in YY and f∣Uf|_U is a homeomorphism of UU onto f(U)f(U).

Continuity in both directions is part of the definition of a homeomorphism and is not implied by continuity plus bijectivity.

Definition(When a continuous bijection is a homeomorphism)AdaptedAdapted from Lee (2013), Appendix A, Thm A.38(b), (c), p. 607 and Exercises A.34-A.35, p. 606

Suppose f:X→Yf : X \to Y is continuous and is, in addition, either an open map or a closed map. Then:

  1. injectivity of ff makes it a topological embedding;
  2. bijectivity of ff makes it a homeomorphism.

A continuous bijection that happens to be open, or that happens to be closed, is therefore a homeomorphism. Since local homeomorphisms are always open maps, a bijective local homeomorphism is a homeomorphism as well.

Idea of the proofOriginal

Continuity of the inverse map is a statement about inverse images under f−1f^{-1}, and an inverse image under f−1f^{-1} is an image under ff. So "the inverse is continuous" and "ff is an open map" are the same requirement, and the closed version is that requirement read through complements. Nothing else is involved.

ProofAdaptedAdapted from Lee (2013), Appendix A, Thm A.38(b), (c), p. 607, with Exercises A.34-A.35, p. 606

Part 1. Let ff be continuous and injective, let Z=f(X)Z = f(X) carry the subspace topology of YY, and let g:Z→Xg : Z \to X be the inverse of the bijection f:X→Zf : X \to Z. For any A⊆XA \subseteq X we have g−1(A)=f(A)g^{-1}(A) = f(A), since g(z)∈Ag(z) \in A says precisely that z=f(a)z = f(a) for some a∈Aa \in A.

Suppose ff is an open map and let U⊆XU \subseteq X be open. Then g−1(U)=f(U)g^{-1}(U) = f(U) is open in YY, hence open in ZZ, being equal to f(U)∩Zf(U) \cap Z. So gg is continuous and f:X→Zf : X \to Z is a homeomorphism, which is what it means for ff to be a topological embedding.

Suppose instead that ff is a closed map and let K⊆XK \subseteq X be closed. Then g−1(K)=f(K)g^{-1}(K) = f(K) is closed in YY, hence closed in ZZ. By item 2 of the equivalence statement - continuity is equally the condition that inverse images of closed sets are closed - gg is continuous, and again ff is an embedding.

Part 2. If ff is in addition surjective then Z=YZ = Y, so the homeomorphism f:X→f(X)f : X \to f(X) of part 1 is a homeomorphism of XX onto YY.

The remark on local homeomorphisms. Let ff be a local homeomorphism. It is continuous, since each point has a neighbourhood on which the restriction is a homeomorphism and therefore continuous, and continuity is local (item 5 above). It is open: let U⊆XU \subseteq X be open and p∈Up \in U. Choose a neighbourhood WW of pp with f(W)f(W) open in YY and f∣Wf|_W a homeomorphism onto f(W)f(W). The set U∩WU \cap W is open in WW, so its image f(U∩W)f(U \cap W) is open in f(W)f(W), hence open in YY because f(W)f(W) is open in YY; and it contains f(p)f(p) and lies in f(U)f(U). So f(U)f(U) contains an open set around each of its points and is open. A bijective local homeomorphism is therefore a continuous open bijection, hence a homeomorphism by part 2. □\square

Definition(Topological property)AdaptedAdapted from Reed & Simon (1980), §IV.1, pp. 92-93

A topological property (or topological notion) is a property of a space, or of a subset of a space, that is preserved by every homeomorphism: if XX has it and XX is homeomorphic to YY, then YY has it. Homeomorphisms are the isomorphisms of topological spaces, so informally a topological property is one that can be stated in terms of the open sets alone.

Being Hausdorff, being metrizable and having a countable basis are topological properties, and so are compactness and connectedness. Properties that mention a particular metric, such as completeness, boundedness, the diameter of a set, uniform continuity and the Lipschitz condition, are metric properties, not topological ones: they can differ between homeomorphic metric spaces.

RemarkOriginal

Where the hypotheses are used, and what fails without them.

  • Continuity does not make ff an open map. Let f:R→Rf : \mathbb{R} \to \mathbb{R} be f(x)=x2f(x) = x^{2}. It is continuous, but f((−1,1))=[0,1)f\bigl((-1, 1)\bigr) = [0, 1) is not open, so ff is not open. This is why the statement above has to assume openness or closedness separately, and why the definition of a homeomorphism must demand continuity of the inverse rather than deduce it.
  • A continuous bijection need not be a homeomorphism. Let f:[0,2π)→S1⊆R2f : [0, 2\pi) \to S^{1} \subseteq \mathbb{R}^{2} be f(t)=(cos⁡t,sin⁡t)f(t) = (\cos t, \sin t), with both sets carrying their Euclidean subspace topologies. Then ff is a continuous bijection. It is not a homeomorphism: the set [0,1)[0, 1) is open in [0,2π)[0, 2\pi), yet its image is an arc that contains (1,0)(1, 0) without containing any arc around (1,0)(1, 0); so ff is not an open map, and f−1f^{-1} fails to be continuous at (1,0)(1, 0). A second, cruder example is the identity map from R\mathbb{R} with the discrete topology to R\mathbb{R} with the Euclidean topology.
  • Finiteness in the closed case of the gluing lemma. With infinitely many closed pieces the conclusion fails. Cover R\mathbb{R} by the closed sets B0={0}B_0 = \{0\} and Bx={x}B_x = \{x\} for every x≠0x \neq 0, and let f0=1f_0 = 1 and fx=0f_x = 0. Each fif_i is continuous on its one-point domain and the overlap condition is vacuous, but the glued map is the indicator of {0}\{0\}, which is not continuous. The open case needs no finiteness, because openness is a local condition.
  • The δ\delta in the ε\varepsilon-δ\delta condition. It may depend on x0x_0, and for a continuous function on a non-compact domain it usually must: f(x)=1/xf(x) = 1/x on (0,1)(0, 1) is continuous, but no single δ\delta works for a given ε\varepsilon at every x0x_0, so ff is not uniformly continuous.

Completeness and boundedness are not topological. The map tanh⁡:R→(−1,1)\tanh : \mathbb{R} \to (-1, 1) is a strictly increasing bijection, continuous with continuous inverse artanh⁡\operatorname{artanh}, so it is a homeomorphism; Hassani (p. 7) uses it for exactly the observation that the line and the interval have the same points to within a bijection. Give both sets the Euclidean metric. Then R\mathbb{R} is complete and unbounded, while (−1,1)(-1, 1) is bounded and not complete, since xn=1−1/nx_n = 1 - 1/n is Cauchy in (−1,1)(-1, 1) with no limit there. Reed and Simon (p. 93) make the same point with a homeomorphism of the line onto a bounded interval. So no statement about completeness or boundedness can be a theorem about topological spaces; it is a theorem about a space with a chosen metric.

Convention: "neighbourhood" in the definition of continuity at a point. We use the convention of Topological and metric spaces, in which a neighbourhood is open. Folland (p. 119) uses the wide sense and gives the extra equivalent form "f−1(V)f^{-1}(V) is a neighbourhood of xx for every neighbourhood VV of f(x)f(x)". That form is correct in his convention but false in ours, where it would assert that f−1(V)f^{-1}(V) is open for every open VV containing f(x)f(x) - that is, global continuity. The form used here, "there is a neighbourhood UU of pp with f(U)⊆Vf(U) \subseteq V", says the same thing under either convention, which is why it is the one stated.

Example(Producing a delta, and watching it shrink)Original

Take f:R→Rf : \mathbb{R} \to \mathbb{R} with f(x)=x3−2xf(x) = x^{3} - 2x, both copies of R\mathbb{R} carrying the Euclidean metric, and produce a δ\delta that serves ε=1/10\varepsilon = 1/10 at x0=2x_0 = 2. Note f(2)=8−4=4f(2) = 8 - 4 = 4.

Factor the increment. Dividing x3−2x−4x^{3} - 2x - 4 by x−2x - 2 gives

f(x)−f(2)=(x−2)(x2+2x+2),f(x) - f(2) = (x - 2)\bigl(x^{2} + 2x + 2\bigr),

which is checked by expanding the right-hand side.

Bound the second factor near x0x_0. Require provisionally that ∣x−2∣≤1/2|x - 2| \le 1/2, so x∈[3/2,5/2]x \in [3/2, 5/2]. On that interval x2+2x+2=(x+1)2+1x^{2} + 2x + 2 = (x + 1)^{2} + 1 is increasing, hence at most (7/2)2+1=53/4=13.25(7/2)^{2} + 1 = 53/4 = 13.25. Therefore ∣f(x)−4∣≤13.25 ∣x−2∣|f(x) - 4| \le 13.25\,|x - 2| whenever ∣x−2∣≤1/2|x - 2| \le 1/2.

Choose δ\delta. Take δ=3/400=0.0075\delta = 3/400 = 0.0075, which respects the provisional bound. Then ∣x−2∣<δ|x - 2| < \delta gives

∣f(x)−4∣≤13.25×0.0075=0.099375<0.1,|f(x) - 4| \le 13.25 \times 0.0075 = 0.099375 < 0.1 ,

so δ=0.0075\delta = 0.0075 works. (Directly: f(2.0075)−4=0.07533…f(2.0075) - 4 = 0.07533\ldots and 4−f(1.9925)=0.07466…4 - f(1.9925) = 0.07466\ldots, both below 0.10.1.)

How much was conceded. Since f′(2)=10>0f'(2) = 10 > 0, ff increases near 22, so the largest admissible δ\delta is the smaller of the two distances from 22 to the solutions of f(x)=4.1f(x) = 4.1 and f(x)=3.9f(x) = 3.9, which are x=2.00994061…x = 2.00994061\ldots and x=1.98993937…x = 1.98993937\ldots. Hence δmax⁡=0.00994061…\delta_{\max} = 0.00994061\ldots, and the crude bound cost a factor 1.3254…1.3254\ldots - a reminder that a δ\delta needs only to work, not to be optimal.

The same ε\varepsilon at a different point. At x0=10x_0 = 10 one has f(10)=980f(10) = 980 and, for h>0h > 0,

f(10+h)−f(10)=298h+30h2+h3≥298h.f(10 + h) - f(10) = 298h + 30h^{2} + h^{3} \ge 298 h .

If δ>1/2980\delta > 1/2980 then x=10+1/2980x = 10 + 1/2980 satisfies ∣x−10∣<δ|x - 10| < \delta while f(x)−980≥298/2980=0.1f(x) - 980 \ge 298/2980 = 0.1, so the ε=1/10\varepsilon = 1/10 test fails. Every admissible δ\delta at x0=10x_0 = 10 is thus at most 1/2980=3.3557…×10−41/2980 = 3.3557\ldots \times 10^{-4}, smaller by a factor 22.3522.35 than the δ\delta that works at x0=2x_0 = 2. No single δ\delta serves both points, so ff is continuous at every point of R\mathbb{R} without being uniformly continuous on R\mathbb{R}.

Example(A homeomorphism of an open interval onto the whole line)Original

Let h:(−1,1)→Rh : (-1, 1) \to \mathbb{R} be h(x)=x/(1−x2)h(x) = x/(1 - x^{2}), and let

g:R→(−1,1),g(y)=2y1+1+4y2.g : \mathbb{R} \to (-1, 1), \qquad g(y) = \frac{2y}{1 + \sqrt{1 + 4y^{2}}} .

hh is continuous. It is a quotient of polynomials whose denominator 1−x21 - x^{2} vanishes nowhere on (−1,1)(-1, 1).

hh is injective. h′(x)=(1+x2)/(1−x2)2>0h'(x) = \bigl(1 + x^{2}\bigr)/\bigl(1 - x^{2}\bigr)^{2} > 0 on (−1,1)(-1, 1), so hh is strictly increasing.

gg is continuous and lands where it should. Its denominator is at least 22, so gg is continuous on all of R\mathbb{R}; and 1+4y2>4y2=2∣y∣\sqrt{1 + 4y^{2}} > \sqrt{4y^{2}} = 2|y| gives 1+1+4y2>2∣y∣1 + \sqrt{1 + 4y^{2}} > 2|y|, hence ∣g(y)∣<1|g(y)| < 1.

gg is a right inverse of hh. Fix yy, write s=1+4y2s = \sqrt{1 + 4y^{2}} and w=g(y)=2y/(1+s)w = g(y) = 2y/(1 + s). Because ∣w∣<1|w| < 1, the equation h(w)=yh(w) = y is equivalent to the polynomial identity yw2+w−y=0yw^{2} + w - y = 0. Now (1+s)2=1+2s+s2=2+2s+4y2(1 + s)^{2} = 1 + 2s + s^{2} = 2 + 2s + 4y^{2}, so

yw2+w−y=y[ 4y2+2(1+s)−(1+s)2 ](1+s)2=y[ 4y2+2+2s−2−2s−4y2 ](1+s)2=0.yw^{2} + w - y = \frac{y\bigl[\,4y^{2} + 2(1 + s) - (1 + s)^{2}\,\bigr]}{(1 + s)^{2}} = \frac{y\bigl[\,4y^{2} + 2 + 2s - 2 - 2s - 4y^{2}\,\bigr]}{(1 + s)^{2}} = 0 .

Hence h(g(y))=yh(g(y)) = y for every y∈Ry \in \mathbb{R}, so hh is surjective; with injectivity, hh is a bijection and g=h−1g = h^{-1}. Both are continuous, so hh is a homeomorphism.

Two checks. h(1/2)=(1/2)/(3/4)=2/3h(1/2) = (1/2)/(3/4) = 2/3 and g(2/3)=(4/3)/(1+5/3)=1/2g(2/3) = (4/3)/(1 + 5/3) = 1/2. Going the other way, g(−3)=−6/(1+37)=(1−37)/6=−0.8471270884…g(-3) = -6/(1 + \sqrt{37}) = (1 - \sqrt{37})/6 = -0.8471270884\ldots, and hh of that number is −3-3.

What the homeomorphism does and does not carry across. No statement about open sets can separate (−1,1)(-1, 1) from R\mathbb{R}. With the Euclidean metric, though, (−1,1)(-1, 1) is bounded and incomplete - xn=1−1/nx_n = 1 - 1/n is Cauchy in it with no limit there - while R\mathbb{R} is unbounded and complete. Boundedness and completeness are therefore metric, not topological, exactly as the definition of a topological property requires. Note also that hh is not uniformly continuous, since h(1−η)=(1−η)/(η(2−η))→∞h(1 - \eta) = (1 - \eta)/\bigl(\eta(2 - \eta)\bigr) \to \infty as η↓0\eta \downarrow 0, so hh is unbounded; and a uniformly continuous function on (−1,1)(-1, 1) is bounded, because for ε=1\varepsilon = 1 one may cover (−1,1)(-1, 1) by finitely many intervals of length δ\delta and compare the values on each with the value at its midpoint.

ApplicationOriginal

Lyapunov stability is the ε\varepsilon-δ\delta condition, with the quantifiers in a particular order. For an autonomous system x˙=F(x)\dot x = F(x) on Rn\mathbb{R}^{n} with an equilibrium x∗x_*, stability of x∗x_* is the statement that for every ε>0\varepsilon > 0 there is a δ>0\delta > 0 such that a solution starting within δ\delta of x∗x_* stays within ε\varepsilon of x∗x_* for all t≥0t \ge 0. In terms of the flow maps Φt\Phi_t, which send an initial state to the state at time tt, this is continuity at x∗x_* in the sense of this unit, demanded of the whole family {Φt}t≥0\{\Phi_t\}_{t \ge 0} with a single δ\delta. Continuity of each individual Φt\Phi_t is a weaker and much cheaper statement - it is continuous dependence on initial data over a finite time - and conflating the two is the standard error in stability arguments. See Lyapunov functions and stability and continuous dependence on initial conditions.

Coordinates are homeomorphisms, and that is what makes them usable. A coordinate system on a configuration space is a homeomorphism of an open piece of that space onto an open subset of Rn\mathbb{R}^{n}; continuity of the inverse is what guarantees that nearby coordinate values describe nearby physical states, so that a small numerical error stays a small physical error. In the same spirit, two dynamical systems are counted as qualitatively identical when a homeomorphism carries the orbits of one onto the orbits of the other. Everything expressible in open sets alone then agrees - how many equilibria there are, whether a basin of attraction is connected, whether an orbit is closed - whereas quantities tied to a metric, such as rates of approach or the eigenvalues of a linearization, need not. See Smooth manifolds and Linearization about a fixed point.

Piecewise definitions are continuous by the gluing lemma. Fields specified by one formula inside a sphere and another outside it, a ray refracted at an interface, or a finite-element basis function given cell by cell are all built as finitely many continuous pieces on closed sets whose union is the region. Item 6 of the statement on building continuous maps says that such a specification defines a continuous field exactly when the pieces agree on the shared boundaries - which is why matching conditions at an interface are imposed in the first place - and the counterexample in the remark above shows why the same licence does not extend to infinitely many closed pieces. See Finite elements.

Theorem

Compactness

Adapted

Gives compactness by finite subcovers with its permanence properties, the three equivalent forms it takes in a metric space, the Heine-Borel characterisation of the compact subsets of R^n as exactly the closed bounded ones, Bolzano-Weierstrass, and the extreme value theorem for a continuous real function on a nonempty compact space.

Prerequisites: Continuity and homeomorphism, Limits of sequences and completeness

NoteOriginal

What it means. Compactness is the licence to replace infinitely many local facts by finitely many. Almost every existence theorem in analysis that produces a point - a maximiser, a limit, a convergent subsequence - gets that point from compactness. In Rn\mathbb{R}^{n} it is the familiar "closed and bounded", which is why calculus can be done without the word; the content of Heine-Borel is that this familiar test is exactly compactness, and the content of the counterexamples below is that it stops being the right test as soon as the dimension is infinite.

Definition(Covers, compactness, sequential compactness)AdaptedAdapted from Folland (1999), §4.4, p. 128, §0.6, p. 15, and §4.4, p. 130; Lee (2013), Appendix A, p. 608

Fix a topological space XX with topology T\mathcal{T}, and let K⊆XK \subseteq X.

Covers. A family U\mathcal{U} of subsets of XX covers KK when K⊆⋃U∈UUK \subseteq \bigcup_{U \in \mathcal{U}} U; it is an open cover when additionally U⊆T\mathcal{U} \subseteq \mathcal{T}. A subcover is a subfamily of U\mathcal{U} that still covers KK.

Compact. Call KK compact when from each open cover U\mathcal{U} of KK one may select finitely many members U1,…,Um∈UU_1, \dots, U_m \in \mathcal{U} with

K⊆U1∪⋯∪Um.K \subseteq U_1 \cup \dots \cup U_m .

Taking K=XK = X gives the notion for a space, and the two readings agree: KK is compact as a subset of XX exactly when KK, equipped with its subspace topology, is a compact space. Compactness of KK therefore does not depend on which ambient space KK is viewed inside.

Precompact. KK is precompact in XX when K‾\overline{K} is compact.

Sequentially compact. XX is sequentially compact when each sequence {xi}\{x_i\} in XX admits a subsequence {xik}\{x_{i_k}\} and a point x∈Xx \in X with xik→xx_{i_k} \to x.

Totally bounded. In a metric space (M,d)(M, d), call E⊆ME \subseteq M totally bounded when, for each ε>0\varepsilon > 0, there are finitely many points z1,…,zn∈Mz_1, \dots, z_n \in M with

E⊆Bε(z1)∪⋯∪Bε(zn).E \subseteq B_\varepsilon(z_1) \cup \dots \cup B_\varepsilon(z_n) .

Total boundedness is strictly stronger than boundedness.

Theorem(Compactness read off the closed sets)AdaptedAdapted from Folland (1999), §4.4, Prop 4.21, p. 128

Say that a family {Fα}α∈A\{F_\alpha\}_{\alpha \in A} of sets has the finite intersection property when no finite subfamily of it meets in the empty set:

⋂α∈BFα≠∅for each finite B⊆A.\bigcap_{\alpha \in B} F_\alpha \neq \emptyset \qquad \text{for each finite } B \subseteq A .

A space XX is then compact exactly when each family of closed subsets of XX with the finite intersection property satisfies ⋂α∈AFα≠∅\bigcap_{\alpha \in A} F_\alpha \neq \emptyset.

Idea of the proofOriginal

A family of open sets and a family of closed sets are the same data read through complements, and complementation exchanges "their union is everything" with "their intersection is empty". The two conditions are therefore the same condition about that data, stated once positively and once negatively; nothing beyond this bookkeeping is involved.

ProofAdaptedAdapted from Folland (1999), §4.4, Prop 4.21, p. 128

Given closed sets Fα⊆XF_\alpha \subseteq X for α∈A\alpha \in A, put Uα=X∖FαU_\alpha = X \setminus F_\alpha, which is open; every family of open sets arises from a family of closed sets in this way. One translation does all the work, and it holds for every subset B⊆AB \subseteq A, finite or not: the family {Uα}α∈B\{U_\alpha\}_{\alpha \in B} covers XX exactly when ⋂α∈BFα=∅\bigcap_{\alpha \in B} F_\alpha = \emptyset, since a point belonging to no UαU_\alpha with α∈B\alpha \in B is precisely a point belonging to every FαF_\alpha with α∈B\alpha \in B.

Compact ⇒\Rightarrow the closed-set condition. Let XX be compact and let {Fα}α∈A\{F_\alpha\}_{\alpha \in A} be closed with the finite intersection property. If ⋂α∈AFα\bigcap_{\alpha \in A} F_\alpha were empty, the translation with B=AB = A would make {Uα}α∈A\{U_\alpha\}_{\alpha \in A} an open cover of XX; compactness would give a finite B⊆AB \subseteq A with {Uα}α∈B\{U_\alpha\}_{\alpha \in B} still covering, and the translation read backwards would give ⋂α∈BFα=∅\bigcap_{\alpha \in B} F_\alpha = \emptyset, contradicting the finite intersection property. So the intersection over all of AA is nonempty.

The closed-set condition ⇒\Rightarrow compact. Assume the condition and let {Uα}α∈A\{U_\alpha\}_{\alpha \in A} be an open cover of XX. With Fα=X∖UαF_\alpha = X \setminus U_\alpha, the translation gives ⋂α∈AFα=∅\bigcap_{\alpha \in A} F_\alpha = \emptyset. The family {Fα}\{F_\alpha\} is closed, so by the assumed condition it cannot have the finite intersection property: some finite B⊆AB \subseteq A has ⋂α∈BFα=∅\bigcap_{\alpha \in B} F_\alpha = \emptyset, which says that {Uα}α∈B\{U_\alpha\}_{\alpha \in B} covers XX. That is a finite subcover. □\square

Theorem(Permanence properties)AdaptedAdapted from Lee (2013), Appendix A, Prop A.45(a), (c), (e), (f), (g), pp. 608-609; Folland (1999), §4.4, Props 4.22, 4.24, 4.26, pp. 128-129

Throughout, XX and YY carry topologies and f:X→Yf : X \to Y is continuous.

  1. Images. If XX is compact then so is f(X)f(X). In particular a homeomorphism carries compact spaces to compact spaces, so compactness is a topological property.
  2. Closed subspaces. If XX is compact and F⊆XF \subseteq X is closed, then FF is compact.
  3. Hausdorff reverses this. If YY is Hausdorff and K⊆YK \subseteq Y is compact, then KK is closed in YY.
  4. Finite unions. If K1,…,Km⊆XK_1, \dots, K_m \subseteq X are compact, so is K1∪⋯∪KmK_1 \cup \dots \cup K_m.
  5. Metric ambient space. A compact subset of a metric space is bounded. A metric space is Hausdorff, so by item 3 such a subset is closed as well: in a metric space, compactness implies closed and bounded.
Idea of the proofOriginal

Each item is one use of the definition. For images, pull the cover back through ff; for a closed subspace, enlarge the cover by the complement of the subspace and then discard it again; for finite unions, pool the finite subcovers. The Hausdorff item is the only one with any content: separate the outside point from each point of the compact set, cover the set by finitely many of the resulting neighbourhoods, and intersect the finitely many companions to get one neighbourhood of the outside point that misses the set. Boundedness comes from covering by concentric balls of growing radius.

ProofAdaptedAdapted from Lee (2013), Appendix A, Prop A.45 and Exercise A.46, pp. 608-609; Folland (1999), §4.4, Props 4.22, 4.24 and 4.26, pp. 128-129
  1. Images. Let V\mathcal{V} be a cover of f(X)f(X) by sets open in YY. Each f−1(V)f^{-1}(V), V∈VV \in \mathcal{V}, is open by continuity, and these sets cover XX because every f(x)f(x) lies in some VV. Compactness of XX gives V1,…,Vm∈VV_1, \dots, V_m \in \mathcal{V} with X=f−1(V1)∪⋯∪f−1(Vm)X = f^{-1}(V_1) \cup \dots \cup f^{-1}(V_m); applying ff to both sides gives f(X)⊆V1∪⋯∪Vmf(X) \subseteq V_1 \cup \dots \cup V_m. Specialising to a homeomorphism and to its inverse shows that XX is compact if and only if its homeomorphic image is, so compactness is a topological property.

  2. Closed subspaces. Let F⊆XF \subseteq X be closed and let U\mathcal{U} be a cover of FF by sets open in XX. Then U∪{X∖F}\mathcal{U} \cup \{X \setminus F\} is an open cover of XX, since the extra set catches everything outside FF. Compactness of XX gives a finite subcover; deleting X∖FX \setminus F from it leaves finitely many members of U\mathcal{U}, and they still cover FF, because a point of FF lies in one of the finitely many chosen sets and is not in X∖FX \setminus F.

  3. Hausdorff reverses this. Let K⊆YK \subseteq Y be compact, with YY Hausdorff, and let y∈Y∖Ky \in Y \setminus K. For each x∈Kx \in K the Hausdorff property gives disjoint open sets Ux∋xU_x \ni x and Vx∋yV_x \ni y. The family {Ux}x∈K\{U_x\}_{x \in K} covers KK, so finitely many suffice: K⊆Ux1∪⋯∪UxmK \subseteq U_{x_1} \cup \dots \cup U_{x_m}. Then V=Vx1∩⋯∩VxmV = V_{x_1} \cap \dots \cap V_{x_m} is open, being a finite intersection, contains yy, and is disjoint from each UxiU_{x_i}, hence from KK. So every point of Y∖KY \setminus K has a neighbourhood inside Y∖KY \setminus K, that set is open, and KK is closed. (For K=∅K = \emptyset there is nothing to prove.)

  4. Finite unions. An open cover of K1∪⋯∪KmK_1 \cup \dots \cup K_m covers each KjK_j, so it has a finite subfamily covering KjK_j; the union of those mm finite subfamilies is finite and covers the union.

  5. Metric ambient space. Let KK be a nonempty compact subset of a metric space (M,d)(M, d) and fix z∈Mz \in M. The balls Bi(z)B_i(z), i∈Ni \in \mathbb{N}, are open and their union is M⊇KM \supseteq K, so finitely many of them cover KK; since they increase with ii, the largest one alone covers KK, say K⊆BN(z)K \subseteq B_N(z). Then d(x,y)≤d(x,z)+d(z,y)<2Nd(x, y) \le d(x, z) + d(z, y) < 2N for x,y∈Kx, y \in K, so diam⁡K≤2N\operatorname{diam} K \le 2N and KK is bounded; the empty set is bounded outright. A metric space is Hausdorff - distinct points x≠yx \neq y are separated by the balls of radius d(x,y)/2d(x, y)/2 about them - so item 3 applies and KK is also closed. □\square

Theorem(Three equivalent forms in a metric space)AdaptedAdapted from Folland (1999), §0.6, Thm 0.25, pp. 15-16

Work inside a metric space (X,ρ)(X, \rho) and let E⊆XE \subseteq X. The following three conditions on EE are equivalent.

  1. (Heine-Borel property) Each cover of EE by sets open in XX admits a finite subcover; that is, EE is compact.
  2. (Bolzano-Weierstrass property) Each sequence drawn from EE has a subsequence whose limit exists and lies in EE; that is, EE is sequentially compact.
  3. EE is totally bounded, and EE with the restricted metric is complete.

For subsets of a metric space, then, compactness and sequential compactness are one condition, and either amounts to total boundedness plus completeness.

Idea of the proofOriginal

Three implications close the circle. A sequence with no subsequence converging in EE gives every point of EE a ball holding only finitely many of its terms, and those balls cover EE with no finite subcover: that is 1 ⇒\Rightarrow 2. Condition 2 forces completeness, because a Cauchy sequence with one convergent subsequence converges, and forces total boundedness, because otherwise one can go on choosing points a fixed distance apart for ever. Going back, halving the radius again and again pins an infinite set of indices into balls of shrinking size, which makes a subsequence Cauchy and completeness then supplies its limit; and once 2 and 3 are available, one shows that some single radius is small enough that every ball of that radius meeting EE is swallowed by one member of the cover, after which total boundedness finishes the job with finitely many balls.

ProofAdaptedAdapted from Folland (1999), §0.6, Thm 0.25, pp. 15-16

Throughout, convergence, Cauchy sequences and completeness are as in Limits of sequences and completeness, with the metric ρ\rho restricted to EE. We prove 1⇒21 \Rightarrow 2, 2⇒32 \Rightarrow 3, 3⇒23 \Rightarrow 2, and then 22 together with 33 gives 11.

1⇒21 \Rightarrow 2. Suppose EE is compact and let {xn}\{x_n\} be a sequence in EE with no subsequence converging to a point of EE; we derive a contradiction. Fix y∈Ey \in E. There must be ry>0r_y > 0 such that xn∈Bry(y)x_n \in B_{r_y}(y) for only finitely many indices nn: otherwise every ball about yy would contain xnx_n for infinitely many nn, and choosing n1<n2<…n_1 < n_2 < \dots with ρ(xnk,y)<1/k\rho(x_{n_k}, y) < 1/k would produce a subsequence converging to y∈Ey \in E. The balls Bry(y)B_{r_y}(y), y∈Ey \in E, are open and cover EE, so compactness gives y1,…,ym∈Ey_1, \dots, y_m \in E with E⊆Bry1(y1)∪⋯∪Brym(ym)E \subseteq B_{r_{y_1}}(y_1) \cup \dots \cup B_{r_{y_m}}(y_m). Every term of the sequence lies in EE, hence in one of these mm balls, and each ball accounts for finitely many indices; so the index set N\mathbb{N} would be finite, which it is not.

2⇒32 \Rightarrow 3, completeness. Let {xn}\{x_n\} be a Cauchy sequence in EE. By 2 some subsequence converges to a point x∈Ex \in E. Let ε>0\varepsilon > 0 and choose NN with ρ(xn,xm)<ε/2\rho(x_n, x_m) < \varepsilon/2 for all n,m≥Nn, m \ge N; choose also a subsequence index nk≥Nn_k \ge N with ρ(xnk,x)<ε/2\rho(x_{n_k}, x) < \varepsilon/2. Then ρ(xn,x)≤ρ(xn,xnk)+ρ(xnk,x)<ε\rho(x_n, x) \le \rho(x_n, x_{n_k}) + \rho(x_{n_k}, x) < \varepsilon for every n≥Nn \ge N. So the whole sequence converges to x∈Ex \in E, and EE is complete.

2⇒32 \Rightarrow 3, total boundedness. The empty set is totally bounded, so take E≠∅E \neq \emptyset and suppose some ε>0\varepsilon > 0 admits no finite cover of EE by ε\varepsilon-balls. Pick x1∈Ex_1 \in E; having picked x1,…,xnx_1, \dots, x_n, the balls Bε(x1),…,Bε(xn)B_\varepsilon(x_1), \dots, B_\varepsilon(x_n) fail to cover EE, so there is xn+1∈Ex_{n+1} \in E outside all of them, which means ρ(xn+1,xi)≥ε\rho(x_{n+1}, x_i) \ge \varepsilon for i≤ni \le n. The sequence so constructed has ρ(xn,xm)≥ε\rho(x_n, x_m) \ge \varepsilon whenever n≠mn \neq m, so no subsequence of it is Cauchy and therefore none converges, contradicting 2.

3⇒23 \Rightarrow 2. Let {xn}\{x_n\} be a sequence in EE and set N0=NN_0 = \mathbb{N}. Suppose an infinite set of indices Nj−1N_{j-1} has been found. By total boundedness, EE lies in a union of finitely many balls of radius 2−j2^{-j}; the infinitely many indices of Nj−1N_{j-1} are shared out among finitely many of these balls, so one of them, call it BjB_j, has xn∈Bjx_n \in B_j for infinitely many n∈Nj−1n \in N_{j-1}. Let Nj={n∈Nj−1:xn∈Bj}N_j = \{n \in N_{j-1} : x_n \in B_j\}, again infinite. Because each NjN_j is infinite and contained in its predecessor, indices n1<n2<…n_1 < n_2 < \dots with nj∈Njn_j \in N_j can be chosen one after another. For k≥jk \ge j both xnjx_{n_j} and xnkx_{n_k} lie in BjB_j, a ball of radius 2−j2^{-j}, so ρ(xnj,xnk)<21−j\rho(x_{n_j}, x_{n_k}) < 2^{1-j}; hence {xnk}\{x_{n_k}\} is Cauchy, and completeness of EE gives it a limit in EE.

22 and 33 give 11: one radius fits the whole cover. Let U\mathcal{U} be a cover of EE by sets open in XX. We claim there is ε>0\varepsilon > 0 such that every ball of radius ε\varepsilon meeting EE lies inside some member of U\mathcal{U}. If not, then for each nn there is a ball DnD_n of radius 1/n1/n with Dn∩E≠∅D_n \cap E \neq \emptyset and DnD_n inside no member of U\mathcal{U}. Pick xn∈Dn∩Ex_n \in D_n \cap E. By 2 a subsequence converges, xnk→x∈Ex_{n_k} \to x \in E. Some U∈UU \in \mathcal{U} contains xx, and UU is open, so Br(x)⊆UB_r(x) \subseteq U for some r>0r > 0. Choose kk with ρ(xnk,x)<r/2\rho(x_{n_k}, x) < r/2 and 1/nk<r/41/n_k < r/4. Any y∈Dnky \in D_{n_k} satisfies ρ(y,xnk)<2/nk<r/2\rho(y, x_{n_k}) < 2/n_k < r/2, both points lying in a ball of radius 1/nk1/n_k, so ρ(y,x)<r\rho(y, x) < r. Thus Dnk⊆Br(x)⊆UD_{n_k} \subseteq B_r(x) \subseteq U, contradicting the choice of DnkD_{n_k}.

22 and 33 give 11: finishing. With such an ε\varepsilon, total boundedness provides z1,…,zpz_1, \dots, z_p with E⊆Bε(z1)∪⋯∪Bε(zp)E \subseteq B_\varepsilon(z_1) \cup \dots \cup B_\varepsilon(z_p). Discard those balls that miss EE; they cover none of it. Each remaining Bε(zj)B_\varepsilon(z_j) meets EE and has radius ε\varepsilon, so it lies in some Uj∈UU_j \in \mathcal{U}. Then E⊆U1∪⋯∪UqE \subseteq U_1 \cup \dots \cup U_q with q≤pq \le p, a finite subcover. □\square

Theorem(Heine-Borel in R^n, and where it stops)AdaptedAdapted from Folland (1999), §0.6, Prop 0.26 and the paragraph before it, p. 16; Kreyszig (1978), §2.5, Lemma 2.5-2 and Thm 2.5-3, pp. 77-78
  1. Each closed bounded subset of Rn\mathbb{R}^{n} is compact. Together with item 5 of the permanence properties: a set K⊆RnK \subseteq \mathbb{R}^{n} is compact precisely when it is both closed and bounded.
  2. The same holds in any finite-dimensional normed space XX - a real or complex vector space with a norm ∥⋅∥\|\cdot\|, read as a metric space under d(x,y)=∥x−y∥d(x, y) = \|x - y\|: a subset M⊆XM \subseteq X is compact precisely when MM is closed and bounded.
  3. Drop finite-dimensionality and this breaks. Let
ℓ2={x=(x1,x2,… ):xj∈C, ∑j=1∞∣xj∣2<∞},∥x∥=(∑j=1∞∣xj∣2)1/2,\ell^{2} = \Bigl\{ x = (x_1, x_2, \dots) : x_j \in \mathbb{C}, \ \sum_{j=1}^{\infty} |x_j|^{2} < \infty \Bigr\}, \qquad \|x\| = \Bigl(\sum_{j=1}^{\infty} |x_j|^{2}\Bigr)^{1/2} ,

and let en∈ℓ2e_n \in \ell^{2} carry 11 in slot nn and 00 elsewhere. Since ∥en∥=1\|e_n\| = 1, the set S={en:n∈N}S = \{e_n : n \in \mathbb{N}\} is bounded. Since ∥en−em∥=2\|e_n - e_m\| = \sqrt{2} whenever n≠mn \neq m, no point of ℓ2\ell^{2} accumulates SS, so SS is closed; and no subsequence of (en)(e_n) can converge, so SS is not compact.

Idea of the proofOriginal

Everything is already proved; what remains is to put the pieces in order. A bounded set in Rn\mathbb{R}^{n} sits inside a cube, and a cube is chopped into finitely many small cubes whose centres form a finite net of any prescribed fineness, so bounded means totally bounded here; closed means complete, because Rn\mathbb{R}^{n} is complete coordinate by coordinate. The three-way equivalence then delivers compactness. For a finite-dimensional normed space, a basis gives a bijection with Fn\mathbb{F}^{n} that distorts distances by at most a fixed factor each way - the lower factor being where compactness of a sphere in Fn\mathbb{F}^{n} is spent - so closed bounded sets correspond to closed bounded sets and compactness transfers.

ProofAdaptedAdapted from Folland (1999), §0.6, Prop 0.26, p. 16; Kreyszig (1978), §2.4, Lemma 2.4-1, pp. 72-73, and §2.5, Thm 2.5-3, p. 78

Part 1: Rn\mathbb{R}^{n} is complete. Let {x(m)}\{x^{(m)}\} be Cauchy in Rn\mathbb{R}^{n}. For each coordinate jj, ∣xj(m)−xj(l)∣≤∣x(m)−x(l)∣|x^{(m)}_j - x^{(l)}_j| \le |x^{(m)} - x^{(l)}|, so the jj-th coordinates form a Cauchy sequence in R\mathbb{R} and converge to some aja_j, by the Cauchy criterion of Limits of sequences and completeness. With a=(a1,…,an)a = (a_1, \dots, a_n) we get ∣x(m)−a∣2=∑j=1n∣xj(m)−aj∣2→0|x^{(m)} - a|^{2} = \sum_{j=1}^{n} |x^{(m)}_j - a_j|^{2} \to 0, a finite sum of null sequences. So the sequence converges in Rn\mathbb{R}^{n}.

Part 1: closed and bounded implies the third condition. Let K⊆RnK \subseteq \mathbb{R}^{n} be closed and bounded. A Cauchy sequence in KK converges in Rn\mathbb{R}^{n} by the previous paragraph, and its limit lies in KK because KK is closed; so KK with the restricted metric is complete. For total boundedness, boundedness puts KK inside a cube Q=[−R,R]nQ = [-R, R]^{n}. Given ε>0\varepsilon > 0, pick an integer k>Rn/εk > R\sqrt{n}/\varepsilon and cut each edge of QQ into kk equal parts, which splits QQ into knk^{n} closed subcubes of side 2R/k2R/k. A point of such a subcube is at distance at most half its diagonal, n R/k<ε\sqrt{n}\,R/k < \varepsilon, from its centre, so each subcube lies in the ε\varepsilon-ball about its own centre. The knk^{n} centres therefore form a finite ε\varepsilon-net for QQ, hence for KK. By the implication 3⇒13 \Rightarrow 1 of the previous statement, KK is compact. With item 5 of the permanence properties, which gives the converse, compactness in Rn\mathbb{R}^{n} is exactly closedness together with boundedness.

Part 2: the coordinate map and its upper bound. Let XX be a normed space over F∈{R,C}\mathbb{F} \in \{\mathbb{R}, \mathbb{C}\} with dim⁡X=n≥1\dim X = n \ge 1 and basis e1,…,ene_1, \dots, e_n (the case X={0}X = \{0\} is trivial). Define T:Fn→XT : \mathbb{F}^{n} \to X by Tα=∑j=1nαjejT\alpha = \sum_{j=1}^{n} \alpha_j e_j, a bijection because the eje_j form a basis. Regard Fn\mathbb{F}^{n} as Rn\mathbb{R}^{n} or R2n\mathbb{R}^{2n} with the Euclidean metric, which is the metric of ∣α∣2=(∑j∣αj∣2)1/2|\alpha|_2 = (\sum_j |\alpha_j|^{2})^{1/2}, and write ∣α∣1=∑j∣αj∣|\alpha|_1 = \sum_j |\alpha_j|; the two satisfy ∣α∣2≤∣α∣1≤n ∣α∣2|\alpha|_2 \le |\alpha|_1 \le \sqrt{n}\,|\alpha|_2. The triangle inequality and homogeneity of the norm give

∥Tα∥≤∑j=1n∣αj∣ ∥ej∥≤C ∣α∣1,C=max⁡j∥ej∥,\|T\alpha\| \le \sum_{j=1}^{n} |\alpha_j| \, \|e_j\| \le C \, |\alpha|_1, \qquad C = \max_j \|e_j\| ,

so ∥Tα−Tβ∥=∥T(α−β)∥≤C∣α−β∣1≤Cn ∣α−β∣2\|T\alpha - T\beta\| = \|T(\alpha - \beta)\| \le C |\alpha - \beta|_1 \le C\sqrt{n}\,|\alpha - \beta|_2 and TT is continuous.

Part 2: the lower bound. Let S={α∈Fn:∣α∣1=1}S = \{\alpha \in \mathbb{F}^{n} : |\alpha|_1 = 1\}. The function α↦∣α∣1\alpha \mapsto |\alpha|_1 is continuous, since ∣∣α∣1−∣β∣1∣≤∣α−β∣1≤n ∣α−β∣2\bigl| |\alpha|_1 - |\beta|_1 \bigr| \le |\alpha - \beta|_1 \le \sqrt{n}\,|\alpha - \beta|_2, so SS is closed as the inverse image of the closed set {1}\{1\}; and SS is bounded because ∣α∣2≤∣α∣1=1|\alpha|_2 \le |\alpha|_1 = 1 on it. By part 1, SS is compact, and it is nonempty, containing (1,0,…,0)(1, 0, \dots, 0). The function α↦∥Tα∥\alpha \mapsto \|T\alpha\| is continuous by the previous paragraph, so by the extreme value theorem - item 1 of the next statement, whose proof uses only items 1 and 5 of the permanence properties and therefore does not depend on the present one - it attains a least value c=∥Tα∗∥c = \|T\alpha^{*}\| on SS. Since ∣α∗∣1=1|\alpha^{*}|_1 = 1, α∗≠0\alpha^{*} \neq 0, so Tα∗≠0T\alpha^{*} \neq 0 by linear independence of the eje_j, and c>0c > 0. Homogeneity extends the bound off SS: ∥Tα∥≥c ∣α∣1\|T\alpha\| \ge c\,|\alpha|_1 holds for α=0\alpha = 0 trivially and for α≠0\alpha \neq 0 by applying the bound at SS to α/∣α∣1\alpha/|\alpha|_1.

Part 2: conclusion. Let M⊆XM \subseteq X be closed and bounded, and put A=T−1(M)A = T^{-1}(M), the inverse image of MM under the continuous map TT, which is therefore closed in Fn\mathbb{F}^{n}. It is bounded: a nonempty bounded MM lies inside {x:∥x∥≤B}\{x : \|x\| \le B\} with B=∥m0∥+diam⁡MB = \|m_0\| + \operatorname{diam} M for any m0∈Mm_0 \in M, so α∈A\alpha \in A gives ∣α∣1≤∥Tα∥/c≤B/c|\alpha|_1 \le \|T\alpha\|/c \le B/c by the lower bound, and ∣α∣2≤∣α∣1|\alpha|_2 \le |\alpha|_1. (An empty MM is compact outright.) By part 1, AA is compact, so M=T(A)M = T(A) is compact by item 1 of the permanence properties. Conversely a compact MM is closed and bounded by item 5 of those properties, XX being a metric space under d(x,y)=∥x−y∥d(x, y) = \|x - y\|.

Part 3: the set S={en}S = \{e_n\} in ℓ2\ell^{2}. It is bounded, since ∥en∥=1\|e_n\| = 1 puts it inside the ball of radius 22 about 00. It is closed: any two distinct members are at distance ∥en−em∥=2\|e_n - e_m\| = \sqrt{2}, so a ball of radius 2/2\sqrt{2}/2 contains at most one member of SS. No x∈ℓ2x \in \ell^{2} is therefore an accumulation point of SS: if B2/2(x)B_{\sqrt{2}/2}(x) contains no member of SS we are done; if it contains exactly one member eme_m with em≠xe_m \neq x, then the smaller ball of radius min⁡(2/2,∥x−em∥)\min(\sqrt{2}/2, \|x - e_m\|) about xx contains no member of SS at all; and if em=xe_m = x, that ball contains no member of SS other than xx itself. Having no accumulation points, SS contains all of them and is closed. It is not compact: ∥en−em∥=2\|e_n - e_m\| = \sqrt{2} for n≠mn \neq m means no subsequence of (en)(e_n) is Cauchy, hence none converges, so SS fails condition 2 of the previous statement and therefore condition 1. □\square

Theorem(Bolzano-Weierstrass in R^n)AdaptedAdapted from Folland (1999), §0.6, Thm 0.25 and Prop 0.26, pp. 15-16

Every bounded sequence in Rn\mathbb{R}^{n} possesses a convergent subsequence, its limit being some point of Rn\mathbb{R}^{n}. Equally, an infinite bounded set S⊆RnS \subseteq \mathbb{R}^{n} always has at least one point of Rn\mathbb{R}^{n} accumulating it.

Note what is not claimed: unless the set the terms come from is closed, the limit need not belong to it.

Idea of the proofOriginal

A bounded sequence lives inside a closed ball, and a closed ball is closed and bounded, hence compact; compact sets in a metric space have the subsequence property, which is the first assertion, and the limit is caught in the ball. For a set instead of a sequence, list infinitely many of its points without repetition and apply the first assertion; it is the absence of repetitions that turns the limit into an accumulation point.

ProofAdaptedAdapted from Folland (1999), §0.6, Thm 0.25 and Prop 0.26, pp. 15-16

The sequence form. Let {xi}\{x_i\} be a bounded sequence in Rn\mathbb{R}^{n}, so that ∣xi∣≤R|x_i| \le R for all ii and some R>0R > 0. The closed ball B‾R(0)={x:∣x∣≤R}\overline{B}_R(0) = \{x : |x| \le R\} is bounded, and it is closed because the norm is continuous and the ball is the inverse image of the closed half-line (−∞,R](-\infty, R] under it. By part 1 of the Heine-Borel statement it is compact, so by the equivalence of conditions 1 and 2 in a metric space it has the Bolzano-Weierstrass property. The sequence lies in it, so some subsequence converges to a point of that ball, in particular to a point of Rn\mathbb{R}^{n}.

The set form. Let S⊆RnS \subseteq \mathbb{R}^{n} be bounded and infinite. Being infinite, SS admits a sequence {xi}\{x_i\} of pairwise distinct members: having chosen x1,…,xix_1, \dots, x_i, the set SS is not exhausted, so a further member is available. This sequence is bounded, so by the first part a subsequence converges to some x∈Rnx \in \mathbb{R}^{n}. Let UU be a neighbourhood of xx. It contains xikx_{i_k} for all large kk, and at most one index can have xik=xx_{i_k} = x because the terms are pairwise distinct; so UU contains a member of SS different from xx. That is exactly the condition for xx to be an accumulation point of SS in the sense of Topological and metric spaces. □\square

Theorem(What continuity gains on a compact space)AdaptedAdapted from Lee (2013), Appendix A, Prop A.45(b), p. 608, Prop A.48(a), p. 609 and Lemma A.52, p. 610; Folland (1999), §4.4, Prop 4.28, p. 129
  1. (Extreme value theorem) Let XX be compact and nonempty and let f:X→Rf : X \to \mathbb{R} be continuous. Then ff is bounded, and there are p,q∈Xp, q \in X at which it attains its least and greatest values:
f(p)=min⁡x∈Xf(x),f(q)=max⁡x∈Xf(x).f(p) = \min_{x \in X} f(x), \qquad f(q) = \max_{x \in X} f(x) .
  1. (Uniform continuity on compact sets) Work with metric spaces (M1,d1)(M_1, d_1), (M2,d2)(M_2, d_2), a continuous f:M1→M2f : M_1 \to M_2, and a compact K⊆M1K \subseteq M_1. The restriction f∣Kf|_K is then uniformly continuous: for each ε>0\varepsilon > 0 a single δ>0\delta > 0 serves every pair, in the sense that x,y∈Kx, y \in K with d1(x,y)<δd_1(x, y) < \delta gives d2(f(x),f(y))<εd_2(f(x), f(y)) < \varepsilon.
  2. (Closed map lemma) Suppose XX is compact, YY is Hausdorff and f:X→Yf : X \to Y is continuous. Then ff takes closed sets to closed sets. Hence an injective such ff is a topological embedding, and a bijective one is a homeomorphism.
Idea of the proofOriginal

For the extreme value theorem, push the compactness forward through ff: the image is a compact subset of R\mathbb{R}, so it is bounded and closed, and a nonempty closed bounded set of reals contains its own supremum and infimum - which is to say the bounds are values of ff. Uniform continuity is a matter of replacing infinitely many local radii by finitely many: cover KK by balls on which ff varies by less than ε/2\varepsilon/2, keep only finitely many, and take the smallest radius. The closed map lemma is three permanence properties applied in a row.

ProofAdaptedAdapted from Lee (2013), Appendix A, Prop A.45(b), p. 608, Prop A.48(a), p. 609, and Lemma A.52, p. 610
  1. Extreme value theorem. The image f(X)f(X) is compact by item 1 of the permanence properties and nonempty because XX is. By item 5 of those properties, applied in the metric space R\mathbb{R}, the set f(X)f(X) is bounded and closed; boundedness of ff is the first assertion. By the least-upper-bound property of R\mathbb{R} (Limits of sequences and completeness) the number s=sup⁡f(X)s = \sup f(X) exists. Every interval (s−η,s+η)(s - \eta, s + \eta) meets f(X)f(X), since otherwise s−ηs - \eta would be a smaller upper bound; so ss lies in the closure of f(X)f(X), which is f(X)f(X) itself. Hence s=f(q)s = f(q) for some q∈Xq \in X, and f(x)≤s=f(q)f(x) \le s = f(q) for every xx, so the greatest value is attained at qq. Reading the same argument with the infimum gives the point pp.

  2. Uniform continuity on compact sets. Let ε>0\varepsilon > 0. For each x∈Kx \in K, continuity of ff at xx in the ε\varepsilon-δ\delta form provides rx>0r_x > 0 with

d1(y,x)<rx  ⟹  d2(f(y),f(x))<ε/2.d_1(y, x) < r_x \;\Longrightarrow\; d_2\bigl(f(y), f(x)\bigr) < \varepsilon/2 .

The balls Brx/2(x)B_{r_x/2}(x), x∈Kx \in K, are open and cover KK, so compactness of KK gives x1,…,xm∈Kx_1, \dots, x_m \in K with K⊆Brx1/2(x1)∪⋯∪Brxm/2(xm)K \subseteq B_{r_{x_1}/2}(x_1) \cup \dots \cup B_{r_{x_m}/2}(x_m). Put δ=min⁡irxi/2\delta = \min_i r_{x_i}/2, a minimum of finitely many positive numbers, hence positive - this is the step that fails without compactness.

Now let x,y∈Kx, y \in K with d1(x,y)<δd_1(x, y) < \delta, and choose ii with x∈Brxi/2(xi)x \in B_{r_{x_i}/2}(x_i). Then d1(x,xi)<rxi/2<rxid_1(x, x_i) < r_{x_i}/2 < r_{x_i}, and d1(y,xi)≤d1(y,x)+d1(x,xi)<δ+rxi/2≤rxid_1(y, x_i) \le d_1(y, x) + d_1(x, x_i) < \delta + r_{x_i}/2 \le r_{x_i}. So the displayed implication applies to both xx and yy, and

d2(f(x),f(y))≤d2(f(x),f(xi))+d2(f(xi),f(y))<ε/2+ε/2=ε.d_2\bigl(f(x), f(y)\bigr) \le d_2\bigl(f(x), f(x_i)\bigr) + d_2\bigl(f(x_i), f(y)\bigr) < \varepsilon/2 + \varepsilon/2 = \varepsilon .

The single δ\delta served every admissible pair, which is uniform continuity of f∣Kf|_K.

  1. Closed map lemma. Let K⊆XK \subseteq X be closed. Item 2 of the permanence properties makes KK compact, item 1 makes f(K)f(K) compact, and item 3, which needs YY Hausdorff, makes f(K)f(K) closed in YY. So ff is a closed map. The two consequences are then the statement on continuous bijections in Continuity and homeomorphism: a continuous closed injection is a topological embedding, and a continuous closed bijection is a homeomorphism. □\square
RemarkOriginal

Where the hypotheses are used.

  • "Finite" in the subcover. Without it the definition is empty, since any cover is a subcover of itself. That the word bites is visible at once: R=⋃n∈N(−n,n)\mathbb{R} = \bigcup_{n \in \mathbb{N}} (-n, n) admits no finite subcover, so the line is not compact; and (0,1]⊆⋃n∈N(1/n,2)(0, 1] \subseteq \bigcup_{n \in \mathbb{N}} (1/n, 2) admits none either, because a finite subfamily is dominated by its largest member (1/N,2)(1/N, 2), which misses 1/(2N)1/(2N). A bounded set that is not closed can therefore fail to be compact.
  • Closedness in item 2 of the permanence properties. The subspace (0,1)(0, 1) of the compact space [0,1][0, 1] is not compact: the open sets (1/n,1)(1/n, 1) for n≥2n \ge 2 cover it, and any finite subfamily is contained in one (1/N,1)(1/N, 1), which omits 1/(2N)1/(2N).
  • Hausdorff in item 3. Let X={a,b}X = \{a, b\} with the trivial topology {∅,X}\{\emptyset, X\}. Then {a}\{a\} is finite, hence compact, yet X∖{a}={b}X \setminus \{a\} = \{b\} is not open, so {a}\{a\} is not closed. Folland (p. 129) records the same phenomenon and adds that without Hausdorff an intersection of two compact sets can fail to be compact.
  • Hausdorff in the closed map lemma. Compactness of the domain alone is not enough. Give {a,b}\{a, b\} the discrete topology to get a compact space XX, and the trivial topology to get a non-Hausdorff space YY. The identity X→YX \to Y is continuous, since only ∅\emptyset and YY are open in YY, and bijective; but {a}\{a\} is closed in XX and not in YY, so the map is neither closed nor a homeomorphism.
  • Nonemptiness in the extreme value theorem. The empty space is compact and every map out of it is continuous, but no point is available at which a maximum could be attained. Lee (p. 608) states the result for a compact space without this caveat; we add "nonempty" so that the conclusion is literally true as written, and nothing else changes.
  • Compactness in item 2 of that statement. On the non-compact set (0,1)(0, 1) the continuous function 1/x1/x is not uniformly continuous, so the hypothesis cannot be dropped.

Why Heine-Borel is a theorem, not a definition. "Closed and bounded" is strictly weaker than compact in a general metric space, as item 3 of the Heine-Borel statement shows, and it is already weaker in a space as ordinary as Q\mathbb{Q}: the set Q∩[0,1]\mathbb{Q} \cap [0, 1] is bounded and closed in Q\mathbb{Q}, but the decimal truncations of 1/21/\sqrt{2} form a sequence in it with no subsequence converging anywhere in Q\mathbb{Q}. The pair of conditions that does survive in every metric space is total boundedness together with completeness, which is the point of the three-way equivalence.

Compactness against sequential compactness. The two agree on metric spaces, by that equivalence. Lee (p. 610) shows they also agree on second-countable Hausdorff spaces, and that a third condition joins them there: every infinite subset has a limit point. For topological spaces in general neither implies the other - Folland (p. 130) says so explicitly, and introduces there the intermediate notion of countable compactness, where only countable open covers are required to reduce to finite ones, a property every compact space has. Before transporting a theorem to a space with no metric, check which of the two hypotheses its proof actually used.

Convention. Kreyszig (p. 77) defines a metric space to be compact when each of its sequences has a convergent subsequence - our sequential compactness - and notes in a footnote that the variants coincide for metric spaces. Folland (p. 128) and Lee (p. 608) use finite subcovers, which is what this unit does and the only version that behaves well with no metric present. Read Kreyszig's "compact" as "sequentially compact"; by the equivalence above the two readings agree on every metric space, so his results transfer unchanged.

Example(The closed unit disk: a finite net, a maximum, and what breaks when the disk is opened)Original

Work in R2\mathbb{R}^{2} with the Euclidean metric and let

D={(x,y):x2+y2≤1},D∘={(x,y):x2+y2<1},f(x,y)=x+2y.D = \{(x, y) : x^{2} + y^{2} \le 1\}, \qquad D^{\circ} = \{(x, y) : x^{2} + y^{2} < 1\}, \qquad f(x, y) = x + 2y .

1. A finite net, counted. Take ε=1/10\varepsilon = 1/10. Cut the square Q=[−1,1]2Q = [-1, 1]^{2} into 16×16=25616 \times 16 = 256 closed subsquares of side 1/81/8. Each subsquare lies within 12⋅182=2/16=0.08838…<0.1\tfrac{1}{2}\cdot\tfrac{1}{8}\sqrt{2} = \sqrt{2}/16 = 0.08838\ldots < 0.1 of its own centre, so it sits inside the ball of radius 1/101/10 about that centre. The 256256 centres thus form a finite (1/10)(1/10)-net for QQ, hence for D⊆QD \subseteq Q. The count cannot be reduced below 100100: a ball of radius 1/101/10 has area π/100\pi/100, the disk has area π\pi, and the area of a union is at most the sum of the areas, so at least π/(π/100)=100\pi/(\pi/100) = 100 such balls are needed. Total boundedness of DD at this ε\varepsilon therefore costs between 100100 and 256256 balls.

2. DD is compact. It is bounded, lying inside B2(0)B_2(0), and closed, being the inverse image of (−∞,1](-\infty, 1] under the continuous map (x,y)↦x2+y2(x, y) \mapsto x^{2} + y^{2}. Part 1 of the Heine-Borel statement makes it compact; equivalently, by the three-way equivalence, DD is complete (a closed subset of the complete space R2\mathbb{R}^{2}) and totally bounded (step 1 exhibits a net for ε=1/10\varepsilon = 1/10, and the same construction with more than 2/ε2/\varepsilon subdivisions per side works for any ε\varepsilon).

3. The maximum exists, and here it is. ff is continuous and DD is compact and nonempty, so the extreme value theorem gives points of DD at which ff is least and greatest. To find them, use the Cauchy-Schwarz inequality: f(x,y)=(x,y)⋅(1,2)≤∣(x,y)∣ ∣(1,2)∣≤5f(x, y) = (x, y) \cdot (1, 2) \le |(x, y)|\,|(1, 2)| \le \sqrt{5} on DD, with equality only when (x,y)(x, y) is a nonnegative multiple of (1,2)(1, 2) of length 11. Hence

max⁡Df=5=2.2360679775…at(15,25)=(0.4472135955…,  0.8944271910…),\max_{D} f = \sqrt{5} = 2.2360679775\ldots \quad \text{at} \quad \Bigl(\tfrac{1}{\sqrt{5}}, \tfrac{2}{\sqrt{5}}\Bigr) = (0.4472135955\ldots,\; 0.8944271910\ldots),

and min⁡Df=−5\min_{D} f = -\sqrt{5} at the opposite point.

4. On the open disk the bound is never reached. For (x,y)∈D∘(x, y) \in D^{\circ} the same inequality gives f(x,y)<5f(x, y) < \sqrt{5} strictly, while the points (1−1/m)(1/5,2/5)∈D∘(1 - 1/m)\bigl(1/\sqrt{5}, 2/\sqrt{5}\bigr) \in D^{\circ} have f=5 (1−1/m)→5f = \sqrt{5}\,(1 - 1/m) \to \sqrt{5}. So sup⁡D∘f=5\sup_{D^{\circ}} f = \sqrt{5} is not a value of ff; at m=10m = 10 the value is 0.95=2.0124611797…0.9\sqrt{5} = 2.0124611797\ldots, still short. The reason is that D∘D^{\circ} is not compact, and the failure can be displayed directly: the open sets Um={x2+y2<(1−1/m)2}U_m = \{x^{2} + y^{2} < (1 - 1/m)^{2}\} for m≥2m \ge 2 cover D∘D^{\circ} and grow with mm, so any finite subfamily lies inside its largest member UMU_M, which omits the point (1−1/(2M),0)\bigl(1 - 1/(2M), 0\bigr) of D∘D^{\circ}. No finite subcover exists. D∘D^{\circ} is bounded but not closed, which is precisely the condition Heine-Borel requires.

ApplicationOriginal

Existence of a minimising configuration. The energy of NN interacting atoms is a continuous function VV on a subset of R3N\mathbb{R}^{3N}. Confine them to a closed box: the admissible set is closed and bounded, hence compact, so VV attains a least value and a minimising configuration exists - no further argument about the shape of VV is needed. Remove the box and the conclusion can fail, and its failure is physical rather than technical: for a repulsive VV the infimum of the energy is approached only as the atoms separate without limit, so there is no minimiser, which is what it means for the system to have no bound state. Compactness is the hypothesis that distinguishes the two cases, and the same reasoning underlies the existence statements reached by Lagrange multipliers on a constraint surface that is closed and bounded.

Why the Rayleigh quotient has a minimum in finite dimensions and needs more care in infinite ones. For a real symmetric n×nn \times n matrix AA, the quotient R(x)=xTAxR(x) = x^{\mathsf{T}} A x restricted to the unit sphere {∣x∣=1}⊆Rn\{|x| = 1\} \subseteq \mathbb{R}^{n} is continuous on a set that is closed and bounded, hence compact; the extreme value theorem then produces a minimising vector, and that vector is an eigenvector with the least eigenvalue. The argument uses part 1 of the Heine-Borel statement and nothing else. In an infinite-dimensional normed space the unit sphere is closed and bounded but not compact - the sequence (en)(e_n) of part 3 of that statement lives on it - so the existence of a minimiser has to be bought in some other way, typically by assuming the operator compact. That is the dividing line between quadratic forms in Rn\mathbb{R}^{n} and the spectral theory of compact operators, and it is why variational characterisations of eigenvalues carry a compactness hypothesis.

One step size for the whole interval. A numerical scheme on [a,b][a, b] needs a single grid spacing that meets the tolerance everywhere, which is a statement of uniform continuity, not continuity: item 2 above supplies it for any continuous integrand or right-hand side, because [a,b][a, b] is compact. On a non-compact domain the guarantee evaporates - sin⁡(1/x)\sin(1/x) is continuous on (0,1](0, 1] but oscillates on every scale near 00, and no uniform spacing resolves it - which is why such integrals are handled by a change of variable or by adaptive refinement. The same compactness also makes the microcanonical ensemble finite: for H(q,p)=∣p∣2/2m+V(q)H(q, p) = |p|^{2}/2m + V(q) with VV continuous and the particles confined to a closed bounded region, the set {H≤E}\{H \le E\} is closed and bounded in phase space, hence compact, so its phase-space volume is finite and the ensemble average is defined. Lift the confinement and that volume can diverge.

Definition

Connectedness and simple connectivity

Adapted

Defines connected and path-connected spaces, their components, homotopy of paths and the fundamental group, and says precisely what "simply connected" means, how the definition used in plane complex analysis differs from the homotopy one, and which standard regions satisfy it.

Prerequisites: Continuity and homeomorphism, Limits of sequences and completeness, Sets, functions and countability, Groups and subgroups, Homomorphisms and quotient groups

NoteOriginal

What it means. Connectedness says a space is not two separate pieces; path-connectedness says you can walk between any two points inside it. Simple connectivity says more: every closed walk can be reeled in to a point without leaving the space. That last condition is what integral theorems need. On a simply connected region a field with zero curl has a potential; on a simply connected plane region an analytic function also integrates to zero around every closed curve. Drop the condition and both claims go: a curl-free field need not have a potential, whether on a plane annulus or on the region around a current-carrying wire, and an analytic function on an annulus need not integrate to zero around a closed curve in it. The failure is measured by the fundamental group.

Definition(Connected spaces and components)AdaptedAdapted from Lee (2013), Appendix A, p. 607; Ahlfors (1979), Ch. 3, §1.3, Thm 4 and Def 4, pp. 57-58

Splitting a space in two. Call a space XX disconnected when it can be written as X=U∪VX = U \cup V with UU, VV open, neither empty, and U∩V=∅U \cap V = \emptyset; such a pair is a separation of XX. A space admitting no separation is connected. The same condition stated through clopen sets: XX is connected exactly when ∅\emptyset and XX are the only subsets of XX that happen to be simultaneously open and closed.

Connected subsets and components. A subset of XX is called connected when it is a connected space under its subspace topology. A component of XX (also connected component) is a connected subset that no strictly larger connected subset contains. Each point of XX belongs to one component and no more, so the components give XX a unique decomposition.

Regions. A set that is open, connected and nonempty, inside Rn\mathbb{R}^{n} or inside C\mathbb{C}, is a region.

Definition(Properties of connected spaces)AdaptedAdapted from Lee (2013), Appendix A, p. 607 and Prop A.39, pp. 607-608; Ahlfors (1979), Ch. 3, §1.3, Thms 3-5, pp. 56-58, and Exercise 3, p. 58

Spaces XX, YY carry topologies and f:X→Yf : X \to Y is continuous.

  1. On the line. Among nonempty subsets of R\mathbb{R}, the connected ones are precisely the singletons together with the intervals. Here interval names a set J⊆RJ \subseteq \mathbb{R} holding more than one point for which a,c,ba, c, b with a,b∈Ja, b \in J and a<c<ba < c < b always has c∈Jc \in J as well.
  2. Transport by continuity. Connectedness of XX forces connectedness of the image f(X)f(X). Applying this to a homeomorphism and its inverse shows connectedness to be a topological property.
  3. Containment. Any nonempty connected subset of XX sits inside one single component. (Lee's Prop A.39(b) omits "nonempty"; the word is ours, and it is needed, because ∅\emptyset is connected under the definition above and lies inside every component at once.)
  4. Gluing at a point. Take connected subsets of XX sharing at least one common point; their union is again connected.
  5. The decomposition. Components are pairwise disjoint and closed, and XX is their union; and if X≠∅X \neq \emptyset the components are nonempty as well. (Lee's Prop A.39(d), p. 608, asserts nonemptiness with no hypothesis on XX. The hypothesis X≠∅X \neq \emptyset is ours and is needed: for X=∅X = \emptyset the only connected subset of XX, hence the only component, is ∅\emptyset itself. The other three assertions hold for every XX.)
  6. Clopen sets. A subset of XX that is open as well as closed is a union of components.
  7. Open sets in Rn\mathbb{R}^{n}. Here the components of an open set are themselves open, and countably many at most. Hence each open U⊆RnU \subseteq \mathbb{R}^{n} splits as a countable disjoint union of regions, which for n=1n = 1 reads: an open subset of R\mathbb{R} is a countable disjoint union of open intervals.
  8. Polygonal criterion. Let U⊆RnU \subseteq \mathbb{R}^{n} be open and nonempty - the case n=2n = 2, with R2\mathbb{R}^{2} read as C\mathbb{C}, is the one complex analysis uses. Then UU is connected precisely when each pair of its points is joined by some polygon contained in UU, and the polygon may be taken with all of its sides parallel to coordinate axes.
  9. Closure. If S⊆XS \subseteq X is connected then so is S‾\overline{S}. (Ahlfors poses this as Exercise 3 on p. 58; it is the companion of item 4 and is used in the remark below.)
Idea of the proofOriginal

Connectedness is the impossibility of one kind of splitting, so each proof takes a splitting of the set in question and transports it back to a splitting of a set already known not to admit one. Transport through a continuous map gives item 2, transport through an inclusion gives items 4 and 9, and items 3, 5 and 6 need nothing more than those two once intervals are known to be connected - a fact which is where the least-upper-bound property of R\mathbb{R} enters. In Rn\mathbb{R}^{n} one further input is used: a ball is connected, because it is the union of the segments from its centre. That makes components of open sets open (item 7), and the same ball, traversed by a staircase instead of a segment, gives the polygonal criterion (item 8).

ProofAdaptedAdapted from Lee (2013), Appendix A, Prop A.39 and Exercise A.40, pp. 607-608; Ahlfors (1979), Ch. 3, §1.3, Thms 3-5, pp. 56-58, and Exercise 3, p. 58

The items are proved in the order 1, 2, 4, 9, 3, 5, 6, 7, 8, each using only the ones before it.

1, the easy direction. Let J⊆RJ \subseteq \mathbb{R} be nonempty, not a singleton, and not an interval. Having more than one point and failing the betweenness condition, it has a,b∈Ja, b \in J and c∉Jc \notin J with a<c<ba < c < b. Then J∩(−∞,c)J \cap (-\infty, c) and J∩(c,∞)J \cap (c, \infty) are open in JJ, disjoint, contain aa and bb respectively, and their union is JJ because c∉Jc \notin J. That is a separation, so JJ is disconnected. A singleton is connected, a separation requiring two nonempty disjoint pieces.

1, intervals are connected. Let JJ be an interval and suppose J=U∪VJ = U \cup V were a separation. Pick u∈Uu \in U and v∈Vv \in V; relabelling if necessary, u<vu < v, and [u,v]⊆J[u, v] \subseteq J by betweenness. Let A=U∩[u,v]A = U \cap [u, v] and s=sup⁡As = \sup A, which exists by the least-upper-bound property of R\mathbb{R} (Limits of sequences and completeness) because u∈Au \in A and vv bounds AA above; moreover s∈[u,v]⊆Js \in [u, v] \subseteq J, so s∈Us \in U or s∈Vs \in V.

Suppose s∈Vs \in V. As VV is open in JJ, there is η>0\eta > 0 with (s−η,s+η)∩J⊆V(s - \eta, s + \eta) \cap J \subseteq V. By the definition of a supremum some t∈At \in A satisfies t>s−ηt > s - \eta, and t≤st \le s, so tt lies in (s−η,s+η)∩J(s - \eta, s + \eta) \cap J and hence in VV as well as in UU - impossible, since U∩V=∅U \cap V = \emptyset.

Suppose instead s∈Us \in U. Then s≠vs \neq v, because v∈Vv \in V, so s<vs < v. Openness of UU in JJ gives η>0\eta > 0 with (s−η,s+η)∩J⊆U(s - \eta, s + \eta) \cap J \subseteq U, and the point t=min⁡(s+η/2,v)t = \min(s + \eta/2, v) satisfies s<t≤vs < t \le v and t∈Jt \in J, so t∈U∩[u,v]=At \in U \cap [u, v] = A with t>st > s, contradicting s=sup⁡As = \sup A. Both cases being impossible, no separation exists.

2, transport by continuity. Since all values of ff lie in f(X)f(X), the map f:X→f(X)f : X \to f(X) is continuous, by item 4 of "Building continuous maps" in Continuity and homeomorphism. So if f(X)=U∪Vf(X) = U \cup V were a separation, then f−1(U)f^{-1}(U) and f−1(V)f^{-1}(V) would be open in XX, disjoint because UU and VV are, nonempty because ff is onto f(X)f(X), and their union would be XX - a separation of XX. Hence f(X)f(X) is connected when XX is. Applying this to a homeomorphism and then to its inverse shows that connectedness transfers in both directions, so it is a topological property.

4, gluing at a point. Let {Si}\{S_i\} be connected subsets of XX with a point pp in all of them, and let SS be their union. Suppose S=U∪VS = U \cup V is a separation, with p∈Up \in U. For each ii, the sets U∩SiU \cap S_i and V∩SiV \cap S_i are open in SiS_i - the subspace topology of SiS_i is the same whether taken from SS or from XX - they are disjoint, their union is SiS_i, and U∩SiU \cap S_i contains pp. Connectedness of SiS_i therefore forces V∩Si=∅V \cap S_i = \emptyset. Since this holds for every ii, V=V∩S=∅V = V \cap S = \emptyset, which a separation does not allow.

9, closure. Let SS be connected and suppose S‾=U∪V\overline{S} = U \cup V is a separation. Then S=(U∩S)∪(V∩S)S = (U \cap S) \cup (V \cap S) is a union of two disjoint sets open in SS, so connectedness of SS empties one of them; say S⊆US \subseteq U and V∩S=∅V \cap S = \emptyset. Pick v∈Vv \in V. Being open in S‾\overline{S}, V=W∩S‾V = W \cap \overline{S} for some WW open in XX, and WW is a neighbourhood of vv. Since v∈S‾v \in \overline{S}, the set WW meets SS; but W∩S⊆(W∩S‾)∩S=V∩S=∅W \cap S \subseteq (W \cap \overline{S}) \cap S = V \cap S = \emptyset. So no separation exists and S‾\overline{S} is connected.

3, containment, and the existence of components. Fix x∈Xx \in X and let C(x)C(x) be the union of every connected subset of XX in which xx lies. By item 4 this union is connected, and any connected set containing it contains xx and is therefore one of the sets united, hence contained in C(x)C(x): so C(x)C(x) is a component. If a component C′C' meets C(x)C(x), item 4 makes C(x)∪C′C(x) \cup C' connected, and maximality of each forces C′=C(x)∪C′=C(x)C' = C(x) \cup C' = C(x). Now let SS be nonempty and connected and let x∈Sx \in S. Then S⊆C(x)S \subseteq C(x) by the definition of C(x)C(x), and C(x)C(x) is the only component meeting SS, by the line just proved.

5, the decomposition. Every xx lies in the component C(x)C(x), so the components cover XX and their union is XX; distinct components are disjoint, by the same line. If X≠∅X \neq \emptyset then no component is empty, and this needs the maximality in the definition rather than the line just quoted: an empty component would be a maximal connected subset, yet {x}\{x\} is a strictly larger connected subset for any x∈Xx \in X. Each component CC is closed: C‾\overline{C} is connected by item 9 and contains CC, so maximality gives C‾=C\overline{C} = C.

6, clopen sets. Let AA be open and closed and let CC be a component meeting AA. Then C=(C∩A)∪(C∖A)C = (C \cap A) \cup (C \setminus A) with both parts open in CC, because AA and X∖AX \setminus A are both open; they are disjoint, and C∩A≠∅C \cap A \neq \emptyset. Connectedness of CC gives C∖A=∅C \setminus A = \emptyset, that is C⊆AC \subseteq A. Since each point of AA lies in a component, which then meets AA, the set AA is the union of the components it meets.

7, open sets in Rn\mathbb{R}^{n}. A ball B=Br(x)B = B_r(x) is connected: for y∈By \in B the segment {(1−s)x+sy:s∈I}\{(1 - s)x + sy : s \in I\} lies in BB, since such a point is at distance s ∣y−x∣<rs\,|y - x| < r from xx, and the segment is the image of the connected set II under a continuous map, hence connected by items 1 and 2; BB is the union of these segments, all containing xx, so item 4 applies. Now let U⊆RnU \subseteq \mathbb{R}^{n} be open, CC a component of UU and x∈Cx \in C. Choose rr with Br(x)⊆UB_r(x) \subseteq U. Then C∪Br(x)C \cup B_r(x) is connected by item 4 and lies in UU, so maximality gives Br(x)⊆CB_r(x) \subseteq C, and CC is open. Each component is thus open, connected and nonempty - a region - and the components partition UU by item 5. There are countably many: each, being nonempty and open, contains a ball and hence a point with rational coordinates, the set Qn\mathbb{Q}^{n} is countable (Sets, functions and countability), and distinct components are disjoint, so picking one rational point in each injects the set of components into Qn\mathbb{Q}^{n}. For n=1n = 1 a component JJ is open, connected and nonempty, so not a singleton, so an interval by item 1; writing a=inf⁡Ja = \inf J and b=sup⁡Jb = \sup J in the extended reals, betweenness gives (a,b)⊆J⊆[a,b](a, b) \subseteq J \subseteq [a, b], and openness excludes the endpoints, since a ball about aa inside JJ would contain points below inf⁡J\inf J. Hence J=(a,b)J = (a, b).

8, the polygonal criterion, sufficiency. A polygon is a union of finitely many segments, consecutive ones sharing an endpoint; each segment is connected as in item 7, and item 4 applied to one joint at a time makes the polygon connected. If every point of UU is joined to a fixed a∈Ua \in U by a polygon in UU, then UU is the union of those polygons, all containing aa, hence connected by item 4. In particular the condition of the statement, which gives polygons between all pairs, implies connectedness.

8, the polygonal criterion, necessity. Let UU be open, nonempty and connected, fix a∈Ua \in U, and let AA be the set of points of UU reachable from aa by a polygon inside UU with each side parallel to some coordinate axis; a∈Aa \in A by the degenerate polygon. The key observation is that a ball contains the staircase from its centre to any one of its points, and likewise the staircase from any one of its points to its centre. Indeed let Br(x)⊆UB_r(x) \subseteq U and y∈Br(x)y \in B_r(x), and write dj=yj−xjd_j = y_j - x_j. The staircase from the centre xx out to yy passes through x(0)=xx^{(0)} = x and x(k)=x+∑j≤kdjejx^{(k)} = x + \sum_{j \le k} d_j e_j, so that x(n)=yx^{(n)} = y and each side is parallel to a coordinate axis. A point of its kk-th side is x+∑j<kdjej+σdkekx + \sum_{j < k} d_j e_j + \sigma d_k e_k with σ∈[0,1]\sigma \in [0, 1], and its distance from xx is

(∑j<kdj2+σ2dk2)1/2≤(∑jdj2)1/2=∣y−x∣<r.\Bigl( \sum_{j < k} d_j^{2} + \sigma^{2} d_k^{2} \Bigr)^{1/2} \le \Bigl( \sum_{j} d_j^{2} \Bigr)^{1/2} = |y - x| < r .

Running the same construction from yy in towards the centre gives the staircase through y(0)=yy^{(0)} = y and y(k)=y−∑j≤kdjejy^{(k)} = y - \sum_{j \le k} d_j e_j, a point of whose kk-th side is y−∑j<kdjej−σdkeky - \sum_{j < k} d_j e_j - \sigma d_k e_k; this point agrees with xx in the coordinates j<kj < k, differs from xx by (1−σ)dk(1 - \sigma) d_k in coordinate kk and by djd_j in each coordinate j>kj > k, so its distance from xx is

((1−σ)2dk2+∑j>kdj2)1/2≤(∑jdj2)1/2=∣y−x∣<r\Bigl( (1 - \sigma)^{2} d_k^{2} + \sum_{j > k} d_j^{2} \Bigr)^{1/2} \le \Bigl( \sum_{j} d_j^{2} \Bigr)^{1/2} = |y - x| < r

as well. Both staircases therefore lie in Br(x)⊆UB_r(x) \subseteq U. The observation must be kept to the centre: the staircase between two points of a ball neither of which is its centre can leave it, as the points u=(0,0.99)u = (0, 0.99) and v=(0.99,0)v = (0.99, 0) of B1(0)⊆R2B_1(0) \subseteq \mathbb{R}^{2} show: the staircase from uu to vv passes through u+(v1−u1)e1=(0.99,0.99)u + (v_1 - u_1) e_1 = (0.99, 0.99), of norm 0.992=1.40007…>10.99\sqrt{2} = 1.40007\ldots > 1. Only the centre-to-point case is needed below, and in both of its orientations.

Consequently AA is open: if x∈Ax \in A, pick rr with Br(x)⊆UB_r(x) \subseteq U and append, to a polygon from aa to xx, the staircase from the centre xx out to any y∈Br(x)y \in B_r(x); so Br(x)⊆AB_r(x) \subseteq A. And U∖AU \setminus A is open: if x∈U∖Ax \in U \setminus A, pick rr with Br(x)⊆UB_r(x) \subseteq U; were some y∈Br(x)y \in B_r(x) in AA, the polygon from aa to yy followed by the staircase from yy in to the centre xx would place xx in AA. So U=A∪(U∖A)U = A \cup (U \setminus A) with both parts open in UU and disjoint; A≠∅A \neq \emptyset, so connectedness forces U∖A=∅U \setminus A = \emptyset. Any two points p,q∈Up, q \in U are therefore joined through aa by an axis-parallel polygon in UU. □\square

Definition(Paths, path-connectedness, local path-connectedness)AdaptedAdapted from Lee (2013), Appendix A, p. 608

Let I=[0,1]I = [0, 1] carry its Euclidean topology. A path from pp to qq in a space XX means an element f∈C(I,X)f \in C(I, X) whose endpoint values are f(0)=pf(0) = p and f(1)=qf(1) = q. Say XX is path-connected when some path in XX joins pp to qq, whichever pair p,q∈Xp, q \in X is named. A maximal path-connected subset of XX is called a path component; the path components partition XX.

Say XX is locally path-connected when its topology admits a basis all of whose members are path-connected.

Definition(Path-connectedness against connectedness)AdaptedAdapted from Lee (2013), Appendix A, Props A.41 and A.43, p. 608
  1. One implication is free. A path-connected space is connected.
  2. The two analogues of items 2 and 4 above. Continuity carries path-connectedness forward: if XX is path-connected so is f(X)f(X). And a family of path-connected subsets with a point common to all of them has path-connected union.
  3. When the implication reverses. Suppose XX is locally path-connected. Then its components are open subsets of XX; its path components are identical with its components; connectedness and path-connectedness of XX amount to the same thing; and local path-connectedness passes to every open subset of XX.

Open subsets of Rn\mathbb{R}^{n} are locally path-connected, since the open balls contained in such a set form a basis for it and a ball is convex, hence path-connected. For an open U⊆RnU \subseteq \mathbb{R}^{n} - the only situation most applications present - "connected" and "path-connected" may therefore be used interchangeably. Item 1 does not reverse for arbitrary spaces; the remark below exhibits the standard counterexample. (This paragraph is ours: Lee states items 1-3 but not the Euclidean consequence.)

Idea of the proofOriginal

A path is a continuous map defined on an interval, and an interval is connected, so its image is connected: that single observation turns a path-connected space into a union of connected sets through a fixed point and proves item 1. Item 2 repeats the connected arguments with paths in place of separations, the one new ingredient being concatenation, which is continuous by the gluing lemma. Under local path-connectedness each path component swallows a basis neighbourhood of each of its points, so it is open; its complement is a union of the other path components and so is open too, making each path component clopen - and a connected set cannot contain a nonempty clopen proper piece.

ProofAdaptedAdapted from Lee (2013), Appendix A, Props A.41 and A.43 with Exercises A.42 and A.44, p. 608

Throughout, concatenation means the product path of the next definition block: for paths ff from xx to pp and gg from pp to yy, the map sending ss to f(2s)f(2s) on [0,1/2][0, 1/2] and to g(2s−1)g(2s - 1) on [1/2,1][1/2, 1]. The two formulas agree at s=1/2s = 1/2, both giving pp, and the two halves of II are closed and cover it, so the gluing lemma of Continuity and homeomorphism makes the concatenation a continuous path from xx to yy.

1. An empty space is connected, so let XX be path-connected and nonempty and fix p∈Xp \in X. For each q∈Xq \in X choose a path fqf_q from pp to qq. Its image fq(I)f_q(I) is connected, by items 1 and 2 of the previous statement, and contains both pp and qq. So XX is the union of the sets fq(I)f_q(I), all of which contain pp, and item 4 of that statement makes XX connected.

2, images. Let XX be path-connected and let f(x),f(y)∈f(X)f(x), f(y) \in f(X). A path gg from xx to yy in XX gives the path f∘gf \circ g from f(x)f(x) to f(y)f(y), continuous as a composition, and continuous into the subspace f(X)f(X) by item 4 of "Building continuous maps" cited above. So f(X)f(X) is path-connected.

2, unions. Let {Si}\{S_i\} be path-connected subsets with a common point pp, and let x∈Six \in S_i, y∈Sjy \in S_j. Join xx to pp by a path in SiS_i and pp to yy by a path in SjS_j; both are paths in the union, since composing with the inclusion keeps them continuous, and their concatenation joins xx to yy inside the union.

3(a), path components are open. Let PP be a path component and x∈Px \in P. Local path-connectedness gives a basis of path-connected open sets, so some basis element BB satisfies x∈Bx \in B. Then P∪BP \cup B is path-connected by the previous paragraph, xx being common to both, and maximality of PP gives B⊆PB \subseteq P. So PP contains an open set around each of its points and is open.

3(b), path components are components. Let PP be a path component. If X=∅X = \emptyset then P=∅P = \emptyset is also the one component of XX and there is nothing to prove, so assume X≠∅X \neq \emptyset; then P≠∅P \neq \emptyset, since an empty PP would not be a maximal path-connected subset - {x}\{x\} is path-connected for any x∈Xx \in X. Now PP is path-connected, hence connected by item 1, hence contained in a single component CC by item 3 of the previous statement. Next, a path component QQ meeting CC lies inside CC: being nonempty and connected, QQ sits inside one component by item 3 of that statement, and that component meets CC, so it is CC, distinct components being disjoint. Since the path components cover XX, the component CC is therefore the union of the path components it meets, each of which is open by 3(a). Thus PP is open in CC, and so is the union of the other path components meeting CC, which is exactly C∖PC \setminus P. So PP is nonempty and is simultaneously open and closed in CC, and connectedness of CC gives P=CP = C.

3(c), connected means path-connected. One direction is item 1. Conversely let XX be connected and nonempty. By item 3 of the previous statement XX lies inside one component, so XX is that component, and by 3(b) it is a single path component, that is path-connected. (For X=∅X = \emptyset both properties hold vacuously.)

3(d), open subsets. Let B\mathcal{B} be a basis of path-connected open sets for XX and let V⊆XV \subseteq X be open. Then {B∈B:B⊆V}\{B \in \mathcal{B} : B \subseteq V\} is a basis for the subspace topology of VV: if WW is open in VV then WW is open in XX, because VV is, so each x∈Wx \in W has a basis element BB with x∈B⊆W⊆Vx \in B \subseteq W \subseteq V. Its members are path-connected, so VV is locally path-connected.

The Euclidean consequence. Let U⊆RnU \subseteq \mathbb{R}^{n} be open. The balls contained in UU form a basis for UU, by the pointwise test for a basis, and each ball is path-connected: for x,y∈Br(z)x, y \in B_r(z) the map s↦(1−s)x+sys \mapsto (1 - s)x + sy is continuous and its values lie in Br(z)B_r(z) by convexity. So UU is locally path-connected and 3(c) applies to it and, by 3(d), to each of its open subsets. □\square

Definition(Homotopy, path homotopy and the fundamental group)AdaptedAdapted from Lee (2013), Appendix A, p. 603 and pp. 612-614

The topology on a product. Deformations are maps on X×IX \times I, so fix the topology first. For topological spaces X1,…,XkX_1, \dots, X_k the product topology on X1×⋯×XkX_1 \times \dots \times X_k is the one whose basis is the collection of boxes U1×⋯×UkU_1 \times \dots \times U_k with each UiU_i open in XiX_i (Lee, p. 603); a finite product carries this topology throughout, here and in item 5 of the statement below. On I×I⊆R2I \times I \subseteq \mathbb{R}^{2} it is the Euclidean subspace topology.

Deforming one map into another. Given F0,F1∈C(X,Y)F_0, F_1 \in C(X, Y), a homotopy carrying F0F_0 to F1F_1 means a member H∈C(X×I,Y)H \in C(X \times I, Y) whose two end slices recover them:

H(x,0)=F0(x)andH(x,1)=F1(x),x∈X.H(x, 0) = F_0(x) \quad\text{and}\quad H(x, 1) = F_1(x), \qquad x \in X .

Write F0≃F1F_0 \simeq F_1 when such an HH exists. If some A⊆XA \subseteq X is held fixed throughout the deformation, meaning H(x,t)H(x, t) is independent of tt for x∈Ax \in A, the two maps are homotopic relative to AA.

Homotopy equivalence. A map F∈C(X,Y)F \in C(X, Y) is a homotopy equivalence when some G∈C(Y,X)G \in C(Y, X) satisfies both F∘G≃idYF \circ G \simeq \mathrm{id}_Y and G∘F≃idXG \circ F \simeq \mathrm{id}_X; such a GG is a homotopy inverse for FF, and XX and YY are then homotopy equivalent (Lee, p. 614). Every homeomorphism is a homotopy equivalence, its inverse serving as a homotopy inverse, but a homotopy equivalence need not be injective or surjective.

The case that matters: paths. Paths f0,f1f_0, f_1 in XX are path-homotopic, written f0∼f1f_0 \sim f_1, when they are homotopic relative to the two-point set {0,1}\{0, 1\}. Unpacked, this asks for H∈C(I×I,X)H \in C(I \times I, X) obeying, for all s,t∈Is, t \in I,

H(s,0)=f0(s),H(s,1)=f1(s),H(0,t)=f0(0),H(1,t)=f0(1).H(s, 0) = f_0(s), \quad H(s, 1) = f_1(s), \qquad H(0, t) = f_0(0), \quad H(1, t) = f_0(1) .

The last two conditions pin the endpoints down, so only paths sharing a starting point and sharing a finishing point can be path-homotopic. On the paths running from pp to qq this is an equivalence relation, and [f][f] denotes the class - the path class - of ff.

Composing paths. When ff ends where gg begins, f(1)=g(0)f(1) = g(0), their product runs through ff and then gg, each at twice speed:

(f⋅g)(s)={f(2s),0≤s≤12,g(2s−1),12≤s≤1.(f \cdot g)(s) = \begin{cases} f(2s), & 0 \le s \le \tfrac12, \\ g(2s - 1), & \tfrac12 \le s \le 1 . \end{cases}

Replacing ff or gg by a path-homotopic one replaces f⋅gf \cdot g by a path-homotopic one, so [f]⋅[g]:=[f⋅g][f] \cdot [g] := [f \cdot g] makes sense on classes. Associativity holds for classes, though not for the paths themselves.

The fundamental group. Fix q∈Xq \in X and call a path with f(0)=f(1)=qf(0) = f(1) = q a loop based at qq. Collect the path classes of all such loops and give the collection the product just defined; the result is a group in the sense of Groups and subgroups, written π1(X,q)\pi_1(X, q) and called the fundamental group of XX at qq. Its neutral element is [cq][c_q], where cq(s)≡qc_q(s) \equiv q stays put, and [f]−1=[fˉ][f]^{-1} = [\bar f] for the retraced path fˉ(s)=f(1−s)\bar f(s) = f(1 - s). Changing the base point inside a path-connected XX changes π1(X,q)\pi_1(X, q) only up to isomorphism, so one may speak of π1(X)\pi_1(X) there.

Definition(Simply connected)AdaptedAdapted from Lee (2013), Appendix A, p. 613 and Exercise A.61

Declare XX to be simply connected when two things hold: XX is path-connected, and π1(X,q)\pi_1(X, q) reduces to its neutral element alone for one base point qq - hence, by the base-point remark above, for all of them.

Both halves are needed, and neither reformulation below may be used on its own as a definition. Assume XX is nonempty and path-connected. (The hypothesis X≠∅X \neq \emptyset is ours, as in item 5 of "Properties of connected spaces" above: Lee's gloss on p. 613 and his Exercise A.61 name path-connectedness and nothing further. It is needed, because ∅\emptyset is path-connected - there is no pair of points to join - and satisfies both bullets below vacuously, yet is not simply connected: the definition demands a base point q∈Xq \in X at which π1(X,q)\pi_1(X, q) is trivial, and ∅\emptyset supplies none.) Then each of the following is equivalent to XX being simply connected:

  • every loop in XX can be deformed, through loops in XX based at the same point, to the stationary loop at that point; equivalently, each loop lies in the path class of a constant (Lee's gloss on the definition, p. 613); or
  • any two paths of XX that start together and finish together are path-homotopic (Lee's Exercise A.61, p. 613, which states the path-connectedness hypothesis explicitly).

Dropping path-connectedness makes both bullets strictly weaker than simple connectivity; the remark below gives the counterexample.

Definition(Invariance, and the standard examples)AdaptedAdapted from Lee (2013), Appendix A, Example A.8, p. 599, Props A.64-A.65, p. 614, Exercise A.67, p. 614, Props A.68-A.69, p. 614, Thm A.71, p. 615; Ahlfors (1979), Ch. 8, §1.5, p. 294
  1. A continuous map F:X→YF : X \to Y induces a group homomorphism (Homomorphisms and quotient groups) F∗:π1(X,q)→π1(Y,F(q))F_* : \pi_1(X, q) \to \pi_1(Y, F(q)), F∗[f]=[F∘f]F_*[f] = [F \circ f], with (G∘F)∗=G∗∘F∗(G \circ F)_* = G_* \circ F_* and (idX)∗=id(\mathrm{id}_X)_* = \mathrm{id}.
  2. If FF is a homeomorphism then F∗F_* is an isomorphism, so homeomorphic spaces have isomorphic fundamental groups; being simply connected is a topological property. The conclusion about F∗F_* survives the weaker hypothesis that FF is a homotopy equivalence: that is Lee's Thm A.71, p. 615, and it speaks of F∗F_* alone. Path-connectedness transfers across a homotopy equivalence too, in either direction; that half is not in Lee's theorem and is proved below. The two together make simple connectivity, and not just the group, an invariant of homotopy equivalence; that is how item 6 and the examples below use this item.
  3. A subset U⊆RnU \subseteq \mathbb{R}^{n} is star-shaped if there is c∈Uc \in U such that for every x∈Ux \in U the segment from cc to xx lies in UU. Every star-shaped set is simply connected; in particular every nonempty convex set, every open ball, every half-space and all of Rn\mathbb{R}^{n} are simply connected. Nonemptiness cannot be dropped, and the reason is the second half of the definition rather than the first: ∅\emptyset is convex and is path-connected, vacuously, there being no pair of points to join, but simple connectivity asks in addition for a base point q∈Xq \in X at which π1(X,q)\pi_1(X, q) is trivial, and ∅\emptyset supplies none. So ∅\emptyset is not simply connected. The star-shaped hypothesis carries nonemptiness with it, since a centre c∈Uc \in U is required.
  4. Spheres. For an integer n≥0n \ge 0 let
Sn={x∈Rn+1:∣x∣=1}S^{n} = \{ x \in \mathbb{R}^{n+1} : |x| = 1 \}

be the unit nn-sphere with its Euclidean subspace topology (Lee, p. 599), so that S1S^{1} is the unit circle in R2\mathbb{R}^{2} and S2S^{2} the unit sphere in R3\mathbb{R}^{3}. Based at (1,0)(1, 0), the circle has π1(S1,(1,0))\pi_1(S^{1}, (1, 0)) infinite cyclic, a generator being the class of the once-round loop ω(s)=(cos⁡2πs,sin⁡2πs)\omega(s) = (\cos 2\pi s, \sin 2\pi s). So π1(S1)≅Z\pi_1(S^{1}) \cong \mathbb{Z}, and S1S^{1} is not simply connected. Spheres of higher dimension are: SnS^{n} is simply connected for every n>1n > 1. 5. The fundamental group of a finite product is the product of the fundamental groups, with no connectedness hypothesis on the factors: for spaces X1,…,XkX_1, \dots, X_k carrying the product topology and base points qi∈Xiq_i \in X_i,

π1(X1×⋯×Xk,(q1,…,qk))≅π1(X1,q1)×⋯×π1(Xk,qk),\pi_1\bigl(X_1 \times \dots \times X_k, (q_1, \dots, q_k)\bigr) \cong \pi_1(X_1, q_1) \times \dots \times \pi_1(X_k, q_k) ,

the isomorphism sending [f][f] to ((p1)∗[f],…,(pk)∗[f])\bigl((p_1)_*[f], \dots, (p_k)_*[f]\bigr), where pip_i is the ii-th projection. On the right-hand side G1×⋯×GkG_1 \times \dots \times G_k denotes the direct product of groups G1,…,GkG_1, \dots, G_k: the Cartesian product of the underlying sets, multiplied slot by slot,

(g1,…,gk) (h1,…,hk)=(g1h1,…,gkhk),(g_1, \dots, g_k)\,(h_1, \dots, h_k) = (g_1 h_1, \dots, g_k h_k) ,

which is a group, its neutral element being the tuple of the neutral elements and the inverse of a tuple being the tuple of the inverses, each axiom holding in the product because it holds in every slot. (Lee writes the product group without comment; spelling it out is ours, neither group prerequisite covering direct products.) (The base-point-free form π1(X1×⋯×Xk)≅π1(X1)×⋯×π1(Xk)\pi_1(X_1 \times \dots \times X_k) \cong \pi_1(X_1) \times \dots \times \pi_1(X_k) is licensed only when every factor is path-connected, since that is when the notation π1(X)\pi_1(X) is defined.) 6. The inclusion Sn−1↪Rn∖{0}S^{n-1} \hookrightarrow \mathbb{R}^{n} \setminus \{0\} is a homotopy equivalence, with homotopy inverse x↦x/∣x∣x \mapsto x/|x|. Hence π1(R2∖{0})≅Z\pi_1(\mathbb{R}^{2} \setminus \{0\}) \cong \mathbb{Z}, while Rn∖{0}\mathbb{R}^{n} \setminus \{0\} is simply connected for n≥3n \ge 3.

Idea of the proofOriginal

Item 1 is bookkeeping: composing a loop with FF turns path homotopies into path homotopies and respects the product of paths, so the assignment is well defined on classes and multiplicative. Item 2 then falls out of functoriality, since the maps induced by a homeomorphism and by its inverse compose to the identity in both orders; for a homotopy equivalence the isomorphism is quoted, but its companion, the transfer of path-connectedness, is proved here by riding the homotopy track t↦H(x,t)t \mapsto H(x, t) from a point to its image under the round trip G∘FG \circ F. Item 3 is the straight-line contraction towards the centre of a star-shaped set, which fixes the base point provided the base point is taken to be the centre. Item 5 rests on the characteristic property of the product topology: a loop in a product is nothing but a tuple of loops, and a tuple of path homotopies is nothing but a path homotopy in the product. Item 6 is two explicit maps and one straight-line homotopy that never passes through the origin.

ProofAdaptedAdapted from Lee (2013), Appendix A, Prop A.23(a) with Exercise A.24, p. 603, Prop A.62 and Exercise A.63, p. 613, Props A.64-A.65 with Exercise A.66, p. 614, Exercise A.67, p. 614, Prop A.69 with Exercise A.70, p. 614

1. If ff is a loop at qq then F∘fF \circ f is continuous, being a composition, and (F∘f)(0)=(F∘f)(1)=F(q)(F \circ f)(0) = (F \circ f)(1) = F(q), so it is a loop at F(q)F(q). If HH is a path homotopy from ff to f′f' then F∘HF \circ H is continuous and its four boundary conditions are those of HH with FF applied, so it is a path homotopy from F∘fF \circ f to F∘f′F \circ f'; hence F∗[f]=[F∘f]F_*[f] = [F \circ f] depends only on the class. It is multiplicative because composition respects the defining formula of the product: F∘(f⋅g)F \circ (f \cdot g) sends ss to F(f(2s))F(f(2s)) on [0,1/2][0, 1/2] and to F(g(2s−1))F(g(2s - 1)) on [1/2,1][1/2, 1], which is (F∘f)⋅(F∘g)(F \circ f) \cdot (F \circ g). So F∗F_* is a homomorphism. Finally (G∘F)∘f=G∘(F∘f)(G \circ F) \circ f = G \circ (F \circ f) gives (G∘F)∗=G∗∘F∗(G \circ F)_* = G_* \circ F_*, and idX∘f=f\mathrm{id}_X \circ f = f gives (idX)∗=id(\mathrm{id}_X)_* = \mathrm{id}.

2, the homeomorphism case. Let FF be a homeomorphism. Applying item 1 twice, (F−1)∗∘F∗=(F−1∘F)∗=(idX)∗=id(F^{-1})_* \circ F_* = (F^{-1} \circ F)_* = (\mathrm{id}_X)_* = \mathrm{id} on π1(X,q)\pi_1(X, q), and F∗∘(F−1)∗=idF_* \circ (F^{-1})_* = \mathrm{id} on π1(Y,F(q))\pi_1(Y, F(q)). So F∗F_* is a homomorphism with a two-sided inverse, hence an isomorphism, and homeomorphic spaces have isomorphic fundamental groups. Simple connectivity is then a topological property: a homeomorphism carries path-connected spaces to path-connected spaces, by item 2 of the previous statement applied to FF and to F−1F^{-1}, and it carries a trivial fundamental group to a trivial one.

2, the homotopy-equivalence case. That F∗F_* is still an isomorphism when FF is only a homotopy equivalence is quoted, not proved here; see the note below. The other half of the invariance, path-connectedness, is not part of that quoted theorem, and the argument for it is ours. Let F:X→YF : X \to Y be a homotopy equivalence with homotopy inverse GG, let H∈C(X×I,X)H \in C(X \times I, X) be a homotopy from idX\mathrm{id}_X to G∘FG \circ F, and suppose YY is path-connected. For x∈Xx \in X the slice t↦H(x,t)t \mapsto H(x, t) is continuous, being HH composed with t↦(x,t)t \mapsto (x, t), whose components t↦xt \mapsto x and t↦tt \mapsto t are continuous (the criterion for continuity into a finite product is proved in item 5 below); it is therefore a path in XX from xx to G(F(x))G(F(x)). Now take x0,x1∈Xx_0, x_1 \in X. Path-connectedness of YY gives a path γ\gamma from F(x0)F(x_0) to F(x1)F(x_1), and G∘γG \circ \gamma is then a path in XX from G(F(x0))G(F(x_0)) to G(F(x1))G(F(x_1)). Concatenating the slice at x0x_0, this path, and the reverse of the slice at x1x_1 joins x0x_0 to x1x_1, so XX is path-connected. Exchanging the roles of FF and GG, which are homotopy inverses of each other, gives the converse direction. Hence homotopy equivalent spaces are path-connected together and, with the quoted isomorphism, simply connected together.

3. Let U⊆RnU \subseteq \mathbb{R}^{n} be star-shaped with centre cc. Path-connected: for x,y∈Ux, y \in U the segments from xx to cc and from cc to yy lie in UU by hypothesis, and are the images of II under the continuous maps s↦(1−s)x+scs \mapsto (1 - s)x + sc and s↦(1−s)c+sys \mapsto (1 - s)c + sy; their concatenation is a path from xx to yy in UU. Trivial fundamental group at cc: let ff be a loop in UU based at cc and set

H(s,t)=(1−t)f(s)+tc,(s,t)∈I×I.H(s, t) = (1 - t) f(s) + t c , \qquad (s, t) \in I \times I .

Each value lies on the segment from f(s)∈Uf(s) \in U to cc, hence in UU; HH is continuous, being built from the continuous ff by scalar multiplication and addition. Its boundary values are H(s,0)=f(s)H(s, 0) = f(s), H(s,1)=cH(s, 1) = c, and H(0,t)=H(1,t)=(1−t)c+tc=cH(0, t) = H(1, t) = (1 - t)c + tc = c, so HH is a path homotopy from ff to the constant loop at cc. Hence π1(U,c)\pi_1(U, c) consists of the identity alone, and UU is simply connected; as recorded in the definition, path-connectedness then makes the same true at every other base point. A nonempty convex set is star-shaped about each of its points, so the open balls, the half-spaces and Rn\mathbb{R}^{n} itself are covered by this.

5, continuity into a product. The projection pip_i is continuous, since pi−1(Ui)p_i^{-1}(U_i) is the box with UiU_i in slot ii and the whole factor in every other slot. Conversely, if every pi∘Fp_i \circ F is continuous then for a basis box the identity F−1(U1×⋯×Uk)=⋂i=1k(pi∘F)−1(Ui)F^{-1}(U_1 \times \dots \times U_k) = \bigcap_{i=1}^{k} (p_i \circ F)^{-1}(U_i) exhibits the inverse image as a finite intersection of open sets, and testing inverse images on a basis suffices by item 6 of the equivalence statement in Continuity and homeomorphism. So a map into a finite product is continuous exactly when its components are. This is the characteristic property of the product topology, Lee's Prop A.23(a), p. 603, which he leaves as Exercise A.24.

5, the isomorphism. P[f]=((p1)∗[f],…,(pk)∗[f])P[f] = \bigl((p_1)_*[f], \dots, (p_k)_*[f]\bigr) is a homomorphism, each (pi)∗(p_i)_* being one by item 1 and the group operation of a direct product being componentwise. It is surjective: given loops fif_i at qiq_i, the map f(s)=(f1(s),…,fk(s))f(s) = (f_1(s), \dots, f_k(s)) is continuous by the previous paragraph, is a loop at (q1,…,qk)(q_1, \dots, q_k), and satisfies pi∘f=fip_i \circ f = f_i, so P[f]=([f1],…,[fk])P[f] = ([f_1], \dots, [f_k]). Its kernel is trivial: if every pi∘fp_i \circ f is path-homotopic to the constant loop at qiq_i by some HiH_i, then H=(H1,…,Hk)H = (H_1, \dots, H_k) is continuous by the previous paragraph and satisfies the four boundary conditions componentwise, so it is a path homotopy from ff to the constant loop at (q1,…,qk)(q_1, \dots, q_k). A homomorphism with trivial kernel is injective (Homomorphisms and quotient groups), so PP is an isomorphism.

6. The map r(x)=x/∣x∣r(x) = x/|x| is continuous on Rn∖{0}\mathbb{R}^{n} \setminus \{0\} and takes values in Sn−1S^{n-1}, and r∘ι=idSn−1r \circ \iota = \mathrm{id}_{S^{n-1}} because ∣x∣=1|x| = 1 on the sphere. For the other composite, put

H(x,t)=(1−t)x+tx∣x∣=((1−t)+t∣x∣)x.H(x, t) = (1 - t) x + t \frac{x}{|x|} = \Bigl( (1 - t) + \frac{t}{|x|} \Bigr) x .

The scalar in brackets is positive for every t∈It \in I: both terms are nonnegative, and they cannot both vanish, since t=0t = 0 makes the first equal to 11 and t>0t > 0 makes the second positive. So H(x,t)H(x, t) is a nonzero multiple of xx and lies in Rn∖{0}\mathbb{R}^{n} \setminus \{0\}; HH is continuous there, and H(x,0)=xH(x, 0) = x while H(x,1)=ι(r(x))H(x, 1) = \iota(r(x)). Hence ι∘r≃id\iota \circ r \simeq \mathrm{id} and ι\iota is a homotopy equivalence with homotopy inverse rr.

For n≥2n \ge 2 the sphere Sn−1S^{n-1} is path-connected: for n=2n = 2 it is the image of II under the loop ω\omega of item 4, which runs once round the whole circle, so item 2 of the path-connectedness statement applies; for n≥3n \ge 3 item 4 says Sn−1S^{n-1} is simply connected, which includes path-connectedness. By the homotopy-equivalence paragraph above, Rn∖{0}\mathbb{R}^{n} \setminus \{0\} is then path-connected as well, so the notation π1(Rn∖{0})\pi_1(\mathbb{R}^{n} \setminus \{0\}) is licensed. With that, the two consequences drawn in the statement follow: item 4 and the quoted isomorphism half of item 2 give π1(R2∖{0})≅π1(S1)≅Z\pi_1(\mathbb{R}^{2} \setminus \{0\}) \cong \pi_1(S^{1}) \cong \mathbb{Z}, and for n≥3n \ge 3 they give a trivial π1(Rn∖{0})\pi_1(\mathbb{R}^{n} \setminus \{0\}), which with path-connectedness is simple connectivity. □\square

Note(What this unit quotes without proving)AdaptedAdapted from Lee (2013), Appendix A, p. 613, Prop A.68 and Exercise A.70, p. 614, Thm A.71, p. 615, 'Covering Maps' with Props A.77 and A.79-A.80, pp. 615-616; Ahlfors (1979), Ch. 6, §1, p. 229, Ch. 8, §1.6, pp. 296-297

Four facts used above are stated here on the authority of their sources, their proofs needing machinery this chapter does not develop.

  • The fundamental groups of spheres (item 4). Lee states both halves as Prop A.68, p. 614, and leaves their proofs as Exercise A.70 on the same page, so no proof is to be found there. The two halves are proved by different routes. For S1S^{1} the usual route is the covering-space theory Lee takes up immediately afterwards, pp. 615-616: lift loops through the covering of the circle by the line, t↦(cos⁡2πt,sin⁡2πt)t \mapsto (\cos 2\pi t, \sin 2\pi t), and count how far the lift advances, the path-lifting and monodromy properties of his Prop A.77, p. 616, being what make the count well defined and unchanged by path homotopy. For SnS^{n} with n>1n > 1 covering spaces are the wrong tool, since simple connectivity of a space is never what those results produce about that space. Lee's Prop A.79, p. 616, takes XX simply connected as its hypothesis and concludes that every covering map onto XX is a homeomorphism, so applying it to SnS^{n} would presuppose exactly what is wanted. His Prop A.80, p. 616, hypothesises something different and weaker - that XX be connected and locally simply connected, meaning it has a basis of simply connected open sets - and its conclusion is that a simply connected covering space of XX exists; there simple connectivity is a property of the cover, not of the base, so A.80 says nothing about whether SnS^{n} itself is simply connected. The standard arguments instead deform a given loop until it misses some point pp of the sphere, after which it lives in Sn∖{p}S^{n} \setminus \{p\}, homeomorphic to Rn\mathbb{R}^{n} by stereographic projection from pp and so simply connected by item 3; the deformation is where n>1n > 1 is used, and it fails for n=1n = 1, where the once-round loop is onto. An alternative route covers SnS^{n} by two open caps, each simply connected and with path-connected intersection when n>1n > 1, and applies the Seifert-van Kampen theorem, which lies outside this handbook's library.
  • Homotopy invariance of the fundamental group (the isomorphism named in item 2 and used again in item 6). This is Lee's Thm A.71, p. 615, which he too states without proof, referring to the topology texts cited at the head of his appendix. It is only about the induced map on π1\pi_1; the accompanying transfer of path-connectedness, which the uses of item 2 also need, is proved above and is ours.
  • That π1(X,q)\pi_1(X, q) is a group, and that the groups at different base points of a path-connected space are isomorphic (the definition of the fundamental group above). Lee, p. 613. The group axioms need the associativity and inverse properties of path classes, and the base-point statement needs the isomorphism built from a path joining the two points.
  • The equivalence, for a plane region, of Ahlfors's connected-complement condition with triviality of the fundamental group (the remark on conventions below). Ahlfors closes this circle on pp. 296-297, and the direction the remark needs - trivial fundamental group forces the complement in the extended plane to be connected - is the one he gets from the monodromy theorem of Ch. 8, §1.6: if a bounded component of the complement existed, a logarithm about a point of it would fail to be single-valued in the region, which monodromy forbids once the fundamental group is trivial. The remaining link of his three-way equivalence, connected complement against homeomorphic to a disk, is the Riemann mapping theorem of Ch. 6, §1, p. 229.
Remark(Why simple connectivity is the hypothesis for potentials and contour integrals)AdaptedAdapted from Ahlfors (1979), Ch. 4, §4.2, pp. 138-139; Riley, Hobson & Bence (2006), §11.2, pp. 383-384; Arfken, Weber & Harris (2013), §3.8, p. 164

Ahlfors (p. 138) introduces simple connectivity with precisely this motivation: it is the class of regions in which Cauchy's theorem is "universally valid", that is, valid for every closed curve in the region rather than only for some. On a region that is not simply connected the theorem fails in a controlled way, and the obstruction is visible in one function: for a∉Ωa \notin \Omega the function 1/(z−a)1/(z - a) is analytic on Ω\Omega while ∮γdz/(z−a)=2πi n(γ,a)\oint_\gamma dz/(z - a) = 2\pi i\, n(\gamma, a), where n(γ,a)n(\gamma, a) counts how many times the closed curve γ\gamma winds around aa; that integral is nonzero as soon as γ\gamma encircles aa (Ahlfors, pp. 140-141). See Cauchy's theorem and Contour integrals.

The same condition appears on the real side. Riley, Hobson and Bence (pp. 383-384) introduce the connectivity of a region exactly because scalar and vector fields are defined on regions and the integral theorems depend on it, and Arfken, Weber and Harris (p. 164) state Gauss's theorem for a simply connected region of R3\mathbb{R}^{3}, remarking there that a region with a hole in it, a doughnut say, is not simply connected. What the condition buys in vector calculus is the existence of potentials: on a simply connected open subset of R3\mathbb{R}^{3} a C1C^{1} field with vanishing curl is the gradient of a single-valued function, whereas on an annular region it need not be. See Line integrals and conservative fields, Stokes' theorem and Green's theorem in the plane and Helmholtz decomposition and potentials, where these statements are made precise.

Remark(Both halves of simple connectivity are needed)Original

Neither bullet in the definition of simple connectivity implies path-connectedness, so neither may stand alone. Let

X={z∈C:∣z∣<1}∪{z∈C:∣z−3∣<1}X = \{z \in \mathbb{C} : |z| < 1\} \cup \{z \in \mathbb{C} : |z - 3| < 1\}

be two disjoint open disks with the subspace topology. Every loop in XX lies in one disk, which is convex and hence simply connected, so the loop contracts there; likewise two paths of XX with the same start and the same end lie in one disk and are path-homotopic in it. Both bullets therefore hold, while XX is not path-connected - no path joins 00 to 33, since its image would be a connected subset of XX meeting both disks, and the disks separate XX. So XX is not simply connected, and π1(X,0)\pi_1(X, 0) being trivial says nothing about XX as a whole. This is why Lee hypothesises a path-connected space in Exercise A.61 (Lee (2013), Exercise A.61, p. 613).

Remark(Connected does not imply path-connected)AdaptedAdapted from Ahlfors (1979), Ch. 3, §1.3, Exercises 3-4, p. 58

Let

A={(0,y):∣y∣≤1},B={(x,sin⁡(1/x)):x>0},X=A∪B⊆R2A = \{(0, y) : |y| \le 1\}, \qquad B = \{(x, \sin(1/x)) : x > 0\}, \qquad X = A \cup B \subseteq \mathbb{R}^{2}

with the Euclidean subspace topology (the topologist's sine curve; Ahlfors poses this pair of sets as Exercise 4 on p. 58, and the analysis below is ours). BB is connected, being a continuous image of (0,∞)(0, \infty), and A⊆B‾A \subseteq \overline{B} because sin⁡(1/x)\sin(1/x) takes every value in [−1,1][-1, 1] on every interval (0,δ)(0, \delta). In fact B‾=A∪B=X\overline{B} = A \cup B = X: the graph of a continuous function on (0,∞)(0, \infty) is closed in (0,∞)×R(0, \infty) \times \mathbb{R}, so the only points added by the closure are those with first coordinate 00, and these are exactly the points of AA. Item 9 of the properties statement above - the closure of a connected set is connected - therefore makes XX connected. But XX is not path-connected. Suppose γ:I→X\gamma : I \to X were continuous with γ(0)∈A\gamma(0) \in A and γ(1)∈B\gamma(1) \in B, and let c=max⁡γ−1(A)c = \max \gamma^{-1}(A). That maximum exists because γ−1(A)\gamma^{-1}(A) is closed in II - AA is closed in XX, being closed in R2\mathbb{R}^{2}, and γ\gamma is continuous - and is also nonempty, since γ(0)∈A\gamma(0) \in A, and bounded, being a subset of II. Moreover c<1c < 1: the two sets are disjoint, every point of BB having positive first coordinate, and γ(1)∈B\gamma(1) \in B, so 1∉γ−1(A)1 \notin \gamma^{-1}(A). Hence γ(t)∈X∖A=B\gamma(t) \in X \setminus A = B for every t∈(c,1]t \in (c, 1], so by the intermediate value theorem the first coordinate of γ\gamma takes every sufficiently small positive value on every interval (c,c+η)(c, c + \eta), and the second coordinate therefore takes both the values 11 and −1-1 on every such interval, contradicting continuity at cc. The hypothesis that fails in the statement above is local path-connectedness: no neighbourhood of (0,0)(0, 0) in XX is path-connected.

Path components need not be closed. In the same XX the path components are AA and BB. AA is closed in XX, but B‾∩X=X≠B\overline{B} \cap X = X \neq B, so BB is not. This is one place where the parallel between components and path components breaks down: components are always closed, path components need not be.

Remark("No holes" is not a definition)AdaptedAdapted from Riley, Hobson & Bence (2006), §11.2, p. 384

The intuitive phrase is a reliable guide only in the plane. In R3\mathbb{R}^{3}, removing a point leaves a simply connected set, R3∖{0}\mathbb{R}^{3} \setminus \{0\} (item 6 above), while removing a whole line does not. The second case is worth settling by the statements rather than by the picture, and the following derivation is ours: the set R3\mathbb{R}^{3} minus the zz-axis is the product (R2∖{0})×R(\mathbb{R}^{2} \setminus \{0\}) \times \mathbb{R}, whose product topology is the Euclidean one because the open boxes are a basis for both, so item 5 computes its fundamental group at any base point as π1(R2∖{0})×π1(R)≅Z×{1}≅Z\pi_1(\mathbb{R}^{2} \setminus \{0\}) \times \pi_1(\mathbb{R}) \cong \mathbb{Z} \times \{1\} \cong \mathbb{Z}, using item 6 for the first factor and item 3 for the second (R\mathbb{R} is convex and nonempty). The group is nontrivial, so a loop encircling the axis indeed cannot be contracted. Riley, Hobson and Bence give the pair of cases that makes the point sharpest, on p. 384: the solid torus is not simply connected, because a closed curve running round inside it cannot be shrunk to a point without leaving it, whereas the open shell lying between a pair of concentric spheres of unequal radii does satisfy the condition, even though it looks like a solid with a cavity inside it. Decide by the definition, not the picture.

A trivial fundamental group also constrains loops only, and nothing more: S2S^{2} and R2\mathbb{R}^{2} are both simply connected and are not homeomorphic, one being compact and the other not.

Remark(Conventions that differ between books)AdaptedAdapted from Ahlfors (1979), Ch. 4, §4.2, Def 1 and the warning that follows it, p. 139, with Ch. 8, §1.6, p. 297; do Carmo (2016), §5-6, Def 3, p. 388; Riley, Hobson & Bence (2006), §11.2, pp. 383-384; Lee (2013), Appendix A, p. 613
  • The homotopy definition (used here). Lee (p. 613): path-connected with trivial fundamental group. This is the definition that works in every topological space and in every dimension.
  • Ahlfors's definition, for plane regions only. Ahlfors (p. 139) calls a region Ω⊆C\Omega \subseteq \mathbb{C} simply connected when the set (C∪{∞})∖Ω(\mathbb{C} \cup \{\infty\}) \setminus \Omega, that is the complement formed inside the extended plane, is a connected set. He attaches a warning on the same page: most books define the term differently, and his version has no analogue above two real dimensions. His reason for adopting it is speed of access to Cauchy's theorem, and by p. 297 he has assembled the equivalence, for a plane region, of three conditions - extended-plane complement connected, homeomorphic to a disk, fundamental group trivial. Taking the complement in the extended plane is essential: a parallel strip has disconnected complement within the finite plane, connected complement within the extended plane, and is simply connected.
  • do Carmo's definition, for subsets of R3\mathbb{R}^{3}. do Carmo (p. 388) calls an arcwise connected B⊆R3B \subseteq \mathbb{R}^{3} simply connected when any two arcs in BB with the same endpoints are homotopic in BB, and notes that this is equivalent to every closed arc being homotopic to a constant arc. This is the second of our two equivalent forms, carrying the same connectivity hypothesis (his arcwise connected) and restricted to subsets of R3\mathbb{R}^{3}.
  • The physicists' formulation. Riley, Hobson and Bence (p. 383) say a plane region is simply connected when every simple closed curve in it can be shrunk continuously to a point without leaving the region, and call a region with n−1n - 1 holes nn-fold connected (doubly connected for one hole, triply connected for two), counting the parts of its boundary. That count is a planar notion with no direct analogue in three dimensions; what carries over, as they say on p. 384, is the shrinking criterion, applied to curves lying in the surface or volume concerned.
  • "Region" and "domain". Ahlfors (p. 57) reserves region for a nonempty connected open set and closed region for the closure of one; much of the applied literature writes domain for the same thing, and some texts use "region" for any set on which a field is defined. Read the definition before relying on connectedness being implied.
Example(Two three-dimensional regions decided by the definition)Original

Write ρ=x2+y2\rho = \sqrt{x^{2} + y^{2}} for the distance from the zz-axis. The two regions below are the ones the remark on "no holes" discusses; here they are settled by the statements above rather than by the picture.

1. The solid torus is not simply connected. Let

T={(x,y,z)∈R3:(ρ−2)2+z2<1}.T = \bigl\{ (x, y, z) \in \mathbb{R}^{3} : (\rho - 2)^{2} + z^{2} < 1 \bigr\} .

On TT we have (ρ−2)2<1(\rho - 2)^{2} < 1, hence 1<ρ<31 < \rho < 3; in particular ρ\rho never vanishes, so

r(x,y,z)=(x,y)ρ∈S1r(x, y, z) = \frac{(x, y)}{\rho} \in S^{1}

is defined and continuous on TT. Let ι:S1→T\iota : S^{1} \to T be ι(u,v)=(2u,2v,0)\iota(u, v) = (2u, 2v, 0), which lands in TT because there ρ=2\rho = 2 and z=0z = 0, giving (2−2)2+02=0<1(2 - 2)^{2} + 0^{2} = 0 < 1.

The composites. r(ι(u,v))=(2u,2v)/2=(u,v)r(\iota(u, v)) = (2u, 2v)/2 = (u, v), so r∘ι=idS1r \circ \iota = \mathrm{id}_{S^{1}}. In the other order, define

H((x,y,z),t)=([(1−t)ρ+2t](x,y)ρ,  (1−t)z).H\bigl((x, y, z), t\bigr) = \Bigl( \bigl[(1 - t)\rho + 2t\bigr]\frac{(x, y)}{\rho},\; (1 - t) z \Bigr) .

This is continuous on T×IT \times I because ρ>1\rho > 1 there, and H( ⋅ ,0)H(\,\cdot\,, 0) is the identity while H( ⋅ ,1)=ι∘rH(\,\cdot\,, 1) = \iota \circ r. It stays inside TT: the deformed point has distance ρt=(1−t)ρ+2t\rho_t = (1 - t)\rho + 2t from the axis and height zt=(1−t)zz_t = (1 - t)z, so ρt−2=(1−t)(ρ−2)\rho_t - 2 = (1 - t)(\rho - 2) and

(ρt−2)2+zt2=(1−t)2[(ρ−2)2+z2]<1.(\rho_t - 2)^{2} + z_t^{2} = (1 - t)^{2}\bigl[(\rho - 2)^{2} + z^{2}\bigr] < 1 .

Conclusion. ι\iota is a homotopy equivalence with homotopy inverse rr. Before writing π1(T)\pi_1(T) without a base point we must know TT is path-connected, and it is: S1S^{1} is path-connected (proof item 6 above, S1S^{1} being the image of the once-round loop), and path-connectedness transfers across a homotopy equivalence by the same proof item 2 that is used next. So item 2 gives π1(T)≅π1(S1)\pi_1(T) \cong \pi_1(S^{1}), which by item 4 is infinite cyclic and in particular not trivial. Simple connectivity requires a trivial fundamental group, so TT fails it - and the failure is not for want of path-connectedness, which TT has.

Arithmetic check. The point p=(2.5,0,0.3)p = (2.5, 0, 0.3) has ρ=2.5\rho = 2.5 and (ρ−2)2+z2=0.25+0.09=0.34<1(\rho - 2)^{2} + z^{2} = 0.25 + 0.09 = 0.34 < 1, so p∈Tp \in T. At t=1/2t = 1/2 the homotopy sends it to (2.25,0,0.15)(2.25, 0, 0.15), for which (0.25)2+(0.15)2=0.085(0.25)^{2} + (0.15)^{2} = 0.085; and 0.085=0.34×(1/2)20.085 = 0.34 \times (1/2)^{2}, exactly the factor (1−t)2(1 - t)^{2} predicted above.

2. The shell between two spheres is simply connected. Let A={x∈R3:1<∣x∣<2}A = \{x \in \mathbb{R}^{3} : 1 < |x| < 2\}, let r(x)=x/∣x∣∈S2r(x) = x/|x| \in S^{2} and let ι(u)=32u\iota(u) = \tfrac{3}{2} u, which lands in AA because ∣32u∣=1.5|\tfrac{3}{2}u| = 1.5. Again r∘ι=idS2r \circ \iota = \mathrm{id}_{S^{2}}, and

H(x,t)=[(1−t)∣x∣+32t]x∣x∣H(x, t) = \Bigl[ (1 - t)|x| + \tfrac{3}{2} t \Bigr] \frac{x}{|x|}

is continuous on A×IA \times I, interpolates between the identity and ι∘r\iota \circ r, and stays in AA because its radial coordinate is a convex combination of ∣x∣∈(1,2)|x| \in (1, 2) and 32∈(1,2)\tfrac{3}{2} \in (1, 2). So AA is homotopy equivalent to S2S^{2} and π1(A)≅π1(S2)\pi_1(A) \cong \pi_1(S^{2}), trivial by item 4 since 2>12 > 1; the base-point-free notation is licensed by the path-connectedness established in the next paragraph.

Path-connectedness, which the definition also demands. Given x,y∈Ax, y \in A, push each radially to radius 32\tfrac{3}{2} along the path above with tt as parameter, and then join the two points u,vu, v of the sphere of radius 32\tfrac{3}{2}: for u≠−vu \neq -v the path s↦32 w(s)/∣w(s)∣s \mapsto \tfrac{3}{2}\,w(s)/|w(s)| with w(s)=(1−s)u+svw(s) = (1 - s)u + sv is defined, since w(s)=0w(s) = 0 would force uu and vv to be opposite multiples of one vector, hence antipodal; and when v=−uv = -u one inserts a third point of the sphere and concatenates. So AA is path-connected, and with the trivial fundamental group it is simply connected.

Arithmetic check. x=(0.3,0.4,1.2)x = (0.3, 0.4, 1.2) has ∣x∣2=0.09+0.16+1.44=1.69|x|^{2} = 0.09 + 0.16 + 1.44 = 1.69, so ∣x∣=1.3∈(1,2)|x| = 1.3 \in (1, 2) and x∈Ax \in A; along the homotopy its radius is 1.3+0.2 t1.3 + 0.2\,t, which runs from 1.31.3 to 1.51.5 and never leaves (1,2)(1, 2).

A region may therefore enclose a cavity and still be simply connected, while a solid ring cannot be: the shell's cavity is an obstacle that loops can slide around, and the ring's hole is not.

ApplicationOriginal

The field outside a current-carrying wire. For a steady current II along the zz-axis, the magnetostatic field in the region outside the wire is B=μ0I/(2πρ) eφ\mathbf{B} = \mu_0 I/(2\pi\rho)\,\mathbf{e}_\varphi, and there the current density vanishes, so ∇×B=0\nabla \times \mathbf{B} = \mathbf{0}. Nevertheless Ampere's law gives ∮B⋅dl=μ0I≠0\oint \mathbf{B} \cdot d\mathbf{l} = \mu_0 I \neq 0 for a loop encircling the wire, so B\mathbf{B} is not the gradient of any single-valued function on that region. There is no contradiction with the potential theorems, because the region is R3\mathbb{R}^{3} with a line removed, which the remark on "no holes" above computes to have fundamental group Z\mathbb{Z} at every base point, generated by the class of a loop once round the wire: the hypothesis of simple connectivity fails, and the nonzero circulation is the measure of how it fails. The same loop class is what makes the Aharonov-Bohm phase physical: the electron picks up (e/ℏ)∮A⋅dl(e/\hbar)\oint \mathbf{A} \cdot d\mathbf{l}, which is determined by the enclosed flux and is independent of the loop within its path class, even though the field vanishes along the whole path. See Line integrals and conservative fields and Helmholtz decomposition and potentials.

Line defects in ordered media are classified by path classes. An ordered medium assigns to each point of the sample a value in an order-parameter space MM, and a line defect is detected by restricting the assignment to a small loop encircling the line, which gives an element of π1(M)\pi_1(M) that cannot change under continuous deformation of the loop. For superfluid helium-4 the order parameter is a phase, M=S1M = S^{1}, so π1(M)≅Z\pi_1(M) \cong \mathbb{Z} and vortices carry an integer circulation that can only be changed by moving a defect through the loop. For a uniaxial nematic liquid crystal, where the states n\mathbf{n} and −n-\mathbf{n} are physically identical, MM is the projective plane and its fundamental group has two elements, so there is exactly one nontrivial class of line defect and two such disclinations can annihilate. The experimental taxonomy of defects is in this sense a fundamental-group computation.

Where a potential or a branch has to be cut. Simple connectivity is the licence to integrate a closed field or an analytic function to a single-valued function; on a region without it, one either accepts a multivalued potential or cuts the region until it is simply connected. That is why the magnetic scalar potential of a current loop jumps across a chosen surface spanning the loop, and why log⁡z\log z and z\sqrt{z} on C∖{0}\mathbb{C} \setminus \{0\} - a region with π1≅Z\pi_1 \cong \mathbb{Z} by item 6 - are made single-valued by a branch cut that removes the offending loops. See Branch points and branch cuts and Stokes' theorem and Green's theorem in the plane.