Altanis

7.1Complete Metric Spaces

Updated 18 Oct 2026Chapter (PDF)

Before we proceed, we will revisit standard metrics and properties about them.

[7.1.1]Recap#
  1. Rn\bR^n has two common metrics: the Euclidean metric

    d(x,y)=[∑i=1n(xi−yi)2]1/2d(x, y) = \left[ \sum_{i = 1}^n (x_i - y_i)^2 \right]^{1/2}

    and the square metric ρ(x,y)=max⁡1≤i≤n∣xi−yi∣\rho(x, y) = \max_{1 \le i \le n} |x_i - y_i|.

  2. By simple geometry, note that ρ(x,y)≤d(x,y)≤nρ(x,y)\rho(x, y) \le d(x, y) \le \sqrt{n} \rho(x, y) for x,y∈Rnx, y \in \bR^n. Thus properties of ρ\rho (such as sequence convergence, sequences being Cauchy, the topology generated by the metric) are brought to dd immediately by this inequality. Note that the constant n\sqrt{n} is the only obstruction, and it is exactly what fails in infinite dimensions (since n→∞\sqrt{n} \to \infty as n→∞n \to \infty).

  3. It is easy to show the metric topology generated by ρ\rho coincides perfectly with the product topology on Rn\bR^n. By the inequality from before, the metric topology generated by dd also coincides with the product topology on Rn\bR^n.

  4. Note that neither metric generalizes cleanly to infinite products, since both may take the value ∞\infty. Instead, given any metric dd on a space XX, define the standard bounded metric

    d‾(x,y)=min⁡{d(x,y),1}.\bar{d}(x, y) = \min\{d(x, y), 1\}.

    This induces the same topology as dd, so boundedness is not a topological property; it depends on the choice of metric. Truncating in this way costs nothing topologically and is what makes the infinite constructions below well-defined.

  5. We now generalize the square metric to Rω\bR^\omega. The most direct approach is the uniform metric

    ρ‾(x,y)=sup⁡n∈Z+{d‾(xn,yn)},\bar{\rho}(x, y) = \sup_{n \in \bZ_+} \{\bar{d}(x_n, y_n) \},

    replacing max⁡\max with sup⁡\sup and truncating the distances above by 11. The topology this induces is the uniform topology. Alternatively, we may define the product metric

    D(x,y)=sup⁡n∈Z+{d‾(xn,yn)/n},D(x, y) = \sup_{n \in \bZ_+} \{\bar{d}(x_n, y_n) / n\},

    which is the same as the uniform metric, but damps the nnth coordinate so that later coordinates are less “important.” Fittingly, it is the metric that produces the product topology on Rω\bR^\omega.

  6. These metrics can be placed on the space YXY^X, the set of functions f:X→Yf: X \to Y. Then the product metric sets the mode of convergence to pointwise on this function space, whereas the uniform metric sets the mode to uniform convergence.

  7. In defining metrics on function spaces, consider the space B(X,Y)B(X, Y) of bounded functions f:X→Yf: X \to Y. We may define the sup metric

    ρ(f,g)=sup⁡x∈X{d(f(x),g(x))}.\rho(f, g) = \sup_{x \in X} \{d(f(x), g(x)) \}.

    Note that we do not need to use the bounded metric d‾\bar{d}, since the functions are already bounded above, and so sup⁡\sup works out of the box. In general, note that the relationship between the uniform and sup metrics are simply ρ‾(f,g)=min⁡{ρ(f,g),1}\bar{\rho}(f, g) = \min\{\rho(f, g), 1\}.

  8. Note that the product topology is strictly coarser than the uniform topology, which is strictly coarser than the box topology.

[7.1.2]Definition(Cauchy Sequence, Complete Metric Space)#

Let (X,d)(X, d) be a metric space. A sequence (xn)⊆X(x_n) \subseteq X is said to be Cauchy if, for any ε>0\epsilon > 0, there is some N∈Z+N \in \bZ_+ such that d(xm,xn)<εd(x_m, x_n) < \epsilon for every m,n≥Nm, n \ge N. We say the metric space XX is complete if every Cauchy sequence converges.

[7.1.3]Theorem(Equivalence of Convergent Sequences and Cauchy Sequences in Metric Spaces)#

In a complete metric space (X,d)(X, d), a sequence converges if and only if it is Cauchy.

This fact is important in analysis since, in complete metric spaces, we can demonstrate a sequence converges if it is Cauchy, without needing a candidate for the limit.

[7.1.4]Theorem(Closed Subspace of Complete Metric Space is Complete)#

A closed subspace of a complete metric space is complete.

Proof.

Of course, a subspace topology derived from the metric topology is metric. Consider any Cauchy sequence contained in the closed subspace. It necessarily converges to a limit point of the closed subspace, but closed spaces contain all their limit points, and so the Cauchy sequence converges to a point in the closed subspace. Thus the closed subspace is complete.

[7.1.5]Theorem(Complete if Every Cauchy Sequence has Accumulation Point)#

A metric space (X,d)(X, d) is complete if every Cauchy sequence has a convergent subsequence.

Proof.

Suppose if (xn)⊆X(x_n) \subseteq X is a Cauchy sequence with a subsequence xnk→xx_{n_k} \to x. For any ε>0\epsilon > 0, note there is some N1∈Z+N_1 \in \bZ_+ such that d(xn,xnk)<ε/2d(x_n, x_{n_k}) < \epsilon/2 for every n,nk≥N1n, n_k \ge N_1, since the sequence is Cauchy. Moreover, there is some N2∈Z+N_2 \in \bZ_+ such that d(xnk,x)<ε/2d(x_{n_k}, x) < \epsilon/2 for every nk≥N2n_k \ge N_2 by definition of convergence. Thus, for any n≥max⁡{N1,N2}n \ge \max\{N_1, N_2\}, we have that

d(xn,x)≤d(xn,xnk)+d(xnk,x)<ε/2+ε/2=ε.d(x_n, x) \le d(x_n, x_{n_k}) + d(x_{n_k}, x) < \epsilon/2 + \epsilon/2 = \epsilon.

Since all Cauchy sequences are convergent, the space is complete.

[7.1.6]Theorem(Euclidean Space is Complete in its Standard Metrics)#

Euclidean space is complete under the standard and square metrics.

Proof.

Let (Rn,ρ)(\bR^n, \rho) be Euclidean space endowed with the square metric. For any Cauchy sequence xnx_n in this metric space, there is some N∈Z+N \in \bZ_+ such that ρ(xm,xn)<1\rho(x_m, x_n) < 1 for every m,n≥Nm, n \ge N. Then choose a number

M=max⁡{ρ(x0,0n),ρ(x1,0n),…,ρ(xN−1,0n),ρ(xN,0n)+1}.M = \max\{\rho(x_0, \vb{0}_n), \rho(x_1, \vb{0}_n), \dots, \rho(x_{N - 1}, \vb{0}_n), \rho(x_N, \vb{0}_n) + 1\}.

Note then that xnx_n is fully contained in [−M,M]n[-M, M]^n. Note this box is compact, and so xnx_n has a convergent subsequence by sequential compactness. Thus Cauchy sequences converge and so the space is complete.

Finally, for (Rn,d)(\bR^n, d), note that a sequence converges if and only if it converges with respect to ρ\rho, and the same for the sequence being Cauchy.

[7.1.7]Theorem(Sequence in Product Space Converges iff. Components Converge)#

Let {Xλ}λ∈Λ\{X_\lambda\}_{\lambda \in \Lambda} be an arbitrary collection of spaces with X=∏λ∈ΛXλX = \prod_{\lambda \in \Lambda} X_\lambda its product. Then a sequence xn→x\vb{x}_n \to \vb{x} in the product space if and only if πλ(xn)→πλ(x)\pi_\lambda(\vb{x}_n) \to \pi_\lambda(\vb{x}) for every λ∈Λ\lambda \in \Lambda.

Proof.

(⟹)(\Longrightarrow): Note that πλ\pi_\lambda is continuous for every λ∈Λ\lambda \in \Lambda, so the image of xn\vb{x}_n under each projection maps to the projection of x\vb{x}.

(⟸)(\Longleftarrow): Let xn\vb{x}_n be some sequence such that there exists some x∈X\vb{x} \in X for which πλ(xn)→πλ(x)\pi_\lambda(\vb{x}_n) \to \pi_\lambda(\vb{x}) for every λ∈Λ\lambda \in \Lambda. Let UU be any basic open neighborhood of x\vb{x}. By definition, we have that there exist indices {λk}k=1n\{\lambda_k\}_{k = 1}^n such that

U=⋂k=1nπλ−1(Uλ),U = \bigcap_{k = 1}^n \pi_\lambda^{-1}(U_\lambda),

where Uλk⊆XλkU_{\lambda_k} \subseteq X_{\lambda_k} is open. For each k∈{1,…,n}k \in \{1, \dots, n\}, there is some Nk∈Z+N_k \in \bZ_+ such that πλk(xn)∈πλk(Uλ)\pi_{\lambda_k}(\vb{x}_n) \in \pi_{\lambda_k}(U_\lambda) for every n≥Nkn \ge N_k. Choosing N=max⁡{Nk}k=1nN = \max\{N_k\}_{k = 1}^n, note that xn∈U\vb{x}_n \in U for every n≥Nn \ge N, completing the proof.

[7.1.8]Theorem((Rω,D)(\bR^\omega, D) is complete)#

The metric space (Rω,D)(\bR^\omega, D), with D(x,y)=sup⁡n∈Z+{d‾(x,y)/n}D(x, y) = \sup_{n \in \bZ_+} \{ \bar{d}(x, y) / n \} is complete.

Proof.

Suppose xn\vb{x}_n is Cauchy in this metric space. Note that

d‾(πn(xn),πn(yn))≤nD(x,y),\bar{d}(\pi_n(\vb{x}_n), \pi_n(\vb{y}_n)) \le nD(\vb{x}, \vb{y}),

and so πn(xn)\pi_n(\vb{x}_n) is a Cauchy sequence in (R,d‾)(\bR, \bar{d}) for each n∈Z+n \in \bZ_+. This metric space is complete, and so the projections of the sequence converge. By the previous theorem, this means xn\vb{x}_n converges.

[7.1.9]Example(Completeness is not a Topological Property)#

Note that R\bR is complete in its usual metric. Now consider the subspace (−1,1)(-1, 1) with the same metric, d(x,y)=∣x−y∣d(x, y) = |x - y|. But note the Cauchy sequence xn=1−1/nx_n = 1 - 1/n converges to 11, which is outside of this interval. Thus this space is not complete, even though (−1,1)≅R(-1, 1) \cong \bR. Thus completeness is not a topological property.

[7.1.10]Definition(Uniform Metric, Revisited)#

Let (Y,d)(Y, d) be a metric space, together with an induced bounded metric d‾(x,y)=min⁡{d(x,y),1}\bar{d}(x, y) = \min\{d(x, y), 1\}. Let YXY^X be the space of functions {f∣f:X→Y}\{f \mid f: X \to Y\}. Then we define the uniform metric

ρ‾(f,g)=sup⁡x∈X{d(f(x),g(x))}.\bar{\rho}(f, g) = \sup_{x \in X} \{d(f(x), g(x))\}.
[7.1.11]Remark#

Note that if XX is an indexing set, the space YXY^X is the set of sequences in YY indexed by XX. Then the uniform metric defined for sequences coincides with the uniform metric defined in terms of functions. Of course, this is all true because a sequence is truly a function from the indexing set into YY.

[7.1.12]Theorem(Criterion for Complete Metric Space Under Unifom Metric)#

Suppose (Y,d)(Y, d) is a complete metric space. Then the metric space (YX,ρ‾)(Y^X, \bar{\rho}) is complete as well.

Proof.

Let (fn)n∈Z+(f_n)_{n \in \bZ_+} be a Cauchy sequence in YXY^X, where each fn:X→Yf_n: X \to Y. For a fixed x∈Xx \in X, consider the sequence (fn(x))n∈Z+(f_n(x))_{n \in \bZ_+} in YY. Fix 1≥ε>01 \ge \epsilon > 0, and let N∈Z+N \in \bZ_+ such that ρ‾(fm,fn)<ε\bar{\rho}(f_m, f_n) < \epsilon for every m,n≥Nm, n \ge N. Then, for any m,n≥Nm, n \ge N, note that

d(fm(x),fn(x))<sup⁡x∈X{d(fm(x),fn(x))}=ρ‾(fm,fn)<ε,d(f_m(x), f_n(x)) < \sup_{x \in X} \{d(f_m(x), f_n(x))\} = \bar{\rho}(f_m, f_n) < \epsilon,

and so (fn(x))(f_n(x)) is Cauchy. Since YY is complete, we know this sequence converges. Thus, for every x∈Xx \in X, define f(x)f(x) as the value (fn(x))(f_n(x)) converges to.

Finally, we show fn→ff_n \to f in YXY^X. Fix some ε>0\epsilon > 0, then note there is some N∈Z+N \in \bZ_+ such that ρ‾(fm,fn)<ε\bar{\rho}(f_m, f_n) < \epsilon for every m,n≥Nm, n \ge N. Fix nn and let m→∞m \to \infty, then note that by the limit comparison theorem and continuity of the metric, ρ‾(f,fn)≤ε\bar{\rho}(f, f_n) \le \epsilon. Thus fn→ff_n \to f.

If ε\epsilon were chosen to be greater than 11 in either case, the bounded metric ρ‾\bar{\rho} would evaluate to 11, making the proceeding statements trivial.

Now, when defining YXY^X for YY a metric space, let XX be a topological space. The set YXY^X is not different, but we may now consider subsets that we were unable to do before.

[7.1.13]Definition(Space of Continuous and Bounded Functions)#

Let XX be a topological space and YY be a metric space. The space of continuous maps, denoted C(X,Y)⊆YXC(X, Y) \subseteq Y^X, is given by

C(X,Y)={f∣f:X→Y is continuous}.C(X, Y) = \{f \mid f: X \to Y \text{ is continuous}\}.

Similarly, the space of bounded maps, denoted B(X,Y)⊆YXB(X, Y) \subseteq Y^X, is given by

B(X,Y)={f∣f:X→Y is bounded}.B(X, Y) = \{f \mid f: X \to Y \text{ is bounded} \}.

Recall that a map f:X→Yf: X \to Y, with YY a metric space, is said to be bounded if f(X)f(X) is contained in a single ball.

[7.1.14]Theorem#

Let XX be a topological space and (Y,d)(Y, d) a metric space. Then the spaces C(X,Y)C(X, Y) and B(X,Y)B(X, Y) are closed.

Proof.

Note these spaces are metric, so sequences probe limit points. We show that any sequences contained in these spaces converge inside the space.

Let (fn)(f_n) be a sequence of functions in C(X,Y)C(X, Y), meaning each fn:X→Yf_n: X \to Y is continuous, such that fn→ff_n \to f. Note that convergence in this space is uniform convergence, so ff is automatically continuous and so f∈C(X,Y)f \in C(X, Y). Since fn→ff_n \to f, for any ε>0\epsilon > 0 there is some N∈Z+N \in \bZ_+ such that ρ‾(fn,f)<ε\bar{\rho}(f_n, f) < \epsilon. Then, for any x∈Xx \in X, note that

d‾(fn(x),f(x))<ρ‾(fn,f)<ε.\bar{d}(f_n(x), f(x)) < \bar{\rho}(f_n, f) < \epsilon.

Note that ε\epsilon is an upper bound for d‾(fn(x),f(x))\bar{d}(f_n(x), f(x)) for every x∈Xx \in X, independent of ε\epsilon. Thus fn→ff_n \to f uniformly, and so ff is continuous, meaning f∈C(X,Y)f \in C(X, Y) and so the space is closed.

Now let (fn)(f_n) be a sequence of bounded functions in B(X,Y)B(X, Y), meaning there is some εn>0\epsilon_n > 0 for each fn:X→Yf_n: X \to Y such that fn(X)⊆Bεn(0)f_n(X) \subseteq B_{\epsilon_n}(\vb{0}). Note that for ε=1\epsilon = 1, there is some N∈Z+N \in \bZ_+ such that d(fn,f)<1d(f_n, f) < 1 for every n≥Nn \ge N. Note then that

d(0,f)≤d(0,fn)+d(fn,f)≤εn+1d(\vb{0}, f) \le d(\vb{0}, f_n) + d(f_n, f) \le \epsilon_n + 1

for every n≥Nn \ge N. Thus f∈BεN+1(0)f \in B_{\epsilon_N + 1}(\vb{0}), meaning f∈B(X,Y)f \in B(X, Y). Thus the space is closed, completing the proof.

[7.1.15]Theorem#

Let XX be a topological space and (Y,d)(Y, d) a complete metric space. Then the spaces C(X,Y)C(X, Y) and B(X,Y)B(X, Y) are complete.

[7.1.16]Definition(Sup Metric)#

If (Y,d)(Y, d) is a metric space, one can define another metric, the sup metric, on the set B(X,Y)B(X, Y) of bounded functions X→YX \to Y by the equation

d∞(f,g)=sup⁡x∈X{d(f(x),g(x))}.d_\infty(f, g) = \sup_{x \in X} \{ d(f(x), g(x)) \}.

Note that this metric is well defined since f(X)∪g(X)f(X) \cup g(X) is bounded above, and so d(f(x),g(x))d(f(x), g(x)) is bounded above for all x∈Xx \in X. In fact, the sup metric may be put on all other bounded sets. The sup metric is almost identical to the uniform metric, in which ρ‾(f,g)=min⁡{d∞(f,g),1}\bar{\rho}(f, g) = \min\{d_\infty(f, g), 1\}.

[7.1.17]Theorem(Metric Space Completion Theorem)#

Let (X,d)(X, d) be a metric space. Then there is an isometric embedding of XX into a complete metric space.

Proof.

Let x0∈Xx_0 \in X be fixed. For any a∈Xa \in X, define the map

φa(x)=d(x,a)−d(x,x0).\phi_a(x) = d(x, a) - d(x, x_0).

We show φa∈B(X,R)\phi_a \in B(X, \bR). Indeed, note that

d(x,a)≤d(x,x0)+d(x0,a),d(x, a) \le d(x, x_0) + d(x_0, a),
d(x,x0)≤d(x,a)+d(a,x0).d(x, x_0) \le d(x, a) + d(a, x_0).

Then we have that

(∣φa(x)∣=∣d(x,a)−d(x,x0)∣)≤∣d(x,x0)−d(x,a)∣≤d(x,x0)+d(x,a)≤d(x0,a).\Big(|\phi_a(x)| = |d(x, a) - d(x, x_0)|\Big) \le |d(x, x_0) - d(x, a)| \le d(x, x_0) + d(x, a) \le d(x_0, a).

Thus ∣φa(x)∣≤∣d(x0,a)∣|\phi_a(x)| \le |d(x_0, a)| for every x∈Xx \in X, meaning φa\phi_a is bounded and so φa∈B(X,R)\phi_a \in B(X, \bR). Finally, define the map

Φa:X→B(X,R)Φa(x)=φa(x).\Phi_a: X \to B(X, \bR) \quad \Phi_a(x) = \phi_a(x).

Note that B(X,R)B(X, \bR), where R\bR takes the Euclidean metric, is complete with the sup metric. We show Φa\Phi_a is an isometry. Note that an isometry between metric spaces automatically constitutes an embedding, completing the proof.

To show Φa\Phi_a is an isometry, we show

ρ(φa,φb)=d(a,b).\rho(\phi_a, \phi_b) = d(a, b).

For any a,b∈Xa, b \in X, note that

ρ(φa,φb)=sup⁡x∈X{d(φa(x),φb(x))}=sup⁡x∈X{∣φa(x)−φb(x)∣}=sup⁡x∈X{∣(d(x,a)−d(x,x0))−(d(x,b)−d(x,x0))∣}=sup⁡x∈X{∣d(x,a)−d(x,b)∣}≤d(x,a)+d(x,b)≤d(a,b).\begin{align*} \rho(\phi_a, \phi_b) &= \sup_{x \in X} \Big\{ d(\phi_a(x), \phi_b(x)) \Big\} \\ &= \sup_{x \in X} \left\{ \abs{\phi_a(x) - \phi_b(x)} \right\} \\ &= \sup_{x \in X} \Big\{ \abs{ \left( d(x, a) - d(x, x_0) \right) - \left( d(x, b) - d(x, x_0) \right) } \Big\} \\ &= \sup_{x \in X} \Big\{ \abs{ d(x, a) - d(x, b) } \Big\} \\ &\le d(x, a) + d(x, b) \le d(a, b). \end{align*}

Finally, note that this inequality cannot be strict. Take x=ax = a, and note

∣d(x,a)−d(x,b)∣=∣d(a,b)∣≮d(a,b).|d(x, a) - d(x, b)| = |d(a, b)| \not < d(a, b).
[7.1.18]Definition(Completion of a Metric Space)#

Let (X,d)(X, d) be any metric space. Let h:X→Yh: X \to Y be an isometric embedding into a complete metric space. Then the space h(X)‾\bar{h(X)} is a complete metric space in YY, which we call the completion.

[7.1.19]Example(Completion of (Q,d)(\bQ, d))#

A classic result is that the completion of Q\bQ under the metric d(x,y)=∣x−y∣d(x, y) = |x - y| is R\bR equipped with the standard Euclidean metric. Using the isometric embedding Φ\Phi into the complete space B(Q,R)B(\bQ, \bR), we map any a∈Qa \in \bQ to the function φa∈B(Q,R)\phi_a \in B(\bQ, \bR) defined by φa(x)=∣x−a∣−∣x∣\phi_a(x) = |x - a| - |x| (where x∈Qx \in \bQ).

Consider, for example, a Cauchy sequence (an)⊆Q(a_n) \subseteq \bQ that approximates 2\sqrt{2}. In Q\bQ, this sequence has no limit. However, the sequence of their images Φ(an)=φan\Phi(a_n) = \phi_{a_n} is Cauchy in B(Q,R)B(\bQ, \bR). Because B(Q,R)B(\bQ, \bR) is complete, this sequence of functions must converge uniformly. Indeed, φan(x)=∣x−an∣−∣x∣\phi_{a_n}(x) = |x - a_n| - |x| converges uniformly to the function f(x)=∣x−2∣−∣x∣f(x) = |x - \sqrt{2}| - |x|. This limit function ff is a well-defined bounded function in B(Q,R)B(\bQ, \bR), but it is not in the image Φ(Q)\Phi(\bQ). The “hole” at 2\sqrt{2} has thus materialized as a concrete boundary point of Φ(Q)\Phi(\bQ) in the function space.

Repeating this process for every Cauchy sequence in Q\bQ fills in all such holes. The closure of the image of Q\bQ is therefore exactly:

Φ(Q)‾={fr(x)=∣x−r∣−∣x∣:r∈R}.\overline{\Phi(\bQ)} = \Big\{ f_r(x) = |x - r| - |x| : r \in \bR \Big\}.

This closed subspace of B(Q,R)B(\bQ, \bR) is, by definition, the completion of Q\bQ. Note that this abstract space of functions is structurally identical to R\bR. The image of R\bR under this isometry is precisely Φ(Q)‾\overline{\Phi(\bQ)}, and so there is a surjective isometry between them. Since a surjective isometry is a perfect equivalence of metric spaces, we safely identify the completion of Q\bQ directly with R\bR.

[7.1.20]Remark(Intuition behind Completions)#

A completion effectively fills the holes in a metric space caused by Cauchy sequences that fail to converge. A Cauchy sequence consists of points that get arbitrarily close to one another; geometrically, it ought to converge to a limit. When a space is incomplete, it simply lacks the points that these sequences are aiming at. The completion process adjoins exactly these missing limit points. By embedding XX isometrically into the humongous complete function space B(X,R)B(X, \bR), we force the missing limit functions to exist. Thus we patch the holes of XX and guarantee that every Cauchy sequence in the new space converges.

Exercises#

[7.1.21]Problem#

Let (X,d)(X, d) be a metric space. Suppose that, for some ε>0\epsilon > 0, every ε\epsilon-ball in XX has compact closure. Show that XX is complete.

Proof.

Let (xn)(x_n) be any Cauchy sequence. There exists some N∈Z+N \in \bZ_+ such that d(xm,xn)<ε/2d(x_m, x_n) < \epsilon/2 for every m,n≥Nm, n \ge N. Then there exists finitely many closed ε\epsilon-balls whose union contains x1,…,xN−1x_1, \dots, x_{N - 1}. Adjoin to this list of balls a single ball of radius ε\epsilon containing all xN,xN+1,…x_N, x_{N + 1}, \dots. Let this list be {U1,…,Un}\{U_1, \dots, U_n\}, and note that {U1‾,…,Un‾}\{\bar{U_1}, \dots, \bar{U_n}\} still covers the sequence. Since each closure of the finitely many sets is compact, the set U=⋃k=1nUkU = \bigcup_{k = 1}^n U_k is compact. Since xnx_n is contained in the compact set UU, and compactness is equivalent to sequential compactness in metrizable spaces, we have that xnx_n admits a convergent subsequence. Thus xnx_n is a convergent sequence, making XX complete.

[7.1.22]Problem#

Let (X,dX)(X, d_X) and (Y,dY)(Y, d_Y) be metric spaces, with YY complete. Let A⊆XA \subseteq X. Show that, for any uniformly continuous f:A→Yf: A \to Y, there exists a unique, uniformly continuous extension to g:A‾→Yg: \bar{A} \to Y.

Proof.

Let x∈A‾∖Ax \in \bar{A} \setminus A. Then there exists a sequence (xn)(x_n) in AA such that xn→xx_n \to x. By uniform continuity of ff, for any ε>0\epsilon > 0 there exists a δ>0\delta > 0 such that

dX(x1,x2)<δ  ⟹  dY(f(x1),f(x2))<εd_X(x_1, x_2) < \delta \implies d_Y(f(x_1), f(x_2)) < \epsilon

for every x1,x2∈Ax_1, x_2 \in A. There is some N∈Z+N \in \bZ_+ such that dX(xm,xn)<δd_X(x_m, x_n) < \delta for every m,n≥Nm, n \ge N, and so dY(f(xm),f(xn))<εd_Y(f(x_m), f(x_n)) < \epsilon for every m,n≥Nm, n \ge N. Since ε\epsilon is arbitrary, we have that f(xn)f(x_n) is Cauchy in the complete space YY. Thus f(xn)→yxf(x_n) \to y_x.

Now suppose (zn)(z_n) is some other sequence in AA such that zn→xz_n \to x. Fix ε>0\epsilon > 0. Once again, by uniform continuity, there exists a δ>0\delta > 0 such that

dX(zn,xn)<δ  ⟹  dY(f(zn),f(xn))<εd_X(z_n, x_n) < \delta \implies d_Y(f(z_n), f(x_n)) < \epsilon

for every n∈Z+n \in \bZ_+. Since zn→xz_n \to x and xn→xx_n \to x, note that dX(zn,xn)→0d_X(z_n, x_n) \to 0, and so dY(f(zn),f(xn))→0d_Y(f(z_n), f(x_n)) \to 0. Since f(xn)→yxf(x_n) \to y_x, we have that f(zn)→yxf(z_n) \to y_x.

Define a function g:A‾→Yg: \bar{A} \to Y such that g∣A=fg|_A = f and g∣A‾∖A(x)=yxg|_{\bar{A} \setminus A}(x) = y_x, where yxy_x is chosen as per before. Note that any sequence tending to the same point xx in A‾∖A\bar{A} \setminus A has the same limit point yxy_x in the image, and so gg is well-defined. We prove this function is uniformly continuous.

Fix ε>0\epsilon > 0. By the uniform continuity of g∣A=fg|_A = f, there exists δ>0\delta > 0 such that

dX(x1,x2)<δ  ⟹  dY(g(x1),g(x2))<εd_X(x_1, x_2) < \delta \implies d_Y(g(x_1), g(x_2)) < \epsilon

for every x1,x2∈Ax_1, x_2 \in A. We show this δ\delta works for all points in A‾\bar{A}. Indeed, suppose u,v∈A‾u, v \in \bar{A} are such that dX(u,v)<δd_X(u, v) < \delta. There exist sequences (un)(u_n) and (vn)(v_n) in AA such that un→uu_n \to u and vn→vv_n \to v. Because the metric dXd_X is continuous, lim⁡n→∞dX(un,vn)=dX(u,v)<δ\lim_{n \to \infty} d_X(u_n, v_n) = d_X(u, v) < \delta. Thus, there exists some N∈Z+N \in \bZ_+ such that dX(un,vn)<δd_X(u_n, v_n) < \delta for every n≥Nn \ge N.

Applying the uniform continuity of g∣Ag|_A to these sequence elements, we find that dY(g(un),g(vn))<εd_Y(g(u_n), g(v_n)) < \epsilon for every n≥Nn \ge N. By the construction of gg, we know g(un)→g(u)g(u_n) \to g(u) and g(vn)→g(v)g(v_n) \to g(v). Taking the limit as n→∞n \to \infty and using the continuity of the metric dYd_Y, we obtain dY(g(u),g(v))≤εd_Y(g(u), g(v)) \le \epsilon. Since ε>0\epsilon > 0 was arbitrary, we conclude that gg is uniformly continuous on A‾\bar{A}.

Recall that continuous functions preserve limits. gg does this, since for every sequence xn→xx_n \to x, we define g(x)g(x) such that g(xn)→g(x)g(x_n) \to g(x). If g∣A‾∖Ag|_{\bar{A} \setminus A} were defined in any other way, the resulting function would not be continuous. Thus gg is the unique, uniformly continuous extension of ff.

[7.1.23]Problem#

Let (X,d)(X, d) be a metric space. Recall that a map f:X→Xf: X \to X is said to be a contraction map if there exists some C<1C < 1 such that

d(f(x),f(y))≤Cd(x,y).d(f(x), f(y)) \le Cd(x, y).

Show that if XX is complete, then any contraction map admits a unique fixed point.

Proof.

Fix any x0∈Xx_0 \in X, then consider the sequence xnx_n defined by xn=fn−1(x0)x_n = f^{n - 1}(x_0), where f0=idf^0 = \id.

We will show this sequence is Cauchy. Fix ε>0\epsilon > 0. Note that d(xn,xn+1)≤Cd(xn−1,xn)d(x_n, x_{n + 1}) \le Cd(x_{n - 1}, x_n) for any n∈Z+n \in \bZ_+. Then note

d(xm,xn)≤d(xm,xm+1)+d(xm+1,xm+2)+⋯+d(xn−1,xn)≤Cmd(x0,x1)⏟:=r+Cm+1d(x0,x1)+⋯+Cn−1d(x0,x1)=rCm(1−Cn−m1−C)=r(Cm−Cn1−C).\begin{align*} d(x_m, x_n) &\le d(x_m, x_{m + 1}) + d(x_{m + 1}, x_{m + 2}) + \cdots + d(x_{n - 1}, x_n) \\ &\le C^m \underbrace{d(x_0, x_1)}_{:= r} + C^{m + 1} d(x_0, x_1) + \dots + C^{n - 1} d(x_0, x_1) \\ &= r C^m \left( \frac{1 - C^{n - m}}{1 -C} \right) = r \left( \frac{C^m - C^n}{1 - C} \right). \end{align*}

Note that d(xm,xn)d(x_m, x_n) can be made arbitrarily small since C<1C < 1 (and so Cm−Cn→0C^m - C^n \to 0 as m,n→∞m, n \to \infty). Thus there is some N∈Z+N \in \bZ_+ such that d(xm,xn)<εd(x_m, x_n) < \epsilon for every m,n≥Nm, n \ge N. Thus the sequence is Cauchy and thus convergent, and so xn→x∗x_n \to x^*. We show x∗x^* is our desired fixed point.

Note that ff is CC-Lipschitz and thus continuous, so f(xn)→f(x∗)f(x_n) \to f(x^*). Of course, d(f(xn),xn)→0d(f(x_n), x_n) \to 0, and so they converge to the same limit. Thus x∗=f(x∗)x^* = f(x^*).

Finally, we show x∗x^* is the unique fixed point. Suppose x′∈Xx' \in X is another fixed point. Then note d(f(x∗),f(x′))=d(x∗,x′)≤Cd(x∗,x′)d(f(x^*), f(x')) = d(x^*, x') \le Cd(x^*, x'). Then either C=0C = 0, in which there is only one unique fixed point by inspection, or d(x∗,x′)=0d(x^*, x') = 0 (and so x∗=x′x^* = x'), completing the proof.