\section{The key propositions and the proof of Theorem~\ref{thm:main}}\label{sec:key} This section states the four propositions on which the proof rests and deduces Theorem~\ref{thm:main} from them and from Proposition~\ref{prop:detection}. The propositions are proved in Sections~\ref{sec:ledger}--\ref{sec:numerical}. Throughout, the weight is $\omega_x(n)=\mathbf 1_{n\equiv b_0\,(W)}\,\mathfrak C_x^{-1}A_G(x,n)^2$, with $G$ the restricted profile of Section~\ref{sec:restriction} and $\mathfrak C_x$, $\mathfrak P_x$ the units of \eqref{eq:units}. Proposition~\ref{prop:detection} needs three kinds of bound for this weight: a lower bound for the weighted number of primes at each shift, an upper bound for the total weight $\sum_{n\in I_x}\omega_x(n)$, and an upper bound for the weight of the translates in which both $n$ and $n+182$ are prime. Section~\ref{sec:three} gives each of them as an explicit integral of $G$ (Sections~\ref{sec:masses} and~\ref{sec:functional}). Section~\ref{sec:key-numerical} gives the inequality between these integrals that the criterion requires. \subsection{The three sieve estimates}\label{sec:three} \begin{proposition}[Single-prime lower bound]\label{prop:single} Assume A1--A4. For every shift $h_i$ and every $\varepsilon>0$, for all sufficiently large $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)\,A_G(x,n)^2 \ \ge\ \mathcal I_i(G)-\varepsilon . \] \end{proposition} \begin{proposition}[Ordinary mass]\label{prop:ordinary} For every $\varepsilon>0$ there is $x_0(\varepsilon)$ such that, for all $x\ge x_0(\varepsilon)$ and every integer $b$, \[ \frac1{\mathfrak C_x}\sum_{\substack{n\in I_x\\ n\equiv b\,(W)}}A_G(x,n)^2\le\|G\|^2+\varepsilon . \] \end{proposition} \begin{proposition}[Endpoint pair]\label{prop:endpoint} Let $\Phi$ be a profile with $\xi\le0.2798746934$ on its support. For every $\varepsilon>0$ there is $x_0(\Phi,\varepsilon)$ such that, for all real $x\ge x_0(\Phi,\varepsilon)$ and every integer $b$, \[ \frac1{\mathfrak C_x}\sum_{\substack{n\in I_x\\ n\equiv b\,(W)}}\mathbf 1_{\mathbb P}(n)\, \mathbf 1_{\mathbb P}(n+182)\,A_\Phi(x,n)^2\le\mathcal P(\Phi)+\varepsilon . \] In particular this holds for $\Phi=G$ and $b=b_0$. \end{proposition} The bound of Proposition~\ref{prop:endpoint} holds for all large $x$, not only along the filter $\mathcal L$, and uniformly in the residue $b$; the formal statement has the same generality (\Supp{sec:concordance}). Proposition~\ref{prop:single} is the main work of the paper and the only place where A1--A4 are used; it is proved in Section~\ref{sec:ledger} from the distribution estimates of Section~\ref{sec:distribution}. Proposition~\ref{prop:ordinary} follows from the ordinary Selberg square estimate of \cite{sharifi182} and needs no distribution estimate. Proposition~\ref{prop:endpoint} is an upper-bound sieve estimate. Both are proved in Section~\ref{sec:mass-endpoint}. \subsection{The numerical inequality}\label{sec:key-numerical} The criterion requires the sum of the lower bounds for the primes to exceed the sum of the two upper bounds. In the units $\mathfrak C_x$ of the ordinary mass, the lower bound at the shift $h_i$ is $\rho\,\mathcal I_i(G)$, by \eqref{eq:units}. The following proposition gives the required inequality with a positive excess. The excess is stated as a multiple of the mass $M=\|F\|^2$ of the spline profile, which is positive (Section~\ref{sec:masses}). \begin{proposition}[Numerical inequality]\label{prop:numerical} Assume \textup{(N1)--(N14)}. Then \[ \rho\sum_{i=0}^{38}\mathcal I_i(G)-\|G\|^2-\mathcal P(G)\ \ge\ 1.027153\times10^{-6}\,M\ >\ 0 . \] \end{proposition} This is proved in Section~\ref{sec:numerical}. The proof does not evaluate the left side on $G$ directly. It evaluates the corresponding expression on the profile $F$ (before the restriction of Section~\ref{sec:restriction}) and bounds the change from $F$ to $G$. Theorem~\ref{thm:terminal-arithmetic} lists the constants that enter. \subsection{Deduction of the main theorem}\label{sec:deduction} The following theorem isolates the analytic part of the argument. It assumes A1--A4 and no numerical statement, and it shows that the inequality of Proposition~\ref{prop:numerical} is all that remains to be proved. \begin{theorem}[Terminal implication]\label{thm:terminal} Assume A1--A4. If \begin{equation}\label{eq:margin} \|G\|^2+\mathcal P(G)<\rho\sum_{i=0}^{38}\mathcal I_i(G), \end{equation} then $\liminf_n(p_{n+1}-p_n)\le180$. \end{theorem} \begin{proof} By \eqref{eq:units} the single-prime counts are measured in units of $\mathfrak P_x=\rho\,\mathfrak C_x$. So Proposition~\ref{prop:single} gives, for every $\varepsilon>0$ and all sufficiently large $x\in\mathcal L$, \[ \sum_{n\in I_x}\mathbf 1_{\mathbb P}(n+h_i)\,\omega_x(n)\ \ge\ \rho\,\mathcal I_i(G)-\rho\,\varepsilon \ \ge\ \rho\,\mathcal I_i(G)-\varepsilon , \] since $0<\rho<1$. Propositions~\ref{prop:ordinary} and~\ref{prop:endpoint} give $\sum_{n\in I_x}\omega_x(n)\le\|G\|^2+\varepsilon$ and $\sum_{n\in I_x}B(n)\,\omega_x(n)\le\mathcal P(G)+\varepsilon$ for all sufficiently large $x$. The set of sufficiently large primes belongs to $\mathcal L$. These are therefore the hypotheses of Proposition~\ref{prop:detection}, with $k=39$, $D=180$ and $\mathcal E=\{\{0,38\}\}$ (Section~\ref{sec:tuple}), and \[ Y_i=\rho\,\mathcal I_i(G),\qquad Y_{\mathrm{mass}}=\|G\|^2,\qquad Y_{\{0,38\}}=\mathcal P(G). \] The condition of that proposition is \eqref{eq:margin}. \end{proof} \begin{proof}[Proof of Theorem~\ref{thm:main}] Assume A1--A4 and (N1)--(N14). Proposition~\ref{prop:numerical} gives \eqref{eq:margin}, with excess at least $1.027153\times10^{-6}M$. Theorem~\ref{thm:terminal} then gives $\liminf_n(p_{n+1}-p_n)\le180$. \end{proof} In the formal proof the terminal implication has further finite hypotheses on the dual certificate, the covers, the densities, the mesh and the modulus coverage (Sections~\ref{sec:coverage}--\ref{sec:prices}). All of them are proved in Lean, so they do not appear in the statement of Remark~\ref{rem:formal} (\Supp{sec:concordance}). The excess is small compared with the individual terms; Section~\ref{sec:weak} lists the smallest margins of the numerical inequalities, and the supplement compares the excess with the allowances in the four bounds (Supplement, Remark~\sref{rem:excess}).