Prove $(C_X,||.||)$ ,where $||.||$ is the maximum norm and X is compact, is complete.
The following proof was given. It is the one I am striving to understand:
Let $(f_n)$ be a Cauchy sequence: $\forall\epsilon>0\exists N\in\mathbb{N}:n,m\geqslant N\implies ||f_m-f_n||<\epsilon$
$\forall t\in X$
$0\leqslant |f_n(t)-f_m(t)|\leqslant \max_{x\in X}|f_n(x)-f_m(x)|\to 0$ as $m,n\to\infty$
$\forall t\in X\:, (f_n(t))_{n\in\mathbb{N}}$ is a Cauchy sequence in $\mathbb{R}$.
Then $(f_n)_n\to f$ uniformly then $f$ is continuous.
This is how the proof was handed to me. I think I can fill the gaps but I would need someone to back me on that.
So first the author considers a Cauchy sequence and assumes it converges in $C(X)$ Then it arrives to the following inequality: $0\leqslant |f_n(t)-f_m(t)|\leqslant \max_{x\in X}|f_n(x)-f_m(x)|\to 0$ as $m,n\to\infty$ since the it assumed $\max_{x\in X}|f_n(x)-f_m(x)|\to 0$ then $|f_n(t)-f_m(t)|\to 0$ So the convergence in $C(X)$ verifies that the same Cauchy sequence converges in $\mathbb{R}$ that is by assumption complete with the usual topology. Since $X$ is compact then $f_n$ converges uniformly in $\mathbb{R}$ and it converges to a continuous function. Therefore it converges in $C(X)$ proving the latter is complete.
Question:
Is this the reasoning behind the proof?
Thanks in advance!
Let $X$ be a compact space. Let $C_{X}$ be the space of functions mapping from $X$ to $\mathbb{R}$. For any function $f$ in $C_{X}$, define $$ \left\Vert f\right\Vert \equiv\max_{x}\left|f(x)\right|. $$ This is called the maximum norm. We would like to prove the following:
Theorem. $(C_{X},\Vert\cdot\Vert)$ is complete.
Definition. A space $(Y, |\cdot|)$ is complete if any sequence $(y_n)_n$ of points in $Y$ which is Cauchy with respect to the norm $|\cdot|$ converges to some point $y$ in $Y$.
Remark. Don't be confused by the terminology "points" here. Since $C_{X}$ is a space of functions, its points are functions.
Proof. Start with an arbitrary Cauchy sequence $(f_{n})_{n}$ in $C_{X}$. Let $t$ be an arbitrary point in $X$. Note that $$ \left|f_{n}(t)-f_{m}(t)\right|\leq\max_{t}\left|f_{n}(t)-f_{m}(t)\right|=\left\Vert f_{n}-f_{m}\right\Vert .\tag{1} $$ Let $\epsilon$ be a positive constant and pick $N$ such that $\Vert f_{n}-f_{m}\Vert<\epsilon$ for all $n,m\geq N$. We can do this because we assumed the sequence $(f_{n})_{n}$ was Cauchy. By the above inequality, it follows that $|f_{n}(t)-f_{m}(t)|$ is also strictly less than $\epsilon$. Therefore, the sequence $(f_{n}(t))_{n}$ is also Cauchy.
Remark. Note that the sequences $(f_{n})_{n}$ and $(f_{n}(t))_{n}$ are different! One is a sequence of functions and one is a sequence of numbers in $\mathbb{R}$.
Now, since $\mathbb{R}$ is complete, it follows that $(f_{n}(t))_{n}$ converges to some real number. Let's call that real number $f(t)$. Since $t$ was arbitrary, we have essentially defined a new function, $f:X\rightarrow\mathbb{R}$.
Lastly, let's make sure that $f_{n}$ converges to this new function $f$ with respect to the maximum norm. Taking limits with respect to $m$ in the inequality (1), $$ \left|f_{n}(t)-f(t)\right|=\lim_{m}\left|f_{n}(t)-f_{m}(t)\right|\leq\lim_{m}\left\Vert f_{n}-f_{m}\right\Vert =\left\Vert f_{n}-f\right\Vert . $$ In the above, we have used the fact that limits and continuous functions commute and norms are continuous. This implies that $f$ is continuous since if a sequence of continuous functions converge "uniformly" (i.e., with respect to the maximum norm) to some function, that function must be continuous.