Completeness of C(K) under the sup norm

On a compact metric space K, the space of continuous functions is complete in the sup metric
Completeness of C(K) under the sup norm

Let (K,d)(K,d) be a and let C(K,R)C(K,\mathbb{R}) denote the set of f:KRf:K\to\mathbb{R}.

Define the by f=supxKf(x), \|f\|_\infty=\sup_{x\in K}|f(x)|, and the induced metric d(f,g)=fg=supxKf(x)g(x). d_\infty(f,g)=\|f-g\|_\infty=\sup_{x\in K}|f(x)-g(x)|.

Theorem: The metric space (C(K,R),d)\bigl(C(K,\mathbb{R}),d_\infty\bigr) is .

This is the basic Banach-space fact behind many compactness and approximation arguments: sequences of continuous functions converge uniformly to a continuous function.

Proof sketch: Let (fn)(f_n) be Cauchy in dd_\infty. Then for each fixed xKx\in K, the real sequence (fn(x))(f_n(x)) is Cauchy in R\mathbb{R}, hence ; define f(x)=limnfn(x). f(x)=\lim_{n\to\infty} f_n(x). The uniform Cauchy property implies uniform convergence fnff_n\to f, i.e. fnf0\|f_n-f\|_\infty\to 0. Since each fnf_n is continuous and the convergence is uniform, ff is continuous ( ). Thus fC(K,R)f\in C(K,\mathbb{R}) and fnff_n\to f in dd_\infty.