\section{From the signed bound to the zeros of zeta} \label{sec:classical-rh} \teamanchor{proof.weighted-analytic-finish}% Fix \(k\) as in Section~\ref{sec:analytic-setup}, with \(d=d_k\) and \(\varepsilon=\varepsilon_k\). The signed estimate \eqref{eq:weighted-star} holds for the datum at each sufficiently large integer square \(x\). \subsection{Two scales in the weighted remainder} \teamanchor{proof.weighted-prime-identity}% The places of the datum at \(x\) are indexed by \((\mathbf Z/N_1\mathbf Z)^\times\), and \(N_1\) has the same prime divisors as \(M\). The \(T\) top places form the fiber of \(1\bmod M\) and the \(J\) thick places lie in the fiber of \(-1\bmod M\). Thus \(f=\varphi(M)T\). For a unit \(n\bmod M\), multiplication by \([-n]\) sends the top places bijectively to the fiber of \(-n\bmod M\). For a nonunit, \([-n]\) is the identity. The number of top places \(\tau\) with \([-n]\tau\) thick is therefore \(J\mathbf 1_{n\equiv1\bmod M}\). In \eqref{eq:weighted-remainder} the nominal weight \(w\) is \(a/x\) at the thick places and \(a/x_1\) elsewhere. Since \(a\ge xb\) and \(1\le x_1\le b\), the cutoff \(n\le a\) includes all nonzero terms of the ramps at \(x\) and \(x_1\). Dividing each \(\operatorname{Ask}(a,\tau)\) by \(a\) turns its positive parts into \((1/n-1/x)_+\) or \((1/n-1/x_1)_+\) according to the translated place. The fiber count gives \[ \frac1a\sum_{\tau\in\mathcal T}\operatorname{Ask}(a,\tau) =J\bigl(S_{d,M}(x)-S_{d,M}(x_1)\bigr)+T S_{d,1}(x_1). \] Taking the mean over all \(f\) places gives \(\bar w=\log a-\log x_1-(J/f)(\log x-\log x_1)\). By \eqref{eq:weighted-modulus-one-center}, the main term satisfies \[ \frac{T}{a}\operatorname{MainAsk} =\frac{J}{\varphi(M)}(\log x-\log x_1) +T(\log x_1+c_{d,1}). \] The progression difference cancels \(c_{d,M}\), giving \begin{equation}\label{eq:weighted-prime-identity} \mathrm{rem} =a\bigl[J(R_{d,M}(x)-R_{d,M}(x_1))+T R_{d,1}(x_1)\bigr]. \end{equation} \teamanchor{proof.weighted-second-scale}% Since \(\log x_1=x^{\varepsilon/6}\) by \eqref{eq:weighted-data-scales}, the fixed-modulus estimate \eqref{eq:weighted-fixed-remainder} with \(B>12/\varepsilon\) gives \(\lvert R_{d,Q}(x_1)\rvert\le x^{-2}\) for both \(Q=M,1\) once \(x\) is sufficiently large. Divide \eqref{eq:weighted-star} by \(maJ>0\) and use \eqref{eq:weighted-prime-identity}. The datum has \(T/J\le\log b\), \(f=\varphi(M)T\), \(m\ge\sqrt x\), and \(\log b=x^\varepsilon\). The signed estimate contributes at most \(C_{d,\varepsilon}\varphi(M)x^{-1/2+5\varepsilon}\), and the two \(x_1\) terms contribute at most \((1+x^\varepsilon)x^{-2}=o(x^{-1/2+5\varepsilon})\). Thus, with \(M\) fixed, there is a constant \(C_{d,\varepsilon}>0\) such that every sufficiently large integer square \(x\) satisfies \begin{equation}\label{eq:weighted-square-bound} R_{d,M}(x)\le C_{d,\varepsilon} x^{-1/2+5\varepsilon}. \end{equation} \subsection{The real one-sided estimate} \teamanchor{proof.weighted-squares}% For real \(x\ge1\) let \(y=\lceil\sqrt x\rceil^2\). The nonnegative weights and the nondecreasing ramp kernels in \eqref{eq:weighted-ramp-weights} give \(S_{d_k,M}(x)\le S_{d_k,M}(y)\). The corresponding upper bound for \(R_{d_k,M}(x)\) is \(R_{d_k,M}(y)\) plus the centering difference \(\log(y/x)/\varphi(M)\le 2/(\varphi(M)\sqrt x)\). Since \(-1/2+5\varepsilon<0\), the upper bound \eqref{eq:weighted-square-bound} at \(y\ge x\) is at most \(C_{d,\varepsilon}x^{-1/2+5\varepsilon}\). Both terms are \(o(x^{\beta_k-1})\) for \(\beta_k=1/2+16\varepsilon\), so \begin{equation}\label{eq:weighted-real-bound} R_{d_k,M}(x)\le x^{\beta_k-1} \end{equation} for all sufficiently large real \(x\). \subsection{The Mellin transform and the sign at real poles} \teamanchor{proof.weighted-polar}% For the centered weights in \eqref{eq:weighted-centered-ramp}, the Mellin identity \eqref{eq:common-ramp-mellin} gives, on \(\Re s>1\), \begin{equation}\label{eq:weighted-polar} \Phi_{d,Q}(s)=\int_1^\infty yR_{d,Q}(y)y^{-s-1}\,dy =\frac{G_{d,Q}(s)/s-c_{d,Q}}{s-1}. \end{equation} This continues meromorphically to \(\Re s>0\). It is holomorphic on \(\Re s\ge1\), by the cancellation at \(1\) and the boundary nonvanishing of the regularized \(L\)-functions. At \(0<\Re\rho<1\), the logarithmic derivative in \eqref{eq:weighted-centered-log-derivative} has at most simple poles, with residue \(\operatorname{ord}_\rho\mathcal L_{d,Q}\), negative for a pole of \(\mathcal L_{d,Q}\). Dividing the residue of \(G_{d,Q}\) by \(\rho(\rho-1)\) gives \begin{equation}\label{eq:weighted-residue} r_{d,Q}(\rho)= \frac{\operatorname{ord}_\rho\mathcal L_{d,Q}} {\varphi(Q)\rho(1-\rho)} . \end{equation} By \eqref{eq:weighted-twist-free}, every denominator factor of \(\mathcal L_{d_k,M}\) is nonzero at real \(\beta_k<\sigma<1\). The quotient is holomorphic there, so its order and the residue of \(\Phi_{d_k,M}\) are nonnegative. \teamanchor{proof.weighted-landau}% \begin{lemma}[Landau's argument for the upper bound] \label{lem:weighted-landau} For the fixed \(k\) and \(d_k\), the transform \(\Phi_{d_k,M}\) is holomorphic on \(\Re s>\beta_k\). \end{lemma} \begin{proof} Write \(\beta=\beta_k\) and \(d=d_k\). By \eqref{eq:weighted-real-bound} and continuity on compact intervals, choose \(K>0\) so that \(A(x)=Kx^{\beta-1}-R_{d,M}(x)\ge0\) for all \(x\ge1\). For \(\Re s>1\), \eqref{eq:weighted-polar} gives \begin{equation}\label{eq:weighted-landau-P} P(s)=\int_1^\infty A(x)x^{-s}\,dx =\frac{K}{s-\beta}-\Phi_{d,M}(s). \end{equation} The integral for \(P\) is holomorphic to the right of its abscissa of convergence \(\sigma_c\). Since \(A\) is continuous and nonnegative on \([1,\infty)\), Landau's lemma gives a singularity at \(\sigma_c\) whenever that abscissa is finite \cite[Lemma~15.1, p.~463]{z6montgomery-vaughan}. If \(\sigma_c>\beta\), the meromorphic continuation in \eqref{eq:weighted-landau-P} has at most a simple pole at \(\sigma_c\), with residue \(-r_{d,M}(\sigma_c)\le0\). For real \(\sigma>\sigma_c\), \((\sigma-\sigma_c)P(\sigma)\ge0\), so the right limit shows that the residue is also nonnegative. A zero residue would make the singularity removable, contradicting the lemma. Thus \(\sigma_c\le\beta\), and \eqref{eq:weighted-landau-P} makes \(\Phi_{d,M}\) holomorphic on \(\Re s>\beta\). \end{proof} \subsection{Exclusion of zeros off the critical line} \teamanchor{proof.weighted-rh}% Suppose \(\zeta(\rho)=0\) with \(1/2<\Re\rho<1\). Choose \(k\ge13\) so that \(\beta_k<\Re\rho\) and \(|\Im\rho|\le k\). For this \(k\), take the same prime \(d_k\) in the transform as in \eqref{eq:weighted-twist-free}. For the principal character \(\xi_0\bmod M\), \eqref{eq:common-character-conductor} gives \[ \widetilde L_{\xi_0}(s)=(s-1)\zeta(s) \prod_{p\mid M}(1-p^{-s}). \] The multiplier of \(\zeta(s)\) is nonzero at \(\rho\). The other numerator factors of \(\mathcal L_{d_k,M}\) are holomorphic there and all its denominator factors are nonzero. Hence the quotient has positive order, and \(r_{d_k,M}(\rho)\ne0\), contrary to Lemma~\ref{lem:weighted-landau}. \teamanchor{proof.zeta-reflection}% The nontrivial zeros lie in \(0<\Re s<1\), where \(\pi^{-s/2}\Gamma(s/2)\) is holomorphic and nonzero \cite[\S\S25.10(i), 5.2(i)]{dlmf}. Riemann's functional equation makes \(\pi^{-s/2}\Gamma(s/2)\zeta(s)\) invariant under \(s\mapsto1-s\) \cite[Wilkins translation, pp.~2--3]{riemann-zeta}. A zero with \(0<\Re s<1/2\) would give a zero in the excluded right half of the strip. This proves Theorem~\ref{thm:riemann-hypothesis}.