[step:Form the centered linear combination associated to the coefficient vector]
Fix $n\in\mathbb{N}$ and fix real numbers $a_1,\dots,a_n\in\mathbb{R}$. Let $(\Omega,\mathcal{F},\mathbb{P})$ denote the probability space on which the process $(X_t)_{t\in\mathbb{Z}}$ is defined, let $\mathcal{B}(\mathbb{R})$ denote the Borel $\sigma$-algebra on $\mathbb{R}$, and let $L^2(\Omega,\mathcal{F},\mathbb{P})$ denote the space of real-valued square-integrable random variables on this probability space, modulo equality $\mathbb{P}$-almost surely. Let $\mu\in\mathbb{R}$ denote the common mean $\mu=\mathbb{E}[X_t]$, which is independent of $t$ by weak stationarity. For each $i\in\{1,\dots,n\}$, define the centered random variable
\begin{align*}
Z_i:(\Omega,\mathcal{F})&\to(\mathbb{R},\mathcal{B}(\mathbb{R}))\\
\omega&\mapsto X_i(\omega)-\mu.
\end{align*}
Since $X_i$ has finite second moment, $Z_i\in L^2(\Omega,\mathcal{F},\mathbb{P})$. Define the finite linear combination
\begin{align*}
Y:(\Omega,\mathcal{F})&\to(\mathbb{R},\mathcal{B}(\mathbb{R}))\\
\omega&\mapsto \sum_{i=1}^{n}a_i Z_i(\omega).
\end{align*}
Because $L^2(\Omega,\mathcal{F},\mathbb{P})$ is closed under finite linear combinations, $Y\in L^2(\Omega,\mathcal{F},\mathbb{P})$.
[/step]