Let $f, f_1, f_2, \dots$ be continuous maps from M to N, M and N metric spaces. The, the following affirmations are equivalent:
$(a)$$ x_n \rightarrow x \implies \lim_{n \rightarrow +\infty} f_n(x_n) = f(x)$
$(b)$$ f_n \rightarrow f$ uniformly in each $K \subset M$ compact
- $(a) \implies (b)$ Fix $K \subset M$ compact. We have to prove that given $\epsilon > 0$, there exists $n_0$ such that $n>n_0 \implies d(f_n(x), f(x)) < \epsilon$, for each $x \in K$.
As $\lim f_n(x_n) = f(x)$, there exists $n_o$ such that $n>n_o \implies d(f_n(x_n), f(x)) < \epsilon /4$. As K is compact, $f_{n_o}$ is uniformly continuous, that is, there exists $\delta > 0$ such that $d(x, y) < \delta \implies d(f_{n_0}(x), f_{n_0}(y)) < \epsilon / 4$.
I think I should not put in this order, because I am trying to do some triangle inequalities and I can't conclude...
- $(b) \implies (a)$
As $f_n \rightarrow f$ uniformly, given $\epsilon > 0$, there exists $N$ such that $n> N \implies d(f_n(x), f(x)) < \epsilon/2.$
Moreover, as $x_n \rightarrow x$, there is $M$ such that $n > M \implies d(x_n, x) < \delta$, and, as $f$ is continuous, this implies that $d(f(x_n), f(x)) < \epsilon/2$
Then, if $n> max\{N, M\}$:
$d(f_n(x_n), f(x)) \leq d(f_n(x_n), f(x_n)) + d(f(x_n), f(x)) < \epsilon/2 + \epsilon /2$.