Proof (Arzelà-Ascoli)

Since $C(K)$ is a complete metric space, by Heine-Borel, $\mathcal{F}\subseteq C(K)$ is relatively compact iff $\mathcal{F}$ is totally bounded, i.e. $\mathcal{F}$ has a finite $ε$-net for all $ε>0$.

Totally bounded $\implies$ uniformly bounded

Choose a finite $1$-net $\set{f_1, \ldots, f_n}$ of $\mathcal{F}$.

Then for any $f\in \mathcal{F}$, there exists $i$ such that $\|f - f_i\|_\infty < 1$, so $$ \begin{align*} \|f\|_\infty \leq \|f - f_i\|_\infty + \|f_i\|_\infty < 1+ \max\{\|f_1\|_\infty, \ldots, \|f_n\|_\infty\}. \end{align*} $$

Totally bounded $\implies$ equicontinuous

Fix $ε>0$ and $x\in K$. Let $\set{f_1, \ldots, f_n}$ be an $ε$-net of $\mathcal{F}$. For each $f_i$, by continuity let $U_i$ be a neighbourhood of $x$ such that $|f_i(y) - f_i(x)| < ε$ for all $y\in U_i$.

Take $U = \bigcap_{i=1}^{n} U_i$. For each $f\in \mathcal{F}$, there exists $i$ such that $\|f_i - f\|_\infty<ε$, so for all $y\in U\subseteq U_i$, $$ \begin{align*} |f(y) - f(x)| &\leq |f(y) - f_i(y)| + |f_i(y) - f_i(x)| + |f_i(x) - f(x)| \\ &< ε + ε + ε = 3ε. \end{align*} $$

Uniformly bounded and equicontinuous $\implies$ totally bounded

Fix $ε>0$. We want to construct a finite $ε$-net of $\mathcal{F}$.

For each $x\in K$, by equicontinuity, let $U_x$ be an open neighbourhood of $x$ such that for all $f\in \mathcal{F}$ and $y\in U_x$, we have $|f(y) - f(x)| < ε$. $\sb{U_x}{x\in K}$ is an open cover of the compact space $K$, so there exists $x_1, \ldots, x_n\in K$ such that $K = \bigcup_{i=1}^{n} U_{x_i}$.

Define $$ \begin{align*} T: C(K) &\to l_\infty^n \\ f &\mapsto (f(x_1), \ldots, f(x_n)) \end{align*} $$ and let $S = T(\mathcal{F})$. Since $\mathcal{F}$ is uniformly bounded, $S$ is bounded in $l_\infty^n$. But $l_\infty^n$ is finite-dimensional, so $S$ is totally bounded.

Let $\set{f_1, \ldots, f_m}\subseteq \mathcal{F}$ so that $\set{Tf_1, \ldots, Tf_m}$ is an $ε$-net of $S$. Then $\set{f_1, \ldots, f_m}$ is an $3ε$-net of $S$: indeed for any $f\in \mathcal{F}$, $x\in K$, letting $i$ and $j$ such that $x\in U_{x_i}$ and $\|Tf - Tf_j\|_\infty < ε$, we have $$ \begin{align*} |f(x) - f_j(x)| \leq{}& |f(x) - f(x_i)| + |f(x_i) - f_j(x_i)| + |f_j(x_i) - f_j(x)| \\ <{}& ε + \|Tf - Tf_j\|_\infty + ε \\ <{}& 3ε. \end{align*} $$