\documentclass[11pt,reqno]{amsart} \usepackage{jaswal} \newcommand{\Q}{\mathbb{Q}} \newcommand{\Z}{\mathbb{Z}} \newcommand{\cO}{\mathcal{O}} \DeclareMathOperator{\Nm}{N} \DeclareMathOperator{\Gal}{Gal} \newcommand{\tors}{\mathrm{tors}} \newcommand{\FF}{\mathbb{F}} \newcommand{\R}{\mathbb{R}} \newcommand{\C}{\mathbb{C}} \DeclareMathOperator{\Tr}{Tr} \DeclareMathOperator{\Sel}{Sel} \begin{document} \title[$\mathbb{Z}$ is Diophantine in every real quadratic field]{$\texorpdfstring{\boldsymbol{\mathbb{Z}}}{Z}$ is Diophantine in every real quadratic field} \author{Manvir Jaswal} \address{Toronto, Canada} \email{manvirjaswal@icloud.com} \urladdr{https://manvirjaswal.github.io} \date{November 28, 2026} \subjclass[2020]{Primary 11U05; Secondary 03D35, 11G05, 11G15} \keywords{Hilbert's tenth problem, Diophantine sets, real quadratic fields, elliptic curves, complex multiplication, prime elements} \hypersetup{pdftitle={Z is Diophantine in every real quadratic field},pdfauthor={Manvir Jaswal},pdfkeywords={Hilbert's tenth problem, Diophantine sets, real quadratic fields, elliptic curves, complex multiplication, prime elements}} \begin{abstract} We prove that $\Z$ is Diophantine in every real quadratic field, so that Hilbert's tenth problem over each of them has a negative answer; for $\Q(\sqrt2)$, $\Q(\sqrt3)$ and $\Q(\sqrt6)$ this is due to Sun. We let the curve in Sun's construction vary with the field. For each odd squarefree $d>1$ we build a curve $y^2=x^3-Ax$ over $\Q(\zeta_8)$ of $\Z[i]$-rank one whose twist by $d$ has rank zero, from prime elements in a linear pattern found with Kai's estimates, so that the rank stays one over $\Q(\zeta_8,\sqrt d)$. Run on such a curve, Sun's construction proves that $\Z$ is Diophantine in a totally real Galois field $K$ with $\sqrt3\notin K$ and $K\cap\Q(\zeta_8)=\Q$ whenever the rank is one over $K(\zeta_8)$ as well, with conditions on torsion and quadratic characters; this gives $\Q(\sqrt{2d})$ and, for $d\ne3$, $\Q(\sqrt d)$. With two marked primes the same descents give $\Q(\sqrt{5a},\sqrt{13b})$ for positive odd squarefree $a$ and $b$ prime to $65$. \end{abstract} \maketitle \contents \section{Introduction}\label{sec:intro} A subset $S$ of a commutative ring $R$ is \emph{Diophantine in $R$} if there are $k\ge0$ and $f\in\Z[X,Y_1,\dots,Y_k]$ such that, for every $a\in R$, $a\in S$ if and only if $f(a,y_1,\dots,y_k)=0$ for some $y_1,\dots,y_k\in R$. Hilbert's tenth problem over $R$ asks for an algorithm that decides whether a given polynomial with integer coefficients has a zero with coordinates in $R$. Over $\Z$ there is none, by Matiyasevich's theorem \cite{Matiyasevich}, which completed work of Davis, Putnam and Robinson. If $\Z$ is Diophantine in a field $K$ with a real embedding, there is none over $K$ either: replacing each integer unknown by an unknown in $K$ subject to a Diophantine definition of $\Z$ turns a system of equations over $\Z$ into one over $K$, and over a real field a system is equivalent to one equation, a sum of squares. For rings of integers the problem is settled. Koymans and Pagano proved that $\Z$ is Diophantine in the ring of integers of every number field \cite[Theorem~1.2]{KoymansPagano}, so that Hilbert's tenth problem over each of these rings has a negative answer, which Alp\"oge, Bhargava, Ho and Shnidman also proved \cite[Corollary~1.2]{ABHS}. Both proofs construct curves, or abelian varieties, of positive rank whose rank does not grow in a quadratic extension. Poonen proved that an elliptic curve of rank one over a number field and over a finite extension of it makes the ring of integers of the smaller field Diophantine in that of the larger \cite{PoonenRankOne}, and Shlapentokh that the same holds for a curve of equal positive rank over both fields \cite{Shlapentokh}. Over a field, a Diophantine definition of $\Z$ must also exclude the elements whose denominators are divisible only by large primes. Over $\Q$, after OpenAI's proof that Hilbert's tenth problem has a negative answer \cite{OpenAI}, Glazer and collaborators turned that proof into a Diophantine definition of $\Z$ \cite{Glazer}, and Bhargava and Burungale proved that $\Z$ is Diophantine in $\Q$ \cite[Theorem~A]{BhargavaBurungale}. Pasten and Vidaux proved that $\Z$ is Diophantine in every quadratic field over which the $abc$ conjecture holds \cite[Corollary~1.2]{PastenVidaux}. Sun proved that $\Z$ is Diophantine in $\Q(\sqrt2)$, $\Q(\sqrt3)$ and $\Q(\sqrt6)$ \cite[Theorems~1.2--1.4]{Sun}, by a construction that reads integers off as multiples of one point on an elliptic curve $E$ over a real quadratic field $F\not\subseteq K$, of rank one over $F$ and over $KF$. Our earlier paper \cite{TotallyReal} carries his construction to every totally real field $K$ over which one of four curves of this kind has rank one over $KF$, with torsion killed by $2$ and $2E(KF)\subseteq E(F)$. \begin{theorem}\label{thm:main} For every squarefree integer $D>1$, $\Z$ is a Diophantine subset of $K=\Q(\sqrt D)$: there are an integer $k\ge1$ and a polynomial $\mathbf F\in\Z[X,Y_1,\dots,Y_k]$ such that, for every $x\in K$, \[ x\in\Z\iff\mathbf F(x,y_1,\dots,y_k)=0\text{ for some }y_1,\dots,y_k\in K. \] \end{theorem} This is the case of real quadratic fields of Sun's conjecture that $\Z$ is Diophantine in every number field \cite[Conjecture~1.5]{Sun}. \subsection*{Why the curve changes with \texorpdfstring{$D$}{D}} Sun's construction needs, for $K=\Q(\sqrt D)$, a curve $E\colon y^2=x^3-Ax$ over a number field $F\not\subseteq K$, with complex multiplication by $\Z[i]$, rank one over $F$ and over $KF$, and conditions on torsion. If $F$ is real quadratic and $E$ is fixed, the rank of $E(F(\sqrt D))$ is that of $E(F)$ plus that of the twist of $E$ by $D$, and the twist has to be shown to have rank zero. A descent does this for the $D$ it reaches, and in our earlier paper these are families of fields \cite[Theorem~1.2]{TotallyReal}. For some curves no $2$-descent can do it. For Sun's curve over $\Q(\sqrt3)$ and every odd $D$, and for every curve $y^2=x^3-c^2x$ over a real quadratic field $F$ with $c\in F^\times$ when $D\equiv\pm1\pmod8$, provided $\sqrt D\notin F$, the $2^\infty$-Selmer rank over $F(\sqrt D)$ is even \cite[Remark~12.16]{TotallyReal}, so a $2$-descent cannot show that the rank there is one. We therefore let the coefficient depend on $D$, and we take $F=\Q(\zeta_8)=\Q(\sqrt2,i)$. Throughout, $\zeta=e^{\pi i/4}$, $i=\zeta^2$, $F=\Q(\zeta)$, $\cO=\Z[\zeta]$ and $\lambda=1-\zeta$, so that $\sqrt2=\zeta-\zeta^3$ lies in $F$. For $A\in\cO\setminus\{0\}$ let \begin{equation}\label{eq:EA} E_A\colon y^2=x^3-Ax\quad\text{over }F,\qquad T=(0,0). \end{equation} The automorphism $[i](x,y)=(-x,iy)$ of $E_A$ is defined over $F$, so $E_A(M)$ is a $\Z[i]$-module for every field $M\supseteq F$; we speak of its \emph{$\Z[i]$-rank}, and the integers the construction reads off become Gaussian integers. The twist of $E_A$ by $d\in F^\times$ is $E_{d^2A}$, again a curve of the family. The field $F$ is chosen for four properties. As $[i]$ is defined over $F$, $1+i$ is an endomorphism of degree $2$ whose Selmer group bounds the $\Z[i]$-rank, and, for the coefficients we construct, the descent of every twist $E_{d^2A}$ by an odd integer $d$ has the same local conditions at $\lambda$ (\cref{lem:transfer}(a)). As $\sqrt2\in F$, the fields $K=\Q(\sqrt d)$ and $K=\Q(\sqrt{2d})$ give the same field $KF=F(\sqrt d)$ and the same twist, and $F\cap\Q(\sqrt D)=\Q$ for every $D\ne2$. The automorphism $\sigma\colon\zeta\mapsto-\zeta$ fixes $i$ and exchanges the two complex places of $F$ and the two primes of $F$ above a Gaussian prime $\pi\equiv9\pmod{16}$; it takes the place of the Galois conjugation of Sun's real quadratic base, and as it commutes with $[i]$, the Gaussian labels survive it. Finally, $\cO$ has class number one and one prime $\lambda$ above $2$, so a class in $F^\times/F^{\times2}$ with even valuation outside finitely many primes is a product of the classes of units and of generators of these primes, and the dyadic conditions sit at one place, where they depend only on residues modulo $32$. \subsection*{The idea} For each odd squarefree $d>1$ we construct a coefficient $A=A(d)$ such that $E_A$ has $\Z[i]$-rank one over $F$, its twist by $d$ has $\Z[i]$-rank zero over $F$, its torsion over $F(\sqrt d)$ is $\{O,T\}$, and $A$ is a square modulo exactly one of the two primes of $F$ above each Gaussian prime that the construction selects (\cref{thm:coefficient}). We prove that Sun's construction runs with any coefficient that has these properties, over $K=\Q(\sqrt{2d})$ and, for $d\ne3$, over $K=\Q(\sqrt d)$; \cref{thm:reduction} states what it needs over every totally real Galois field $K$ with $K\cap F=\Q$ and $\sqrt3\notin K$. We construct $A(d)$ by the method of Koymans and Pagano \cite[\S\S1.3, 5.1--5.2]{KoymansPagano}. A coefficient made of linear forms carries a point that can be written down, Kai's estimates for linear patterns of prime elements \cite{Kai} make the forms take prime values in prescribed residue classes, and the Selmer groups are then decided by congruences alone. This is the strategy by which Koymans and Pagano, and Zywina with a twist of rank zero, obtain curves of rank exactly one \cite[Theorem~1.3]{KPRankOne}, \cite[Theorem~1.5]{Zywina}. The nearest construction is Savoie's, of curves $y^2=x^3-Ax$ over $\Q(i)$ with $j$-invariant $1728$ and rank $2$ from Gaussian primes in a linear pattern \cite[Theorem~1.2]{Savoie}. Our forms are $u$, $v$ and $w=(u-v)/\lambda$, and \begin{equation}\label{eq:A} A=-4uv(u-v)^2,\qquad G=\bigl(2iu(u-v),\,(2-2i)u(u-v)^2\bigr)\in E_A(F); \end{equation} the point lies on $E_A$ because $x^2-A=-4u(u-v)^3$ at $x=2iu(u-v)$, and $-8i=(2-2i)^2$. When $u$, $v$ and $w$ are prime, the descents by $1+i$ over $F$ see only the primes above $2$, $uvw$ and $d$. At $\lambda$ the local conditions depend only on $u$ and $v$ modulo $32$, so we fix these residues; at a prime above $d$ they depend on the residue of $v/u$; and at $u$, $v$ and $w$ the local images are generated by the classes of $T$ and $G$, so no quadratic symbol between $u$, $v$ and $w$ enters. At one prime above $d$ we make $A$ a square and the abscissa of $G$ a non-square, and Hilbert reciprocity then removes the class of $G$ from the Selmer group of the twist by $d$, while $E_A$ keeps it. For the fields $K$ of \cref{thm:biquad}, $KF$ is biquadratic over $F$, so three twists of $E_A$ must have rank zero. We mark one prime above $5$ and one above $13$, the two smallest primes $\equiv5\pmod8$, so that $2+i$ and $3-2i$ stay prime in $F$ and their product $8-i$ is a square at $\lambda$; the same descents then give rank zero for the twists by $5a$ and $13b$, and, through $8-i$, for their product. \begin{theorem}\label{thm:biquad} Let $a$ and $b$ be positive odd squarefree integers prime to $65$. Then $\Z$ is Diophantine in $\Q(\sqrt{5a},\sqrt{13b})$. \end{theorem} \needspace{4\baselineskip} \begin{corollary}\label{cor:htp} For every real quadratic field $K$, and for every field $K$ of \cref{thm:biquad}, there is no algorithm that decides, given a polynomial over $K$ in any number of variables, whether it has a zero with coordinates in $K$. \end{corollary} \begin{proof} By \cref{thm:main,thm:biquad} and the reduction recalled in the first paragraph, as $K$ is real. \end{proof} The coefficient is given by the following theorem. \begin{theorem}\label{thm:coefficient} For every odd squarefree integer $d>1$ there are prime elements $u$, $v$, $w$ of $\cO$ with $u-v=\lambda w$, whose absolute norms $\Nm u$, $\Nm v$, $\Nm w$ are distinct rational primes prime to $2d$, such that $A=-4uv(u-v)^2$ has the following properties. \begin{enumerate} \item\label{co:a} $E_A(F)$ has $\Z[i]$-rank one, and the point $G$ of \eqref{eq:A} has infinite order; $E_{d^2A}(F)$ has $\Z[i]$-rank zero. The Selmer groups of the endomorphism $1+i$ of $E_A$ and of $E_{d^2A}$ over $F$ have dimensions $2$ and $1$ over $\mathbb F_2$. \item\label{co:b} $E_A\bigl(F(\sqrt d)\bigr)_\tors=\{O,T\}$. \item\label{co:c} If $\pi$ is a Gaussian prime with $\pi\equiv9\pmod{16}$, $\pi\equiv1+i\pmod{\Nm u\Nm v}$ and $\Nm\pi\ne\Nm w$ \textup(that is, $w$ lies above neither $\pi$ nor $\bar\pi$\textup), then $A$ is a unit at the two primes of $F$ above $\pi$ and a square modulo exactly one of them. \end{enumerate} \end{theorem} The construction is Sun's \cite[\S\S9, 10, 12, 13]{Sun}, and we write it out over $F$, for a totally real Galois field $K$ of any degree and general $A$, in the form we use (\cref{sec:certificate,sec:soundness,sec:completeness,sec:polynomial}). It reads the coefficient in three places, and the hypotheses of the next theorem are what each of them needs. Its quantifiers run over the points of $2E_A(L)$, $L=KF$, which hypotheses \ref{re:i} and \ref{re:ii} below make a free $\Z[i]$-module of rank one generated by a point of $E_A(F)$. Its completeness proof selects Gaussian primes $\pi$ and needs an index $h$ divisible by the order of the reduction of $E_A$ at one prime of $F$ above each $\pi$ and congruent to a fixed even integer modulo the order at the other. These orders are $\Nm(\pi\mp1)$ where $A$ is a square and $\Nm(\pi\mp i)$ where it is not (\cref{lem:orders}), and the prime pattern makes orders of the two kinds prime to each other at odd primes; hypothesis \ref{re:iii} puts one prime of each kind above every selected $\pi$, so the congruences can be met together. And the primes dividing $\Nm_{F/\Q}(A)$ join a finite set of primes that the tests leave aside. \begin{theorem}\label{thm:reduction} Let $K$ be a totally real Galois number field of degree $n$ with $K\cap F=\Q$ and $\sqrt3\notin K$, put $L=KF$, let $A\in\cO\setminus\{0\}$, and let $M_A$ be the product of the odd primes other than $5$ and $7$ that divide $\Nm_{F/\Q}(A)$. Suppose that \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{re:i} $E_A$ has $\Z[i]$-rank one over $F$ and over $L$; \item\label{re:ii} $E_A(L)_\tors=\{O,T\}$; \item\label{re:iii} for every Gaussian prime $\pi$ with $\pi\equiv9\pmod{16}$ and $\pi\equiv1+i\pmod{M_A}$ whose norm is prime to $\Nm_{F/\Q}(A)$, $A$ is a square modulo exactly one of the two primes of $F$ above $\pi$. \end{enumerate} Then $\Z$ is Diophantine in $K$. \end{theorem} The hypothesis $\sqrt3\notin K$ is there because the height bound on the tube (\cref{thm:height}) needs a prime $q\equiv7\pmod{12}$ with a prime of $K$ of odd residue degree above it; such $q$ are inert in $\Q(\sqrt3)$, so if $\sqrt3\in K$ every prime of $K$ above them has even residue degree. And $M_A$ leaves out $5$ and $7$ because the prime pattern fixes $\pi$ itself modulo $25$ and modulo $7$, as $\pi\equiv6\pmod{25}$ and $\pi\equiv1+3i\pmod7$ (\cref{thm:pattern}(i)), so hypothesis \ref{re:iii} can ask $\pi\equiv1+i$ only modulo the other odd primes of $\Nm_{F/\Q}(A)$. For $D\notin\{2,3\}$, \cref{thm:main} follows from \cref{thm:coefficient,thm:reduction} with $d$ the odd part of $D$, as $\sqrt2\in F$; we give the proof at the end of \cref{sec:polynomial}. The polynomial $\mathbf F$ exists, but the proof is ineffective, through the constants $H$ and $\kappa$ of the height bound of our earlier paper \cite[Theorem~1.6]{TotallyReal}, on which the integers $m$ and $M$ of the certificate (\cref{ssec:cert}) depend. The prime pattern \cite[Theorem~4.3]{TotallyReal} only supplies witnesses for each integer. For a given $d$ a triple $u$, $v$, $w$ can be found by a finite search, since the proof of \cref{thm:coefficient} asks of it only primality and congruences. We do not count the unknowns. \subsection*{The plan} \Cref{sec:coefficient} proves \cref{thm:coefficient}. \Cref{sec:certificate,sec:soundness,sec:completeness,sec:polynomial} prove \cref{thm:reduction} for any coefficient $A$, and the end of \cref{sec:polynomial} deduces \cref{thm:main} from \cref{thm:coefficient,thm:reduction}. \Cref{sec:biquad} proves \cref{thm:biquad} from the lemmas of \cref{ssec:proofcoef} and \cref{thm:reduction}. From our earlier paper we take the height bound on the tube \cite[Theorem~1.6]{TotallyReal}, with lemmas on the tube, the pole predicate \cite[Lemmas~5.1 and~5.3]{TotallyReal} and the four-unit prime pattern \cite[Theorem~4.3]{TotallyReal}. \subsection*{Computations} The proofs of \cref{thm:coefficient,thm:biquad} use one computation at the prime above $2$, of square classes and Hilbert symbols in the completion of $F$ at $\lambda$ (\cref{lem:dyadic}), which \cref{lem:transfer} carries to every pair of prime elements with the residues modulo~$32$ that we fix. We made it with the exact local routines of PARI/GP and checked it in Python by removing valuations and testing units modulo $\lambda^9$. The deposit \cite{Record} holds the programs and their outputs. \section{The coefficient}\label{sec:coefficient} We prove \cref{thm:coefficient}, with $u\equiv u_0$ and $v\equiv v_0\pmod{32}$, where \[ u_0=\zeta^3-3\zeta^2+3\zeta-2,\qquad v_0=3-\zeta-\zeta^2. \] The local conditions of the two descents are read off a finite computation at $\lambda$ for $u_0$ and $v_0$, carried to every such $u$ and $v$, and fixed at the primes above $d$ by residues of $u$ and $v$. In this section $\mathfrak p$ denotes a prime of $F$, $F_{\mathfrak p}$ the completion, $v_{\mathfrak p}$ its normalized valuation, so that $v_\lambda(2)=4$, and $(a/\mathfrak p)$ the quadratic residue symbol of a $\mathfrak p$-unit $a$ at an odd $\mathfrak p$. For a field $M$ and $b\in M^\times$, $[b]$ is the class of $b$ in $M^\times/M^{\times2}$. Since $-1=i^2$, $2i=(1+i)^2$ and $-4=(1+i)^4$ are squares in $F$, we use freely that $[-b]=[2ib]=[-4b]=[b]$. The field $F$ has class number one, as its Minkowski bound $\frac{4!}{4^4}\bigl(\frac4\pi\bigr)^2\sqrt{256}$ is less than $3$ and $(\lambda)$ is the only prime of norm $2$. Its unit group $\cO^\times$ is generated by $\zeta$ and $1+\sqrt2$: for a unit $c$, $c/\bar c$ is a power of $\zeta$ that is $\equiv1\pmod{\lambda^2}$, as complex conjugation is trivial on $\cO/\lambda^2\cO$, so $c/\bar c=\zeta^{2k}$ and $\zeta^{-k}c=\pm(1+\sqrt2)^n$. For $a,b\in F_{\mathfrak p}^\times$, $(a,b)_{\mathfrak p}$ is the Hilbert symbol. If $F_{\mathfrak p}(\sqrt a)/F_{\mathfrak p}$ is unramified and $b$ is a unit, then $(a,b)_{\mathfrak p}=1$; and at an odd $\mathfrak p$ at which $a$ is a unit, $(a,b)_{\mathfrak p}=(a/\mathfrak p)^{v_{\mathfrak p}(b)}$ \cite[Chapter~III, Theorem~4.4(d) and Proposition~1.2]{Milne}. For $a,b\in F^\times$ Hilbert reciprocity reads $\prod_{\mathfrak p}(a,b)_{\mathfrak p}=1$, as $F$ has no real place. \subsection{Descent by \texorpdfstring{$1+i$}{1+i}} For $B\in F^\times$ let $E_B$ and $T$ be as in \eqref{eq:EA}. The kernel of $[1+i]$ on $E_B$ is $\{O,T\}$: $[1+i]V=O$ means $[i]V=-V$, that is $(-x,iy)=(x,-y)$. \begin{lemma}\label{lem:descent} Let $B\in F^\times$ and let $M\supseteq F$ be a field. \begin{enumerate}[label=\textup{(\alph*)}] \item There is an injective homomorphism $\delta_M\colon E_B(M)/(1+i)E_B(M)\to M^\times/M^{\times2}$ with $\delta_M(O)=1$, $\delta_M(T)=[B]$ and $\delta_M(V)=[x(V)]$ for $V\ne O,T$. \item If $B'=Bt^4$ with $t\in M^\times$, then $(x,y)\mapsto(t^2x,t^3y)$ is an isomorphism $E_B\to E_{B'}$ over $M$ that commutes with $[i]$ and carries $\delta_M$ for $E_B$ to $\delta_M$ for $E_{B'}$. \end{enumerate} \end{lemma} \begin{proof} (a) Let $\varphi\colon E_B\to E'$, $E'\colon Y^2=X^3+4BX$, be the isogeny of degree two with kernel $\{O,T\}$ of \cite[Proposition~X.4.9]{Silverman} (with $a=0$, $b=-B$). By that proposition and its proof, $E'(M)/\varphi(E_B(M))\to M^\times/M^{\times2}$, $(X,Y)\mapsto[X]$, $(0,0)\mapsto[4B]$, is an injective homomorphism. The map $\iota(X,Y)=(X/(2i),\,Y/(2i(1+i)))$ is an isomorphism $E'\to E_B$ over $F$, as $(1+i)^4=-4$. So $\iota\circ\varphi$ is an endomorphism of $E_B$ of degree two with kernel $E_B[1+i]$; it factors through $[1+i]$ \cite[Corollary~III.4.11]{Silverman}, by an automorphism, which is some $[\eta]$ with $\eta^4=1$. Hence $\iota^{-1}$ carries $(1+i)E_B(M)$ onto $\varphi(E_B(M))$, and $\delta_M(V)$ is the class of $x(\iota^{-1}V)=2i\,x(V)$, which is $[x(V)]$; and $\delta_M(T)=[4B]=[B]$. (b) is direct, and $[t^2x]=[x]$, $[B']=[B]$. \end{proof} For a prime $\mathfrak p$ of $F$ write $W_{\mathfrak p}(B)$ for the image of $\delta_{F_{\mathfrak p}}$. As $F$ has no real place, the Selmer group of $1+i$ on $E_B$ over $F$ is \[ \Sel(B)=\{b\in F^\times/F^{\times2}:\ b\in W_{\mathfrak p}(B)\text{ for every prime }\mathfrak p\text{ of }F\}, \] and it contains $\delta_F(E_B(F))$. \begin{lemma}\label{lem:localimage} Let $B\in F^\times$ and $\mathfrak p$ a prime of $F$. \begin{enumerate}[label=\textup{(\alph*)}] \item $\#W_{\mathfrak p}(B)=2$ if $\mathfrak p$ is odd, and $\#W_\lambda(B)=8$. \item If $\mathfrak p$ is odd and $v_{\mathfrak p}(B)=0$, then $W_{\mathfrak p}(B)$ is the group of unit classes. If $\mathfrak p$ is odd and $v_{\mathfrak p}(B)$ is odd, then $W_{\mathfrak p}(B)=\{1,[B]\}$. \item If $r$ is the $\Z[i]$-rank of $E_B(F)$, then $r+1\le\dim_{\FF_2}\Sel(B)$. \end{enumerate} \end{lemma} \begin{proof} (a) By \cref{lem:descent}(b) we may assume $B$ integral at $\mathfrak p$. Let $R$ be the valuation ring of $F_{\mathfrak p}$, $\mathfrak m$ its maximal ideal, $p$ the residue characteristic and $e=v_{\mathfrak p}(p)$. For the integral equation of $E_B$ the parameter $\mathfrak z=-x/y$ identifies $E_1=\{O\}\cup\{V:v_{\mathfrak p}(x(V))<0\}$ with the formal group on $\mathfrak m$ \cite[Proposition~VII.2.2]{Silverman}, whose proof uses only that the equation is integral. Fix an integer $s>e/(p-1)$. The formal logarithm $\ell$ is an isomorphism of the subgroup $U$ of $E_1$ consisting of the points with $v_{\mathfrak p}(\mathfrak z)\ge s$ onto $\mathfrak m^s$ \cite[Theorem~IV.6.4(b)]{Silverman}, so $U$ is open, of finite index in the compact group $G=E_B(F_{\mathfrak p})$. Since $\mathfrak z([i]V)=i\,\mathfrak z(V)$, the endomorphism $[i]$ of the formal group is $Z\mapsto iZ$, so $\ell(iZ)=i\,\ell(Z)$ \cite[Corollary~IV.4.3]{Silverman}, and $[1+i]$ preserves $U$ and acts on $U\cong\mathfrak m^s$ as multiplication by $1+i$. The snake lemma for $0\to U\to G\to G/U\to0$, with $G/U$ finite, gives \[ \frac{\#G/(1+i)G}{\#\ker([1+i]|_G)}=\#\,\mathfrak m^s/(1+i)\mathfrak m^s=\#R/(1+i)R, \] which is $1$ if $p$ is odd and $4$ at $\lambda$, as $v_\lambda(1+i)=2$ and the residue field is $\FF_2$. The kernel is $\{O,T\}$, and $\delta_{F_{\mathfrak p}}$ is injective. (b) The unit classes form a group of order two. If $v_{\mathfrak p}(B)=0$ and $V=(x,y)$ with $x\ne0$, then $2v_{\mathfrak p}(y)=3v_{\mathfrak p}(x)$ if $v_{\mathfrak p}(x)<0$ and $2v_{\mathfrak p}(y)=v_{\mathfrak p}(x)$ if $v_{\mathfrak p}(x)>0$; so $W_{\mathfrak p}(B)$ consists of unit classes, and (a) gives equality. If $v_{\mathfrak p}(B)$ is odd, $[B]=\delta(T)$ is a nontrivial class in a group of order two. (c) As $\Z[i]$ is a principal ideal domain, $E_B(F)\cong\Z[i]^r\oplus\mathcal T$ with $\mathcal T$ finite, and $\#\mathcal T/(1+i)\mathcal T=\#\mathcal T[1+i]=2$. So $E_B(F)/(1+i)E_B(F)$ has dimension $r+1$, and $\delta_F$ embeds it in $\Sel(B)$. \end{proof} \subsection{The prime above \texorpdfstring{$2$}{2}}\label{ssec:dyadic} Put $\varepsilon=1+\zeta+\zeta^2=\zeta(1+\sqrt2)$, \[ A_0=-4u_0v_0(u_0-v_0)^2,\qquad X_0=2iu_0(u_0-v_0), \] the coefficient and the abscissa of $G$ for $(u,v)=(u_0,v_0)$. A unit of $F_\lambda$ is a square if and only if it is a square modulo $\lambda^9$, since if $r$ is a unit with $v_\lambda(r^2-b)\ge9>2v_\lambda(2r)$, Hensel's lemma gives a square root of $b$. The $256$ elements $1+c_1\lambda+\dots+c_8\lambda^8$ with $c_j\in\{0,1\}$ represent the units of $\cO/\lambda^9\cO$, and we find that exactly $8$ of them are squares. This decides square classes in $F_\lambda$, and gives the following facts, with \[ x_1=\lambda^4(1+\lambda^3+\lambda^6),\qquad x_2=\lambda^5(1+\lambda^4). \] \begin{lemma}\label{lem:dyadic} \begin{enumerate}[label=\textup{(\alph*)}] \item For $k\in\{1,5\}$ and $j\in\{1,2\}$, $x_j^3-k^2A_0x_j$ is a nonzero square in $F_\lambda$, and $[A_0]$, $[x_1]$, $[x_2]$ span a subgroup $W_0$ of order $8$ of $F_\lambda^\times/F_\lambda^{\times2}$. Hence $W_\lambda(A_0)=W_\lambda(25A_0)=W_0$. \item $[X_0]=[\varepsilon\lambda]=[A_0x_1x_2]$ in $F_\lambda^\times/F_\lambda^{\times2}$, and the Hilbert symbol $(X_0,b)_\lambda$ is $1$ for every $b\in W_0$. \item Of the sixteen classes $[\zeta^{a_1}\varepsilon^{a_2}\lambda^{a_3}u_0^{a_4}]$, $a_k\in\{0,1\}$, in $F_\lambda^\times/F_\lambda^{\times2}$, exactly $[1]$ and $[\varepsilon\lambda]$ lie in $W_0$. \item $(\varepsilon\lambda/u_0)=((1+i)/u_0)=-1$ and $((1+i)/v_0)=1$. \end{enumerate} \end{lemma} \begin{proof} In (a)--(c) we find the stated squares, that the eight products of $A_0$, $x_1$, $x_2$ are pairwise inequivalent, the classes in (b) and (c), and $(X_0,g)_\lambda=1$ for $g=A_0,x_1,x_2$. In (a), $[k^2A_0]=[A_0]$ is $\delta(T)$, and $[x_j]$ is $\delta$ of a point of $E_{k^2A_0}(F_\lambda)$ with abscissa $x_j$; so these classes lie in $W_\lambda(k^2A_0)$, which has order $8$ by \cref{lem:localimage}(a), and therefore span it. The second assertion of (b) follows by bilinearity. (d) The prime $(u_0)$ has norm $17$, and $u_0=(\zeta-1)^3-1$ vanishes at $\zeta=2$ in $\FF_{17}$, where $2^4=-1$; so the residue field of $(u_0)$ is $\FF_{17}$ with $\zeta\mapsto2$; there $\varepsilon\lambda=1-\zeta^3\mapsto-7$ and $1+i\mapsto5$, and neither is a square modulo $17$. The prime $(v_0)$ has norm $113$, and modulo $113$, $18^4\equiv-1$ and $3-18-18^2=-3\cdot113$, so the residue field of $(v_0)$ is $\FF_{113}$ with $\zeta\mapsto18$, and $1+i\mapsto325\equiv9\cdot11$; by quadratic reciprocity $(11/113)=(113/11)=(3/11)=1$. \end{proof} \begin{lemma}\label{lem:transfer} Let $u,v\in\cO$ be prime elements with $u\equiv u_0$ and $v\equiv v_0\pmod{32}$, and put $w=(u-v)/\lambda$, $A=-4uv(u-v)^2$ and $X=2iu(u-v)$. \begin{enumerate}[label=\textup{(\alph*)}] \item $A/A_0$ is a fourth power and $X/X_0$, $u/u_0$ are squares in $F_\lambda$. Hence $W_\lambda(A)=W_\lambda(d^2A)=W_0$ for every odd integer $d$, $[X]=[X_0]$, $(X,b)_\lambda=1$ for $b\in W_0$, and \cref{lem:dyadic}(c) holds with $u$ in place of $u_0$. \item $(\varepsilon\lambda/u)=((1+i)/u)=-1$ and $((1+i)/v)=1$. \end{enumerate} \end{lemma} \begin{proof} (a) As $(32)=(\lambda^{20})$ and $u_0,v_0,w_0=(u_0-v_0)/\lambda$ are units at $\lambda$ (of norms $17$, $113$, $433$), the ratios $u/u_0$, $v/v_0$ and $w/w_0$ are $\equiv1\pmod{\lambda^{19}}$. If $t\equiv1\pmod{\lambda^{19}}$, Hensel's lemma gives $r$ with $r^2=t$ and $v_\lambda(r-1)\ge15$, and then $s$ with $s^2=r$; so $t$ is a fourth power. Now $A/A_0=(u/u_0)(v/v_0)(w/w_0)^2$ and $X/X_0=(u/u_0)(w/w_0)$, as $u-v=\lambda w$. An odd integer is $\pm1$ or $\pm5$ times a square in $\Q_2$, so $d\in\{1,5\}\cdot F_\lambda^{\times2}$, and $d^2A\in\{1,25\}\cdot A_0\cdot F_\lambda^{\times4}$. \Cref{lem:descent}(b) and \cref{lem:dyadic}(a), (b) give the rest. (b) Let $h\in\{\varepsilon\lambda,1+i\}$. If $(u)=(u_0)$ there is nothing to prove. Otherwise apply Hilbert reciprocity to $(h,u/u_0)$. At $\lambda$ the factor is $1$ by (a). As $h$ is a unit at every odd prime, the factors at odd primes are $(h/\mathfrak p)^{v_{\mathfrak p}(u/u_0)}$, and the formula reads $(h/u)(h/u_0)=1$. The same argument gives $((1+i)/v)=((1+i)/v_0)$, and \cref{lem:dyadic}(d) gives the values. \end{proof} \subsection{The prime elements} Let $d>1$ be an odd squarefree integer and $\mathcal P_d$ the set of primes of $F$ above $d$. For $\mathfrak p\in\mathcal P_d$ the residue field $k_{\mathfrak p}$ contains the image of $\mu_8$, so $Q_{\mathfrak p}=\#k_{\mathfrak p}\equiv1\pmod8$ and $Q_{\mathfrak p}\ge9$; let $\chi_{\mathfrak p}$ be its quadratic character. Fix one prime $\mathfrak p^*\in\mathcal P_d$. \begin{lemma}\label{lem:residues} There are $t_{\mathfrak p}\in k_{\mathfrak p}\setminus\{0,1\}$, $\mathfrak p\in\mathcal P_d$, with $\chi_{\mathfrak p^*}(t_{\mathfrak p^*})=1$, $\chi_{\mathfrak p^*}(1-t_{\mathfrak p^*})=-1$, and $\chi_{\mathfrak p}(t_{\mathfrak p})=-1$ for $\mathfrak p\ne\mathfrak p^*$. \end{lemma} \begin{proof} For $\mathfrak p\ne\mathfrak p^*$ take any non-square. At $\mathfrak p^*$ write $\chi=\chi_{\mathfrak p^*}$, $Q=Q_{\mathfrak p^*}$; the number of admissible $t$ is $\frac14\sum_{t\ne0,1}(1+\chi(t))(1-\chi(1-t))$. Here $\sum_{t\ne0,1}\chi(t)=\sum_{t\ne0,1}\chi(1-t)=-1$, and $\chi(t(1-t))=\chi(t^{-1}-1)$, where $t^{-1}-1$ runs over $k_{\mathfrak p^*}\setminus\{0,-1\}$, so $\sum_{t\ne0,1}\chi(t(1-t))=-\chi(-1)=-1$. The number is $(Q-1)/4>0$. \end{proof} \begin{lemma}\label{lem:primes} Let $t_{\mathfrak p}\in k_{\mathfrak p}\setminus\{0,1\}$ for $\mathfrak p\in\mathcal P_d$. There are prime elements $u,v,w$ of $\cO$ with $u-v=\lambda w$, $u\equiv u_0$ and $v\equiv v_0\pmod{32}$, $w\equiv1$ and $v\equiv t_{\mathfrak p}u$ modulo every $\mathfrak p\in\mathcal P_d$, whose absolute norms are three distinct rational primes prime to $2d$. \end{lemma} \begin{proof} By the Chinese remainder theorem choose $U,V\in\cO$ with $U\equiv u_0$, $V\equiv v_0\pmod{32}$, and $U\equiv\lambda/(1-t_{\mathfrak p})$, $V\equiv t_{\mathfrak p}\lambda/(1-t_{\mathfrak p})$ modulo each $\mathfrak p\in\mathcal P_d$. Then $U-V\equiv\lambda w_0\pmod{32}$, so $(U-V)/\lambda\in\cO$, and on $\cO^2\cong\Z^8$, in the coordinates of the basis $1,\zeta,\zeta^2,\zeta^3$, we have the affine maps \[ \psi_1(s,t)=U+32ds,\qquad\psi_2(s,t)=V+32dt,\qquad\psi_3(s,t)=\frac{U-V}\lambda+\frac{32d}\lambda(s-t) \] to $\cO$, with $\psi_1-\psi_2=\lambda\psi_3$. Let $H$ be a large integer and $\Omega=[-H,H]^8$, let $\rho_F$ be the residue of $\zeta_F(s)$ at $s=1$, and let $\Lambda(x)=\log\Nm\mathfrak P$ if $x\cO=\mathfrak P^k$ with $\mathfrak P$ prime and $k\ge1$, and $\Lambda(x)=0$ otherwise. Let $\Lambda_{\rm Cr}$ be Kai's Cram\'er model of $\Lambda$ on $\cO$ at the level $Q=\exp((\log H)^{1/10})$ \cite[\S1.2.2 and Definition~5.1]{Kai}. Fix a norm-length compatible basis of $\cO$ \cite[Proposition~3.1]{Kai}, and let $\mathcal X$ be the set of elements of $\cO$ whose coordinates in it lie in $[-R,R]$, for an integer $R$ with $H\le R\ll_dH$ such that $\psi_j(\Omega\cap\Z^8)\subseteq\mathcal X$ for each $j$. For $N=H$ and $N=R$ we have $\exp((\log N)^{1/100})1$. Reduction modulo $p_0$ is injective on $\Omega\cap\Z^8$ and on $\mathcal X$, so the sum in \eqref{eq:kai} below is $p_0^8$ times a mean over $\mathcal G^2$, in which the indicators of the eight coordinate intervals of $\Omega$ are inserted. Each indicator has Fourier coefficients of absolute sum $O(\log p_0)$, since the normalized geometric sum at a frequency $r$ with $0<|r|\le(p_0-1)/2$ is at most $1/(2|r|)$. We expand the indicators and change variables to $u=\psi_1(s,t)$, $v=\psi_2(s,t)$. As multiplication by $32d$ is invertible on $\mathcal G$, each character of $(s,t)$ is a constant times a character of $u$ times a character of $v$, and we absorb these into the first two factors. With $\widehat f(\chi)=\mathbb E_xf(x)\overline{\chi(x)}$ and $\chi_*(z)=\chi(z/\lambda)$, Fourier inversion gives \[ \mathbb E_{u,v}f(u)g(v)h\bigl((u-v)/\lambda\bigr)=\sum_\chi\widehat f(\overline{\chi_*})\,\widehat g(\chi_*)\,\widehat h(\chi), \] and the three index maps permute the characters. In each term of the telescoping sum we bound the coefficients of the difference by $\|\widehat f\|_\infty\le(\sum_\chi|\widehat f(\chi)|^4)^{1/4}=\|f\|_{U^2(\mathcal G)}$, and use Cauchy--Schwarz and Parseval for the other two factors; multiplying by a character only permutes the coefficients. So replacing the three weights by $\Lambda_{\rm Cr}$ costs $O_{d,c}(p_0^8(\log p_0)^8(\log H)^{2-c})$, which is $o_d(H^8)$ for $c>10$. The linear parts of the $\psi_j$ have images $32d\cO$, $32d\cO$ and $(32d/\lambda)\cO$, of finite index, and kernels $s=0$, $t=0$ and $s=t$, no one of which contains another. Their coefficients do not depend on $H$, so they are eventually below $\exp((\log H)^{1/101})$, and the sixteen faces of $\Omega$ have parametrizations with Lipschitz constant $2H$ \cite[Definition~C.1]{Kai}. By \cite[Proposition~5.2]{Kai} the sum with the weights $\Lambda_{\rm Cr}$ is $(2H)^8\rho_F^{-3}\prod_{p0$, and \begin{equation}\label{eq:kai} \sum_{x\in\Omega\cap\Z^8}\Lambda(\psi_1(x))\Lambda(\psi_2(x))\Lambda(\psi_3(x))=(2H)^8\rho_F^{-3}\prod_p\beta_p+o_d(H^8)\gg_dH^8. \end{equation} We remove the $x$ at which some $\psi_j(x)$ does not generate a prime of degree one, or two of the norms agree; constants may depend on $d$. For $x\in\Omega$ every conjugate of $\psi_j(x)$ is $O(H)$, so $\Nm\psi_j(x)\ll H^4$ and each weight is $O(\log H)$. An ideal $\mathfrak P^k$ whose norm is not a prime has norm $p^e$ with $e\ge2$; there are $O(H^2)$ such ideals of norm $\ll H^4$. A nonzero ideal has $O(\log H)$ generators all of whose conjugates are $O(H)$: generators differ by units $\zeta^a(1+\sqrt2)^n$, and $1+\sqrt2$ has absolute values $1+\sqrt2$ and $\sqrt2-1$ at the two complex places, while the absolute values of a generator lie in $[(cH)^{-1},cH]$, as its norm is at least $1$. A value of $\psi_1$, $\psi_2$ or $\psi_3$ determines $s$, $t$ or $s-t$, leaving $O(H^4)$ points; so these $x$ contribute $O(H^6\log^4H)$ to \eqref{eq:kai}. For $j\ne j'$, $\Nm\psi_j(x)-\Nm\psi_{j'}(x)$ is a nonzero polynomial of degree at most $4$ on $\Z^8$, since one of the two terms depends on a variable the other does not involve; so it vanishes at $O(H^7)$ points of $\Omega$, which contribute $O(H^7\log^3H)$. For large $H$ some $x$ remains, and $(u,v,w)=(\psi_1,\psi_2,\psi_3)(x)$ will do; the three values are units at every prime above $2d$, so their norms are prime to $2d$. \end{proof} \subsection{The descents}\label{ssec:proofcoef} In this subsection $u$, $v$, $w$ are prime elements of $\cO$ with $u-v=\lambda w$, $u\equiv u_0$ and $v\equiv v_0\pmod{32}$, whose absolute norms are distinct rational primes, and $A=-4uv(u-v)^2$ and $X=x(G)=2iu(u-v)$ are as in \eqref{eq:A}. Then $A=-4\lambda^2uvw^2$ and $X=2i\lambda uw$, so \begin{equation}\label{eq:classes} [A]=[uv],\qquad[X]=[\lambda uw], \end{equation} $v_\lambda(A)=10$, and $A$ has valuation $1$ at $u$ and $v$ and $2$ at $w$. If $\mathfrak p$ is an odd prime of $F$ with $w\equiv1$ and $v\equiv tu\pmod{\mathfrak p}$ for some $t\in k_{\mathfrak p}\setminus\{0,1\}$, and $\chi_{\mathfrak p}$ is the quadratic character of $k_{\mathfrak p}$, then $u-v\equiv\lambda$ gives $u\equiv\lambda/(1-t)$, $A\equiv-4tu^2\lambda^2$ and $X\equiv2iu\lambda$ modulo $\mathfrak p$, and hence \begin{equation}\label{eq:chars} \chi_{\mathfrak p}(A)=\chi_{\mathfrak p}(t),\qquad\chi_{\mathfrak p}(X)=\chi_{\mathfrak p}(1-t). \end{equation} \begin{lemma}\label{lem:selA} \begin{enumerate}[label=\textup{(\alph*)}] \item $\Sel(A)=\{1,[A],[X],[AX]\}$, of dimension two. \item If $M\supseteq F$ is a number field unramified over $F$ at $(u)$ and $(v)$, then $E_A(M)_\tors=\{O,T\}$. \item $E_A(F)$ has $\Z[i]$-rank one, and $G$ has infinite order. \item If $\pi$ is a Gaussian prime with $\pi\equiv9\pmod{16}$, $\pi\equiv1+i\pmod{\Nm u\Nm v}$ and $\Nm\pi\ne\Nm w$, then $A$ is a unit at the two primes of $F$ above $\pi$ and a square modulo exactly one of them. \end{enumerate} \end{lemma} \begin{proof} (a) At odd $\mathfrak p\notin\{(u),(v),(w)\}$, $W_{\mathfrak p}(A)$ is the group of unit classes, and at $u$ and $v$ it is $\{1,[A]\}$ (\cref{lem:localimage}(b)). At $\lambda$ it is $W_0$ (\cref{lem:transfer}(a)). At $w$ it has order two and contains $\delta(G)=[X]$, of odd valuation; so $W_w(A)=\{1,[X]\}$. Let $b\in\Sel(A)$. Then $b$ has even valuation at every prime other than $\lambda$, $u$, $v$, $w$, and as $F$ has class number one and $\cO^\times$ is generated by $\zeta$ and $\zeta^{-1}\varepsilon=1+\sqrt2$, $b$ is a product of the classes of $\zeta$, $\varepsilon$, $\lambda$, $u$, $v$, $w$. By \eqref{eq:classes}, $[A]$ has odd valuation at $v$ and even at $w$, and $[X]$ the reverse. Multiplying $b$ by a product of $[A]$ and $[X]$, which lie in $\Sel(A)$, we obtain $b'\in\Sel(A)$ in the span of $[\zeta]$, $[\varepsilon]$, $[\lambda]$, $[u]$. Its class at $\lambda$ lies in $W_0$, so $b'\in\{1,[\varepsilon\lambda]\}$ by \cref{lem:transfer}(a) and \cref{lem:dyadic}(c). At $u$, $\varepsilon\lambda$ is a non-square unit (\cref{lem:transfer}(b)), while $W_u(A)=\{1,[A]\}$ with $[A]$ of odd valuation; so $b'=1$. Hence $\Sel(A)=\{1,[A],[X],[AX]\}$, of dimension two, as $[A]$ and $[X]$ are independent by their valuations at $v$ and $w$. (b) Let $\mathfrak u$ be $(u)$ or $(v)$, $p$ its residue characteristic, $V\in E_A(M)$ a torsion point of order prime to $p$, and $\mathfrak U$ a prime of $M$ above $\mathfrak u$; as $M_{\mathfrak U}/F_{\mathfrak u}$ is unramified, $A$ has valuation $1$ in $M_{\mathfrak U}$. Let $\alpha^4=A$. The polynomial $Z^4-A$ is Eisenstein, so $N=M_{\mathfrak U}(\alpha)$ is totally ramified of degree $4$ over $M_{\mathfrak U}$, and Galois, as $i\in F$; let $g$ be the automorphism with $g(\alpha)=i\alpha$. Over $N$, $(x,y)\mapsto(x/\alpha^2,y/\alpha^3)$ is an isomorphism of $E_A$ onto $E_1$, which has good reduction since $p$ is odd. Let $Q$ be the image of $V$. Since $g$ fixes the coordinates of $V$, $g(Q)=(-x/\alpha^2,\,iy/\alpha^3)=[i]Q$. As $g$ acts trivially on the residue field, $g(Q)$ and $Q$ have the same reduction, and reduction is injective on the torsion of $E_1(N)$ of order prime to $p$ \cite[Proposition~VII.3.1(b)]{Silverman}; so $[i]Q=Q$ and $Q\in E_1[1+i]$. So $V\in\{O,T\}$. As $\Nm u\ne\Nm v$, every torsion point of $E_A(M)$ is a sum of one of order prime to $\Nm u$ and one of order prime to $\Nm v$, and $E_A(M)_\tors=\{O,T\}$. (c) By (b) with $M=F$, $E_A(F)_\tors=\{O,T\}$, whose image under $\delta_F$ is $\{1,[A]\}$; as $\delta_F(G)=[X]$, $G$ has infinite order. By (a) and \cref{lem:localimage}(c) the $\Z[i]$-rank of $E_A(F)$ is at most one, so it is one. (d) As $\Nm\pi\equiv1\pmod{16}$, $\pi$ has two primes $\mathfrak Q$, $\mathfrak Q'$ of $F$ above it, and $\Nm\pi\notin\{\Nm u,\Nm v\}$, as $\pi$ does not divide $1+i$; so $\pi$ is a unit at $u$, $v$, $w$, and $A$ is a unit at $\mathfrak Q$, $\mathfrak Q'$. Apply Hilbert reciprocity to $(A,\pi)$. The factor at $\lambda$ is $1$, as $v_\lambda(\pi/9-1)\ge16$ makes $\pi$ a square in $F_\lambda$. The factors at $\mathfrak Q$ and $\mathfrak Q'$ are $(A/\mathfrak Q)$ and $(A/\mathfrak Q')$, and those at $u$ and $v$ are $(\pi/u)=((1+i)/u)=-1$ and $(\pi/v)=((1+i)/v)=1$, as $u\mid\Nm u$ and $v\mid\Nm v$ in $\cO$ (\cref{lem:transfer}(b)). At $w$ the factor is $(\pi/w)^2=1$, and at every other prime both entries are units. So $(A/\mathfrak Q)(A/\mathfrak Q')=-1$. \end{proof} \begin{lemma}\label{lem:twist} Let $d>1$ be an odd squarefree integer prime to $\Nm u\Nm v\Nm w$, with $w\equiv1$ modulo every $\mathfrak p\in\mathcal P_d$. \begin{enumerate}[label=\textup{(\alph*)}] \item $d$ is a square in $F_w$, and $W_{\mathfrak p}(d^2A)=W_{\mathfrak p}(A)$ for every prime $\mathfrak p\notin\mathcal P_d$. For $\mathfrak p\in\mathcal P_d$, $A$ is a unit at $\mathfrak p$; $W_{\mathfrak p}(d^2A)$ is the group of unit classes if $A$ is not a square in $F_{\mathfrak p}$, and $W_{\mathfrak p}(d^2A)=\{1,[da]\}$ if $A=a^2$ with $a\in F_{\mathfrak p}$. \item For $z\in\Sel(d^2A)$, the product of the symbols $(X,z)_{\mathfrak p}$ over the $\mathfrak p\in\mathcal P_d$ at which $A$ is a square is $1$. \item If $A$ is a square at exactly one $\mathfrak p^*\in\mathcal P_d$, and $X$ is a non-square unit at $\mathfrak p^*$, then $\Sel(d^2A)=\{1,[A]\}$, and $E_{d^2A}(F)$ has $\Z[i]$-rank zero. \end{enumerate} \end{lemma} \begin{proof} (a) Apply Hilbert reciprocity to $(d,w)$. The factor at $w$ is $(d/w)$, and the factor at $\mathfrak p\in\mathcal P_d$ is $(w/\mathfrak p)=1$, as $w\equiv1\pmod{\mathfrak p}$ and $v_{\mathfrak p}(d)=1$. At $\lambda$, $d\in\{1,5\}\cdot F_\lambda^{\times2}$ (\cref{lem:transfer}(a)), $F_\lambda(\sqrt5)/F_\lambda$ is unramified, and $w$ is a unit, so $(d,w)_\lambda=1$. The other factors are $1$, as both entries are units at odd primes. So $(d/w)=1$, and $d$ is a square in $F_w$. At $\lambda$, $W_\lambda(d^2A)=W_\lambda(A)$ by \cref{lem:transfer}(a). At odd $\mathfrak p\notin\{(u),(v),(w)\}\cup\mathcal P_d$ both are the group of unit classes, and at $u$ and $v$ both are $\{1,[A]\}$ (\cref{lem:localimage}(b)). At $w$, $W_w(d^2A)=W_w(A)$ by \cref{lem:descent}(b) with $t=\sqrt d\in F_w$. Let $\mathfrak p\in\mathcal P_d$. As $d$ is prime to $\Nm u\Nm v\Nm w$, $A=-4\lambda^2uvw^2$ is a unit at $\mathfrak p$, and $W_{\mathfrak p}(d^2A)$ has order two and contains $[d^2A]=[A]$. If $A$ is not a square, this is a non-square unit class, and $W_{\mathfrak p}(d^2A)$ is the group of unit classes. If $A=a^2$, then $(da,0)\in E_{d^2A}(F_{\mathfrak p})$, and $[da]$, of odd valuation, generates $W_{\mathfrak p}(d^2A)$. (b) Apply Hilbert reciprocity to $(X,z)$. At $\lambda$ the factor is $1$ by \cref{lem:transfer}(a), as $z\in W_0$. At $u$ and $v$, both $[X]=\delta(G)$ and $z$ lie in $\{1,[A]\}$, and at $w$ both lie in $\{1,[X]\}$, by (a) and the proof of \cref{lem:selA}(a); as $(c,c)_{\mathfrak p}=(c,-1)_{\mathfrak p}=1$, these factors are $1$. At the primes of $\mathcal P_d$ at which $A$ is not a square and at the remaining odd primes, $X$ is a unit and $z$ a unit class, by (a), so the factor is $1$. (c) Let $z\in\Sel(d^2A)$. By (b), $(X,z)_{\mathfrak p^*}=1$; as $X$ is a non-square unit at $\mathfrak p^*$, $(X,z)_{\mathfrak p^*}=(-1)^{v_{\mathfrak p^*}(z)}$, so $v_{\mathfrak p^*}(z)$ is even, and as $z\in W_{\mathfrak p^*}(d^2A)=\{1,[da]\}$, $z$ is a square at $\mathfrak p^*$. At the other primes of $\mathcal P_d$, $z$ is a unit class by (a). So $z$ has even valuation at every prime of $\mathcal P_d$, where $W_{\mathfrak p}(A)$ is the group of unit classes, and $W_{\mathfrak p}(d^2A)=W_{\mathfrak p}(A)$ at every other prime; so $z\in\Sel(A)$. Of $[A]$, $[X]$, $[AX]$, only $[A]$ is a square at $\mathfrak p^*$. So $\Sel(d^2A)\subseteq\{1,[A]\}$ by \cref{lem:selA}(a); as $[A]=[d^2A]=\delta(T)$, equality holds, and $E_{d^2A}(F)$ has $\Z[i]$-rank zero by \cref{lem:localimage}(c). \end{proof} \needspace{4\baselineskip} \begin{lemma}\label{lem:rankL} Let $B\in F^\times$, and let $D_1,\dots,D_r$ be integers such that $L'=F(\sqrt{D_1},\dots,\sqrt{D_r})$ has degree $2^r$ over $F$. For $S\subseteq\{1,\dots,r\}$ put $D_S=\prod_{j\in S}D_j$. Then the $\Z[i]$-rank of $E_B(L')$ is the sum over $S$ of the $\Z[i]$-ranks of $E_{D_S^2B}(F)$. \end{lemma} \begin{proof} The group $\Gal(L'/F)$ is $(\Z/2\Z)^r$, and its characters are the $\chi_S$ with $g(\sqrt{D_S})=\chi_S(g)\sqrt{D_S}$. As $[i]$ is defined over $F$, the $\Q(i)$-vector space $E_B(L')\otimes\Q$ is the sum of the eigenspaces of the $\chi_S$. The isomorphism $\psi_S(x,y)=(D_Sx,D_S\sqrt{D_S}\,y)$ of $E_B$ onto $E_{D_S^2B}$ over $L'$ commutes with $[i]$ and satisfies $g\psi_S(V)=[\chi_S(g)]\psi_S(gV)$ for $g\in\Gal(L'/F)$, so it carries the $\chi_S$-eigenspace onto the invariants of $\Gal(L'/F)$ in $E_{D_S^2B}(L')\otimes\Q$, which are $E_{D_S^2B}(F)\otimes\Q$. \end{proof} \begin{proof}[Proof of \cref{thm:coefficient}] Let $d>1$ be odd and squarefree, and take $t_{\mathfrak p}$, $\mathfrak p^*$ and $u,v,w$ as in \cref{lem:residues,lem:primes}; the norms of $u$, $v$, $w$ are prime to $2d$, and $w\equiv1$ and $v\equiv t_{\mathfrak p}u$ modulo every $\mathfrak p\in\mathcal P_d$. By \eqref{eq:chars} with $t=t_{\mathfrak p}$ and \cref{lem:residues}, $A$ is a square and $X$ a non-square unit at $\mathfrak p^*$, and $A$ is a non-square unit at the other primes of $\mathcal P_d$. So \cref{lem:selA}(a), (c) and \cref{lem:twist}(c) give \ref{co:a}. \Cref{lem:selA}(b) with $M=F(\sqrt d)$, which is unramified over $F$ at $(u)$ and $(v)$, gives \ref{co:b}, and \cref{lem:selA}(d) gives \ref{co:c}. \end{proof} \section{The certificate}\label{sec:certificate} \Cref{sec:certificate,sec:soundness,sec:completeness,sec:polynomial} prove \cref{thm:reduction}. This section sets up the certificate, a statement about $X\in K$ that \cref{sec:soundness,sec:completeness} show holds exactly when $X\in\Z$ (\cref{prop:sound,prop:complete}). We follow Sun \cite[\S\S9, 10, 12, 13]{Sun} and our earlier paper \cite[\S7]{TotallyReal}, with four changes, all forced by the base field $F=\Q(\zeta_8)$, which has degree $4$ and no real place. First, $L=KF$ has degree $4$ over $K$, with basis $1,\zeta,\zeta^2,\zeta^3$ (\cref{lem:field}(a)), so an abscissa $x(\mathsf N_i)\in L$ has four coordinates in $K$, while the height bound (\cref{thm:height}) and the pole predicate $\Phi_K$ (\cref{lem:pole}) are statements about elements of $K$. The certificate (\cref{ssec:cert}) therefore gives each of the sixteen coordinates $a_j$ its own tube variable $s_j=y_j^2\eta+1/q$, with $y_j=1+\varpi a_j^2$, and its own detector $B_j$; it adds $B_0$, with $y_0=1$, for the height of $\eta$, and a scalar detector $B_{\rm sc}$ for the twelve tests that lie in $K$. Each detector is read at one prime at a time by \cref{lem:selector}, which is Sun's \cite[Lemma~9.1]{Sun} for $L/K$ of degree $4$, and the proof of \cref{prop:sound} bounds the height of each $a_j$ by the primes at which its own detector acts. Second, $E_A$ has complex multiplication by $\Z[i]$ over $F$, so $2E_A(L)=\Z[i]P$ (\cref{lem:index}), the indices that the certificate reads are Gaussian integers, and the count for $\beta-n_1$ in \cref{prop:sound} runs over primes of $K(i)$. Third, completeness must make every test small at every archimedean place of $L$, and these lie over the two complex places of $F$; the closure of the multiples of $P$ in the product of the two complex curves has a torus as identity component, on which suitable multiples are dense (\cref{lem:complexorbit}), in place of Sun's real torus. Fourth, the conjugation is $\sigma\colon\zeta\mapsto-\zeta$, the generator of $\Gal(F/\Q(i))$. It fixes $i$, so it commutes with $[i]$ and keeps the Gaussian labels, and it exchanges the two complex places of $F$ (\cref{lem:field}(d)) and the two primes of $F$ above each Gaussian prime $\pi\equiv9\pmod{16}$, where hypothesis~\ref{re:iii} of \cref{thm:reduction} is read. As in \cite[Lemma~9.3]{Sun} and \cite[\S7]{TotallyReal}, the tube variable carries $\eta=a_0^2+b_0^2$, which keeps $s_j$ totally positive with $v_{\mathfrak q}(s_j)\le-1$ (\cref{lem:tube}(b)) and lets completeness take $\eta=\Nm(\pi_0)/w_0^2$ for the Gaussian prime $\pi_0$ given by the prime pattern (\cref{prop:complete}). Throughout this section and the next three, $K$, $n=[K:\Q]$, $L$ and $A$ are as in \cref{thm:reduction} and satisfy its hypotheses, $d_K$ is the discriminant of $K$, $G=\Gal(L/F)$, $E=E_A$ and $T=(0,0)$. Let $\sigma$ be the automorphism $\zeta\mapsto\zeta^5=-\zeta$ of $F$; it fixes $i$ and sends $\sqrt2$ to $-\sqrt2$. Let $E^\sigma\colon y^2=x^3-\sigma(A)x$ be the conjugate curve. For a point $V\ne O$ of $E$ or $E^\sigma$ put $\rho(V)=1/x(V)$ and $\mathfrak z(V)=-x(V)/y(V)$ where these are finite, and $\rho(O)=\mathfrak z(O)=0$. Both curves have the integral equations above at every prime of $F$, with discriminants $64A^3$ and $64\sigma(A)^3$, so they have good reduction at every prime of $F$ not dividing $2\Nm_{F/\Q}(A)$. \subsection{Fields and points} \begin{lemma}\label{lem:field} \begin{enumerate}[label=\textup{(\alph*)}] \item $K\cap F=\Q$, so $[L:K]=4$, $1,\zeta,\zeta^2,\zeta^3$ is a $K$-basis of $L$, and restriction $\Gal(L/K)\to\Gal(F/\Q)$ is an isomorphism. For $c_0,\dots,c_3\in K$, $\Tr_{L/K}(c_0+c_1\zeta+c_2\zeta^2+c_3\zeta^3)=4c_0$, and the coordinates of an element of $F$ in this basis are rational. \item $L/K$ is unramified outside $2$, and $L/\Q$ is unramified outside $2d_K$. \item A rational prime $p\equiv1\pmod8$ splits completely in $F$. \item $\sigma$ exchanges the two complex places of $F$. \end{enumerate} \end{lemma} \begin{proof} (a) $K\cap F=\Q$ is a hypothesis, and the rest follows, as $F/\Q$ is Galois and $\Tr_{F/\Q}(\zeta^k)=0$ for $k=1,2,3$. (b) $F/\Q$ is ramified only at $2$, $K/\Q$ only at primes dividing $d_K$, and $L=K(\zeta)$. (c) is the decomposition law in $\Q(\zeta_8)$. (d) The places of $F$ are $\{\zeta\mapsto e^{\pi i/4},e^{-\pi i/4}\}$ and $\{\zeta\mapsto e^{3\pi i/4},e^{-3\pi i/4}\}$, and $\sigma$ multiplies the exponents by $5$. \end{proof} Let $\tau\in\Gal(L/K)$ restrict to $\sigma$. For $V\in E(L)$ let $V^\tau\in E^\sigma(L)$ be the point with the $\tau$-conjugate coordinates. As $\tau(i)=i$, \begin{equation}\label{eq:taulabel} ([u]V)^\tau=[u]V^\tau\qquad(u\in\Z[i],\ V\in E(L)), \end{equation} and for $V\in E(F)$, $V^\tau=V^\sigma$ has the $\sigma$-conjugate coordinates. \begin{lemma}\label{lem:index} $2E(L)\subseteq E(F)$, and $2E(L)=\Z[i]P$ for a point $P\in E(F)$ of infinite order. \end{lemma} \begin{proof} By \ref{re:i}, $E(F)$ and $E(L)$ have the same $\Z[i]$-rank, and $E(L)$ is finitely generated, so $E(L)/E(F)$ is finite: for $R\in E(L)$ there is $k\ge1$ with $[k]R\in E(F)$. For $g\in G$, $[k](gR-R)=O$, so $gR-R\in\{O,T\}$ by \ref{re:ii}, and $g([2]R)=[2]R$; hence $[2]R\in E(F)$. If $[2]V$ is torsion, then $V$ is, $V\in\{O,T\}$ and $[2]V=O$. So $2E(L)$ is a torsion-free $\Z[i]$-submodule of $E(F)$ of rank one, and it is free, $\Z[i]$ being a principal ideal domain. \end{proof} We fix $P$ as in \cref{lem:index}. \subsection{Formal logarithms}\label{ssec:formal} Let $\omega=(1+\sum_{t\ge1}b_tZ^t)\,dZ$ be the normalized invariant differential of the formal group $\hat E$ of the equation of $E$ at the parameter $\mathfrak z$. Its coefficients lie in $\Z[A]$, as the group law does \cite[Proposition~IV.1.1 and Example~IV.2.2.3]{Silverman} and $\omega$ is computed from it \cite[Proposition~IV.4.2]{Silverman}. With $b_0=1$, the formal logarithm is $\ell(Z)=\sum_{t\ge1}(b_{t-1}/t)Z^t$, and $\ell_m(Z)=\sum_{t\le m}(b_{t-1}/t)Z^t$. For $E^\sigma$ we write $\ell^\sigma$ and $\ell^\sigma_m$; their coefficients are the $\sigma$-conjugates. As $\mathfrak z([i]V)=i\,\mathfrak z(V)$, $[i]$ acts on $\hat E$ as $Z\mapsto iZ$, and $\ell(iZ)=i\,\ell(Z)$, as in the proof of \cref{lem:localimage}(a); likewise for $\ell^\sigma$. Let $k$ be the completion of $L$ or of $F$ at a prime above a rational prime $p$, with valuation ring $R$, maximal ideal $\mathfrak m$, normalized valuation $v$ and $e=v(p)$. For the integral equation of $E$, $E_1(k)=\{O\}\cup\{V:v(x(V))<0\}$ is identified with $\hat E(\mathfrak m)$ by $\mathfrak z$, with $v(x(V))=-2v(\mathfrak z(V))$ for $V\ne O$, as in the proof of \cref{lem:localimage}(a). So $E_1(k)$ is an open subgroup of the compact group $E(k)$, of finite index, and $V\in E_1(k)$ if and only if $\rho(V)$ is finite and $v(\rho(V))\ge1$. On $E_1(k)$, $\ell\circ\mathfrak z$ is a homomorphism \cite[Theorem~IV.6.4(a)]{Silverman}, so for $V\in E_1(k)$ and $u=a+bi\in\Z[i]$, \begin{equation}\label{eq:loglabel} \ell(\mathfrak z([u]V))=a\,\ell(\mathfrak z(V))+b\,\ell(i\,\mathfrak z(V))=u\,\ell(\mathfrak z(V)). \end{equation} The same holds for $E^\sigma$, and here and below a Gaussian integer is read in $k$ through $\Z[i]\subset F\subseteq k$. \needspace{4\baselineskip} \begin{lemma}\label{lem:formal} Let $k$ be as above with $e=1$ and $p\ge5$, and let $Z\in\mathfrak m$ and $m\ge1$. \begin{enumerate}[label=\textup{(\alph*)}] \item $v(\ell(Z))=v(\ell_m(Z))=v(Z)$. \item If $p>m+1$, then $v(\ell(Z)-\ell_m(Z))\ge v(Z)+m$. \item Let $Y\in E(k)$ and $\nu,\nu'\in\Z[i]$, $\nu'\ne0$, with $[\nu]Y,[\nu']Y\in E_1(k)$ and $[\nu']Y\ne O$. Then $v(\mathfrak z([\nu]Y))-v(\mathfrak z([\nu']Y))=v(\nu)-v(\nu')$, the quotient $\Lambda=\ell_m(\mathfrak z([\nu]Y))/\ell_m(\mathfrak z([\nu']Y))$ is defined, and $v(\Lambda)=v(\nu)-v(\nu')$. If $p>m+1$ and $v(\nu)\ge v(\nu')$, then $v(\Lambda-\nu/\nu')\ge m$. \end{enumerate} The same holds for $E^\sigma$ with $\ell^\sigma$ and $\ell^\sigma_m$. \end{lemma} \begin{proof} (a) At $Z=0$ both logarithms vanish, giving (a) and (b). For $Z\ne0$ and $t\ge2$, $v\bigl((b_{t-1}/t)Z^t\bigr)\ge v(Z)+(t-1)-v_p(t)>v(Z)$, as $v_p(t)\le\log_5tm+1$ and $v(\nu)\ge v(\nu')$, then $r=\nu/\nu'$ is integral and $\ell_m(Z)-r\ell_m(Z')=(\ell_m-\ell)(Z)-r(\ell_m-\ell)(Z')$ has valuation at least $v(Z')+m$ by (b); divide by $\ell_m(Z')$. \end{proof} \begin{lemma}\label{lem:anchor} Let $m\ge1$ and $c_*\ne0$ be integers, and $\mathfrak Q$ a prime of $L$ above a prime $p>m+1$, $p\ge5$, $p\nmid c_*$, with $e=1$ at $\mathfrak Q$. Let $h,u_i,n_i\in\Z[i]$ $(1\le i\le4)$, and put $\mathsf H=[h]P$, $\mathsf U_i=[u_i]P$, $V_0=\mathsf H-[c_*]P$ and $V_i=\mathsf U_i-[c_*n_i]P$. Suppose that $\mathsf H\ne O\ne V_0$, that $\mathsf H,\mathsf U_i\in E_1(L_{\mathfrak Q})$ and $V_0^\tau,V_i^\tau\in E^\sigma_1(L_{\mathfrak Q})$, and that \[ L_i=\frac{\ell_m(\mathfrak z(\mathsf U_i))}{\ell_m(\mathfrak z(\mathsf H))},\qquad L'_i=\frac{\ell^\sigma_m(\mathfrak z(V_i^\tau))}{\ell^\sigma_m(\mathfrak z(V_0^\tau))} \] satisfy $v(L_i-L'_i)\ge m$. Then $v(L_i-n_i)\ge m$ for $1\le i\le4$. Hence, if $f\in\Z[X_1,\dots,X_4]$ and $v(f(L_1,\dots,L_4))\ge m$, then $\mathfrak p^m$ divides $f(n_1,\dots,n_4)$ in $\Z[i]$, where $\mathfrak p$ is the prime of $\Z[i]$ below $\mathfrak Q$. \end{lemma} \begin{proof} We follow the proof of \cite[Lemma~9.2]{Sun}. By \eqref{eq:taulabel}, $V_0^\tau=[h-c_*]P^\tau$ and $V_i^\tau=[u_i-c_*n_i]P^\tau$, with the same Gaussian labels as on $E$, read through the same embedding of $\Z[i]$ in $L_{\mathfrak Q}$, since $\tau$ fixes $i$. As $p\nmid c_*$, one of $h$ and $h-c_*$ is a unit at $\mathfrak Q$. If $h$ is, \cref{lem:formal}(c) on $E$ with $Y=P$ gives $v(L_i-u_i/h)\ge m$; so $L_i$ and $L'_i$ are integral, and \cref{lem:formal}(c) on $E^\sigma$ with $Y=P^\tau$ gives $v(u_i-c_*n_i)\ge v(h-c_*)$ and then $v\bigl(L'_i-(u_i-c_*n_i)/(h-c_*)\bigr)\ge m$. If $h-c_*$ is a unit, the same argument runs in the other order. In both cases $hL_i\equiv u_i$ and $(h-c_*)L'_i\equiv u_i-c_*n_i$ modulo $\mathfrak m^m$, so \[ c_*L_i=hL_i-(h-c_*)L'_i-(h-c_*)(L_i-L'_i)\equiv c_*n_i\pmod{\mathfrak m^m}, \] and $c_*$ is a unit. Then $f(L_1,\dots,L_4)\equiv f(n_1,\dots,n_4)$, and $v=v_{\mathfrak p}$ on $\Z[i]$ as $e=1$. \end{proof} \begin{lemma}\label{lem:scalar} Let $p\ge5$ be a prime not dividing $\Nm_{F/\Q}(A)$, $m\ge1$, and $h,s\in\Z[i]$ nonzero. Let $G_1,\dots,G_{12}\in\Q$ be the coordinates of $\rho([h]P)$, $\rho([s]P)$ and $\mathfrak z([s]P)/\mathfrak z([h]P)$, in this order. If $v_p(G_k)\ge1$ for $k\le8$ and $v_p(G_k)\ge m$ for $9\le k\le12$, then $p^m$ divides $s$ in $\Z[i]$. \end{lemma} \begin{proof} We follow the proof of \cite[Lemma~12.3]{Sun}. Let $\mathfrak Q$ be a prime of $F$ above $p$; then $e=1$. As $\cO=\Z[\zeta]$, the hypotheses give $v_{\mathfrak Q}(\rho([h]P)),v_{\mathfrak Q}(\rho([s]P))\ge1$ and $v_{\mathfrak Q}\bigl(\mathfrak z([s]P)/\mathfrak z([h]P)\bigr)\ge m$. So $[h]P,[s]P\in E_1(F_{\mathfrak Q})$, both $\ne O$, and \cref{lem:formal}(c) gives $v_{\mathfrak Q}(s)\ge m+v_{\mathfrak Q}(h)\ge m$. Every prime of $\Z[i]$ above $p$ lies below a prime of $F$. \end{proof} \subsection{Integers and heights} Put \begin{equation}\label{eq:lucas} \mathcal L(X_1,X_2,X_3,X_4)=X_3^2-X_2(X_2-2)X_3X_4+(X_2-2)^2X_4^2-1, \end{equation} which does not involve $X_1$. For $\nu\in\Z[i]$, $|\nu|$ is the complex absolute value. \needspace{4\baselineskip} \begin{lemma}\label{lem:lucas} \begin{enumerate}[label=\textup{(\alph*)}] \item If $n_2,n_3,n_4\in\Z[i]$, $|n_2|\ge9$, $n_4\ne0$ and $\mathcal L(X_1,n_2,n_3,n_4)=0$, then $\log|n_4|\ge|n_2|-4$. \item For every integer $n_2\ge3$ there are positive integers $n_3,n_4$ with $\mathcal L(X_1,n_2,n_3,n_4)=0$. \end{enumerate} \end{lemma} \begin{proof} We follow the proof of \cite[Lemma~12.4]{Sun}, over $\Z[i]$. Put $a=n_2$ and $w=(a-2)n_4$, so that $\mathcal L=0$ reads $t^2-atw+w^2=1$ with $t=n_3$. Let $U_0=0$, $U_1=1$, $U_{k+1}=aU_k-U_{k-1}$ and $U_{-k}=-U_k$. Each $U_k$ is a polynomial in $a$ with integer coefficients, equal to $k$ at $a=2$, so $U_k\equiv k\pmod{a-2}$; and $U_{k+1}^2-aU_{k+1}U_k+U_k^2=U_k^2-U_{k+1}U_{k-1}$ does not depend on $k$, so it is $1$. (b) Take $k=2(a-2)$, $n_3=U_{k+1}$ and $n_4=U_k/(a-2)\in\Z$. As $U_{j+1}-U_j=(a-2)U_j+(U_j-U_{j-1})$, the $U_j$ with $j\ge1$ increase, so $n_3,n_4>0$. (a) Here $|a|\ge9$, and $a^2-4$ is not a square in $\Q(i)$: otherwise $(a-b)(a+b)=4$ with $b\in\Z[i]$, and $|2a|\le|a-b|+|a+b|\le5$. Let $\varrho_\pm$ be the roots of $X^2-aX+1$, with $|\varrho_+|\ge1$; then $\varrho_-=\varrho_+^{-1}$, $\varrho_\pm\notin\Q(i)$ and $|\varrho_+|\ge|a|-1\ge8$. The numbers $\epsilon=t-w\varrho_+$ with $(t,w)\in\Z[i]^2$ and $t^2-atw+w^2=1$ form a subgroup $\mathcal U$ of $\C^\times$, with $\epsilon^{-1}=t-w\varrho_-$, as $t^2-atw+w^2=(t-w\varrho_+)(t-w\varrho_-)$; and $|w|\,|\varrho_+-\varrho_-|=|\epsilon-\epsilon^{-1}|\le|\epsilon|+|\epsilon|^{-1}$, so only finitely many $\epsilon$ have $|\epsilon|$ in a given compact subset of $(0,\infty)$. If $1\le|\epsilon|<|\varrho_+|$, then $|w|\le(|\varrho_+|+1)/(|\varrho_+|-|\varrho_+|^{-1})=|\varrho_+|/(|\varrho_+|-1)<\sqrt2$, so $w\in\{0,\pm1,\pm i\}$. Now $w=0$ gives $\epsilon=\pm1$; $w=\pm1$ gives $t\in\{0,aw\}$ and $|\epsilon|=|\varrho_+|^{\pm1}$; and $w=\pm i$ gives $(2t-aw)^2=8-a^2$, so $(a+ib')(a-ib')=8$ with $b'=2t-aw$, and $|2a|\le9$. Hence $\mathcal U=\{\pm\varrho_+^k:k\in\Z\}$. Now $w\ne0$, and $\varrho_+^k=U_k\varrho_+-U_{k-1}$ for all $k$, so comparing coefficients of $\varrho_+$ gives $w=\mp U_k$ with $k\ne0$. As $a-2$ divides $w$, hence $U_k$, hence $k$, we have $|k|\ge|a|-2$. From $U_k=(\varrho_+^k-\varrho_-^k)/(\varrho_+-\varrho_-)$ and $|\varrho_+-\varrho_-|\le2|\varrho_+|$, \[ |w|\ge\frac{|\varrho_+|^{|k|}-1}{2|\varrho_+|}\ge\frac{(|a|-1)^{|a|-3}}4, \] so $\log|n_4|\ge(|a|-3)\log(|a|-1)-\log(4(|a|+2))$. This exceeds $|a|-4$ at $|a|=9$, where the difference is $6\log8-\log44-5>0$, and the difference increases with $|a|$. \end{proof} Let $\mathrm h$ be the absolute logarithmic Weil height, $\mathrm h_x(Y)=\mathrm h(x(Y))$ for $Y\in E(\overline F)\setminus\{O\}$, $\mathrm h_x(O)=0$, and $\hat{\mathrm h}$ the canonical height of $E$. There is $C_E$ with $|\mathrm h_x-2\hat{\mathrm h}|\le C_E$ on $E(\overline F)$, $\hat{\mathrm h}(Y)>0$ if $Y$ has infinite order, and the pairing $\langle Y,Y'\rangle=\hat{\mathrm h}(Y+Y')-\hat{\mathrm h}(Y)-\hat{\mathrm h}(Y')$ is bilinear \cite[Theorem~VIII.9.3]{Silverman}. As $x([2^N][i]Y)=-x([2^N]Y)$, $\hat{\mathrm h}\circ[i]=\hat{\mathrm h}$, so the pairing is invariant under $[i]$; hence $\langle Y,[i]Y\rangle=\langle[i]Y,-Y\rangle=-\langle Y,[i]Y\rangle=0$, and \begin{equation}\label{eq:canon} \hat{\mathrm h}([a+bi]Y)=a^2\hat{\mathrm h}(Y)+b^2\hat{\mathrm h}([i]Y)+ab\langle Y,[i]Y\rangle=(a^2+b^2)\hat{\mathrm h}(Y). \end{equation} For a number field $k$ and $\alpha\in k^\times$, let $\mathfrak a(\alpha)$ be its numerator ideal $\prod_{v_{\mathfrak P}(\alpha)>0}\mathfrak P^{v_{\mathfrak P}(\alpha)}$. For a finite place $v\mid p$ we normalize $|p|_v=p^{-1}$ and put $n_v=[k_v:\Q_p]$. Then \begin{equation}\label{eq:numerator} \log\Nm\mathfrak a(\alpha)=\sum_{v\text{ finite}}n_v\log\max(1,|\alpha^{-1}|_v)\le[k:\Q]\,\mathrm h(\alpha^{-1})=[k:\Q]\,\mathrm h(\alpha). \end{equation} We use $\mathrm h(\alpha\beta)\le \mathrm h(\alpha)+\mathrm h(\beta)$, $\mathrm h(\alpha_1+\dots+\alpha_k)\le\sum \mathrm h(\alpha_j)+\log k$, $\mathrm h(\zeta^k\alpha)=\mathrm h(\alpha)$, $\mathrm h(\nu)=\log\max(1,|\nu|)$ for $\nu\in\Z[i]$, and $\mathrm h(\phi(t))=d\,\mathrm h(t)+O(1)$ for a rational function $\phi\in\Q(t)$ of degree $d$ \cite[Theorem~VIII.5.6]{Silverman}. \subsection{The tube and the pole predicate}\label{ssec:tube} For a prime $q\ge7$ let $D_q=q^2+3$, $a_q=(q-3)(q+1)/D_q$, $b_q=(q-1)(q+3)/D_q^2$ and \[ g_q(z)=\frac{(a_qz+b_q-qz^2)(a_qz+b_q-4qz^2)}{4q^2}, \] and let $\mathcal C_q\subset\mathbf P^1(\Q)$ consist of $\infty$ and the six finite contacts \begin{gather*} \gamma_1=0,\qquad\gamma_2=-\frac{(q-1)(q+3)}{(q-3)(q+1)D_q},\qquad\gamma_3=\frac{q-1}{D_q},\\ \gamma_4=-\frac{q+3}{qD_q},\qquad\gamma_5=\frac{(q-1)(q+3)}{4qD_q},\qquad\gamma_6=-\frac1{D_q}, \end{gather*} Sun's formulas \cite[(1.3)--(1.7)]{Sun} with $q$ in place of $367$. For a prime $\mathfrak P$ of $K$, $z\in K\setminus\mathcal C_q$ has \emph{positive odd contact} with $\gamma_i$ at $\mathfrak P$ if $v_{\mathfrak P}(z-\gamma_i)$ is positive and odd, and with $\infty$ if $v_{\mathfrak P}(1/z)$ is. Let $\Sigma$ be a finite set of primes of $K$ containing those above the rational primes $p\le324$ and above $q$, and those at which a nonzero finite contact or the difference of two distinct finite contacts has nonzero valuation. For $z\in K\setminus\mathcal C_q$, $\mathfrak N_\Sigma(z)$ is the product of the norms of the primes $\mathfrak P\notin\Sigma$ at which $z$ has positive odd contact with a point of $\mathcal C_q$. For a prime $\mathfrak q$ of $K$ above $q$, the \emph{positive tube} is $\mathcal D=\{z\in K:v_{\mathfrak q}(z-1)\ge1$ and $g_q(z)$ is totally positive$\}$. \begin{theorem}[{\cite[Theorem~1.6]{TotallyReal}}]\label{thm:height} Let $q\equiv7\pmod{12}$ be a prime, $\mathfrak q$ a prime of $K$ above $q$, unramified over $q$, of odd residue degree, and $\Sigma$, $\mathfrak N_\Sigma$ and $\mathcal D$ as above. Then $\mathcal D\cap\mathcal C_q=\emptyset$, and there are $H>0$ and $\kappa>0$ with $\mathrm h(z)\le H\,\mathfrak N_\Sigma(z)^\kappa$ for every $z\in\mathcal D$. \end{theorem} For $K=\Q(\sqrt2)$ and $q=367$ this is Sun's height bound \cite[Theorem~1.7]{Sun} on the positive tube, and for $K=\Q(\sqrt6)$ and $q=331$ it is \cite[Lemma~15.4]{Sun}; the proof in our earlier paper is Sun's \cite[\S\S5--8]{Sun}, over $K$. Put $\theta_0=0$, $\theta_i=q/(\gamma_i-1)$ for $1\le i\le6$, and $\mathcal T=\{\theta_0,\dots,\theta_6\}$. \begin{lemma}[{\cite[Lemmas~3.2 and~6.6]{TotallyReal}}]\label{lem:tube} Let $q$ and $\mathfrak q$ be as in \cref{thm:height}, and $\Sigma$ as above. \begin{enumerate}[label=\textup{(\alph*)}] \item The finite contacts lie in $(-1,1)$, and $v_q(\gamma_i-1)\le0$. \item If $\eta=a_0^2+b_0^2\ne0$ with $a_0,b_0\in K$, and $y\in K^\times$, then $s=y^2\eta+1/q$ is totally positive and $v_{\mathfrak q}(s)\le-1$. \item If $s\in K$ is totally positive and $v_{\mathfrak q}(s)\le0$, then $1+q/s\in\mathcal D$ and $|\mathrm h(1+q/s)-\mathrm h(s)|\le C_q$, with $C_q$ depending only on $q$. If $\mathfrak P\notin\Sigma$ and every $\theta_i$ with $i\ge1$ and every $1-\gamma_i$ is a unit at $\mathfrak P$, then $1+q/s$ has positive odd contact with a point of $\mathcal C_q$ at $\mathfrak P$ if and only if $v_{\mathfrak P}(s-\theta)$ is positive and odd for some $\theta\in\mathcal T$. \item For $t\in K$, $\psi_q(t)=10q+1+q^2t/(1+q^2t^2)$ lies in $\mathcal D$. Let $f_0=1+q^2t^2$, $f_i=(10q+1-\gamma_i)f_0+q^2t$ $(1\le i\le6)$, and $R_\psi=C_*\prod_{i=0}^6f_i$, with $C_*$ the least positive integer such that $R_\psi\in\Z[t]$. Then $R_\psi$ has degree $14$ and is positive on $\R$. If $\mathfrak P\notin\Sigma$ divides neither $C_*$ nor the leading coefficients of the $f_i$ nor their pairwise resultants, then $\psi_q(t)$ has positive odd contact with a point of $\mathcal C_q$ at $\mathfrak P$ if and only if $v_{\mathfrak P}(R_\psi(t))$ is positive and odd; and $v_{\mathfrak P}(R_\psi(t))=14v_{\mathfrak P}(t)$ if $v_{\mathfrak P}(t)<0$. \end{enumerate} \end{lemma} These are Sun's \cite[Lemma~9.3 and (12.4)--(12.8)]{Sun} for general $q$. Let $\mathcal M=\{\mu_0,17\mu_0:\mu_0\in\{1,2,3,5,6,7,10,14\}\}$. For a field $k\supseteq\Q$ and $b\in k$, let $\Phi_k(b)$ be the statement: $b=0$, or for some $\mu\in\mathcal M$, with $H_b=\mu b(\mu b-b^2)$, there are $e,w\in k$ with $\mu b\,e\,H_b\,w\ne0$ such that \[ \mu b(\mu b-e)(\mu b+e)\qquad\text{and}\qquad\mu b(\mu bw^2-eH_b)(\mu bw^2+eH_b) \] are squares in $k$. This is the predicate of \cite[\S5]{TotallyReal}: Sun's two-parameter pole relation \cite[(12.9) and Lemma~12.2]{Sun}, with his curves $y^2=x(x-e)(x+3e)$ replaced by $y^2=x^3-e^2x$. \needspace{4\baselineskip} \begin{lemma}[{\cite[Lemmas~5.1 and~5.3]{TotallyReal}}]\label{lem:pole} \begin{enumerate}[label=\textup{(\alph*)}] \item Let $k$ be a number field, $b\in k^\times$ with $\Phi_k(b)$, and $\mathfrak P$ a prime of $k$ not above $2$, $3$, $5$, $7$ or $17$. If $v_{\mathfrak P}(b)<0$, then $v_{\mathfrak P}(b)$ is even. \item Let $B\in\Q$ with $08n\kappa+100$; a positive even integer $c_*$; $\Gamma=2^4\cdot3\cdot5\cdot7\cdot17$ and $C=2\cdot3\cdot5\cdot7\cdot17\cdot q\cdot\Gamma^2$. \item\label{F3} The set $\mathfrak B$ of primes of $K$ above: the rational primes $p\le\max(324,m+1)$; $q$; the primes dividing $d_K\Nm_{F/\Q}(A)c_*CC_*$; and the rational primes at which one of the following has nonzero valuation: the nonzero $\gamma_i$, the $1-\gamma_i$, the nonzero $\theta_i$, the differences of two distinct elements of $\{1/q\}\cup\bigcup_{j=0}^{16}\bigl((\mathcal T^+\cup\{\xi\})-d_j\bigr)$, the nonzero coefficients of $f_0,\dots,f_6$, and their pairwise resultants. \item\label{F4} An integer $M\ge10$, large enough for \cref{prop:sound}. \end{enumerate} \begin{lemma}\label{lem:fixed} \begin{enumerate}[label=\textup{(\alph*)}] \item $\mathcal T^+\cup\{\xi\}$ has nine elements, lies in $(-(q+1),1]$, and $-1\notin\mathcal T$. $1/q$ lies in none of the seventeen sets $(\mathcal T^+\cup\{\xi\})-d_j$. \item A prime $\mathfrak P\notin\mathfrak B$ of $K$ lies above a prime $p>\max(324,m+1)$ with $p\nmid2qd_K\Nm_{F/\Q}(A)c_*C$; $L/K$ is unramified at $\mathfrak P$; at every prime of $L$ above $\mathfrak P$, $e=1$ and $E$, $E^\sigma$ have good reduction; and $\mathfrak P$ satisfies the conditions on $\mathfrak P$ in \cref{lem:tube}(c), (d). \item $\Sigma_0\subseteq\mathfrak B$, and $\mathrm h(z)\le H_{\mathfrak B}\,\mathfrak N_{\mathfrak B}(z)^\kappa$ for $z\in\mathcal D$, where $H_{\mathfrak B}=H\prod_{\mathfrak P\in\mathfrak B\setminus\Sigma_0}\Nm\mathfrak P^\kappa$. \end{enumerate} \end{lemma} \begin{proof} (a) The first sentence is \cite[Lemma~7.1(a)]{TotallyReal}. For $j\ge1$ the $j$-th set lies in $(-\infty,1-d_j]$, below $0$, and for $j=0$ its elements are $1$, $0$, $-1$ and the $\theta_i<0$ (\cref{lem:tube}(a)), while $0<1/q<1$. (b) follows from \cref{lem:field}(b) and \ref{F3}. (c) For $i,k\ge1$, $\gamma_i-\gamma_k=q(\theta_k-\theta_i)/(\theta_i\theta_k)$, so a prime at which a nonzero contact or a difference of two distinct finite contacts has nonzero valuation is in $\mathfrak B$; and $\mathfrak N_{\Sigma_0}(z)\le\mathfrak N_{\mathfrak B}(z)\prod_{\mathfrak P\in\mathfrak B\setminus\Sigma_0}\Nm\mathfrak P$. \end{proof} Let $X\in K$. The certificate at $X$ is read off nine points $\mathsf Q,\mathsf N_1,\mathsf N_3,\mathsf N_4,\mathsf H,\mathsf U_1,\dots,\mathsf U_4$ of $2E(L)$, elements $a_0,b_0\in K$, and an element $\beta$, one of $3+(X^3+X)$ and $3-(X^3+X)$, through the following quantities. Put $\mathsf R=[M]\mathsf Q$, $\mathsf N_2=P+\mathsf R$, $V_0=\mathsf H-[c_*]P$, $V_i=\mathsf U_i-[c_*]\mathsf N_i$, $\eta=a_0^2+b_0^2$, and $L_i$, $L'_i$ as in \cref{lem:anchor} $(1\le i\le4)$. The sixteen \emph{comparison tests} $D_1,\dots,D_{16}\in L$, with \emph{precisions} $k_i$, are $\rho(\mathsf H),\rho(\mathsf U_1),\dots,\rho(\mathsf U_4)$ and $\rho(V_0^\tau),\rho(V_1^\tau),\dots,\rho(V_4^\tau)$, of precision $1$, and $L_i-L'_i$ $(1\le i\le4)$, $\mathcal L(L_1,\dots,L_4)$ and $L_1-\beta$, of precision $m$. The twelve \emph{scalar tests} $G_1,\dots,G_{12}\in K$ are the coordinates of $\rho(\mathsf H)$, $\rho(\mathsf R)$ and $\mathfrak z(\mathsf R)/\mathfrak z(\mathsf H)$, in this order, with precisions $m_k=1$ for $k\le8$ and $m_k=m$ for $k\ge9$. The sixteen \emph{abscissa coordinates} are $a_{4i-3+k}=x(\mathsf N_i)^{(k)}$ $(1\le i\le4,\ 0\le k\le3)$. Then \begin{gather*} r=R_\psi(\beta),\qquad\varpi=\frac{\Gamma^2r}{(1+Cr)^2},\qquad y_0=1,\qquad y_j=1+\varpi a_j^2\ (1\le j\le16),\\ s_j=y_j^2\eta+\frac1q,\qquad t_j=s_j+d_j-\xi,\qquad R_j=\frac{F_8(s_j+d_j)}{t_j^8},\qquad\alpha_j=\varpi R_j\qquad(0\le j\le16), \end{gather*} and, with $\Psi(v)=v/(1+v)$, \[ W_j=\prod_{i=1}^{16}\Bigl(1+\alpha_j\Bigl(\frac{D_i}{t_j^{k_i+1}\alpha_j^{k_i}}\Bigr)^2\Bigr),\quad\Theta_j=\Tr_{L/K}(W_j^{-1}),\quad B_j=\frac{\alpha_j}{\Theta_j^2}, \] \[ W_{\rm sc}=\prod_{k=1}^{12}\Bigl(1+\varpi\Bigl(\frac{\Psi(G_k)}{\varpi^{m_k}}\Bigr)^2\Bigr),\quad\Theta_{\rm sc}=\frac4{W_{\rm sc}},\quad B_{\rm sc}=\frac{\varpi}{\Theta_{\rm sc}^2}. \] We call $B_0,\dots,B_{16}$ the \emph{detectors} and $B_{\rm sc}$ the \emph{scalar detector}. As $W_{\rm sc}\in K$, $\Theta_{\rm sc}=\Tr_{L/K}(W_{\rm sc}^{-1})$, so the scalar detector has the form of the others, with $R\equiv1$. The certificate works as follows. Its points are Gaussian multiples of $P$ (\cref{lem:index}), say $\mathsf N_i=[n_i]P$. At a prime outside $\mathfrak B$ at which $v(\varpi)$ is even and $v(s_j+d_j-\theta)$ is positive and odd for some $\theta\in\mathcal T$, the detector $B_j$ and $\Phi_K$ force each comparison test to vanish to its precision at a prime above it (\cref{lem:selector}), and \cref{lem:anchor} turns this into $\mathfrak p^m\mid\mathcal L(n_1,\dots,n_4)$ and $\beta\equiv n_1$ to order $m$. The scalar detector does the same for $n_2-1$ at the primes where $v(\varpi)$ is odd (\cref{lem:scsel}). The height bound bounds the labels by these primes; this forces $\mathcal L(n_1,\dots,n_4)=0$, so that $|n_4|$ is exponentially large in $|n_2|$ (\cref{lem:lucas}(a)), and then $\beta=n_1$ (\cref{prop:sound}). For $X\in\Z$, \cref{sec:completeness} chooses the labels and, through the prime pattern (\cref{thm:pattern}), the primes at which every detector passes (\cref{prop:complete}). \begin{definition}\label{def:cert} Let $X\in K$. The \emph{certificate} at $X$ is the statement that there exist nine points $\mathsf Q,\mathsf N_1,\mathsf N_3,\mathsf N_4,\mathsf H,\mathsf U_1,\dots,\mathsf U_4$ of $2E(L)$, elements $a_0,b_0\in K$, an element $\beta\in\{3+(X^3+X),3-(X^3+X)\}$, and witnesses in $K$ of $\Phi_K(B)$ for the eighteen elements $B=B_0,\dots,B_{16},B_{\rm sc}$, such that every quantity above is defined (no displayed denominator vanishes, and $x$, $\rho$ and $\mathfrak z$ are applied only where they are finite), and \begin{enumerate}[label=\textup{(\roman*)},ref=\textup{(\roman*)}] \item\label{ce:i} $\mathsf Q$, $\mathsf R$, $\mathsf N_1$, $\mathsf N_2$, $\mathsf N_3$, $\mathsf N_4$, $\mathsf H$, $\mathsf U_1,\dots,\mathsf U_4$ and $V_0$ are not $O$, and \item\label{ce:ii} $\eta\ne0$. \end{enumerate} \end{definition} \begin{lemma}\label{lem:certbasic} Suppose the certificate holds at $X\in K$. Then $\mathsf N_i=[n_i]P$, $\mathsf H=[h]P$, $\mathsf U_i=[u_i]P$ and $\mathsf Q=[k_{\mathsf Q}]P$ with Gaussian integers $n_i,h,u_i,k_{\mathsf Q}$; $n_2-1=Mk_{\mathsf Q}$, and $n_1,\dots,n_4$, $n_2-1$, $h$ and $h-c_*$ are nonzero. All these points, $\mathsf R$ and the $V_i$ lie in $E(F)$; the $G_k$ and the $a_j$ are rational; and $r$, $\varpi$, $\eta$, the $y_j$, $s_j$ and $s_j+d_j$ are totally positive. \end{lemma} \begin{proof} By \cref{lem:index}, $2E(L)=\Z[i]P\subseteq E(F)$, which gives the labels, $\mathsf N_2=[1+Mk_{\mathsf Q}]P$ and, with \ref{ce:i}, the nonvanishing. The coordinates of elements of $F$ are rational (\cref{lem:field}(a)). As $K$ is totally real and $R_\psi>0$ on $\R$ (\cref{lem:tube}(d)), $r$, $1+Cr$ and $\varpi$ are totally positive, hence so are the $y_j$; $\eta$ is a nonzero sum of two squares, $1/q>0$ and $d_j\ge0$. \end{proof} \section{Soundness}\label{sec:soundness} This section proves that the certificate holds only at integers (\cref{prop:sound}), by the argument outlined before \cref{def:cert}. The first lemma is the local form of the detectors. \needspace{4\baselineskip} \begin{lemma}\label{lem:selector} Let $\mathfrak P\notin\mathfrak B$ be a prime of $K$, $\alpha\in K$ with $v_{\mathfrak P}(\alpha)$ odd, and $Y_1,\dots,Y_J\in L$ and integers $k_1,\dots,k_J\ge1$ such that \[ W=\prod_{i=1}^J\Bigl(1+\alpha\Bigl(\frac{Y_i}{\alpha^{k_i}}\Bigr)^2\Bigr)\quad\text{and}\quad\Theta=\Tr_{L/K}(W^{-1}) \] are nonzero and $\Phi_K(\alpha/\Theta^2)$ holds. Then $v_{\mathfrak P}(\alpha)>0$, and some prime $\mathfrak Q$ of $L$ above $\mathfrak P$ has $v_{\mathfrak Q}(Y_i)\ge k_i$ for every $i$. \end{lemma} \begin{proof} We follow the proof of \cite[Lemma~9.1]{Sun}, for $L/K$ of degree $4$. Put $a=v_{\mathfrak P}(\alpha)$. As $L/K$ is unramified at $\mathfrak P$ (\cref{lem:fixed}(b)), $v_{\mathfrak Q}=v_{\mathfrak P}$ on $K$ for every $\mathfrak Q\mid\mathfrak P$. If $Y_i\ne0$, the summand $y_i$ of the $i$-th factor has $v_{\mathfrak Q}(y_i)=a(1-2k_i)+2v_{\mathfrak Q}(Y_i)$, which is odd, so $v_{\mathfrak Q}(1+y_i)=\min(0,v_{\mathfrak Q}(y_i))$, and $\mu_{\mathfrak Q}=v_{\mathfrak Q}(W)\le0$ is the sum of these numbers. Let $\mu=\max_{\mathfrak Q\mid\mathfrak P}\mu_{\mathfrak Q}$ and $\pi_{\mathfrak P}$ a uniformiser of $K$ at $\mathfrak P$. Then $\pi_{\mathfrak P}^\mu W^{-1}$ is integral at every $\mathfrak Q\mid\mathfrak P$, so its trace $\pi_{\mathfrak P}^\mu\Theta$ is $\mathfrak P$-integral and $v_{\mathfrak P}(\Theta)\ge-\mu$. As $v_{\mathfrak P}(\alpha/\Theta^2)=a-2v_{\mathfrak P}(\Theta)$ is odd, it is positive by \cref{lem:pole}(a). Hence $a\ge1$ and $a+2\mu\ge1$. At a $\mathfrak Q$ with $\mu_{\mathfrak Q}=\mu$, every $v_{\mathfrak Q}(y_i)$ with $Y_i\ne0$ is at least $\mu\ge(1-a)/2$, which gives $v_{\mathfrak Q}(Y_i)\ge k_ia-\frac{3a-1}4\ge k_i-\frac12$, and so $v_{\mathfrak Q}(Y_i)\ge k_i$. \end{proof} \begin{lemma}\label{lem:scsel} Suppose the certificate holds at $X\in K$, with labels as in \cref{lem:certbasic}. Let $\mathfrak P\notin\mathfrak B$ be a prime of $K$ above $p$ with $v_{\mathfrak P}(\varpi)$ odd. Then $v_{\mathfrak P}(\varpi)=v_{\mathfrak P}(r)>0$, $v_{\mathfrak P}(\beta)\ge0$, and $p^m$ divides $n_2-1$ in $\Z[i]$. \end{lemma} \begin{proof} Write $v=v_{\mathfrak P}$; $\Gamma$ and $C$ are $\mathfrak P$-units. If $v(\beta)<0$, then $v(r)=14v(\beta)$ by \cref{lem:tube}(d), so $v(1+Cr)=v(r)$ and $v(\varpi)=-v(r)$ is even. So $r$ is integral, and $v(r)>0$, as otherwise $v(\varpi)=-2v(1+Cr)$; hence $v(\varpi)=v(r)$. \Cref{lem:selector} with $\alpha=\varpi$ and $Y_k=\Psi(G_k)\in\Q$ gives $v_p(\Psi(G_k))\ge m_k\ge1$, as $\mathfrak P$ is unramified over $p$. If $v_p(G_k)\le0$, then $v_p(\Psi(G_k))\le0$; so $v_p(G_k)>0$, $1+G_k$ is a $p$-unit and $v_p(G_k)\ge m_k$. As $\mathsf R=[n_2-1]P$ and $\mathsf H=[h]P$ with $n_2-1,h\ne0$, \cref{lem:scalar} gives $p^m\mid n_2-1$. \end{proof} \begin{proposition}\label{prop:sound} If $M$ in \ref{F4} is large enough, every $X\in K$ at which the certificate holds lies in $\Z$. \end{proposition} \begin{proof} We follow the proof of \cite[Proposition~13.6]{Sun}. Let the certificate hold at $X$, with labels as in \cref{lem:certbasic}, and put $N=\max(1,|n_1|,\dots,|n_4|)$ and $\Delta=\mathcal L(n_1,n_2,n_3,n_4)\in\Z[i]$. As $|n_2-1|=M|k_{\mathsf Q}|\ge M$, $N\ge|n_2|\ge M-1\ge9$. The constants $c_1,c_2,\dots$ depend on $E$, $P$ and \ref{F1}--\ref{F3}, not on $M$ or $X$. \emph{Local alternatives.} Let $\mathfrak P\notin\mathfrak B$ be a prime of $K$ above $p$. \begin{enumerate}[label=(\roman*)] \item Suppose $v_{\mathfrak P}(s_j+d_j-\theta)$ is positive and odd for some $j$ and some $\theta\in\mathcal T$, and $v_{\mathfrak P}(\varpi)$ is even. The other factors $s_j+d_j-\theta'$, $\theta'\in\mathcal T^+$, and $t_j$ are units at $\mathfrak P$, as $\theta-\theta'$ and $\theta-\xi$ are; so $v_{\mathfrak P}(R_j)$ is positive and odd and $t_j$ is a unit. By \cref{lem:selector} for $B_j$, with $\alpha=\alpha_j$ and $Y_i=D_i/t_j^{k_i+1}$, there is $\mathfrak Q\mid\mathfrak P$ with $v_{\mathfrak Q}(D_i)\ge k_i$ for all $i$: so $\mathsf H,\mathsf U_i\in E_1(L_{\mathfrak Q})$, $V_0^\tau,V_i^\tau\in E^\sigma_1(L_{\mathfrak Q})$ and $v_{\mathfrak Q}(L_i-L'_i)\ge m$. By \cref{lem:anchor}, which applies by \cref{lem:fixed}(b), and the tests $\mathcal L(L_1,\dots,L_4)$ and $L_1-\beta$, $\mathfrak p^m$ divides $\Delta$ for the prime $\mathfrak p$ of $\Z[i]$ below $\mathfrak Q$, and $v_{\mathfrak Q}(\beta-n_1)\ge m$. \item Suppose $v_{\mathfrak P}(\varpi)$ is odd. By \cref{lem:scsel}, $v_{\mathfrak P}(\beta)\ge0$ and $p^m\mid n_2-1$. \item Suppose $v_{\mathfrak P}(r)$ is positive and odd. Then $1+Cr$ is a unit, $v_{\mathfrak P}(\varpi)=v_{\mathfrak P}(r)$, and (ii) applies. \end{enumerate} \emph{Counting.} Let $\mathfrak M_j$ be the product of $\Nm\mathfrak P$ over the $\mathfrak P\notin\mathfrak B$ at which $v_{\mathfrak P}(s_j+d_j-\theta)$ is positive and odd for some $\theta\in\mathcal T$, and $\mathfrak M_{\rm sc}$ that over the $\mathfrak P\notin\mathfrak B$ at which $v_{\mathfrak P}(r)$ is positive and odd. For each $p$, $\prod_{\mathfrak P\mid p}\Nm\mathfrak P\le p^n$. If $\Delta\ne0$, then by (i) and (ii) $p^m$ divides $\Nm_{\Q(i)/\Q}(\Delta(n_2-1))=|\Delta(n_2-1)|^2$ for every $p$ below a prime counted in $\mathfrak M_j$, so $\mathfrak M_j^m\le|\Delta(n_2-1)|^{2n}$. If $\beta\ne n_1$, then at every $\mathfrak P$ counted in $\mathfrak M_j$ there is a prime $\mathfrak P'$ of $K(i)$ above $\mathfrak P$ with $v_{\mathfrak P'}((\beta-n_1)(n_2-1))\ge m$: in case (i) the prime below $\mathfrak Q$, over which $\mathfrak Q$ is unramified, and in case (ii) any $\mathfrak P'$. These $\mathfrak P'$ are distinct and $\Nm\mathfrak P\le\Nm\mathfrak P'$, so \eqref{eq:numerator} over $K(i)$, of degree $2n$, gives $\mathfrak M_j^m\le\Nm\mathfrak a((\beta-n_1)(n_2-1))\le\exp(2n\,\mathrm h((\beta-n_1)(n_2-1)))$. By (iii) and (ii), $p^m$ divides $n_2-1$ for every $p$ below a prime counted in $\mathfrak M_{\rm sc}$, so $\mathfrak M_{\rm sc}^m\le|n_2-1|^n$. \emph{Heights.} By \cref{lem:certbasic} and \cref{lem:tube}(b), $s_j$ and $s_j+d_j$ are totally positive with $v_{\mathfrak q}\le-1$. By \cref{lem:tube}(c) and \cref{lem:fixed}(b), $1+q/(s_j+d_j)\in\mathcal D$, and its primes of positive odd contact outside $\mathfrak B$ are those counted in $\mathfrak M_j$; so \cref{lem:fixed}(c) gives $\mathrm h(s_j)\le c_1(1+\mathfrak M_j^\kappa)$, as $d_j\in\Z$. By \cref{lem:tube}(d), $\psi_q(\beta)\in\mathcal D$, its primes of positive odd contact outside $\mathfrak B$ are those counted in $\mathfrak M_{\rm sc}$, and $\psi_q$ has degree $2$; so $\mathrm h(\beta)\le c_2(1+\mathfrak M_{\rm sc}^\kappa)\le c_2(1+|n_2-1|^{n\kappa/m})$. Finally, by \eqref{eq:canon}, $2|n_i|^2\hat{\mathrm h}(P)=2\hat{\mathrm h}(\mathsf N_i)\le \mathrm h_x(\mathsf N_i)+C_E\le\sum_k\mathrm h(a_{4i-3+k})+\log4+C_E$, with $\hat{\mathrm h}(P)>0$; for $j\ge1$, $a_j^2=(y_j-1)/\varpi$ gives $2\mathrm h(a_j)\le\frac12\mathrm h(y_j^2)+\mathrm h(\varpi)+\log2$; $y_j^2=(s_j-1/q)/(s_0-1/q)$ gives $\mathrm h(y_j^2)\le \mathrm h(s_j)+\mathrm h(s_0)+2\log(2q)$; and $\mathrm h(\varpi)\le3\mathrm h(r)+O(1)\le42\mathrm h(\beta)+O(1)$. Hence \begin{equation}\label{eq:Nbound} N^2\le c_3\Bigl(1+\sum_{j=0}^{16}\mathfrak M_j^\kappa+|n_2-1|^{n\kappa/m}\Bigr). \end{equation} \emph{$\Delta=0$.} Otherwise $|\Delta|\le14N^4$ and $|n_2-1|\le2N$, so $\mathfrak M_j\le(28N^5)^{2n/m}$, and \eqref{eq:Nbound} gives $N^2\le c_4(1+N^{10n\kappa/m})$, with $10n\kappa/m<\frac54$ by \ref{F2}. This fails for $N>N_1$, with $N_1$ depending only on the constants; we take $M>N_1+1$. So $\Delta=0$, and \cref{lem:lucas}(a) gives $\log N\ge\log|n_4|\ge|n_2|-4\ge|n_2-1|-5$. \emph{$\beta=n_1$.} Otherwise $\mathrm h((\beta-n_1)(n_2-1))\le \mathrm h(\beta)+2\log(2N)$, and with $\epsilon=2n\kappa/m<\frac14$, \eqref{eq:Nbound}, the bound on $\mathrm h(\beta)$ and $|n_2-1|\le\log N+5$ give \[ N^2\le c_5\bigl(1+e^{\epsilon \mathrm h(\beta)}(2N)^{2\epsilon}\bigr),\qquad \mathrm h(\beta)\le c_2\bigl(1+(\log N+5)^{\epsilon/2}\bigr). \] The second bound gives $e^{\epsilon \mathrm h(\beta)}\le N^{1/4}$ for $N>N_2$, and then the first fails for $N>N_3$. As $N\ge|n_4|\ge\exp(|n_2|-4)\ge\exp(M-5)$, we take $M$ with $\exp(M-5)>\max(N_2,N_3)$. So $\beta=n_1$. As $\beta\in K$, $n_1\in\Q(i)$ and $K\cap\Q(i)=\Q$, $n_1\in\Z$; so $X^3+X=\pm(n_1-3)\in\Z$, and $X\in\Z$ by \cite[Lemma~12.1]{Sun}, $K$ being totally real. \end{proof} \section{Completeness}\label{sec:completeness} This section proves that the certificate holds at every integer (\cref{prop:complete}). The detectors need primes at which the reductions of $E$ have known orders: \cref{lem:orders} gives these orders at Gaussian primes $\pi\equiv9\pmod{16}$ of rational prime norm prime to $\Nm_{F/\Q}(A)$, and the prime pattern of \cref{thm:pattern} supplies such primes with every congruence the construction asks for. \subsection{The reductions at the pattern primes} \begin{lemma}\label{lem:orders} Let $\pi\equiv9\pmod{16}$ be a Gaussian prime of rational prime norm $p=\Nm\pi$, and $\mathfrak p$ a prime of $F$ above $\pi$ at which $A$ is a unit. Then $p\equiv1\pmod{16}$ splits completely in $F$, $E$ has good reduction $\tilde E$ at $\mathfrak p$, and $\#\tilde E(\cO/\mathfrak p)=\Nm(\pi-\upsilon)$ for some $\upsilon\in\{\pm1,\pm i\}$, with $\upsilon\in\{\pm1\}$ if and only if $A$ is a square modulo $\mathfrak p$. \end{lemma} \begin{proof} Writing $\pi=a+bi$ with $a\equiv9$, $b\equiv0\pmod{16}$ gives $p\equiv1\pmod{16}$, so $\cO/\mathfrak p=\FF_p$ by \cref{lem:field}(c), and the discriminant $64A^3$ is a unit at $\mathfrak p$. Identify $\cO/\mathfrak p$ and $\Z[i]/(\pi)$ with $\FF_p$, take $D\in\Z$ with $D\equiv A\pmod{\mathfrak p}$, and let $\upsilon\in\{\pm1,\pm i\}$ be the quartic residue symbol of $D$ modulo $\pi$, so that $\upsilon\equiv D^{(p-1)/4}\pmod\pi$. As $\pi\equiv1\pmod{2+2i}$ is primary, the curve $y^2=x^3-Dx$, which is $\tilde E$, has $p+1-\bar\upsilon\pi-\upsilon\bar\pi=\Nm(\pi-\upsilon)$ points over $\FF_p$ \cite[Chapter~18, \S4]{IrelandRosen}. As $\upsilon^2\equiv D^{(p-1)/2}\pmod\pi$, $\upsilon=\pm1$ exactly when $D$, that is $A$, is a square modulo $\mathfrak p$. \end{proof} \needspace{4\baselineskip} \begin{theorem}[{\cite[v2, Theorem~4.3]{TotallyReal}, with $(\ell,r)=(7,1+3i)$}]\label{thm:pattern} Let $k\ge2$, let $c_1,\dots,c_k$ be distinct integers, $D_0$ and $Y$ positive integers, $\Lambda_0>0$, $N_0$ an odd squarefree positive integer prime to $210$, and $\mathcal S$ a finite set of primes. There are positive integers $u,w$ with $D_0\mid w$ and $u/w^2>\Lambda_0$ such that the numbers $p_j=u+c_jw^2$ are distinct primes greater than $Y$ and not in $\mathcal S$, and each $p_j$ is the norm of a Gaussian prime $\pi_j$ with \begin{enumerate}[label=\textup{(\roman*)}] \item $\pi_j\equiv9\pmod{16}$, $\pi_j\equiv1+i\pmod3$, $\pi_j\equiv6\pmod{25}$, $\pi_j\equiv1+3i\pmod7$ and $\pi_j\equiv1+i\pmod{N_0}$; \item for all $j,h$, $j=h$ included, and all $\epsilon,\eta\in\{1,-1\}$, no odd prime divides both $\Nm(\pi_j-\epsilon)$ and $\Nm(\pi_h-\eta i)$; and $v_2(\Nm(\pi_j-1))=6$, $v_2(\Nm(\pi_j+1))=2$, $v_2(\Nm(\pi_j\mp i))=1$; \item $v_5(\Nm(\pi_j-1))=2$, $5$ divides none of $\Nm(\pi_j+1)$, $\Nm(\pi_j\mp i)$, and each $\Nm(\pi_j-\alpha)$, $\alpha\in\{\pm1,\pm i\}$, is prime to $21N_0$. \end{enumerate} \end{theorem} It is the four-unit form of Sun's pattern \cite[Proposition~10.3]{Sun}. \subsection{Bounds at the complex places and at fixed primes} \begin{lemma}\label{lem:varpi} For every positive integer $r$, the rational number $\varpi=\Gamma^2r/(1+Cr)^2$ satisfies $0<\varpi\le\Gamma^2/(4C)<\frac14$; $v_p(\varpi)=2v_p(\Gamma)+v_p(r)$ for every prime $p\mid C$; and every odd valuation of $\varpi$ is positive. \end{lemma} \begin{proof} We follow the proof of \cite[Lemma~13.7]{Sun}, where $\Gamma$ and $C$ are chosen large; here they are fixed by \ref{F2}, and $C>\Gamma^2$ gives the bound $\frac14$. As $(1+Cr)^2\ge4Cr$, $\varpi\le\Gamma^2/(4C)$. If $p\mid C$, then $1+Cr$ is a $p$-unit. In general $v_p(\varpi)\equiv v_p(r)\pmod2$, and if $v_p(r)$ is odd, then $p\mid r$, $1+Cr$ is a $p$-unit and $v_p(\varpi)>0$. \end{proof} Fix an embedding $\iota_1\colon F\to\C$ and put $\iota_2=\iota_1\circ\sigma$; by \cref{lem:field}(d) every embedding of $F$ in $\C$ is $\iota_1$, $\iota_2$ or the complex conjugate of one of them. Let $E^{\iota_k}$ be the complex curve obtained from $E$ by $\iota_k$, $\mathbf E=E^{\iota_1}(\C)\times E^{\iota_2}(\C)$, a compact abelian Lie group, and $V_{\C}=(\iota_1(V),\iota_2(V))$ for $V\in E(F)$. Then $\iota_1(V^\sigma)=\iota_2(V)$ and $\iota_2(V^\sigma)=\iota_1(V)$: the conjugate point has the two complex coordinates in the reverse order. Let $\mathbf G$ be the closure of $\{([k]P)_{\C}:k\in\Z\}$, $\mathbf G^0$ its identity component, and $e_{\C}$ the exponent of the finite group $\mathbf G/\mathbf G^0$. \needspace{4\baselineskip} \begin{lemma}\label{lem:complexorbit} \begin{enumerate}[label=\textup{(\alph*)}] \item For finite sets $Z_k\subset E^{\iota_k}(\C)$, the points of $\mathbf G^0$ with a coordinate in $Z_1$ or $Z_2$ form a closed set with empty interior. \item If $h^*$ and $N^*\ne0$ are integers divisible by $e_{\C}$, then $\{([h^*+kN^*]P)_{\C}:k\ge1\}$ is dense in $\mathbf G^0$. \item For every nonzero integer $e$ and every neighborhood $\mathcal V$ of the identity of $\mathbf E$ there is $k\ge1$ with $([ke]P)_{\C}\in\mathcal V$. \end{enumerate} \end{lemma} \begin{proof} $\mathbf G$ is a compact abelian Lie group, so $\mathbf G^0$ is a torus of finite index. (a) The projection of $\mathbf G$ to $E^{\iota_k}(\C)$ is infinite, as $P$ has infinite order, so the projection of $\mathbf G^0$, of finite index in it, is a nontrivial homomorphism on a connected group. Its fibers are cosets of a proper closed subgroup, closed with empty interior, and so is a finite union of them. (b) In a compact group the closure of the positive multiples of an element is the closed subgroup it generates. That of $([N^*]P)_{\C}$ is $N^*\mathbf G\supseteq N^*\mathbf G^0=\mathbf G^0$, and $([h^*]P)_{\C}\in e_{\C}\mathbf G\subseteq\mathbf G^0$; so the closure of the set is $\mathbf G^0$. (c) The closed subgroup $e\mathbf G$ contains the identity. \end{proof} \emph{Formal groups at a prime of $F$.} Let $\mathfrak Q$ be a prime of $F$ above $p$, with $v=v_{\mathfrak Q}$ and $e=v(p)$; so $e=4$ if $p=2$ and $e=1$ otherwise. For $s\ge1$ let $E^{(s)}=\{V\in E_1(F_{\mathfrak Q}):V=O\text{ or }v(\mathfrak z(V))\ge s\}$, the subgroup that corresponds to $\hat E(\mathfrak m^s)$; these subgroups form a basis of neighborhoods of $O$ in $E(F_{\mathfrak Q})$. \begin{itemize} \item $[p]E^{(s)}\subseteq E^{(s+1)}$, as $[p]$ acts on $\hat E$ by $pZ$ plus terms of degree at least $2$ with integral coefficients. \item For $s\ge5$, so that $s>e/(p-1)$, $\ell$ is an isometry of $\mathfrak m^s$ onto itself, inverse to the formal exponential, which is continuous there, as in the proof of \cref{lem:localimage}(a); and $v(\ell_m(Z))=v(Z)$ for $v(Z)\ge s$, since both sides are $+\infty$ at $Z=0$ and for $Z\ne0$ we have $v((b_{t-1}/t)Z^t)\ge tv(Z)-ev_p(t)>v(Z)$ for $t\ge2$. \item (Depth) Let $J\ge1$ with $[J]P\in E_1(F_{\mathfrak Q})$ for every $\mathfrak Q\mid p$, and $k\ne0$ with $J\mid k$. Then $[k]P\in E^{(1+v_p(k)-v_p(J))}$ at every $\mathfrak Q\mid p$, by the first item. If moreover $Jp^4\mid k$, then $[k]P=[k/(Jp^4)][Jp^4]P$ with $[Jp^4]P\in E^{(5)}$, so by \eqref{eq:loglabel} and the second item $v(\mathfrak z([k]P))=e\,v_p(k/(Jp^4))+v(\mathfrak z([Jp^4]P))$. \item (Coordinates) If $s\ge0$ is an integer and $u\in F$ has $v_{\mathfrak Q}(u)\ge es$ at every $\mathfrak Q\mid p$, then the four coordinates of $u$ have $v_p\ge s$, as $u/p^s\in\Z_{(p)}[\zeta]$. \end{itemize} The next lemma bounds the comparison tests at a fixed prime uniformly in the later choices. \begin{lemma}\label{lem:uniform} Let $p$ be a prime, $J\ge1$ an integer with $[J]P\in E_1(F_{\mathfrak Q})$ for every prime $\mathfrak Q$ of $F$ above $p$, $\nu\ge v_p(J)+4$ an integer, and $n_1,\dots,n_4$ nonzero integers. For an integer $h$ let $D_1(h),\dots,D_{16}(h)$ be the comparison tests of the certificate at $\mathsf H=[h]P$, $\mathsf U_i=[n_ih]P$, $\mathsf N_i=[n_i]P$ and $\beta=n_1$, so that $V_0=[h-c_*]P$ and $V_i=[n_i]V_0$. There are integers $h_p$, $b\ge\nu+1$ and $B_p\ge0$, with $J\mid h_p$ and $h_p\equiv p^\nu\pmod{p^{\nu+1}}$, such that for every integer $h$ with $J\mid h$ and $h\equiv h_p\pmod{p^b}$ the sixteen tests are defined and $v_{\mathcal Q}(D_i(h))\ge-B_p$ at every prime $\mathcal Q$ of $L$ above $p$. \end{lemma} \begin{proof} All the points lie in $E(F)$, so $V^\tau=V^\sigma$, $\rho(V_i^\sigma)=\sigma(\rho(V_i))$, and $L'_i$ is the $\sigma$-conjugate of $\ell_m(\mathfrak z(V_i))/\ell_m(\mathfrak z(V_0))$. Let $\mathfrak Q\mid p$ be a prime of $F$, and let $h$ satisfy $J\mid h$ and $v_p(h)=\nu$. By (Depth), $\mathsf H$ and $\mathsf U_i=[n_i]\mathsf H$ lie in $E^{(5)}\setminus\{O\}$, so $\rho(\mathsf H)$ and $\rho(\mathsf U_i)$ are integral at $\mathfrak Q$; by \eqref{eq:loglabel} and the second item above, $\ell_m(\mathfrak z(\mathsf H))\ne0$ and $v(L_i)=ev_p(n_i)\ge0$, so $\mathcal L(L_1,\dots,L_4)$ and $L_1-n_1$ are integral at $\mathfrak Q$. Since the $L_i$ are integral, it suffices to bound below the valuations of the $\sigma$-conjugates of the values at $V_0$ of the rational functions $\rho(Y)$, $\rho([n_i]Y)$ and $\ell_m(\mathfrak z([n_i]Y))/\ell_m(\mathfrak z(Y))$ on $E$. These are regular off a finite set $\mathcal Z$ of points over $\overline F$: the points of $E[2]$, those $Y$ with $[n_i]Y\in E[2]$ for some $i$, and the zeros of $\ell_m\circ\mathfrak z$. As $P$ has infinite order, only finitely many $k$ have $[k]P\in[c_*]P+\mathcal Z$; choose $h_p$ in the progression $J\mid h$, $h\equiv p^\nu\pmod{p^{\nu+1}}$ outside them, and put $Y_0=[h_p-c_*]P$. At every prime $\mathfrak Q\mid p$ of $F$ these functions are regular at $Y_0$, so there are $s\ge1$ and $B'\ge0$ with all their values on $Y_0+E^{(s)}\subseteq E(F_{\mathfrak Q})$ defined and of valuation at least $-B'$, for every $\mathfrak Q\mid p$. Take $b\ge\nu+1$ with $1+b-v_p(J)\ge s$. If $J\mid h$ and $h\equiv h_p\pmod{p^b}$, then $v_p(h)=\nu$, and $[h-h_p]P\in E^{(s)}$ by (Depth); so $V_0\in Y_0+E^{(s)}$, and $V_0\ne O$. Hence all sixteen tests are defined, and $v_{\mathfrak Q}(D_i(h))\ge-B'$ at every $\mathfrak Q\mid p$, since $v_{\mathfrak Q}(\sigma(u))=v_{\sigma\mathfrak Q}(u)$. A prime $\mathcal Q$ of $L$ above $\mathfrak Q$ has $e(\mathcal Q/\mathfrak Q)\le[L:F]=n$, so $B_p=nB'$ will do. \end{proof} \subsection{The construction} \begin{proposition}\label{prop:complete} For every $X\in\Z$ the certificate holds at $X$. \end{proposition} \begin{proof} We follow the proof of \cite[Proposition~13.9]{Sun}. Steps~1--8 make the choices, in this order, each depending only on the earlier ones, and Steps~9--12 verify the eighteen predicates. \emph{Step 1 (the input).} Take $\beta=3+|X^3+X|$, an odd integer $\ge3$, as $X^3+X$ is even. Then $r=R_\psi(\beta)$ is a positive integer by \cref{lem:tube}(d), and $\varpi$ is as in \cref{lem:varpi}. Let $\mathcal S$ be the set of rational primes below $\mathfrak B$ together with the primes at which $\varpi$ has nonzero valuation, and $g_p=3+2m|v_p(\varpi)|$ for $p\in\mathcal S$. \emph{Step 2 (the class of $h$).} Let $J=J_0e_{\C}$, where $J_0$ is the least common multiple of the orders of $P$ in the finite groups $E(F_{\mathfrak Q})/E_1(F_{\mathfrak Q})$, $\mathfrak Q\mid p\in\mathcal S$. Choose integers $\nu_p\ge v_p(J)+4+2g_p$, and let $\mathcal C$ be the set of $h$ with $J\mid h$ and $h\equiv p^{\nu_p}\pmod{p^{\nu_p+1}}$ $(p\in\mathcal S)$. For $h\in\mathcal C$ and $\mathfrak Q\mid p\in\mathcal S$, (Depth) gives $v_{\mathfrak Q}(\rho([h]P))\ge2(5+2g_p)\ge eg_p$, so by (Coordinates) the coordinates $G_1,\dots,G_4$ of $\rho([h]P)$ have $v_p\ge g_p$. \emph{Step 3 (a complex neighborhood).} Let $\varepsilon_0=\varpi^m/100$, and $\mathcal N$ a neighborhood of the identity in $\mathbf G^0$ on which both coordinates avoid $E[2]\setminus\{O\}$ and have $|\rho|<\varepsilon_0$. By \cref{lem:complexorbit}(a), $\mathcal N$ contains a nonempty open set $\mathcal U$ whose closure lies in $\mathcal N$ and has no point with a coordinate $O$; so $|\mathfrak z|\ge\delta_0$ at both coordinates on $\mathcal U$, for some $\delta_0>0$. \emph{Step 4 (the index $n_2$).} By \cref{lem:complexorbit}(c) choose a positive multiple $k_*$ of $MJ\prod_{p\in\mathcal S}p^{\nu_p+2g_p+4}$ such that both coordinates of $([k_*]P)_{\C}$ have $|\rho|\le\varepsilon_0$ and $|\mathfrak z|\le\varepsilon_0\delta_0$, and put $n_2=k_*+1$. At $\mathfrak Q\mid p\in\mathcal S$, (Depth) gives $v_{\mathfrak Q}(\rho([k_*]P))\ge eg_p$ and, for $h\in\mathcal C$, $v_{\mathfrak Q}\bigl(\mathfrak z([k_*]P)/\mathfrak z([h]P)\bigr)=e(v_p(k_*)-\nu_p)\ge eg_p$; so by (Coordinates) $G_5,\dots,G_{12}$ have $v_p\ge g_p$. As $u^{(k)}=\frac14\Tr_{F/\Q}(u\zeta^{-k})$ for $u\in F$, $|u^{(k)}|\le\max(|\iota_1(u)|,|\iota_2(u)|)$, and all twelve $|G_k|$ are at most $\varepsilon_0$ when $([h]P)_{\C}\in\mathcal U$. \emph{Step 5 (the other indices).} Put $n_1=\beta$, and take positive integers $n_3,n_4$ with $\mathcal L(n_1,n_2,n_3,n_4)=0$ (\cref{lem:lucas}(b)). The abscissa coordinates $a_j$ and the $y_j=1+\varpi a_j^2>0$ are now fixed rationals. At $\iota_1$ and $\iota_2$ the sixteen comparison tests are rational functions of $([h]P)_{\C}$, regular off the points with a coordinate in a finite set; for example $\iota_1(\rho(V_0^\sigma))=\rho\bigl(\iota_2([h]P)-\iota_2([c_*]P)\bigr)$. By \cref{lem:complexorbit}(a) there is a nonempty open set $\mathcal U_1$ with compact closure in $\mathcal U$ avoiding those points; on it the tests are defined and their absolute values at all four embeddings are at most some $B_{\C}$. \emph{Step 6 (the classes at $\mathcal S$).} For each $p\in\mathcal S$, \cref{lem:uniform} with $J$, $\nu=\nu_p$ and $n_1,\dots,n_4$ gives $h_p$, $b_p$ and $B_p$. \emph{Step 7 (the selected primes).} For $0\le j\le16$ and $\theta\in\mathcal T^+\cup\{\xi\}$ let $c_{j,\theta}=(1/q+d_j-\theta)/y_j^2$, a nonzero rational by \cref{lem:fixed}(a); for fixed $j$ the nine values are distinct. Take $D_*\ge1$ with all $D_*^2c_{j,\theta}\in\Z$, and apply \cref{thm:pattern} to the distinct integers among $0$ and the $D_*^2c_{j,\theta}$ $(\theta\in\mathcal T^+)$, with the following data. First, $D_0=\prod_{p\in\mathcal S}p^{f_p}$, with $f_p$ so large that, for $w_0=D_*w$ and every $w$ divisible by $D_0$, \begin{align*} &\text{(w1)}\quad v_p(c_{j,\theta}w_0^2)\ge1\quad(0\le j\le16,\ \theta\in\mathcal T^+\cup\{\xi\}),\\ &\text{(w2)}\quad 4(k_i+1)e\bigl(v_p(w_0)-v_p(y_j)\bigr)\ge3e+2B_p+(2k_i-1)e|v_p(\varpi)| \end{align*} for $0\le j\le16$, $1\le i\le16$ and every prime $\mathcal Q$ of $L$ above $p$, with $e=v_{\mathcal Q}(p)$. Next, $N_0$ is the product of the odd primes other than $3$, $5$ and $7$ that lie in $\mathcal S$ or divide $J$; $\mathcal S'$ is the set of primes dividing $D_*$, $k_*$, $c_*$, or a numerator or denominator of a $y_j$, a $c_{j,\theta}$ or a nonzero difference $c_{j,\theta}-c_{j,\theta'}$; $Y$ exceeds $m+1$, the primes of $\mathcal S\cup\mathcal S'$ and the prime divisors of $J$; the finite set is $\mathcal S$; and $\Lambda_0$ is so large that $u/w^2>\Lambda_0$ implies, with $\eta=u/w_0^2$, $|R_j-1|\le\frac1{100}$, $t_j\ge1$ and $\varpi^{1-2m}2^{2m}B_{\C}^2t_j^{-4}\le\frac1{500}$ for every $j$, which is possible as $s_j\to\infty$ with $\eta$. We obtain $u$ and $w$; let $\pi_0$ be the Gaussian prime of norm $u$ that the theorem gives, $a_0=\operatorname{Re}(\pi_0)/w_0$ and $b_0=\operatorname{Im}(\pi_0)/w_0$, so that $\eta=a_0^2+b_0^2$ and \ref{ce:ii} holds. For $\theta\in\mathcal T^+\cup\{\xi\}$, \begin{equation}\label{eq:factorisation} s_j+d_j-\theta=\frac{y_j^2}{w_0^2}\bigl(u+c_{j,\theta}w_0^2\bigr),\qquad R_j=\frac{\prod_{\theta\in\mathcal T^+}(u+c_{j,\theta}w_0^2)}{(u+c_{j,\xi}w_0^2)^8}, \end{equation} and the numerator factors are the \emph{selected primes} $u+D_*^2c_{j,\theta}w^2$ of the $j$-th detector. A selected prime $p'$ exceeds $Y$, and $p'\nmid w$, since otherwise $p'\mid u$ and $p'=u>w\ge p'$. So the other factors in \eqref{eq:factorisation} for the same $j$ are units at $p'$, as $u+c_{j,\theta'}w_0^2\equiv(c_{j,\theta'}-c_{j,\theta})w_0^2$, and $v_{p'}(R_j)=1$. \emph{Step 8 (the index $h$).} Let $p'$ be a selected prime, with Gaussian prime $\pi'$. As the primes of $M_A$ are $3$ or divide $N_0$, $\pi'\equiv1+i\pmod{M_A}$, and $p'\nmid\Nm_{F/\Q}(A)$. The two primes of $F$ above $\pi'$ are exchanged by $\sigma$, the generator of $\Gal(F/\Q(i))$; by \ref{re:iii}, $A$ is a square modulo exactly one of them, $\mathfrak p'_+$, and we put $\mathfrak p'_-=\sigma\mathfrak p'_+$ and $N_\pm(p')=\#\tilde E(\cO/\mathfrak p'_\pm)$. By \cref{lem:orders}, $N_+(p')=\Nm(\pi'-\epsilon')$ and $N_-(p')=\Nm(\pi'-\eta'i)$ with $\epsilon',\eta'\in\{1,-1\}$. Let $\Pi_\pm$ be the least common multiple of the $N_\pm(p')$ over the selected primes, and consider the congruences $h\equiv0\pmod{\Pi_+}$, $h\equiv c_*\pmod{\Pi_-}$, $J\mid h$ and $h\equiv h_p\pmod{p^{b_p}}$ $(p\in\mathcal S)$. They are compatible. By \cref{thm:pattern}(ii), (iii), no odd prime divides both $\Pi_+$ and $\Pi_-$; $v_2(\Pi_+)\le6\le\nu_2=v_2(h_2)$, $v_2(\Pi_-)=1$ and $2\mid c_*$; $v_5(\Pi_+)\le2$, $5\nmid\Pi_-$ and $v_5(h_5)=\nu_5\ge\max(2,v_5(J))$; and $\Pi_+\Pi_-$ is prime to $3$, $7$ and the primes of $N_0$, so to every other odd prime of $\mathcal S$ or of $J$. So the solutions form a progression $h^*+N^*\Z$ with $N^*>0$, $J\mid h^*,N^*$ and, we may assume, $h^*>|c_*|$. As $e_{\C}\mid J$, \cref{lem:complexorbit}(b) gives $h=h^*+kN^*$ with $k\ge1$ and $([h]P)_{\C}\in\mathcal U_1$; as $h\in\mathcal C$, Steps~2 and~4 apply to it. Put $\mathsf H=[h]P$, $\mathsf U_i=[n_ih]P$, $\mathsf N_i=[n_i]P$ $(i\ne2)$ and $\mathsf Q=[k_*/M]P$; then $\mathsf R=[k_*]P$ and $\mathsf N_2=[n_2]P$, and the nine points lie in $\Z P\subseteq2E(L)$. \ref{ce:i} holds, as the labels and $h-c_*$ are nonzero, and the tests are defined by \cref{lem:uniform}. As all ingredients of $W_j$ lie in $F$ or $\Q$, $\Theta_j=\Tr_{F/\Q}(W_j^{-1})$ and $B_j$ are rational (\cref{lem:field}(a)), and so are $W_{\rm sc}$ and $B_{\rm sc}$. \emph{Step 9 (the complex size).} At each embedding of $F$ in $\C$, the summand $\alpha_j^{1-2k_i}D_i^2t_j^{-2k_i-2}$ of the $i$-th factor of $W_j$ has absolute value at most $\varpi^{1-2m}2^{2m}B_{\C}^2t_j^{-4}\le\frac1{500}$, as $\varpi<1$, $R_j\ge\frac12$ and $t_j\ge1$. So each conjugate of $W_j$ lies within $(1+\frac1{500})^{16}-1<0.04$ of $1$, each conjugate of $W_j^{-1}$ within $0.05$ of $1$, $\Theta_j\in(3.8,4.2)$, and $01$ be the odd part of $D$, and take $u$, $v$, $w$ and $A$ as in \cref{thm:coefficient} for $d$; for $D=6$ this is $d=3$. Since $\sqrt2\in F$, $L=F(\sqrt D)=F(\sqrt d)$, of degree $2$ over $F$, and by \cref{lem:rankL} with $D_1=d$ the $\Z[i]$-rank of $E_A(L)$ is that of $E_A(F)$ plus that of $E_{d^2A}(F)$. So \ref{co:a} of \cref{thm:coefficient} gives \ref{re:i} of \cref{thm:reduction}, and \ref{co:b} gives \ref{re:ii}. As $A=-4\lambda^2uvw^2$ and $\Nm_{F/\Q}(\lambda)=2$, we have $\Nm_{F/\Q}(A)=2^{10}\Nm u\Nm v(\Nm w)^2$; the three norms are norms of primes of degree one prime to $\lambda$, so they are congruent to $1$ modulo $8$, and $M_A=\Nm u\Nm v\Nm w$. A Gaussian prime $\pi$ as in \ref{re:iii} is therefore $\equiv1+i$ modulo $\Nm u\Nm v$ and has $\Nm\pi\ne\Nm w$, and \cref{thm:coefficient}\ref{co:c} gives \ref{re:iii}. \Cref{thm:reduction} completes the proof. \end{proof} \section{Proof of \texorpdfstring{\cref{thm:biquad}}{Theorem 1.2}}\label{sec:biquad} Let $a$ and $b$ be positive odd squarefree integers prime to $65$, $K=\Q(\sqrt{5a},\sqrt{13b})$, $L=KF$, and $c$ the squarefree integer with $ab/c$ a square, so that $5a$, $13b$ and $65c$ represent the three nontrivial classes in $\langle5a,13b\rangle\subseteq\Q^\times/\Q^{\times2}$. We check the hypotheses of \cref{thm:reduction}, with $n=4$, by the lemmas of \cref{ssec:proofcoef}. \emph{The field.} Each of $5a$, $13b$ and $65c$ has odd valuation at $5$ or at $13$, which are unramified in $F$, so none of them is a square in $F$. Hence $K$ is totally real and Galois of degree $4$, $[L:F]=4$, and the quadratic subfields $\Q(\sqrt{5a})$, $\Q(\sqrt{13b})$, $\Q(\sqrt{65c})$ of $K$ are neither $\Q(\sqrt2)$ nor $\Q(\sqrt3)$. As $K$ is real and $\Q(\sqrt2)$ is the largest real subfield of $F$, $K\cap F=\Q$; and $\sqrt3\notin K$. \emph{The marked primes.} The Gaussian primes $2+i$ and $3-2i$ have norms $5$ and $13$, and $i\equiv3\pmod{2+i}$, $i\equiv8\pmod{3-2i}$ are non-squares modulo $5$ and $13$. So $\mathfrak g=(2+i)\cO$ and $\mathfrak h=(3-2i)\cO$ are primes of $F$, with residue fields $k_{\mathfrak g}=\FF_5(\zeta)$ and $k_{\mathfrak h}=\FF_{13}(\zeta)$ of orders $25$ and $169$, where $\zeta^2=3$, resp.\ $8$. An element $x+y\zeta$ of such a field $\FF_p(\zeta)$ is a square if and only if its norm $x^2-\zeta^2y^2$ is a square modulo $p$, and every element of $\FF_p^\times$ is a square in it. Put $s_{\mathfrak g}=1+\zeta$, $s_{\mathfrak h}=2+\zeta$ and $t_{\mathfrak p}=s_{\mathfrak p}^2$ for $\mathfrak p\in\{\mathfrak g,\mathfrak h\}$. The norms of $s_{\mathfrak g}$ and $s_{\mathfrak h}$ are $-2$ and $-4$, and those of $1-t_{\mathfrak p}=(1-s_{\mathfrak p})(1+s_{\mathfrak p})$ are $(-3)\cdot1$ and $(-7)\cdot1$; so $t_{\mathfrak p}\notin\{0,1\}$ and \begin{equation}\label{eq:marks} \chi_{\mathfrak g}(s_{\mathfrak g})=-1,\qquad\chi_{\mathfrak h}(s_{\mathfrak h})=1,\qquad\chi_{\mathfrak g}(1-t_{\mathfrak g})=\chi_{\mathfrak h}(1-t_{\mathfrak h})=-1. \end{equation} \emph{The coefficient.} Let $d_0$ be the product of the primes dividing $65ab$. Take $t_{\mathfrak g}$, $t_{\mathfrak h}$ as above and a non-square $t_{\mathfrak p}\in k_{\mathfrak p}$ at every other $\mathfrak p\in\mathcal P_{d_0}$, and $u$, $v$, $w$ as in \cref{lem:primes} for $d_0$, whose norms are prime to $2d_0$. Let $A=-4uv(u-v)^2$ and $X=2iu(u-v)$. Then \eqref{eq:classes} holds, and \eqref{eq:chars} holds for $\mathfrak p\in\mathcal P_{d_0}$ with $t=t_{\mathfrak p}$, so $A$ is a non-square unit at $\mathfrak p\in\mathcal P_{d_0}\setminus\{\mathfrak g,\mathfrak h\}$, and $X$ is a non-square unit at $\mathfrak g$ and $\mathfrak h$. For $\mathfrak p\in\{\mathfrak g,\mathfrak h\}$, modulo $\mathfrak p$ we have $A\equiv-4t_{\mathfrak p}u^2\lambda^2$ and $\lambda\equiv(1-t_{\mathfrak p})u$, so $A\equiv(2is_{\mathfrak p}u^2(1-t_{\mathfrak p}))^2$, and $A$ has a square root $a_{\mathfrak p}\in F_{\mathfrak p}$ with this residue up to sign. As $2i=(1+i)^2$ and $-1$ is a square in $k_{\mathfrak p}$, \eqref{eq:marks} gives \[ \chi_{\mathfrak g}(a_{\mathfrak g})=1,\qquad\chi_{\mathfrak h}(a_{\mathfrak h})=-1. \] \emph{$E_A$ over $F$ and the single twists.} By \cref{lem:selA}, with $M=L$ in (b), which is unramified over $F$ at $u$ and $v$ as $\Nm u$ and $\Nm v$ are prime to $2d_0$, $\Sel(A)=\{1,[A],[X],[AX]\}$, $E_A(L)_\tors=\{O,T\}$, and $E_A(F)$ has $\Z[i]$-rank one. Let $d=5a$ and $\mathfrak p^*=\mathfrak g$, or $d=13b$ and $\mathfrak p^*=\mathfrak h$. Then $d$ is prime to $\Nm u\Nm v\Nm w$, and $w\equiv1$ modulo every $\mathfrak p\in\mathcal P_d\subseteq\mathcal P_{d_0}$ by \cref{lem:primes}. Among the primes of $\mathcal P_d$, $A$ is a square only at $\mathfrak p^*$, where $X$ is a non-square unit. So $E_{d^2A}(F)$ has $\Z[i]$-rank zero by \cref{lem:twist}(c). \emph{The product twist.} Let $d=65c$, so that $\mathfrak g,\mathfrak h\in\mathcal P_d$; again $d$ is prime to $\Nm u\Nm v\Nm w$ and $w\equiv1$ modulo every $\mathfrak p\in\mathcal P_d$. By \cref{lem:twist}(a), $W_{\mathfrak p}(d^2A)=W_{\mathfrak p}(A)$ at every prime $\mathfrak p\ne\mathfrak g,\mathfrak h$, as both are the group of unit classes at the other primes of $\mathcal P_d$, while $W_{\mathfrak p}(d^2A)=\{1,[da_{\mathfrak p}]\}$ at $\mathfrak p\in\{\mathfrak g,\mathfrak h\}$. Let $z\in\Sel(d^2A)$. Among the primes of $\mathcal P_d$, $A$ is a square exactly at $\mathfrak g$ and $\mathfrak h$, where $X$ is a non-square unit, so \cref{lem:twist}(b) gives $(-1)^{v_{\mathfrak g}(z)+v_{\mathfrak h}(z)}=1$, and $v_{\mathfrak g}(z)\equiv v_{\mathfrak h}(z)\pmod2$. If both are even, $z$ is a square at $\mathfrak g$ and $\mathfrak h$, so $z\in\Sel(A)$, and $z\in\{1,[A]\}$, since $[X]$ and $[AX]$ are not squares at $\mathfrak g$. Suppose both are odd, so that $z$ is the class of $da_{\mathfrak p}$ at $\mathfrak p\in\{\mathfrak g,\mathfrak h\}$, and put $m_0=(2+i)(3-2i)=8-i$. Then $m_0=-i(1+8i)$ is a square in $F_\lambda$, as $-i=\zeta^6$ and $1+8i\equiv1\pmod{\lambda^{12}}$ (\cref{ssec:dyadic}). For $y\in\{u,v,w\}$, Hilbert reciprocity for $(m_0,y)$ gives $(m_0/y)=(y/\mathfrak g)(y/\mathfrak h)$. This is $1$ for $y=w$, as $w\equiv1$ modulo $\mathfrak g$ and $\mathfrak h$. Hilbert reciprocity for $(m_0,\lambda)$ gives $(\lambda/\mathfrak g)(\lambda/\mathfrak h)=1$; as $u\equiv\lambda/(1-t_{\mathfrak p})$ modulo $\mathfrak p$, \eqref{eq:marks} gives $(u/\mathfrak g)(u/\mathfrak h)=1$; and as $v\equiv t_{\mathfrak p}u$ with $t_{\mathfrak p}$ a square, $(v/\mathfrak g)(v/\mathfrak h)=1$. So $m_0$ is a square at $\lambda$, $u$, $v$ and $w$ and a unit at the other primes $\mathfrak p\ne\mathfrak g,\mathfrak h$, where $A$ is a unit. So $m_0\in W_{\mathfrak p}(A)=W_{\mathfrak p}(d^2A)$ for $\mathfrak p\ne\mathfrak g,\mathfrak h$, and $z/m_0$ lies in $W_{\mathfrak p}(A)$ at every prime, at $\mathfrak g$ and $\mathfrak h$ because its valuation there is even. Hence $z/m_0\in\Sel(A)=\{1,[A],[X],[AX]\}$. At $\mathfrak p\in\{\mathfrak g,\mathfrak h\}$, $z/m_0$ is the class of $da_{\mathfrak p}/m_0=c\,\bar m_0a_{\mathfrak p}$, as $65=m_0\bar m_0$ with $\bar m_0=8+i$. Here $c$ and $\bar m_0$ are units at $\mathfrak p$ with residues in $\FF_5$, resp.\ $\FF_{13}$, so they are squares in $k_{\mathfrak p}$, and the quadratic characters of $z/m_0$ at $\mathfrak g$ and $\mathfrak h$ are $1$ and $-1$. But $[A]$ is a square at $\mathfrak g$ and $\mathfrak h$ and $[X]$ is a non-square unit at both, so each of $1$, $[A]$, $[X]$, $[AX]$ has the same character at $\mathfrak g$ and at $\mathfrak h$. So this case does not occur, $\Sel(d^2A)=\{1,[A]\}$, and $E_{d^2A}(F)$ has $\Z[i]$-rank zero by \cref{lem:localimage}(c). \emph{The rank over $L$.} By \cref{lem:rankL} with $D_1=5a$ and $D_2=13b$, the $\Z[i]$-rank of $E_A(L)$ is the sum of those of $E_A(F)$, $E_{(5a)^2A}(F)$, $E_{(13b)^2A}(F)$ and $E_{(65ab)^2A}(F)$, and $E_{(65ab)^2A}\cong E_{(65c)^2A}$ over $F$ by \cref{lem:descent}(b), with $t^2=ab/c$. So $E_A$ has $\Z[i]$-rank $1+0+0+0=1$ over $L$, which with the above gives \ref{re:i} and \ref{re:ii} of \cref{thm:reduction}. \emph{The characters.} As in the proof of \cref{thm:main}, $M_A=\Nm u\Nm v\Nm w$, so a Gaussian prime $\pi$ as in \ref{re:iii} is $\equiv1+i$ modulo $\Nm u\Nm v$ and has $\Nm\pi\ne\Nm w$, and \cref{lem:selA}(d) gives \ref{re:iii}. \Cref{thm:reduction} completes the proof. \qed \section*{Declarations}\phantomsection\label{sec:declarations} \subsection*{Use of AI} This paper and its results were produced by an AI research system that the author designed, built and directs, running on Anthropic's Claude Opus~5.5 in Claude Code and OpenAI's GPT-6.2 Astra in Codex. The author chooses the problems and prioritizes the work. Separate AI agents checked each result, and a second program confirmed the computations the proofs use, with any exceptions listed in the public deposit. The system also searched the literature and checked the citations against reliable sources. The author read the paper, reran the computations from the deposit and takes full responsibility for all of the paper's contents. \subsection*{Data availability} The accompanying data package~\cite{Record} contains both programs, their saved outputs and instructions for running them. \bibliographystyle{amsplain} \bibliography{refs} \end{document}