Tutorials › Real Analysis › Complete and Totally Bounded Spaces

Compact Metric Spaces · Tutorial 696 of 1000

Complete and Totally Bounded Spaces

Separate the roles of completeness and total boundedness, then use them to control continuous maps and finite products.

Advanced 10 min read

What You'll Learn

  • Distinguish completeness from total boundedness and understand the role of each condition
  • Test the two properties on a closed interval, a rational subset, and the real line
  • Prove that continuous maps from complete, totally bounded spaces are uniformly continuous
  • Deduce that such maps have bounded images
  • Establish completeness of finite products with the maximum metric

Two Different Forms of Control

Completeness and total boundedness impose different kinds of control on a metric space. Completeness concerns sequences: every Cauchy sequence must converge to a point of the space. Total boundedness concerns finite approximation: at each positive scale, finitely many balls of that radius cover the space. Neither condition should be mistaken for the other. The useful situation is when both hold.

Recall that a metric space is complete if every Cauchy sequence in it converges in the space, and is totally bounded if, for every \(\varepsilon>0\), it has a finite \(\varepsilon\)-net. As in the previous tutorial, a finite \(\varepsilon\)-net consists of centers in the space such that every point is at distance strictly less than \(\varepsilon\) from at least one center.

Definition: A metric space is complete and totally bounded if it is both complete and totally bounded. The two conditions refer to separate properties: convergence of Cauchy sequences, and the availability of finite approximations at every positive scale.

Earlier in this course, the Sequential Characterization of Total Boundedness established that every sequence in a totally bounded metric space has a Cauchy subsequence. If the space is also complete, that Cauchy subsequence converges in the space. We will use this sequence-extraction mechanism to prove a useful consequence for continuous functions.

Worked Examples: Checking the Two Conditions

Worked Example: A Closed Interval

Consider \(I=[-2,3]\) with the usual metric. The real line is complete, and \(I\) is closed in the real line. By the Closed Subset of a Complete Space theorem, \(I\), with the restricted metric, is complete.

To check total boundedness directly, fix \(\varepsilon>0\). Choose a positive integer \(N\) such that \(5/N<\varepsilon\), and use the finite set

$$ F=\left\{-2+\frac{5j}{N}:j=0,1,\ldots,N\right\}\subseteq I. $$

For any \(x\in[-2,3]\), choose \(j\in\{0,\ldots,N-1\}\) so that \(-2+5j/N\leq x\leq -2+5(j+1)/N\), with the endpoint \(x=3\) covered by \(j=N-1\). Then

$$ 0\leq x-\left(-2+\frac{5j}{N}\right)\leq\frac{5}{N}<\varepsilon. $$

Thus \(F\) is a finite \(\varepsilon\)-net for \(I\). Since this construction works at every positive scale, \(I\) is totally bounded as well as complete.

Worked Example: A Totally Bounded but Incomplete Space

Let \(A=\mathbb{Q}\cap[0,1]\), with the usual metric. Given \(\varepsilon>0\), choose a positive integer \(N\) such that \(1/N<\varepsilon\). The rational points \(j/N\), for \(j=0,\ldots,N\), belong to \(A\). For any \(x\in A\), choose \(j\) with \(j/N\leq x\leq(j+1)/N\), using \(j=N-1\) if \(x=1\). It follows that

$$ \left|x-\frac{j}{N}\right|\leq\frac{1}{N}<\varepsilon. $$

Therefore \(A\) is totally bounded.

It is not complete. Let \(\alpha=\sqrt{2}/2\), which is irrational and belongs to \((0,1)\). For each positive integer \(n\), define

$$ q_n=\frac{\lfloor 10^n\alpha\rfloor}{10^n}. $$

Each \(q_n\) is rational and lies in \([0,1]\), and the defining property of the floor gives \(0\leq\alpha-q_n<10^{-n}\). Hence \(q_n\to\alpha\) in the real line, so \((q_n)\) is Cauchy. If it converged in \(A\) to some \(q\in A\), it would also converge in the real line to \(q\). Uniqueness of limits in a metric space would give \(q=\alpha\), contradicting that \(q\) is rational. Thus \(A\) is totally bounded but incomplete.

Worked Example: A Complete Space That Is Not Totally Bounded

The real line with its usual metric is complete, but it is not totally bounded. Indeed, every totally bounded metric space is bounded, as established earlier in the course. The real line is unbounded: for any proposed center \(a\in\mathbb{R}\) and radius \(R>0\), the point \(a+R+1\) has distance \(R+1>R\) from \(a\). Consequently \(\mathbb{R}\) cannot be totally bounded.

This example and the preceding one show why the two conditions cannot be substituted for each other. Total boundedness alone does not ensure that Cauchy sequences have limits in the space, and completeness alone does not provide finite approximations at arbitrarily small scales.

Continuous Maps Are Uniformly Continuous

The combination of the two conditions gives a global conclusion from pointwise continuity. Total boundedness supplies a Cauchy subsequence from any sequence, and completeness turns that subsequence into a convergent one. If a continuous map failed to be uniformly continuous, points could be chosen arbitrarily close together while their images stayed a fixed positive distance apart. The subsequence mechanism rules out that possibility.

Theorem: Let \(X\) be a complete and totally bounded metric space, let \(Y\) be a metric space, and let \(f:X\to Y\) be continuous. Then \(f\) is uniformly continuous. In addition, \(f[X]\) is bounded in \(Y\).

Proof. If \(X\) is empty, both conclusions hold trivially. Suppose \(X\) is nonempty. We first prove uniform continuity. Assume, to the contrary, that \(f\) is not uniformly continuous. By the negation of the definition of uniform continuity, there is an \(\eta>0\) such that for every \(\delta>0\) there are \(x,y\in X\) satisfying

$$ d_X(x,y)<\delta \qquad\text{and}\qquad d_Y(f(x),f(y))\geq\eta. $$

For each positive integer \(n\), apply this statement with \(\delta=1/n\), obtaining \(x_n,y_n\in X\) such that

$$ d_X(x_n,y_n)<\frac{1}{n}, \qquad d_Y(f(x_n),f(y_n))\geq\eta. $$

By the Sequential Characterization of Total Boundedness, \((x_n)\) has a Cauchy subsequence \((x_{n_k})\). Since \(X\) is complete, there is an \(x\in X\) such that \(x_{n_k}\to x\). The triangle inequality gives

$$ d_X(y_{n_k},x) \leq d_X(y_{n_k},x_{n_k})+d_X(x_{n_k},x) <\frac{1}{n_k}+d_X(x_{n_k},x). $$

Both terms on the right tend to zero, so \(y_{n_k}\to x\) as well. Continuity of \(f\) at \(x\), or equivalently the Sequential Characterization of Continuity, now gives \(f(x_{n_k})\to f(x)\) and \(f(y_{n_k})\to f(x)\). Another application of the triangle inequality yields

$$ d_Y(f(x_{n_k}),f(y_{n_k})) \leq d_Y(f(x_{n_k}),f(x))+d_Y(f(x),f(y_{n_k})) \longrightarrow 0. $$

This contradicts \(d_Y(f(x_{n_k}),f(y_{n_k}))\geq\eta\) for every \(k\). Therefore \(f\) is uniformly continuous.

To prove boundedness of the image, use uniform continuity with the target tolerance \(1\). There is a \(\delta>0\) such that \(d_X(u,v)<\delta\) implies \(d_Y(f(u),f(v))<1\). Total boundedness gives a finite \(\delta\)-net \(\{a_1,\ldots,a_m\}\) for \(X\). For every \(x\in X\), some \(a_j\) satisfies \(d_X(x,a_j)<\delta\), and therefore \(d_Y(f(x),f(a_j))<1\). Thus

$$ f[X]\subseteq\bigcup_{j=1}^{m}B_1(f(a_j)). $$

A finite union of balls of radius \(1\) is bounded: for example, fix \(f(a_1)\); the triangle inequality bounds the distance from any point in any one of these balls to \(f(a_1)\) by \(1+\max_j d_Y(f(a_j),f(a_1))\). Hence \(f[X]\) is bounded. \(\square\)

Finite Products Preserve Both Conditions

The two properties also combine well under a basic construction. For two metric spaces \(X\) and \(Y\), equip \(X\times Y\) with the maximum metric \(d((x_1,y_1),(x_2,y_2))=\max\{d_X(x_1,x_2),d_Y(y_1,y_2)\}\). Total boundedness of this product follows from the earlier theorem that finite products preserve total boundedness. Completeness can be checked coordinate by coordinate.

Theorem: If \(X\) and \(Y\) are complete and totally bounded metric spaces, then \(X\times Y\), equipped with the maximum metric, is complete and totally bounded.

Proof. Total boundedness follows from the Finite Products Preserve Total Boundedness theorem. To prove completeness, let \(((x_n,y_n))\) be a Cauchy sequence in \(X\times Y\). For every \(\varepsilon>0\), there is an \(N\) such that for \(m,n\geq N\),

$$ \max\{d_X(x_m,x_n),d_Y(y_m,y_n)\}<\varepsilon. $$

Each coordinate distance is bounded above by this maximum, so \((x_n)\) is Cauchy in \(X\) and \((y_n)\) is Cauchy in \(Y\). Completeness gives points \(x\in X\) and \(y\in Y\) such that \(x_n\to x\) and \(y_n\to y\). Given \(\varepsilon>0\), for all sufficiently large \(n\) both \(d_X(x_n,x)<\varepsilon\) and \(d_Y(y_n,y)<\varepsilon\). Therefore

$$ d((x_n,y_n),(x,y)) =\max\{d_X(x_n,x),d_Y(y_n,y)\}<\varepsilon. $$

Thus \((x_n,y_n)\to(x,y)\) in the maximum metric, proving that the product is complete. \(\square\)

Worked Example: The Unit Square

The interval \([0,1]\) is complete and totally bounded: completeness follows because it is closed in the complete real line, and a finite grid with spacing less than any prescribed \(\varepsilon>0\) gives a finite \(\varepsilon\)-net. Apply the product theorem to two copies of \([0,1]\). The square \([0,1]\times[0,1]\), with the maximum metric, is complete and totally bounded.

The metric here measures the larger of the two coordinate changes. For example, the distance from \((1/4,1/3)\) to \((1/2,1/4)\) is

$$ \max\left\{\left|\frac14-\frac12\right|, \left|\frac13-\frac14\right|\right\} =\max\left\{\frac14,\frac{1}{12}\right\} =\frac14. $$

A finite grid in each coordinate gives a finite net for the square: if each coordinate differs from a grid coordinate by less than \(\varepsilon\), then their maximum is also less than \(\varepsilon\). The product theorem packages this finite-approximation argument together with the coordinatewise completeness argument.

Why the Pairing Matters

The examples distinguish the jobs done by the two hypotheses. Total boundedness lets us find Cauchy subsequences at any chosen scale; it does not ensure that their limits belong to the space, as the rational example shows. Completeness ensures that Cauchy sequences converge in the space; it does not provide finite nets, as the real line shows. In the continuous-map theorem, both steps are needed: first extract a Cauchy subsequence, then use completeness to obtain a limit at which continuity can be applied.

A common pitfall is to replace total boundedness with boundedness. A single large ball gives no finite cover by small balls, and therefore does not provide the subsequence control used in the proof. Another is to use pointwise continuity where a global estimate is required. The contradiction argument explains why the stronger conclusion of uniform continuity follows here: a failure of uniformity would produce two sequences approaching each other while their images remain separated.

These examples and results prepare the way for the next step: understanding what the combination of completeness and total boundedness implies for compactness in a metric space.

Check Your Understanding

Use the definitions and arguments in this tutorial to answer the following questions.

  1. Which of completeness and total boundedness is used to turn a Cauchy subsequence into a convergent subsequence?
  2. Why does \(\mathbb{Q}\cap[0,1]\) have finite nets but fail to be complete?
  3. In the uniform-continuity proof, why do both \(x_{n_k}\) and \(y_{n_k}\) converge to the same point?
  4. How does a finite \(\delta\)-net, together with uniform continuity, give a bounded image?
  5. Why does coordinatewise convergence imply convergence in the maximum metric?