Book 2B

© 2026 NeckPinch · www.neckpinch.com · All rights reserved.

Course 2Book 2B: Spaces, Functions and ChangeChapter 3

Compactness

Compact sets, the contradiction–compactness method, and the three ways compactness is lost.

32 min read · Updated Oct 2, 2026

Read with Tao, Analysis II, chapter "Metric spaces", section "Compact metric spaces"; and chapter "Continuous functions on metric spaces", sections "Continuity and product spaces" and "Continuity and compactness".

In this chapter · 9 sections
  1. 3.1A soap film that snaps
  2. 3.2Sequential compactness
  3. 3.3Complete and totally bounded
  4. 3.4Open covers
  5. 3.5Continuous functions on compact spaces
  6. 3.6The contradiction–compactness template, in full
  7. 3.7Three ways to lose compactness
  8. 3.8History
  9. 3.9Exercises

Completeness (2B.2 Completeness and Contraction) produces solutions as limits of sequences that we construct, step by step, to be Cauchy. Compactness produces solutions in a different way. It takes any sequence, possibly one that wanders without settling, and extracts from it a subsequence that converges. We don't need to know in advance where the limit is, or build the sequence carefully. We only need the sequence to live in a compact space.

On the real line, compactness was the Bolzano–Weierstrass theorem (2A.6 Sequences), and it gave the maximum principle and uniform continuity (2A.9 Continuous Functions). This chapter makes it a property of metric spaces, proves that three quite different definitions agree, and puts it to work. It then states in full the proof pattern that the guidebook follows all the way to Perelman, the contradiction–compactness template of 2A.5 Quantifiers and the Shape of a Proof, and works through it on a model case where every step is visible. Finally it lists the three ways in which compactness can fail. Those three failures, in increasingly sophisticated forms, are the ways a Ricci flow can develop a singularity.

By the end of this chapter you will be able to:

  • prove that a set is compact or not, using sequences, total boundedness or open covers, whichever is easiest;
  • use compactness to show that a maximum exists, that a continuous function is uniformly continuous, and that a positive quantity has a positive lower bound;
  • run the contradiction–compactness template: negate, normalise, extract a limit, contradict;
  • prove that all norms on Rn\mathbb{R}^n are equivalent, and say why the proof fails in infinite dimensions;
  • recognise the three ways a sequence can fail to have a convergent subsequence.

A soap film that snaps

In the world Model The catenoid between two rings

Dip two equal wire rings, held parallel and coaxial, into soap solution and draw them apart slowly. A film forms between them, shaped like a cooling tower with a narrow waist. Surface tension pulls the film to the shape of least area among nearby shapes, and for coaxial rings that shape is a catenoid: the surface traced out by rotating the curve r=acosh⁡(z/a)r = a\cosh(z/a) about the axis, where aa is the radius of the waist.

As the rings separate, the waist narrows. Then, suddenly, at a separation of about 1.331.33 times the ring radius, the waist collapses to a point and the film snaps into two flat discs, one in each ring. Nothing gradual happens at the moment of snapping: a whole family of shapes simply stops existing.

The mathematics locates the snap exactly. With rings of radius 11 at heights ±h/2\pm h/2, a catenoid fits the rings when acosh⁡(h2a)=1a\cosh\big(\tfrac{h}{2a}\big) = 1, that is, when

h=H(a)=2a arccosh⁡(1/a),0<a≤1.h = H(a) = 2a\,\operatorname{arccosh}(1/a), \qquad 0 < a \leq 1.

So a film with waist aa exists exactly when the separation is a value of HH. The function HH is continuous on (0,1](0, 1], with H(1)=0H(1) = 0 and H(a)→0H(a) \to 0 as a→0a \to 0, so it extends to a continuous function on the compact interval [0,1][0, 1]. By the maximum principle it attains a maximum, which a computation puts at a≈0.5524a \approx 0.5524, with

Hmax⁡≈1.3255.H_{\max} \approx 1.3255.

Below this separation there are two catenoids (a fat stable one and a thin unstable one, Figure 3.1); at 1.32551.3255 they merge; beyond it there are none, and the film has no choice but to break. The existence of the critical separation is a compactness argument, and the snap is the first neckpinch in this guidebook: a waist shrinking to zero radius in finite time, separating one surface into two. Ricci flow does the same thing to necks in a 3-manifold (11B.4 Singularities), which is where this site's name comes from.

Figure 3.1. Left: the stable catenoid for ring separations h=0.6h = 0.6, 1.01.0 and 1.31.3 (ring radius 11). Right: the separation H(a)H(a) produced by a waist of radius aa. Each hh below the maximum 1.32551.3255 is attained twice: a fat (stable) and a thin (unstable) film. Beyond the maximum, no catenoid exists.

A finer point, which a real experiment shows: for separations between about 1.0551.055 and 1.32551.3255, two flat discs have less total area than the fat catenoid, yet the film stays a catenoid until 1.32551.3255. The catenoid there is a local minimum of area but not the global one. Which local minimum a physical system sits in depends on its history, a theme that returns with the calculus of variations (6A.9 Calculus of Variations and Gradient Flows) and with min–max methods (10A.8 Min–Max and Width).

Sequential compactness

Definition 3.1 Compact metric space

A metric space (X,d)(X, d) is compact if every sequence in XX has a subsequence that converges to a point of XX. A subset K⊆XK \subseteq X is compact if it is compact with the restricted metric, that is, if every sequence in KK has a subsequence converging to a point of KK.

Tao takes this sequential definition as primary, as we do. Its first consequences are quick.

Proposition 3.2 Compact sets are closed and bounded

Let KK be a compact subset of a metric space XX. Then KK is closed in XX and bounded (it lies inside some ball). A closed subset of a compact set is compact.

Proof. Closed. If xn∈Kx_n \in K and xn→x∈Xx_n \to x \in X, a subsequence converges to a point of KK; but every subsequence converges to xx, so x∈Kx \in K. Bounded. If not, fix x0x_0 and pick xn∈Kx_n \in K with d(xn,x0)>nd(x_n, x_0) > n. A convergent subsequence xnk→xx_{n_k} \to x would have d(xnk,x0)≤d(xnk,x)+d(x,x0)d(x_{n_k}, x_0) \leq d(x_{n_k}, x) + d(x, x_0) bounded, which is false. Closed subsets. If F⊆KF \subseteq K is closed and xn∈Fx_n \in F, a subsequence converges to some x∈Kx \in K, and x∈Fx \in F because FF is closed.

In Rn\mathbb{R}^n the converse holds.

Theorem 3.3 Heine–Borel

A subset of Rn\mathbb{R}^n is compact if and only if it is closed and bounded.

Proof. One direction is Proposition 3.2. For the other, let KK be closed and bounded and let (xk)(x_k) be a sequence in KK. Its first coordinates form a bounded sequence of reals, which has a convergent subsequence by Bolzano–Weierstrass (2A.6 Sequences). Along that subsequence, the second coordinates are bounded, so a further subsequence makes them converge too. After nn such steps we have a subsequence along which every coordinate converges, so the points converge in Rn\mathbb{R}^n. The limit lies in KK because KK is closed.

In general metric spaces "closed and bounded" is not enough.

Example 3.4 Closed and bounded but not compact

(a) An infinite set with the discrete metric is closed (in itself) and bounded (every distance is at most 11). But a sequence of distinct points has no convergent subsequence, since convergent sequences in the discrete metric are eventually constant.

(b) In C([0,1])C([0, 1]) with the sup metric, the closed unit ball {f:∣f∣≤1}\{f : |f| \leq 1\} is closed and bounded. Consider fn(x)=xnf_n(x) = x^n. Its pointwise limit is 00 on [0,1)[0, 1) and 11 at x=1x = 1, which is not continuous. Any uniformly convergent subsequence would converge to a continuous function equal to this pointwise limit (2B.5 Uniform Convergence and Arzelà–Ascoli), which is impossible. So (fn)(f_n) has no convergent subsequence, and the ball is not compact.

Both examples have something in common: points that stay a fixed distance apart, with no way of being grouped into finitely many small clusters. That observation is the content of the next characterisation.

Complete and totally bounded

Definition 3.5 Totally bounded, ε-net

A metric space XX is totally bounded if for every ε>0\varepsilon > 0 it can be covered by finitely many balls of radius ε\varepsilon. The centres of such a cover form an ε-net: every point of XX is within ε\varepsilon of one of them.

Totally bounded means "finite at every resolution". However fine a resolution ε\varepsilon you choose, finitely many probes suffice to see every point to within ε\varepsilon. In Rn\mathbb{R}^n, a bounded set is totally bounded: put it in a cube and use the points of a fine grid. In the discrete example, it fails at ε=12\varepsilon = \tfrac12, since each ball of radius 12\tfrac12 contains a single point.

In the world In use How many sensors cover a field?

To monitor a region KK with sensors that each detect anything within range ε\varepsilon, you need an ε\varepsilon-net of KK, and the smallest number of sensors is the least size of an ε\varepsilon-net, called the covering number N(ε)N(\varepsilon). For a bounded region of the plane, N(ε)N(\varepsilon) grows like ε−2\varepsilon^{-2} as ε→0\varepsilon \to 0: halve the range and you need about four times as many sensors (Figure 3.2). For a region in Rn\mathbb{R}^n it grows like ε−n\varepsilon^{-n}. This scaling is used in reverse to define dimension for irregular sets (the box-counting dimension of a coastline or a fractal). Covering numbers also appear in statistical learning theory, where the number of ε\varepsilon-distinguishable hypotheses controls how much data a learning method needs. Total boundedness is exactly the statement that N(ε)N(\varepsilon) is finite for every ε\varepsilon.

Figure 3.2. ε-nets of the unit disc at two resolutions. The centres of the small circles are within ε\varepsilon of every point of the disc. Halving ε\varepsilon roughly quadruples the number of circles needed, the signature of a two-dimensional set.
Theorem 3.6 Compact means complete and totally bounded

A metric space is compact if and only if it is complete and totally bounded.

Proof. Compact ⇒ complete. A Cauchy sequence has a convergent subsequence, so it converges (2B.2 Completeness and Contraction).

Compact ⇒ totally bounded. Suppose that for some ε>0\varepsilon > 0 no finite collection of ε\varepsilon-balls covers XX. Pick x1x_1; then pick x2x_2 outside B(x1,ε)B(x_1, \varepsilon); then x3x_3 outside B(x1,ε)∪B(x2,ε)B(x_1, \varepsilon) \cup B(x_2, \varepsilon); and so on, which never stops. The points satisfy d(xm,xn)≥εd(x_m, x_n) \geq \varepsilon for m≠nm \neq n, so no subsequence is Cauchy, and none converges.

Complete and totally bounded ⇒ compact. Let (xn)(x_n) be any sequence. Cover XX by finitely many balls of radius 11. One of them contains xnx_n for infinitely many nn; keep only those terms, a subsequence S1S_1. Cover XX by finitely many balls of radius 12\tfrac12; one of them contains infinitely many terms of S1S_1; keep those, a subsequence S2⊆S1S_2 \subseteq S_1. Continue with radii 14,18,…\tfrac14, \tfrac18, \dots. Now take the diagonal: the first term of S1S_1, the second term of S2S_2, the third of S3S_3, and so on (each later one chosen further along than the previous). From the kk-th term on, the diagonal sequence lies in SkS_k, inside one ball of radius 21−k2^{1-k}, so any two of those terms are within 22−k2^{2-k}. The diagonal sequence is Cauchy, and by completeness it converges.

The diagonal argument in the last step, "refine infinitely often, then take the diagonal", is a technique to remember. It reappears in the proof of the Arzelà–Ascoli theorem (2B.5 Uniform Convergence and Arzelà–Ascoli) and in every compactness theorem built on it.

Open covers

There is a third characterisation, which looks nothing like the other two. It is the one that generalises to spaces without a metric (7A.2 Compactness and Compactification), and it is often the most convenient for proofs that patch local information together.

Definition 3.7 Open cover

An open cover of a metric space XX is a collection of open sets whose union is XX. A finite subcover is a finite subcollection that still covers XX.

Theorem 3.8 Compactness by open covers

A metric space is compact if and only if every open cover has a finite subcover.

The proof uses a lemma that is worth knowing on its own.

Lemma 3.9 Lebesgue number

If XX is compact and {Uα}\{U_\alpha\} is an open cover of XX, there is a δ>0\delta > 0 (a Lebesgue number) such that every ball of radius δ\delta lies inside a single UαU_\alpha.

Proof. Suppose not. Then for each nn there is a ball B(xn,1n)B(x_n, \tfrac1n) lying in no single UαU_\alpha. A subsequence xnkx_{n_k} converges to some xx. This xx lies in some UαU_\alpha, which contains a ball B(x,r)B(x, r). For kk large, d(xnk,x)<r/2d(x_{n_k}, x) < r/2 and 1nk<r/2\tfrac1{n_k} < r/2, so B(xnk,1nk)⊆B(x,r)⊆UαB(x_{n_k}, \tfrac1{n_k}) \subseteq B(x, r) \subseteq U_\alpha, a contradiction.

Proof. Sequentially compact ⇒ finite subcovers. Let δ\delta be a Lebesgue number for the cover, and take a finite δ\delta-net {y1,…,ym}\{y_1, \dots, y_m\}, by total boundedness. Each ball B(yi,δ)B(y_i, \delta) lies in some UαiU_{\alpha_i}, and the balls cover XX, so Uα1,…,UαmU_{\alpha_1}, \dots, U_{\alpha_m} cover XX.

Finite subcovers ⇒ sequentially compact. Suppose (xn)(x_n) has no convergent subsequence. Then each point y∈Xy \in X has a ball B(y,ry)B(y, r_y) containing xnx_n for only finitely many nn (otherwise we could extract a subsequence converging to yy, taking radii 1k\tfrac1k). These balls cover XX. A finite subcover would contain xnx_n for only finitely many nn in total, but it covers every xnx_n. Contradiction.

Figure 3.3. Top: an open cover of [0,1][0, 1], with a finite subcover highlighted. Bottom: the open intervals (1n,2)(\tfrac1n, 2) cover (0,1](0, 1], but any finitely many of them miss the points near 00. The missing point 00 is what (0,1](0, 1] lacks.

Continuous functions on compact spaces

Continuity between metric spaces is defined as on R\mathbb{R}: f:X→Yf : X \to Y is continuous if xn→xx_n \to x implies f(xn)→f(x)f(x_n) \to f(x), or equivalently if for every xx and ε>0\varepsilon > 0 there is δ>0\delta > 0 with dY(f(x),f(x′))<εd_Y(f(x), f(x')) < \varepsilon whenever dX(x,x′)<δd_X(x, x') < \delta. Equivalently again, preimages of open sets are open (Exercise 3.14).

Theorem 3.10 Continuous functions on compact spaces

Let XX be compact and f:X→Yf : X \to Y continuous. Then:

  1. f(X)f(X) is compact.
  2. If Y=RY = \mathbb{R}, then ff attains a maximum and a minimum (the maximum principle).
  3. ff is uniformly continuous: for every ε>0\varepsilon > 0 there is a single δ>0\delta > 0 with dY(f(x),f(x′))<εd_Y(f(x), f(x')) < \varepsilon whenever dX(x,x′)<δd_X(x, x') < \delta.

Proof. (1) A sequence in f(X)f(X) has the form f(xn)f(x_n). A subsequence xnkx_{n_k} converges to some xx, and by continuity f(xnk)→f(x)∈f(X)f(x_{n_k}) \to f(x) \in f(X).

(2) f(X)f(X) is a compact subset of R\mathbb{R}, so it is closed and bounded and contains its supremum and infimum.

(3) Suppose not. Then for some ε>0\varepsilon > 0 and every nn there are xn,xn′x_n, x'_n with d(xn,xn′)<1nd(x_n, x'_n) < \tfrac1n but d(f(xn),f(xn′))≥εd(f(x_n), f(x'_n)) \geq \varepsilon. Pass to a subsequence along which xnk→xx_{n_k} \to x; then xnk′→xx'_{n_k} \to x too. By continuity both f(xnk)f(x_{n_k}) and f(xnk′)f(x'_{n_k}) tend to f(x)f(x), so their distance tends to 00, contradicting ≥ε\geq \varepsilon.

Part 3 is Heine–Cantor (2A.9 Continuous Functions) in general, with the same proof. Part 2 is the maximum principle of 2A.9 Continuous Functions, now valid for continuous functions on any compact space: on a closed square, on a sphere, on the space of positions of a mechanical linkage, or on a compact manifold, which is the setting of Hamilton's maximum principle (11A.4 Maximum Principles under Ricci Flow).

A fourth consequence is that a continuous bijection from a compact space has a continuous inverse (Exercise 3.15). This is the reason compact manifolds can be recognised by building a continuous bijection, without checking the inverse separately.

The contradiction–compactness template, in full

In 2A.5 Quantifiers and the Shape of a Proof the contradiction–compactness template was stated in words, and 2A.9 Continuous Functions used it once, to show that a continuous positive function on [a,b][a, b] has a positive lower bound. Here is the full template, and a case with all its steps, including the one that the earlier example did not need: normalisation.

To prove a uniform estimate:

  1. Suppose it fails. Negate the quantifiers to get, for each nn, a counterexample that is "nn times worse".
  2. Normalise. Rescale each counterexample so that it lies in a fixed compact set, without changing the failure.
  3. Extract a limit. By compactness, a subsequence converges.
  4. Pass to the limit. Use continuity to find what the limit satisfies.
  5. Contradict. Show that no such limit can exist.

A norm on Rn\mathbb{R}^n is a function N:Rn→[0,∞)N : \mathbb{R}^n \to [0, \infty) with N(x)=0N(x) = 0 only for x=0x = 0, N(λx)=∣λ∣ N(x)N(\lambda x) = |\lambda|\,N(x), and N(x+y)≤N(x)+N(y)N(x + y) \leq N(x) + N(y). Each norm gives a metric, d(x,y)=N(x−y)d(x, y) = N(x - y), and the three metrics of 2B.1 Metric Spaces come from the norms ∥x∥1\|x\|_1, ∥x∥2\|x\|_2 and ∥x∥∞\|x\|_\infty. We saw there that those three are uniformly equivalent. In fact all norms are.

Theorem 3.11 All norms on Rn\mathbb{R}^n are equivalent

For every norm NN on Rn\mathbb{R}^n there are constants 0<c≤C0 < c \leq C with

c ∥x∥2≤N(x)≤C ∥x∥2for all x∈Rn.c\,\|x\|_2 \leq N(x) \leq C\,\|x\|_2 \quad \text{for all } x \in \mathbb{R}^n.

Proof. The upper bound is direct. Write x=∑xieix = \sum x_i e_i in the standard basis. Then N(x)≤∑∣xi∣ N(ei)≤(max⁡iN(ei))∥x∥1≤n (max⁡iN(ei))∥x∥2N(x) \leq \sum |x_i|\,N(e_i) \leq \big(\max_i N(e_i)\big)\|x\|_1 \leq \sqrt n\,\big(\max_i N(e_i)\big)\|x\|_2. Call the constant CC. In particular ∣N(x)−N(y)∣≤N(x−y)≤C∥x−y∥2|N(x) - N(y)| \leq N(x - y) \leq C\|x - y\|_2, so NN is continuous on Rn\mathbb{R}^n with its usual metric.

The lower bound, by the template.

  1. Suppose it fails. Then no c>0c > 0 works, so for each kk (taking c=1kc = \tfrac1k) there is xkx_k with N(xk)<1k∥xk∥2N(x_k) < \tfrac1k\|x_k\|_2. Necessarily xk≠0x_k \neq 0.
  2. Normalise. Both sides scale the same way under x↦λxx \mapsto \lambda x. So replace xkx_k by uk=xk/∥xk∥2u_k = x_k / \|x_k\|_2: then ∥uk∥2=1\|u_k\|_2 = 1 and N(uk)<1kN(u_k) < \tfrac1k. The uku_k lie on the unit sphere Sn−1S^{n-1}, which is closed and bounded, hence compact by Heine–Borel.
  3. Extract a limit. A subsequence ukju_{k_j} converges to some uu with ∥u∥2=1\|u\|_2 = 1 (the sphere is closed).
  4. Pass to the limit. NN is continuous, so N(u)=lim⁡N(ukj)=0N(u) = \lim N(u_{k_j}) = 0.
  5. Contradict. A norm vanishes only at 00, but ∥u∥2=1\|u\|_2 = 1.

Every step was needed. Without normalisation, the xkx_k could run off to infinity or shrink to 00, and no compactness theorem would apply. Without compactness of the sphere, there would be no limit. Without continuity, the limit wouldn't inherit the smallness of N(uk)N(u_k). The pattern of the proof is drawn in Figure 3.4.

Figure 3.4. The contradiction–compactness template of 2A.5 Quantifiers and the Shape of a Proof, filled in for Theorem 3.11. Normalisation (step 2) puts the counterexamples on the compact unit sphere; continuity (step 4) carries the failure to the limit. In 12B.3 The Canonical Neighbourhood Theorem the same five boxes are filled in with Ricci flows, rescaling by curvature, and Hamilton's compactness theorem.

Why it fails in infinite dimensions. On C([0,1])C([0, 1]), the sup norm ∥f∥∞\|f\|_\infty and the area norm ∥f∥1=∫01∣f∣\|f\|_1 = \int_0^1|f| are both norms, and they are not equivalent (2B.1 Metric Spaces). Run the template and see where it breaks. Counterexamples are the tents fnf_n, with ∥fn∥1=1n\|f_n\|_1 = \tfrac1n and ∥fn∥∞=1\|f_n\|_\infty = 1, already normalised. Step 3 needs a convergent subsequence on the unit sphere {∥f∥∞=1}\{\|f\|_\infty = 1\}, and there isn't one: the sup-norm unit sphere of C([0,1])C([0, 1]) is not compact. That is the whole difference between finite and infinite dimensions. A large part of functional analysis, from weak compactness to the Rellich theorem (4A.6 Weak Convergence and the Direct Method, 4A.10 Sobolev Embeddings and Critical Exponents), is about finding substitutes for step 3 when the unit sphere is not compact.

Where this goes The template's later versions

The equivalence of norms is used constantly and silently: it is why convergence in Rn\mathbb{R}^n doesn't depend on the norm, and it is the first step in showing that every finite-dimensional normed space behaves like Rn\mathbb{R}^n (4A.1 Banach Spaces and Bounded Operators). The template itself returns in heavier armour. In 4A.10 Sobolev Embeddings and Critical Exponents it proves Poincaré's inequality, with Rellich's theorem doing step 3. In 9B.4 Convergence of Manifolds it gives uniform geometric estimates on families of manifolds, with Cheeger–Gromov compactness doing step 3. In 12B.3 The Canonical Neighbourhood Theorem it proves Perelman's canonical neighbourhood theorem, where step 2 is parabolic rescaling by the curvature, step 3 is Hamilton's compactness theorem for Ricci flows, and step 5 uses the classification of κ-solutions.

Three ways to lose compactness

When a sequence has no convergent subsequence, it is worth asking how it escapes. In practice there are three ways, and it pays to recognise each on sight.

  1. Escape to infinity. In R\mathbb{R}, the sequence xn=nx_n = n leaves every bounded set. The space is complete, but not bounded.
  2. Approaching a missing point. In (0,1](0, 1], the sequence 1n\tfrac1n is Cauchy and heads for 00, which isn't there. The space is bounded, but not complete.
  3. Oscillation in infinitely many directions. In C([0,1])C([0, 1]), take bumps gng_n of height 11 with disjoint supports, say gng_n supported on [2−n,21−n][2^{-n}, 2^{1-n}]. Then d∞(gm,gn)=1d_\infty(g_m, g_n) = 1 for m≠nm \neq n: the sequence is bounded and lives in a complete space, but its terms point in infinitely many independent directions, and no two are close. The space is complete and bounded, but not totally bounded.
Figure 3.5. The three ways to lose compactness. Escape: the sequence leaves every bounded set. Boundary: it converges to a point missing from the space. Oscillation: it stays bounded in a complete space, but spreads over infinitely many independent directions. These panels return in 3A.3 The Lebesgue Integral, 4A.10 Sobolev Embeddings and Critical Exponents and 9B.3 Collapsing and Noncollapsing.

The three modes match the three conditions of Theorem 3.6 (bounded, complete, totally bounded), and in later books they reappear in disguise:

  • In 2A.11 The Riemann Integral and 3A.3 The Lebesgue Integral, area under a sequence of functions escapes by moving to infinity, by concentrating at a point, or by spreading thin. Concentration is a "missing point" phenomenon in a function space.
  • In Sobolev spaces (4A.10 Sobolev Embeddings and Critical Exponents), compactness of embeddings fails exactly through translation (escape) and through concentration under rescaling.
  • In Riemannian geometry (9B.3 Collapsing and Noncollapsing), a sequence of manifolds with bounded curvature can fail to converge because points run off to infinity, because the curvature blows up somewhere (a singularity), or because the manifolds collapse: they become thinner and thinner in some direction, like a cylinder whose circumference shrinks to zero. Perelman's κ-noncollapsing theorem (12A.4 κ-Noncollapsing) rules out the third mode for Ricci flow, and it is the step that makes his compactness arguments work.

History

Bernard Bolzano (1817) and Karl Weierstrass (in lectures from the 1860s) used the principle that bounded sequences of reals have convergent subsequences. Eduard Heine's 1872 proof of uniform continuity contained the covering idea implicitly; Émile Borel proved in 1895 that a countable cover of a closed bounded interval by open intervals has a finite subcover, and Henri Lebesgue extended it to arbitrary covers. The word "compact" is Maurice Fréchet's, from his 1906 thesis, the same work that introduced metric spaces (2B.1 Metric Spaces). The contradiction–compactness method has no single inventor. It is the standard way analysts turn qualitative compactness into quantitative estimates, and it runs through geometric analysis from Gromov's work in the 1980s to Perelman's in the 2000s.

Recall Where we stand

A metric space is compact if every sequence has a convergent subsequence; equivalently, if it is complete and totally bounded; equivalently, if every open cover has a finite subcover. In Rn\mathbb{R}^n, compact means closed and bounded, but in function spaces it means much more. Continuous functions on compact spaces have compact images, attain their extremes, and are uniformly continuous. The contradiction–compactness template (negate, normalise, extract, pass to the limit, contradict) turns compactness into uniform estimates, as in the equivalence of norms on Rn\mathbb{R}^n. Compactness fails by escape, by approach to a missing point, or by oscillation in infinitely many directions. 2B.4 Connectedness turns to a different topological property, connectedness, and 2B.5 Uniform Convergence and Arzelà–Ascoli returns to compactness in the space where the guidebook needs it most, C(K)C(K).

Exercises

Exercise 3.12 Compact or not?

Which of these are compact? (a) {(x,y)∈R2:x2+y4≤1}\{(x, y) \in \mathbb{R}^2 : x^2 + y^4 \leq 1\}; (b) {0}∪{1n:n≥1}\{0\} \cup \{\tfrac1n : n \geq 1\}; (c) {1n:n≥1}\{\tfrac1n : n \geq 1\}; (d) Q∩[0,1]\mathbb{Q} \cap [0, 1]; (e) the unit sphere of R3\mathbb{R}^3 with the great-circle metric; (f) {f∈C([0,1]):∣f∣≤1}\{f \in C([0, 1]) : |f| \leq 1\} with the sup metric.

Solution

(a) Yes: closed (a preimage of (−∞,1](-\infty, 1] under a continuous function) and bounded (∣x∣,∣y∣≤1|x|, |y| \leq 1). (b) Yes: every sequence either takes some value infinitely often or has terms 1nk\tfrac1{n_k} with nk→∞n_k \to \infty, converging to 00. (c) No: 1n→0\tfrac1n \to 0, which is missing. (d) No: not closed in R\mathbb{R} (a sequence of rationals can converge to 1/21/\sqrt2). (e) Yes: the great-circle metric is equivalent to the chordal metric from R3\mathbb{R}^3 (Exercise 3.13), and the sphere is closed and bounded in R3\mathbb{R}^3. (f) No: Example 3.4.

Exercise 3.13 Two metrics on the sphere

Show that for unit vectors, the chord length ∥x−y∥2\|x - y\|_2 and the angle θ=arccos⁡(x⋅y)\theta = \arccos(x\cdot y) satisfy ∥x−y∥2=2sin⁡(θ/2)\|x - y\|_2 = 2\sin(\theta/2), and deduce 2πθ≤∥x−y∥2≤θ\frac{2}{\pi}\theta \leq \|x - y\|_2 \leq \theta. So the great-circle metric is uniformly equivalent to the chordal metric.

Solution

∥x−y∥2=2−2x⋅y=2−2cos⁡θ=4sin⁡2(θ/2)\|x - y\|^2 = 2 - 2x\cdot y = 2 - 2\cos\theta = 4\sin^2(\theta/2). For 0≤s≤π/20 \leq s \leq \pi/2, 2πs≤sin⁡s≤s\frac{2}{\pi}s \leq \sin s \leq s (the sine is concave there), and apply with s=θ/2s = \theta/2.

Exercise 3.14 Continuity by open sets

Show that f:X→Yf : X \to Y is continuous if and only if f−1(V)f^{-1}(V) is open in XX for every open V⊆YV \subseteq Y.

Exercise 3.15 Continuous bijections from compact spaces

Let XX be compact and f:X→Yf : X \to Y a continuous bijection. Show that f−1f^{-1} is continuous. (Show that ff maps closed sets to closed sets, using Proposition 3.2 and Theorem 3.10.) Then show that t↦(cos⁡t,sin⁡t)t \mapsto (\cos t, \sin t) is a continuous bijection from [0,2π)[0, 2\pi) onto the circle whose inverse is not continuous. Which hypothesis fails?

Solution

A closed F⊆XF \subseteq X is compact; f(F)f(F) is compact, hence closed in YY. So (f−1)−1(F)=f(F)(f^{-1})^{-1}(F) = f(F) is closed for every closed FF, which (taking complements) is continuity of f−1f^{-1} by Exercise 3.14. For the circle: points (cos⁡t,sin⁡t)(\cos t, \sin t) with tt slightly less than 2π2\pi are close to (1,0)(1, 0), but their preimages are near 2π2\pi, far from 0=f−1(1,0)0 = f^{-1}(1, 0). Here [0,2π)[0, 2\pi) is not compact.

Exercise 3.16 A uniform gap

Let KK be compact and f,g:K→Rf, g : K \to \mathbb{R} continuous with f(x)<g(x)f(x) < g(x) for every x∈Kx \in K. Prove, by the contradiction–compactness template, that there is ε>0\varepsilon > 0 with f(x)+ε≤g(x)f(x) + \varepsilon \leq g(x) for all x∈Kx \in K. Give an example on a non-compact set where no such ε\varepsilon exists.

Solution

If not, there are xnx_n with g(xn)−f(xn)<1ng(x_n) - f(x_n) < \tfrac1n. A subsequence converges to some x∈Kx \in K, and by continuity g(x)−f(x)≤0g(x) - f(x) \leq 0, a contradiction. (No normalisation is needed here.) Counterexample: f(x)=0f(x) = 0 and g(x)=xg(x) = x on (0,1](0, 1].

Exercise 3.17 Dini's theorem

Let KK be compact, and let fn:K→Rf_n : K \to \mathbb{R} be continuous functions that decrease pointwise to 00: f1(x)≥f2(x)≥⋯f_1(x) \geq f_2(x) \geq \cdots and fn(x)→0f_n(x) \to 0 for every xx. Prove that fn→0f_n \to 0 uniformly, by the template: suppose fn(xn)≥εf_n(x_n) \geq \varepsilon for infinitely many nn, extract xnk→xx_{n_k} \to x, and use monotonicity to show fm(x)≥εf_m(x) \geq \varepsilon for every mm. Show that fn(x)=xnf_n(x) = x^n on [0,1)[0, 1) is a counterexample when KK is not compact.

Solution

For fixed mm and nk≥mn_k \geq m, fm(xnk)≥fnk(xnk)≥εf_m(x_{n_k}) \geq f_{n_k}(x_{n_k}) \geq \varepsilon. Let k→∞k \to \infty: by continuity of fmf_m, fm(x)≥εf_m(x) \geq \varepsilon. This holds for all mm, contradicting fm(x)→0f_m(x) \to 0. On [0,1)[0, 1), xnx^n decreases to 00 pointwise but sup⁡[0,1)xn=1\sup_{[0,1)} x^n = 1 for every nn.

Exercise 3.18 Counting a net

Show that the unit square [0,1]2[0, 1]^2 (Euclidean metric) has an ε\varepsilon-net with at most (⌈1ε2⌉)2\big(\lceil \tfrac{1}{\varepsilon\sqrt2}\rceil\big)^2 points, and that any ε\varepsilon-net has at least 1πε2\frac{1}{\pi\varepsilon^2} points. Conclude that the covering number satisfies log⁡N(ε)/log⁡(1/ε)→2\log N(\varepsilon)/\log(1/\varepsilon) \to 2.

Hint

Upper bound: a square of side ε2\varepsilon\sqrt2 lies in the ball of radius ε\varepsilon around its centre. Lower bound: compare areas.

Exercise 3.19 Rehearsal: uniform positivity of a family of matrices

Let KK be compact, and let x↦A(x)x \mapsto A(x) be a continuous map from KK to the symmetric n×nn \times n matrices such that each A(x)A(x) is positive definite: vTA(x)v>0v^{\mathsf T}A(x)v > 0 for v≠0v \neq 0. Prove that there is λ>0\lambda > 0 with

vTA(x) v≥λ ∥v∥2for all x∈K, v∈Rn.v^{\mathsf T}A(x)\,v \geq \lambda\,\|v\|^2 \quad \text{for all } x \in K,\ v \in \mathbb{R}^n.

(Normalise vv to the unit sphere, and apply the template on the compact set K×Sn−1K \times S^{n-1}.) This is uniform ellipticity. A second-order operator ∑aij(x)∂i∂j\sum a_{ij}(x)\partial_i\partial_j with (aij)(a_{ij}) positive definite at each point of a compact manifold is automatically uniformly elliptic, and uniform ellipticity is the hypothesis behind every estimate for the heat equation in Course 6 and for the DeTurck–Ricci flow in 11A.3 Short-Time Existence and Uniqueness.

Solution

If not, there are xk∈Kx_k \in K and vk≠0v_k \neq 0 with vkTA(xk)vk<1k∥vk∥2v_k^{\mathsf T}A(x_k)v_k < \tfrac1k\|v_k\|^2. Normalise uk=vk/∥vk∥u_k = v_k/\|v_k\|: ukTA(xk)uk<1ku_k^{\mathsf T}A(x_k)u_k < \tfrac1k. The product K×Sn−1K \times S^{n-1} is compact (a sequence has a subsequence converging in the first coordinate, and a further subsequence converging in the second), so (xkj,ukj)→(x,u)(x_{k_j}, u_{k_j}) \to (x, u) with ∥u∥=1\|u\| = 1. The function (x,u)↦uTA(x)u(x, u) \mapsto u^{\mathsf T}A(x)u is continuous, so uTA(x)u≤0u^{\mathsf T}A(x)u \leq 0, contradicting positive definiteness of A(x)A(x).

© 2026 NeckPinch (www.neckpinch.com). All content in the guidebook (text, mathematics, figures and exercises) is protected by copyright. All rights reserved. No part may be copied, republished or redistributed without written permission.