Proof (Tietze's extension theorem)

Over $\R$

Let $X = C_b^\R(K)$ and $Y = C_b^\R(L)$, which are Banach spaces. Consider the linear map $$ \begin{align*} R: X&\to Y\\ f &\mapsto f|_L. \end{align*} $$ Note $\|f|_L\|_\infty \leq \|f\|_\infty$, so $R$ is bounded. We want to show $R(\frac{1}{3}B_{X})$ is $\frac{2}{3}$-dense in $B_Y$. Then by the opening mapping lemma, $R(B_X) \supseteq B_Y$, and then we are done by homogeneity.

Fix $g\in B_Y$. Let $$ \begin{align*} A = g\inv([-1, -\tfrac{1}{3}]), \qquad B = g\inv([\tfrac{1}{3}, 1]), \end{align*} $$ which are closed by continuity.

By Urysohn's lemma, let $\tilde f: K \to [0,1]$ be continuous such that $\tilde f = 0$ on $A$ and $\tilde f = 1$ on $B$. Define a continuous function $f: K \to [-\frac{1}{3},\frac{1}{3}]$ by $f = \frac{2}{3}\tilde f - \frac{1}{3}$ so that $\tilde f = -\frac{1}{3}$ on $A$ and $\tilde f = \frac{1}{3}$ on $B$.

Now $\|f|_L - g\|_\infty \leq \frac{2}{3}$:

Therefore $R(\frac{1}{3} B_X)$ is $\frac{2}{3}$-dense in $B_Y$.

Over $\C$

(Sheet 2 Q1)

Let $g\in C_b^\C(L)$. If $g = 0$, then $f = 0\in C_b^\C(K)$ works, so assume $\|g\|_\infty > 0$.

Extend $\Re g, \Im g\in C_b^\R(L)$ to get $f_1, f_2\in C_b^\R(K)$ respectively. Let $f = f_1 + if_2\in C_b^\C(K)$, which agrees with $g$ on $L$.

Define $$ \begin{align*} ϕ: \C &\to \C \\ z &\mapsto \begin{cases} z, &|z| \leq \|g\|_\infty, \\ \frac{\|g\|_\infty}{\|z\|}z, &|z|\geq \|g\|_\infty, \end{cases} \end{align*} $$ which is continuous by the gluing lemma.

Then $ϕ \circ f$ is continuous and $\|ϕ \circ f\|_\infty \leq \|ϕ\|_\infty = \|g\|_\infty$. But $ϕ \circ f$ still agrees with $g$ on $L$, so $\|ϕ \circ f\|_\infty = \|g\|_\infty$, as required.