[step:Place the process in the finite-dimensional Hilbert-space setting]
Define the bilinear map
\begin{align*}
(\cdot,\cdot)_{L^2}: L^2(\Omega,\mathcal{F},\mathbb{P})\times L^2(\Omega,\mathcal{F},\mathbb{P}) &\to \mathbb{R}, \\
(Y,Z) &\mapsto \mathbb{E}[YZ].
\end{align*}
Since each $X_t$ has mean zero, this inner product agrees with covariance on pairs of observations:
\begin{align*}
(X_r,X_s)_{L^2}=\operatorname{Cov}(X_r,X_s)=\kappa(r,s).
\end{align*}
Define $\mathcal{H}_0:=\{0\}$, and for each $n\geq 1$ define the finite-dimensional subspace
\begin{align*}
\mathcal{H}_n:=\operatorname{span}\{X_1,\dots,X_n\}\subset L^2(\Omega,\mathcal{F},\mathbb{P}).
\end{align*}
By the finite-dimensional [orthogonal projection theorem](/page/Orthogonal%20Projection), for every $n\geq 0$ the orthogonal projection
\begin{align*}
P_n:L^2(\Omega,\mathcal{F},\mathbb{P})&\to \mathcal{H}_n
\end{align*}
exists; in particular, $P_0$ is the zero projection onto $\mathcal{H}_0$.
For each $n\geq 1$, define the covariance matrix $\Gamma_n\in\mathbb{R}^{n\times n}$ by
\begin{align*}
(\Gamma_n)_{rs}:=\kappa(r,s),\qquad 1\leq r,s\leq n.
\end{align*}
The nonsingularity of $\Gamma_n$ implies that $X_1,\dots,X_n$ are linearly independent in $L^2$. Indeed, if real numbers $a_1,\dots,a_n$ satisfy $\sum_{r=1}^n a_rX_r=0$ in $L^2$, then
\begin{align*}
0
&=
\mathbb{E}\left[\left(\sum_{r=1}^n a_rX_r\right)^2\right] \\
&=
\sum_{r=1}^n\sum_{s=1}^n a_ra_s\kappa(r,s).
\end{align*}
Thus $a^\top\Gamma_na=0$, where $a=(a_1,\dots,a_n)^\top$. Since $\Gamma_n$ is a positive definite covariance matrix, $a=0$. Hence $\dim \mathcal{H}_n=n$.
[/step]