Prove that the metric space $C[a,b]$ is complete.
Where $C[a,b]$ is the collection of continuous $f:[a,b] → R$ and $||f|| = sup_{x \in [a,b]} |f(x)|$, such that $\rho (f,g) = ||f - g||$ is a metric on $C[a,b]$.
attempt in proof:
Recall that a metric space X is said to be complete if and only if every Cauchy sequence $x_n \in X$ converges to some point in $X$.
Let $f_n$ be a Cauchy sequence in $ C[a,b]$, then $\forall \epsilon > 0,$ there is $N$ such that $||f_n - f_m|| < \epsilon$ for $n , m \geq N$ implies $||f_n - f_m || = sup |f_n - f_m | < \epsilon$.
Now for
$x \in [a,b]$, $|f_n - f_m | \leq sup_{x \in [a,b]} |f_n(x) - f_m(x)| < \epsilon$ for $n \geq N$.
Thus $f_n(x)$ converges uniformly to $f(x)$ .
And each $f_n$ is continous on $[a,b]$, and $f_n → f$ uniformly on $[a,b]$.
Thus, $f \in C[a,b]$. So $C[a,b]$ is complete.
Can someone please give some feedback? I don't know if I can conclude that $f_n$ converges uniformly to $f$. Can someone please help? Thank you in advance.