\section{The dual certificate and the single-prime lower bound}\label{sec:ledger} This section proves Proposition~\ref{prop:single}. It uses the distribution estimates of Section~\ref{sec:distribution} and the definitions of Section~\ref{sec:weight}. We give a schematic account of the dual certificate; the sizes of the stored data and the three bounds behind the coefficients $\alpha_s,\beta_s$ are in \Supp{supp:certificate}, the ingredients of the upper bounds of Section~\ref{sec:upper} are proved there (\Supp{sec:proofs}), and the main-term computation of Section~\ref{sec:gram} is standard and is given in outline; for it the formal proof is the proof of record. \emph{Idea of the proof.} On a prime hit at $n+h_i$ the amplitude $A_G(x,n)$ is a sum of $521$ pieces, one for each label. We need a lower bound for the sum of its square over primes $n+h_i$. A direct asymptotic is not available, because the primes are not known to be equidistributed to all the moduli that occur. Instead we use a fixed table of integer matrices, the \emph{dual certificate}, which satisfies an exact linear identity, \eqref{eq:balance}. Paired with the Gram matrices of the label amplitudes, the identity expresses the quadratic form over the primes through three kinds of terms: \begin{itemize} \item quadratic forms against the fourteen functions of Section~\ref{sec:rows}, which have asymptotic formulas by Section~\ref{sec:distribution} (Sections~\ref{sec:gram} and~\ref{sec:coverage}); \item quadratic forms against nonnegative functions, for which an upper bound suffices (Section~\ref{sec:upper}); \item a remainder, bounded by a diagonal-dominance argument (Section~\ref{sec:grouped}). \end{itemize} The result is a lower bound that is a linear combination of the energies $E_{i,s}$ and $U_{i,s}$; the prices $(a_s,b_s)$ are chosen below its coefficients (Section~\ref{sec:prices}). In the language of linear programming, the certificate is a dual feasible point for the problem of bounding the prime quadratic form from below by the available asymptotics and upper bounds. \subsection{The dual certificate}\label{sec:certificate-data} Recall that $L_0=10^{14}$ (Section~\ref{sec:functional}). The certificate works with groups of labels and with nonnegative combinations of the events of Section~\ref{sec:rows}. \begin{definition}[Label groups and resources] The $517$ labels other than $170$--$173$ are collected into \emph{label groups} $\mathsf g$, each with a fixed \emph{reference mass} $\mu_{\mathsf g}>0$; the four labels $170$--$173$ are \emph{ungrouped}. Put $\hat\mu_{\mathsf g}=\lfloor L_0\sqrt{\mu_{\mathsf g}}\rfloor$ and $\hat\mu=(\hat\mu_{\mathsf g})_{\mathsf g}$. A \emph{resource} is one of finitely many fixed nonnegative combinations $\chi_u=\sum_e\varkappa_{ue}\chi_e$ of the event functions, with $\varkappa_{ue}\in\tfrac1{24}\mathbb Z_{\ge0}$. The \emph{prime resource} is $\chi_{\mathrm P}$. \end{definition} The denominator $24$ is the least common multiple of the multiplicities of the events. The label groups index the matrices of the certificate. The resources are the nonnegative functions for which the certificate uses upper bounds (Section~\ref{sec:upper}). \begin{definition}[Dual certificate] The \emph{dual certificate} consists of integer data: a symmetric matrix $A_k$ on the label groups for each of the fourteen functions, with the density interval of the function; for each resource $u$ an integer matrix $Z_u$ with rows indexed by the label groups; and for each event $e$ a symmetric integer \emph{residual matrix} $\Res_e$ and two integer matrices $\Res_e^{\pm}$. Put $O_{\mathrm P}=\hat\mu\hat\mu^{\mathsf T}/L_0^2$ for the prime event, $O_e=0$ for the other events, and $\widehat Z_u=Z_uZ_u^{\mathsf T}/L_0^2$. For every event $e$ the certificate satisfies the exact \emph{balance identity} \begin{equation}\label{eq:balance} \frac{\Res_e}{24L_0^2}=O_e-\sum_k \sigma_{ke}\frac{A_k}{L_0}+\sum_u \varkappa_{ue}\widehat Z_u . \end{equation} \end{definition} The roles of the terms are as follows. After pairing with Gram matrices (Section~\ref{sec:grouped}), $O_{\mathrm P}$ gives the quadratic form over the primes that is to be bounded from below, the $A_k$ give main terms, the $\widehat Z_u$ give terms bounded from above, and the residuals give the remainder. The residual $\Res_e$ is defined by \eqref{eq:balance} from the other terms; it has integer entries because $24\varkappa_{ue}\in\mathbb Z$, so the balance and the symmetry of $\Res_e$ hold by construction. The matrices $\Res_e^{\pm}$ are integer approximations to square-root factors of the positive and negative parts of $32^2\Res_e$. No property of them is assumed: the argument uses only the integer \emph{remainder} \begin{equation}\label{eq:remainder} \Rem_e=32^2\Res_e+\Res_e^{-}(\Res_e^{-})^{\mathsf T}-\Res_e^{+}(\Res_e^{+})^{\mathsf T}. \end{equation} \subsection{From distribution to Gram matrices}\label{sec:gram} This subsection evaluates the main terms, the quadratic forms against one of the fourteen functions; it is where the distribution estimates enter. Fix a shift $h_i$, one of the fourteen functions $f$ with density $\mathfrak d_f$, and two bounded functions $\Phi,\Psi$ on $(\mathbb R^{217})^{39}$ whose erasures $\mathcal E_i\Phi$, $\mathcal E_i\Psi$ are measurable and almost everywhere continuous. Since $d_i=1$ on the support of $f(n+h_i)$, only divisors on the $38$ retained sites contribute to \[ \mathrm{Mo}_x(f;\Phi,\Psi)=\frac1{\mathfrak P_x}\sum_{\substack{n\in I_x\\ n\equiv b_0\,(W)}}f(n+h_i)\, A^{(i)}_{\mathcal E_i\Phi}(x,n)\,A^{(i)}_{\mathcal E_i\Psi}(x,n). \] A pair of divisor tuples $(d_j)_{j\ne i}$, $(d'_j)_{j\ne i}$ is \emph{compatible} if each $d_j$ divides the $j$-th coordinate of a root tuple on which $\Phi$ does not vanish, likewise $d'_j$ for $\Psi$, and $(d_j,d'_k)=1$ for $j\ne k$. Its modulus is $W\operatorname{lcm}(\prod_jd_j,\prod_jd'_j)$. Suppose that, for $x$ in a set belonging to $\mathcal L$, the modulus of every compatible pair lies in a family on which $f$ has a coherent estimate. Then \begin{equation}\label{eq:gram-limit} \lim_{x\in\mathcal L}\mathrm{Mo}_x(f;\Phi,\Psi)=\mathfrak d_f\int\mathcal E_i\Phi\cdot\mathcal E_i\Psi\,d\nu^{38}. \end{equation} This is the standard main-term computation of the sieve, done for signed profiles: expand the two amplitudes, replace each inner sum over a residue class by its expected value using the coherent estimate, and evaluate the principal term prime by prime; the diagonal approximation is the harmonic inner product $\sum_{\mathbf r}y_{\mathbf r}y'_{\mathbf r}/\prod_j\phi(r_j)$ of the two arrays $y,y'$ of dual variables, which converges to the integral by item I2 (\Supp{supp:main-term}). Distinct labels have disjoint supports, so for $\Phi=G_{i,s}$ and $\Psi=G_{i,s'}$ with $s\ne s'$ the limit is zero. \subsection{Coverage of the modulus bands}\label{sec:coverage} The statement of Section~\ref{sec:gram} requires a coherent estimate on the modulus of every compatible pair; this is the reason for the restriction. A retained configuration that passes its test (Section~\ref{sec:restriction}) satisfies three bounds read from its key: its total is at most the radial ceiling, which bounds its radius; the class of its largest mark bounds that mark; and the thresholds of the key are bounded in terms of these two numbers and one further stored number, the \emph{threshold level} of the key. The radial ceilings bound the size of the modulus of a compatible pair, and the largest marks and the thresholds bound how its prime factors are distributed, which decides its dense divisibility. For each nonzero entry of each matrix $A_k$ and each pair of keys of retained configurations that pass the restriction tests, a finite search finds a scheduled parameter choice whose band and dense-divisibility parameters dominate the two radial ceilings, the two bounds for the largest mark and the two threshold levels. The search covers all $1{,}634{,}243$ nonzero ordered entries, and the result is formalised. For every pair involving one of the four ungrouped labels the radii of the two configurations have sum at most $0.4998702<\tfrac12$, so the pair is covered by the ordinary range. \subsection{Upper bounds for the exceptional events}\label{sec:upper} In the paired identity \eqref{eq:paired} below, the resource terms enter with a negative sign, and the residual terms are bounded with the same tool. Both need upper bounds for quadratic forms against the event and resource functions, which are nonnegative. These bounds come from an upper-bound sieve. Let $V_s(x,n)=A^{(i)}_{\mathcal E_iG_{i,s}}(x,n)$ be the amplitude of the erasure restricted to label $s$, and for a label group put $v_{\mathsf g}=\mu_{\mathsf g}^{-1/2}\sum_{s\in\mathsf g}V_s$. Let $\chi$ be an event function $\chi_e$ or a resource function $\chi_u$. Each $\chi$ other than the prime event and the prime resource has a stored table of positive rationals $K_\chi(s)$, $0\le s\le520$, its \emph{cost}, which depends on $s$ only through $\xi_s$. Then, for every real vector $\mathbf v$ indexed by the label groups, \begin{multline}\label{eq:signed-column} \limsup_{x\in\mathcal L}\frac1{\mathfrak P_x}\sum_{\substack{n\in I_x\\ n\equiv b_0\,(W)}}\chi(n+h_i)\, \Big(\sum_{\mathsf g}\mathbf v_{\mathsf g}v_{\mathsf g}(x,n)\Big)^2\\ \le\sum_{\mathsf g}\frac{\mathbf v_{\mathsf g}^2}{\mu_{\mathsf g}}\sum_{s\in\mathsf g} \begin{cases}U_{i,s},& \chi\ \text{prime event or prime resource},\\ K_\chi(s)\,E_{i,s},&\text{otherwise},\end{cases} \end{multline} with $E_{i,s}=E_{i,s}(G)$ and $U_{i,s}=U_{i,s}(G)$. One dominates $\chi$ by a sum over divisors $m\mid n+h_i$ (a \emph{cover}), evaluates the resulting sums by a divisor-restricted moment estimate with an auxiliary sieve weight that equals $1$ on the support of $\chi$, and, for the prime event, splits the retained configurations into radial slices of width $1/20000$, which produces the weight $1/(0.4999-\xi)$ and hence $U_{i,s}$. Distinct radial cells and labels have disjoint retained supports, so the bound holds for signed $\mathbf v$. The proof is given in full in \Supp{sec:proofs}; Lean proves that the stored costs dominate the resulting constants. \subsection{The lower bound for the grouped labels}\label{sec:grouped} We now pair the balance identity with Gram matrices of the group amplitudes and bound each term. For a function $\chi$ on the integers let $\Gr_\chi$ be the symmetric matrix on the label groups with entries \[ \Gr_\chi[\mathsf g,\mathsf h]=\frac1{\mathfrak P_x}\sum_{\substack{n\in I_x\\ n\equiv b_0\,(W)}}\chi(n+h_i)\, v_{\mathsf g}(x,n)\,v_{\mathsf h}(x,n). \] Write $\Gr_e=\Gr_{\chi_e}$, $\Gr_u=\sum_e\varkappa_{ue}\Gr_e$, $\Gr^{(k)}=\sum_e\sigma_{ke}\Gr_e$ and $[A,H]=\sum_{\mathsf g,\mathsf h}A_{\mathsf g\mathsf h}H_{\mathsf g\mathsf h}$. If $\chi\ge0$ then $\Gr_\chi$ is positive semidefinite. Pairing \eqref{eq:balance} with $\Gr_e$ and summing over the events gives \begin{equation}\label{eq:paired} [O_{\mathrm P},\Gr_{\mathrm P}]=\sum_k\frac{[A_k,\Gr^{(k)}]}{L_0}-\sum_u[\widehat Z_u,\Gr_u] +\sum_e\frac{[\Res_e,\Gr_e]}{24L_0^2}. \end{equation} The left side is \[ \frac1{\mathfrak P_x}\sum_{\substack{n\in I_x\\ n\equiv b_0\,(W)}}\mathbf 1_{\mathbb P}(n+h_i) \Big(\sum_{\mathsf g}\frac{\hat\mu_{\mathsf g}}{L_0}v_{\mathsf g}(x,n)\Big)^2 . \] We bound the three sums on the right from below as $x\to\infty$ in $\mathcal L$: \begin{itemize} \item the main terms by \eqref{eq:gram-limit} and Section~\ref{sec:coverage}, taking for each density the end of its interval that gives the smaller term, according to the sign of the diagonal entries of $A_k$; \item the resource terms by \eqref{eq:signed-column} applied to the columns of $Z_u$; \item the residual terms by writing $32^2\Res_e$ through \eqref{eq:remainder}, making $\Rem_e$ diagonally dominant by adding a nonnegative diagonal, and applying \eqref{eq:signed-column} to the columns of $\Res_e^-$ and to the coordinate vectors. \end{itemize} A last term accounts for the rounding of $L_0\sqrt{\mu_{\mathsf g}}$ to $\hat\mu_{\mathsf g}$. Collecting the coefficients gives \begin{equation}\label{eq:grouped-lower} \liminf_{x\in\mathcal L}\frac1{\mathfrak P_x}\sum_{\substack{n\in I_x\\ n\equiv b_0\,(W)}}\mathbf 1_{\mathbb P}(n+h_i) \Big(\sum_{s\ \mathrm{grouped}}V_s(x,n)\Big)^2\ \ge\ \sum_{s\ \mathrm{grouped}}\big(\alpha_sE_{i,s}+\beta_sU_{i,s}\big) \end{equation} with explicit rational coefficients $\alpha_s$ and $\beta_s$ (\Supp{supp:three-bounds}). It remains to compare these coefficients with the prices, and to add the four ungrouped labels. \subsection{Comparison with the prices}\label{sec:prices} The prices $(a_s,b_s)$ are integers chosen so that $a_sE+b_sU\le L_0(\alpha_sE+\beta_sU)$. On the support of $\mathcal E_iG_{i,s}$ we have $0\le\bar\xi\le\xi_s$, so $E_{i,s}/0.4999\le U_{i,s}\le E_{i,s}/(0.4999-\xi_s)$. The difference is linear in $(E,U)$, so it is nonnegative for every pair $(E,U)$ satisfying these bounds as soon as \[ \frac{a_s}{L_0}+\frac{b_s/L_0}{0.4999-\xi}\ \le\ \alpha_s+\frac{\beta_s}{0.4999-\xi}\qquad\text{at }\xi=0\text{ and at }\xi=\xi_s . \] These $1{,}034$ comparisons for the $517$ grouped labels hold and are proved in Lean; the smallest surplus is about $6.49\times10^{-14}$, at label $175$ and $\xi=0$. The four ungrouped labels carry the price $(L_0,0)$. \subsection{Proof of Proposition~\ref{prop:single}}\label{sec:single-proof} \emph{Step 1: decomposition.} On a prime hit only $d_i=1$ contributes (Section~\ref{sec:rows}), so $A_G(x,n)=\sum_{s=0}^{520}V_s(x,n)$ whenever $n+h_i$ is prime. The functions $G_{i,s}$ and their erasures are regular by Lemma~\ref{prop:regularity}. \emph{Step 2: grouped labels.} By \eqref{eq:grouped-lower} and Section~\ref{sec:prices}, the square of the sum over the $517$ grouped labels has normalized sum over the primes at least $L_0^{-1}\sum_{s\ \mathrm{grouped}}(a_sE_{i,s}+b_sU_{i,s})-\varepsilon$ for large $x\in\mathcal L$. \emph{Step 3: ungrouped labels.} Expand the square of the full sum. The terms involving one of the four ungrouped labels are evaluated by \eqref{eq:gram-limit} with $f=f_{\mathrm P}$ in the ordinary range (Section~\ref{sec:coverage}). Here the convention of Section~\ref{sec:erasures} does not intervene: if $G(y\oplus_iz)\ne0$, the test at site $i$ passes, so the label of $y$ is defined (Section~\ref{sec:restriction}). Undefined labels therefore do not occur on the support of $\mathcal E_iG$, and the piece $\mathcal E_iG_{i,170}$ consists only of retained configurations whose defined label is $170$; the formal proof shows the same, since the label it attaches to a retained configuration of a nonzero value of $G$ is the stored layout value (\Supp{sec:concordance}). Of the $521^2-517^2=4{,}152$ ordered pairs of labels concerned, the $4{,}148$ off-diagonal limits vanish because the supports are disjoint, and the four diagonal terms contribute their energies with coefficient one, which is the price $(L_0,0)$. \emph{Step 4: cell edges.} Since $b_s\le0$ and $\bar\xi\ge\xi$, using $\bar\xi$ in $U_{i,s}$ only lowers the bound. Steps 2 and 3 together give the lower bound $\mathcal I_i(G)-\varepsilon$. \qed