MathLabs

Worked solution: Maynard's multidimensional sieve: bounded gaps between primes (2013)

Step 2 of 8: The GPY sieve: a weighted count that forces primes to appear
In plain words

Imagine giving each integer nn in a big range a nonnegative 'weight' wnw_n that is large exactly when n+h1,…,n+hkn+h_1,\dots,n+h_k have few small prime factors, so they are plausible candidates for being prime. If a cleverly weighted count of how many of the n+hin+h_i are prime, minus a target number ρ\rho, comes out positive overall, then some single nn in the range must actually contribute more than ρ\rho primes among n+h1,…,n+hkn+h_1,\dots,n+h_k.

Goldston, Pintz and Yıldırım built exactly such weights from the Möbius function μ\mu, mimicking the classical Selberg sieve, and showed how to estimate the resulting sum precisely enough to find a positive contribution.

S(N,ρ)=∑N≤n<2N(∑i=1kχP(n+hi)−ρ)wn,wn=(∑d∣∏i=1k(n+hi)d<Rμ(d)(log⁡R/d)k)2S(N,\rho)=\sum_{N\le n<2N}\Big(\sum_{i=1}^{k}\chi_{\mathbb{P}}(n+h_i)-\rho\Big)w_n,\qquad w_n=\Big(\sum_{\substack{d\mid \prod_{i=1}^k(n+h_i)\\ d<R}}\mu(d)\big(\log R/d\big)^k\Big)^2
Detailed analysis

For a fixed admissible H={h1,…,hk}\mathcal{H}=\{h_1,\dots,h_k\}, nonnegative weights wnw_n and a target ρ>0\rho>0, Maynard considers S(N,ρ)=∑N≤n<2N(∑i=1kχP(n+hi)−ρ)wnS(N,\rho)=\sum_{N\le n<2N}\big(\sum_{i=1}^k \chi_{\mathbb{P}}(n+h_i)-\rho\big)w_n, where χP\chi_{\mathbb{P}} is the indicator function of the primes (Maynard 2013, §2, eq. 2.1). If S(N,ρ)>0S(N,\rho)>0 for all large NN, some n∈[N,2N)n\in[N,2N) has weight wn>0w_n>0 and at least ⌊ρ+1⌋\lfloor \rho+1\rfloor of n+h1,…,n+hkn+h_1,\dots,n+h_k prime — because wn≥0w_n\ge0 everywhere, the only way the weighted sum can be positive is if the bracket is positive at some weighted point.

The classical GPY choice of weights is a Selberg-type square, wn=(∑d∣∏i(n+hi), d<Rμ(d)(log⁡R/d)k)2w_n=\big(\sum_{d\mid \prod_i(n+h_i),\,d<R}\mu(d)(\log R/d)^k\big)^2, where μ\mu is the Möbius function and RR is a parameter controlling how far the divisor sum runs (Maynard 2013, §2, eq. 2.2). Squaring guarantees wn≥0w_n\ge0, and the specific choice of coefficients makes S(N,ρ)S(N,\rho) computable via standard sieve technology, provided one knows how evenly primes are distributed in arithmetic progressions up to modulus around RR.

With this one-dimensional recipe, GPY could show gaps are infinitely often a vanishing fraction of log⁡pn\log p_n, but not literally bounded — the weights treat the divisibility of the whole product ∏i(n+hi)\prod_i(n+h_i) as one block, which turns out to be too rigid. The next step is Maynard's fix.

Terms in this step
Sieve weight
A nonnegative number wnw_n attached to each integer nn in a range, designed so that nn contributes strongly to a counting sum exactly when n+h1,…,n+hkn+h_1,\dots,n+h_k have no small prime factors, mimicking primality.
Möbius function (μ\mu)
The arithmetic function with μ(1)=1\mu(1)=1, μ(n)=(−1)r\mu(n)=(-1)^r if nn is a product of rr distinct primes, and μ(n)=0\mu(n)=0 if nn has a repeated prime factor; it is the classical tool for turning divisor sums into sieve estimates via inclusion–exclusion.