Proof (spectral theorem for compact Hermitian operators)

Non-zero spectrum element is eigenvalue

The Hermitian property implies $σ(T) = σ_{\text{ap}}(T)$, and the compact property implies an non-zero approximate eigenvalue is an eigenvalue.

Eigenspace is finite-dimensional

If $λ\neq 0$ and $E_T(λ)$ is infinite-dimensional, then there exists an orthonormal sequence $e_1, e_2, \ldots\in E_T(λ)$. Then $(e_n)$ is bounded and for $n\neq m$ $$ \begin{align*} \|Te_n - Te_m\| = \|λe_n - λe_m\| = λ \sqrt{2} > 0 \end{align*} $$ so $(Te_n)$ has no convergent subsequence. This contradicts with $T$ being compact.

$σ(T) \cap \sb{z\in \C}{|z|>δ}$ is finite for all $δ>0$

Suppose not, so let $(λ_n)_{n\in \N}$ be a pairwise distinct sequence in $σ(T)$ with $|λ_n|>δ$. They are eigenvalues, so let $x_n\in H$ be a $λ_n$-eigenvector with $\|x_n\| = 1$.

Because $T$ is Hermitian and $(λ_n)$ are pairwise disjoint, $(x_n)$ are pairwise orthogonal. Therefore $(x_n)$ is bounded and for $n\neq m$, $$ \begin{align*} \|Te_n - Te_m\| = \|λ_n e_n - λ_m e_m\| = \sqrt{λ_n^2 + λ_m^2} > \sqrt{2}δ > 0 \end{align*} $$ so $(Tx_n)$ has no convergent subspace. This contradicts with $T$ being compact.

Orthonormal basis

Enumerate $σ(T) \setminus \set{0} = \set{λ_1, λ_2, \ldots}$ which consists of eigenvalues and order them by $|λ_1| \geq |λ_2| \geq \ldots$. Since $E_T(λ_n)$ is finite-dimensional, find a finite orthonormal basis for $E_T(λ_n)$. Since eigenvectors corresponding to distinct eigenvalues are orthogonal, putting them together forms a orthonormal sequence $e_1, e_2, \ldots$. Let $μ_1, μ_2, \ldots$ be the corresponding eigenvalue.

Then on $Y := \overline{\op{span}}\set{e_1, e_2,\ldots} = \overline{\op{span}} \bigcup_{n=1}^{\infty} E_T(λ_n)$ which admits $e_1, e_2, \ldots$ as an orthonormal basis, $$ \begin{align*} T\left(\sum_{n=1}^{\infty} x_n e_n\right) = \sum_{n=1}^{\infty} T(x_n e_n) = \sum_{n=1}^{\infty} μ_n x_n e_n. \end{align*} $$

This also shows that $\ker T \cap Y = \set{0}$.

Note $H = Y \oplus Y^\perp$. If $Y^\perp = \set{0}$, then $H = Y$ and $\ker T = \set{0}$ so we are done.

Otherwise, $Y$ is an invariant subspace of $T$, so $Y^\perp\neq \set{0}$ is an invariant subspace of $T^\ast = T$. Then $T|_{Y^\perp} \in \mathcal{B}(Y^\perp)$ is still Hermitian and compact.

Moreover $T|_{Y^\perp}$ has no non-zero eigenvalue, because all eigenvectors corresponding to non-zero eigenvalues lie in $\bigcup_{n=1}^{\infty} E_T(λ_n) \subseteq Y$. Hence $σ(T|_{Y^\perp}) = \set{0}$. However $\|T|_{Y^\perp}\| = r(Y|_{Y^\perp}) = 0$, so $T|_{Y^\perp} = 0$. This shows $Y^\perp \subseteq \ker T$.

Thus $\ker T = Y^\perp$.