\section{An explicit sharp progression variance}\label{sec:var} At the scale \eqref{eq:scales}, put \(\Psi(y,\chi)=\sum_{n\le y}\Lambda(n)\chi(n)\), and let \(\delta_\chi\) also indicate the principal character of any modulus. If \(q\) is the conductor, put \(J(y)=\log(256q(2+|y|))\). \paragraph{One-dimensional estimates.} In \eqref{eq:poisson} the Dirichlet series is bounded in modulus by \(\sum_{n\ge2}(\log n)n^{-3/2}<10\) by integral comparison. For \(3/4\le\Re z\le5/4\) we have \(\Re\psi_0(z)\le3+\log(4+|z|)\). Indeed in the series \(-\gamma_E+\sum_{n\ge0}(1/(n+1)-1/(n+z))\), truncate at \(\lceil1+|z|\rceil\) and bound the remaining absolute sum by \((1+|z|)\sum_{n\ge\lceil1+|z|\rceil}1/[n(n+1)]\). The two extra terms for \(\zeta\) cost at most \(3\). Each zero with \(|\gamma-b|\le1\) contributes at least \(1/2\). Thus \begin{equation}\label{eq:zeros} \#\{|\gamma-b|\le1\}\le40\log(8q(2+|b|)). \end{equation} For a character of modulus \(q'\le4X^2\) use \(Y_0=100X\) and \(H(s)=(\sinh(s/Y_0)/(s/Y_0))^2\). On \(-1/2\le\Re s\le2\), \(|H|\le2\min(1,Y_0^2/|\Im s|^2)\), \(H'(0)=0\), and \(0\le H(1)-1\le Y_0^{-2}\), by the exponential integral for \(\sinh z/z\) and its Taylor series. Average the sharp endpoint \(y\) at \(y\exp((U_1+U_2)/Y_0)\), with independent uniform \(U_i\in[-1,1]\). For \(1\le y\le6X\) the interval crossed has length at most \(6X(4/Y_0)e^{2/Y_0}<1\), so the cost is at most \(\log(7X)\). Mellin inversion after averaging is absolutely convergent on \(\Re s=2\), with integrand \(-(L'/L)(s)y^s H(s)/s\). Shift to \(-1/2\) at the good heights of \S\ref{sec:inputs}. At \(1\) the principal residue is \(yH(1)\). The zero residues are \(-H(\rho)y^\rho/\rho\). At \(0\) the residue is \(-b(\chi)\) for odd primitive characters, \(-b(\chi)-\log y\) for even nonprincipal primitive ones, and \(-\log(2\pi)\) for \(\zeta\). The horizontal integrals tend to zero by the quadratic decay of \(H\). The zero sum converges absolutely by \eqref{eq:zeros}. With \(D=\log(q(Y_0+3))+7\le12t\), the two-sided integral on the left line in absolute value is at most \(2[5D+2D\log Y_0+1]y^{-1/2}<10^3t^2y^{-1/2}\). Split at heights \(1,Y_0\), using \(1/|s|\le2\), then \(1/|\Im s|\), then the quadratic decay and \(\log((|v|+3)/(Y_0+3))\le\log(|v|/Y_0)\). Here \(\log Y_0\le4t\). The primitive replacement for the sharp sum costs at most \((\log q'/\log2)\log(7X)\le7t^2\), by summing powers of primes dividing \(q'\). This proves \begin{equation}\label{eq:perron} \Psi(y,\chi)-\delta_\chi y=-\sum_\rho H(\rho)y^\rho/\rho+r(y), \qquad |r(y)|\le10^4t^2\quad(1\le y\le6X). \end{equation} For \(U\ge1\), either the range \(|\gamma|\le U\) or the shell \(U\le|\gamma|<2U\) contains at most \(200 U J(2U)\) zeros by \eqref{eq:zeros}. For finitely supported coefficients at ordinates counted with multiplicity, \[ \int_M^{4M}\Big|\sum_\gamma c_\gamma y^{i\gamma}\Big|^2\frac{\dd y}{y} \le10^4\sum_\gamma |c_\gamma|^2J(\gamma). \] In \(v=\log(y/M)\) majorize the interval by \(\mathrm e\exp(-v^2/4)\). Its transform contributes \(2\mathrm e\sqrt\pi\,e^{-(\gamma-\gamma')^2}\). In the shell \(j\le|\gamma-\gamma'|Y}\frac{|H(\rho)|^2J(\gamma)}{|\rho|^2} \le \frac{800}{Y}\sum_{j\ge0}2^{-j}(J(2Y)+j\log2)^2 \le 10^4J(2Y)^2/Y. \] The Gram bound costs at most \(16\cdot10^8 M^2J(2Y)^2/Y\) per endpoint, including the factor \(y^2\le16M^2\) in logarithmic measure. Combining these three terms and the difference of remainders with \(|\sum_{i=1}^4z_i|^2\le4\sum|z_i|^2\), and using \(J(2Y)\le8t\), gives \begin{equation}\label{eq:moving} \int_M^{2M}|\Psi(y+h,\chi)-\Psi(y,\chi)-\delta_\chi h|^2\dd y \le10^{14}Mht^4. \end{equation} We also require a bound at a single endpoint. In \(\sum|H(\rho)/\rho|\), the ordinates up to 1 cost \(800J(2)\), each dyadic shell starting below \(Y_0\) costs \(400J(4Y_0)\), and the tail starting at \(Y_0\) costs at most \(400\sum_{j\ge0}4^{-j}(J(2Y_0)+j\log2)\). Since \(J(4Y_0)\le12t\) and \(1+\log_2Y_0\le6t\), \eqref{eq:perron} yields \begin{equation}\label{eq:pnt} |\Psi(y,\chi)-\delta_\chi y|\le10^6\sqrt y\,t^2\quad(1\le y\le6X). \end{equation} At \(y=0\) the centered sum vanishes. \begin{lemma}\label{lem:var} Put \(u_d(n)=d\,\ind_{(n,d)=1}/\varphi(d)\), \(E_d=S-\sum_{n\le N}u_d(n)e(n\alpha)\), and \(\mathcal B_H(x)=\sum_{j=0}^{H-1}e(jx)\). For integers \(d,H\ge1,\ dH\le X\), \begin{equation}\label{eq:var} \int_\T |E_d(\alpha)\mathcal B_H(-d\alpha)|^2\dd\alpha \le C_{\rm sv}XHt^4,\qquad C_{\rm sv}=10^{18}. \end{equation} For a measurable set \(G\subseteq\T\), a measurable function \(F:G\to\mathbb C\) satisfying \(|F|\le2|E_d|\) on \(G\), and an integer \(Z\ge1\) with \(dZ\le X\), we have \begin{equation}\label{eq:level} \int_G |F(\alpha)|^2|\mathcal B_Z(d\alpha)|\dd\alpha \le1024 C_{\rm sv} X V^5 . \end{equation} \end{lemma} \begin{proof} Use the clipping argument of \cite[Proposition 3.4]{D}. Write \(h=dH\), \(W_s=(\max(0,s-h),s]\cap(0,2X]\) for integers \(0\le s<2X+h\). Sum squared centered character errors on these windows. For full windows starting at or above \(h\), sum \eqref{eq:moving} on the intervals \([2^jh,2^{j+1}h)\), whose left endpoints sum to at most \(4X\). The increment is constant between successive integers. At most \(3h\) windows remain, including both clipped ends. Each costs at most \(8\cdot10^{12}Xt^4\) by \eqref{eq:pnt}. The sum per character is \(\le10^{16}Xht^4\). Character orthogonality, averaging over all characters modulo \(d\), gives the same bound summed over \(s\) and unit classes \(r\), centered at \(|W_s|/\varphi(d)\). Replacing this reference by the exact sum of \(u_d(n)\) in the class costs at most \(d/\varphi(d)\le2(1+\log d)\), by factoring off \(\prod_{p\mid d}(1-p^{-2})^{-1}\le\zeta(2)<2\) and using \(\sum_{b\mid d}\mu^2(b)/b\le1+\log d\). For nonunit classes the total mass per \(s\) is \(\le(\log d/\log2)t\le2t^2\). With \(2X+h\le3X,\ d\le h\), the sum of the squared errors over all \(s,r\) is \(\le10^{18}Xht^4\). By Parseval the left of \eqref{eq:var} sums squared progression errors over starts \(m\), with zeros outside \([1,2X]\). Each progression meeting this interval occurs in \(d\) different pairs \((s,m\bmod d)\) obtained by setting \(s=m+(H-1)d+u,\ 0\le u