\subsection{Proof of \texorpdfstring{\cref{prop:meansq}}{the mean-square proposition}} \label{sec:proof-meansq} \PropMeansq* \paragraph{External results.} \begin{itemize} \item[(E2)] The zero count \eqref{eq:zerocount} with $C_Z\ge1$, from \citet[Theorem~9.2]{Titchmarsh1986}. \item[(E3)] \citet[Corollary~3]{MontgomeryVaughan1974}: there is an absolute constant $C_{MV}>0$ such that for all real $X_0$, $X>0$, $M\ge1$, and complex $a_n$, \begin{equation}\label{eq:MV} \int_{X_0}^{X_0+X}\Bigl|\sum_{1\le n\le M}a_n n^{-it}\Bigr|^2\rd t \le (X+C_{MV}M)\sum_{1\le n\le M}\abs{a_n}^2. \end{equation} \item[(E5)] Partial-fraction approximation to $\zeta'/\zeta$ \citep[Theorem~9.6(A)]{Titchmarsh1986}: uniformly for $-1\le\sigma\le 2$ and $t\ge2$ (away from zeros), \[ \frac{\zeta'}{\zeta}(\sigma+it)=\sum_{\abs{\gamma-t}\le1}\frac{1}{\sigma+it-\rho}+O(\log t). \] \item[(E6)] Logarithmic derivative of the functional equation \citep[eq.~(4.12.3)]{Titchmarsh1986}: with $\zeta(s)=\chi(s)\zeta(1-s)$, \[ \frac{\zeta'}{\zeta}(1-s)=\frac{\chi'}{\chi}(1-s)-\frac{\zeta'}{\zeta}(s), \qquad \frac{\chi'}{\chi}(1-\sigma-it)=-\log\frac{t}{2\pi}+O\Bigl(\frac1t\Bigr) \] uniformly for $-1\le\sigma\le 2$ and $t\ge2$. Moreover $\chi(1-s)=\pi^{1/2-s}\Gamma(s/2)/\Gamma((1-s)/2)$ is holomorphic and nonvanishing on $\im s>0$. \end{itemize} We also use \cref{lem:mellin} (with $k=1$) and \cref{lem:sharp}. The heart of both \cref{prop:meansq} and \cref{prop:meansqmult} is the following dyadic-shell estimate, which applies to any real-coefficient Dirichlet polynomial of length $<2N$ with bounded coefficients (covering both $\AN$ and $\ANsharp$). \begin{lemma}[Dyadic-shell mean square over zeros]\label{lem:shell} There is an absolute constant $C_{\mathrm{shell}}>0$ such that for every real $N\ge1$, every real $T\ge\max(N,7)$, and every Dirichlet polynomial $A(s)=\sum_{1\le n<2N}a_n n^{-s}$ with real coefficients satisfying $\abs{a_n}\le1$, \[ \sum_{T<\gamma\le 2T}\abs{A(\rho)}^2\le C_{\mathrm{shell}}\,T\log(2T)\log(2N), \] the sum running over nontrivial zeros $\rho=\tfrac12+i\gamma$ with multiplicity. \end{lemma} \begin{proof} Throughout the proof, all implied constants in $\ll$ are absolute. Fix $N\ge1$ and $T\ge\max(N,7)$, and set \[ \delta\defeq\frac{1}{2\log(2N)}\in\Bigl(0,\,\frac{1}{2\log 2}\Bigr]\subset(0,1), \qquad c\defeq 1+\delta\in(1,2), \] so that $[1-c,c]=[-\delta,1+\delta]\subset[-1,2]$ and $n^{2\delta}\le(2N)^{1/\log(2N)}=e$ for all $1\le n<2N$. \textbf{Step 1 (choosing well-separated horizontal cuts).} Consider the intervals $I_1\defeq[T/2,T)$ and $I_2\defeq(2T,5T/2]$, each of length $T/2$. Because $T\ge7$, we have $T/2\ge3.5>2$, and each enlarged interval $[T/2-1,T+1]$ and $[2T-1,5T/2+1]$ has length $T/2+2\le T-1.5$, so each is covered by at most $T$ closed unit intervals whose left endpoints lie in $[0,3T]$. By \eqref{eq:zerocount}, each enlarged interval contains at most $T\cdot C_Z\log(2+3T)$ zero ordinates (with multiplicity). Put \[ \eta\defeq\frac{1}{8C_Z\log(2+3T)}<1. \] Removing the open interval $(\gamma-\eta,\gamma+\eta)$ around every zero ordinate $\gamma$ removes total Lebesgue measure at most $T C_Z\log(2+3T)\cdot 2\eta=T/4$ from $I_1$, and similarly at most $T/4$ from $I_2$. Hence the remaining good sets $G_1\subset I_1$ and $G_2\subset I_2$ satisfy $\abs{G_1}\ge T/4$ and $\abs{G_2}\ge T/4$, and every $t\in G_1\cup G_2$ satisfies $\abs{t-\gamma}\ge\eta$ for all zero ordinates $\gamma$. By (E5) and \eqref{eq:zerocount}, for every $t\in G_1\cup G_2$ and every $\sigma\in[-\delta,1+\delta]\subset[-1,2]$, \begin{equation}\label{eq:logderiv-horiz} \Bigl|\frac{\zeta'}{\zeta}(\sigma+it)\Bigr| \le \frac{2C_Z\log(2+3T)}{\eta}+O(\log T) \ll \log^2(2T). \end{equation} We now average the horizontal envelope $\Phi(t)\defeq\int_{-\delta}^{1+\delta}\abs{A(\sigma+it)}\abs{A(1-\sigma-it)}\rd\sigma$ over $G_1$. By Tonelli's theorem and Cauchy--Schwarz in $t$, \[ \frac{1}{\abs{G_1}}\int_{G_1}\Phi(t)\rd t \le \frac{4}{T}\int_{-\delta}^{1+\delta} \Bigl(\int_{T/2}^T\abs{A(\sigma+it)}^2\rd t\Bigr)^{1/2} \Bigl(\int_{T/2}^T\abs{A(1-\sigma-it)}^2\rd t\Bigr)^{1/2}\rd\sigma. \] For any $\sigma\in[-\delta,1+\delta]$, \eqref{eq:MV} with $M=2N$ and $\abs{a_n}\le1$ yields \[ \int_{T/2}^T\abs{A(\sigma+it)}^2\rd t \le \Bigl(\frac T2+2C_{MV}N\Bigr)\sum_{1\le n<2N}n^{-2\sigma}. \] If $\sigma\ge\frac12$, then $\sum_{n<2N}n^{-2\sigma}\le\sum_{n<2N}n^{-1}\le 1+\log(2N)$; if $\sigma<\frac12$, then $n^{-2\sigma}=n^{-1}n^{1-2\sigma}\le n^{-1}(2N)^{1-2\sigma}$, so $\sum_{n<2N}n^{-2\sigma}\le(2N)^{1-2\sigma}(1+\log(2N))$. In both cases $\sum_{n<2N}n^{-2\sigma}\le(2N)^{\max(0,1-2\sigma)}(1+\log(2N))$. Applying the same bound at $1-\sigma$ and multiplying square roots (noting $\max(0,1-2\sigma)+\max(0,2\sigma-1)=2\abs{\sigma-\frac12}$) gives, since $T\ge N$, \[ \frac{1}{\abs{G_1}}\int_{G_1}\Phi(t)\rd t \ll (1+\log(2N))\int_{-\delta}^{1+\delta}(2N)^{\abs{\sigma-1/2}}\rd\sigma = 2(1+\log(2N))\frac{(2N)^{1/2+\delta}-1}{\log(2N)} \ll \sqrt{N}, \] using $(2N)^\delta=e^{1/2}$ and $(1+\log(2N))/\log(2N)\le 1+1/\log 2$. Therefore there exists $T_1\in G_1\subset[T/2,T)$ with $\Phi(T_1)\ll\sqrt{N}$. By the identical argument on $G_2\subset(2T,5T/2]$, there exists $T_2\in G_2$ with $\Phi(T_2)\ll\sqrt{N}$. \textbf{Step 2 (residue theorem and functional equation).} Let $\mc R$ be the positively oriented rectangle with vertices $c+iT_1$, $c+iT_2$, $1-c+iT_2$, $1-c+iT_1$, and set \[ H(s)\defeq\frac{\zeta'}{\zeta}(s)\,A(s)\,A(1-s). \] Since $T_1\ge3.5>0$, $\mc R$ avoids $s=1$ and all trivial zeros, and contains no zeros on its boundary because $T_1,T_2\in G_1\cup G_2$. Every nontrivial zero $\rho=\frac12+i\gamma$ lies on $\re s=\frac12\in(1-c,c)$ and satisfies $1-\rho=\bar\rho$. Since $A$ has real coefficients, $A(\bar z)=\overline{A(z)}$, so $A(\rho)A(1-\rho)=\abs{A(\rho)}^2\ge0$. At a zero $\rho$ of multiplicity $m_\rho$, $\zeta'/\zeta$ has a simple pole of residue $m_\rho$, and $A(s)A(1-s)$ is entire. By the residue theorem and $T_11$, the Dirichlet series $-\frac{\zeta'}{\zeta}(s)=\sum_{m\ge1}\Lambda(m)m^{-s}$ converges absolutely and uniformly on $\re s=c$. Multiplying by the finite sum $A(s)=\sum_{1\le d<2N}a_d d^{-s}$ gives \[ -\frac{\zeta'}{\zeta}(c+it)A(c+it)=\sum_{k=1}^\infty b_k k^{-c-it}, \qquad b_k\defeq\sum_{\substack{d\mid k\\ d<2N}}a_d\Lambda(k/d), \] where $\abs{b_k}\le\sum_{d\mid k}\Lambda(k/d)=\log k$. Multiplying by $A(1-c-it)=\sum_{1\le n<2N}a_n n^{\delta+it}$ and integrating term by term over $[T_1,T_2]$ (justified by uniform convergence) yields \begin{align*} -\int_{T_1}^{T_2}\frac{\zeta'}{\zeta}(c+it)A(c+it)A(1-c-it)\rd t &= (T_2-T_1)\sum_{1\le n<2N}\frac{b_n a_n}{n}\\ &\quad +\sum_{1\le n<2N}a_n n^\delta\sum_{\substack{k=1\\ k\ne n}}^\infty b_k k^{-c}\frac{(n/k)^{iT_2}-(n/k)^{iT_1}}{i\log(n/k)}. \end{align*} The diagonal sum is bounded by \[ (T_2-T_1)\sum_{1\le n<2N}\frac{\log n}{n} \le 2T\log(2N)\bigl(1+\log(2N)\bigr) \ll T\log^2(2N). \] For the off-diagonal sum, note $n^\delta\le(2N)^\delta=e^{1/2}$ and $\abs{(n/k)^{iT_2}-(n/k)^{iT_1}}\le2$, so it suffices to bound $\sum_{k\ne n}\frac{\log k}{k^{1+\delta}\abs{\log(k/n)}}$ uniformly for each $1\le n<2N$. We split $k\ne n$ into three ranges: \begin{itemize} \item $1\le k\le n/2$: here $\abs{\log(k/n)}\ge\log 2$, so $\sum_{k\le n/2}\frac{\log k}{k^{1+\delta}\log 2}\le\frac{1}{\log 2}\sum_{k<2N}\frac{\log k}{k}\ll\log^2(2N)$. \item $n/2n$, then $\log(k/n)=\log(1+(k-n)/n)\ge(k-n)/(2n)$ and $k^{-1-\delta}\le 1/n$, giving $\frac{1}{k^{1+\delta}\abs{\log(k/n)}}\le\frac{2}{k-n}$. Since $\log k\le\log(4N)$, this range contributes at most $4\log(4N)(1+\log(2N))\ll\log^2(2N)$. \item $k\ge 2n$: here $\abs{\log(k/n)}\ge\log 2$. The function $x\mapsto(\log x)/x^{1+\delta}$ is unimodal on $[1,\infty)$ with maximum $(e(1+\delta))^{-1}\le e^{-1}$, so \[ \sum_{k\ge 2n}\frac{\log k}{k^{1+\delta}\log 2} \le \frac{1}{\log 2}\Bigl(\int_1^\infty\frac{\log x}{x^{1+\delta}}\rd x+\frac1e\Bigr) = \frac{1}{\log 2}\Bigl(\frac{1}{\delta^2}+\frac1e\Bigr) \ll \log^2(2N). \] \end{itemize} Summing over $1\le n<2N$ bounds the off-diagonal contribution by $O(N\log^2(2N))$, whence $\abs{J_2}\ll(T+N)\log^2(2N)\ll T\log^2(2N)$. \textbf{Step 5 (assembly).} Combining Steps~2--4 in \eqref{eq:rect-split} yields \[ \sum_{T<\gamma\le 2T}\abs{A(\rho)}^2 \ll T\log(2T)\log(2N)+T\log^2(2N)+\sqrt{N}\log^2(2T). \] Since $T\ge N\ge1$, we have $\log(2N)\le\log(2T)$ and $\sqrt{N}\log^2(2T)\le T\log(2T)\cdot(\log(2T)/\sqrt{T})\ll T\log(2T)\le T\log(2T)\log(2N)$. This proves \cref{lem:shell}. \end{proof} \begin{proof}[Proof of \cref{prop:meansq}] Fix real $N\ge1$, and let $A$ denote either $\AN$ or $\ANsharp$. Both have real coefficients supported on $1\le n<2N$ with $\abs{a_n}\le1$. \textbf{Low zeros ($\abs\gamma\le N$).} For $A=\AN$, \cref{lem:mellin} with $k=1$ gives $\abs{\AN(\rho)}^2\le C_1^2(1+\abs\gamma)^2/N^2$. Since $(1+x)^2\le 8(\frac14+x^2)$ for all $x\ge0$, each low zero contributes at most $8C_1^2/N^2$. Covering $[-N,N]$ by at most $2(N+1)$ unit intervals and applying \eqref{eq:zerocount} bounds the number of low zeros by $2C_Z(N+1)\log(2+N)\ll N\log(2N)$, so \[ \sum_{\abs\gamma\le N}\frac{\abs{\AN(\rho)}^2}{\abs\rho^2}\ll_w\frac{\log(2N)}{N}\ll_w\frac{\log^2(2N)}{N}. \] For $A=\ANsharp$, \cref{lem:sharp} gives $\abs{\ANsharp(\rho)}^2\le C_0^2/N$, so \[ \sum_{\abs\gamma\le N}\frac{\abs{\ANsharp(\rho)}^2}{\abs\rho^2} \le \frac{C_0^2}{N}\sum_\rho\frac{1}{\abs\rho^2} = \frac{C_0^2 k(0)}{N} \ll \frac{\log^2(2N)}{N}. \] \textbf{High zeros ($\abs\gamma>N$).} Partition $\set{\abs\gamma>N}$ into dyadic shells $S_j\defeq\set{\rho:T_j<\abs\gamma\le 2T_j}$ with $T_j\defeq 2^j N$ ($j\ge0$). If $T_j<7$, then $2T_j<14$ and $S_j$ is empty (since $\zeta$ has no nontrivial zeros with $\abs\gamma<14$). Whenever $T_j\ge7$, \cref{lem:shell} (together with symmetry $\gamma\mapsto-\gamma$ and $\abs{A(\bar\rho)}=\abs{A(\rho)}$) yields \[ \sum_{\rho\in S_j}\frac{\abs{A(\rho)}^2}{\abs\rho^2} \le \frac{1}{T_j^2}\sum_{\rho\in S_j}\abs{A(\rho)}^2 \le 2C_{\mathrm{shell}}\,\frac{\log(2T_j)\log(2N)}{T_j}. \] Since $\log(2T_j)=j\log 2+\log(2N)\le (j+1)\log(2N)$ and $1/T_j=2^{-j}/N$, summing over $j\ge0$ using $\sum_{j\ge0}(j+1)2^{-j}=4$ gives \[ \sum_{\abs\gamma>N}\frac{\abs{A(\rho)}^2}{\abs\rho^2} \le 8C_{\mathrm{shell}}\,\frac{\log^2(2N)}{N}. \] Adding the low-zero and high-zero bounds completes the proof of \cref{prop:meansq}. \end{proof} \subsection{Proof of \texorpdfstring{\cref{prop:meansqmult}}{the multiplicity-weighted proposition}} \label{sec:proof-meansqmult} \PropMeansqMult* \begin{proof} Fix real $N\ge1$, and let $A$ denote either $\AN$ or $\ANsharp$. By \eqref{eq:zerocount} applied at $T=\gamma$, all $m_\rho$ copies of a zero $\rho=\frac12+i\gamma$ lie in $[\gamma,\gamma+1]$, so \begin{equation}\label{eq:mult-bound} m_\rho\le C_Z\log(2+\abs\gamma). \end{equation} \textbf{Low zeros ($\abs\gamma\le N$).} For $A=\AN$, \eqref{eq:mult-bound} gives $m_\rho\le C_Z\log(2+N)\ll\log(2N)$, so multiplying the low-zero bound of \cref{prop:meansq} by $C_Z\log(2+N)$ yields $O_w(\log^2(2N)/N)\ll_w\log^3(2N)/N$. For $A=\ANsharp$, \cref{lem:sharp} gives \[ \sum_{\abs\gamma\le N}m_\rho\frac{\abs{\ANsharp(\rho)}^2}{\abs\rho^2} \le \frac{C_0^2}{N}\sum_\rho\frac{m_\rho}{\abs\rho^2} \ll \frac{1}{N}, \] where $\sum_\rho m_\rho/\abs\rho^2<\infty$ by \eqref{eq:mult-bound} and \eqref{eq:zerocount} (see Step~2 of \cref{sec:proof-actual}). \textbf{High zeros ($\abs\gamma>N$).} On each non-empty dyadic shell $S_j=\set{\rho:T_j<\abs\gamma\le 2T_j}$ ($T_j=2^jN\ge7$), \eqref{eq:mult-bound} gives $m_\rho\le C_Z\log(2+2T_j)\le 2C_Z(j+1)\log(2N)$. Multiplying the shell estimate from \cref{lem:shell} (which already sums over $\rho$ with multiplicity) by this uniform bound on $m_\rho$ yields \[ \sum_{\rho\in S_j}m_\rho\frac{\abs{A(\rho)}^2}{\abs\rho^2} \le 2C_Z(j+1)\log(2N)\cdot 2C_{\mathrm{shell}}\frac{(j+1)\log^2(2N)}{2^j N} = 4C_Z C_{\mathrm{shell}}\,(j+1)^2 2^{-j}\,\frac{\log^3(2N)}{N}. \] Summing over $j\ge0$ using $\sum_{j\ge0}(j+1)^2 2^{-j}=12$ gives at most $48 C_Z C_{\mathrm{shell}}\log^3(2N)/N$. Adding the low-zero bound finishes the proof. \end{proof}