\documentclass[11pt]{article} \usepackage[margin=1in]{geometry} \usepackage[T1]{fontenc}\usepackage{lmodern,amsmath,amssymb,amsthm} \usepackage[hidelinks]{hyperref} \hypersetup{pdfauthor={Wren Aquila},pdftitle={The equality case in a density version of the binary Goldbach problem},pdfsubject={Additive prime number theory},pdfkeywords={binary Goldbach, relative lower density, popular sums}} \newtheorem{theorem}{Theorem}\newtheorem{lemma}[theorem]{Lemma} \newcommand{\PP}{\mathbb P}\newcommand{\T}{\mathbb R/\mathbb Z} \newcommand{\ind}{\mathbf 1} \setlength{\emergencystretch}{2em} \title{The equality case in a density version of the binary Goldbach problem} \author{Wren Aquila}\date{2 December 2026} \begin{document}\maketitle \begin{abstract} A subset of the primes having relative lower density at least one half in every fixed reduced residue class represents almost every even integer as a sum of two of its members. Lean proofs of this statement and of a two-set counting version were recently accepted on the Goldbach Research platform. We give an independent written proof and extend it. If both summands must lie between $lN$ and $(1-l)N$, where $0\le l<1/2$, the sharp common lower-density threshold is $1/(2(1-l))$, including equality. The conclusion gives a positive multiple of $N/\log^2 N$ representations outside any prescribed positive exceptional fraction. The proof uses the equal-density popular-sums theorem on an interval after recovering local densities from two saturated prefix inequalities. \end{abstract} \section{Statement} For $A\subseteq\PP$ and $(a,q)=1$, put \[ d_*(A;q,a)=\liminf_{Y\to\infty} \frac{|\{p\le Y:p\in A,\ p\equiv a\bmod q\}|} {|\{p\le Y:p\in\PP,\ p\equiv a\bmod q\}|}. \] For $0\le l<1/2$ let $R_A(N;l)$ count ordered pairs $p_1,p_2\in A$ with $p_1+p_2=N$ and $lN\le p_i\le(1-l)N$. \begin{theorem}\label{main} Write $b=1-l$. Suppose $d_*(A;q,a)\ge1/(2b)$ for every $q\ge1$ and every reduced class $a\bmod q$. Fix $\eta>0$ and an output progression $r_0\bmod m$ containing even integers. There are $c>0$ and $X_0$ such that, for every $X\ge X_0$, at least a fraction $1-\eta$ of the even $N\in[X,2X]$ in that progression satisfy $R_A(N;l)\ge cX/\log^2 X$. In particular almost every even integer has such a representation. For every $0<\rho<1/(2b)$ there is a set with $d_*(A;q,a)=\rho$ in every reduced class for which $R_A(N;l)=0$ on a positive proportion of the even $N\in[X,2X]$ for infinitely many $X$. \end{theorem} At $l=0$ the threshold is one half. Alsetri and Shao \cite[Theorem 1.2]{as} proved almost-all representation under a uniform strict margin above one half in the reduced progressions. Their Remark 1.3 gives the unrestricted construction below one half. Theorem~\ref{main} permits equality in every class and uses, as in \cite{as}, only lower densities of prefixes in those classes. The qualitative case $l=0$ of the almost-all conclusion, under the same local hypothesis, was posed on the Goldbach Research platform, where a Lean proof of it was accepted on 28 November 2026 \cite{gr}. We have not seen that proof. Our proof is independent. In each fixed output progression containing even integers we obtain the representation bound $R_A(N;l)\ge cX/\log^2 X$ with any prescribed positive exceptional fraction, both at $l=0$ and for the windows $00$ and $\alpha+\beta=1$. Taking both sets equal to $A$ and $\alpha=\beta=1/2$ gives the count at $l=0$ in each fixed output progression containing even integers after rescaling the exceptional tolerance. For the central third the threshold is three quarters. Shao \cite[Theorem 1.3 and the subsequent question]{shao} asks whether the ordinary half-density assumption in a ternary theorem can be relaxed under local class hypotheses. Hu and Gao \cite[arXiv v1, Corollary 1.3]{hg} permit equality at one half in two slots of a quaternary theorem, with a strict margin in the two other slots. Their two examples show that relaxing either paired strict inequality in their Theorem 1.2 to equality can make the conclusion fail. Shen \cite{shen} permits two slots of density at least five eighths and one strictly above five eighths in a ternary theorem. The binary endpoint in Theorem~\ref{main} requires a separate argument. We first give the interval transfer used in the proof. Next we pass from many poorly represented totals to an inequality between macroscopic prime densities. At equality the inequality is saturated. For $l>0$ its saturation at two positions already gives a contradiction. For $l=0$ it forces exact half density on all fixed refinements of a smaller interval, where the transfer applies. \section{A two-fold interval transfer} Write $[L]=\{1,\ldots,L\}$. Extend interval weights by zero and use $\widehat f(\alpha)=\sum_n f(n)\exp(2\pi i n\alpha)$ with probability measure on $\T$. Convolution on integers uses counting measure. We use Proposition 3.3 of Matom\"aki, Maynard and Shao \cite{mms}. For fixed $00$ such that if two sets $B_i\subset[L]$ each have density at least $1/2-u$ on every arithmetic progression of length at least $\lambda L$ in $[L]$, at least $(2-5u)L$ sums have at least $\lambda\max(|B_1|,|B_2|)$ representations, for all sufficiently large $L$. Decreasing $\lambda$ is permissible. \begin{lemma}\label{transfer} Given $u$ as above and $C_0>0$, there are $\lambda,\kappa,c_0>0$ with the following property for all sufficiently large $L$. Suppose $0\le f_i\le\nu_i$ on $[L]$, \[ \|\widehat{\nu_i-\ind_{[L]}}\|_\infty\le\kappa L,\qquad \|\widehat f_i\|_3\le C_0 L^{2/3}. \] Suppose also that the mean of $f_i$ on every progression in $[L]$ of length at least $\lambda L/2$ is at least $1/2-u/20$. Then $f_1*f_2\ge c_0 L$ on at least $(2-6u)L$ sums in $[2,2L]$. \end{lemma} \begin{proof} Fix $\lambda$ from the proposition. Set $\tau=u/10$ and $s_0=\tau^2\lambda(1/2-u)$. Choose a small $\delta>0$ after $C_0,\lambda,u,s_0$, and $\kappa$ after $\delta$. The following continuous-frequency Bohr average is the construction in the proof of \cite[Lemma 4.3]{mms}, with the two-fold mean-square comparison of \cite[Lemma 3.4]{as}. We give the details at exponent three. For each $f=f_i$, its mass is at most $(1+\kappa)L$. Its transform has derivative bounded by $O(L^2)$. The spectrum where $|\widehat f|\ge\delta L$ has a $c\delta/L$-net of $O_{C_0}(\delta^{-4})$ frequencies. Indeed use a maximal separated subset at this distance. On disjoint intervals of a fixed smaller radius about its points $|\widehat f|\ge\delta L/2$, and $\int|\widehat f|^3\le C_0^3L^2$. Take $c$ sufficiently small. Among the integers in $[1,\delta L]$ choose a set $D_0$ of $\gg_{\delta,C_0} L$ on which each phase at a net point lies in one interval of length $\delta$ modulo one. This follows by dividing the finite torus into boxes. Define $g(n)=|D_0|^{-2}\sum_{h,k\in D_0} f(n+h-k)$, on all integers. On the large spectrum the Fourier multiplier differs from one by $O(\delta)$, even between net points since $|h-k|\le\delta L$. Everywhere it has modulus at most one. Thus $\|\widehat{f-g}\|_\infty\ll\delta L$ and $\|\widehat g\|_3\le C_0L^{2/3}$. In the average of the majorant one may replace $\nu_i$ by $\ind_{[L]}$ at cost at most $\kappa L/|D_0|$, using Parseval for $\ind_{D_0}$. Hence $0\le g\le1+u/10$ for sufficiently small $\kappa$. Translating a progression $P\subset[L]$ of length at least $\lambda L$ by $h-k$ and intersecting with $[L]$ loses at most $\delta L+1$ terms. The intersection is a progression of length at least $\lambda L/2$. Thus the mean of $g_i$ on $P$ is at least $1/2-u/4$ if $\delta$ was small enough. The cap implies that $B_i=\{n\in[L]:g_i(n)\ge\tau\}$ has density at least $1/2-u$ there. The proposition gives $g_1*g_2\ge s_0 L$ at $(2-5u)L$ sums in $[2,2L]$; values of $g_i$ off $[L]$ are nonnegative. For $d_i=f_i-g_i$ and $v=f_j$ or $g_j$, H\"older gives \[ \int|\widehat{d_i}\widehat v|^2 \le\|\widehat{d_i}\|_\infty\|\widehat{d_i}\|_3\|\widehat v\|_3^2 \ll_{C_0}\delta L^3 . \] Expanding the convolution difference and using Parseval and Chebyshev costs at most $uL$ sums at error threshold $s_0L/2$ if $\delta$ was sufficiently small. Take $c_0=s_0/2$. \end{proof} \section{The prime input and the order of limits} Suppose the quantile assertion fails for one $A,l,m,r_0,\eta$. For each positive integer $j$ there are arbitrarily large $X$ at which a fraction at least $\eta$ of the eligible even totals have $R_A(N;l)\le X/(j\log^2 X)$. Put $\rho=1/(2b)$. At stage $s$ first fix $w_s\ge s$ tending to infinity and \[ W=W_s=\operatorname{lcm}\bigl(m,\prod_{p\le w_s}p\bigr). \] Fix the moduli $q\le s$, a finite rational grid of prefixes and a finite increasing list of rational input intervals in $[0,2]$, eventually exhausting a dense grid and all rational intervals. Fix $j_s\ge sW_s$. Choose one of the bad scales $X=X_s$ at threshold $1/j_s$ beyond all the fixed-stage PNT, class-density and Fourier thresholds explained below, with $K=\lfloor X/W\rfloor$ arbitrarily large. All choices of input units and fixed-stage tests are finite when $X$ is chosen. Now choose an even class $r\bmod W$ with $r\equiv r_0\pmod m$ with bad fraction at least $\eta-o(1)$, and two unit residues $c_1,c_2$ with sum $r\bmod W$. Such units exist: at each odd prime divisor choose $c_1$ outside $\{0,r\}$, at 2 choose it odd, and lift by the Chinese remainder theorem. Use representatives $1\le c_i\le W$. Write $p=Wn+c_i$, $y=p/X$, and on $0\le y\le2$ put \[ \nu_i(n)=\frac{\varphi(W)}{W}\log(p)\ind_{\PP}(p),\qquad f_i(n)=\nu_i(n)\ind_A(p). \] The weights vanish for $p\le1$. The marked two-fold convolution on this particular unit pair restricted to the desired window, divided by $K$, is at most $(1+o(1))\varphi(W)^2/(Wj_s)=o(1)$ at each selected bad total, since every summand is nonnegative. The position of a total is $x=N/X$, and its integer sum coordinate is $(N-c_1-c_2)/W$. Rounding endpoints in these scaled coordinates costs $O(1/K)$ in position at fixed stage. We spell out the analytic estimates used in choosing $X$. For each fixed $W$ and fixed interval $J\subset[0,2]$ of positive length, indicate membership by $y\in J$. Uniformly in the unit choices at that fixed $W$, \begin{align} K^{-1}\|\widehat{(\nu_i-1)\ind_J}\|_\infty &\ll 1/(w_s-1)+o_{W,J}(1),\label{fourier}\\ \|\widehat{f_i\ind_J}\|_3+\|\widehat{\nu_i\ind_J}\|_3+ \|\widehat{\ind_J}\|_3&\ll K^{2/3}. \label{restriction} \end{align} The implied restriction constant is absolute. For \eqref{restriction}, apply the one-linear-form restriction estimate of Green and Tao \cite[Theorem 1.1 and Section 4]{gt} on $[1,2K+O(1)]$ to $Wn+c_i$, with coefficients zero off the relevant subset of primes. The singular series of this form is $W/\varphi(W)$; the normalization above cancels it. One can use the logarithmic prime weights since they are bounded by $\log(2X)$ and $W$ is fixed before taking $X$ large. Translating an interval only changes the phase of its transform. The possible initial term $n=0$ is negligible at fixed $W$. For \eqref{fourier}, use the usual prime major arcs of denominators $q\le(\log X)^B$ and widths $(\log X)^B/K$ in the $n$ variable, with a sufficiently large fixed $B$. On the arc at $a/q+\theta$, Siegel--Walfisz and partial summation give the interval sum at $\theta$ times a rational coefficient. For $(q,W)=1$ its absolute value is $|\mu(q)|/\varphi(q)$, by the Ramanujan sum after the linear change of residue. For $(q,W)>1$ a shared prime leaves its $n$-coordinate unrestricted, and the primitive additive character sums to zero on that coordinate. At $q=1$ the main term is the transform of the interval indicator. Other nonzero coefficients have size at most $1/(w_s-1)$; the interval transform at the original nonprincipal frequency is $o_W(K)$. Off the arcs, Vaughan's prime exponential-sum estimate \cite[Ch.~3]{v} gives $o_W(K)$, uniformly on each fixed interval. Indeed additive orthogonality removes the fixed progression condition in the prime variable, changing approximating rational denominators by at most a factor of $W$. One may use a smaller fixed logarithmic exponent for the prime minor-arc estimate than in the excluded $n$-arcs. Subtract prefix estimates for a general interval. Thus after fixing $W_s$ one can make all remainders in \eqref{fourier} at most $1/s$. Along the diagonal the normalized Fourier error tends to zero. For each fixed $q$ all its prime divisors eventually divide $W$. Every class $c_i+Wa\bmod Wq$ is then reduced, with $\varphi(Wq)=q\varphi(W)$. At fixed stage, the class PNT and the liminf hypothesis give the weighted lower prefix bounds in these classes at each grid point to error at most $1/s$ on the scaled measure. For a positive endpoint $t$, one can discard primes below $X/\log^2 X$ when lower-bounding the log weight and use $\log p=(1+o(1))\log X$ on the rest. Zero endpoints are harmless. This justifies taking all these thresholds before choosing the bad scale. \section{Limit profiles and reflections} Extract a subsequence on which the measures $K^{-1}\sum_n f_i(n)\delta_{(Wn+c_i)/X}$ converge weakly to $F_i(y)\,dy$ on $[0,2]$. Their uncoloured majorants converge to Lebesgue measure by the class PNT, so $0\le F_i\le1$. Do the same simultaneously for weights $q f_i/K$ on each fixed $n\equiv a\bmod q$, obtaining densities $F_{i,q,a}$ with \[ 0\le F_{i,q,a}\le1,\qquad q^{-1}\sum_a F_{i,q,a}=F_i,\qquad \int_0^t F_{i,q,a}(y)\,dy\ge\rho t \quad(0\le t\le2). \tag{3} \] The prefix inequalities extend from the grid by continuity. Normalize the counting measure of the bad totals in the selected class by $1/K$. Its limit is $e(x)\,dx$ on $[1,2]$, with $0\le e\le1$ and $\int e>0$. For almost every $x$ with $e(x)>0$ we claim \[ F_1(y)+F_2(x-y)\le1\quad\hbox{a.e. on }(lx,bx). \tag{4} \] To prove this choose rational intervals $I,J$ of input positions and a rational target interval $D\subset(1,2)$ with $I,J\subset(lt,bt)$ for all $t\in D$. On these boxes the marked convolution dominates $f_1*\nu_2+\nu_1*f_2-\nu_1*\nu_2$, with each arm so restricted. An uncoloured arm can be replaced by its interval indicator: by \eqref{fourier}--\eqref{restriction} and the four-factor H\"older bound in Lemma~\ref{transfer}, the squared error summed over all integer sums is $o(K^3)$. For two uncoloured arms replace them in succession. The remaining comparison, divided by $K$, converges uniformly in the target position $t$ to \[ \int_{I\cap(t-J)}[F_1(y)+F_2(t-y)-1]\,dy . \] Indeed the cumulative measures converge uniformly because their weak limits have continuous distribution functions. The integral is continuous in $t$. On chosen bad totals the marked count is $o(K)$, and the normalized Fourier errors tend to zero in measure. It follows that the integral is nonpositive for $e(x)\,dx$-almost every $x\in D$. Intersect over the countably many intervals and apply differentiation at interior Lebesgue points of both densities to obtain (4). On the resulting positive-measure set $E=\{e>0\}$, discarding a null set once, integrate (4). By (3) and the unit caps, \[ (b-l)x\ \ge\ \sum_i\int_{lx}^{bx}F_i(y)\,dy \ \ge\ 2(\rho b-l)x=(b-l)x . \tag{5} \] Thus each prefix through $bx$ has mass exactly $\rho bx$, each $F_i$ is one a.e. on $(0,lx)$, and equality holds a.e. in (4). If $l>0$, the absolutely continuous function $H(t)=\int_0^t F_2(y)\,dy-\rho t$ vanishes on $bE$. At almost every point of that level set it has derivative zero. Choose $x\in E$ with $H'(bx)=0$ and some $x'>x$ in $E$. Since $F_1=1$ on $(0,lx')$, it is one throughout $(lx,\min(lx',bx))$ up to a null set. Reflection at $x$ gives $F_2=0$ immediately to the left of $bx$. This forces the left derivative of $H$ at $bx$ to be $-\rho$, a contradiction. It remains to consider $l=0$. Now $\rho=1/2$. Choose a density point $x_0\in E$. For $x\in E$ we have $F_1(y)+F_2(x-y)=1$ a.e. on $(0,x)$ and $\int_0^xF_i=x/2$. Fix a compact interval $I_0\subset(0,x_0)$, with a small margin on both sides. Composing the reflections at any two points $x,x'$ of $E$ sufficiently near $x_0$ gives $F_2(z)=F_2(z+x'-x)$ for almost every $z\in I_0$. The set of such points has positive measure. Its difference set contains a neighbourhood of zero by Steinhaus's theorem (equivalently by continuity at zero of the autocorrelation of its indicator). Convolving on slightly smaller intervals with a smooth approximate identity yields locally constant smoothings. Taking their limit in $L^1$ and exhausting $(0,x_0)$ proves constancy there. The identity at $x_0$ also gives constancy of $F_1$. Their prefix masses show that both constants are one half. For every $q$, (3) now gives $\int_0^tF_{i,q,a}=t/2$ for every $a\bmod q$ and $0\le t\le x_0$: the average equals the common lower bound. Choose a fixed rational interval $D$ around $x_0$ with $\int_D e>0$ and $D/2\subset(0,x_0)$. In the two input coordinates take the corresponding intervals of primes with $p/X\in D/2$. Trim $O(1)$ integer positions to obtain intervals of the same length $L=(|D|/2+o(1))K$. After translation their sum interval differs from $D$ by $O(1/K)$ at the endpoints in physical units. On both inputs every progression of length at least $\lambda L/2$ has mean $1/2+o(1)$ for each fixed $\lambda>0$. Only bounded steps occur, and uniformity in the endpoints follows by subtracting cumulative measures in each fixed residue class. Fix $u<\min(1/16,\int_D e/(4|D|))$. The restriction constant in units of $L^{2/3}$ is now $O((2/|D|)^{2/3})$, fixed before selecting the constants in Lemma~\ref{transfer}. Equation \eqref{fourier} in these length units has error tending to zero. Thus on all but at most $3u+o(1)$ of the totals of $D$ as a proportion, the marked convolution exceeds $c_0L$. The bad fraction in $D$ tends to $\int_D e/|D|>3u$ and its counts are $o(K)$. This contradiction proves the quantile assertion. Allowing $\eta$ to decrease and covering an initial segment by dyads gives the almost-everywhere representability conclusion. \section{Sharpness} The following construction adapts Alsetri--Shao \cite[Remark 1.3]{as}. At $l=0$ the blocks coincide. Fix $\rho<1/(2b)$, $\rho>0$, and take $T_j$ growing sufficiently rapidly, for example $T_{j+1}\ge T_j^2$ with disjoint intervals $(\rho bT_j,bT_j]$. Remove all primes in these intervals and retain the others. In every fixed reduced class, the PNT shows that the minimum relative prefix density on the $j$th block occurs at its right endpoint up to $o(1)$ and equals $\rho+o(1)$. Between blocks the relative density increases. For $2\rho bT_j