\section{From the signed bound to the zeros of zeta} \label{sec:classical-rh} \teamanchor{proof.weighted-analytic-finish}% Keep the choices \(k,d_k,\varepsilon_k\) and the squares \(x=y_j\) of Section~\ref{sec:analytic-setup}. The arithmetic comparison gives the signed inequality \eqref{eq:weighted-star}, \(m\,\mathrm{rem}\le fa(\log b)^5\), on the datum at each such \(x\) once \(j\) is sufficiently large. The threshold is fixed once the precision and \(d_k\) are fixed. \subsection{Two scales in the weighted remainder} \teamanchor{proof.weighted-prime-identity}% Take the datum at \(x\) and write \(d=d_k\) and \(\varepsilon=\varepsilon_k\). The place group is \((\mathbf Z/N_1\mathbf Z)^\times\), where \(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 belong to the fiber of \(-1\bmod M\). Thus \(f=\varphi(M)T\). If \(n\) is a unit modulo \(M\), multiplication by \([-n]\) maps the top places bijectively to the fiber of \(-n\bmod M\). If \(n\) is a nonunit, \([-n]\) is the identity by the convention of the datum. In either case the number of top places \(\tau\) for which \([-n]\tau\) is thick is \(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}). \] Subtracting, the two occurrences of \(c_{d,M}\) in the progression difference cancel. The exact identity for the signed remainder is \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}% For \(Q\in\{M,1\}\) define \(H_{d,Q}(t)=\sum_{n\le t}\lambda_{d,Q}(n)-t/\varphi(Q)\). In the reduced classes modulo \(Qd\) congruent to \(1\bmod Q\), the weights \(1-\chi_d\) sum to \(d-1\), by the Chinese remainder theorem and \(\sum_{u\in(\mathbf Z/d\mathbf Z)^\times}\chi_d(u)=0\). Among the other integers \(n\equiv1\bmod Q\) with nonzero von Mangoldt weight, the nonunits modulo \(Qd\) are powers of \(d\). They contribute \(O(\log t)\). Since \(\varphi(Qd)=(d-1)\varphi(Q)\), the fixed-progression estimate \eqref{eq:weighted-fixed-pnt} gives \[ H_{d,Q}(t)=O_{Q,d,B}\bigl(t(\log t)^{-B-1}\bigr) \qquad(B>0). \] With \(b(n)=\lambda_{d,Q}(n)\) and \(a_b=1/\varphi(Q)\), \eqref{eq:weighted-series} identifies \(C_b(s)=G_{d,Q}(s)\) in the count and tail formulas \eqref{eq:common-ramp-count} and \eqref{eq:common-ramp-tail}. Here \(C_b(1)=c_{d,Q}\). Integrating the tail bound gives \begin{equation}\label{eq:weighted-fixed-remainder} R_{d,Q}(y)=-\int_y^\infty H_{d,Q}(t)t^{-2}\,dt =O_{Q,d,B}\bigl((\log y)^{-B}\bigr). \end{equation} The original second scale satisfies \(\log x_1=x^{\varepsilon/6}\) by \eqref{eq:weighted-data-scales}. Choose \(B>12/\varepsilon\). At each of the two fixed moduli, \((\log x_1)^{-B}=x^{-B\varepsilon/6}\) has exponent strictly less than \(-2\). The implied constants in \eqref{eq:weighted-fixed-remainder} are fixed, so \(\lvert R_{d,Q}(x_1)\rvert\le x^{-2}\) for all sufficiently large \(x\). Divide \eqref{eq:weighted-star} by \(maJ>0\), and use \eqref{eq:weighted-prime-identity}. The datum has \(T/J\le\log b\), \(m\ge\sqrt x\), and \(\log b=x^\varepsilon\). Hence \begin{align*} R_{d,M}(x) &\le \frac{f(\log b)^5}{mJ} +R_{d,M}(x_1)-\frac{T}{J}R_{d,1}(x_1)\\ &\le \varphi(M)x^{-1/2+6\varepsilon}+(1+x^\varepsilon)x^{-2}. \end{align*} Since \(\varepsilon>0\), the last expression is at most \(x^{-1/2+8\varepsilon}\) for sufficiently large \(x\). Thus \begin{equation}\label{eq:weighted-square-bound} R_{d_k,M}(y_j)\le y_j^{-1/2+8\varepsilon_k} \qquad\text{for all sufficiently large }j. \end{equation} \subsection{The real one-sided estimate} \teamanchor{proof.weighted-squares}% Put \(\alpha_k=1/2+8\varepsilon_k=1/2+1/(2k)<\beta_k\). The test squares satisfy \(y_j\ge X_j\to\infty\). Hence \(y_j^{\alpha_k-1}\le\tfrac12y_j^{\beta_k-1}\) for all sufficiently large \(j\). Combining \eqref{eq:weighted-square-bound} with maximality in \eqref{eq:weighted-square-selection} gives \(R_{d_k,M}(y)\le\tfrac12 y^{\beta_k-1}\) at every square \(y\) of each such block. The blocks cover all sufficiently large squares. For real \(x\ge1\) take \(y=\lceil\sqrt x\rceil^2\). The kernels \((1/n-1/x)_+\) are nondecreasing in \(x\) and the weights in \eqref{eq:weighted-ramp-weights} are nonnegative. Thus \(S_{d_k,M}(x)\le S_{d_k,M}(y)\). Since \(y\ge x\), \(\beta_k<1\), and \(\log(y/x)\le2x^{-1/2}\), this gives \[ R_{d_k,M}(x) \le R_{d_k,M}(y)+\frac{\log(y/x)}{\varphi(M)} \le\tfrac12x^{\beta_k-1}+\frac{2}{\varphi(M)\sqrt x}. \] The second term is at most \(\tfrac12x^{\beta_k-1}\) eventually, because \(\beta_k>1/2\). Therefore \begin{equation}\label{eq:weighted-real-bound} R_{d_k,M}(x)\le x^{\beta_k-1}\qquad \text{for all sufficiently large real }x . \end{equation} \subsection{The Mellin transform and the sign at real poles} \teamanchor{proof.mellin-ramp-kernel}% For the general sum \(\mathcal R_b\) in \eqref{eq:common-ramp-count}, integration of one term gives \[ \int_n^\infty (y/n-1)y^{-s-1}\,dy =\frac{n^{-s}}{s(s-1)}\qquad(\Re s>1). \] For \(\sigma=\Re s>1\), the sum of the absolute ramp integrals is \(\sum_n |b(n)|n^{-\sigma}/(\sigma(\sigma-1))<\infty\). Integrating the centering terms separately gives \begin{equation}\label{eq:common-ramp-mellin} \int_1^\infty y\mathcal R_b(y)y^{-s-1}\,dy =\frac{D_b(s)}{s(s-1)}-\frac{a_b}{(s-1)^2}-\frac{c}{s-1} =\frac{C_b(s)/s-c}{s-1}. \end{equation} In particular the right side is holomorphic at \(1\) when \(C_b\) is holomorphic there and \(c=C_b(1)\). \teamanchor{proof.weighted-polar}% For the weights \(\lambda_{d,Q}\) one has \(C_b(s)=G_{d,Q}(s)\) and \(c=c_{d,Q}\) by \eqref{eq:weighted-series} and \eqref{eq:weighted-centered-ramp}. Thus for \(\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 derivatives in \eqref{eq:weighted-centered-log-derivative} have at most simple poles, with residue equal to the zero order of the function being differentiated. Dividing by \(\rho(\rho-1)\) gives the residue of \(\Phi_{d,Q}\) at \(\rho\) in the form \begin{equation}\label{eq:weighted-residue} r_{d,Q}(\rho)= \frac{\displaystyle\sum_{\xi\bmod Q} \bigl(\operatorname{ord}_{\rho}\widetilde L_\xi -\operatorname{ord}_{\rho}\widetilde L_{\xi\chi_d}\bigr)} {\varphi(Q)\rho(1-\rho)} . \end{equation} The residue is zero at a regular point. For \(d=d_k,\ Q=M\), the twisted orders vanish at every real \(\beta_k<\sigma<1\) by \eqref{eq:weighted-twist-free}. The untwisted orders are nonnegative and \(\sigma(1-\sigma)>0\), so every real residue of \(\Phi_{d_k,M}\) on \(\sigma>\beta_k\) is 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 bounded intervals, take \(K\ge1\) so that \[ g(v)=K e^{\beta v}-e^v R_{d,M}(e^v)\ge0\qquad(v\ge0). \] It is continuous because the ramp sum is locally finite and each kernel is continuous. The Laplace transform of \(g\) converges absolutely on \(\Re s>1\), where \(y=e^v\) in \eqref{eq:weighted-polar} gives \begin{equation}\label{eq:weighted-landau-P} P(s)=\int_0^\infty g(v)e^{-sv}\,dv =\frac{K}{s-\beta}-\Phi_{d,M}(s). \end{equation} Let \(\sigma_c\) be the abscissa of convergence of the nonnegative integral. In \(\Re s>\sigma_c\) the integral defines a holomorphic function by absolute convergence locally uniformly on this half-plane. Suppose \(\sigma_c>\beta\). The right side of \eqref{eq:weighted-landau-P} agrees with the integral to the right of \(\sigma_c\) by continuation. At \(\sigma_c\) it has at most a simple pole with residue \(-r_{d,M}(\sigma_c)\le0\), where \(r_{d,M}\) is zero on the regular portion of the real ray. For real \(s>\sigma_c\), \((s-\sigma_c)P(s)\ge0\). Taking the right limit shows that the residue is also nonnegative. It is therefore zero and the singularity is removable. Take a disk of radius \(r>0\) about \(\sigma_c\) on which this continuation is holomorphic. For \(a=\sigma_c+r/4\) and \(h=r/2\), the Taylor series at \(a\) converges at \(a-h<\sigma_c\). Its derivatives at \(a\) are given by integrating \((-v)^j g(v)e^{-av}\), since a real \(\sigma'\) with \(\sigma_c<\sigma'\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}. The principal character \(\xi_0\bmod M\) has \[ \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\), so the principal character contributes a positive order to the numerator of \eqref{eq:weighted-residue}. The other untwisted orders are nonnegative and the twisted orders all vanish. The residue \(r_{d_k,M}(\rho)\) is then nonzero, contrary to Lemma~\ref{lem:weighted-landau}. This excludes every zero with \(1/2<\Re\rho<1\). \teamanchor{proof.zeta-reflection}% For modulus one the boundary nonvanishing proved in Section~\ref{sec:analytic-setup} gives \(\zeta(s)\ne0\) on \(\Re s\ge1\) away from the pole at \(1\). The continuation and functional equation of Riemann \cite[Wilkins translation, pp.~2--3]{riemann-zeta} give \(\zeta(s)\) meromorphic on \(\mathbf C\) with only the simple pole at \(1\), and the identity \[ \pi^{-s/2}\Gamma(s/2)\zeta(s) =\pi^{-(1-s)/2}\Gamma((1-s)/2)\zeta(1-s). \] For \(\Re s<1/2\) and \(s\ne0\), the reflected zeta value is finite and nonzero by the right-half exclusion and boundary nonvanishing. The factor \(\Gamma((1-s)/2)\) is finite and nonzero there. The reciprocal of \(\Gamma(z)\) is entire with simple zeros precisely at \(z=0,-1,-2,\ldots\) \cite[\S5.2(i)]{dlmf}. Solving the equation for \(\zeta(s)\) therefore gives exactly the negative even integers as zeros on \(\Re s<1/2\) away from \(0\). At \(0\), use \(\Gamma(s/2)^{-1}=s/2+O(s^2)\), \(\zeta(1-s)=-1/s+O(1)\), and \(\Gamma(1/2)=\sqrt\pi\) \cite[(5.4.6)]{dlmf} in the same equation to obtain \(\zeta(0)=-1/2\). This proves Theorem~\ref{thm:riemann-hypothesis}.