\section{Setting and notation} \label{sec:prelim} Throughout, $\log$ denotes the natural logarithm, $\Lambda$ the von Mangoldt function, $\psi(x)=\sum_{n\le x}\Lambda(n)$ the Chebyshev function (with $\psi(x)=0$ for $x<2$), and $\gamma_E$ Euler's constant. We write $\varepsilon(n)\defeq(-1)^{n-1}$ for the alternating sign function. \paragraph{Zeros and the spectral measure $\mu$.} The letter $\rho=\tfrac12+i\gamma$ runs over the nontrivial zeros of $\zeta$, listed with multiplicity, and $m_\rho\ge1$ is the multiplicity of $\rho$. Sums over $\rho$ count each zero $m_\rho$ times. By the Schwarz reflection principle $\zeta(\bar s)=\overline{\zeta(s)}$, the zeros are symmetric under $\rho\mapsto\bar\rho$ with multiplicity. By \RH{} \citep{Alpoge2026remark,AlpogeLean2026}, every nontrivial zero lies on the critical line $\re\rho=\tfrac12$, so $\gamma\in\R$, $1-\rho=\bar\rho$, $\abs{\rho}^2=\rho(1-\rho)=\tfrac14+\gamma^2$, and the multiplicity $m_\gamma\defeq m_\rho$ of an ordinate $\gamma$ is well defined. We define \begin{equation}\label{eq:mu} \mu\defeq\sum_\rho\abs{\rho}^{-2}\,\delta_\gamma , \end{equation} a finite, positive, purely atomic measure on $\R$, symmetric under $\gamma\mapsto-\gamma$, putting mass $m_\gamma/(\tfrac14+\gamma^2)$ at each distinct ordinate $\gamma$. Its total mass is $k(0)=\sum_\rho\abs{\rho}^{-2}=2+\gamma_E-\log(4\pi)=0.0461914\ldots$, as follows from the closed form below in the limit $X\to1^+$. Its Fourier transform is the covariance kernel \begin{equation}\label{eq:kernel} k(v)\defeq\int_\R e^{i\gamma v}\,\rd\mu(\gamma)=\sum_\rho\frac{\cos(\gamma v)}{\tfrac14+\gamma^2}\qquad(v\in\R), \end{equation} a continuous, even, positive definite function. We write $\Ltwo$ for the Hilbert space $L^2(\mu)$ and, for $t\in\R$, $e_t\in\Ltwo$ for the character $\gamma\mapsto e^{it\gamma}$, so that $\inner{e_s}{e_t}=k(s-t)$. \paragraph{The kernel in terms of the primes.} Since $X^\rho=\sqrt X\,X^{i\gamma}$ and $\rho(1-\rho)=\abs\rho^2$, the kernel $k(v)$ coincides with the function $H_1(e^{\abs v})$ of \citet[Proposition~6.1]{MatsumotoSuzuki2024Mscrew}, which admits the closed-form prime representation \begin{equation*} \begin{aligned} \sqrt X\,H_1(X)=\sum_\rho\frac{X^\rho}{\rho(1-\rho)} &=\sum_{n\le X}\Lambda(n)\Bigl(\frac Xn-1\Bigr)+(1+\gamma_E)X-X\log X+1-\log 2\pi\\ &\qquad-\frac12\log\bigl(1-X^{-2}\bigr)-\frac X2\log\frac{X+1}{X-1} \qquad(X>1). \end{aligned} \end{equation*} Letting $X\to1^+$ (using $-\frac12\log(1-X^{-2})-\frac X2\log\frac{X+1}{X-1}\to-\log 2$) recovers $k(0)=2+\gamma_E-\log(4\pi)$. \citet[Theorem~1.3]{MatsumotoSuzuki2024Mscrew} also characterise \RH{} by $H_1(e^t)-H_1(1)$ being a Krein screw function; positive definiteness of $k$ is immediate from \eqref{eq:kernel}. \begin{remark}[The primes as singularities of the kernel] \label{rem:corners} Every term in the closed form for $H_1(X)$ except $\sum_{n\le X}\Lambda(n)(X/n-1)$ is smooth on $X>1$, while the $n$th summand is $\Lambda(n)(X/n-1)_+$. Differentiating $e^{-v/2}\Lambda(n)(e^v/n-1)$ at $v=\log n$ shows that $k$ is smooth on $(0,\infty)$ except at the prime-power lags $v=\log n$, where $k'$ jumps by $\Lambda(n)/\sqrt n$ (\cref{fig:kernel}). In this sense, the covariance kernel encodes the prime powers directly in its corners. \end{remark} \paragraph{The prediction problem.} For a window length $L\ge0$ and prediction horizon $\tau>0$, define \begin{equation}\label{eq:sigma} \sigsq(L,\tau)\defeq\inf\Bigl\{\Bigl\Vert e_\tau-\sum_{j=1}^J a_j\,e_{-s_j}\Bigr\Vert^2_{\Ltwo}\;:\;J\ge1,\ a_j\in\C,\ s_j\in[0,L]\Bigr\}. \end{equation} Thus $\sigsq(L,\tau)$ is the squared distance in $\Ltwo$ from $e_\tau$ to the closed linear span $\mc C[-L,0]$ of the ``past'' $\set{e_{-s}:0\le s\le L}$. \begin{remark}[Kolmogorov isomorphism and the prime error process] \label{rem:kolmogorov} Let $Y$ be any mean-zero, mean-square continuous, stationary process with spectral measure $\mu$, so that $\E[Y(s+v)\overline{Y(s)}]=k(v)$. By the Kolmogorov isomorphism, the map $Y(t)\mapsto e_t$ extends to a unitary isometry from the closed linear span of $Y$ onto $\Ltwo$, identifying $\sigsq(L,\tau)$ with the mean-square error of the best linear predictor of $Y(\tau)$ from $\set{Y(-s):0\le s\le L}$ (symmetry of $\mu$ makes the sign convention in $e_t$ immaterial). The motivating deterministic signal is the normalised prime error \[ E(u)\defeq e^{-u/2}\bigl(\psi(e^u)-e^u\bigr). \] The mean-value autocovariance $\lim_{U\to\infty}\frac1U\int_0^U E(u+v)E(u)\,\rd u$ exists at every rational-log lag $v=\log(a/b)$ ($a,b\in\N$) and equals $\sum_{\gamma\ \mathrm{distinct}}m_\gamma^2\cos(\gamma v)/(\tfrac14+\gamma^2)$: this follows by applying the general lemma of \cref{sec:proof-actual} to $q=\delta_b\pm\delta_a$, polarising, and shifting $u$ by $\log b$. At $v=0$ this is Cram\'er's mean value theorem \citep[Theorem~13.6]{MontgomeryVaughan2007}; for general real $v$ the same limit is expected from the almost periodicity of $E$ \citep{AkbaryNgShahabi2014}. When all zeros of $\zeta$ are simple, this autocovariance coincides with $k(v)$ (otherwise it carries $m_\gamma^2$ where $k$ carries $m_\gamma$). This stationary correspondence motivates \eqref{eq:sigma}, while our rigorous statement for $\psi$ itself is \cref{thm:actual}. \end{remark} \paragraph{Chebyshev's alternating identity.} The starting point of our predictor is a classical identity going back to \citet[p.~371]{Chebyshev1852}; see also \citet[Section~2.2]{MontgomeryVaughan2007} and \citet{ElkiesMath229Chebyshev}. \begin{lemma}[Chebyshev's alternating identity] \label{lem:chebyshev} For every real $x\ge1$, \begin{equation}\label{eq:chebyshev} \sum_{n\ge1}(-1)^{n-1}\,\psi\Bigl(\frac xn\Bigr)=\log\frac{\floor{x}!}{\floor{x/2}!^{2}} . \end{equation} \end{lemma} \begin{proof} Set $T(x)\defeq\sum_{n\le x}\psi(x/n)$. From $\log m=\sum_{d\mid m}\Lambda(d)$ we obtain \[ \log\floor{x}!=\sum_{m\le x}\sum_{d\mid m}\Lambda(d)=\sum_{dk\le x}\Lambda(d)=\sum_{k\le x}\psi\Bigl(\frac xk\Bigr)=T(x). \] The sum in \eqref{eq:chebyshev} is finite because $\psi(x/n)=0$ for $n>x/2$. Subtracting twice the even-index terms gives $\sum_{n\ge1}(-1)^{n-1}\psi(x/n)=T(x)-2\sum_{k\ge1}\psi(x/(2k))=T(x)-2T(x/2)$, which is \eqref{eq:chebyshev}. \end{proof} On the frequency side, \eqref{eq:chebyshev} corresponds to the Dirichlet eta function \[ \eta(s)\defeq\sum_{n\ge1}(-1)^{n-1}n^{-s}=(1-2^{1-s})\,\zeta(s), \] which extends to an entire function (the factor $1-2^{1-s}$ cancelling the pole of $\zeta$ at $s=1$) and vanishes at every nontrivial zero of $\zeta$. By Stirling's formula, the right-hand side of \eqref{eq:chebyshev} equals $x\log 2+O(\log x)$, where $\log 2=\eta(1)$. \paragraph{Smooth and sharp truncations.} We study two truncations of \eqref{eq:chebyshev}. Fix once and for all a smooth cutoff $w\in C^\infty([0,\infty))$ satisfying $0\le w\le1$, $w=1$ on $[0,1]$, and $w=0$ on $[2,\infty)$. For real $N\ge1$, define the smoothed and sharp partial sums of $\eta(s)$ by \begin{equation}\label{eq:AN} \AN(s)\defeq\sum_{n\ge1}(-1)^{n-1}\,w(n/N)\,n^{-s}, \qquad \ANsharp(s)\defeq\sum_{1\le n\le N}(-1)^{n-1}\,n^{-s}, \end{equation} and the corresponding predictor errors for $x\ge1$ by \begin{align} \DeltaN(x)&\defeq\sum_{1\le n<2N}(-1)^{n-1}\,w(n/N)\Bigl(\psi\Bigl(\frac xn\Bigr)-\frac xn\Bigr),\label{eq:DeltaN}\\ \DeltaNsharp(x)&\defeq\sum_{1\le n\le N}(-1)^{n-1}\Bigl(\psi\Bigl(\frac xn\Bigr)-\frac xn\Bigr).\label{eq:DeltaNsharp} \end{align} Since $w(1/N)=1$, the identity \eqref{eq:DeltaN} rearranges to \begin{equation}\label{eq:pred-decomp} \psi(x)=\Bigl[\,x\,\AN(1)-\sum_{2\le n<2N}(-1)^{n-1}w(n/N)\,\psi\Bigl(\frac xn\Bigr)\Bigr]+\DeltaN(x), \end{equation} and analogously for $\DeltaNsharp$ with $w=\mathbf 1_{[0,1]}$ and $2\le n\le N$. The bracket in \eqref{eq:pred-decomp} is an explicit affine predictor of $\psi(x)$ using only the past values $\psi(x/n)$ on $[x/(2N),\,x/2]$ (or $[x/N,\,x/2]$ for the sharp cutoff), together with the known linear term $x\AN(1)$. In the logarithmic variable $u=\log x$, \[ e^{-u/2}\DeltaN(e^u)=\sum_{1\le n<2N}(-1)^{n-1}w(n/N)\,n^{-1/2}\,E(u-\log n), \] a finite linear filter applied to $E$ at the lags $\log n\in[\log 2,\log 2N)$, whose transfer function at frequency $\gamma$ is $\AN(\tfrac12+i\gamma)$ (and $\ANsharp(\tfrac12+i\gamma)$ in the sharp case). This is why the spectral sums $\sum_\rho\abs{\AN(\rho)}^2/\abs{\rho}^2$ and $\sum_\rho\abs{\ANsharp(\rho)}^2/\abs{\rho}^2$ govern the prediction error. \paragraph{Longer horizons via Dirichlet inversion.} To predict $Y(\tau)$ for $0<\tau\le\log 2$, all lags $\log n-\tau$ ($n\ge2$) are nonnegative, so the truncated identity uses only the past $Y(\tau-\log n)\in\set{Y(-s):s\ge0}$. When $\tau>\log 2$, the terms with $2\le n0$ and would peek into the future. We eliminate them using the Dirichlet inverse $b$ of $\varepsilon(n)=(-1)^{n-1}$, characterised by $(b*\varepsilon)(n)=\sum_{m\mid n}b_m(-1)^{n/m-1}=\delta_{n,1}$ (with $b_1=1$). Since $\sum_{m\ge1}b_m m^{-s}=\eta(s)^{-1}=(1-2^{1-s})^{-1}\zeta(s)^{-1}$, writing $m=2^a r$ with $a\ge0$ and $r$ odd yields the explicit formula \[ b_{2^a r}=\begin{cases}\mu_{\mathrm M}(r), & a=0,\\ 2^{a-1}\mu_{\mathrm M}(r), & a\ge1,\end{cases} \] where $\mu_{\mathrm M}$ is the M\"obius function. For $\tau>0$, set \begin{equation}\label{eq:Ktau} \Ktau\defeq\Bigl(\sum_{1\le m