\section{The sieve weight and its restriction}\label{sec:weight} This section defines the weight $\omega_x$ of Section~\ref{sec:tuple} and the three quantities $\|G\|^2$, $\mathcal P(G)$ and $\mathcal I_i(G)$ that appear in the key propositions of Section~\ref{sec:key}: the weight is built from a profile (Sections~\ref{sec:band-law}--\ref{sec:amplitude}), the spline profile $F$ (Section~\ref{sec:spline}) and its restriction $G$ (Section~\ref{sec:restriction}), and the three quantities are integrals of $G$ (Sections~\ref{sec:masses} and~\ref{sec:functional}). The section contains definitions and one regularity lemma, and it uses no hypothesis. The amplitude and the law $\nu$ are those of \cite{sharifi182} (Appendix~\ref{app:imported}, items I1 and I2). The restriction, and the functionals of Section~\ref{sec:functional}, are specific to this paper. All tables referred to as \emph{stored} are finite tables of integers or rationals in the release \cite{release} (Remark~\ref{rem:tables}); the supplement describes them in full (\Supp{supp:tables}). \subsection{Scales and the one-site law}\label{sec:band-law} The dual variables of the sieve weight (Section~\ref{sec:amplitude}) are functions of the sizes of the prime factors of the sieve variables. This subsection fixes the scale on which these sizes are measured and the law that describes them in the limit. Fix \[ \rho=0.2624989,\qquad R=x^{\rho},\qquad \kappa=0.1668/\rho ,\qquad \Lambda_x=\frac{\phi(W)}{W}\log x,\qquad \Lambda_R=\rho\,\Lambda_x . \] By item I5, $\Lambda_R$ is asymptotic to the harmonic sum $\sum\mu^2(r)/\phi(r)$ over $r\le R$ coprime to $W$. It normalizes the dual variables of Section~\ref{sec:amplitude} and the harmonic measures below. \begin{definition}[Roots and the root cap] The variables $r$ of the sieve, which index the dual variables of Section~\ref{sec:amplitude}, are called \emph{roots}. Every prime factor of a root will be at most $R^{\kappa}=x^{0.1668}$; we call $0.1668$ the \emph{root cap}. \end{definition} So the sieve sees only primes up to $x^{0.1668}$: at a shift where the integer has no prime factor up to $x^{0.1668}$, only the sieve divisor $1$ contributes (Section~\ref{sec:rows}). \begin{definition}[Mark] Let $R=x^{\rho}$. The \emph{mark} of a prime $p$ is $\log p/\log R$. \end{definition} The mark measures the size of $p$ on the scale set by $R$. A prime with mark $t$ satisfies $p=R^{t}$. Since $R^{\kappa}=x^{0.1668}$, the prime factors of roots have marks in $(0,\kappa]$. \begin{definition}[Bands] Fix the rational division points $0=m_0b}\beta_{b'}$ its \emph{band mass strictly above $m_b$}. For $\beta=\beta(r)$ the latter is the sum of the marks greater than $m_b$ of the prime factors of $r$. \emph{The one-site law.} The law $\nu$ describes the band vectors of the roots in the limit, and lets us replace sums over roots by integrals. Let $\nu$ be $e^{\gamma}\kappa$ times the law of the band vector of a Poisson point process on $(0,\kappa]$ with intensity $dv/v$; here $\gamma$ is Euler's constant. Thus $\nu$ has total mass $e^{\gamma}\kappa$. Under $\nu$ the total has density $\mathrm{Dk}(t/\kappa)\,dt$, where $\mathrm{Dk}\le1$ is Dickman's function (we write $\mathrm{Dk}$ rather than the usual $\rho$, which here denotes the scale). The measure $\nu$ is the limit of the harmonic measures \[ \Lambda_R^{-1}\sum_{\substack{r\ \text{squarefree},\ (r,W)=1\\ p\mid r\,\Rightarrow\, p\le x^{0.1668}}} \frac{[\beta(r)]}{\phi(r)} \] in the sense of \cite[(2.1)--(2.2), (2.12)]{sharifi182} (item I1). Here $[\beta]$ denotes the unit point mass at $\beta$. If all marks are required to be at most $\eta_0$, the restricted measure is $e^{\gamma}\eta_0$ times the Poisson law with cutoff $\eta_0$, and its total has density $\mathrm{Dk}(t/\eta_0)\,dt$. \begin{definition}[Configurations, sites and radius] We write $\nu^{k}$ for the $k$-fold product measure. A point $y=(y_j)\in(\mathbb R^{217})^{k}$ is a \emph{configuration}; its components $y_j$ are indexed by \emph{sites}. The total of site $j$ is the total $\sum_by_{j,b}$ of $y_j$, and the \emph{radius} of $y$ is $\xi(y)=\rho\sum_{j,b}y_{j,b}$. \end{definition} If $y$ is the band data of roots $r_1,\dots,r_k$, then $x^{\xi(y)}=\prod_jr_j$, so the radius is the logarithm of the product of the roots in units of $\log x$. When the square of the amplitude is expanded, two root tuples of radii $\xi$ and $\xi'$ produce moduli at most $Wx^{\xi+\xi'}$; so the radius determines which distribution estimates are needed (Section~\ref{sec:coverage}). \begin{definition}[Profiles] A \emph{profile} is a bounded measurable function $\Phi:(\mathbb R^{217})^{39}\to\mathbb R$ that is continuous $\nu^{39}$-almost everywhere. Site $i$ of $\Phi$ corresponds to the shift $h_i$. Sites $0$ and $38$ are the \emph{endpoint sites} and sites $1,\dots,37$ the \emph{interior sites}. \end{definition} A profile plays the role of the smooth function of the Maynard--Tao sieve: the dual variables of the sieve weight are its values at the band vectors of the roots (Section~\ref{sec:amplitude}). The conditions on $\Phi$ are those under which the imported limit theorems, items I2 and I3, apply. \subsection{The amplitude}\label{sec:amplitude} The amplitude turns a profile into a signed sieve sum. The weight $\omega_x$ of Section~\ref{sec:tuple} is its square, restricted to the class $b_0\bmod W$ and normalized. Let $\Phi$ be a profile. For squarefree $r_0,\dots,r_{38}$ whose product is squarefree, coprime to $W$ and composed of primes at most $x^{0.1668}$, put $y_{\mathbf r}=\Lambda_R^{-39}\,\Phi(\beta(r_0),\dots,\beta(r_{38}))$, and put $y_{\mathbf r}=0$ for all other $\mathbf r$. The \emph{amplitude} is the Maynard--Tao sieve weight with these dual variables \cite{maynard2015,polymath8b}: \[ A_\Phi(x,n)=\sum_{\substack{d_0,\dots,d_{38}\\ d_i\mid n+h_i}}\lambda_{\mathbf d},\qquad \lambda_{\mathbf d}=\Big(\prod_{i}\mu(d_i)d_i\Big)\sum_{\mathbf r:\ d_i\mid r_i} \frac{y_{\mathbf r}}{\prod_i\phi(r_i)} . \] Here $\mu$ is the M\"obius function. This is the sampled amplitude of \cite[(2.9)--(2.12)]{sharifi182} (item I2), with $B_R=\Lambda_R$ and $k=39$. For a profile $\Psi$ on $(\mathbb R^{217})^{38}$ and a site $i$, we write $A^{(i)}_\Psi(x,n)$ for the amplitude built in the same way from the $38$ shifts $h_j$, $j\ne i$. It is used in Section~\ref{sec:ledger}, where on a prime hit at $n+h_i$ only the divisor $d_i=1$ contributes and the site $i$ is summed out (Section~\ref{sec:gram}). \emph{Units.} The amplitude is signed. Only its square enters the weight. The normalizing units are \begin{equation}\label{eq:units} \mathfrak C_x=\frac{x}{W \Lambda_R^{39}},\qquad \mathfrak P_x=\frac{x}{\phi(W)\,\log x\,\Lambda_R^{38}},\qquad \frac{\mathfrak P_x}{\mathfrak C_x}=\rho . \end{equation} Here $\mathfrak C_x$ is the unit of the ordinary mass and $\mathfrak P_x$ the unit of a single-prime count. The identity for their ratio follows from $\Lambda_R=\rho\Lambda_x$. The ratio $\rho$ is applied exactly once, when the single-prime counts are compared with the ordinary mass (Section~\ref{sec:deduction}). \subsection{The spline profile \texorpdfstring{$F$}{F}}\label{sec:spline} As in the fixed-profile argument of \cite{sharifi182}, we use one fixed profile $F$, the \emph{spline profile}, given by a stored table of rationals. So every numerical input is a finite statement about it. The profile is constructed using cubic B-splines, which are built from polynomial pieces of degree at most three joined at specified knots. It is signed: its values may be negative. The profile $F$ depends on the $39$ band vectors only through three kinds of statistic, defined in turn below: the grid indices of the sites, the class of the largest mark, and power sums of the site totals. \emph{Radial grid.} The site totals are discretized on a grid. Define \[ \vartheta=\frac{1399373467}{172031279104000},\qquad t_*=131072\,\vartheta . \] The grid cells have width $\vartheta$. The parameter $t_*$ is the scale of the endpoint shape $\varsigma_1$ in the formula for $F$ below; it satisfies $\rho\,t_*=0.2798746934$, the radius threshold of the radius bound at the end of this subsection. For site $i$ let $t_i$ be its total, $j_i=\lfloor t_i/\vartheta\rfloor$ its \emph{grid index} and $\bar t_i=(j_i+\tfrac12)\vartheta$ the midpoint of its grid cell. Put $J=\sum_ij_i$, the \emph{index sum}. Since $j_i\vartheta\le t_i<(j_i+1)\vartheta$, the radius satisfies $\rho\vartheta J\le\xi<\rho\vartheta(J+39)$. \emph{Cutoff classes.} The second statistic records the size of the largest mark. There are $37$ \emph{cutoff classes}, indexed by $c\in\{0,\dots,36\}$. Class $c$ has an \emph{upper grid index} $N_c$, increasing in $c$ from $N_0=45067$ to $N_{36}=78116$ (\Supp{supp:classes}). A configuration belongs to class $c$ if $c$ is least such that no mark at any of its sites exceeds $N_c\vartheta$. The class is read off from the band vectors by the tests ``the band mass strictly above $m_b$ is less than $m_b/2$''; such a test holds exactly when no mark exceeds $m_b$. The largest class allows marks below the root cap. The stored tables use $44$ fine classes: the $37$ cutoff classes defined above and seven additional classes. The additional classes are merged into cutoff classes as follows. \begin{center}\small \begin{tabular}{@{}ll@{}} \toprule Additional upper indices & Assigned cutoff class\\ \midrule $9764$, $19529$, $29293$, $39058$ & $0$\\ $48822$ & $10$\\ $58587$ & $17$\\ $68351$ & $36$\\ \bottomrule \end{tabular} \end{center} Each additional fine class uses the same data as its assigned cutoff class. These assignments respect the ordering of the upper indices: \[ 39058J_{\max}(c)$ and when some mark exceeds $N_{36}\vartheta$. There are $3\cdot3\cdot3\cdot11\cdot30=8{,}910$ dyadic rational coefficients $\mathfrak c_{ab l\mathfrak q k}$. In words, $F$ is the product of a factor $\psi(\bar t_i)$ at every site with a polynomial in the power sums of the interior sites, whose coefficients are cubic splines in the scaled index sum $(J+\tfrac{39}2)\vartheta$; they depend on the endpoint sites through the shapes $\varsigma_a$ and $\varsigma_b$, and on the class through the active components. \emph{The two normalizations.} The B-spline $\mathrm{Sp}_k$ is the cubic B-spline with knots $\varkappa_k,\dots,\varkappa_{k+4}$, given by the Cox--de~Boor recursion (a repeated knot contributes zero); a cubic B-spline needs five consecutive knots, so $34$ knots carry $34-4=30$ of them, and $F$ uses the variable $(J+\tfrac{39}2)\vartheta$ only on $[\varkappa_3,\varkappa_{33})$ and vanishes outside it. The factor $39^{\Sigma\mathfrak q-|\mathfrak q|}=\prod_{r\in\mathfrak q}39^{r-1}$ rescales each power sum to $39^{r-1}\mathsf P_r$: if the $39$ site totals were all equal to $T/39$, this would be $\tfrac{37}{39}T^r$. So each of the eleven products has the size of $T^{\Sigma\mathfrak q}$, and the coefficients of different multisets are of comparable size. The factor is a choice of normalization of the coefficients: dropping it and multiplying each coefficient by $39^{\Sigma\mathfrak q-|\mathfrak q|}$ gives the same function. Both normalizations are those of the formal definition (\Supp{sec:concordance}). Two features of the formula matter later. The profile $F$ depends on the interior sites only through symmetric power sums, so it is symmetric in the interior sites. It distinguishes the two endpoint sites. \emph{The radius bound.} The ordinary Selberg square estimate, item I3 of Appendix~\ref{app:imported}, and Proposition~\ref{prop:endpoint} apply to profiles whose radius is at most $0.2798746934=1399373467/5000000000$ on their support; this is the radius threshold in their formal statements. On the support of $F$ we have $J\le130964$, so \[ \xi\le\rho\,(130964+39)\,\vartheta<0.2798746934<\tfrac12 . \] So $F$, and every profile supported where $F$ is, satisfies this condition. \subsection{Erasures and labels}\label{sec:erasures} When $n+h_i$ is prime, only the divisor $d_i=1$ contributes at site $i$, and in the limit the root at that site is integrated out against $\nu$ (Section~\ref{sec:gram}). So the single-prime counts and the endpoint count are expressed through integrals of a profile over one or two of its sites. We call these integrals erasures. \begin{definition}[Erasures] For a profile $\Phi$, a site $i$ and $y\in(\mathbb R^{217})^{38}$, write $y\oplus_iz$ for the configuration with $z$ inserted at site $i$. The \emph{single erasure} at site $i$ is $\mathcal E_i\Phi(y)=\int\Phi(y\oplus_iz)\,d\nu(z)$. We call $y$ the \emph{retained configuration} and $z$ the \emph{insertion}. For $r\in(\mathbb R^{217})^{37}$ the \emph{endpoint erasure} is $\mathcal E_{0,38}\Phi(r)=\iint\Phi(a,r,b)\,d\nu(a)\,d\nu(b)$, with the endpoint sites in the first and last slots. \end{definition} \emph{Labels.} The lower bound for primes at $n+h_i$ in Section~\ref{sec:ledger} splits the erasure $\mathcal E_i\Phi$ into $521$ pieces according to a label of the retained configuration, and assigns to each piece its own coefficients. The labels are read from a stored table. Fix a site $i$. The retained configuration $y$ determines its own fine class $c'$ (Section~\ref{sec:spline}) and the \emph{retained index} $J_i=\sum_{k\ne i}j_k$, which equals $J-j_i$ for the full configuration. \begin{definition}[Layout and labels] The \emph{layout} is a stored table $\mathrm{Lay}$ which assigns to a fine class $c'$ and an integer $n$ either a number in $\{0,\dots,520\}$ or no value; it is piecewise constant in $n$, and its intervals of constancy are called \emph{runs}. Each $s\in\{0,\dots,520\}$ has a stored \emph{upper radius} $\xi_s$. The \emph{label} of $y$ is \[ \ell_i(y)=\mathrm{Lay}(c',J_i+1)\in\{0,\dots,520\} \] if $J_i\le J_{\max}(c')$, this value is defined, and $\rho(J_i+38)\vartheta\le\xi_s$ for $s=\mathrm{Lay}(c',J_i+1)$; otherwise we say that the label is \emph{undefined} and put $\ell_i(y)=170$ by convention. \end{definition} Thus the labels partition the retained configurations at site $i$ into $521$ sets. Since $\xi(y)<\rho\vartheta(J_i+38)$, we have $\xi(y)\le\xi_s$ whenever $\ell_i(y)=s$ is a defined label. For a label $s$ write $\Phi_{i,s}=\Phi\cdot\mathbf 1_{\ell_i=s}$, so that $\mathcal E_i\Phi$ is the sum of the $521$ pieces $\mathcal E_i\Phi_{i,s}$. \subsection{The restriction}\label{sec:restriction} The lower bound of Section~\ref{sec:ledger} needs a distribution estimate for the moduli that arise from the configurations in the support of the profile. We now define the restricted profile $G$ by deleting from $F$ the configurations on which some required distribution estimate is not available. The definition is a finite list of inequalities between sums of marks and stored thresholds; the supplement gives it in full (\Supp{supp:restriction}). \emph{The restriction tests.} The \emph{test at site $i$} reads only the retained configuration $y$ at site $i$. Its label and a \emph{radial bucket} of its total (a discretization of the total of $y$; \Supp{supp:restriction}) select, through stored tables, a \emph{key}, which is a list of thresholds attached to fixed mesh points, the \emph{edges}. The test passes if the following three conditions hold: \begin{itemize} \item the label of $y$ is defined and the key is defined; \item the retained total is at most a stored radial ceiling; the ceilings are such that a retained configuration that passes has radius at most $0.2801$; \item at each of the $172$ \emph{active} edges, the mesh points in $(0,\kappa)$ at which a test is made, the retained band mass strictly above the edge, summed over the $38$ retained sites, is at most the threshold of the key at that edge. \end{itemize} \begin{definition}[Restricted profile] Define \[ G=F\cdot\mathbf 1\{\text{all $39$ tests pass}\},\qquad D=F-G . \] We call $G$ the \emph{restricted profile} and $D$ the \emph{deleted part}. \end{definition} All thresholds are positive. Every test compares a finite sum of marks with a positive level. If $G(y\oplus_iz)\ne0$, the test at site $i$ passes, so the label of $y$ at site $i$ is defined. \emph{Purpose of the restriction.} If a configuration passes all tests, then for every pair of label groups (the collections of labels of Section~\ref{sec:certificate-data}) paired by a nonzero entry of the dual certificate, every compatible pair of divisors (Section~\ref{sec:gram}) has least common multiple in a modulus band on which the relevant distribution estimate holds (Section~\ref{sec:coverage}). We remove failing configurations from the whole profile rather than from individual erasures: on a prime hit at $n+h_i$ only $d_i=1$ contributes, so the same amplitude $A_G(x,n)$ serves all $39$ single-prime counts as well as the mass and endpoint counts. The imported limit theorems apply to profiles. The following lemma shows that all the functions built so far are profiles in this sense, for the appropriate number of sites. \begin{lemma}[Regularity]\label{prop:regularity} The functions $F$, $G$ and $D$, their label restrictions $\Phi_{i,s}$, and the erasures $\mathcal E_i\Phi_{i,s}$ and $\mathcal E_{0,38}\Phi$ for $\Phi\in\{F,G,D\}$ are bounded, measurable and continuous almost everywhere for the relevant product of copies of $\nu$. \end{lemma} The values of these functions are determined by finitely many comparisons of linear forms in the marks with positive constants, and each comparison has a $\nu$-null boundary; the proof is in \Supp{supp:regularity}. At prime scales no mark equals an internal mesh point (Section~\ref{sec:conventions}), so the sampled amplitude reads the same tests as the profile (Supplement, Remark~\sref{rem:prime-scales}). \subsection{Masses, deletion groups and energies}\label{sec:masses} \emph{Ordinary mass.} For a profile $\Phi$ the \emph{ordinary mass} is $\|\Phi\|^2=\int\Phi^2\,d\nu^{39}$. By Proposition~\ref{prop:ordinary}, $\|G\|^2$ bounds the total weight $\sum_{n\in I_x}\omega_x(n)$, up to an arbitrarily small error. Put $M=\|F\|^2$, the \emph{mass of $F$}. Since $G$ and $D$ have disjoint supports, \begin{equation}\label{eq:split} M=\|G\|^2+\|D\|^2 . \end{equation} Moreover $M>0$; this is formalised, and it also follows from (N1), which gives $100^{39}M\ge94.17312$ (Section~\ref{sec:loss}); the factor $100^{39}$ is the normalization of the grid computation of Section~\ref{sec:uncut}. Dividing by $M$ needs only $M>0$; Section~\ref{sec:loss} also uses the lower bound $100^{39}M\ge94.17312$. \emph{Deletion groups.} Section~\ref{sec:loss} bounds the cost of the restriction separately on pieces of the deleted part. \begin{definition}[Deletion groups] Each configuration in the support of $D$ is assigned to a group according to its highest failing edge over all $39$ sites: the \emph{low group} $\Omega_0$ (the $14$ lowest active edges), $22$ \emph{middle groups} $\Omega_1,\dots,\Omega_{22}$ and the \emph{high group} $\Omega_{23}$, whose configurations have exactly two marks above the lowest high edge (\Supp{supp:restriction}). \end{definition} The sets $\Omega_g$ are disjoint and invariant under permutations of the sites, and \[ D=\sum_{g=0}^{23}D_g,\qquad D_g=\mathbf 1_{\Omega_g}F,\qquad \|D\|^2=\sum_g\|D_g\|^2 . \] \emph{Cell edges.} The weighted energies below contain the factor $(0.4999-\xi)^{-1}$, and the endpoint cost contains its square; these factors come from the upper-bound sieve (Sections~\ref{sec:model-short} and~\ref{sec:upper}). We evaluate it at an upper bound for the radius that depends only on the grid indices. For $y\in(\mathbb R^{217})^{38}$ let $\bar\xi(y)=\min\big(0.2801,\rho\vartheta(J_i+38)\big)$ be the upper edge of the grid cell of $y$; then $\bar\xi\ge\xi$, since every retained configuration with a nonzero insertion has $\xi\le0.2801$. For a configuration $r=(r_1,\dots,r_{37})$ of the $37$ interior sites, with grid indices $j_1,\dots,j_{37}$, put $\bar\xi_{37}(r)=\rho\vartheta\big(\sum_{k=1}^{37}j_k+37\big)$. Since each site total is less than $(j_k+1)\vartheta$, we have $\bar\xi_{37}\ge\xi$; unlike $\bar\xi$, it is not capped. On the support of $\mathcal E_{0,38}\Phi$ for $\Phi\in\{F,G,D\}$ the index sum is at most $130964$, so $\bar\xi_{37}\le\rho\vartheta\cdot131001<0.28$ there. \begin{definition}[Energies] For a profile $\Phi$, a site $i$ and a label $s$ put \[ E_{i,s}(\Phi)=\int(\mathcal E_i\Phi_{i,s})^2\,d\nu^{38},\qquad U_{i,s}(\Phi)=\int\frac{(\mathcal E_i\Phi_{i,s})^2}{0.4999-\bar\xi(y)}\,d\nu^{38}(y), \] the \emph{energy} and the \emph{weighted energy} of the label-$s$ erasure at site $i$. \end{definition} Section~\ref{sec:ledger} bounds the weighted number of primes at $n+h_i$ from below by a linear combination of these energies. \begin{definition}[Endpoint cost] The \emph{endpoint cost} of a profile is \[ \mathcal P(\Phi)=\int\frac{2\rho^2}{(0.4999-\bar\xi_{37}(r))^2}\,\big(\mathcal E_{0,38}\Phi(r)\big)^2\,d\nu^{37}(r), \] the integrand being $0$ where $\mathcal E_{0,38}\Phi(r)=0$. \end{definition} By Proposition~\ref{prop:endpoint}, $\mathcal P(G)$ bounds the weight of the $n$ with $n$ and $n+182$ both prime; Section~\ref{sec:model-short} explains the shape of the integrand. \subsection{The single-prime functional}\label{sec:functional} The lower bound of Section~\ref{sec:ledger} weights the two energies of each label by a fixed pair of integers. \begin{definition}[Prices and the single-prime functional] Each label $s\in\{0,\dots,520\}$ carries a pair of integers $(a_s,b_s)$ with $b_s\le0$, its \emph{price}. Put $L_0=10^{14}$. For a profile $\Phi$ and a site $i$ the \emph{single-prime functional} is \[ \mathcal I_i(\Phi)=\frac1{L_0}\sum_{s=0}^{520}\big(a_sE_{i,s}(\Phi)+b_sU_{i,s}(\Phi)\big). \] \end{definition} So $L_0$ is a common denominator, and the price of $s$ gives the coefficients $a_s/L_0$ and $b_s/L_0$ of the two energies of label $s$. The prices are part of the stored data; Section~\ref{sec:prices} explains the conditions that they satisfy. Four labels, $170$--$173$, carry the price $(L_0,0)$. The functional $\mathcal I_i(G)$ is the constant in the lower bound for the weighted number of primes at $n+h_i$, in units of $\mathfrak P_x$ (Proposition~\ref{prop:single}); in the units $\mathfrak C_x$ of the ordinary mass it becomes $\rho\,\mathcal I_i(G)$, by \eqref{eq:units}.