editors: nobody
Write p_n for the n-th prime and d_n=p_{n+1}-p_n for the gap to its successor. By the prime number theorem the average of d_n near p_n is asymptotic to log p_n, so a gap exceeding Clog p_n is a large deviation for any fixed C>0. Such gaps have long been known to occur. Westzynthius showed in 1931 that d_n/log p_n is unbounded; Erdos in 1935 and Rankin in 1938 supplied quantitative lower bounds of increasing strength; Ford, Green, Konyagin and Tao, and independently Maynard in 2016, improved these substantially; and Ford, Green, Konyagin, Maynard and Tao obtained a further gain in 2018.
pdf/erdos-1935-07-1935-on-the-difference-of-consecutive-primes.pdf
pdf/ford-green-konyagin-tao-1408.4505-2016-large-gaps-consecutive.pdf
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 d(A)=liminf_{Nto∞}|Acap[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 Nge N_0(C),
#{1le nle N: p_{n+1}-p_n>Clog p_n} ge c(C),N.
The density is ordinary lower density: the inequality holds for every sufficiently long initial segment, and c(C), N_0(C) depend only on C.
Corollary (Erdos--Prachar). The set {nge1: p_n/n<p_{n+1}/(n+1)} has positive lower asymptotic density.
pdf/erdos-prachar-1961-21-1962-saetze-probleme-pk-k.pdf
The corollary follows at once from the theorem. The inequality p_n/n<p_{n+1}/(n+1) is equivalent to d_n>p_n/n, and the prime number theorem gives p_n/nsimlog p_n. The theorem with C=2 then supplies a positive proportion of indices, after the finitely many indices with p_n/nge2log p_n are removed. The corollary therefore answers the question of Erdos and Prachar affirmatively.
Two counting measures must be kept apart. Every integer start inside a prime-free interval yields such an interval, so a sparse set of very long gaps can inflate the count of empty intervals without contributing proportionally to the count of gaps. Bazzanella, Languasco and Zaccagnini isolate the two measures: one theorem there gives positive density for prime starts below a fixed threshold of roughly 0.579log p, while the count of integer starts reaches longer intervals. Tao's analysis of empty intervals likewise exhibits the extra control needed to pass from interval measure to a genuine count of consecutive gaps.
pdf/bazzanella-languasco-zaccagnini-0809.2967-2010-prime-numbers-log-intervals.pdf
"for every lambda>1/2 there exists a positive proportion of primes ple X such that the interval (p,p+lambdalog X] contains at least a prime number", and "a positive proportion of integers mle X such that the interval (m,m+lambdalog X] contains no primes."
Conditional results are quantitatively stronger. Gallagher derived Poisson statistics for the number of primes in integer-start intervals of length lambdalog X from a uniform Hardy--Littlewood tuple hypothesis, and Jha extended the Poisson-tail account to growing parameter ranges under a stronger uniformity assumption. Both conclusions assume far more than the unconditional theorem and are quoted only for context.
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=floor(lambda L), with the integer Xto∞. For each integer start min(X,2X] split the window above m into
J={1,...,h}, I={h+1,...,2h},
and put θ(n)=(log n),1_{{n prime}} together with
V_B(m)=frac1Lsum_{bin 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<mle2X.
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 ε>0 there are weights W_X(m)ge0, defined for integers X<mle2X, such that
E_XW_Xto1, E_X(W_XV_J)tolambda,
limsup_{Xto∞}E_X(W_XV_I)leε, limsup_{Xto∞}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.
The bridge from blocks to ordinary gaps is a counting lemma. It bounds how many starts can be charged to the same prime, independently of how far the next prime lies.
Lemma. Suppose hge1 and that for at least delta X integers min(X,2X] the block (m,m+h] contains a prime while (m+h,m+2h] contains none. Then at least delta X/h distinct primes pin(X,2X+h] have a successor p^+ with p^+-p>h.
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+2hge p(m)+h. For a fixed prime p counted this way the condition m<ple m+h forces p-hle mle 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 ε=lambda^2/(2K_lambda) in the proposition and fix the resulting weights. Choose M>0 with E_XW_X^2le M for all sufficiently large X. Put A_X={V_J>0} and B_X={V_I>0}. Weighted Cauchy--Schwarz gives, since V_Jge0 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_{Xto∞}E_X(W_X1_{A_X}) ge (lambda^2)/(K_lambda).
Because 1_{B_X}le V_I and W_Xge0,
liminf_{Xto∞}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
(|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/hgedelta X/(lambdalog X) distinct primes pin(X,2X+h] whose consecutive gap exceeds h. On this range log p=log X+O(1) and h=lambdalog X+O(1), so lambda>C forces h>Clog 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=floor( p_N/3). Then 2X+h<p_N, so every prime produced has index at most N, and the prime number theorem gives
(X)/(log X) sim (p_N)/(3log p_N) sim frac N3,
hence X/log Xge N/4 for all large N. The number of counted indices is at least delta N/(4lambda), so c(C)=delta/(4lambda)>0 is admissible. Every choice made before Xto∞ 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,∞)^j and distinct shifts mathbf b=(b_1,...,b_j),bfb=(b_1,...,b_j), put
D_F(m;mathbf b)=bfb)=sum_{d_1mid m+b_1}...sum_{d_jmid m+b_j}mu(d_1)...mu(d_j),FBig((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 1le jle k take a real symmetric f_jin C_c^∞ of the open simplex {mathbf tbftin(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)=bfv)=int_{s_1ge v_1}...int_{s_jge v_j}f_j(mathbf s)bfs),dmathbf s,bfs, F_0=f_0, (Tf_{j+1})(mathbf t)=bft)=int_0^∞ f_{j+1}(mathbf t,u)bft,u),du.
On the orthant F_j vanishes for t_1+...+t_jgetau, 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_{Ssubset I, |S|=j}D_{F_j}(m;S), 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)_{0le jle k} fixed. As Xto∞,
E_XZ^2to w:=sum_{j=0}^{k}alpha_j|f_j|_2^2, E_XZ^4=O_{lambda,k,mathbf f}bff(1),
E_X(Z^2V_J)tolambda w, E_X(Z^2V_I)to v:=lambdasum_{j=0}^{k}alpha_j|f_j+Tf_{j+1}|_2^2.
Choose a real Gin C_c^∞(R) with G(0)=1 and G(u)=0 for ugetau, put c_G=int_0^∞|G'(u)|^2,du and C_*=lambda+lambda^2c_G^2. Then for every fixed family,
limsup_{Xto∞}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 ∂_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 ain I and suppose m+a is prime. In every nonzero summand of D_{F_j}(m;S) with ain 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}(·,0) and deleting a from each subset that contains it yields the exact identity
Z(m)=sum_{j=0}^{k} sum_{Usubset I∖{a}, |U|=j}D_{widetilde F_j}(m;U)(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 H of distinct integers put nu_p(H)=|calH)=|H p| and the singular series
mathfrak S(frakS(H)=-nu_p(H)/p)(1-1/p)^calH)/p)(1-1/p)^{-|H|}calH|,
with mathfrak S(∅)=1.frakS(∅)=1. Past the diameter of H the local factor is 1+O_{|H|}calH|(p^{-2}), so the product converges; it is nonnegative, may vanish, and equals one when |H|=1.calH|=1.
Proposition (uniform mixed moments). Put L=log X with integer Xto∞ and let E_X average over X<mle2X. 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 R^{j_r}, vanishing on the orthant outside v_1+...+v_{j_r}lerho_r, where the budgets rho_rge0 are fixed and dimension zero means a scalar with budget zero. For positive divisors define
D_{F_r}(m;mathbf b^bfb^{(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_rBig(Big(frac{log d_{r,ell}}{L}Big)_{ell=1}^{j_r}Big).
Let Gamma={(r,ell):1le rle R, 1leellle j_r} and fix a surjection kappa:Gammato{1,...,t} with fibres M_i={-1}(i). Take distinct shifts a_1,...,a_t with |a_i|le DL^B, D>0 and Bge1 fixed, and set b_{r,ell}=a_{kappa(r,ell)}. Choose deltain{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),H)=(1,{a_1,...,a_t}),&delta=0,(θ(m+a_0),{a_0,a_1,...,a_t}),&delta=1.
Assume sum_rrho_r<1 if delta=0 and sum_rrho_r<1/2 if delta=1. Then there is a real constant C, depending only on the functions and on kappa, such that
E_XBig[chi_delta(m)prod_rD_{F_r}(m;mathbf b^bfb^{(r)})Big]=L^{-t}Big{mathfrak S(frakS(H),C+OcalC+Obig(L^{-1/2}(log L)^Abig)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 |M_i|calM_i|le2, then
C=-1)^{j_r}∂_1...∂_{j_r}F_rBig)big((y_{kappa(r,ell)})_{ell=1}^{j_r}big)prod_{i:,|M_i|=2}calM_i|=2dy_i,
the variables y_i ranging over [0,∞), with y_i=0 when |M_i|=1calM_i|=1 and with the zero-dimensional derivative read as the scalar itself. When Gamma is empty, t=0 and C=
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, phi(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_{qle x^{1/2}(log x)^{-b(A)}}max_{(c,q)=1}Big|psi(x;q,c)-(x)/(phi(q))Big|ll_A x(log x)^{-A},
where psi(x;q,c)=sum_{nle x, nequiv cpmod q}Λ(n) and q=1 is included. Fix 0lesigma<1/2 and Kge1, and define
E_X(q)=max_{substack{ainZ, |a|le H_X(c,q)=1}}Big|sum_{substack{X+a<nle2X+a nequiv cpmod q}}θ(n)-(X)/(phi(q))Big|.
Then for every A>0,
sum_{qle X^sigma}mu^2(q)K^{omega(q)}E_X(q)ll_{A,sigma,K,D,B}X L^{-A}.
Proof. At either endpoint x=X,2X the range qle X^sigma lies inside that of the displayed theorem once X is large. Removing proper prime powers from a psi-sum costs at most sum_{p^jle3X, jge2}log pll X^{1/2}L^2 in each class, because there are O(X^{1/2}L) pairs (p,j) each contributing O(L). Shifting an endpoint through any |a|le H_X costs O((H_X+1)L), uniformly in the class. Writing Q=floor( X^sigma), for every A_0>0,
sum_{qle Q}E_X(q)ll_{A_0}X L^{-A_0}+Q{X^{1/2}L^2+(H_X+1)L}ll_{A_0,sigma,D,B}X L^{-A_0},
the last step using the strict inequality sigma<1/2; the maximum over all shifts is controlled at once, with no union bound. Since a length-X interval holds at most X/q+1 integers in one class and q/phi(q)le2^{omega(q)}le d(q), one has E_X(q)ll(X/q){L+d(q)}. For each fixed Tge1,
sum_{qle Q}frac{mu^2(q)T^{omega(q)}}qleprod_{ple Q}(1+T/p)ll_T L^{c_T},
which uses only the elementary bound sum_{ple y}1/p=O(loglog(3y)): compare 1/ple e,p^{-1-1/log y} with logzeta(1+1/log y) and bound zeta(1+u)le1+1/u. As squarefree q have d(q)=2^{omega(q)}, the two estimates give sum_{qle Q}mu^2(q)K^{2omega(q)}E_X(q)ll_K XL^{c_K}, and Cauchy--Schwarz on the nonnegative E_X(q) yields
sum_{qle Q}mu^2(q)K^{omega(q)}E_X(q)leBig(sum_{qle Q}E_X(q)Big)^{1/2}Big(sum_{qle Q}mu^2(q)K^{2omega(q)}E_X(q)Big)^{1/2}ll XL^{(c_K-A_0)/2}.
Taking A_0ge 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 Bge0 in the shift bound H_X=DL^B. Put M=|Gamma| and sigma=sum_rrho_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_bfd=(d_gamma)_{gammainGamma} put q=[d_gamma:gammainGamma], with q=1 if M=0. Call mathbf dbfd compatible if, for every prime pmid q, the shifts b_gamma with pmid d_gamma share one residue modulo p; in the marked case require in addition that this residue differ from a_0bmod p. Set
rho_delta(mathbf d)=bfd)=prod_{pmid q}(p-delta)^{-1},&mathbf dbfd compatible,0,&otherwise,
and define the finite density sum
A_{mathbf dbfd squarefree}rho_delta(mathbf d)bfd)prod_{gammainGamma}mu(d_gamma)prod_rF_rBig(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_XBig[chi_delta(m)prod_rD_{F_r}(m;mathbf b^bfb^{(r)})Big]=A_+O_A(L^{-A}).
The implied constant may depend on the fixed functions, dimensions, budgets, D, B and A; for delta=0 and Mge1 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_gammale X^sigma and therefore qle 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_gammamid m+b_gamma prescribe at a prime pmid q the residues mequiv-b_gammapmod p for all selected coordinates. These are inconsistent unless the selected shifts agree modulo every pmid q; when the shifts agree, the Chinese remainder theorem prescribes exactly one class mpmod 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 Mge1 the number of positive integer tuples with product at most Yge1 is at most Y(sum_{dle 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 A_ 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 npmod p is a_0-b_gamma wherever pmid 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 nle q; but prod_gamma d_gammale X^sigma and sigma<1/2 give nge X-H_X>X^sigmage 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/phi(q)+O(E_X(q)), and because q is squarefree phi(q)=prod_{pmid q}(p-1), the main density factor in A_
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 Mge1, 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
(prod_r|F_r|_∞)/(X)sum_{qle 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 A_ to within O_N(L^{-N}) for every fixed N; if M=0 the sum is prod_rF_r outright, so take M>0.
Choose a smooth compact extension widetilde F_r of each positive-dimensional F_r and define its Fourier transform
Phi_r(mathbf u)=(2bfu)=(2pi)^{-j_r}int_{R^{j_r}}e^{sum_ell v_ell}widetilde F_r(mathbf v)bfv),e^{mathrm irmimathbf ubfu·mathbf v}bfv,dmathbf v,bfv,
a Schwartz function. Fourier inversion gives, on the orthant,
F_r(mathbf v)=bfv)=int_{R^{j_r}}Phi_r(mathbf u)bfu),e^{-sum_ell(1+mathrm iu_rmiu_ell)v_ell},dmathbf u.bfu.
Use the scalar itself for zero-dimensional factors, put Phi=prod_rPhi_r, z_gamma=(1+mathrm iu_rmiu_gamma)/L and z_S=sum_{gammain S}z_gamma. The interchange of sum and integral is justified by
sum_{mathbf d}bfdrho_delta(mathbf d)bfd)prod_gamma d_gamma^{-1/L}leprod_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-ε}lelogzeta(1+ε)lelog(1+1/ε) and the finite integral int|Phi| this gives absolute convergence.
Call a nonempty subset SsubsetGamma allowed at p if its shifts satisfy the compatibility and mark-exclusion conditions. The exact Euler factor is
P_p(mathbf z)=1+bfz)=1+frac1{p-delta}sum_{S allowed at p}(-1)^{|S|}p^{-z_S}, A_ u)bfu)prod_pP_p(mathbf z)bfz),dmathbf u.bfu.
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)=bfz)=prod_{i=1}^{t}prod_{∅ne SsubsetM_i}-p^{-1-z_S})^{-(-1)^{|S|}}, H_p(mathbf z)=P_p(bfz)=P_p(mathbf z)/B_p(bfz)/B_p(mathbf z).bfz).
For Re z_gammage0 every denominator has modulus at least 1/2 and |H_p(mathbf z)|bfz)|leexp(C_M/p). When the distinct shifts of H have distinct residues modulo p, the allowed subsets are exactly the nonempty subsets of the individual fibres M_i, and matching the terms of order p^{-1} gives
H_p(mathbf z)=1+O_M(p^bfz)=1+O_M(p^{-2})
uniformly for Re z_gammage0. At mathbf z=0,bfz=0, summing signs over the nonempty subsets of each occupied residue class gives
P_p(0)=(p-nu_p(H))/(p-calH))/(p-delta), B_p(0)=(1-1/p)^t,
so H_p(0) is the local factor of mathfrak S(frakS(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 ple Y differentiation along the segment from zero to mathbf zbfz gives |H_p(mathbf z)-H_p(0)|bfz)-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_Msum_{ple Y}1/p)ll_M(log Y)^{C'_M}, and using sum_{ple Y}(log p)/plesum_{nle 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^bfz)=1+O_M(p^{-2}) makes both remaining tail products 1+O_M(1/Y). Consequently
prod_pH_p(mathbf z)=bfz)=mathfrak S(frakS(H)+OcalH)+Obig(L^{-1/2}(log L)^Abig), mathfrak S(frakS(H) L)^A,
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)=bfz)=prod_{i=1}^{t}prod_{∅ne SsubsetM_i}+z_S)^{(-1)^{|S|}}.
Write w_gamma=1+mathrm iu_rmiu_gamma and K_i(mathbf u)=bfu)=prod_{∅ne SsubsetM_i}{gammain S}w_gamma)^{(-1)^{|S|+1}}. The pole expansion zeta(1+z)=z^{-1}(1+O(|z|)) with sum_{∅ne SsubsetM_i}-1)^{|S|}=-1 gives
prod_pB_p(mathbf z)=L^bfz)=L^{-t}prod_iK_i(mathbf u)bfu){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
C={R^M} u)bfu)prod_iK_i(mathbf u)bfu),dmathbf ubfu
is absolutely convergent. Integrating the two comparisons against the Schwartz transform and restoring the negligible frequency tails proves the mixed-moment expansion, and C is real by conjugation under mathbf ubfu|->-mathbf u.bfu.
The derivative form of 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^∞ e^{-(w_gamma+w_{gamma'})y_i},dy_i.
After taking absolute values, the new variables contribute e^{-2sum_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.
pdf/goldston-yildirim-d5-2003-higher-correlations-triple.pdf
pdf/goldston-yildirim-0504336-2005-small-gaps-primes-i.pdf
pdf/maynard-1311.4600-2015-small-gaps-primes.pdf
Goldston and Yildirim note that "it is critical to have some form of positivity in the argument".
The choice of smooth cutoffs was informed by the analysis of smoothing and high moments of divisor sums by Granville, Koukoulopoulos and Maynard. The mixed-moment proposition does not depend on any of these.
pdf/granville-koukoulopoulos-maynard-1606.06781-2021-sieve-weights-smoothings.pdf
Summing over shifts next requires the singular series to average to one, which is a box version of Gallagher's mean value. Gallagher's Poisson result is the quantitative source of confidence that this average matches the prime-tuple heuristic; the unconditional statement, proved by truncating the Euler product, is what the argument uses.
pdf/jha-2605.23014v2-2026-poisson-tail-primes-short-intervals.pdf
Lemma (singular series in boxes). Fix an integer sge0 and a constant Kge1. 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 hto∞,
sum_{substack{a_iin I_i (1le ile s)a_1,...,a_s distinct}}mathfrak S(frakS({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/loglog h)+O_s(h^{-1/2}(loglog h)^{A_s}) with A_s a finite constant depending only on s.
Proof. The cases s=0,1 are immediate; take sge2. Put y=(1/4)log h and Q=prod_{ple y}p, so the prime number theorem gives Qle h^{1/2} for large h. For all tuples, collisions included, define
mathfrak S_y(frakS_y(mathbf a)=bfa)=prod_{ple 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_ine x for all i)=(1-1/p)^s,
so by the Chinese remainder theorem mathfrak S_yfrakS_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_{ple y}1/p=O(loglog(3y)) gives 0lemathfrak S_y(frakS_y(mathbf a)bfa)leprod_{ple y}(1-1/p)^{-s}ll_s(log y)^{A_s}. Hence
h^{-s}sum_{a_iin I_i}mathfrak S_y(frakS_y(mathbf a)=1+O_s((Q/h)(bfa)=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)=bfa)=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_sfrac1y+sum_{substack{p>ypmidDelta}}frac1ple C_s(frac1y+(logDelta)/(ylog y)).
Since logDeltalebinom s2log(Kh) this gives T_y(mathbf a)=1+O_bfa)=1+O_{s,K}(1/loglog h), uniformly in the distinct tuples. Using mathfrak S=S_yT_yfrakS=S_yT_y and the nonnegative truncated mean, valid even when a small-prime factor vanishes, yields the stated error from Qle h^{1/2} and log yasymploglog h.
When the shifts are summed, an equality pattern with t distinct unmarked shifts has O(h^t) assignments in fixed blocks of length hasymp 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 Xto∞.
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 2tau<1 for E_XZ^2; one prime mark, budget 2tau<1/2, for E_X(Z^2V_B) with B equal to I or J; unmarked 4tau<1 for E_XZ^4; and unmarked 6tau<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 R^j. Its cumulative integral is smooth on 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_jgetau, 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,Tsubset 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^jtoalpha_j proves E_XZ^2to w. With a prime mark in J the same matching rule applies and hbinom hj/L^{j+1}tolambdaalpha_j; the two divisor factors have total support 2tau<1/2, so the marked moment formula gives E_X(Z^2V_J)tolambda w. For an internal mark ain I the deletion identity replaces F_j by widetilde F_j=F_j+F_{j+1}(·,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 jge1. Applying the external marked formula to these functions leaves only equal subsets U, with hbinom{h-1}{j}/L^{j+1}tolambdaalpha_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 4tau<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}bff(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{θ(m+b)}Lle q_X,D_G(m;b)^2,(frac{θ(m+b)}L)^2le q_X,frac{θ(m+b)}L,
the first inequality holding at composites too because its left side vanishes. Since Z^2ge0,
E_X(Z^2V_J^2)le q_XE_X(Z^2V_J)+q_X^2sum_{substack{b,cin Jbne c}}E_X[Z^2D_G(m;b)^2D_G(m;c)^2].
An off-diagonal summand carries six divisor factors of total support 6tau<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}tolambda^2alpha_j. The off-diagonal sum therefore tends to lambda^2c_G^2w, and together with E_X(Z^2V_J)tolambda 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_Xto1, E_X(W_XV_J)tolambda, 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}bff(1). The weight proposition is therefore exactly the demand that a fixed family satisfy v/wleε, 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 gin C_c^∞((0,∞)) with
int_0^∞ g(u)^2,du=1, int_0^∞ g(u),du=sqrtlambda, mu_g:=int_0^∞ ug(u)^2,du<beta.
Proof. For Rge2 choose a smooth phi_R on (0,∞), equal to 1/u on [1,R], with 0lephi_R(u)le1/u and support in [1/2,2R], and put
A_R=intphi_R, B_R=int uphi_R(u)^2,du, N_R^2=intphi_R^2,
so that A_Rgelog R, B_Rlelog(4R) and 1/2le N_R^2le2. 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, int g=sqrtlambda, mu_g=lambda(B_R)/(A_R^2)lelambda(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.
Proposition (cancellation between high dimensions). For every fixed lambda>0 there are families of the type used in the weight construction, with increasing finite maximum dimension k, for which wto1 and vto0.
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 0le jle k define
Q_j(mathbf t)=k^bft)=k^{j/2}prod_{i=1}^{j}g(kt_i), 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}=√(lambda/k),Q_j for 0le 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/kto0 making these factors small and rto∞ making the two endpoint contributions small.
Take r=floor(sqrt k) and a=k-r+1. Choose a smooth cutoff chi with 0lechile1, equal to one on [0,beta] and zero on [gamma,∞). At the r indices ale jle k set
f_j(mathbf t)=bft)=frac{(-1)^j}{sqrt r√(alpha_j)},Q_j(mathbf t)bft),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_jlegamma<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 jle k
E_jS_j=(jmu_g)/(k)lemu_g, Var_j(S_j)=(js_g^2)/(k^2)le(s_g^2)/(k).
Chebyshev's inequality gives
1-(s_g^2)/(kd^2)le w=frac1rsum_{j=a}^{k}E_j[chi(S_j)^2]le1,
proving wto1. For ale jle k-1, substituting u=kt_{j+1} and using alpha_j/alpha_{j+1}=(j+1)/lambda gives
√(alpha_j)(f_j+Tf_{j+1})(mathbf t)=((-1)^jQ_j(bft)=((-1)^jQ_j(mathbf t))/(bft))/(sqrt r)Bigl[chi(S_j)-√((j+1)/(lambda k))int_0^∞ g(u)chi(S_j+u/k),duBigr].
For kge2B/d Chebyshev gives, uniformly in jle 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 gge0, int g=sqrtlambda and j+1le 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/klebeta 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^2le1/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^∞ g(u)chi(S_{a-1}+u/k),du,
with squared norm at most a/(kr)le1/r. Hence
0lefrac vlambdalefrac2r+(frac rk)^2+(4s_g^2)/(kd^2)→0,
which together with wto1 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 ε. 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/wleε. 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 kto∞ produces one family, and only afterwards does Xto∞. 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.