Proof of the Brouwer fixed-point theorem for intervals in $\mathbb{R}$. I'm looking for feedback and corrections.
Lemma. If $\overline{B}_1(0)=\{x\in\mathbb{R}:\left|x\right|\leq1\}=[-1,1]\subset \mathbb{R}$ and $f\colon \overline{B}_1(0)\to \overline{B}_1(0)$ is continuous, then there exists $x_0\in \overline{B}_1(0)$ such that $f(x_0)=x_0$.
Proof of lemma. Let $g\colon \overline{B}_1(0)\to \overline{B}_1(0)$ be defined as $g(x)=f(x)-x$. As $f(x)$ and $x\mapsto x$ are continuous functions, then $g$ is also continuous.
Because $\overline{B}_1(0)$ is closed, we define $g(-1)$ and $g(1)$, and without loss of generality let us say that $g(-1) < 0< g(1)$. From the intermediate value theorem, we know that for $0\in \overline{B}_1(0)$, there is a $x_0\in \overline{B}_1(0)$ such that $g(x_0)=0$, but as $g(x)=f(x)-x$, we know that $g(x_0)=0=f(x_0)-x_0 \implies f(x_0)=x_0$. $\blacksquare$
(Brouwer fixed-point theorem for intervals in $\mathbb{R}$.) If $f\colon [a,b]\to [a,b]$ is continuous, then there is a $x_0\in [a,b]$ such that $f(x_0)=x_0$.
Proof. Consider $h\colon [a,b]\to [-1,1]$ a continuous bijection with $h(a)=-1$ and $h(b)=1$.
Define $g(x)=h(f(x))-h(x)$ with $g\colon [a,b]\to [-1,1]$. By the lemma there's a $x_0\in [a,b]$ such that $h(f(x_0))=h(x_0)$, and because both $h$ and $f$ are bijections (and therefore admit inverses), $f(x_0)=x_0$. $\blacksquare$