Tutorials › Topology (Undergraduate) › Completeness of Bounded Continuous Function Spaces

Completeness and Completions · Tutorial 589 of 799

Completeness of Bounded Continuous Function Spaces

Learn why uniform limits preserve continuity and boundedness, and how this makes the space of bounded continuous real-valued functions complete.

Advanced 9 min read

What You'll Learn

  • Define the sup metric on bounded real-valued functions and the associated space of bounded continuous functions.
  • Prove that a uniform limit of continuous real-valued functions is continuous on any topological space.
  • Construct a limit from a Cauchy sequence in the sup metric.
  • Verify that this limit is bounded and that convergence to it is uniform.
  • Distinguish uniform convergence from pointwise convergence using an explicit example.

The Sup Metric on Bounded Continuous Functions

Completeness asks whether every Cauchy sequence in a metric space converges to a point of that same space. For spaces of functions, the metric matters: the sup metric measures the largest difference between two functions anywhere in their domain. A Cauchy sequence for this metric is uniformly Cauchy, which gives enough control to construct a limit that is both bounded and continuous.

Let \((X,\mathcal{T})\) be a topological space. A function \(f:X\to\mathbb{R}\) is bounded if there is a real number \(M\ge 0\) such that \(|f(x)|\le M\) for every \(x\in X\). It is continuous if the preimage of every open subset of \(\mathbb{R}\) is open in \(X\). Write \(C_b(X)\) for the set of all bounded continuous functions \(f:X\to\mathbb{R}\).

Definition: For bounded functions \(f,g:X\to\mathbb{R}\), define \(\|f-g\|_\infty=\sup_{x\in X}|f(x)-g(x)|\) and \(d_\infty(f,g)=\|f-g\|_\infty\). When \(X\ne\varnothing\), this supremum is finite because \(f\) and \(g\) are bounded. The sup metric on \(C_b(X)\) is the restriction of \(d_\infty\) to \(C_b(X)\).

The metric is zero exactly when the functions agree at every point. Symmetry follows from \(|f(x)-g(x)|=|g(x)-f(x)|\). For any bounded \(f,g,h\) and every \(x\in X\), the real triangle inequality gives \(|f(x)-h(x)|\le |f(x)-g(x)|+|g(x)-h(x)|\le d_\infty(f,g)+d_\infty(g,h)\). Taking the supremum over \(x\) proves the triangle inequality for \(d_\infty\).

If \(X=\varnothing\), there is exactly one function from \(X\) to \(\mathbb{R}\), and it is bounded and continuous. In that case \(C_b(X)\) is a one-point metric space, with distance zero, so it is complete. In the rest of the tutorial, assume \(X\ne\varnothing\).

Uniform Limits Preserve Continuity

A sequence of functions \((f_n)\) converges uniformly to \(f\) if, for every \(\varepsilon>0\), there is \(N\in\mathbb{N}\) such that \(|f_n(x)-f(x)|<\varepsilon\) for every \(x\in X\) whenever \(n\ge N\). The same \(N\) must work at every point \(x\). In the sup metric, this is exactly convergence \(d_\infty(f_n,f)\to 0\).

Proposition: If \(f_n:X\to\mathbb{R}\) is continuous for every \(n\in\mathbb{N}\), and \((f_n)\) converges uniformly to \(f:X\to\mathbb{R}\), then \(f\) is continuous.

Proof. Fix \(x_0\in X\) and \(\varepsilon>0\). By uniform convergence, choose \(n\in\mathbb{N}\) such that \(|f_n(x)-f(x)|<\varepsilon/3\) for every \(x\in X\). Since \(f_n\) is continuous at \(x_0\), there is an open neighborhood \(U\) of \(x_0\) such that \(|f_n(x)-f_n(x_0)|<\varepsilon/3\) for every \(x\in U\). For such \(x\), the triangle inequality gives \(|f(x)-f(x_0)|\le |f(x)-f_n(x)|+|f_n(x)-f_n(x_0)|+|f_n(x_0)-f(x_0)|<\varepsilon\). Thus the inverse image under \(f\) of each open interval about \(f(x_0)\) contains an open neighborhood of \(x_0\). Since this holds at every \(x_0\), \(f\) is continuous. \(\square\)

This argument uses only the definition of continuity and the uniform bound on the differences. It does not require \(X\) to be a metric space, or to satisfy a separation condition.

Worked Example: A Uniformly Convergent Sequence on the Unit Interval

Give \(I=[0,1]\) the subspace topology inherited from the standard topology on \(\mathbb{R}\). For \(n\in\mathbb{N}\), define \(f_n:I\to\mathbb{R}\) by \(f_n(x)=x/(n+1)\). Each \(f_n\) is continuous and bounded. We compute its uniform limit and check the sup-metric convergence.

The candidate limit is the zero function \(f(x)=0\). For every \(x\in I\), \(|f_n(x)-f(x)|=x/(n+1)\). Since \(0\le x\le1\), this is at most \(1/(n+1)\), and equality holds at \(x=1\). Therefore \(\|f_n-f\|_\infty=1/(n+1)\). Given \(\varepsilon>0\), choose \(N\in\mathbb{N}\) with \(N+1>1/\varepsilon\). If \(n\ge N\), then \(\|f_n-f\|_\infty=1/(n+1)\le1/(N+1)<\varepsilon\), so the convergence is uniform.

Check: at \(x=1\), the difference is \(|1/(n+1)-0|=1/(n+1)\), so the computed supremum is attained. Also \(f\) is bounded and continuous, as required for this limit to belong to \(C_b(I)\).

Completeness of \(C_b(X)\)

Theorem: For every topological space \((X,\mathcal{T})\), the metric space \(C_b(X)\) with the sup metric is complete.

Proof. The case \(X=\varnothing\) was established above, so assume \(X\ne\varnothing\). Let \((f_n)\) be a Cauchy sequence in \(C_b(X)\). By the definition of the sup metric, for every \(\varepsilon>0\) there is \(N\in\mathbb{N}\) such that \(\sup_{x\in X}|f_n(x)-f_m(x)|<\varepsilon\) whenever \(n,m\ge N\). In particular, for each fixed \(x\in X\), the real sequence \((f_n(x))\) is Cauchy. The real numbers are complete, so this sequence has a limit. Define \(f:X\to\mathbb{R}\) by \(f(x)=\lim_{n\to\infty}f_n(x)\).

We first show that convergence to \(f\) is uniform. Fix \(\varepsilon>0\), and use the Cauchy condition to choose \(N\) so that \(d_\infty(f_n,f_m)<\varepsilon/2\) for all \(n,m\ge N\). Fix \(n\ge N\) and \(x\in X\). For every \(m\ge N\), \(|f_n(x)-f_m(x)|<\varepsilon/2\). Letting \(m\to\infty\) and using \(f_m(x)\to f(x)\) gives \(|f_n(x)-f(x)|\le\varepsilon/2\). This bound holds for every \(x\in X\), so \(\|f_n-f\|_\infty\le\varepsilon/2<\varepsilon\). Thus \(f_n\to f\) uniformly.

Next, \(f\) is bounded. Apply the uniform-convergence conclusion with tolerance \(1\), and choose \(N\) such that \(|f(x)-f_N(x)|\le1/2\) for every \(x\in X\). The function \(f_N\) is bounded, so there is \(M\ge0\) such that \(|f_N(x)|\le M\) for all \(x\). Therefore, for every \(x\in X\), \(|f(x)|\le |f(x)-f_N(x)|+|f_N(x)|\le 1/2+M\). This is a bound independent of \(x\), proving that \(f\) is bounded.

Every \(f_n\) is continuous, and the convergence \(f_n\to f\) is uniform. The proposition therefore implies that \(f\) is continuous. Hence \(f\in C_b(X)\), and the uniform convergence already proved is convergence in the sup metric. Every Cauchy sequence in \(C_b(X)\) converges to an element of \(C_b(X)\), so this metric space is complete. \(\square\)

The proof has two separate closure checks. Uniform convergence keeps the limit continuous, while comparison with one fixed bounded function keeps the limit bounded. The Cauchy condition in the sup metric supplies the uniform convergence needed for both arguments.

Worked Example: A Cauchy Sequence on a Finite Discrete Space

Let \(X=\{a,b\}\) have the discrete topology, in which every subset of \(X\) is open. Every function \(X\to\mathbb{R}\) is continuous: the preimage of any open subset of \(\mathbb{R}\) is a subset of \(X\), hence open. Every such function is also bounded because it has only two values.

For \(n\in\mathbb{N}\), define \(f_n(a)=1/n\) and \(f_n(b)=2-1/n\). The candidate limit \(f\) has \(f(a)=0\) and \(f(b)=2\). At \(a\), the absolute difference is \(|f_n(a)-f(a)|=1/n\); at \(b\), it is \(|f_n(b)-f(b)|=|(2-1/n)-2|=1/n\). Taking the maximum over the two points gives \(d_\infty(f_n,f)=1/n\), which tends to zero.

For a direct Cauchy check, if \(m,n\in\mathbb{N}\), then the differences at \(a\) and \(b\) both have absolute value \(|1/n-1/m|\). Thus \(d_\infty(f_n,f_m)=|1/n-1/m|\). This tends to zero as \(m,n\) tend to infinity, confirming that the sequence is Cauchy and that its computed limit is the one supplied by completeness.

Worked Example: The Sup Distance Between Two Functions

Give \(\mathbb{R}\) its standard topology, and define \(f(x)=\sin x\) and \(g(x)=0\). Both functions are continuous and bounded, so they belong to \(C_b(\mathbb{R})\). For every \(x\in\mathbb{R}\), \(|f(x)-g(x)|=|\sin x|\le1\), so \(d_\infty(f,g)\le1\). At \(x=\pi/2\), \(|\sin(\pi/2)-0|=|1|=1\), and hence \(d_\infty(f,g)\ge1\). Combining the two inequalities gives \(d_\infty(f,g)=1\).

Check: the upper bound holds for every real \(x\), and the value \(1\) occurs at \(x=\pi/2\). Thus the supremum is exactly \(1\), not merely an upper bound.

A Common Pitfall: Pointwise Convergence Is Not Enough

Continuity need not be preserved by pointwise convergence. Nor does pointwise convergence alone make a sequence Cauchy in the sup metric. The uniform control in the theorem is essential.

For a concrete example, use \(I=[0,1]\) with its usual subspace topology and define \(g_n:I\to\mathbb{R}\) by \(g_n(x)=\min(nx,1)\). Each \(g_n\) is bounded and continuous: it equals \(nx\) on \([0,1/n]\), equals \(1\) on \([1/n,1]\), and the two formulas agree at \(x=1/n\). For \(x=0\), \(g_n(x)=0\) for every \(n\); for any fixed \(x>0\), \(nx\ge1\) once \(n\ge1/x\), so \(g_n(x)=1\) from then on. The pointwise limit is therefore \(g(0)=0\) and \(g(x)=1\) for \(x>0\), which is not continuous at \(0\).

The sequence is not Cauchy in the sup metric. For each \(n\in\mathbb{N}\), take \(x=1/(2n)\), which lies in \(I\). Then \(g_n(x)=\min(1/2,1)=1/2\), while \(g_{2n}(x)=\min(1,1)=1\). Hence \(d_\infty(g_n,g_{2n})\ge1/2\) for every \(n\). Since this distance does not tend to zero, the sequence cannot be Cauchy in that metric.

A tempting but incorrect argument is: “Each function is continuous, so its pointwise limit is continuous.” The calculation above shows why this fails. The valid continuity result uses uniform convergence, and the completeness theorem first establishes that uniform convergence from the Cauchy condition.

Takeaway: The topology on \(X\) determines which functions are continuous, but no special separation or metric hypothesis on \(X\) is needed for completeness. The key is the sup metric: its Cauchy sequences converge uniformly, and uniform limits of continuous real-valued functions are continuous.

Check Your Understanding

Use the sup-metric definition and the uniform-limit argument to justify your answers.

  1. Why does boundedness of both \(f\) and \(g\) ensure that \(d_\infty(f,g)\) is finite?
  2. In the completeness proof, why does the Cauchy condition imply that \((f_n(x))\) is Cauchy in \(\mathbb{R}\) for each fixed \(x\in X\)?
  3. Which part of the completeness proof shows that the pointwise limit is bounded?
  4. On \(I=[0,1]\), compute \(d_\infty(f,g)\) for \(f(x)=x\) and \(g(x)=x/2\).
  5. Why does pointwise convergence of continuous functions not suffice to conclude that the limit is continuous?