\section{The parameters and the data}\label{sec:data} The argument works at one length $x$ of the prime sum at a time. For each large integer $x$ it fixes a family of objects, the \emph{data}: three scales $x\le x_1\le b$, ranks, a CM field $E$, two sets of infinite places of $E$ with weights, and three primes. This section defines them, records their sizes and proves that they exist for every large $x$. \subsection{The parameters}\label{ss:parameters} \begin{definition}\label{def:parameters} The \emph{parameters} are an integer $q_0$ divisible by $18480=2^4\cdot3\cdot5\cdot7\cdot11$ and a prime $d$ with $d\equiv q_0/2-1\pmod{q_0}$. We put $K=\Q(\sqrt{-d})\subset\C$ and let $\chiK=(\,\cdot\,/d)$. \end{definition} \lean{New.Parameters} The congruence says that $q_0\mid2(d+1)$ and $q_0\nmid d+1$, that is, $d+1$ is an odd multiple of $q_0/2$. The parameters are fixed throughout; constants that depend on them only are called \emph{constants}. Since $16\mid q_0$, we have $8\mid d+1$, so $d\equiv7\pmod8$; in particular $d\equiv3\pmod4$ and $\chiK$ is the character of $K$. Moreover $2(d+1)\ge q_0\ge18480$, so $d>64$. For $s\ge1$ let $l_0(s)=3^{\lfloor\log_3s\rfloor+4}$, the least power of $3$ exceeding $27s$; then $27s2\totient(q_1)=[E:\Q]$ as $d>64$. (e) The norm is the product of the conjugates $g(y)$, $g\in\Gal(E/K)$, and $\iota_0(g_v(y))=\Phi_v(y)$. \end{proof} We write $\Phi_a\subseteq\Phi$ for the set of places of class $1$ modulo $q_0$, the \emph{$a$-places}; by (c), $\#\Phi_a=T(s)$ and $f=\#\Phi_a\cdot\totient(q_0)$. For $\nu\in\Z$ prime to $q_1$ and $\tau\in\Phi$ we write $-\nu\tau$ for the product in $\Phi$ of the place $-\nu$ and $\tau$; for $\nu$ not prime to $q_1$ we let $-\nu\tau=\tau$ (the convention plays no role, since such $\nu$ will carry the weight zero). \lean{New.Data.aPlaces, New.Parameters.placeOfInt, New.Data.card_aPlaces, New.Data.f_eq_card_aPlaces_mul} Let $\gamma$ be Euler's constant, $\mathrm{rd}_E=\abs{\disc E}^{1/[E:\Q]}$ the root discriminant, and \begin{equation}\label{eq:Omega} \Omega=\exp\Bigl(\gamma-\re\frac{L'}{L}(1,\chiK)\Bigr)\frac{2\pi}{\mathrm{rd}_E}. \end{equation} This number enters through the Chowla--Selberg formula for the periods of the CM elliptic curves used in \cref{part:derivatives}; the constant $\gamma-\re\frac{L'}{L}(1,\chiK)$ is $-1-c_1$ by \cref{sec:transform}, with $c_1=\re G_1(1)$ formed with this $d$. \lean{New.Parameters.bigOmega, New.re_logDerivMean_one} \subsection{Sparse sets of places}\label{ss:sparse} The places of weight $b$ will be chosen so that no prime $\ell$ links three of them by powers of $\ell$. For a prime $\ell$ write $q_1^{(\ell)}$ for the part of $q_1$ prime to $\ell$. \begin{definition}\label{def:sparse} A set $S\subseteq\Phi$ is \emph{sparse for the primes up to $L$} if there are no prime $\ell\le L$, integers $00$ and $\alpha+\alpha'\le L$ forces $e_1=e_2=e_3$. \end{lemma} \lean{New.exists_three_term_free, New.eq_of_add_mul_eq_of_sum_sq_eq} \begin{proof} The vectors of $\{0,\dots,H-1\}^n$ have squared lengths in $[0,nH^2)$, so some sphere $\sum_lv_l^2=k$ contains at least $H^n/(nH^2)$ of them. Let $S$ be the set of integers whose digits in base $LH$ form such a vector $v$: $e=\sum_lv_l(LH)^l$. These lie in $[0,o)$. In a congruence as in the statement both sides, $(\alpha+\alpha')e_2$ and $\alpha e_1+\alpha'e_3$, have digits below $LH$ in every position (their digit vectors are $(\alpha+\alpha')v$ and $\alpha u+\alpha'w$, with entries $i$ modulo $3l_0$. If $\ell$ is odd, squaring the two congruences modulo $2^{s+v}$, which divides $q_1^{(\ell)}$, gives \[ (g^{e_2-e_1})^{2j}\equiv\ell^{2ij}\equiv(g^{e_3-e_1})^{2i}\pmod{2^{s+v}}, \] hence $(2a+2i)e_2\equiv2ae_1+2ie_3\pmod{2^s}$ with $a=j-i>0$, and $2a+2i=2j\le2l_0$. By \cref{lem:behrend}, $e_1=e_2=e_3$, so $\tau=\sigma$ and $\ell^{2i}\equiv1\pmod{2^{s+1}}$. By the lifting-the-exponent lemma at the prime $2$, if $\ell$ is odd and $\ell^o\equiv1\pmod{2^{s+1}}$ with $o\ge1$, then $2^s$ divides $(\ell-1)o$ or $(\ell+1)o$, and hence $2^s\le(\ell+1)o$. With $o=2i$ this gives $2^s\le(\ell+1)\,2i\le(L+1)\,2l_0$, against the hypothesis. \end{proof} \subsection{The data}\label{ss:data} \begin{definition}\label{def:data} The \emph{data} for the parameters consist of the following objects. \begin{enumerate}[label=\textup{(D\arabic*)}] \item \emph{Scales:} integers $x\le x_1\le b$ such that \[ (\log b)^{100}\le x,\quad x^{10^6}\le x_1,\quad x_1^{10^6}\le b,\quad(\log x_1)^6\le\log b,\quad \log\log b\ge10^{12}C_0, \] where $C_0$ is the constant of \cref{rem:constant-bound}; and $q_1x_1\mid b$. \item \emph{Ranks:} a power $m=2^{e+1}$ of $2$ with $m\in[\sqrt x,2\sqrt x]$, a power $r$ of $3$ with $r\in[x^5,3x^5]$, and the exponent $s=22(e+1)$, so that $2^s=m^{22}$; we require $s\le32\log x$. We put $k=r+1-m$, $t=5r$, $n_j=k+j(t+1)$, $\Delta=2r^8$ (the \emph{gap}) and $a=xb$ (the \emph{long order}). \item \emph{Places and weights:} the field $E$ of \cref{ss:field-E} for this $s$, and a set $\Phib\subseteq\Phi$ of places of class $-1$ modulo $q_0$, the \emph{$b$-places}, with $T(s)\le\#\Phib\cdot\log b$, sparse for the primes up to $kt$. The \emph{weight} of $\tau\in\Phi$ is $\kappa(\tau)=b$ if $\tau\in\Phib$ and $\kappa(\tau)=a/x_1$ otherwise. For $j\ge0$ the \emph{lift weights} are $\kappa_j(\tau)=\kappa(\tau)+(j+\tfrac12)\Delta$. \item \emph{Primes:} distinct primes $p_0,p_1\equiv1\pmod{q_2^2}$ in $[b^{10},b^{11}]$ with $M=p_0p_1=\pi_M\bar\pi_M$ for some $\bar\pi_M\in\OO_K$; and a prime $N\equiv1\pmod{q_2^2}$, the \emph{level}, with $N=\pi_N\bar\pi_N$ for some $\pi_N\in\OO_E$ and \[ \log N_-\le\log N\le\log N_-+\sqrt{\log b},\qquad N_-=\bar\kappa^{\,m}\Bigl(\frac{M\,\mathrm{rd}_E}{2\pi}\Bigr)^{m-1}b^{-15/2}, \] where $\bar\kappa$ is the geometric mean of the weights $\kappa(\tau)$ over all $f$ places. \end{enumerate} \end{definition} \lean{New.Data, New.Data.k, New.Data.t, New.Data.n, New.Data.gap, New.Data.a, New.Data.weight_eq, New.Data.liftWeight, New.Parameters.logLevelMin} The scales in (D1) are recorded with their logarithms; the inequalities between them are the only facts about the scales that the argument uses. The weight $a/x_1$ is an integer since $q_1x_1\mid b$. \begin{remark}\label{rem:constant-bound} The constant $C_0$ is the sum of $q_0$, $2d+6$, $\abs{\gamma-\re\frac{L'}{L}(1,\chiK)}$, the sum of $\abs{\log\abs{\Phi_{q_0}'(w)}}$ over the complex roots $w$ of the cyclotomic polynomial $\Phi_{q_0}$, and a bound for the conjugates of the integral vacuum of \cref{part:derivatives}. It bounds every constant that the argument meets. In particular $C_0\ge\max(64,q_0,d,\totient(q_0))$. \end{remark} \lean{New.Parameters.constantBound, New.Data.le_constantBound} \begin{proposition}[Sizes]\label{prop:sizes} For data as in \cref{def:data}: \begin{center} \begin{tabular}{lll} \toprule quantity & size & order in $x$\\ \midrule $s$, $l_0$ & $s\le32\log x$, $27s1$ with $M_0^k\le W^A$ and every $U\in[W,W^A]$ there is a prime $p\equiv1\pmod{M_0^k}$ with $\log p\in[U,U+W]$. \end{theorem} \lean{New.exists_prime_modEq_one_log_mem} \begin{lemma}\label{lem:prime-pair} Let $W>0$ and $L$ with $(2h_K+2)W\le L$, where $h_K$ is the class number of $K$. Suppose that every window $[U,U+W]$ with $10L\le U\le11L$ contains $\log p$ for a prime $p\equiv1\pmod{q_2^2}$. Then there are distinct such primes $p_0,p_1$ in $[e^{10L},e^{11L}]$ and $\bar\pi_M\in\OO_K$ with $\pi_M\bar\pi_M=p_0p_1$. \end{lemma} \lean{New.Parameters.exists_prime_pair_norm, New.exists_ne_isPrincipal_mul} \begin{proof} Take one prime $p_i$ from each of the $h_K+1$ disjoint windows starting at $10L+2iW$, $0\le i\le h_K$. Each $p_i\equiv1\pmod{q_1d}$ splits in $K$ (by \cref{lem:split-primes} $\chiK(p_i)=\chiK(1)=1$, as $\chiK$ has conductor $d$), say $p_i\OO_K=I_iJ_i$ with $J_i=\bar I_i$. Among the $h_K+1$ classes of the $I_i$ two coincide, $[I_i]=[I_j]$ with $i\ne j$; then $I_iJ_j=I_i\bar I_j$ is principal, since $[J_j]=[I_j]^{-1}$. A generator $\bar\pi_M$ has norm $p_ip_j$. \end{proof} \begin{lemma}\label{lem:level-prime} Let $b=e^L$ with $L\ge7$ and $W^2\le L$; let $m\ge2$, let weights $\kappa(\tau)\in[1,b]$ be given, let $M\in[b^{20},b^{22}]$, and let $q_1d\le b$. Suppose that every window $[U,U+W]$ with $mL\le U\le24mL$ contains $\log N$ for a prime $N\equiv1\pmod{q_2^2}$. Then there are such a prime $N$ with $\log N_-\le\log N\le\log N_-+\sqrt L$ and $\pi_N\in\OO_E$ with $\pi_N\bar\pi_N=N$. \end{lemma} \lean{New.Parameters.logLevelMin_mem_Icc, New.Parameters.exists_prime_log_mem_Icc_mul_star_eq, New.Parameters.exists_mul_star_eq_prime} \begin{proof} By the proof of \cref{prop:sizes}, $\log N_-\in[mL,24mL]$, and $W\le\sqrt L$. A prime $N\equiv1 \pmod4$ is a sum of two squares $u^2+v^2$ by Fermat's theorem, and $E$ contains $i=\zeta^{q_1/4}$, so $\pi_N=u+vi$ serves. \end{proof} \begin{theorem}[Existence of the data]\label{thm:data-exist} Let $0<\ve<1/100$. For every sufficiently large integer $x$ there are data with this $x$, with $x_1=\lfloor\exp(x^{\ve/6})\rfloor$, with $b$ the least multiple of $q_1x_1$ exceeding $\exp(x^\ve)$, with $m$ the least power of $2$ with $m\ge\sqrt x$ and $r$ the least power of $3$ with $r\ge x^5$. For them $x^{\ve/6}-1\le\log x_1$ and $x^\ve\le\log b\le x^\ve+1$. \end{theorem} \lean{New.Parameters.exists_eventually_isLargeScale, New.Parameters.IsLargeScale.exists_isAdmissibleData, New.Parameters.IsAdmissibleData.exists_hasFields, New.eventually_exists_data} \begin{proof} Put $y=\log x$ and $W=x^{\ve/6}$. Fix an integer $n\ge1$ with $99q_0d\le n\ve/6$; then $q_2^2\le W^n$ whenever $s\le32y$. For large $x$ the following hold: $100(6\log W+1)\le y$; $\log W\ge10^{12}C_0$; $W\ge2\cdot10^6y$; $W\ge2h_K+2$; $n+1\le W$; $(5184y)^n\le W$; and $7776\,y\,n\,2^n\le W$. These are statements that a fixed power of $y$ is small against $W=e^{\ve y/6}$. \emph{Ranks.} Let $m=2^{e+1}$ and $r$ be the least powers of $2$ and $3$ with $m\ge\sqrt x$, $r\ge x^5$; then $m\le2\sqrt x$, $r\le3x^5$, and $s=22(e+1)\le32y$. Hence $W\le\sqrt x\le m\le2^s\le W^n$. \emph{Places.} Since $l_0\le81s\le2592y$, we have $(2l_0)^n\le W$, $3l_0n2^n\le W^3$ and $2l_0(kt+1)<2^s=m^{22}$, as $kt\le15x^{10}$ and $m^{22}\ge x^{11}$. \Cref{prop:sparse} with $L=kt$ gives a sparse set $\Phib$ of places of class $-1$ with $T(s)\le\#\Phib\cdot W^6$. \emph{Scales.} Let $x_1=\lfloor e^W\rfloor$ and $b$ the least multiple of $q_1x_1$ above $\exp(W^6)$. Since $q_1\le W^n$, $\log b\in[W^6,W^6+1]$ and $\log\log b\in[6\log W,6\log W+1]$. Then $\log b\ge W^6$ gives $T(s)\le\#\Phib\log b$; and the inequalities of (D1) reduce to those listed above, for instance $(\log b)^{100}\le e^{100(6\log W+1)}\le x$ and $x^{10^6}\le x_1$ because $10^6y\le W-1$. \emph{Primes.} Let $L=\log b$. Then $W^2\le L$ and $24mL\le W^{n+7}$, and the windows $[U,U+W]$ with $W\le U\le W^{n+7}$ contain logarithms of primes $\equiv1\pmod{(q_0d)^k}$ for every $k>1$ with $(q_0d)^k\le W^{n+7}$, by \cref{thm:prime-windows} (with $M_0=q_0d$, a multiple of $4$, and $A=n+7$), for large $x$. Since $q_2^2=(q_0d)^{2(s+6)}\le W^n$, \cref{lem:prime-pair} with $(2h_K+2)W\le W^2\le L$ gives $p_0,p_1,\bar\pi_M$, and \cref{lem:level-prime} gives $N$ and $\pi_N$. \end{proof}