\section{Distribution estimates}\label{sec:distribution} This section states the estimates for arithmetic progressions that the proof of Proposition~\ref{prop:single} uses. When the square of the amplitude is summed against the primes at $n+h_i$, or against a minorant of them, the sum splits into sums over residue classes to moduli built from the sieve divisors. An asymptotic formula for it therefore needs equidistribution in these classes. The estimates concern fourteen arithmetic functions: the indicator of the primes and thirteen minorants of it. For each function we need equidistribution in residue classes to moduli in prescribed ranges. The section uses Hypotheses A1--A4 and the imported results I4--I12 of Appendix~\ref{app:imported}. Its conclusions are used in Sections~\ref{sec:gram} and~\ref{sec:coverage}, and nowhere else. The proofs are formalised; we give them in outline, and the supplement writes them out, with the parameters, the counts of parameter choices (Section~\ref{sec:coherent}) and the new combinatorial lemma (Supplement, \S\S\sref{sec:dist-details} and~\sref{sec:routes}). For them the formal proof is the proof of record. Table~\ref{tab:distribution} summarizes what is proved. The \emph{ordinary range} consists of the moduli $q\le x^{\theta}$ with $\theta<\tfrac12$. The \emph{dense bands} are ranges of larger moduli, restricted to moduli with many divisors in the sense of Section~\ref{sec:coherent}. That estimates beyond the exponent $\tfrac12$ are available for special residues goes back to \cite{bfi}, and that smooth moduli suffice for bounded gaps to \cite{motohashi-pintz,zhang2014}. \begin{table}[htbp]\small \begin{tabular}{@{}llp{5.2cm}ll@{}} \toprule Function & Moduli & Estimate & Uses & Section\\ \midrule all fourteen & ordinary range & Bombieri--Vinogradov & --- & \ref{sec:ordinary}\\ $f_{\mathrm P}$ & dense bands & theorems of \cite{openai186} (I9) & A1, A2 & \ref{sec:prime-dense}\\ $f_0$ & dense bands & theorem of \cite{sharifi182} (I8) & A1--A4 & \ref{sec:minorants}\\ $f_1,\dots,f_{12}$ & dense bands & assembled in Sections~\ref{sec:minorants}--\ref{sec:typeIII} & A1--A4 & \ref{sec:minorants}\\ \bottomrule \end{tabular} \caption{The distribution estimates. Hypothesis A4 is needed for only part of the dense bands of the minorants (Section~\ref{sec:typeIII}).}\label{tab:distribution} \end{table} \subsection{The fourteen functions}\label{sec:rows} A minorant $f\le\mathbf 1_{\mathbb P}$ can satisfy distribution estimates in ranges of moduli where none is known for the primes. The dual certificate of Section~\ref{sec:ledger} combines the following functions to bound the primes from below. For $00.1668$ of (Supplement, Table~\sref{tab:cutoffs}). We call $f_{\mathrm P}$ the \emph{prime function}, $f_0$ the \emph{sharp minorant} and $f_1,\dots,f_{12}$ the \emph{higher minorants}. These are minorants of $\mathbf 1_{\mathbb P}$ of the kind constructed by Harman's sieve \cite{harman}; $f_0$ is the sharp minorant of \cite[(4.1)]{sharifi182}, and the multiplicities $24$ and $2$ are the numbers of times the sieve identity of item I7 counts a product of five, respectively three, primes. Each function is bounded by $27$ in absolute value. Each minorant has a third parameter, its \emph{one-factor threshold} $\theta^{\mathrm{sm}}_k$, with $\theta^{\mathrm{sm}}_0=0.34941$: the exponent $\log N/\log x$ above which a smooth factor $n\mapsto\psi(n/N)$, with $\psi$ a smooth bump (\Supp{supp:dist-parameters}), is handled by a \emph{one-factor estimate}, an estimate for a convolution $\alpha*\psi$ with that single smooth factor (item I7). \emph{Support.} For $n\ge x$ in $\Pi_5(a)$ the inequality $0.1668+2a<1$ forces every prime factor above $x^{0.1668}$, and $a'_k>0.1668$. Hence, on the support of each of the fourteen functions, the detected integer $n+h_i$ has no prime factor up to the root cap, and its divisor $d_i$ equals $1$. \emph{Events and densities.} The dual certificate is balanced event by event (Section~\ref{sec:certificate-data}); the events are defined as follows. The fourteen functions are signed combinations of $26$ disjoint sets of integers, the \emph{events}: the primes (the \emph{prime event}, $e=\mathrm P$), the original five-prime event $\Pi_5(a_0)$, and, for each $k$, the triples and the further five-prime products that first qualify at level $k$. We write $\chi_e$ for the indicator of the event $e$ times its multiplicity ($1$, $2$ or $24$), and $f_k=\sum_e\sigma_{ke}\chi_e$ with signs $\sigma_{ke}\in\{1,0,-1\}$; this identity holds at every integer. Each function has a limiting density on $[x,2x]$ in units of $x/\log x$, and Section~\ref{sec:ledger} uses thirteen rational enclosures $[\mathfrak d_k^-,\mathfrak d_k^+]$ of the densities $\mathfrak d_k$ of the minorants; they are proved in Lean. \subsection{Coherent estimates and dense divisibility}\label{sec:coherent} The definitions are those of \cite{polymath8a}. The first is the form of equidistribution that the sieve needs; the second describes the moduli to which it is needed beyond the ordinary range. \begin{definition}[Coherent estimate] For an arithmetic function $f$ supported on $[x,2x]$ and $(a,q)=1$ put \[ \Delta(f;q,a)=\sum_{n\equiv a\,(q)}f(n)-\frac1{\phi(q)}\sum_{(n,q)=1}f(n). \] A \emph{coherent estimate} on a family $\mathcal Q$ of squarefree moduli is a bound $\sum_{q\in\mathcal Q}|\Delta(f;q,a_q)|\ll_A x(\log x)^{-A}$ for every $A$, uniform over residues $a_q$ that are reductions of a single residue class. \end{definition} \begin{definition}[Dense divisibility] Every squarefree $q$ is $0$-tuply $y$-densely divisible. For $j\ge1$, $q$ is \emph{$j$-tuply $y$-densely divisible} if for all $i,k\ge0$ with $i+k=j-1$ and all $1\le K\le yq$ there is a factorization $q=q_1q_2$ with $K/y\le q_1\le K$, $q_1$ $i$-tuply and $q_2$ $k$-tuply $y$-densely divisible. \end{definition} Dense divisibility relaxes smoothness of the modulus. It provides factorizations of the modulus at every scale, which the bilinear and Type~III arguments use. \begin{definition}[Carrier, schedule and parameter choice] The \emph{carrier} is the product of the primes $p\le x^{0.1668}$ with $p\nmid W$. The \emph{schedule} of one of the fourteen functions is a finite list of modulus bands $[x^{\theta_0},x^{\theta_1}]$, each with an order $j\in\{1,2,3\}$ and parameters $(\varpi,\delta)$, on which the function is to satisfy a coherent estimate for $j$-tuply $x^{\delta}$-densely divisible moduli; we call $\delta$ the \emph{width}. The stored schedule gives, at each band endpoint, a width for each order, and the width $0$ means that the order is not used there. A \emph{parameter choice} is one such band, order and positive width at one endpoint of one function. \end{definition} All moduli that occur in the sieve are products of $W$ and a divisor of the carrier. Every parameter inequality is checked in exact rational arithmetic, with a safety margin, in Lean or by a program of the release \cite{release} (\Supp{supp:dist-parameters}). \subsection{The ordinary range}\label{sec:ordinary} For every fixed $\theta<\tfrac12$, all fourteen functions satisfy the Bombieri--Vinogradov estimate on all moduli $q\le x^{\theta}$, with an arbitrary primitive residue at each modulus: for $f_{\mathrm P}$ by \cite{bombieri-vinogradov}, and for a minorant by covering the support of its exceptional terms with boxes of products of primes and applying item I4. \subsection{The prime function on dense moduli}\label{sec:prime-dense} On its dense bands $f_{\mathrm P}$ uses the distribution theorems of \cite{openai186} for orders one, two and three (item I9), which extend \cite{zhang2014,polymath8a,stadlmann2023,stadlmann}. They assume A1 and A2, and not A3 or A4. All $2{,}656$ parameter choices of $f_{\mathrm P}$ satisfy their conditions. \subsection{The thirteen minorants on dense moduli}\label{sec:minorants} A sieve identity writes a minorant, on integers without small prime factors, as a signed sum of six \emph{sifted functions} (item I7). Each counts the integers $p_1\cdots p_jm$ with at most three primes $p_1,\dots,p_j$ in prescribed ranges and a cofactor $m$ free of prime factors below $x^{1-2a_k}$; these are the functions to which Harman's method applies. Integers whose prime factorization is \emph{balanced}, that is, some product of their prime factors lies roughly between $x^{a_k}$ and $x^{1-a_k}$ (the exact margins are in \Supp{sec:dist-details}), are treated directly as bilinear sums. A higher minorant has one further term, a convolution of three prime indicators. The Heath-Brown identity \cite{heath-brown} decomposes it into pieces with a long smooth factor, a balanced factorization, or three smooth factors. The last case is the new one: a combinatorial lemma (Supplement, Lemma~\sref{lem:three-smooth}) shows that the three smooth factors then have lengths $N_i\gg x^{1/5}$ and $N_1N_2N_3\gg x^{3/4+3\sigma_*/2}$, which are the length hypotheses of the \emph{sampled} Type~III theorems I11 and I12. Here $\sigma_*=\tfrac23(\tfrac14-\upsilon)$, where $x^{\upsilon}$ is the explicit bound that the lemma gives for the product of the remaining factors; the parameter conditions of these theorems are bounds on $\sigma_*$ (\Supp{sec:routes}). The sampled theorems are the fine-band forms of the Type~III estimate: each gives a coherent estimate on the moduli of one band of ratio $1+O(x^{-\varepsilon})$ and asks of the three smooth factors only lower bounds on their lengths of this kind, not the two-sided length conditions of \cite{polymath8a}. For each higher minorant these estimates combine into a coherent estimate on every scheduled band, for any subset of the scheduled moduli and any residue class coprime to the carrier. For the sharp minorant $f_0$ the dense distribution theorem of \cite{sharifi182} (item I8) applies to all $2{,}942$ of its parameter choices. \subsection{Bilinear and incidence estimates}\label{sec:bilinear} The thirteen minorants have $21{,}763$ parameter choices on their dense bands: $2{,}942$ for $f_0$ and $18{,}821$ for $f_1,\dots,f_{12}$. Each is covered by an imported bilinear estimate, either the bilinear range of \cite[Prop.~2.16]{openai186} (item I10) or the incidence Type~II estimate (item I6), which assumes A3, joined to the bilinear range of \cite{polymath8a}, and by an imported Type~III estimate; what is checked is that their parameter conditions hold at each choice (\Supp{sec:routes}). \subsection{Type III estimates}\label{sec:typeIII} The sampled Type~III theorem of \cite{openai186} (item I11) uses only A1 and A2 and covers $16{,}243$ of the $21{,}763$ choices. The sampled theorem of \cite{sharifi182-lean} (item I12) takes A4 as its local input and covers all of them, in particular the remaining $5{,}520$. In the formal proof A4 is a premise of the dense Type~III theorems for all of their parameter choices; separating the $16{,}243$ choices that do not need it would not remove A4 from the final statement.