I have a doubt regarding the result that uniform convergence preserves continuity.
Statement: If a sequence of continuous functions $\{f_n\}_n$ $f_n : A → \mathbb{R}$ converges uniformly on $A \subset \mathbb{R}$ to $f : A \rightarrow \mathbb{R}$, then $f$ is continuous on $A$.
Question: Is $A\subset \mathbb{R}$ a necessary condition for the statement? Can we have $A=\mathbb{R}$? Why?
The standard proof (involving $\epsilon$-s and $\delta$-s) works even if $A=\mathbb R$. The most likely explanation is that $\subset$ in whatever book you are reading actually means $\subseteq$.
But let's assume we have only a proof of the following statement:
We want to prove the statement:
Proof:
Let's take a sequence of functions $f_n$ such that $f_n:\mathbb R\to\mathbb R$ and $f_n$ converges to $f$ uniformly on $\mathbb R$.
Then, we can define $g_n:[-1,\infty)\to \mathbb R$ as $g_n(x)=f_n(x)$ for every $x\geq 0$. It is easy to show that $g_n$ converges to $g$, defined as $$g:[-1,\infty)\to \mathbb R\\ g(x)=f(x)$$ and, since $[0,\infty)\neq \mathbb R$, we conclude that $g$ is continuous.
Similarly, we can show that $h:(-\infty, 1]\to\mathbb R$, defined as $h(x)=f(x)$, is continuous.
Conclusion: $f$ is continuous.