My book says
Convergence in sup norm $||f_n-f||\to 0$ is equivalent to uniform convergence and this follows immediately from definitions.
but I just want to check:
$\Rightarrow$ If lim$_{n\to\infty}||f_n-f||=0$, then sup$\{|f_n(x)-f(x)|:x\in[a,b]\}\to 0\Rightarrow |f_n(x)-f(x)|\to 0 \forall x\in[a,b]\Rightarrow (f_n)\to f$ uniformly.
And then running in reverse:
$\Leftarrow$ If $f_n\to f$ uniformly, then $|f_n(x)-f(x)|\to 0 \forall x\in[a,b]\Rightarrow$sup$\{|f_n(x)-f(x)|:x\in[a,b]\}\to 0\Rightarrow ||f_n-f||\Rightarrow 0$.
My question is, why $|f_n(x)-f(x)|\to 0 \forall x\in[a,b]\Rightarrow$sup$\{|f_n(x)-f(x)|:x\in[a,b]\}\to 0$. I think it's because sup is really max here because functions are continuous and $[a,b]$ is compact. Is this right? Does it hold in general if the functions aren't continuous?
The implication in "My question is ... $\to 0$" is in fact not true; "for every $x \in [a,b]$ we have $|f_{n}(x) - f(x)| \to 0$" says only the pointwise convergence of $(f_{n})$.
A reason why the two statements is equivalent is the equivalence of the following two statements:
(i) For every $\varepsilon > 0$ there is some $N \geq 1$ such that we have $n \geq N$ only if $ |f_{n}(x) - f(x)| \leq \varepsilon $ for all $x \in [a,b]$.
(ii) For every $\varepsilon > 0$ there is some $N \geq 1$ such that we have $n \geq N$ only if $\sup_{x \in [a,b]}|f_{n}(x) - f(x)| \leq \varepsilon$.