diff 763cb89..b34550f large_prime_gaps_positive_density_v2.txt
diff --git a/large_prime_gaps_positive_density_v2.txt b/large_prime_gaps_positive_density_v2.txt
index e2a71b2..61c24a7 100644
--- a/large_prime_gaps_positive_density_v2.txt
+++ b/large_prime_gaps_positive_density_v2.txt
@@ -5,7 +5,7 @@ Write $p_n$ for the $n$-th prime and $d_n=p_{n+1}-p_n$ for the gap to its succes
 ./pdf/maynard-1408.5110-2016-large-gaps-between-primes.pdf
 ./pdf/ford-green-konyagin-maynard-tao-1412.5029-2018-long-gaps-primes.pdf
 
-The object of interest is not the largest gap but its frequency. A lower bound for the maximal gap does not prevent the exceptional gaps from forming a sparse set; a positive proportion of large gaps is a strictly stronger statement. For a set $A$ of positive integers write $\underline{d}(A)=\liminf_{N\to\infty}|A\cap[1,N]|/N$ for its lower asymptotic density.
+The object of interest is not the largest gap but its frequency. A lower bound for the maximal gap does not prevent the exceptional gaps from forming a sparse set; a positive proportion of large gaps is a strictly stronger statement. For a set $A$ of positive integers write $d(A)=liminf_{N\to∞}|A\cap[1,N]|/N$ for its lower asymptotic density.
 
 Theorem. For every fixed real $C>0$ there are constants $c(C)>0$ and $N_0(C)$ such that, for every integer $N\ge N_0(C)$,
 $$\#\{1\le n\le N:\ p_{n+1}-p_n>C\log p_n\}\ \ge\ c(C)\,N.$$
@@ -27,19 +27,19 @@ Conditional results are quantitatively stronger. Gallagher derived Poisson stati
 
 ./pdf/jha-2605.23014v2-2026-poisson-tail-primes-short-intervals.pdf
 
-The theorem reduces to a single weight construction over two adjacent blocks. Fix $\lambda>0$ and write $L=\log X$, $h=\lfloor\lambda L\rfloor$, with the integer $X\to\infty$. For each integer start $m\in(X,2X]$ split the window above $m$ into
-$$\qquad J=\{1,\dots,h\},\qquad I=\{h+1,\dots,2h\},$$
-and put $\vartheta(n)=(\log n)\,1_{\{n\ \mathrm{prime}\}}$ together with
-$$V_B(m)=\frac1L\sum_{b\in B}\vartheta(m+b)$$
+The theorem reduces to a single weight construction over two adjacent blocks. Fix $\lambda>0$ and write $L=\log X$, $h=\lfloor\lambda L\rfloor$, with the integer $X\to∞$. For each integer start $m\in(X,2X]$ split the window above $m$ into
+$$\qquad J=\{1,...,h\},\qquad I=\{h+1,...,2h\},$$
+and put $θ(n)=(\log n)\,1_{\{n\ prime\}}$ together with
+$$V_B(m)=\frac1L\sum_{b\in B}θ(m+b)$$
 for a block $B$ equal to $I$ or $J$. The quantity $V_B(m)$ is positive exactly when the block $m+B$ contains a prime, and then $V_B(m)\ge1$ because every prime argument exceeds $X$. The symbol $E_X$ denotes the average over the integers $X<m\le2X$.
 
 Everything rests on the following family of weights.
 
-Proposition (weights for adjacent blocks). For each fixed $\lambda>0$ there is a finite $K_\lambda>0$ with the following property. For every $\varepsilon>0$ there are weights $W_X(m)\ge0$, defined for integers $X<m\le2X$, such that
+Proposition (weights for adjacent blocks). For each fixed $\lambda>0$ there is a finite $K_\lambda>0$ with the following property. For every $ε>0$ there are weights $W_X(m)\ge0$, defined for integers $X<m\le2X$, such that
 $$E_XW_X\to1,\qquad E_X(W_XV_J)\to\lambda,$$
-$$\limsup_{X\to\infty}E_X(W_XV_I)\le\varepsilon,\qquad \limsup_{X\to\infty}E_X(W_XV_J^2)\le K_\lambda,$$
-$$E_XW_X^2=O_{\lambda,\varepsilon}(1).$$
-The constant $K_\lambda$ is independent of $\varepsilon$, while the $O_{\lambda,\varepsilon}(1)$ bound is allowed to deteriorate as $\varepsilon$ shrinks.
+$$limsup_{X\to∞}E_X(W_XV_I)\leε,\qquad limsup_{X\to∞}E_X(W_XV_J^2)\le K_\lambda,$$
+$$E_XW_X^2=O_{\lambda,ε}(1).$$
+The constant $K_\lambda$ is independent of $ε$, while the $O_{\lambda,ε}(1)$ bound is allowed to deteriorate as $ε$ shrinks.
 
 The estimate on $E_X(W_XV_J^2)$ stops the detected prime mass from sitting on too little weighted mass: a second moment controls how far a nonnegative weight can concentrate. After the starts carrying a prime in $I$ are removed, the separate estimate on $E_XW_X^2$ converts the surviving weighted mass into a positive proportion of ordinary integer starts. This is why only the constant governing detection must be chosen before the suppression tolerance, and the mass bound may depend on it.
 
@@ -49,69 +49,69 @@ Lemma. Suppose $h\ge1$ and that for at least $\delta X$ integers $m\in(X,2X]$ th
 
 Proof. For each such $m$ let $p(m)$ be the last prime in $(m,m+h]$. The second block is empty, so $p(m)^+>m+2h\ge p(m)+h$. For a fixed prime $p$ counted this way the condition $m<p\le m+h$ forces $p-h\le m\le p-1$, an interval of exactly $h$ integers. Thus each prime is selected at most $h$ times, and the number of distinct primes is at least $\delta X/h$.
 
-Proof of the theorem from the proposition. Fix $C>0$ and take $\lambda>\max\{C,1\}$. Let $\varepsilon=\lambda^2/(2K_\lambda)$ in the proposition and fix the resulting weights. Choose $M>0$ with $E_XW_X^2\le M$ for all sufficiently large $X$. Put $A_X=\{V_J>0\}$ and $B_X=\{V_I>0\}$. Weighted Cauchy--Schwarz gives, since $V_J\ge0$ and $\{V_J>0\}$ is exactly the support of $V_J$,
-$$E_X(W_X 1_{A_X})\ \ge\ \frac{(E_X(W_XV_J))^2}{E_X(W_XV_J^2)}.$$
+Proof of the theorem from the proposition. Fix $C>0$ and take $\lambda>\max\{C,1\}$. Let $ε=\lambda^2/(2K_\lambda)$ in the proposition and fix the resulting weights. Choose $M>0$ with $E_XW_X^2\le M$ for all sufficiently large $X$. Put $A_X=\{V_J>0\}$ and $B_X=\{V_I>0\}$. Weighted Cauchy--Schwarz gives, since $V_J\ge0$ and $\{V_J>0\}$ is exactly the support of $V_J$,
+$$E_X(W_X 1_{A_X})\ \ge\ ((E_X(W_XV_J))^2)/(E_X(W_XV_J^2)).$$
 The denominator stays positive for large $X$ because its numerator tends to $\lambda^2$. Applying the first two limits of the proposition,
-$$\liminf_{X\to\infty}E_X(W_X1_{A_X})\ \ge\ \frac{\lambda^2}{K_\lambda}.$$
+$$liminf_{X\to∞}E_X(W_X1_{A_X})\ \ge\ (\lambda^2)/(K_\lambda).$$
 Because $1_{B_X}\le V_I$ and $W_X\ge0$,
-$$\liminf_{X\to\infty}E_X\bigl(W_X1_{A_X\setminus B_X}\bigr)\ \ge\ \frac{\lambda^2}{K_\lambda}-\varepsilon\ =:\ \Delta>0.$$
+$$liminf_{X\to∞}E_X(W_X1_{A_X∖ B_X})\ \ge\ (\lambda^2)/(K_\lambda)-ε\ =:\ \Delta>0.$$
 A second application of Cauchy--Schwarz, now with the mass bound, gives for all sufficiently large $X$
-$$\frac{|A_X\setminus B_X|}{X}\ \ge\ \frac{\bigl(E_X(W_X1_{A_X\setminus B_X})\bigr)^2}{E_XW_X^2}\ \ge\ \frac{\Delta^2}{4M}\ =:\ \delta>0.$$
+$$(|A_X∖ B_X|)/(X)\ \ge\ \frac{(E_X(W_X1_{A_X∖ B_X}))^2}{E_XW_X^2}\ \ge\ (\Delta^2)/(4M)\ =:\ \delta>0.$$
 This is an ordinary proportion of integer starting points, so the lemma supplies at least $\delta X/h\ge\delta X/(\lambda\log X)$ distinct primes $p\in(X,2X+h]$ whose consecutive gap exceeds $h$. On this range $\log p=\log X+O(1)$ and $h=\lambda\log X+O(1)$, so $\lambda>C$ forces $h>C\log p$ once $X$ is large.
 
 It remains to pass from a proportion of primes up to $2X$ to a proportion of the first $N$ indices. For a large integer $N$ set $X=\lfloor p_N/3\rfloor$. Then $2X+h<p_N$, so every prime produced has index at most $N$, and the prime number theorem gives
-$$\frac{X}{\log X}\ \sim\ \frac{p_N}{3\log p_N}\ \sim\ \frac N3,$$
-hence $X/\log X\ge N/4$ for all large $N$. The number of counted indices is at least $\delta N/(4\lambda)$, so $c(C)=\delta/(4\lambda)>0$ is admissible. Every choice made before $X\to\infty$ depends on the fixed threshold $C$ alone.
+$$(X)/(\log X)\ \sim\ (p_N)/(3\log p_N)\ \sim\ \frac N3,$$
+hence $X/\log X\ge N/4$ for all large $N$. The number of counted indices is at least $\delta N/(4\lambda)$, so $c(C)=\delta/(4\lambda)>0$ is admissible. Every choice made before $X\to∞$ depends on the fixed threshold $C$ alone.
 
-Construction of the weight. Let $\mu$ be the Mobius function. For a compactly supported function $F$ on $[0,\infty)^j$ and distinct shifts $\mathbf b=(b_1,\dots,b_j)$, put
-$$D_F(m;\mathbf b)=\sum_{d_1\mid m+b_1}\cdots\sum_{d_j\mid m+b_j}\mu(d_1)\cdots\mu(d_j)\,F\Big(\frac{\log d_1}{L},\dots,\frac{\log d_j}{L}\Big),$$
+Construction of the weight. Let $\mu$ be the Mobius function. For a compactly supported function $F$ on $[0,∞)^j$ and distinct shifts $\mathbf b=(b_1,...,b_j)$, put
+$$D_F(m;\mathbf b)=\sum_{d_1\mid m+b_1}...\sum_{d_j\mid m+b_j}\mu(d_1)...\mu(d_j)\,F\Big((\log d_1)/(L),...,(\log d_j)/(L)\Big),$$
 the sum running over positive divisors, with $D_F=F$ in dimension zero. A symmetric $F$ lets $D_F(m;S)$ be written for an unordered shift set $S$.
 
-Fix $\tau=1/8$ and a positive integer $k$. For $1\le j\le k$ take a real symmetric $f_j\in C_c^\infty$ of the open simplex $\{\mathbf t\in(0,\infty)^j:\ t_1+\dots+t_j<\tau\}$, allow a real scalar $f_0$, and set $f_{k+1}=F_{k+1}=0$. Define the cumulative integrals, the scalar, and the one-variable contraction
-$$F_j(\mathbf v)=\int_{s_1\ge v_1}\cdots\int_{s_j\ge v_j}f_j(\mathbf s)\,d\mathbf s,\qquad F_0=f_0,\qquad (Tf_{j+1})(\mathbf t)=\int_0^\infty f_{j+1}(\mathbf t,u)\,du.$$
-On the orthant $F_j$ vanishes for $t_1+\dots+t_j\ge\tau$, and cumulative integration gives the exact order-$j$ mixed derivative
-$$(-1)^j\partial_1\cdots\partial_jF_j=f_j,$$
+Fix $\tau=1/8$ and a positive integer $k$. For $1\le j\le k$ take a real symmetric $f_j\in C_c^∞$ of the open simplex $\{\mathbf t\in(0,∞)^j:\ t_1+...+t_j<\tau\}$, allow a real scalar $f_0$, and set $f_{k+1}=F_{k+1}=0$. Define the cumulative integrals, the scalar, and the one-variable contraction
+$$F_j(\mathbf v)=\int_{s_1\ge v_1}...\int_{s_j\ge v_j}f_j(\mathbf s)\,d\mathbf s,\qquad F_0=f_0,\qquad (Tf_{j+1})(\mathbf t)=\int_0^∞ f_{j+1}(\mathbf t,u)\,du.$$
+On the orthant $F_j$ vanishes for $t_1+...+t_j\ge\tau$, and cumulative integration gives the exact order-$j$ mixed derivative
+$$(-1)^j∂_1...∂_jF_j=f_j,$$
 which vanishes as soon as one coordinate sits on a face. Introduce the signed sum and the coefficients
-$$Z(m)=\sum_{j=0}^{k}\ \sum_{S\subset I,\ |S|=j}D_{F_j}(m;S),\qquad \alpha_j=\frac{\lambda^j}{j!},$$
+$$Z(m)=\sum_{j=0}^{k}\ \sum_{S\subset I,\ |S|=j}D_{F_j}(m;S),\qquad \alpha_j=(\lambda^j)/(j!),$$
 where each $S$ is a set of distinct shifts in the second block. The weight will be a positive multiple of $Z^2$. All norms are over the nonnegative orthants, with absolute value in dimension zero.
 
 The analytic content of $Z^2$ is captured by a moment proposition. A prime in $J$ lies outside every subset used to build $Z$ and enters as an external mark; a prime in $I$ lies inside the index set and enters as an internal mark, twisting the sum itself. The two effects are measured separately.
 
-Proposition (moment identities and a detector bound). Hold $\lambda$, $k$ and the family $(f_j)_{0\le j\le k}$ fixed. As $X\to\infty$,
+Proposition (moment identities and a detector bound). Hold $\lambda$, $k$ and the family $(f_j)_{0\le j\le k}$ fixed. As $X\to∞$,
 $$E_XZ^2\to w:=\sum_{j=0}^{k}\alpha_j\|f_j\|_2^2,\qquad E_XZ^4=O_{\lambda,k,\mathbf f}(1),$$
 $$E_X(Z^2V_J)\to\lambda w,\qquad E_X(Z^2V_I)\to v:=\lambda\sum_{j=0}^{k}\alpha_j\|f_j+Tf_{j+1}\|_2^2.$$
-Choose a real $G\in C_c^\infty(\mathbb R)$ with $G(0)=1$ and $G(u)=0$ for $u\ge\tau$, put $c_G=\int_0^\infty|G'(u)|^2\,du$ and $C_*=\lambda+\lambda^2c_G^2$. Then for every fixed family,
-$$\limsup_{X\to\infty}E_X(Z^2V_J^2)\le C_*\,w.$$
+Choose a real $G\in C_c^∞(\mathbb R)$ with $G(0)=1$ and $G(u)=0$ for $u\ge\tau$, put $c_G=\int_0^∞|G'(u)|^2\,du$ and $C_*=\lambda+\lambda^2c_G^2$. Then for every fixed family,
+$$limsup_{X\to∞}E_X(Z^2V_J^2)\le C_*\,w.$$
 The constant $C_*$ is independent of $k$ and of the family $(f_j)$.
 
-The bound on $E_XZ^4$ and the detector bound require no more than the general finite moment formula; the explicit constants $w$ and $v$ arise by pairing equal shifts. Any unmatched shift between two subsets of $I$ sets a divisor coordinate to zero in a complete mixed derivative, and the face vanishing of $\partial_1\cdots\partial_jF_j$ annihilates such a term. Only matching subsets survive the limit, and the coefficients collect the squared norms appearing in $w$ and $v$.
+The bound on $E_XZ^4$ and the detector bound require no more than the general finite moment formula; the explicit constants $w$ and $v$ arise by pairing equal shifts. Any unmatched shift between two subsets of $I$ sets a divisor coordinate to zero in a complete mixed derivative, and the face vanishing of $∂_1...∂_jF_j$ annihilates such a term. Only matching subsets survive the limit, and the coefficients collect the squared norms appearing in $w$ and $v$.
 
 An internal mark can be unfolded exactly. Fix $a\in I$ and suppose $m+a$ is prime. In every nonzero summand of $D_{F_j}(m;S)$ with $a\in S$ the divisor in the $a$-coordinate must equal one: the alternative divisor exceeds $m+a$ in logarithmic size, $\log(m+a)/L>1>\tau$, and the support condition forces the contribution to vanish. Writing $\widetilde F_j=F_j+F_{j+1}(\cdot,0)$ and deleting $a$ from each subset that contains it yields the exact identity
-$$Z(m)=\sum_{j=0}^{k}\ \sum_{U\subset I\setminus\{a\},\ |U|=j}D_{\widetilde F_j}(m;U)\qquad(m+a\ \mathrm{prime}),$$
+$$Z(m)=\sum_{j=0}^{k}\ \sum_{U\subset I∖\{a\},\ |U|=j}D_{\widetilde F_j}(m;U)\qquad(m+a\ prime),$$
 with each subset occurring once, so deletion introduces no dimension factor. The signed complete mixed derivative of $\widetilde F_j$ equals $f_j+Tf_{j+1}$, which is why the internal-mark limit couples neighbouring dimensions $j$ and $j+1$.
 
 The engine behind the moment proposition is a single uniform formula. For a finite set $\mathcal H$ of distinct integers put $\nu_p(\mathcal H)=|\mathcal H\bmod p|$ and the singular series
-$$\mathfrak S(\mathcal H)=\prod_p\bigl(1-\nu_p(\mathcal H)/p\bigr)\bigl(1-1/p\bigr)^{-|\mathcal H|},$$
-with $\mathfrak S(\varnothing)=1$. Past the diameter of $\mathcal H$ the local factor is $1+O_{|\mathcal H|}(p^{-2})$, so the product converges; it is nonnegative, may vanish, and equals one when $|\mathcal H|=1$.
+$$\mathfrak S(\mathcal H)=\prod_p(1-\nu_p(\mathcal H)/p)(1-1/p)^{-|\mathcal H|},$$
+with $\mathfrak S(∅)=1$. Past the diameter of $\mathcal H$ the local factor is $1+O_{|\mathcal H|}(p^{-2})$, so the product converges; it is nonnegative, may vanish, and equals one when $|\mathcal H|=1$.
 
-Proposition (uniform mixed moments). Put $L=\log X$ with integer $X\to\infty$ and let $E_X$ average over $X<m\le2X$. Fix nonnegative integers $j_1,\dots,j_R$. For each $r$ let $F_r$ be a real function on $[0,\infty)^{j_r}$ with a smooth compactly supported extension to $\mathbb R^{j_r}$, vanishing on the orthant outside $v_1+\dots+v_{j_r}\le\rho_r$, where the budgets $\rho_r\ge0$ are fixed and dimension zero means a scalar with budget zero. For positive divisors define
-$$D_{F_r}(m;\mathbf b^{(r)})=\sum_{d_{r,1}\mid m+b_{r,1}}\cdots\sum_{d_{r,j_r}\mid m+b_{r,j_r}}\prod_{\ell=1}^{j_r}\mu(d_{r,\ell})\,F_r\Big(\Big(\frac{\log d_{r,\ell}}{L}\Big)_{\ell=1}^{j_r}\Big).$$
-Let $\Gamma=\{(r,\ell):1\le r\le R,\ 1\le\ell\le j_r\}$ and fix a surjection $\kappa:\Gamma\to\{1,\dots,t\}$ with fibres $\mathcal M_i=\kappa^{-1}(i)$. Take distinct shifts $a_1,\dots,a_t$ with $|a_i|\le DL^B$, $D>0$ and $B\ge1$ fixed, and set $b_{r,\ell}=a_{\kappa(r,\ell)}$. Choose $\delta\in\{0,1\}$; in the marked case take one more shift $a_0$ distinct from these and of the same size, and set
-$$(\chi_\delta(m),\mathcal H)=\begin{cases}(1,\{a_1,\dots,a_t\}),&\delta=0,\\(\vartheta(m+a_0),\{a_0,a_1,\dots,a_t\}),&\delta=1.\end{cases}$$
+Proposition (uniform mixed moments). Put $L=\log X$ with integer $X\to∞$ and let $E_X$ average over $X<m\le2X$. Fix nonnegative integers $j_1,...,j_R$. For each $r$ let $F_r$ be a real function on $[0,∞)^{j_r}$ with a smooth compactly supported extension to $\mathbb R^{j_r}$, vanishing on the orthant outside $v_1+...+v_{j_r}\le\rho_r$, where the budgets $\rho_r\ge0$ are fixed and dimension zero means a scalar with budget zero. For positive divisors define
+$$D_{F_r}(m;\mathbf b^{(r)})=\sum_{d_{r,1}\mid m+b_{r,1}}...\sum_{d_{r,j_r}\mid m+b_{r,j_r}}\prod_{\ell=1}^{j_r}\mu(d_{r,\ell})\,F_r\Big(\Big(\frac{\log d_{r,\ell}}{L}\Big)_{\ell=1}^{j_r}\Big).$$
+Let $\Gamma=\{(r,\ell):1\le r\le R,\ 1\le\ell\le j_r\}$ and fix a surjection $\kappa:\Gamma\to\{1,...,t\}$ with fibres $\mathcal M_i=\kappa^{-1}(i)$. Take distinct shifts $a_1,...,a_t$ with $|a_i|\le DL^B$, $D>0$ and $B\ge1$ fixed, and set $b_{r,\ell}=a_{\kappa(r,\ell)}$. Choose $\delta\in\{0,1\}$; in the marked case take one more shift $a_0$ distinct from these and of the same size, and set
+$$(\chi_\delta(m),\mathcal H)=(1,\{a_1,...,a_t\}),&\delta=0,\\(θ(m+a_0),\{a_0,a_1,...,a_t\}),&\delta=1.$$
 Assume $\sum_r\rho_r<1$ if $\delta=0$ and $\sum_r\rho_r<1/2$ if $\delta=1$. Then there is a real constant $\mathcal C$, depending only on the functions and on $\kappa$, such that
 $$E_X\Big[\chi_\delta(m)\prod_rD_{F_r}(m;\mathbf b^{(r)})\Big]=L^{-t}\Big\{\mathfrak S(\mathcal H)\,\mathcal C+O\big(L^{-1/2}(\log L)^A\big)\Big\},$$
 where $A$ is a fixed finite number depending only on $\sum_rj_r$; the implied constant may depend on the fixed data but is uniform in the actual shifts. If every fibre has $|\mathcal M_i|\le2$, then
-$$\mathcal C=\int\prod_r\Big((-1)^{j_r}\partial_1\cdots\partial_{j_r}F_r\Big)\big((y_{\kappa(r,\ell)})_{\ell=1}^{j_r}\big)\prod_{i:\,|\mathcal M_i|=2}dy_i,$$
-the variables $y_i$ ranging over $[0,\infty)$, with $y_i=0$ when $|\mathcal M_i|=1$ and with the zero-dimensional derivative read as the scalar itself. When $\Gamma$ is empty, $t=0$ and $\mathcal C=\prod_rF_r$.
+$$\mathcal C=\int\prod_r\Big((-1)^{j_r}∂_1...∂_{j_r}F_r\Big)\big((y_{\kappa(r,\ell)})_{\ell=1}^{j_r}\big)\prod_{i:\,|\mathcal M_i|=2}dy_i,$$
+the variables $y_i$ ranging over $[0,∞)$, with $y_i=0$ when $|\mathcal M_i|=1$ and with the zero-dimensional derivative read as the scalar itself. When $\Gamma$ is empty, $t=0$ and $\mathcal C=\prod_rF_r$.
 
-The reduction of such a product to a finite density sum is arithmetic. Put $H_X=DL^B$, and write $\Lambda$ for the von Mangoldt function, $\varphi(q)$ for Euler's totient, $\omega(q)$ for the number of distinct prime divisors of $q$, $d(q)$ for the divisor-counting function, and $\zeta$ for the zeta function. The distribution input is the endpoint Bombieri--Vinogradov theorem, in the shape recorded by Bombieri, Friedlander and Iwaniec, and originating in the work of Bombieri and of A. I. Vinogradov. Vinogradov's 1965 density estimate supplies the underlying arithmetic input.
+The reduction of such a product to a finite density sum is arithmetic. Put $H_X=DL^B$, and write $Λ$ for the von Mangoldt function, $\varphi(q)$ for Euler's totient, $\omega(q)$ for the number of distinct prime divisors of $q$, $d(q)$ for the divisor-counting function, and $\zeta$ for the zeta function. The distribution input is the endpoint Bombieri--Vinogradov theorem, in the shape recorded by Bombieri, Friedlander and Iwaniec, and originating in the work of Bombieri and of A. I. Vinogradov. Vinogradov's 1965 density estimate supplies the underlying arithmetic input.
 
 ./pdf/vinogradov-1965-density-hypothesis-dirichlet-l.pdf
 
 Lemma (weighted distribution with uniform shifted endpoints). Assume the endpoint Bombieri--Vinogradov theorem: for every $A>0$ there is $b(A)>0$ with
-$$\sum_{q\le x^{1/2}(\log x)^{-b(A)}}\max_{(c,q)=1}\Big|\psi(x;q,c)-\frac{x}{\varphi(q)}\Big|\ll_A x(\log x)^{-A},$$
-where $\psi(x;q,c)=\sum_{n\le x,\ n\equiv c\pmod q}\Lambda(n)$ and $q=1$ is included. Fix $0\le\sigma<1/2$ and $K\ge1$, and define
-$$E_X(q)=\max_{\substack{a\in\mathbb Z,\ |a|\le H_X\\(c,q)=1}}\Big|\sum_{\substack{X+a<n\le2X+a\\ n\equiv c\pmod q}}\vartheta(n)-\frac{X}{\varphi(q)}\Big|.$$
+$$\sum_{q\le x^{1/2}(\log x)^{-b(A)}}\max_{(c,q)=1}\Big|\psi(x;q,c)-(x)/(\varphi(q))\Big|\ll_A x(\log x)^{-A},$$
+where $\psi(x;q,c)=\sum_{n\le x,\ n\equiv c\pmod q}Λ(n)$ and $q=1$ is included. Fix $0\le\sigma<1/2$ and $K\ge1$, and define
+$$E_X(q)=\max_{\substack{a\in\mathbb Z,\ |a|\le H_X\\(c,q)=1}}\Big|\sum_{\substack{X+a<n\le2X+a\\ n\equiv c\pmod q}}θ(n)-(X)/(\varphi(q))\Big|.$$
 Then for every $A>0$,
 $$\sum_{q\le X^\sigma}\mu^2(q)K^{\omega(q)}E_X(q)\ll_{A,\sigma,K,D,B}X L^{-A}.$$
 
@@ -126,25 +126,25 @@ Taking $A_0\ge c_K+2A$ proves the lemma.
 The residue-class count turns that lemma into a finite sum. Keep the support assumptions of the mixed-moment proposition, allow merely bounded functions $F_r$, and let $B\ge0$ in the shift bound $H_X=DL^B$. Put $M=|\Gamma|$ and $\sigma=\sum_r\rho_r$, with $\sigma<1$ when $\delta=0$ and $\sigma<1/2$ when $\delta=1$, exactly as in the proposition.
 
 For a squarefree divisor tuple $\mathbf d=(d_\gamma)_{\gamma\in\Gamma}$ put $q=[d_\gamma:\gamma\in\Gamma]$, with $q=1$ if $M=0$. Call $\mathbf d$ compatible if, for every prime $p\mid q$, the shifts $b_\gamma$ with $p\mid d_\gamma$ share one residue modulo $p$; in the marked case require in addition that this residue differ from $a_0\bmod p$. Set
-$$\rho_\delta(\mathbf d)=\begin{cases}\prod_{p\mid q}(p-\delta)^{-1},&\mathbf d\ \mathrm{compatible},\\0,&\mathrm{otherwise},\end{cases}$$
+$$\rho_\delta(\mathbf d)=\prod_{p\mid q}(p-\delta)^{-1},&\mathbf d\ compatible,\\0,&otherwise,$$
 and define the finite density sum
-$$\mathcal A_\delta=\sum_{\mathbf d\ \mathrm{squarefree}}\rho_\delta(\mathbf d)\prod_{\gamma\in\Gamma}\mu(d_\gamma)\prod_rF_r\Big(\Big(\frac{\log d_{r,\ell}}{L}\Big)_{\ell=1}^{j_r}\Big),$$
+$$\mathcal A_\delta=\sum_{\mathbf d\ squarefree}\rho_\delta(\mathbf d)\prod_{\gamma\in\Gamma}\mu(d_\gamma)\prod_rF_r\Big(\Big(\frac{\log d_{r,\ell}}{L}\Big)_{\ell=1}^{j_r}\Big),$$
 with empty products equal to one.
 
 Lemma (exact density sum and arithmetic error). For every $A>0$, uniformly in the allowed shifts,
 $$E_X\Big[\chi_\delta(m)\prod_rD_{F_r}(m;\mathbf b^{(r)})\Big]=\mathcal A_\delta+O_A(L^{-A}).$$
-The implied constant may depend on the fixed functions, dimensions, budgets, $D$, $B$ and $A$; for $\delta=0$ and $M\ge1$ the error is $O\bigl(X^{\sigma-1}(1+\log X)^{M-1}\prod_r\|F_r\|_\infty\bigr)$.
+The implied constant may depend on the fixed functions, dimensions, budgets, $D$, $B$ and $A$; for $\delta=0$ and $M\ge1$ the error is $O(X^{\sigma-1}(1+\log X)^{M-1}\prod_r\|F_r\|_∞)$.
 
 Proof. Expand the product of divisor sums; the Mobius factors remove all nonsquarefree divisors. Whenever the product of the $F_r$ is nonzero the support hypothesis gives $\prod_{\ell=1}^{j_r}d_{r,\ell}\le X^{\rho_r}$ for every $r$, hence $\prod_\gamma d_\gamma\le X^\sigma$ and therefore $q\le X^\sigma$; the budget constrains the sum of the coordinates in each factor and imposes nothing on the dimension.
 
 For a squarefree tuple the conditions $d_\gamma\mid m+b_\gamma$ prescribe at a prime $p\mid q$ the residues $m\equiv-b_\gamma\pmod p$ for all selected coordinates. These are inconsistent unless the selected shifts agree modulo every $p\mid q$; when the shifts agree, the Chinese remainder theorem prescribes exactly one class $m\pmod q$, and the count of integers in a length-$X$ range is $X/q+O(1)$ with an absolute constant. This is precisely compatibility in the unmarked case.
 
-When $M\ge1$ the number of positive integer tuples with product at most $Y\ge1$ is at most $Y(\sum_{d\le Y}1/d)^{M-1}\le Y(1+\log Y)^{M-1}$: fix the first $M-1$ entries and bound the last by $Y$ divided by the product of the preceding entries. Applying this with $Y=X^\sigma$, multiplying the $O(1)$ count error by $\prod_r\|F_r\|_\infty$, and dividing by $X$ gives the stated $O(X^{\sigma-1}(1+\log X)^{M-1}\prod_r\|F_r\|_\infty)$ error and hence the identity in the unmarked case. If $M=0$ the unmarked average and $\mathcal A_\delta$ are both exactly $\prod_rF_r$.
+When $M\ge1$ the number of positive integer tuples with product at most $Y\ge1$ is at most $Y(\sum_{d\le Y}1/d)^{M-1}\le Y(1+\log Y)^{M-1}$: fix the first $M-1$ entries and bound the last by $Y$ divided by the product of the preceding entries. Applying this with $Y=X^\sigma$, multiplying the $O(1)$ count error by $\prod_r\|F_r\|_∞$, and dividing by $X$ gives the stated $O(X^{\sigma-1}(1+\log X)^{M-1}\prod_r\|F_r\|_∞)$ error and hence the identity in the unmarked case. If $M=0$ the unmarked average and $\mathcal A_\delta$ are both exactly $\prod_rF_r$.
 
 For the marked case put $n=m+a_0$. On a class satisfying the divisor congruences the residue of $n\pmod p$ is $a_0-b_\gamma$ wherever $p\mid d_\gamma$, so the class is reduced modulo $q$ exactly when the extra marked compatibility holds. If it is not reduced, any prime $n$ in that class must divide $q$, hence $n\le q$; but $\prod_\gamma d_\gamma\le X^\sigma$ and $\sigma<1/2$ give $n\ge X-H_X>X^\sigma\ge q$ for large $X$. The marked sum over a nonreduced class is therefore exactly zero, not an unestimated exception. On a reduced class the marked sum equals $X/\varphi(q)+O(E_X(q))$, and because $q$ is squarefree $\varphi(q)=\prod_{p\mid q}(p-1)$, the main density factor in $\mathcal A_\delta$.
 
 For fixed squarefree $q$ each prime dividing $q$ must be assigned to a nonempty subset of the $M$ coordinates, giving at most $(2^M-1)^{\omega(q)}\le(2^M)^{\omega(q)}$ choices when $M\ge1$, and compatibility only reduces the count. The empty tuple, when $M=0$, has $q=1$ and is covered by the same bound with $K=1$. The normalized error is thus at most
-$$\frac{\prod_r\|F_r\|_\infty}{X}\sum_{q\le X^\sigma}\mu^2(q)(2^M)^{\omega(q)}E_X(q),$$
+$$(\prod_r\|F_r\|_∞)/(X)\sum_{q\le X^\sigma}\mu^2(q)(2^M)^{\omega(q)}E_X(q),$$
 which is $O_A(L^{-A})$ by the weighted-distribution lemma. This covers the marked case, including all scalar factors and the wholly zero-dimensional case.
 
 Fourier evaluation of the density sum. The arithmetic now drops out, leaving a constant fixed by the test functions times the singular series of the shifts. By the density-sum lemma it suffices to evaluate $\mathcal A_\delta$ to within $O_N(L^{-N})$ for every fixed $N$; if $M=0$ the sum is $\prod_rF_r$ outright, so take $M>0$.
@@ -155,18 +155,18 @@ a Schwartz function. Fourier inversion gives, on the orthant,
 $$F_r(\mathbf v)=\int_{\mathbb R^{j_r}}\Phi_r(\mathbf u)\,e^{-\sum_\ell(1+\mathrm iu_\ell)v_\ell}\,d\mathbf u.$$
 Use the scalar itself for zero-dimensional factors, put $\Phi=\prod_r\Phi_r$, $z_\gamma=(1+\mathrm iu_\gamma)/L$ and $z_S=\sum_{\gamma\in S}z_\gamma$. The interchange of sum and integral is justified by
 $$\sum_{\mathbf d}\rho_\delta(\mathbf d)\prod_\gamma d_\gamma^{-1/L}\le\prod_p(1+C_Mp^{-1-1/L})\ll_M L^{C_M},$$
-since $1/(p-\delta)\le2/p$, each nonempty selected subset contributes at most $p^{-1/L}$, and there are at most $2^M-1$ subsets; combined with $\sum_pp^{-1-\varepsilon}\le\log\zeta(1+\varepsilon)\le\log(1+1/\varepsilon)$ and the finite integral $\int|\Phi|$ this gives absolute convergence.
+since $1/(p-\delta)\le2/p$, each nonempty selected subset contributes at most $p^{-1/L}$, and there are at most $2^M-1$ subsets; combined with $\sum_pp^{-1-ε}\le\log\zeta(1+ε)\le\log(1+1/ε)$ and the finite integral $\int|\Phi|$ this gives absolute convergence.
 
 Call a nonempty subset $S\subset\Gamma$ allowed at $p$ if its shifts satisfy the compatibility and mark-exclusion conditions. The exact Euler factor is
-$$P_p(\mathbf z)=1+\frac1{p-\delta}\sum_{S\ \mathrm{allowed\ at\ }p}(-1)^{|S|}p^{-z_S},\qquad\mathcal A_\delta=\int\Phi(\mathbf u)\prod_pP_p(\mathbf z)\,d\mathbf u.$$
+$$P_p(\mathbf z)=1+\frac1{p-\delta}\sum_{S\ allowed\ at\ p}(-1)^{|S|}p^{-z_S},\qquad\mathcal A_\delta=\int\Phi(\mathbf u)\prod_pP_p(\mathbf z)\,d\mathbf u.$$
 By the Euler-sum bound and Schwartz decay the part of the integral with $\max_\gamma|u_\gamma|>\sqrt L$ is $O_N(L^{-N})$; all comparisons take place on the complementary region.
 
 The factors carrying the zeta poles are
-$$B_p(\mathbf z)=\prod_{i=1}^{t}\prod_{\varnothing\ne S\subset\mathcal M_i}(1-p^{-1-z_S})^{-(-1)^{|S|}},\qquad H_p(\mathbf z)=P_p(\mathbf z)/B_p(\mathbf z).$$
+$$B_p(\mathbf z)=\prod_{i=1}^{t}\prod_{∅\ne S\subset\mathcal M_i}(1-p^{-1-z_S})^{-(-1)^{|S|}},\qquad H_p(\mathbf z)=P_p(\mathbf z)/B_p(\mathbf z).$$
 For $\Re z_\gamma\ge0$ every denominator has modulus at least $1/2$ and $|H_p(\mathbf z)|\le\exp(C_M/p)$. When the distinct shifts of $\mathcal H$ have distinct residues modulo $p$, the allowed subsets are exactly the nonempty subsets of the individual fibres $\mathcal M_i$, and matching the terms of order $p^{-1}$ gives
 $$H_p(\mathbf z)=1+O_M(p^{-2})$$
 uniformly for $\Re z_\gamma\ge0$. At $\mathbf z=0$, summing signs over the nonempty subsets of each occupied residue class gives
-$$P_p(0)=\frac{p-\nu_p(\mathcal H)}{p-\delta},\qquad B_p(0)=(1-1/p)^t,$$
+$$P_p(0)=(p-\nu_p(\mathcal H))/(p-\delta),\qquad B_p(0)=(1-1/p)^t,$$
 so $H_p(0)$ is the local factor of $\mathfrak S(\mathcal H)$, and this identity survives the vanishing of that factor.
 
 The product of the $H_p$ is compared additively with its value at zero. Take $Y=\max(2,2DL^B)$. For $p\le Y$ differentiation along the segment from zero to $\mathbf z$ gives $|H_p(\mathbf z)-H_p(0)|\ll_M L^{-1/2}(\log p)/p$, since $|p^{-z_S}-1|\le|z_S|\log p$ and the denominators stay bounded away from zero. Each mixed partial product in the additive telescoping identity is at most $\exp(C_M\sum_{p\le Y}1/p)\ll_M(\log Y)^{C'_M}$, and using $\sum_{p\le Y}(\log p)/p\le\sum_{n\le Y}(\log n)/n=O((\log Y)^2)$ yields an error $O(L^{-1/2}(\log L)^A)$ for the finite product. For $p>Y$ there are no collisions of distinct shifts, so $H_p(\mathbf z)=1+O_M(p^{-2})$ makes both remaining tail products $1+O_M(1/Y)$. Consequently
@@ -174,15 +174,15 @@ $$\prod_pH_p(\mathbf z)=\mathfrak S(\mathcal H)+O\big(L^{-1/2}(\log L)^A\big),\q
 and the argument never divides by a possibly vanishing local factor.
 
 It remains to extract the zeta poles. Absolute Euler products for $\Re z_\gamma>0$ give
-$$\prod_pB_p(\mathbf z)=\prod_{i=1}^{t}\prod_{\varnothing\ne S\subset\mathcal M_i}\zeta(1+z_S)^{(-1)^{|S|}}.$$
-Write $w_\gamma=1+\mathrm iu_\gamma$ and $K_i(\mathbf u)=\prod_{\varnothing\ne S\subset\mathcal M_i}(\sum_{\gamma\in S}w_\gamma)^{(-1)^{|S|+1}}$. The pole expansion $\zeta(1+z)=z^{-1}(1+O(|z|))$ with $\sum_{\varnothing\ne S\subset\mathcal M_i}(-1)^{|S|}=-1$ gives
+$$\prod_pB_p(\mathbf z)=\prod_{i=1}^{t}\prod_{∅\ne S\subset\mathcal M_i}\zeta(1+z_S)^{(-1)^{|S|}}.$$
+Write $w_\gamma=1+\mathrm iu_\gamma$ and $K_i(\mathbf u)=\prod_{∅\ne S\subset\mathcal M_i}(\sum_{\gamma\in S}w_\gamma)^{(-1)^{|S|+1}}$. The pole expansion $\zeta(1+z)=z^{-1}(1+O(|z|))$ with $\sum_{∅\ne S\subset\mathcal M_i}(-1)^{|S|}=-1$ gives
 $$\prod_pB_p(\mathbf z)=L^{-t}\prod_iK_i(\mathbf u)\{1+O_M(L^{-1/2})\}.$$
 Every denominator in $K_i$ has positive integer real part, so $\prod_iK_i$ grows at most polynomially, and
 $$\mathcal C=\int_{\mathbb R^M}\Phi(\mathbf u)\prod_iK_i(\mathbf u)\,d\mathbf u$$
 is absolutely convergent. Integrating the two comparisons against the Schwartz transform and restoring the negligible frequency tails proves the mixed-moment expansion, and $\mathcal C$ is real by conjugation under $\mathbf u\mapsto-\mathbf u$.
 
 The derivative form of $\mathcal C$ comes from computing the fiber integrals. A singleton fibre contributes $w_\gamma$, and a double fibre contributes
-$$\frac{w_\gamma w_{\gamma'}}{w_\gamma+w_{\gamma'}}=w_\gamma w_{\gamma'}\int_0^\infty e^{-(w_\gamma+w_{\gamma'})y_i}\,dy_i.$$
+$$\frac{w_\gamma w_{\gamma'}}{w_\gamma+w_{\gamma'}}=w_\gamma w_{\gamma'}\int_0^∞ e^{-(w_\gamma+w_{\gamma'})y_i}\,dy_i.$$
 After taking absolute values, the new variables contribute $e^{-2\sum_iy_i}$ against a Schwartz function times a fixed polynomial, so Fubini applies; recombining the Fourier integrals by differentiating the inversion formula recovers the stated complete mixed derivatives. This finishes the proof of the uniform mixed-moment proposition.
 
 The scalar divisor-sum correlations of Goldston and Yildirim, and the smooth Fourier formulation described by Maynard, motivate the shape of this calculation; the coupled smooth functions, arbitrary equality patterns and additive error uniform over logarithmic shifts forced a dedicated proof.
@@ -201,49 +201,49 @@ Summing over shifts next requires the singular series to average to one, which i
 
 ./pdf/jha-2605.23014v2-2026-poisson-tail-primes-short-intervals.pdf
 
-Lemma (singular series in boxes). Fix an integer $s\ge0$ and a constant $K\ge1$. For each positive integer $h$ let $I_1,\dots,I_s$ be intervals of $h$ consecutive integers, all contained in an interval of diameter at most $Kh$. Then, as $h\to\infty$,
-$$\sum_{\substack{a_i\in I_i\ (1\le i\le s)\\a_1,\dots,a_s\ \mathrm{distinct}}}\mathfrak S(\{a_1,\dots,a_s\})=h^s(1+o(1)),$$
-uniformly in the intervals subject to the diameter condition. The normalized sum is $1+O_{s,K}(1/\log\log h)+O_s\bigl(h^{-1/2}(\log\log h)^{A_s}\bigr)$ with $A_s$ a finite constant depending only on $s$.
+Lemma (singular series in boxes). Fix an integer $s\ge0$ and a constant $K\ge1$. For each positive integer $h$ let $I_1,...,I_s$ be intervals of $h$ consecutive integers, all contained in an interval of diameter at most $Kh$. Then, as $h\to∞$,
+$$\sum_{\substack{a_i\in I_i\ (1\le i\le s)\\a_1,...,a_s\ distinct}}\mathfrak S(\{a_1,...,a_s\})=h^s(1+o(1)),$$
+uniformly in the intervals subject to the diameter condition. The normalized sum is $1+O_{s,K}(1/\log\log h)+O_s(h^{-1/2}(\log\log h)^{A_s})$ with $A_s$ a finite constant depending only on $s$.
 
 Proof. The cases $s=0,1$ are immediate; take $s\ge2$. Put $y=(1/4)\log h$ and $Q=\prod_{p\le y}p$, so the prime number theorem gives $Q\le h^{1/2}$ for large $h$. For all tuples, collisions included, define
-$$\mathfrak S_y(\mathbf a)=\prod_{p\le y}(1-\nu_p(\{a_1,\dots,a_s\})/p)(1-1/p)^{-s},$$
-keeping exponent $-s$ even on collisions. For independent uniform residues $a_1,\dots,a_s$ modulo a prime $p$, averaging over an extra uniform residue $x$ gives
-$$E(1-\nu_p/p)=P(a_i\ne x\ \mathrm{for\ all}\ i)=(1-1/p)^s,$$
+$$\mathfrak S_y(\mathbf a)=\prod_{p\le y}(1-\nu_p(\{a_1,...,a_s\})/p)(1-1/p)^{-s},$$
+keeping exponent $-s$ even on collisions. For independent uniform residues $a_1,...,a_s$ modulo a prime $p$, averaging over an extra uniform residue $x$ gives
+$$E(1-\nu_p/p)=P(a_i\ne x\ for\ all\ i)=(1-1/p)^s,$$
 so by the Chinese remainder theorem $\mathfrak S_y$ has exactly mean one over complete residue tuples modulo $Q$. A uniform integer in a length-$h$ interval has residue distribution modulo $Q$ within total variation $O(Q/h)$ of uniform, and the elementary bound $\sum_{p\le y}1/p=O(\log\log(3y))$ gives $0\le\mathfrak S_y(\mathbf a)\le\prod_{p\le y}(1-1/p)^{-s}\ll_s(\log y)^{A_s}$. Hence
-$$h^{-s}\sum_{a_i\in I_i}\mathfrak S_y(\mathbf a)=1+O_s\bigl((Q/h)(\log y)^{A_s}\bigr).$$
+$$h^{-s}\sum_{a_i\in I_i}\mathfrak S_y(\mathbf a)=1+O_s((Q/h)(\log y)^{A_s}).$$
 There are $O_s(h^{s-1})$ tuples with equal entries, so deleting the equal entries changes this normalized mean by at most $O_s(h^{-1}(\log y)^{A_s})$.
 
 For a distinct tuple put $\Delta=\prod_{i<j}|a_i-a_j|$, a positive integer. For $y>2s$ every factor of the tail $T_y(\mathbf a)=\prod_{p>y}(1-\nu_p/p)(1-1/p)^{-s}$ is positive. A prime not dividing $\Delta$ has $\nu_p=s$ and local factor $1+O_s(p^{-2})$, while the logarithm of any remaining factor is $O_s(1/p)$, so
-$$|\log T_y|\ll_s\frac1y+\sum_{\substack{p>y\\p\mid\Delta}}\frac1p\le C_s\Bigl(\frac1y+\frac{\log\Delta}{y\log y}\Bigr).$$
+$$|\log T_y|\ll_s\frac1y+\sum_{\substack{p>y\\p\mid\Delta}}\frac1p\le C_s(\frac1y+(\log\Delta)/(y\log y)).$$
 Since $\log\Delta\le\binom s2\log(Kh)$ this gives $T_y(\mathbf a)=1+O_{s,K}(1/\log\log h)$, uniformly in the distinct tuples. Using $\mathfrak S=S_yT_y$ and the nonnegative truncated mean, valid even when a small-prime factor vanishes, yields the stated error from $Q\le h^{1/2}$ and $\log y\asymp\log\log h$.
 
-When the shifts are summed, an equality pattern with $t$ distinct unmarked shifts has $O(h^t)$ assignments in fixed blocks of length $h\asymp L$, so the uniform error of the mixed-moment proposition, summed over one pattern, is $O(L^{-1/2}(\log L)^A)=o(1)$. If one additional distinct prime shift is summed with weight divided by $L$, there are $O(h^{t+1})$ assignments and the same conclusion holds. Only finitely many patterns occur for one fixed family, which is fixed before $X\to\infty$.
+When the shifts are summed, an equality pattern with $t$ distinct unmarked shifts has $O(h^t)$ assignments in fixed blocks of length $h\asymp L$, so the uniform error of the mixed-moment proposition, summed over one pattern, is $O(L^{-1/2}(\log L)^A)=o(1)$. If one additional distinct prime shift is summed with weight divided by $L$, there are $O(h^{t+1})$ assignments and the same conclusion holds. Only finitely many patterns occur for one fixed family, which is fixed before $X\to∞$.
 
 Evaluation of the square completes the moment proposition, and the support budget of the family decides which estimate applies. With $\tau=1/8$, the required uses are: unmarked total budget $2\tau<1$ for $E_XZ^2$; one prime mark, budget $2\tau<1/2$, for $E_X(Z^2V_B)$ with $B$ equal to $I$ or $J$; unmarked $4\tau<1$ for $E_XZ^4$; and unmarked $6\tau<1$ for the off-diagonal terms in the detector bound, where the last line uses divisor-sum majorants for the two possible primes in $J$ and therefore never needs an asymptotic formula with two prime marks.
 
-First the smoothness and support. Extend each $f_j$ by zero to $\mathbb R^j$. Its cumulative integral is smooth on $\mathbb R^j$, and multiplication by smooth coordinate cutoffs, equal to one near $[0,\infty)$ and vanishing below $-1$, makes it compactly supported without altering its orthant values or derivatives; the cumulative integral itself already vanishes once any coordinate exceeds an upper support bound of $f_j$. On the orthant $F_j$ vanishes for $t_1+\dots+t_j\ge\tau$, its signed complete mixed derivative equals $f_j$, and this derivative is zero on every coordinate face. The contracted function $Tf_{j+1}$ inherits the same smoothness, interior support and face vanishing.
+First the smoothness and support. Extend each $f_j$ by zero to $\mathbb R^j$. Its cumulative integral is smooth on $\mathbb R^j$, and multiplication by smooth coordinate cutoffs, equal to one near $[0,∞)$ and vanishing below $-1$, makes it compactly supported without altering its orthant values or derivatives; the cumulative integral itself already vanishes once any coordinate exceeds an upper support bound of $f_j$. On the orthant $F_j$ vanishes for $t_1+...+t_j\ge\tau$, its signed complete mixed derivative equals $f_j$, and this derivative is zero on every coordinate face. The contracted function $Tf_{j+1}$ inherits the same smoothness, interior support and face vanishing.
 
-Expand $Z^2$ over pairs of subsets $S,T\subset I$. A shift in the symmetric difference $S\triangle T$ occurs once and sets a coordinate of one of the mixed derivatives to zero, so its main coefficient vanishes. If $S=T$ has size $j$ the coefficient is $\|f_j\|_2^2$, and averaging the singular series with $\binom hj/L^j\to\alpha_j$ proves $E_XZ^2\to w$. With a prime mark in $J$ the same matching rule applies and $h\binom hj/L^{j+1}\to\lambda\alpha_j$; the two divisor factors have total support $2\tau<1/2$, so the marked moment formula gives $E_X(Z^2V_J)\to\lambda w$. For an internal mark $a\in I$ the deletion identity replaces $F_j$ by $\widetilde F_j=F_j+F_{j+1}(\cdot,0)$, a bijection that adds no dimension factor; the support radius stays $\tau$ and the signed complete mixed derivative is $f_j+Tf_{j+1}$, vanishing on coordinate faces when $j\ge1$. Applying the external marked formula to these functions leaves only equal subsets $U$, with $h\binom{h-1}{j}/L^{j+1}\to\lambda\alpha_j$, which proves $E_X(Z^2V_I)\to v$ including the scalar term $\lambda|f_0+\int f_1|^2$. Applied to $Z^4$ the same argument uses four divisor factors of total support $4\tau<1$ and only the finiteness of the pattern constants; bounded averages of the singular series then give $E_XZ^4=O_{\lambda,k,\mathbf f}(1)$.
+Expand $Z^2$ over pairs of subsets $S,T\subset I$. A shift in the symmetric difference $S△ T$ occurs once and sets a coordinate of one of the mixed derivatives to zero, so its main coefficient vanishes. If $S=T$ has size $j$ the coefficient is $\|f_j\|_2^2$, and averaging the singular series with $\binom hj/L^j\to\alpha_j$ proves $E_XZ^2\to w$. With a prime mark in $J$ the same matching rule applies and $h\binom hj/L^{j+1}\to\lambda\alpha_j$; the two divisor factors have total support $2\tau<1/2$, so the marked moment formula gives $E_X(Z^2V_J)\to\lambda w$. For an internal mark $a\in I$ the deletion identity replaces $F_j$ by $\widetilde F_j=F_j+F_{j+1}(\cdot,0)$, a bijection that adds no dimension factor; the support radius stays $\tau$ and the signed complete mixed derivative is $f_j+Tf_{j+1}$, vanishing on coordinate faces when $j\ge1$. Applying the external marked formula to these functions leaves only equal subsets $U$, with $h\binom{h-1}{j}/L^{j+1}\to\lambda\alpha_j$, which proves $E_X(Z^2V_I)\to v$ including the scalar term $\lambda|f_0+\int f_1|^2$. Applied to $Z^4$ the same argument uses four divisor factors of total support $4\tau<1$ and only the finiteness of the pattern constants; bounded averages of the singular series then give $E_XZ^4=O_{\lambda,k,\mathbf f}(1)$.
 
 The detector bound needs a constant independent of the family. Put $q_X=\log(2X+2h)/L=1+o(1)$. At a prime $m+b$ every divisor above one satisfies $\log d/L>1>\tau$, so $D_G(m;b)=G(0)=1$, and pointwise
-$$\frac{\vartheta(m+b)}L\le q_X\,D_G(m;b)^2,\qquad\Bigl(\frac{\vartheta(m+b)}L\Bigr)^2\le q_X\,\frac{\vartheta(m+b)}L,$$
+$$\frac{θ(m+b)}L\le q_X\,D_G(m;b)^2,\qquad(\frac{θ(m+b)}L)^2\le q_X\,\frac{θ(m+b)}L,$$
 the first inequality holding at composites too because its left side vanishes. Since $Z^2\ge0$,
-$$E_X(Z^2V_J^2)\le q_XE_X(Z^2V_J)+q_X^2\sum_{\substack{b,c\in J\\b\ne c}}E_X\bigl[Z^2D_G(m;b)^2D_G(m;c)^2\bigr].$$
+$$E_X(Z^2V_J^2)\le q_XE_X(Z^2V_J)+q_X^2\sum_{\substack{b,c\in J\\b\ne c}}E_X[Z^2D_G(m;b)^2D_G(m;c)^2].$$
 An off-diagonal summand carries six divisor factors of total support $6\tau<1$; the paired shifts $b,c$ lie outside $I$, so the two subsets from $Z^2$ must again coincide. For common size $j$ the coefficient is $c_G^2\|f_j\|_2^2$, the pair $(b,c)$ is ordered, and $h(h-1)\binom hj/L^{j+2}\to\lambda^2\alpha_j$. The off-diagonal sum therefore tends to $\lambda^2c_G^2w$, and together with $E_X(Z^2V_J)\to\lambda w$ this gives the detector bound with $C_*=\lambda+\lambda^2c_G^2$. The convergence rates may depend on the family, but $C_*$ does not.
 
-The weight is now normalized. For a family with $w>0$ set $W_X=Z^2/w$. Then $E_XW_X\to1$, $E_X(W_XV_J)\to\lambda$, $\limsup E_X(W_XV_I)\to v/w$ and $\limsup E_X(W_XV_J^2)\le C_*$, while $E_XW_X^2=O_{\lambda,k,\mathbf f}(1)$. The weight proposition is therefore exactly the demand that a fixed family satisfy $v/w\le\varepsilon$, with the detector constant $C_*$ unchanged.
+The weight is now normalized. For a family with $w>0$ set $W_X=Z^2/w$. Then $E_XW_X\to1$, $E_X(W_XV_J)\to\lambda$, $limsup E_X(W_XV_I)\to v/w$ and $limsup E_X(W_XV_J^2)\le C_*$, while $E_XW_X^2=O_{\lambda,k,\mathbf f}(1)$. The weight proposition is therefore exactly the demand that a fixed family satisfy $v/w\leε$, with the detector constant $C_*$ unchanged.
 
 Building such a family uses product profiles cut to a simplex, with truncation controlled by moments of the squared density; such profiles occur in Maynard's sieve construction. The extra ingredient is to place the profiles at a short range of dimensions near an alternating boundary, so that neighbouring levels nearly cancel.
 
 ./pdf/maynard-1311.4600-2015-small-gaps-primes.pdf
 
-Lemma (one-dimensional profile). For every $\lambda>0$ and $\beta>0$ there is a nonnegative $g\in C_c^\infty((0,\infty))$ with
-$$\int_0^\infty g(u)^2\,du=1,\qquad\int_0^\infty g(u)\,du=\sqrt\lambda,\qquad\mu_g:=\int_0^\infty ug(u)^2\,du<\beta.$$
+Lemma (one-dimensional profile). For every $\lambda>0$ and $\beta>0$ there is a nonnegative $g\in C_c^∞((0,∞))$ with
+$$\int_0^∞ g(u)^2\,du=1,\qquad\int_0^∞ g(u)\,du=\sqrt\lambda,\qquad\mu_g:=\int_0^∞ ug(u)^2\,du<\beta.$$
 
-Proof. For $R\ge2$ choose a smooth $\phi_R$ on $(0,\infty)$, equal to $1/u$ on $[1,R]$, with $0\le\phi_R(u)\le1/u$ and support in $[1/2,2R]$, and put
+Proof. For $R\ge2$ choose a smooth $\phi_R$ on $(0,∞)$, equal to $1/u$ on $[1,R]$, with $0\le\phi_R(u)\le1/u$ and support in $[1/2,2R]$, and put
 $$A_R=\int\phi_R,\qquad B_R=\int u\phi_R(u)^2\,du,\qquad N_R^2=\int\phi_R^2,$$
 so that $A_R\ge\log R$, $B_R\le\log(4R)$ and $1/2\le N_R^2\le2$. Set $g_0=\phi_R/N_R$, $c=\lambda/(\int g_0)^2$ and $g(u)=c^{-1/2}g_0(u/c)$. Changes of variable give exactly
-$$\int g^2=1,\qquad\int g=\sqrt\lambda,\qquad\mu_g=\lambda\frac{B_R}{A_R^2}\le\lambda\frac{\log(4R)}{(\log R)^2},$$
+$$\int g^2=1,\qquad\int g=\sqrt\lambda,\qquad\mu_g=\lambda(B_R)/(A_R^2)\le\lambda(\log(4R))/((\log R)^2),$$
 and taking $R$ large, then holding it fixed, makes $\mu_g<\beta$.
 
 The profile may have a large support endpoint and variance; only finiteness matters, because the dimension is chosen after the profile. A single fixed profile is then reused at every level of a finite alternating block.
@@ -252,26 +252,26 @@ Proposition (cancellation between high dimensions). For every fixed $\lambda>0$
 
 Proof. Fix $0<\beta<\gamma<\tau$ and choose $g$ from the profile lemma, writing $d=\beta-\mu_g>0$. Let $B$ be an upper endpoint of the support of $g$ and let $s_g^2$ be the variance of the probability density $g^2$; these are fixed and finite. For a large integer $k$ and $0\le j\le k$ define
 $$Q_j(\mathbf t)=k^{j/2}\prod_{i=1}^{j}g(kt_i),\qquad S_j=\sum_{i=1}^{j}t_i,$$
-with $Q_0=1$ and $S_0=0$. Before the simplex cutoff these products satisfy $\|Q_j\|_2=1$ and $TQ_{j+1}=\sqrt{\lambda/k}\,Q_j$ for $0\le j<k$, while $\alpha_j/\alpha_{j+1}=(j+1)/\lambda$. Alternating products $(-1)^jQ_j/\sqrt{\alpha_j}$ at neighbouring levels therefore cancel up to the factor $1-\sqrt{(j+1)/k}$. The family uses $r$ neighbouring levels near $k$, with $r/k\to0$ making these factors small and $r\to\infty$ making the two endpoint contributions small.
+with $Q_0=1$ and $S_0=0$. Before the simplex cutoff these products satisfy $\|Q_j\|_2=1$ and $TQ_{j+1}=√(\lambda/k)\,Q_j$ for $0\le j<k$, while $\alpha_j/\alpha_{j+1}=(j+1)/\lambda$. Alternating products $(-1)^jQ_j/√(\alpha_j)$ at neighbouring levels therefore cancel up to the factor $1-√((j+1)/k)$. The family uses $r$ neighbouring levels near $k$, with $r/k\to0$ making these factors small and $r\to∞$ making the two endpoint contributions small.
 
-Take $r=\lfloor\sqrt k\rfloor$ and $a=k-r+1$. Choose a smooth cutoff $\chi$ with $0\le\chi\le1$, equal to one on $[0,\beta]$ and zero on $[\gamma,\infty)$. At the $r$ indices $a\le j\le k$ set
-$$f_j(\mathbf t)=\frac{(-1)^j}{\sqrt r\sqrt{\alpha_j}}\,Q_j(\mathbf t)\,\chi(S_j),$$
+Take $r=\lfloor\sqrt k\rfloor$ and $a=k-r+1$. Choose a smooth cutoff $\chi$ with $0\le\chi\le1$, equal to one on $[0,\beta]$ and zero on $[\gamma,∞)$. At the $r$ indices $a\le j\le k$ set
+$$f_j(\mathbf t)=\frac{(-1)^j}{\sqrt r√(\alpha_j)}\,Q_j(\mathbf t)\,\chi(S_j),$$
 and set all other $f_j$, including $f_0$, to zero. Each such finite family is compactly supported in the interior of the simplex: every coordinate is bounded below by a positive support endpoint of $g$ divided by $k$, and the cutoff forces $S_j\le\gamma<\tau$.
 
 The density $Q_j^2$ has total mass one, and under it the variables $kt_i$ are independent with density $g^2$, so for $j\le k$
-$$E_jS_j=\frac{j\mu_g}{k}\le\mu_g,\qquad\mathrm{Var}_j(S_j)=\frac{js_g^2}{k^2}\le\frac{s_g^2}{k}.$$
+$$E_jS_j=(j\mu_g)/(k)\le\mu_g,\qquadVar_j(S_j)=(js_g^2)/(k^2)\le(s_g^2)/(k).$$
 Chebyshev's inequality gives
-$$1-\frac{s_g^2}{kd^2}\le w=\frac1r\sum_{j=a}^{k}E_j[\chi(S_j)^2]\le1,$$
+$$1-(s_g^2)/(kd^2)\le w=\frac1r\sum_{j=a}^{k}E_j[\chi(S_j)^2]\le1,$$
 proving $w\to1$. For $a\le j\le k-1$, substituting $u=kt_{j+1}$ and using $\alpha_j/\alpha_{j+1}=(j+1)/\lambda$ gives
-$$\sqrt{\alpha_j}(f_j+Tf_{j+1})(\mathbf t)=\frac{(-1)^jQ_j(\mathbf t)}{\sqrt r}\Bigl[\chi(S_j)-\sqrt{\frac{j+1}{\lambda k}}\int_0^\infty g(u)\chi(S_j+u/k)\,du\Bigr].$$
-For $k\ge2B/d$ Chebyshev gives, uniformly in $j\le k$, $P_j(S_j>\beta-B/k)\le4s_g^2/(kd^2)$. On the complementary event every cutoff in the bracket equals one, so the bracket is $1-\sqrt{(j+1)/k}$, whose square is at most $(r/k)^2$; everywhere the bracket lies in $[0,1]$, since $g\ge0$, $\int g=\sqrt\lambda$ and $j+1\le k$. Summing the $r-1$ interior terms bounds the total contribution to $v/\lambda$ by $(r/k)^2+4s_g^2/(kd^2)$. The probability estimate is taken with respect to $Q_j^2$ while the deletion integral carries $g(u)\,du$, and no comparison of the two measures is needed: on the complementary event $S_j+u/k\le\beta$ for every $u$ in the support of $g$, so the integral cutoff equals one pointwise.
+$$√(\alpha_j)(f_j+Tf_{j+1})(\mathbf t)=((-1)^jQ_j(\mathbf t))/(\sqrt r)\Bigl[\chi(S_j)-√((j+1)/(\lambda k))\int_0^∞ g(u)\chi(S_j+u/k)\,du\Bigr].$$
+For $k\ge2B/d$ Chebyshev gives, uniformly in $j\le k$, $P_j(S_j>\beta-B/k)\le4s_g^2/(kd^2)$. On the complementary event every cutoff in the bracket equals one, so the bracket is $1-√((j+1)/k)$, whose square is at most $(r/k)^2$; everywhere the bracket lies in $[0,1]$, since $g\ge0$, $\int g=\sqrt\lambda$ and $j+1\le k$. Summing the $r-1$ interior terms bounds the total contribution to $v/\lambda$ by $(r/k)^2+4s_g^2/(kd^2)$. The probability estimate is taken with respect to $Q_j^2$ while the deletion integral carries $g(u)\,du$, and no comparison of the two measures is needed: on the complementary event $S_j+u/k\le\beta$ for every $u$ in the support of $g$, so the integral cutoff equals one pointwise.
 
 Exactly two further indices contribute. At the top $j=k$ the term is $\alpha_k\|f_k\|_2^2\le1/r$. At the bottom $j=a-1=k-r$ only $Tf_a$ occurs, and
-$$\sqrt{\alpha_{a-1}}\,Tf_a=\frac{(-1)^aQ_{a-1}}{\sqrt r}\,\sqrt{\frac a{\lambda k}}\int_0^\infty g(u)\chi(S_{a-1}+u/k)\,du,$$
+$$\sqrt{\alpha_{a-1}}\,Tf_a=\frac{(-1)^aQ_{a-1}}{\sqrt r}\,\sqrt{\frac a{\lambda k}}\int_0^∞ g(u)\chi(S_{a-1}+u/k)\,du,$$
 with squared norm at most $a/(kr)\le1/r$. Hence
-$$0\le\frac v\lambda\le\frac2r+\Bigl(\frac rk\Bigr)^2+\frac{4s_g^2}{kd^2}\longrightarrow0,$$
+$$0\le\frac v\lambda\le\frac2r+(\frac rk)^2+(4s_g^2)/(kd^2)→0,$$
 which together with $w\to1$ proves the proposition.
 
-Proof of the weight proposition. Fix $\lambda>0$ and one function $G$ with the stated properties, and set $K_\lambda=C_*=\lambda+\lambda^2c_G^2$, a value independent of $\varepsilon$. Given $\varepsilon>0$, choose $0<\beta<\gamma<\tau$, a profile $g$ from the profile lemma and a matching cutoff $\chi$; by the cancellation proposition a single finite $k$ and its family satisfy $w>0$ and $v/w\le\varepsilon$. Freezing this family and setting $W_X=Z^2/w$, all conclusions follow from the moment proposition by dividing by $w$, or by $w^2$ for the second moment. Once the family is chosen in terms of $\lambda$ and $\varepsilon$, the fixed-family second-moment bound reads $O_{\lambda,\varepsilon}(1)$.
+Proof of the weight proposition. Fix $\lambda>0$ and one function $G$ with the stated properties, and set $K_\lambda=C_*=\lambda+\lambda^2c_G^2$, a value independent of $ε$. Given $ε>0$, choose $0<\beta<\gamma<\tau$, a profile $g$ from the profile lemma and a matching cutoff $\chi$; by the cancellation proposition a single finite $k$ and its family satisfy $w>0$ and $v/w\leε$. Freezing this family and setting $W_X=Z^2/w$, all conclusions follow from the moment proposition by dividing by $w$, or by $w^2$ for the second moment. Once the family is chosen in terms of $\lambda$ and $ε$, the fixed-family second-moment bound reads $O_{\lambda,ε}(1)$.
 
-The order of the two limits is essential: the auxiliary limit $k\to\infty$ produces one family, and only afterwards does $X\to\infty$. No divisor-sum asymptotic uniform in $k$ is needed. For a fixed threshold $C>0$, $\lambda$ was fixed with $\lambda>\max\{1,C\}$ before any of these choices were made. This completes the proof of the theorem and, with it, of the corollary.
+The order of the two limits is essential: the auxiliary limit $k\to∞$ produces one family, and only afterwards does $X\to∞$. No divisor-sum asymptotic uniform in $k$ is needed. For a fixed threshold $C>0$, $\lambda$ was fixed with $\lambda>\max\{1,C\}$ before any of these choices were made. This completes the proof of the theorem and, with it, of the corollary.