I know uniform convergence implies pointwise convergence and not the other way around. Then what is wrong with the following proof that seems to prove that pointwise convergence implies uniform convergence?
Lef $\{f_n(x)\}_n$ be a pointwise convergent sequence of functions in $C[a,b]$. Let the pointwise limit be f(t) for every t. Then $\{f_n(x)\}_n$ is Cauchy that is $\forall \epsilon >0 ,\exists N$ such that if $n,m>N$, $|f_n(x)-f_m(x)|<\epsilon/2$
Passing to the sup: $\text{Sup}_{x \in [a,b]}|f_n(x)-f_m(x)|\le\epsilon/2$
Taking the limit $m\to \infty$ in the last inequality : $\text{Sup}_{x \in [a,b]}|f_n(x)-f(x)|\le\epsilon/2<\epsilon $ Which is the definition of uniform convergence.
The definitions I am using:
$f_n:I\subset \mathbb{R}\to \mathbb{R}$,$f:A\subset I\to \mathbb{R}$
- $f_n \to f$, that is $f_n$ converges pointwise to f if $\lim_{n\to\infty}f_n(x)=f(x) \forall x \in A$ $\iff \forall x \in A \forall \epsilon>0 \exists N $such that $|f_n(x)-f(x)|<\epsilon , \forall n>N$
- $f_n$ converges uniformly to $f$ if $\lim_{n\to\infty}\text{Sup}_{x \in A}|f_n(x)-f(x)|=0 $ $\iff \forall \epsilon>0 \exists N $such that $\text{Sup}_{x \in A}|f_n(x)-f(x)|<\epsilon, \forall n>N$.
I got this idea from (**) below, in the proof of the completeness of $C[a,b]$ with respect to the uniform metric that my professor did. There is a step in which she took the limit $m\to \infty$ of the inequality: $\text{Sup}_{t \in [a,b]}|f_n(t)-f_m(t)|< \epsilon $.
The proof that my professor of the completeness of $C[a,b]$ with respect to the uniform metric did was:
Let $\{f_n(t)\}_n$ be a Cauchy sequence in $C[a,b]$ Then $\forall \epsilon >0 ,\exists N$ such that if $n,m>N$, $|f_n(t)-f_m(t)|<Sup|f_n(t)-f_m(t)|<\epsilon$ ...(*)
For each fixed $t\in[a,b]$: $\{f_n(t)\}_n$ is a Cauchy sequence in $\mathbb{R}$. Because $\mathbb{R}$ is complete, $\exists \lim_{n\to\infty}f_n(t) = f(t) \in \mathbb{R}$
So we have built a function $f:[a,b]\to \mathbb{R}$, now we have to see that it is the limit of the f_n with respect to the uniform distance defined on $C[a,b]$ and that it is continuous.
In order to find that the function f(x) built as the pointwise limit of f_n(x) for each x, is also the limit with respect to the uniform distance, (that is that $\sup_{x \in [a,b]}|f_n(x)-f(x)| \to 0)$we take the limit $m\to \infty$ in (*):$\sup_{x \in [a,b]}|f_n(x)-f_m(x)| )<\epsilon$ : $\text{Sup}_{x \in [a,b]}|f_n(x)-f(x)|\le \epsilon$..(**)
That is we have $\forall \epsilon >0 ,\exists N$ such that if $n,m>N$, $\text{Sup}_{x \in [a,b]}|f_n(x)-f(x)|\le \epsilon$ (this can be made into <\epsilon working with \epsilon/2 at the beginning), which means $f$ is the limit of the f_n with respect to the uniform distance defined on $C[a,b]$.
To show $f \in C[a,b]$: $|f(t)-f(t_0)|<|f(t)-f_n(t)|+|f_n(t)-f_n(t_0)|+|f_n(t_0)-f(t_0)| <3\epsilon$, where $|f(t)-f_n(t)|<\epsilon $and $|f(t_0)-f_n(t_0)|<\epsilon$ because of the pointwise convergence of $f_n$ and $|f_n(t)-f_n(t_0)|<\epsilon $ because of the continuity of $f_n$ at $t_0$