Math 2.0

General topology Proof

Proof that a set is compact iff it is complete and totally bounded

Builds on Compactness via open coversTotally bounded setComplete metric spaceSubspace metricEpsilon characterisation of Cauchy sequencesConvergence of a sequence in a metric spaceOpen ballOpen balls are openMetric topologyDiameter of a setTriangle inequality for a metricThe reals are Archimedean

Proof

We prove the two directions separately. Throughout, the metric on KK is the subspace metric, so distances in KK are distances in XX. We test compactness of KK with open covers by open subsets of X.

First, let KK be compact. We show that KK is totally bounded.

  1. Fix a real ε>0\varepsilon > 0. The open balls B(y,ε/3)B(y, \varepsilon / 3), for y∈Ky \in K, are open in XX and cover KK. So finitely many of them cover KK.
  2. For z,w∈B(y,ε/3)z, w \in B(y, \varepsilon / 3), the triangle inequality gives d(z,w)<2ε/3d(z, w) < 2 \varepsilon / 3. So each ball has diameter at most 2ε/3<ε2 \varepsilon / 3 < \varepsilon.
  3. Thus KK is covered by finitely many sets of diameter less than ε\varepsilon, for each ε>0\varepsilon > 0. So KK is totally bounded.

Next, let KK be compact. We show that KK is complete.

  1. Let (xn)(x_n) be a Cauchy sequence of points of KK. Suppose, for a contradiction, that it converges to no point of KK. Then KK is nonempty, since it contains x1x_1.
  2. Let y∈Ky \in K. Since (xn)(x_n) does not converge to yy, there is εy>0\varepsilon_y > 0 such that for each NN some n≥Nn \ge N has d(xn,y)≥2εyd(x_n, y) \ge 2 \varepsilon_y.
  3. Since (xn)(x_n) is Cauchy, there is NyN_y with d(xm,xn)<εyd(x_m, x_n) < \varepsilon_y for all m,n≥Nym, n \ge N_y.
  4. By step 5, choose m≥Nym \ge N_y with d(xm,y)≥2εyd(x_m, y) \ge 2 \varepsilon_y. For each n≥Nyn \ge N_y, the triangle inequality gives d(xn,y)≥d(xm,y)−d(xm,xn)>εyd(x_n, y) \ge d(x_m, y) - d(x_m, x_n) > \varepsilon_y.
  5. So the ball B(y,εy)B(y, \varepsilon_y) contains no xnx_n with n≥Nyn \ge N_y.
  6. The balls B(y,εy)B(y, \varepsilon_y), for y∈Ky \in K, are open and cover KK. By compactness, finitely many cover KK, say those with centres y1,…,ypy_1, \ldots, y_p.
  7. Let N=max⁡(Ny1,…,Nyp)N = \max(N_{y_1}, \ldots, N_{y_p}). The point xNx_N lies in KK, so xN∈B(yj,εyj)x_N \in B(y_j, \varepsilon_{y_j}) for some jj. Since N≥NyjN \ge N_{y_j}, this contradicts step 8.
  8. Hence each Cauchy sequence in KK converges to a point of KK, and KK is complete.

Conversely, let KK be complete and totally bounded. We argue by contradiction.

  1. Let (Ui)i∈I(U_i)_{i \in I} be open subsets of XX with K⊆⋃i∈IUiK \subseteq \bigcup_{i \in I} U_i. Call a set C⊆KC \subseteq K bad when no finite subfamily of (Ui)(U_i) covers CC. Suppose that KK is bad.
  2. A bad set is nonempty, because the empty subfamily covers ∅\varnothing.
  3. Claim: if C⊆KC \subseteq K is bad and η>0\eta > 0, then some bad C′⊆CC' \subseteq C has diam⁡(C′)<η\operatorname{diam}(C') < \eta. Indeed, total boundedness gives sets A1,…,AnA_1, \ldots, A_n of diameter less than η\eta that cover KK.
  4. Then C=(C∩A1)∪⋯∪(C∩An)C = (C \cap A_1) \cup \cdots \cup (C \cap A_n). If no C∩AkC \cap A_k were bad, joining finitely many finite subfamilies would cover CC. So some C′=C∩AkC' = C \cap A_k is bad, and diam⁡(C′)≤diam⁡(Ak)<η\operatorname{diam}(C') \le \operatorname{diam}(A_k) < \eta.
  5. Let C0=KC_0 = K. For n≥1n \ge 1, apply step 14 to Cn−1C_{n-1} with η=1/n\eta = 1/n. We get bad sets K⊇C1⊇C2⊇⋯K \supseteq C_1 \supseteq C_2 \supseteq \cdots with diam⁡(Cn)<1/n\operatorname{diam}(C_n) < 1/n.
  6. By step 13, choose xn∈Cnx_n \in C_n for each n≥1n \ge 1. For m≥nm \ge n, both xmx_m and xnx_n lie in CnC_n, so d(xm,xn)<1/nd(x_m, x_n) < 1/n.
  7. Let ε>0\varepsilon > 0. Since the reals are Archimedean, there is NN with Nε>1N \varepsilon > 1. Then d(xm,xn)<1/N<εd(x_m, x_n) < 1/N < \varepsilon for m,n≥Nm, n \ge N. So (xn)(x_n) is Cauchy.
  8. Since KK is complete, xn→xx_n \to x for some x∈Kx \in K. Choose ii with x∈Uix \in U_i.
  9. The set UiU_i is open in the metric topology. So there is r>0r > 0 with B(x,r)⊆UiB(x, r) \subseteq U_i.
  10. Choose nn with 1/n<r/21/n < r/2 and d(xn,x)<r/2d(x_n, x) < r/2. This is possible by the Archimedean property and xn→xx_n \to x.
  11. Let z∈Cnz \in C_n. Then d(z,x)≤d(z,xn)+d(xn,x)<1/n+r/2<rd(z, x) \le d(z, x_n) + d(x_n, x) < 1/n + r/2 < r. So Cn⊆B(x,r)⊆UiC_n \subseteq B(x, r) \subseteq U_i.
  12. Thus the single set UiU_i covers CnC_n, and CnC_n is not bad. This contradicts step 16.
  13. So some finite subfamily of (Ui)(U_i) covers KK. By compactness via open covers, KK is compact.

Idea

Compactness gives finite covers by small balls, which is total boundedness. A Cauchy sequence with no limit stays away from each point, so the balls witnessing this would need infinitely many members. For the converse, a cover with no finite subcover has a "bad" piece at every scale. The bad pieces shrink to a point, and the open set around that point swallows a whole bad piece.

Reading path

To understand this page from the ground up, read these 72 pages in order. The foundations come first. The path takes the proofs Proof of the approximation property of the supremum, Proof of the diameter characterisation of Cauchy sequences, Proof that the reals form an ordered field, with the Cauchy sequence construction, Proof of the description of the open sets of a metric space, Proof that compactness of a subset can be tested with open sets of the ambient space, Proof that the reals are Archimedean from the completeness axiom, Proof that open balls are open.

  1. Construction of the reals from Cauchy sequences concept
  2. Element definition
  3. Extended real number line object
  4. Integers object
  5. Ordered field definition
  6. Proposition concept
  7. Rational numbers object
  8. Real numbers object
  9. Set bounded above definition
  10. Set definition
  11. Ring of integers statement
  12. Archimedean ordered field definition
  13. Conjunction definition
  14. Disjunction definition
  15. Implication definition
  16. Predicate definition
  17. The reals form a field statement
  18. Supremum definition
  19. Empty set object
  20. Family of sets definition
  21. Ordered pair definition
  22. Intersection definition
  23. Union definition
  24. The rationals form a field statement
  25. Existential quantifier definition
  26. Universal quantifier definition
  27. Completeness axiom statement
  28. Cartesian product definition
  29. Subset definition
  30. Union of a family of sets definition
  31. The rationals form an ordered field statement
  32. Uniqueness quantifier definition
  33. Binary relation definition
  34. Order on the reals definition
  35. Topological space definition
  36. Antisymmetric relation definition
  37. Reflexive relation definition
  38. Transitive relation definition
  39. Function definition
  40. Subspace topology definition
  41. Preorder definition
  42. Restriction of a function definition
  43. Metric space definition
  44. Partial order definition
  45. Subspace metric definition
  46. Convergence of a sequence in a metric space definition
  47. Open ball definition
  48. Triangle inequality for a metric statement
  49. Diameter of a set definition
  50. Total order definition
  51. Metric topology definition
  52. Totally bounded set definition
  53. Proof of the diameter characterisation of Cauchy sequences proof
  54. Open set definition
  55. Proof that the reals form an ordered field, with the Cauchy sequence construction proof
  56. Epsilon characterisation of Cauchy sequences statement
  57. Open cover definition
  58. Proof of the description of the open sets of a metric space proof
  59. Complete metric space definition
  60. The reals form an ordered field statement
  61. Compact space definition
  62. Open sets of a metric space statement
  63. Proof of the approximation property of the supremum proof
  64. Compact set definition
  65. Proof that open balls are open proof
  66. Approximation property of the supremum statement
  67. Proof that compactness of a subset can be tested with open sets of the ambient space proof
  68. Open balls are open statement
  69. Proof that the reals are Archimedean from the completeness axiom proof
  70. Compactness via open covers statement
  71. The reals are Archimedean statement
  72. Proof that a set is compact iff it is complete and totally bounded proof

Where this leads

26 pages build on this one.

Further reading

  1. Web https://www.math.ucla.edu/~tao/resource/general/121.1.00s/compact.pdf, Theorem 3.5 and Theorem 6.1
About this page
TagWGDP75TY9F
URIm2://WGDP75TY9F
Kindproof
WritingW0 stub
MSC54E45
ProvesCompact iff complete and totally bounded
UsesCompactness via open covers, Totally bounded set, Complete metric space, Subspace metric, Epsilon characterisation of Cauchy sequences, Convergence of a sequence in a metric space, Open ball, Open balls are open, Metric topology, Diameter of a set, Triangle inequality for a metric, The reals are Archimedean
Changed4 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.