\documentclass[11pt,reqno]{amsart} \usepackage{jaswal} \newcommand{\Q}{\mathbb{Q}} \newcommand{\Z}{\mathbb{Z}} \newcommand{\R}{\mathbb{R}} \newcommand{\C}{\mathbb{C}} \newcommand{\cO}{\mathcal{O}} \newcommand{\cS}{\mathcal{S}} \newcommand{\FF}{\mathbb{F}} \DeclareMathOperator{\Nm}{N} \DeclareMathOperator{\Gal}{Gal} \DeclareMathOperator{\Tr}{Tr} \newcommand{\tors}{\mathrm{tors}} \newcommand{\ab}{\mathrm{ab}} \begin{document} \title[$\mathbb{Z}$ is Diophantine in every totally real cubic field]{$\texorpdfstring{\boldsymbol{\mathbb{Z}}}{Z}$ is Diophantine in every totally real cubic field} \author{Manvir Jaswal} \address{Toronto, Canada} \email{manvirjaswal@icloud.com} \urladdr{https://manvirjaswal.github.io} \date{November 30, 2026} \subjclass[2020]{Primary 11U05; Secondary 03D35, 11G05, 11N32, 11R45} \keywords{Hilbert's tenth problem, Diophantine sets, totally real cubic fields, elliptic curves, Selmer groups, prime values of linear forms, Chebotarev density theorem} \hypersetup{pdftitle={Z is Diophantine in every totally real cubic field},pdfauthor={Manvir Jaswal},pdfkeywords={Hilbert's tenth problem, Diophantine sets, totally real cubic fields, elliptic curves, Selmer groups, prime values of linear forms, Chebotarev density theorem}} \begin{abstract} We prove that $\Z$ is Diophantine in every totally real cubic field and in its Galois closure, so that Hilbert's tenth problem over these fields has a negative answer. The same holds for every totally real Galois extension of $\Q$ with group $A_4$ or $S_4$, and so for every totally real quartic field with group $A_4$ or $S_4$. For each such Galois field $K$ we run Sun's construction on a curve $y^2=x^3-Ax$ of $\Z[i]$-rank one over $P$ and over $KP$, where $P=\Q(\zeta_8)$, or $P=\Q(i,\sqrt{17})$ when $\sqrt2\in K$. Fixed prime factors of $A$ remove the Selmer classes that do not come from $P$; the others are prime values of three affine forms, for which we prove an asymptotic formula over $P$ with Frobenius classes in any finite Galois extension. \end{abstract} \maketitle \contents \section{Introduction}\label{sec:intro} A subset $S$ of a commutative ring $R$ is \emph{Diophantine in $R$} if, for some $f\in\Z[X,Y_1,\dots,Y_m]$, $S$ is the set of $a\in R$ such that $f(a,y)=0$ for some $y\in R^m$. Hilbert's tenth problem over $R$ asks for an algorithm deciding whether a polynomial with integer coefficients has a solution 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: through a Diophantine definition of $\Z$ an equation over $\Z$ becomes a system over $K$, and over a real field a system is one equation, the sum of the squares. \needspace{4\baselineskip} \begin{theorem}\label{thm:main} Let $k$ be a totally real cubic field and $K$ its Galois closure. Then $\Z$ is Diophantine in $k$ and in $K$. In particular, Hilbert's tenth problem over $k$ and over $K$ has a negative answer. \end{theorem} If $k$ is not cyclic, $K$ is a totally real Galois extension of $\Q$ with group $S_3$, and every such field is the Galois closure of its cubic subfields. 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 these rings has a negative answer, as Alp\"oge, Bhargava, Ho and Shnidman also proved \cite[Corollary~1.2]{ABHS}. 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 another proof that $\Z$ is Diophantine in $\Q$, through congruent-number twists, is in \cite{ZinQ}. Pasten and Vidaux proved that $\Z$ is Diophantine in every number field $K$ over which the $abc$ conjecture holds and some elliptic curve over $\Q$ of positive rank has the same rank over $K$ \cite[Theorem~1.1]{PastenVidaux}. Poonen proved that if $F\subseteq K$ are number fields and an elliptic curve over $F$ has rank one over both $F$ and $K$, then the ring of integers of $F$ is Diophantine over that of $K$, by a polynomial with coefficients in the latter \cite{PoonenRankOne}; see Shlapentokh's book \cite{Shlapentokh} for the earlier theory. Sun proved that $\Z$ is Diophantine in $\Q(\sqrt2)$, $\Q(\sqrt3)$ and $\Q(\sqrt6)$ \cite[Theorems~1.2--1.4]{Sun}, by a construction \cite[\S\S9, 10, 12, 13]{Sun} that reads integers off as multiples of one point on an elliptic curve $E$ over a number field $F\not\subseteq K$, of rank one over $F$ and over $KF$. Our earlier paper runs his construction over every totally real field $K$ for which one of four curves of this kind over real quadratic fields has rank one over $KF$, with conditions on torsion and on $2E(KF)$ \cite[Theorem~1.1]{TotallyReal}, and this gives \cref{thm:main} for the cyclic cubic fields of conductor $9$, $13$, $19$ and $37$ \cite[Theorem~1.2(d)]{TotallyReal}. Another runs it over every real quadratic field \cite[Theorem~1.1]{RealQuadratic}. With the theorems for $\Q$ and for real quadratic fields, \cref{thm:main} proves Sun's conjecture that $\Z$ is Diophantine in every number field \cite[Conjecture~1.5]{Sun} for the totally real fields of degree at most three. While this paper was being completed, Ryan posted a manuscript with a proof that $\Z$ is Diophantine in every totally real field \cite[Theorem~1.1]{Ryan}, by a different construction that uses the height bounds of \cite[Theorems~1.6 and~10.2]{TotallyReal}. His theorem contains \cref{thm:main,thm:A4}, which we obtained independently, but not the prime values with Frobenius conditions of \cref{thm:primes}. \subsection*{What changes for cubic fields} Throughout, $\zeta=e^{\pi i/4}$, $i=\zeta^2$, $F=\Q(\zeta)$, $\cO=\Z[\zeta]$, $\lambda=1-\zeta$, and $E_A\colon y^2=x^3-Ax$ over $F$ for $A\in\cO\setminus\{0\}$, with $T=(0,0)$, as in \cite[(1.1)]{RealQuadratic}; through $[i](x,y)=(-x,iy)$ its points over an extension of $F$ form a $\Z[i]$-module, and ranks are \emph{$\Z[i]$-ranks}. For a totally real field $K$ let $L=KF$. Sun's construction on $E_A$ shows that $\Z$ is Diophantine in $K$ if $E_A$ has rank one over $F$ and over $L$, with conditions on $K$, on torsion and on residues that we recall before \cref{thm:coefficient} \cite[Theorem~1.5]{RealQuadratic}. For $K=\Q(\sqrt D)$, $D>3$ squarefree, we met them with $A=-4uv(u-v)^2$, where $u$, $v$ and $w=(u-v)/\lambda$ are prime elements in prescribed residue classes, by the method of Koymans and Pagano \cite[\S\S1.3, 5.1--5.2]{KoymansPagano}: the forms carry a point of $E_A(F)$ and are made prime by Kai's theorem \cite{Kai}, and descents by $1+i$ over $F$, decided by congruences, give rank one to $E_A$ and rank zero to its twist by $D$ \cite[Theorem~1.4]{RealQuadratic}. We keep this coefficient. Now let $K$ be totally real and Galois over $\Q$ with group $\Z/3\Z$ or $S_3$ and $\sqrt2\notin K$, so that $\Gal(L/F)\cong\Gal(K/\Q)$; let $k$ be a cubic subfield and, for $S_3$, $\Q(\sqrt d)$ the quadratic subfield, with $d>1$ squarefree. By the decomposition of $E_A(L)\otimes\Q$ under $\Gal(L/F)$, $E_A$ has rank one over $F$ and over $L$ if and only if it has rank one over $F$ and over $kF$ and, for $S_3$, its twist by $d$ has rank zero over $F$, which the descents over $F$ give as in \cite{RealQuadratic}. What is new is the descent over $kF$. We call a class in $(kF)^\times/(kF)^{\times2}$ \emph{primitive} if its norm to $F$ is a square; the Selmer group over $kF$ is the sum of the classes from $F$ and its primitive classes, and we must make the primitive ones trivial. At a prime of $kF$ above an odd prime of $F$ with Frobenius of order three in $L/F$, $kF/F$ has local degree three, so every local square class comes from $F$ and a primitive class is a local square. We take $u$, $v$ and $w$ of this kind. Then the primitive Selmer classes form the group $\cS_K$ of primitive classes with even valuation at every odd prime of $kF$ that lie in the local images above $2$. These images are fixed by $u$ and $v$ modulo $32$, so $\cS_K$ depends only on $K$, and when $\cS_K\ne0$ no choice of $u$, $v$ and $w$ of this kind removes it. \subsection*{The idea} We remove $\cS_K$ with fixed prime factors of $u$, chosen before the prime values as Koymans and Pagano choose their auxiliary twist \cite[\S5.3]{KoymansPagano}, at which reciprocity tests the primitive Selmer classes against $\cS_K$. We take $u=QU$, $v=V$ and $u-v=\lambda W$, where $Q$ is a product of prime elements of $F$ chosen once for $K$, which we call the \emph{auxiliary primes}, and $U$, $V$, $W$ are prime elements with Frobenius of order three in $L/F$. At an auxiliary prime the local image over $kF$ is spanned by the class of $A$, which has odd valuation there, so a primitive Selmer class $c$ is a local square there once its valuations there are even. Reciprocity tests these valuations. For $b\in\cS_K$ the Hilbert symbol of $b$ and $c$ is trivial above $2$, where both lie in the local image, which is isotropic, and at every odd prime of $kF$ not above an auxiliary prime; so the product formula makes the vector of valuations of $c$ above the auxiliary primes orthogonal to the vector of quadratic residue symbols of $b$ there. Above an auxiliary prime that splits in $L$ both vectors lie in the plane of vectors in $\FF_2^3$ with sum zero, as $b$ and $c$ have square norm, and on this plane the dot product is nondegenerate. Above one with Frobenius a transposition, $kF$ has a prime of degree one and one of degree two, and the norm condition leaves one coordinate. So a split prime gives two independent tests and a transposition prime one. With $r=\dim_{\FF_2}\cS_K$, $\lfloor r/2\rfloor$ split primes and, for odd $r$, one transposition prime, whose residue symbols map $\cS_K$ bijectively onto the space of tests, make the valuations of $c$ even and then $c$ trivial. For cyclic $K$, $\cS_K$ is a vector space over $\FF_2[\sigma]/(\sigma^2+\sigma+1)\cong\FF_4$, with $\sigma$ a generator of $\Gal(L/F)$, so $r$ is even. Such primes exist by the Chebotarev density theorem in the Galois closure over $F$ of $kF(\sqrt b:b\in\cS_K)$, whose maximal abelian subextension over $F$ is $L$ for cyclic $K$ and $F(\sqrt d)$ otherwise. So their residues modulo $32$ and modulo the earlier auxiliary primes can be prescribed as well, and with $UV$ a non-square modulo each of them they drop out of the descents over $F$. The prime elements $U$, $V$, $W$ must have Frobenius of order three in $L/F$. For cyclic $K$ this is a congruence condition modulo the conductor of $K$. For group $S_3$ it asks for a $3$-cycle, which no congruence condition determines, as $L/F$ is not abelian; so we need prime values of three affine forms with Frobenius conditions in a non-abelian extension (\cref{thm:primes}). \subsection*{Fields with group \texorpdfstring{$A_4$}{A4} or \texorpdfstring{$S_4$}{S4}} The same method reaches every totally real field with group $A_4$ or $S_4$. \begin{theorem}\label{thm:A4}\label{thm:S4} Let $K$ be a totally real Galois extension of $\Q$ with group $A_4$ or $S_4$. Then $\Z$ is Diophantine in $K$ and in each of its subfields. In particular $\Z$ is Diophantine in every totally real quartic field whose Galois group is $A_4$ or $S_4$, and Hilbert's tenth problem over each of these fields has a negative answer. \end{theorem} For group $A_4$, let $C$ be the cyclic cubic subfield of $K$; then $L$ is a Klein four extension of $CF$, and the construction for cyclic fields gives rank one over $CF$, with $U$, $V$, $W$ fixed by congruences. Two further prime factors of $u-v$, split in $CF$ and chosen through the images of the primitive classes at them, give rank zero to the three quadratic twists over $CF$ that make up the rest of $E_A(L)$. For group $S_4$, the rank over $KF$, or over $KB$ when $\sqrt2\in K$, is read off five descents: of $E_A$ and its twist by the quadratic subfield over the base, and of $E_A$ and two quadratic twists over the cubic resolvent field, which carry the two representations of degree three. Starting from the coefficient for the Galois closure of the cubic resolvent, we insert fixed primes, chosen through Lagrangian subspaces of the local square classes, until the last three descents have Selmer groups of dimensions $2$, $1$, $1$, with prime values from \cref{thm:primes} for the class of $3$-cycles. The totally real quartic fields that \cref{thm:A4} leaves have group $C_4$, $V_4$ or $D_4$. For $D_4$, with $K$ the Galois closure, rank one over $KF$ also asks that the rank over $M_4F$ equal the rank over $F(\sqrt d)$, where $M_4$ is a non-Galois quartic subfield of $K$ with quadratic subfield $\Q(\sqrt d)$; this condition lies in the two-dimensional representation of $D_4$, which the constructions of this paper do not control. The totally real quartic fields of least discriminant with group $A_4$ and $S_4$ \cite{LMFDB}, of discriminants $163^2$ and $1957=19\cdot103$, are defined by $x^4-x^3-7x^2+2x+9$ and $x^4-4x^2-x+1$; for their Galois closures we give coefficients in \cref{sec:A4,sec:S4} and verify them without a prime-value theorem. \subsection*{Prime values with Frobenius conditions} Let $N/F$ be a finite Galois extension with group $G$. For a conjugacy class $C$ of $G$ and $x\in\cO$ let $\Lambda_C(x)=\log\Nm\mathfrak p$ if $x\cO=\mathfrak p$ is a prime ideal unramified in $N$ with Frobenius class $C$, where $\Nm\mathfrak p$ is the absolute norm, and $\Lambda_C(x)=0$ otherwise. Let $N^\ab$ be the maximal abelian subextension of $N/F$, so that $\Gal(N^\ab/F)=G/[G,G]=G^\ab$. Fix a basis of $\cO$ over $\Z$, let $\cO_H$ be the set of elements of $\cO$ whose coordinates lie in $[-H,H]$, and let $\rho_F$ be the residue of $\zeta_F(s)$ at $s=1$. \begin{theorem}\label{thm:primes} Let $N/F$ be a finite Galois extension with group $G$, and let $C_1$, $C_2$, $C_3$ be conjugacy classes of $G$. Let $m,a,b,c\in\cO\setminus\{0\}$ and $U_0,V_0,e\in\cO$ be such that \[ \psi_1(s,t)=U_0+ms,\qquad\psi_2(s,t)=V_0+mt,\qquad\psi_3(s,t)=\frac{a\psi_1(s,t)+b\psi_2(s,t)+e}{c} \] lie in $\cO$ for all $s,t\in\cO$. Let $f_0$ be a positive integer, divisible by every prime that ramifies in $F$ or divides $\Nm_{F/\Q}(mabc)$, such that $f_0\cO$ is divisible by the conductor of $N^\ab/F$. Let $\Theta$ be the proportion, among the pairs $(s,t)\in(\cO/f_0\cO)^2$ at which $\psi_1$, $\psi_2$, $\psi_3$ are units, of those at which the Artin symbol of $\psi_j(s,t)\cO$ in $G^\ab$ is the image of $C_j$ for $j=1,2,3$, with $\Theta=0$ if there are no such pairs. For a prime $p$ let $\beta_p$ be the proportion of pairs $(s,t)\in(\cO/p\cO)^2$ at which $\psi_1$, $\psi_2$, $\psi_3$ are units, divided by $(\#(\cO/p\cO)^\times/p^4)^3$. Then, for every $A>0$, as $H\to\infty$, \begin{equation}\label{eq:count} \sum_{s,t\in\cO_H}\prod_{j=1}^3\Lambda_{C_j}\bigl(\psi_j(s,t)\bigr)=\Bigl(\prod_{j=1}^3\frac{\#C_j}{\#G}\Bigr)(\#G^\ab)^3\Theta\cdot\frac{(2H)^8}{\rho_F^3}\prod_p\beta_p+O\bigl(H^8(\log H)^{-A}\bigr), \end{equation} where the product over $p$ converges absolutely and the implied constant depends on $A$ and on the data, which are fixed. If $\Theta>0$ and $\beta_p>0$ for every $p$, then there are $\gg H^8(\log H)^{-3}$ pairs $s,t\in\cO_H$ at which $\psi_1$, $\psi_2$, $\psi_3$ are prime elements of degree one, with distinct norms, unramified in $N$, whose Frobenius classes are $C_1$, $C_2$, $C_3$. All of this holds with $F$, $\cO$ and $\rho_F$ replaced by $B=\Q(i,\sqrt{17})$, its ring of integers and $\rho_B$. \end{theorem} The Artin symbol in the definition of $\Theta$ depends only on the residue of $\psi_j(s,t)$ modulo $f_0\cO$, as $F$ and $B$ have no real place, and $\Theta$ does not depend on $f_0$. The factor $(\#G^\ab)^3\Theta$ is $1$ when the three Artin symbols in $G^\ab$ are independent and equidistributed on the pairs at which the forms are units. Over $\Q$, Kane proved an asymptotic formula for the solutions of a linear equation in primes with prescribed Frobenius classes \cite[Theorem~2]{Kane}, and Frei and Tinková for any system of affine-linear forms of finite complexity \cite[Theorem~1.4]{FreiTinkova}. As there, apart from the factor $\prod_j\#C_j/\#G$, the main term depends only on the images of the $C_j$ in $G/[G,G]$, and so does its positivity \cite[Theorem~2 and Corollary~4]{Kane}, \cite[(1.15) and Remark~1.5]{FreiTinkova}. \Cref{thm:primes} is the case of three forms over $\Z[\zeta_8]$ and over the integers of $B$, in the setting of Kai's theorem on linear patterns of prime elements \cite[Theorem~12.1]{Kai}, with Frobenius classes in an arbitrary finite Galois extension. We prove \cref{thm:primes} in \cref{sec:primes}, for both fields at once. The indicator of a conjugacy class is a combination of characters induced from linear characters of cyclic subgroups, and we first remove its mean on each coset of $[G,G]$. For a character induced from a subgroup $S$, the sum over prime elements $z$ weighted by its value at the Frobenius of $z$ and by $e(\Tr_{F/\Q}(\xi z))$ becomes a sum over the prime ideals of the fixed field $N^S$ with principal norm, weighted by a Hecke character. We take them class by class as $x\mathfrak b^{-1}$, for a fixed ideal $\mathfrak b$ in each class and $x\in\mathfrak b$, so that $z$ is a unit times $\Nm_{N^S/F}(x)$ divided by a generator of the norm of $\mathfrak b$, and the phase becomes a polynomial of degree $[N^S:F]$ in the coordinates of $x$. Kai's estimate on $N^S$, \cref{prop:kai}, replaces the primes by a sieve model, and the model sum is small unless $\xi$ is close to an element of $F$ with small denominator, where its main term is an integral times a finite average modulo a modulus $m'$ that may depend on $H$ and $\xi$. For a class function with mean zero on each coset of $[G,G]$ this average vanishes, as it is a limit of prime sums to which the Chebotarev density theorem applies in the compositum of $N$ and the ray class field of $F$ modulo $m'$; no uniformity in $m'$ is needed. The count then reduces to $G^\ab$, where the Frobenius conditions are congruences modulo $f_0$. \subsection*{The coefficient} Our earlier paper states what Sun's construction needs of $A$ \cite[Theorem~1.5]{RealQuadratic}. Let $K$ be totally real and Galois over $\Q$, with $K\cap F=\Q$ and $\sqrt3\notin K$, and let $M_A$ be the product of the odd primes other than $5$ and $7$ that divide $\Nm_{F/\Q}(A)$. Then $\Z$ is Diophantine in $K$ if \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\}$, and \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} \begin{theorem}\label{thm:coefficient} Let $K$ be a totally real Galois number field with group $\Z/3\Z$, or with group $S_3$ and $\sqrt2\notin K$, and put $L=KF$. Then some $A\in\cO\setminus\{0\}$ satisfies \ref{re:i}, \ref{re:ii} and \ref{re:iii}. It can be taken of the form $A=-4uv(u-v)^2$ with $u=QU$, $v=V$ and $u-v=\lambda W$, where $U$, $V$ and $W$ are prime elements of degree one whose Frobenius in $L/F$ has order three, and $Q$ is a product of prime elements of $F$ that are $\equiv1\pmod{32}$. \end{theorem} For a given field a coefficient is found by a finite search, since the proofs ask of its prime factors only primality, congruences and Frobenius classes; but our proof does not give the polynomial, as \cite[Theorem~1.5]{RealQuadratic} uses Sun's height bound on the tube \cite[Theorem~1.7]{Sun}, in the form \cite[Theorem~1.6]{TotallyReal}, whose constant is only shown to exist. \subsection*{The proof} \Cref{sec:primes} proves \cref{thm:primes} and uses nothing else from the paper. \Cref{sec:frame} collects what we use from \cite{RealQuadratic}, the descent by $1+i$ over finite extensions of $F$ and its local images, and adds the local image over the unramified cubic extension of $F_\lambda$. \Cref{sec:cyclic,sec:S3} prove \cref{thm:coefficient} for cyclic $K$ and for group $S_3$. \Cref{sec:sqrt3sqrt2} treats the cases that \cite[Theorem~1.5]{RealQuadratic} leaves out, as changes to \cite[\S\S3--6]{RealQuadratic}: if $\sqrt3\in K$, the height bound with a second tube prime \cite[Theorem~10.2]{TotallyReal} replaces \cite[Theorem~1.6]{TotallyReal}, and if $\sqrt2\in K$, we replace $F$ by $B$, which contains $i$ and meets $K$ in $\Q$. \Cref{sec:A4,sec:S4} prove \cref{thm:A4} for groups $A_4$ and $S_4$, and \cref{sec:proofs} deduces \cref{thm:main,thm:A4}, going down to subfields by restriction of scalars. \subsection*{Computations} The computations the proofs read were made in PARI/GP and Python, with exact checks of the results and with the class groups determined unconditionally; the programs and their outputs are in the deposit \cite{Record}. \section{Prime values with Frobenius conditions}\label{sec:primes} In this section $F$ denotes $\Q(\zeta_8)$ or $B=\Q(i,\sqrt{17})$, and $\cO$ its ring of integers, with the basis fixed in \cref{thm:primes}; the proof is the same for both. They are totally complex of degree $d=4$, so that $\cO^\times$ has rank one, and both ramify at $2$, so that $2\mid f_0$; nothing else about $F$ is used, and its class number need not be one. We write $F_\infty=F\otimes_\Q\R$, with the Lebesgue measure $dz$ for which $\cO$ has covolume one, $\Tr$ for the trace of $F_\infty$ over $\R$, $e(t)=e^{2\pi it}$, $e_\xi(z)=e(\Tr(\xi z))$ for $\xi,z\in F_\infty$, and $\cO^\vee=\{y\in F:\Tr(y\cO)\subseteq\Z\}$. For a number field $M$ and a nonzero ideal $\mathfrak a$ of $\cO_M$, $\Lambda_M(\mathfrak a)=\log\Nm\mathfrak P$ if $\mathfrak a=\mathfrak P^h$ with $\mathfrak P$ prime and $h\ge1$, and $\Lambda_M(\mathfrak a)=0$ otherwise; $\rho_M$ is the residue of $\zeta_M(s)$ at $s=1$, and $\|t\|$ is the distance from $t\in\R$ to $\Z$. Frobenius elements are arithmetic, and for a prime $\mathfrak p$ of $F$ unramified in $N$ and $h\ge1$ we write $\mathrm{Frob}_{\mathfrak p^h}$ for the class of $\mathrm{Frob}_{\mathfrak p}^h$. Fix $N/F$ finite Galois with group $G$. We run the argument with a fixed multiple $f_1$ of $f_0$ that is divisible by every prime below a prime of $F$ ramified in $N$ and by the conductors of the characters of \cref{ssec:induced}; we raise the powers of its primes finitely often below, always before $H$ varies (this does not change $\Theta$; see \cref{ssec:count}). For a class function $f$ on $G$, a bounded parallelotope $\Omega\subset F_\infty$, $H\ge2$ and $\xi\in F_\infty$ put \[ T_f(H,\xi;\Omega)=\sum_{z}\Lambda_F(z\cO)\,f(\mathrm{Frob}_{z\cO})\,e_\xi(z), \] the sum over the $z\in\cO\cap H\Omega$ with $z\cO$ a prime power prime to $f_1$. \begin{proposition}\label{prop:minor} Let $f$ be a class function on $G$ whose sum over every coset of $[G,G]$ vanishes. Then, for every $A>0$, \[ \sup_{\xi\in F_\infty}|T_f(H,\xi;\Omega)|\ll H^d(\log H)^{-A}, \] where the implied constant depends on $A$, $N$, $f$, $f_1$ and $\Omega$. \end{proposition} \Cref{ssec:induced,ssec:model,ssec:dichotomy,ssec:vanishing} prove \cref{prop:minor}, and \cref{ssec:count} deduces \cref{thm:primes} from it. \subsection{Induced characters}\label{ssec:induced} Let $g\in G$, with class $C$, and $S=\langle g\rangle$. The induced class function of the indicator $1_g$ of $g$ on $S$ is $(\#C_G(g)/\#S)\,1_C$, and $1_g=(\#S)^{-1}\sum_\psi\overline{\psi(g)}\,\psi$ over the characters $\psi$ of $S$. So, as in Kane's proof over $\Q$ \cite[Proposition~6]{Kane}, every class function is a linear combination of characters $\operatorname{Ind}_S^G\psi$ with $S$ cyclic and $\psi$ linear. We fix such an expansion of $f$ once; its terms need not have coset sums zero, and the hypothesis of \cref{prop:minor} is used only in \cref{ssec:vanishing}. Fix one term $I=\operatorname{Ind}_S^G\psi$, with $S$ a subgroup and $\psi$ a linear character of $S$, and let $M=N^S$, $\nu=[M:F]$ and $n=[M:\Q]=d\nu$; $M$ has no real place. By class field theory $\psi$, as a character of $\Gal(N/M)$, is a character of a ray class group of $M$ whose modulus is supported on primes that ramify in $N$. Raising the powers in $f_1$, we take it modulo $f_1\cO_M$ and write $\psi(\mathfrak a)$ for ideals $\mathfrak a$ of $\cO_M$ prime to $f_1$. \needspace{4\baselineskip} \begin{lemma}\label{lem:induced} For every prime $\mathfrak p$ of $F$ prime to $f_1$ and every $h\ge1$, \[ \Lambda_F(\mathfrak p^h)\,I(\mathrm{Frob}_{\mathfrak p^h})=\sum_{\Nm_{M/F}\mathfrak a=\mathfrak p^h}\Lambda_M(\mathfrak a)\,\psi(\mathfrak a), \] the sum over the ideals $\mathfrak a$ of $\cO_M$ of norm $\mathfrak p^h$. \end{lemma} \begin{proof} The primes $\mathfrak P$ of $M$ above $\mathfrak p$ correspond to the orbits of $\mathrm{Frob}_{\mathfrak p}$ on $G/S$, and the orbit of $\mathfrak P$ has as many elements as its residue degree $j$ over $\mathfrak p$. On the $j$ basis vectors of the induced representation indexed by this orbit, $\mathrm{Frob}_{\mathfrak p}^h$ has trace $0$ unless $j\mid h$, and then trace $j\psi(\mathfrak P)^{h/j}$, because $\mathrm{Frob}_{\mathfrak p}^j$ multiplies each of these vectors by $\psi$ of a Frobenius element of $\mathfrak P$ in $N/M$. On the right, the prime powers of norm $\mathfrak p^h$ are the $\mathfrak P^{h/j}$ with $j\mid h$, and $\Lambda_M(\mathfrak P^{h/j})=j\log\Nm\mathfrak p$. \end{proof} If $\Nm_{M/F}\mathfrak a$ is principal, the class of $\mathfrak a$ lies in the subgroup of the class group of $M$ of classes with principal norm; when $F=\Q(\zeta_8)$ this is the whole class group. For each class of this subgroup fix an integral ideal $\mathfrak b$ prime to $f_1$ in the inverse class, a generator $u_{\mathfrak b}$ of $\Nm_{M/F}\mathfrak b$, and a basis of $\mathfrak b$ that is norm-length compatible in the sense of \cite[Definition~3.2]{Kai}, which exists by \cite[Proposition~3.1]{Kai}. The coordinates of an element of $\mathfrak b$, or of $\mathfrak b\otimes\R=M_\infty$, are taken in this basis, and its components are its images $x_w\in\C$ at the complex places $w$ of $M$. Then $\mathfrak a=x\mathfrak b^{-1}$ with $x\in\mathfrak b$ unique up to $\cO_M^\times$, and the generators of $\Nm_{M/F}\mathfrak a$ are the $\eta\Nm_{M/F}(x)/u_{\mathfrak b}$, $\eta\in\cO^\times$. Let $E_M$ be the kernel of $\Nm_{M/F}$ on $\cO_M^\times$ and $\mu_M$ the number of roots of unity in $E_M$, and let $\eta$ run over representatives of $\cO^\times/\Nm_{M/F}(\cO_M^\times)$, a finite group, being finitely generated and killed by $\nu$. Above each of the two complex places of $F$ lie $\nu$ complex places of $M$; for $x\in M_\infty$ with nonzero components let $r(x)$ be the vector of the $\log|x_w|$ minus their mean over the places $w$ above the same place of $F$. As $E_M$ has rank $(n-d)/2$, the dimension of the space of vectors with sum zero in each block, the $r(\epsilon)$ with $\epsilon\in E_M$ form a lattice in that space. Fix a half-open fundamental parallelepiped for it, and let $D_M$ be the set of $x\in M_\infty$ with nonzero components and $r(x)$ in it; each $E_M$-orbit in $M^\times$ meets $D_M$ in $\mu_M$ points. Put \[ Z_{\mathfrak b,\eta}(x)=\frac{\eta\Nm_{M/F}(x)}{u_{\mathfrak b}},\qquad R_{\mathfrak b,\eta}(\Omega)=D_M\cap Z_{\mathfrak b,\eta}^{-1}(\Omega),\qquad X=H^{1/\nu}, \] so that $Z_{\mathfrak b,\eta}(\mathfrak b)\subseteq\cO$ and $R_{\mathfrak b,\eta}(H\Omega)=XR_{\mathfrak b,\eta}(\Omega)$, and let $\chi(x)=\psi(x\cO_M)$ for $x\in\cO_M$ prime to $f_1$ and $\chi(x)=0$ otherwise; $\chi$ is periodic modulo $f_1\cO_M$, as $M$ has no real place. By \cref{lem:induced}, \begin{equation}\label{eq:inducing} T_I(H,\xi;\Omega)=\sum_{\mathfrak b,\eta}\frac{\overline{\psi(\mathfrak b)}}{\mu_M}\sum_{x\in\mathfrak b\cap XR_{\mathfrak b,\eta}(\Omega)}\Lambda_M(x\mathfrak b^{-1})\,\chi(x)\,e_\xi\bigl(Z_{\mathfrak b,\eta}(x)\bigr), \end{equation} and $\Tr(\xi Z_{\mathfrak b,\eta}(x))$ is a form of degree $\nu$ in the coordinates of $x$. \begin{lemma}\label{lem:region} Let $\mathfrak b$ and $\eta$ be as above. \begin{enumerate} \item $R_{\mathfrak b,\eta}(\Omega)$ is bounded, and for some $\gamma>0$ the set of points within distance $\varepsilon\le1$ of its boundary has volume $O(\varepsilon^\gamma)$. \item There is $J_M>0$, independent of $\mathfrak b$, $\eta$ and $\Omega$, such that for every bounded measurable function $\Psi$ on $H\Omega$, with $dx$ the Lebesgue measure for which $\cO_M$ has covolume one, \[ \frac1{\Nm\mathfrak b}\int_{XR_{\mathfrak b,\eta}(\Omega)}\Psi\bigl(Z_{\mathfrak b,\eta}(x)\bigr)\,dx=J_M\int_{H\Omega}\Psi(z)\,dz . \] \end{enumerate} \end{lemma} \begin{proof} (a) On $D_M$ the logarithms of the absolute values of the components in a block differ from their mean by a bounded amount, and the product over a block is bounded on $Z_{\mathfrak b,\eta}^{-1}(\Omega)$, so $R=R_{\mathfrak b,\eta}(\Omega)$ is bounded. Near a face of $\Omega$, on which a linear function $\lambda_0$ takes the value $c_0$, consider $\lambda_0(Z_{\mathfrak b,\eta}(x))-c_0$, a polynomial of degree $\nu$ in $x$ whose top form is nonzero, as $\Nm_{M/F}$ maps $M_\infty$ onto $F_\infty$. Along each line in a direction in which this top form does not vanish, $|\lambda_0(Z_{\mathfrak b,\eta}(x))-c_0|\ll\varepsilon$ puts the parameter within $O(\varepsilon^{1/\nu})$ of a complex root, and integrating over the transverse coordinates bounds this part by $O(\varepsilon^{1/\nu})$. Near a face of $D_M$, the points with a component of absolute value less than $2\varepsilon^{1/3}$ have volume $O(\varepsilon^{2/3})$; at the others a nonzero linear combination of the $\log|x_w|$ is within $O(\varepsilon^{2/3})$ of a constant, which confines one $|x_w|$ to a relative interval of length $O(\varepsilon^{2/3})$. So $\gamma=\min(1/\nu,2/3)$ will do. (b) In polar coordinates $x_w=\exp(t_w+i\theta_w)$ the measure $dx$ is a constant times $\exp(2\sum_wt_w)\prod_w dt_w\,d\theta_w$. Passing to the block sums $\sigma_v=\sum_{w\mid v}t_w$ and to $r(x)$, which ranges over a fixed bounded set on $D_M$, is a linear change with constant Jacobian, and the angles push forward to Haar measure on the angles of $F_\infty$. So $\Nm_{M/F}$ takes $dx$ on $D_M$ to a constant times $\exp(2\sum_v\sigma_v)\prod_v d\sigma_v\,d\theta_v$, that is, to a constant times $dz$. Multiplication by $u_{\mathfrak b}/\eta$ multiplies $dz$ by $|\Nm_{F/\Q}(u_{\mathfrak b})|=\Nm\mathfrak b$, and the sets with a vanishing component are null. \end{proof} \subsection{The model}\label{ssec:model} For $x\in\mathfrak b$ let $\Nm_{\mathfrak b}(x)=\Nm(x\mathfrak b^{-1})$, with $\Nm_{\mathfrak b}(0)=0$, and say that $x$ is \emph{prime to} a prime number $p$ if $p\nmid\Nm_{\mathfrak b}(x)$. For a positive integer $k$ divisible by $f_1$ let $U_{\mathfrak b}(k)$ be the set of classes in $\mathfrak b/k\mathfrak b$ of elements prime to every prime dividing $k$. Locally at $p$, $x=h_py$ for a generator $h_p$ of $\mathfrak b\otimes\Z_p$ and some $y\in\cO_M\otimes\Z_p$, and $\eta\Nm_{M/F}(h_p)/u_{\mathfrak b}$ is a unit there; so $Z_{\mathfrak b,\eta}$ induces a map $\mathfrak b/k\mathfrak b\to\cO/k\cO$ that takes $U_{\mathfrak b}(k)$ into $(\cO/k\cO)^\times$. For $l\colon\cO/k\cO\to\C$ put \begin{equation}\label{eq:D} D_{I,k}(l)=\frac{J_M}{\mu_M\rho_M}\sum_{\mathfrak b,\eta}\overline{\psi(\mathfrak b)}\;\mathbb E_{x\in U_{\mathfrak b}(k)}\bigl[\chi(x)\,l(Z_{\mathfrak b,\eta}(x))\bigr], \end{equation} and let $D_{f,k}$ be the corresponding combination of the $D_{I,k}$ over the expansion of $f$ fixed in \cref{ssec:induced}. Let $X_0$ be an integer, $X\ll X_0\ll X$, such that $XR_{\mathfrak b,\eta}(\Omega)$ lies in the box $[-X_0,X_0]^n$ of coordinates for every $\mathfrak b$ and $\eta$. Put $Q=\exp((\log X_0)^{1/10})$, $P(Q)=\prod_{p0$. Replacing $\Lambda_M(x\mathfrak b^{-1})$ by $\Lambda^\natural(x)$ in \eqref{eq:inducing} changes $T_I(H,\xi;\Omega)$ by $O(H^d(\log H)^{-A'})$, uniformly in $\xi$. The same holds with $e_\xi(Z_{\mathfrak b,\eta}(x))$ multiplied by a fixed function of $x$ modulo $k\mathfrak b$ of modulus at most one, for fixed $k$. \end{lemma} \begin{proof} Here $X^n=H^d$. Tile the box of coordinates by cubes of side $X_1=X(\log X)^{-c_1}$, with $c_1$ large. The cubes that meet the boundary of $XR_{\mathfrak b,\eta}(\Omega)$ lie within distance $O(X_1)$ of it, so by \cref{lem:region}(a) they contain $O(X^n(\log X)^{-c_1\gamma})$ points of $\mathfrak b$, at which both weights are $O((\log X)^n)$. There are $O((\log X)^{nc_1})$ cubes inside the region. On such a cube $\mathcal C$, expand $\chi$, which is periodic modulo $f_1\mathfrak b$ on $\mathfrak b$, into additive characters; each term is $e(\varphi(x))$ for a polynomial $\varphi$ of degree at most $\nu$ in the coordinates. Extend $1_{\mathcal C}(\Lambda_M(x\mathfrak b^{-1})-\Lambda^\natural(x))$ by zero to a torus $(\Z/X_2\Z)^n$ with $X_2>8(\nu+2)X_0$ and $X_2\ll X_0$. The Gowers--Cauchy--Schwarz inequality bounds its correlation with $e(\varphi(x))$ by its $U^{\nu+1}$ norm: only parallelepipeds with all vertices in $[-X_0,X_0]^n$ contribute, these lift to parallelepipeds in $\Z^n$, and on them the alternating sum of the values of $\varphi$ vanishes, as $\varphi$ has degree at most $\nu$. By \cref{prop:kai} for $M$, which contains $F$ and so has no real place, with $s=\nu$, the ideal $\mathfrak b$, $N=X_0$ and the convex set $\mathcal C$, that norm is $O((\log X_0)^{-A''})$ for every $A''$; take $A''>A'+nc_1+1$. A fixed periodic function of $x$ is expanded in the same way. \end{proof} \begin{proposition}[{\cite[Corollary~9.2]{Kai}}]\label{prop:kai} Let $M$ be a number field of degree $n$ with no real place, $\mathfrak a$ a nonzero fractional ideal of $M$ with a norm-length compatible basis \cite[Definition~3.2]{Kai}, in whose coordinates we write $[\pm N]^n$, $s\ge1$ an integer and $A>0$. For $x\in\mathfrak a$ put $\Lambda^{\mathfrak a}_M(x)=\Lambda_M(x\mathfrak a^{-1})$, with $\Lambda_M((0))=0$, and for $\exp((\log N)^{1/100})N^{1/3}$. \item In \cite[Proposition~8.5]{Kai}, for the implication used at \cite[(9.7)]{Kai}, (8.1) is taken with the signed sum over squarefree products of at most $r$ prime ideals above rational primes $p0$. There is $C_A$ such that, for every $\xi\in F_\infty$ and every large $H$, one of the following holds. \begin{enumerate} \item $|T_I(H,\xi;\Omega)|\le H^d(\log H)^{-A}$ for every term $I$ of the expansion of $f$. \item There are $\alpha\in F$ and an integer $1\le q\le\exp((\log H)^{1/9})$ with $q\alpha\in\cO^\vee$ and $|\xi-\alpha|\le H^{-1}(\log H)^{C_A}$. \end{enumerate} In case \textup{(b)}, with $k=f_1q$, every term $I$ satisfies \begin{equation}\label{eq:major} T_I(H,\xi;\Omega)=D_{I,k}(e_\alpha)\int_{H\Omega}e_{\xi-\alpha}(z)\,dz+O\bigl(H^d(\log H)^{-A}\bigr). \end{equation} \end{proposition} Here $e_\alpha$ is a function on $\cO/k\cO$, since $k\alpha\in\cO^\vee$. \begin{proof} Start from \eqref{eq:sieved} with $A'=A+1$. On a cube of side $X_1$ the weight $\sum_a1_{a\mid\Nm_{\mathfrak b}(x)}$ sums to $O(X_1^n\sum_{a\mid P(Q)}g(a))$, and $\sum_{a\mid P(Q)}g(a)\le\exp\sum_{p0$, even after summing over $a\le Y$ and multiplying by $c_Q$. By \cref{lem:region}(b), the main terms are $J_M\int_{H\Omega}e_{\xi-\alpha}(z)\,dz$ times \[ \sum_{\mathfrak b,\eta}\frac{\overline{\psi(\mathfrak b)}}{\mu_M}\,c_Q\sum_{a}(-1)^{\omega(a)}\,\mathbb E_{x\in\mathfrak b/k_a\mathfrak b}\bigl[\chi(x)l(Z_{\mathfrak b,\eta}(x))1_{a\mid\Nm_{\mathfrak b}(x)}\bigr]. \] Read the expectations on the residues modulo $kP(Q)\mathfrak b$. Undoing the truncation costs at most $c_Q(\sum_{p0$ residue pairs modulo $\mathfrak p$ at which all three are units. Hence $\mathcal U_p\ne\emptyset$ for these $p$, and $\Theta_1=\Theta$. For the same $p$ the proportion of residues modulo $\mathfrak p$ at which one of the forms vanishes is $3/\Nm\mathfrak p+O(\Nm\mathfrak p^{-2})$; hence $\beta_p=1+O(p^{-2})$ and $\prod_p\beta_p$ converges absolutely. As $\prod_j\kappa_{C_j}=(\prod_j\#C_j/\#G)(\#G^\ab)^3$, this proves \eqref{eq:count}. For the last assertion, suppose that $\Theta>0$ and $\beta_p>0$ for every $p$, so that the main term of \eqref{eq:count} is $\gg H^8$. The pairs at which some $\psi_j(s,t)$ generates a prime of residue degree at least two contribute $O(H^{3d/2}(\log H)^{O(1)})$, by the count of such ideals above. If $\psi_i(s,t)$ and $\psi_j(s,t)$, $i\ne j$, are prime elements of degree one with the same norm $p$, then $\psi_j(s,t)\cO$ is one of at most $d$ primes above $p$, with $(\log H)^{O(1)}$ generators in range, and $\psi_i$ and $\psi_j$ determine $(s,t)$; so these pairs number $O(H^d(\log H)^{O(1)})$. Each remaining pair has weight $O((\log H)^3)$, which gives $\gg H^8(\log H)^{-3}$ pairs with the stated properties; they are unramified in $N$, as they are prime to $f_1$. \section{Descents over extensions of \texorpdfstring{$F$}{F}}\label{sec:frame} From here on $F=\Q(\zeta)$ again, with the notation of the introduction and of \cite[\S2]{RealQuadratic}. For a field $M$ and $b\in M^\times$, $[b]$ is the class of $b$ in $M^\times/M^{\times2}$, and if $M\supseteq F$, then $[-b]=[2ib]=[-4b]=[b]$, as $-1$, $2i$ and $-4$ are squares in $F$. For a field $M\supseteq F$ and $A\in M^\times$, the proof of \cite[Lemma~2.1]{RealQuadratic} gives the injective homomorphism $\delta_M\colon E_A(M)/(1+i)E_A(M)\to M^\times/M^{\times2}$ with $\delta_M(T)=[A]$ and $\delta_M(V)=[x(V)]$ for $V\ne O,T$, and shows that $E_A$ and $E_{At^4}$ are isomorphic over $M$ compatibly with $\delta_M$. For a finite place $w$ of a number field $M\supseteq F$ let $W_w(A)$ be the image of $\delta_{M_w}$, and let $\mathrm{Sel}_M(A)$ be the group of classes of $M^\times/M^{\times2}$ that lie in $W_w(A)$ at every finite $w$; the infinite places, which are complex, impose no condition. As $E_A(M)$ is a finitely generated $\Z[i]$-module whose torsion $E_A(M)_\tors$ has $\#E_A(M)_\tors/(1+i)E_A(M)_\tors=\#E_A(M)_\tors[1+i]=2$, the proof of \cite[Lemma~2.2(c)]{RealQuadratic} gives \begin{equation}\label{eq:rankbound} \operatorname{rank}_{\Z[i]}E_A(M)+1\le\dim_{\FF_2}\mathrm{Sel}_M(A). \end{equation} For $u,v\in\cO$ with $uv(u-v)\ne0$ put $A=-4uv(u-v)^2$ and $X=2iu(u-v)$; then $(X,(2-2i)u(u-v)^2)\in E_A(F)$ \cite[(1.2)]{RealQuadratic}. Let $u_0=\zeta^3-3\zeta^2+3\zeta-2$ and $v_0=3-\zeta-\zeta^2$ \cite[\S2]{RealQuadratic}, and let $A_0$, $X_0$, $x_1$ and $W_0=W_\lambda(A_0)$ be as in \cite[\S2.2]{RealQuadratic}: $A_0$ and $X_0$ are $A$ and $X$ for $(u,v)=(u_0,v_0)$, and $x_1=\lambda^4(1+\lambda^3+\lambda^6)$. If $u\equiv u_0$ and $v\equiv v_0\pmod{32}$, then $A/A_0$ is a fourth power in $F_\lambda$; the proof of \cite[Lemma~2.4(a)]{RealQuadratic} uses only these residues. So $W_\kappa(A)=W_\kappa(A_0)$ for every finite extension $\kappa$ of $F_\lambda$, where $W_\kappa$ denotes the image of $\delta_\kappa$. \begin{lemma}\label{lem:local} Let $\kappa$ be a finite extension of the completion $F_{\mathfrak p}$ of $F$ at a prime $\mathfrak p$, and $A\in \kappa^\times$. \begin{enumerate} \item If $\mathfrak p$ is odd, $W_\kappa(A)$ has order $2$; it is the group of unit classes if $A$ is a unit, and $\{1,[A]\}$ if $A$ has odd valuation. If $\mathfrak p=(\lambda)$, $W_\kappa(A)$ has order $2^{1+[\kappa:\Q_2]/2}$. \item $W_\kappa(A)$ is its own orthogonal complement for the Hilbert symbol $(\ ,\ )_\kappa$ on $\kappa^\times/\kappa^{\times2}$. \item If $\kappa'\supseteq\kappa$ is a finite extension, $\Nm_{\kappa'/\kappa}$ maps $W_{\kappa'}(A)$ into $W_\kappa(A)$. If $[\kappa':\kappa]$ is odd, a class $c\in \kappa^\times/\kappa^{\times2}$ lies in $W_\kappa(A)$ if and only if its restriction to $\kappa'$ lies in $W_{\kappa'}(A)$. \end{enumerate} \end{lemma} \begin{proof} (a) The proof of \cite[Lemma~2.2(a), (b)]{RealQuadratic} applies with $F_{\mathfrak p}$ replaced by $\kappa$. At $\lambda$ the index of $(1+i)R$ in the valuation ring $R$ of $\kappa$ is $2^{[\kappa:\Q_2]/2}$, as $(1+i)^2=2i$ and $\#R/2R=2^{[\kappa:\Q_2]}$. (b) The group $\kappa^\times/\kappa^{\times2}$ has order $4/|2|_\kappa$ \cite[Chapter~VII, Proposition~6.8]{Milne}, that is, $4$ if $\mathfrak p$ is odd and $2^{2+[\kappa:\Q_2]}$ if $\mathfrak p=(\lambda)$; by (a) its dimension is twice that of $W_\kappa(A)$. As the Hilbert symbol is nondegenerate \cite[Chapter~III, Theorem~4.4(c)]{Milne}, it suffices to show that $(b_1,b_2)_\kappa=1$ for $b_1,b_2\in W_\kappa(A)$, and we may assume that $b_2$ is not a square. The group $E_A(\kappa)$ is infinite, since it has a subgroup isomorphic to an open subgroup of $R$ (proof of \cite[Lemma~2.2(a)]{RealQuadratic}), and $(1+i)E_A(\kappa)$ has finite index in it; so each coset of $(1+i)E_A(\kappa)$ is infinite, and there are points $(x,y)$ and $(x',y')$ with nonzero coordinates and $\delta_\kappa$-classes $b_1=[x]$ and $b_2=[x']$. Put $r=ix'+iy'/\sqrt{x'}\in \kappa(\sqrt{x'})$. Its conjugate is $ix'-iy'/\sqrt{x'}$, so $r$ has trace $2ix'$ and norm $-x'^2+y'^2/x'=-A$. Hence \[ \Nm\bigl(y+(1+i)x\sqrt{x'}\bigr)=y^2-2ix^2x'=x\bigl(x^2-2ix'x-A\bigr)=x\,\Nm(x-r), \] the norms from $\kappa(\sqrt{x'})$ to $\kappa$. As $y'\ne0$ and $\sqrt{x'}\notin \kappa$, $r\notin \kappa$, so $x-r\ne0$; thus $x$ is a norm from $\kappa(\sqrt{x'})$, and $(x,x')_\kappa=1$ \cite[Chapter~III, Theorem~4.4(d)]{Milne}. (c) Restriction maps $W_\kappa(A)$ into $W_{\kappa'}(A)$, as $E_A(\kappa)\subseteq E_A(\kappa')$. Let $c'\in W_{\kappa'}(A)$ and $w\in W_\kappa(A)$ with $w$ not a square; by (b) it suffices to show that $\Nm_{\kappa'/\kappa}c'$ is a norm from $\kappa(\sqrt w)$. If $\sqrt w\in\kappa'$, then $\Nm_{\kappa'/\kappa}c'=\Nm_{\kappa(\sqrt w)/\kappa}\Nm_{\kappa'/\kappa(\sqrt w)}c'$. Otherwise $(c',w)_{\kappa'}=1$ by (b) for $\kappa'$, so $c'=\Nm_{\kappa'(\sqrt w)/\kappa'}y$ for some $y$, and $\Nm_{\kappa'/\kappa}c'=\Nm_{\kappa(\sqrt w)/\kappa}\Nm_{\kappa'(\sqrt w)/\kappa(\sqrt w)}y$. If $[\kappa':\kappa]$ is odd and the restriction of $c$ lies in $W_{\kappa'}(A)$, then $c^{[\kappa':\kappa]}=\Nm_{\kappa'/\kappa}c$ lies in $W_\kappa(A)$, and so does $c$. \end{proof} \needspace{4\baselineskip} \begin{lemma}\label{lem:inert} Let $\kappa$ be the unramified cubic extension of $F_\lambda$, let $u,v\in\cO$ with $u\equiv u_0$ and $v\equiv v_0\pmod{32}$, and let $b$ be an integer of $\kappa$ whose residue is a root of $X^3+X+1$ in $\FF_8$. For a nonzero integer $t$ of $\kappa$ let $g_t$ be the root with $g_t\equiv1\pmod\lambda$ of $g^2-g=A_0t^4/\lambda^8$. \begin{enumerate} \item $W_\kappa(A)$ has dimension $7$, with basis $[A_0]$, $[X_0]$, $[x_1]$, $[g_b]$, $[g_{b^2}]$, $[g_{\lambda b}]$, $[g_{\lambda b^2}]$. \item The classes of $W_\kappa(A)$ fixed by $\Gal(\kappa/F_\lambda)$ are the restrictions of the classes of $W_0$. \end{enumerate} \end{lemma} \begin{proof} We have $W_\kappa(A)=W_\kappa(A_0)$, and its dimension is $7$ by \cref{lem:local}(a), as $[\kappa:\Q_2]=12$. Put $B_0=A_0/\lambda^8$ and $s_t=B_0t^4$. As $v_\lambda(A_0)=10$, $s_t$ has valuation at least $2$, and Hensel's lemma gives $g_t$. The point $(g_t/t^2,-g_t/t^3)$ lies on $E_{B_0}$, as $x^3-B_0x=g_t(g_t^2-s_t)/t^6=g_t^2/t^6=y^2$ there; scaling back to $E_{A_0}$ by \cite[Lemma~2.1(b)]{RealQuadratic} shows $[g_t]\in W_\kappa(A_0)$. The base classes lie in $W_0$ \cite[Lemma~2.3(a), (b)]{RealQuadratic}. For independence we use the depth of units: a unit $1+\gamma\lambda^j$ of $\kappa$ with $\gamma$ a unit and $j\in\{1,3,5,7\}$ is not a square, since if $y^2\equiv1\pmod\lambda$ then $y\equiv1\pmod\lambda$, and $(1+z)^2-1=2z+z^2$ has valuation $2v(z)$ if $v(z)<4=v(2)$ and at least $8$ otherwise. Put $a_0=X_0/\lambda^4$, $r_t=a_0t^2$ and $h_t=g_t/(1+r_t)^2$, so that $[h_t]=[g_t]$. From $A_0-X_0^2=4u_0(u_0-v_0)^3$ and $v_\lambda(u_0-v_0)=1$, $B_0-a_0^2$ is $\lambda^3$ times a unit; $a_0$ is $\lambda$ times a unit, and units of $F_\lambda$ are $\equiv1\pmod\lambda$. Expanding $g_t=1+s_t-s_t^2+\cdots$ and $(1+r_t)^{-2}=1-2r_t+3r_t^2-\cdots$, we get, for $t$ a unit, \[ h_t\equiv1+s_t-r_t^2=1+t^4(B_0-a_0^2)\equiv1+t^4\lambda^3\pmod{\lambda^4}, \] and, for $t=\lambda t'$ with $t'$ a unit, \[ h_t\equiv1+t^4(B_0-a_0^2)-2a_0t^2\equiv1+(t'^4+t'^2)\lambda^7\pmod{\lambda^8}. \] Let $\beta\in\FF_8$ be the residue of $b$, so $\beta^4=\beta^2+\beta$ and $\beta^8=\beta$. The residues at depth $3$ of $h_b$ and $h_{b^2}$ are $\beta^2+\beta$ and $\beta$, and those at depth $7$ of $h_{\lambda b}$ and $h_{\lambda b^2}$ are $\beta^4+\beta^2=\beta$ and $\beta^8+\beta^4=\beta^2$. Further, $X_0$ has valuation $5$; $[A_0]=[-u_0v_0]$ with $-u_0v_0=(1+\lambda^3)(1+3\lambda-\lambda^2)\equiv1+\lambda\pmod{\lambda^2}$; and $[x_1]=[1+\lambda^3+\lambda^6]$. Now let $c$ be a nontrivial product of the seven classes. If $[X_0]$ occurs, $c$ has odd valuation. Otherwise $c$ is the class of a product of the unit representatives just listed, which is $\equiv1+\gamma\lambda^j\pmod{\lambda^{j+1}}$ with $\gamma\not\equiv0$: $j=1$ if $[A_0]$ occurs; otherwise $j=3$ if one of $[x_1]$, $[g_b]$, $[g_{b^2}]$ occurs, as $1$, $\beta$, $\beta^2$ are independent over $\FF_2$; otherwise $j=7$. So $c\ne1$, which proves (a). (b) $\Gal(\kappa/F_\lambda)$ acts on $W_\kappa(A)$, as $A\in F_\lambda$. A class $[c]$ fixed by a generator $\sigma$ is the restriction of $[\Nm_{\kappa/F_\lambda}c]$, as $c\,\sigma(c)\,\sigma^2(c)\in c^3\kappa^{\times2}$; restriction from $F_\lambda$ is injective on square classes, as $[\kappa:F_\lambda]$ is odd. By \cref{lem:local}(c) the fixed classes of $W_\kappa(A)$ are the restrictions of the classes of $W_\lambda(A)=W_0$. \end{proof} \section{Cyclic cubic fields}\label{sec:cyclic} This section proves \cref{thm:coefficient} for cyclic $K$, in the form of \cref{thm:cyclic}, the analogue of \cite[Theorem~1.4]{RealQuadratic} for cyclic $K$, with the auxiliary primes added and the descent over $L$ in place of the twist. Let $K$ be a cyclic cubic field of conductor $f$, and $\chi$ a Dirichlet character modulo $f$ of order three whose kernel corresponds to $K$. Then $f$ is odd, as $(\Z/2^k\Z)^\times$ has no character of order three, and $K\cap F=\Q$, so restriction identifies $\Gamma=\Gal(L/F)$ with $\Gal(K/\Q)$; let $\sigma$ generate $\Gamma$. For $z\in\cO$ prime to $f$ the Artin symbol of $z\cO$ in $\Gamma$ restricts on $K$ to the Artin symbol of $\Nm_{F/\Q}(z)$; so through $\chi$ it is the value $\chi(\Nm_{F/\Q}z)$, and it is trivial if and only if this value is $1$. Let $\cS_K$ be the group of classes $c\in L^\times/L^{\times2}$ such that $\Nm_{L/F}c$ is a square in $F$, $c$ has even valuation at every odd prime of $L$, and $c\in W_w(A_0)$ at every prime $w$ of $L$ above $\lambda$. It is finite, as the classes with even valuation at every odd prime are, and stable under $\Gamma$, as $A_0\in F$. For $c\in\cS_K$ the product $c\,\sigma(c)\,\sigma^2(c)$ is the class of $\Nm_{L/F}c$, which is trivial; so $1+\sigma+\sigma^2$ vanishes on $\cS_K$, and $\cS_K$ is a vector space over $\FF_4=\FF_2[\sigma]/(\sigma^2+\sigma+1)$. Let $h$ be its dimension, so that $r=2h$ in the notation of the introduction, and fix a basis $b_1,\dots,b_h$; for $b\in\cS_K$ let $x_j(b)\in\FF_4$ be its coordinates, so that $x_j(\sigma b)=\sigma x_j(b)$. For a prime $w$ of $L$ above an odd prime and a class $b$ with even valuation at $w$, $(b/w)$ is the quadratic residue symbol at $w$ of a representative of $b$ that is a unit at $w$, and we identify $\{\pm1\}$ with $\FF_2$. Put $\varepsilon=1+\zeta+\zeta^2$ \cite[\S2.2]{RealQuadratic}. \begin{lemma}\label{lem:auxiliary} There are prime elements $q_1,\dots,q_h$ of $F$ of degree one, split in $L$, with distinct norms prime to $2f$, such that for each $j$: \begin{enumerate} \item $q_j\equiv1\pmod{32fq_1\cdots q_{j-1}}$; \item for the three primes $w_{j1}$, $w_{j2}$, $w_{j3}$ of $L$ above $q_j$, the map $b\mapsto\bigl((b/w_{j1}),(b/w_{j2}),(b/w_{j3})\bigr)$ from $\cS_K$ to $\FF_2^3$ is $x_j$ followed by an isomorphism of $\FF_4$ onto the plane $\mathsf W=\{y\in\FF_2^3:y_1+y_2+y_3=0\}$. \end{enumerate} So $b\mapsto\bigl((b/w_{jk})\bigr)_{j,k}$ is an isomorphism of $\cS_K$ onto $\mathsf W^h$. Each $q_j$ is a square in $F_\lambda$, and $(q_i/q_j)=(\varepsilon\lambda/q_j)=((1+i)/q_j)=1$ for $i\ne j$. \end{lemma} \begin{proof} Let $M=L(\sqrt b:b\in\cS_K)$. By Kummer theory $\tau\mapsto(b\mapsto\tau(\sqrt b)/\sqrt b)$ is an isomorphism of $\Gal(M/L)$ onto the dual of $\cS_K$, and $M$ is Galois over $F$, as $\cS_K$ is stable under $\Gamma$. Let $g\in\Gal(M/F)$ restrict to $\sigma$ on $L$. As $g^{-1}(\sqrt b)$ is a square root of $\sigma^{-1}(b)$, $g\tau g^{-1}$ is the functional $b\mapsto\tau(\sigma^{-1}b)$. On $\cS_K$, $1+\sigma^{-1}=1+\sigma^2=\sigma$ is invertible, so $\tau\mapsto g\tau g^{-1}\tau^{-1}$, which is $\tau\mapsto\tau\circ(1+\sigma^{-1})$ additively, is a bijection of $\Gal(M/L)$. Hence $\Gal(M/L)$ lies in the commutator subgroup of $\Gal(M/F)$, and every subfield of $M$ abelian over $F$ lies in $L$. Let $\tau_j\in\Gal(M/L)$ be the functional $b\mapsto\Tr_{\FF_4/\FF_2}x_j(b)$, and suppose $q_1,\dots,q_{j-1}$ chosen. Let $R_j$ be the ray class field of $F$ modulo $32fq_1\cdots q_{j-1}$. The field $M\cap R_j$ is abelian over $F$, so it lies in $L$, where $\tau_j$ is trivial; so some $\rho_j\in\Gal(MR_j/F)$ restricts to $\tau_j$ on $M$ and to the identity on $R_j$. By the Chebotarev density theorem the primes of $F$ unramified in $MR_j$ with Frobenius class that of $\rho_j$ have positive density, and those of degree greater than one have density zero; take one of degree one, prime to $2f$ and of norm different from those of $q_1,\dots,q_{j-1}$. It splits in $R_j$, so its class in the ray class group is trivial and, as $F$ has no real place, it is $q_j\cO$ with $q_j\equiv1$ modulo $32fq_1\cdots q_{j-1}$. This is (a). It splits in $L$, as $\rho_j$ is trivial on $L$. Let $\mathfrak W$ be a prime of $M$ above it with Frobenius $\tau_j$, and $w_{j,k+1}=\sigma^k(\mathfrak W\cap L)$ for $k=0,1,2$. For $b\in\cS_K$, $M/L$ is unramified at these primes, as $b$ has even valuation there, and the Frobenius of $g^k\mathfrak W$ is $g^k\tau_jg^{-k}$, which sends $\sqrt b$ to $(b/w_{j,k+1})\sqrt b$. So \[ (b/w_{j,k+1})=\Tr_{\FF_4/\FF_2}x_j(\sigma^{-k}b)=\Tr_{\FF_4/\FF_2}\bigl(\sigma^{-k}x_j(b)\bigr),\qquad k=0,1,2. \] The map $x\mapsto(\Tr x,\Tr\sigma^{-1}x,\Tr\sigma^{-2}x)$ is $\FF_2$-linear from $\FF_4$ to $\mathsf W$, as $1+\sigma^{-1}+\sigma^{-2}=0$, and injective, since $\Tr x=\Tr\sigma^{-1}x=0$ gives $\Tr yx=0$ for every $y\in\FF_4$ and the trace form is nondegenerate. Both spaces have dimension two, which proves (b), and the isomorphism onto $\mathsf W^h$ follows. As $v_\lambda(q_j-1)\ge v_\lambda(32)=20$, $q_j$ is a square in $F_\lambda$ \cite[\S2.2]{RealQuadratic}. For $i0$ for every $p$: for $p\nmid f_0$ by \cref{ssec:count}; modulo $\lambda$ and modulo $f$ the forms are constant, $\equiv u_0$, $v_0$, $(u_0-v_0)/\lambda$, units at $\lambda$ \cite[proof of Lemma~2.4(a)]{RealQuadratic}, and $\equiv n$, $-n$, $2n/\lambda$; for $p=\Nm q_j$ they are $\equiv U_0$, $V_0$, $-V_0/\lambda$ modulo $q_j$, units, while at each of the other three primes $\mathfrak p$ of $F$ above $p$, $m$ is a unit, $(\psi_1,\psi_2)$ runs over all residue pairs, and $(p-1)(p-2)$ of them make the three forms units. \Cref{thm:primes} gives the triple. \emph{Valuations.} For every triple as in \eqref{eq:UVW}, the norms of $U$, $V$, $W$ are $\equiv n^4$, $n^4$, $8n^4\pmod f$, as above, so their Frobenius in $\Gamma$ has order three and they are inert in $L$. The primes of $F$ above $\Nm q_j$ split in $L$, as their Artin symbols restrict on $K$ to that of $\Nm q_j$, which is trivial as $q_j$ splits in $L$; so $U$, $V$, $W$ are prime to $Q$, and they are prime to $2f$ by \eqref{eq:UVW}. Now $A=-4\lambda^2QUVW^2$ and $X=2i\lambda QUW$, so \[ [A]=[QUV],\qquad[X]=[\lambda QUW], \] $A$ has valuation $10$ at $\lambda$, $1$ at $U$, $V$ and each $q_j$, $2$ at $W$, and $0$ at every other prime. As $u\equiv u_0$ and $v\equiv v_0\pmod{32}$, $W_\kappa(A)=W_\kappa(A_0)$ for every finite extension $\kappa$ of $F_\lambda$ (\cref{sec:frame}); in particular $W_\lambda(A)=W_0$. \emph{The descent over $F$.} By \cref{lem:local}(a), $W_{\mathfrak p}(A)$ is the group of unit classes at an odd prime $\mathfrak p$ prime to $A$, and $\{1,[A]\}$ at $U$, $V$ and each $q_j$; at $W$ it has order two and contains $[X]$, the image of the point with abscissa $X$, which has odd valuation there, so it is $\{1,[X]\}$. Let $b\in\mathrm{Sel}_F(A)$. As $F$ has class number one and $\cO^\times$ is generated by $\zeta$ and $\varepsilon$ \cite[\S2]{RealQuadratic}, $b$ is a product of the classes of $\zeta$, $\varepsilon$, $\lambda$, $U$, $V$, $W$, $q_1,\dots,q_h$. As $[A]$ has odd valuation at $V$ and even at $W$, and $[X]$ the reverse, multiplying $b$ by a product of $[A]$ and $[X]$ gives $b'\in\mathrm{Sel}_F(A)$ in the span of $[\zeta]$, $[\varepsilon]$, $[\lambda]$, $[U]$ and the $[q_j]$. In $F_\lambda$ each $q_j$ is a square (\cref{lem:auxiliary}), and so is $U/u_0\equiv1\pmod{32}$; so $b'\in W_0$ and \cite[Lemma~2.3(c)]{RealQuadratic} give $b'=[(\varepsilon\lambda)^{e_0}q_1^{e_1}\cdots q_h^{e_h}]$ with $e_j\in\{0,1\}$. If $e_j=1$, then $b'$ has odd valuation at $q_j$, so $b'=[A]$ in $F_{q_j}$, and $b'/A$ is a square at $q_j$. But $b'/A=(\varepsilon\lambda)^{e_0}\prod_{i\ne j}q_i^{e_i-1}\cdot(UV)^{-1}(2i\lambda W)^{-2}$ is a unit at $q_j$, and by \cref{lem:auxiliary} and \eqref{eq:UVW} its residue symbol is $(UV/q_j)=-1$. So every $e_j=0$. At $U$, $\varepsilon\lambda$ is a non-square unit \cite[Lemma~2.4(b)]{RealQuadratic}, while $W_U(A)=\{1,[A]\}$ with $[A]$ of odd valuation; so $e_0=0$ and $b'=1$. Hence $\mathrm{Sel}_F(A)=\{1,[A],[X],[AX]\}$, and $[A]$, $[X]$ are independent by their valuations at $V$ and $W$. The symbols $(q_i/q_j)$ are where the earlier auxiliary primes in the modulus of \cref{lem:auxiliary}(a) are used. \emph{The descent over $L$.} Restriction maps $\mathrm{Sel}_F(A)$ injectively into $\mathrm{Sel}_L(A)$, as $[L:F]$ is odd and $E_A(F_{\mathfrak p})\subseteq E_A(L_w)$. On $L^\times/L^{\times2}$ the operator $e=1+\sigma+\sigma^2$ satisfies $e^2=3e=e$, and it preserves $\mathrm{Sel}_L(A)$, as $A\in F$; so every $c\in\mathrm{Sel}_L(A)$ is $ec+(1+e)c$ with both terms in $\mathrm{Sel}_L(A)$. The class $ec$ is the restriction of $c_0=\Nm_{L/F}c$. At a prime $w$ of $L$ above $\mathfrak p$ the restriction of $c_0$ lies in $W_w(A)$, and $[L_w:F_{\mathfrak p}]$ is $1$ or $3$; so $c_0\in W_{\mathfrak p}(A)$ by \cref{lem:local}(c), and $ec$ is the restriction of an element of $\mathrm{Sel}_F(A)$. It remains to show that a class $c\in\mathrm{Sel}_L(A)$ with $ec=1$, that is, with $\Nm_{L/F}c$ a square in $F$, is trivial. Let $w$ be the prime of $L$ above $U$, $V$ or $W$. As $L_w/F_{\mathfrak p}$ has degree three, restriction $F_{\mathfrak p}^\times/F_{\mathfrak p}^{\times2}\to L_w^\times/L_w^{\times2}$ is injective, and both groups have order four \cite[Chapter~VII, Proposition~6.8]{Milne}; so in $L_w$, $c$ is the class of some $c'\in F_{\mathfrak p}^\times$. As $w$ is the only prime above $\mathfrak p$, $c'^3$ lies in the class of $\Nm_{L/F}c$ in $F_{\mathfrak p}$, which is trivial; so $c'$ is a square, and so is $c$ at $w$. At the other odd primes of $L$ not above $Q$, $A$ is a unit and $c$ has even valuation. At the three primes $w_{jk}$ above $q_j$, $L_{w_{jk}}=F_{q_j}$, so $W_{w_{jk}}(A)=\{1,[A]\}$; let $y_{jk}\in\FF_2$ be the valuation of $c$ at $w_{jk}$ modulo $2$. Since $\Nm_{L/F}c$ is a square, $y_{j1}+y_{j2}+y_{j3}=0$, so $y_j=(y_{jk})_k\in\mathsf W$. Now let $b\in\cS_K$, and apply the product formula over $L$ \cite[Chapter~V, Example~5.4]{Milne} to $b$ and $c$. Above $\lambda$ both lie in $W_w(A_0)$, which is isotropic (\cref{lem:local}(b)), so these factors are $1$. At the odd primes not above $Q$ both have even valuation, and the factors are $1$; at $w_{jk}$, $b$ has even valuation and the factor is $(b/w_{jk})^{y_{jk}}$ \cite[Chapter~III, Theorem~4.4(d) and Proposition~1.2]{Milne}. So \[ \sum_{j=1}^h\sum_{k=1}^3(b/w_{jk})\,y_{jk}=0\qquad\text{for every }b\in\cS_K. \] By \cref{lem:auxiliary} the vectors $((b/w_{jk}))_{j,k}$ fill $\mathsf W^h$. On $\mathsf W$ the dot product is nondegenerate, as the only nonzero vector of $\FF_2^3$ orthogonal to $\mathsf W$ is $(1,1,1)\notin\mathsf W$; so every $y_j=0$. Then $c$ has even valuation at each $w_{jk}$, so it is trivial in $W_{w_{jk}}(A)=\{1,[A]\}$, a square there. So $c$ has even valuation at every odd prime of $L$, and it lies in $W_w(A)=W_w(A_0)$ above $\lambda$: $c\in\cS_K$, and its evaluations $(c/w_{jk})$ are all trivial. By \cref{lem:auxiliary}, $c=1$. Hence $\mathrm{Sel}_L(A)$ is the image of $\mathrm{Sel}_F(A)$. \emph{Torsion and ranks.} The proof of \cite[Lemma~2.7(b)]{RealQuadratic} uses of $u$ and $v$ only that $A$ has valuation one at $u\cO$ and $v\cO$, that $M/F$ is unramified there, and that their norms differ; we apply it with $U$ and $V$ in their place and $M=L$, which is unramified over $F$ outside $f$. So $E_A(L)_\tors=\{O,T\}$, which is (b). Then $\delta_F$ maps the torsion of $E_A(F)$ onto $\{1,[A]\}$, so the point with abscissa $X$ has infinite order, and \eqref{eq:rankbound} with (a) gives rank at most one over $L$; as $E_A(F)\subseteq E_A(L)$, the rank is one over both. \emph{The characters.} The odd primes dividing $\Nm_{F/\Q}(A)$ are $\Nm U$, $\Nm V$, $\Nm W$ and the $\Nm q_j$, all $\equiv1\pmod8$, so $M_A$ is their product. Let $\pi$ be as in \ref{re:iii}. We follow the proof of \cite[Lemma~2.7(d)]{RealQuadratic}: $\pi$ has two primes $\mathfrak P$, $\mathfrak P'$ of $F$ above it, at which $A$ is a unit, and we apply the product formula to $A$ and $\pi$. The factor at $\lambda$ is $1$, as $\pi\equiv9\pmod{16}$ is a square in $F_\lambda$, and the factors at $\mathfrak P$ and $\mathfrak P'$ are $(A/\mathfrak P)$ and $(A/\mathfrak P')$. As $U$ divides $\Nm U$ in $\cO$, $\pi\equiv1+i\pmod U$, and the factor at $U$ is $((1+i)/U)=-1$; at $V$ it is $((1+i)/V)=1$ \cite[Lemma~2.4(b)]{RealQuadratic}; at $W$ it is $(\pi/W)^2=1$; at $q_j$ it is $((1+i)/q_j)=1$ (\cref{lem:auxiliary}); at every other prime both entries are units. So $(A/\mathfrak P)(A/\mathfrak P')=-1$, which is (c). Finally, (a)--(c) give \ref{re:i}--\ref{re:iii}, and $A$ has the form that \cref{thm:coefficient} states. \end{proof} \section{Fields with group \texorpdfstring{$S_3$}{S3}}\label{sec:S3} This section proves \cref{thm:coefficient} when $K$ has group $S_3$ and $\sqrt2\notin K$. The auxiliary primes are chosen as in \cref{sec:cyclic}, with a transposition prime when $r$ is odd; what is new is the Selmer group of the twist by the quadratic subfield, which the prime values $U$, $V$, $W$ do not control, as they split in it. Let $\Q(\sqrt d)$ be the quadratic subfield of $K$, with $d>1$ squarefree, so $d\ne2$, and let $D$ be the odd part of $d$, so $D>1$. As the only real quadratic subfield of $F$ is $\Q(\sqrt2)$, $K\cap F=\Q$, and restriction identifies $\Gamma=\Gal(L/F)$ with $\Gal(K/\Q)\cong S_3$. Let $k$ be a cubic subfield of $K$, $\tau\in\Gamma$ the transposition fixing $kF$, and $\sigma$ a $3$-cycle. The maximal abelian subextension of $L/F$ is $F(\sqrt d)$. As $\sqrt2=\zeta+\zeta^{-1}\in F$, $d$ and $D$ have the same class in $F^\times/F^{\times2}$, and $E_{d^2A}\cong E_{D^2A}$ over $F$ \cite[Lemma~2.1(b)]{RealQuadratic}. \begin{lemma}\label{lem:S3ranks} For $A\in F^\times$, the $\Z[i]$-rank of $E_A(L)$ is $r_F+r_F'+2(r_{kF}-r_F)$, where $r_F$, $r_{kF}$ are the ranks of $E_A$ over $F$ and $kF$, and $r_F'$ is that of $E_{d^2A}$ over $F$. \end{lemma} \begin{proof} The $\Q(i)$-vector space $E_A(L)\otimes\Q$ is a representation of $\Gamma$, the sum of $a$ copies of the trivial character, $b$ of the sign and $c$ of the irreducible representation of dimension two. For a subgroup $\Gamma'$ its invariants are $E_A(L^{\Gamma'})\otimes\Q$. The invariants of $\Gamma$, $\langle\tau\rangle$ and $\langle\sigma\rangle$ have dimensions $a$, $a+c$ and $a+b$, and the last is $r_F+r_F'$ \cite[Lemma~2.9]{RealQuadratic}, as $L^{\langle\sigma\rangle}=F(\sqrt d)$. So the rank $a+b+2c$ is as stated. \end{proof} So \ref{re:i} asks for rank one over $F$ and $kF$ and rank zero for $E_{d^2A}$ over $F$. Let $\cS_K$ be the group of classes $c\in(kF)^\times/(kF)^{\times2}$ such that $\Nm_{kF/F}c$ is a square, $c$ has even valuation at every odd prime of $kF$, and $c\in W_w(A_0)$ at every prime $w$ of $kF$ above $\lambda$; $r$ is its dimension, and we fix a basis $b_1,\dots,b_r$. Residue symbols $(b/w)$ are as in \cref{sec:cyclic}, and $\mathsf W\subset\FF_2^3$ is again the plane of vectors with sum zero. \begin{lemma}\label{lem:S3auxiliary} Let $h=\lfloor r/2\rfloor$, and let $q_0$ be $1$ or a prime element of degree one with $q_0\equiv1\pmod{32}$ whose Frobenius in $L/F$ is a $3$-cycle. There are prime elements $q_1,\dots,q_{h'}$ of $F$ of degree one, where $h'=h$ if $r$ is even and $h'=h+1$ if $r$ is odd, with distinct norms prime to $2D\Nm q_0$, such that: \begin{enumerate} \item for $j\le h$, $q_j$ splits in $L$ and $q_j\equiv1\pmod{32Dq_0q_1\cdots q_{j-1}}$; if $r$ is odd, $q_{h+1}$ has Frobenius a transposition and $q_{h+1}\equiv1\pmod{32q_0q_1\cdots q_h}$; \item for $j\le h$ and the three primes $w_{j1}$, $w_{j2}$, $w_{j3}$ of $kF$ above $q_j$, $b\mapsto((b/w_{jk}))_k$ maps $\cS_K$ to $\mathsf W$, sending $b_{2j-1}$, $b_{2j}$ to a basis of $\mathsf W$ and the other $b_i$ to $0$; if $r$ is odd, the prime $w$ of $kF$ of degree one above $q_{h+1}$ has $(b_r/w)=-1$ and $(b_i/w)=1$ for $i0$ for every $p$; at $p\mid D$ the forms are constant and units. So the triples exist. They are prime to $Q$ by their residues at the $q_j$, and $u\equiv u_0$, $v\equiv v_0\pmod{32}$. \emph{The descents over $F$.} The descent over $F$ in the proof of \cref{thm:cyclic} applies with the $q_j$ in place of its auxiliary primes, as it uses only that they are squares in $F_\lambda$ with trivial mutual symbols and symbols of $\varepsilon\lambda$, and that $(UV/q_j)=-1$; so $\mathrm{Sel}_F(A)=\{1,[A],[X],[AX]\}$. \Cref{lem:twist,lem:three} give $\mathrm{Sel}_F(d^2A)=\{1,[A]\}$, with $\dim\mathrm{Sel}_F(9A)=1$ in case \ref{R:three}, which is the same as $d^2A$ as $d^2/9\in\{1,4\}$ is a fourth power in $F$. \emph{The descent over $kF$.} Let $c\in\mathrm{Sel}_{kF}(A)$. At each prime $\mathfrak p$ of $F$ the class of $\Nm_{kF/F}c$ is the product of the local norms from the primes of $kF$ above $\mathfrak p$, so it lies in $W_{\mathfrak p}(A)$ by \cref{lem:local}(c); so $\Nm_{kF/F}c\in\mathrm{Sel}_F(A)$, and $\tilde c=c\cdot\mathrm{res}(\Nm_{kF/F}c)$ is an element of $\mathrm{Sel}_{kF}(A)$ whose norm is a square. We show $\tilde c=1$, so that $\mathrm{Sel}_{kF}(A)$ is the image of $\mathrm{Sel}_F(A)$, restriction being injective as $[kF:F]=3$. The primes $U$, $V$, $W$, and $q_0$ if $q_0\ne1$, are inert in $kF$, as $\sigma$ acts on $\Gamma/\langle\tau\rangle$ transitively, and as in \cref{sec:cyclic} $\tilde c$ is a square at the primes above them. At the other odd primes of $kF$ not above $Q$, $A$ is a unit and $\tilde c$ has even valuation. Above $q_j$, $j\le h$, the three valuations $y_{jk}$ of $\tilde c$ modulo $2$ have sum zero. If $r$ is odd, $q_{h+1}$ has a prime $w$ of degree one and a prime $w'$ of degree two in $kF$; the valuation of $\Nm_{kF/F}\tilde c$ at $q_{h+1}$ is $v_w(\tilde c)+2v_{w'}(\tilde c)$, so $v_w(\tilde c)$ is even and $\tilde c$ is a square at $w$; let $y$ be $v_{w'}(\tilde c)$ modulo $2$. For $b\in\cS_K$, $(b/w')$ is the residue symbol at $q_{h+1}$ of the norm of $b$ from $(kF)_{w'}$, and as $\Nm_{kF/F}b$ is a square, $(b/w')=(b/w)$. The product formula for $b$ and $\tilde c$ over $kF$, as in \cref{sec:cyclic}, now gives \[ \sum_{j\le h}\sum_k(b/w_{jk})\,y_{jk}+(b/w)\,y=0\qquad\text{for every }b\in\cS_K, \] the last term present only for odd $r$. By \cref{lem:S3auxiliary}(b), $b=b_r$ gives $y=0$, and the $b_{2j-1}$, $b_{2j}$ give $y_j\in\mathsf W\cap\mathsf W^\perp=0$. So $\tilde c$ has even valuation, hence is a square, above every $q_j$, and $\tilde c\in\cS_K$ with trivial residue symbols at the $w_{jk}$ and at $w$; by \cref{lem:S3auxiliary}(b) these determine $\tilde c$, so $\tilde c=1$. \emph{Torsion, ranks and characters.} These follow as in the proof of \cref{thm:cyclic}: the torsion over $L$ from the primes $U$ and $V$, at which $L/F$ is unramified; the ranks from \eqref{eq:rankbound}, which gives rank one over $F$ and over $kF$ and rank zero for $E_{d^2A}$, and \cref{lem:S3ranks}; and \ref{re:iii} from the product formula for $A$ and $\pi$, whose factors at the odd primes dividing $A$ are $((1+i)/U)=-1$, $((1+i)/V)=1$, $((1+i)/q_j)=1$ and $1$ at $W$. \end{proof} \subsection*{The field of discriminant \texorpdfstring{$404$}{404}} For a given field the proof gives a finite search. For $k=\Q(\alpha)$, $\alpha^3-\alpha^2-5\alpha-1=0$, the totally real cubic field of discriminant $404=4\cdot101$, so $d=101$, in which $2$ is totally ramified and the narrow class number is odd, which keeps its descent short, put \begin{gather*} q_1=-25855-22624\zeta-25856\zeta^2-25856\zeta^3,\qquad q_2=3233-22624\zeta-25856\zeta^2-25856\zeta^3,\\ U=-898-605\zeta+413\zeta^2+545\zeta^3,\qquad V=-61-321\zeta+159\zeta^2+64\zeta^3, \end{gather*} $u=q_1q_2U$, $v=V$ and $W=(u-v)/\lambda$. We find that the norms of $q_1$, $q_2$, $U$, $V$, $W$ are distinct primes prime to $2\cdot101$, that $q_1,q_2\equiv1\pmod{3232}$ and $(q_2/q_1)=1$, and that the minimal polynomial of $\alpha$ splits completely modulo the norms of $q_1$, $q_2$ and is irreducible modulo those of $U$, $V$, $W$. The field $k$ has narrow class number one and $kF$ has class number three. The groups $\mathrm{Sel}_F(A)$, $\mathrm{Sel}_F(101^2A)$ and $\mathrm{Sel}_{kF}(A)$ have dimensions $2$, $1$ and $2$, and the local image of $kF$ at its prime above $2$, at which $k$ is totally ramified, has dimension seven. We find four independent units in $\cS_K$, and they span it. Indeed, a class of $\cS_K$ has even valuation at the prime of $kF$ above $2$, which has residue degree one over $F$, so it is a unit class, as the class number of $kF$ is odd. The unit classes of square norm have dimension four, as the norm maps the unit classes of $kF$, of dimension six, onto those of $F$, of dimension two, cubing the units of $F$. As $U\equiv u_0$ and $V\equiv v_0\pmod{32}$, the end of the proof of \cref{thm:S3} applies, and this $A$ satisfies \ref{re:i}--\ref{re:iii} for the Galois closure of $k$. \section{When \texorpdfstring{$\sqrt3$}{sqrt3} or \texorpdfstring{$\sqrt2$}{sqrt2} lies in \texorpdfstring{$K$}{K}}\label{sec:sqrt3sqrt2} Let $K$ be as in \cref{sec:S3}, with quadratic subfield $\Q(\sqrt d)$. As $\Q(\sqrt2)$ is the only real quadratic subfield of $F$, $K\cap F=\Q$ unless $d=2$, and $\sqrt3\in K$ exactly when $d=3$. \Cref{thm:coefficient} gives a coefficient for every $d\ne2$, but \cite[Theorem~1.5]{RealQuadratic} asks $\sqrt3\notin K$; for $d=2$ we change the base field. Both cases are written as changes to \cite[\S\S3--6]{RealQuadratic}, whose notation we use; what is not mentioned applies as printed. \subsection*{Two tube primes} \begin{proposition}\label{prop:twoprimes} \cite[Theorem~1.5]{RealQuadratic} holds without the hypothesis $\sqrt3\notin K$. \end{proposition} \begin{proof} Let $\sqrt3\in K$. Then no prime of $K$ above a prime $q\equiv7\pmod{12}$ has odd residue degree, so (F1) of \cite[\S3.5]{RealQuadratic} and the height bound \cite[Theorem~3.7]{RealQuadratic} are not available, and we add a second prime to the tube as in \cite[\S10]{TotallyReal}. Let $(q,\mathfrak q,q',\mathfrak q')$ be as in \cite[Definition~10.1]{TotallyReal}, with $q$ and $q'$ prime to $2d_K\Nm_{F/\Q}(A)$; it exists by \cite[Lemma~10.3]{TotallyReal}, whose proof gives infinitely many $q$ and, for each, a $q'$ outside any finite set. Then $q\equiv q'\equiv11\pmod{12}$. Put $\hat q=qq'$. The changes are these. \begin{enumerate}[label=\textup{(\alph*)},ref=\textup{(\alph*)},leftmargin=2em] \item In (F1) the contacts $\gamma_i$, the set $\mathcal C_q$ and $g_q$ are those of $q$, and $\hat q$ replaces $q$ everywhere else: $\theta_i=\hat q/(\gamma_i-1)$, $\psi(t)=10\hat q+1+\hat q^2t/(1+\hat q^2t^2)$, with $f_0,\dots,f_6$, $C_*$ and $R_\psi$ formed from it, $s_j=y_j^2\eta+1/\hat q$ and $d_j=(2\hat q+2)j$. The positive tube $D$ becomes the tube $D'$ at $\mathfrak q$ and $\mathfrak q'$, and \cite[Theorem~10.2]{TotallyReal} replaces \cite[Theorem~3.7]{RealQuadratic}, with its least set $\Sigma_0$ and its constants $H$, $\kappa$. (F2) and (F4) are unchanged, and (F3) also contains the primes above $q'$. \item\label{tw:lemma} \cite[Lemma~3.8]{RealQuadratic} holds with these replacements, with $D'$ for $D$, and with the conditions on $v_{\mathfrak q}(s)$ in (b) and (c) asked at $\mathfrak q$ and at $\mathfrak q'$. Its parts (b)--(d) restate \cite[Lemmas~3.2 and 6.6]{TotallyReal}, and \cite[Lemmas~10.4(b), (c) and 10.5]{TotallyReal} give them in this form. \item In \cite[Lemma~3.10]{RealQuadratic}, $T^+\cup\{\xi\}$ lies in $(-q'(q+1),1]$ by \cite[Lemma~10.4(a)]{TotallyReal}, and the rest of (a) follows as there; in (b) also $p\ne q'$; and (c) holds with \cite[Theorem~10.2]{TotallyReal}, as $\Sigma_0$ lies in the set of (F3). \item In the proofs of \cite[Lemmas~3.12 and 4.2 and Propositions~4.3 and 5.6]{RealQuadratic} \cite[Lemma~3.8]{RealQuadratic} is read in the form \ref{tw:lemma}; $h(y_j^2)\le h(s_j)+h(s_0)+2\log(2\hat q)$; $c_{j,\theta}=(1/\hat q+d_j-\theta)/y_j^2$; and the set $S$ of Step~1 and $N_0$ of Step~7 contain $q$ and $q'$. \end{enumerate} Step~8 reads \ref{re:iii} only at the primes selected in Step~7, and these lie in its range as there: $\pi\equiv9\pmod{16}$ and $\pi\equiv1+i\pmod3$ by \cite[Theorem~5.2(i)]{RealQuadratic}, and $\pi\equiv1+i$ modulo every other prime of $M_A$, which divides $N_0$ (prime to $210$ also after (d), as $q\equiv q'\equiv11\pmod{12}$). \end{proof} \subsection*{The base \texorpdfstring{$B$}{B}} Let $B=\Q(i,\sqrt{17})$, $\cO_B$ its ring of integers, $\omega=(1+\sqrt{17})/2$ and $\lambda_B=1+i$. As the discriminants $-4$ and $17$ of $\Q(i)$ and $\Q(\sqrt{17})$ are coprime, $1,i,\omega,i\omega$ is a basis of $\cO_B$; as $17\equiv1\pmod8$, $2\cO_B=\mathfrak l_1^2\mathfrak l_2^2$ with $B_{\mathfrak l_1}\cong B_{\mathfrak l_2}\cong\Q_2(i)$, and $\lambda_B\cO_B=\mathfrak l_1\mathfrak l_2$. Let $\sigma_B$ be the automorphism of $B$ that fixes $i$ and maps $\sqrt{17}$ to $-\sqrt{17}$, so $\sigma_B(\omega)=1-\omega$. As $i\in B$, \cite[Lemma~2.1]{RealQuadratic} holds over fields containing $B$, \eqref{eq:rankbound} over number fields containing $B$, and \cref{lem:local} over finite extensions of the completions of $B$, with $\mathfrak l_1$, $\mathfrak l_2$ in place of $(\lambda)$: their proofs use only that $i$, and so the square roots of $-1$, $2i$ and $-4$, lie in the field. In particular the local images at $\mathfrak l_1$ and $\mathfrak l_2$ have order $4$. For $A\in\cO_B\setminus\{0\}$ let $M_A$ be the product of the odd primes other than $5$ and $7$ that divide $\Nm_{B/\Q}(A)$. If $\pi$ is a Gaussian prime with $\pi\equiv9\pmod{16}$ and $\pi\equiv1+i\pmod{17}$, then $p=\Nm\pi\equiv1\pmod{16}$ and $p\equiv2\pmod{17}$, so $(17/p)=(2/17)=1$, $p$ splits completely in $B$, and the two primes of $B$ above $\pi$ are exchanged by $\sigma_B$. \begin{proposition}\label{prop:base} Let $K$ be a totally real Galois number field with $K\cap B=\Q$ and $\sqrt3\notin K$, put $L_B=KB$, and let $A\in\cO_B\setminus\{0\}$. Suppose that $E_A$ has $\Z[i]$-rank one over $B$ and over $L_B$, that $E_A(L_B)_\tors=\{O,T\}$, and that for every Gaussian prime $\pi$ with $\pi\equiv9\pmod{16}$ and $\pi\equiv1+i\pmod{\operatorname{lcm}(17,M_A)}$ whose norm is prime to $\Nm_{B/\Q}(A)$, $A$ is a square modulo exactly one of the two primes of $B$ above $\pi$. Then $\Z$ is Diophantine in $K$. \end{proposition} \begin{proof} We run \cite[\S\S3--6]{RealQuadratic} with $B$, $\cO_B$, $\sigma_B$, $L_B$ and $E_A$ over $B$ in place of $F$, $\cO$, $\sigma$, $L$ and $E_A$ over $F$, with these changes. \begin{enumerate}[label=\textup{(\alph*)},ref=\textup{(\alph*)},leftmargin=2em] \item \cite[Lemma~3.1]{RealQuadratic} becomes the following, with the proofs there. We have $[L_B:K]=4$, $1,i,\omega,i\omega$ is a $K$-basis of $L_B$, and restriction $\Gal(L_B/K)\to\Gal(B/\Q)$ is an isomorphism. The trace $\Tr_{L_B/K}(c_0+c_1i+c_2\omega+c_3i\omega)$ is $4c_0+2c_2$, and the coordinates of an element of $B$ are rational. The extension $L_B/K$ is unramified outside $2\cdot17$, a prime $p\equiv1\pmod4$ with $(17/p)=1$ splits completely in $B$, and $\sigma_B$ exchanges the two complex places of $B$. \item The set of (F3) already contains the primes above $17$, which divides $C$. So $N_0$ of Step~7 of \cite[Proposition~5.6]{RealQuadratic}, which is prime to $210$, contains $17$, and the selected Gaussian primes satisfy $\pi\equiv1+i\pmod{\operatorname{lcm}(17,M_A)}$ (at $3$ by \cite[Theorem~5.2(i)]{RealQuadratic}). By the remark before the proposition, \cite[Lemma~5.1]{RealQuadratic} and its proof then apply at the primes of $B$ above $\pi$, whose residue field is $\FF_p$. \item In the formal groups of \cite[\S5.2]{RealQuadratic}, $e=v_Q(p)$ is $2$ if $p\in\{2,17\}$ and $1$ otherwise, so $s\ge5$ still exceeds $e/(p-1)$; (Coordinates) holds as $1,i,\omega,i\omega$ is a basis of $\cO_B$; and in \cite[Lemma~5.5]{RealQuadratic}, $e(\mathcal Q/Q)\le[L_B:B]=n$. \item In Step~4 the bound on the coordinates is as follows. Write $u\in B$ as $z_0+z_1\omega$ with $z_0,z_1\in\Q(i)$, and let $u_\pm$ be its images under the two embeddings that fix $i$ and send $\omega$ to $\omega_\pm=(1\pm\sqrt{17})/2$. Then $z_1=(u_+-u_-)/\sqrt{17}$ and $z_0=(\omega_+u_--\omega_-u_+)/\sqrt{17}$, and as $\omega_-<0<\omega_+$ and $\omega_+-\omega_-=\sqrt{17}$, the four rational coordinates of $u$ have absolute value at most $\max(|u_+|,|u_-|)$. \item In the proof of \cite[Proposition~4.3]{RealQuadratic}, $\log4$ in the bound for $h_x(N_i)$ becomes $\log4+2h(\omega)$, as $h(i)=0$ and $h(i\omega)=h(\omega)$. \item In Steps~8--12, $\Theta_j=\Tr_{B/\Q}(W_j^{-1})$; and in \cite[\S6]{RealQuadratic} the unknowns over $L_B$ are written in the basis $1,i,\omega,i\omega$, with $i^2=-1$, $\omega^2=\omega+4$ and $\sigma_B(\omega)=1-\omega$. \end{enumerate} As $\sqrt3\notin K$, (F1) and \cite[Theorem~3.7]{RealQuadratic} apply to $K$ as printed. \end{proof} For the coefficient over $B$ we use two reference coefficients, which we find by computer. Put \begin{gather*} U_1^*=-2-i+5\omega-i\omega,\qquad V_1^*=10+47i-4\omega+18i\omega,\qquad W_1^*=8-5i+9\omega-7i\omega,\\ U_2^*=-4-5i+3\omega-3i\omega,\qquad V_2^*=32+19i+20\omega+4i\omega,\qquad W_2^*=5+6i-4i\omega,\\ c^*=-2-i-2\omega+2i\omega,\qquad q_1^*=1,\qquad q_2^*=-i-\omega-i\omega, \end{gather*} and for $n=1,2$ let $u_n^*=c^*U_n^*$, $v_n^*=\lambda_BV_n^*$, $A_n^*=-4u_n^*v_n^*(u_n^*-v_n^*)^2$ and $X_n^*=2iu_n^*(u_n^*-v_n^*)$. We find: \begin{enumerate}[label=\textup{(B\arabic*)},ref=\textup{(B\arabic*)},leftmargin=2.6em] \item\label{B:class} $B$ has class number $2$, neither dyadic prime is principal, and the classes in $B^\times/B^{\times2}$ with even valuation at every odd prime form a group of dimension $4$ with basis the classes of $g_1=i(2-\omega)$, $g_2=-1-i$, $g_3=4+\sqrt{17}$ and $g_4=-i$. \item\label{B:ref} $u_n^*-v_n^*=q_n^*W_n^*$; the norms of $U_1^*$, $V_1^*$, $W_1^*$ and $c^*$ are the primes $12497$, $5382233$, $107033$ and $1237$, and those of $U_2^*$, $V_2^*$, $W_2^*$, $c^*$ and $q_2^*$ are $13177$, $1270537$, $7529$, $1237$ and $53$. \item\label{B:sel} For $n=1,2$, the classes in the span of $[g_1],\dots,[g_4]$, $[U_n^*]$, $[A_n^*]$, $[X_n^*]$, $[c^*]$, and $[q_2^*]$ if $n=2$, that lie in the local images of $E_{A_n^*}$ at every place are $1$, $[A_n^*]$, $[X_n^*]$ and $[A_n^*X_n^*]$, and those for $E_{4A_n^*}$ are $1$ and $[A_n^*]$; both stay so when the Hilbert symbols of $U_n^*$ at $U_n^*$, $V_n^*$ and $W_n^*$ with the classes that span the local images there are reversed. \item\label{B:sign} $(1+i,u_n^*v_n^*)_{\mathfrak l_1}(1+i,u_n^*v_n^*)_{\mathfrak l_2}=-1$ for $n=1,2$. \item\label{B:match} At each dyadic prime $\mathfrak l$ of $B$, $A_1^*/A_2^*$ or $-A_1^*/A_2^*$ is a fourth power in $B_{\mathfrak l}$. \end{enumerate} The norms of $U_n^*$, $V_n^*$, $W_n^*$ are $\equiv1\pmod8$ and those of $c^*$, $q_2^*$ are $\equiv5\pmod8$. For $z\in\cO_B$ prime to $2$, the Artin symbol of $z\cO_B$ in $\Gal(B(\sqrt2)/B)$ is $(2,z)_{\mathfrak l_1}(2,z)_{\mathfrak l_2}$, by the product formula for $2$ and $z$; it depends only on $z$ modulo $\lambda_B^5$, as units $\equiv1\pmod{\lambda_B^5}$ are squares in $\Q_2(i)$, and for a prime element of degree one and norm $p$ it is trivial if and only if $p\equiv\pm1\pmod8$. \begin{theorem}\label{thm:base} Let $K$ be a totally real Galois extension of $\Q$ with group $S_3$ and $\sqrt2\in K$, and $L_B=KB$. Then $K\cap B=\Q$, $\sqrt3\notin K$, and some $A\in\cO_B\setminus\{0\}$ satisfies the hypotheses of \cref{prop:base}. \end{theorem} \begin{proof} The quadratic subfields of $K$ and $B$ are $\Q(\sqrt2)$ and $\Q(i)$, $\Q(\sqrt{17})$, $\Q(\sqrt{-17})$, so $K\cap B=\Q$, $\sqrt3\notin K$, $\Gamma_B=\Gal(L_B/B)\cong S_3$, and the maximal abelian subextension of $L_B/B$ is $B(\sqrt2)$. Let $k$ be a cubic subfield of $K$ and $J=kB$. The twist by $2$ is $E_{4A}$, and \cref{lem:S3ranks} and its proof hold with $B$, $J$, $L_B$ and $4A$ in place of $F$, $kF$, $L$ and $d^2A$. The inertia group at $2$ of $K/\Q$ maps onto $\Gal(\Q(\sqrt2)/\Q)$ and has a normal Sylow $2$-subgroup with cyclic quotient, so it is generated by a transposition, which is its own normalizer and so the decomposition group; as $\sqrt2\notin\Q_2(i)$, $J\otimes_BB_{\mathfrak l}\cong B_{\mathfrak l}\times B_{\mathfrak l}(\sqrt2)$ at each dyadic prime $\mathfrak l$. \emph{The prime $c$ and the group $\cS_K$.} By the Chebotarev density theorem in the compositum of $L_B$ and the ray class field of $B$ modulo $2^{12}$, there is a prime element $c\equiv c^*\pmod{2^{12}}$ of degree one, unramified in $L_B$, whose norm is a prime $>17$ prime to $d_K$; its Artin symbol in $B(\sqrt2)/B$ is that of $c^*$, which is nontrivial, so its Frobenius in $L_B/B$ is a transposition, and $c$ has a prime $w_c$ of degree one and a prime $w_c'$ of degree two in $J$. Let $\cS_K$ be the group of classes $b\in J^\times/J^{\times2}$ such that $\Nm_{J/B}b$ is a square, $b$ has even valuation at every odd prime of $J$ other than $w_c'$, $b\in\{1,[c]\}$ at $w_c'$, and $b\in W_w(A_1^*)$ at every prime $w$ of $J$ above $2$; let $r$ be its dimension, and $n=1$ if $r$ is even, $n=2$ if $r$ is odd. The local conditions are those of every $A$ with $A/A_1^*$ or $A/A_2^*$ a fourth power at the dyadic primes and with valuation one at $c$. At $\mathfrak l$, a class with square norm is $(\Nm t,t)$ with $t$ a class of $B_{\mathfrak l}(\sqrt2)$, and by \cref{lem:local}(c) it lies in the local image if and only if $t$ lies in $W_{B_{\mathfrak l}(\sqrt2)}(A)$, which depends only on $A$ modulo fourth powers of $B_{\mathfrak l}(\sqrt2)\cong\Q_2(\zeta)$, in which $-1$ is a fourth power; so \ref{B:match} gives the same conditions for $A_1^*$ and $A_2^*$. At $w_c'$, every unit of $B_c$ is a square in $J_{w_c'}$, so $W_{w_c'}(A)=\{1,[c]\}$ for every $A$ with $v_c(A)=1$; and a class with square norm and in $\{1,[c]\}$ at $w_c'$ is a square at $w_c$. \emph{The auxiliary primes.} \Cref{lem:S3auxiliary} holds with $B$, $L_B$ and $J$ in place of $F$, $L$ and $kF$ and $q_0=1$, with the auxiliary primes written $s_1,\dots,s_h$ and, for odd $r$, $q$, and with these changes: $s_j\equiv1\pmod{2^{12}cs_1\cdots s_{j-1}}$; $q\equiv q_2^*\pmod{2^{12}}$, $q\equiv1\pmod{s_1\cdots s_h}$, and $(q/c)=(q_2^*/c^*)$; and all of them have norms prime to $17d_K\Nm c$. In the proof, restriction from $J$ to $L_B$ is injective on $\cS_K$ as $\Nm_{J/B}2=8$ is not a square in $B$; the primes are taken unramified in $M$, which may be ramified above $c$; and the ray class fields are taken modulo $2^{12}cs_1\cdots s_{j-1}$ and $2^{12}cs_1\cdots s_h$. For $q$, the element $\rho_{h+1}$ and the class of the residues prescribed for $q$ restrict to the same nontrivial element of $\Gal(B(\sqrt2)/B)$, by the Artin symbol of $q_2^*$. Put $q=1$ if $r$ is even, and $C=s_1\cdots s_h$. In place of the last assertion of \cref{lem:S3auxiliary}, each $s_j$ is a fourth power at $\mathfrak l_1$ and $\mathfrak l_2$, and so is $q/q_2^*$ if $r$ is odd. By the product formula $(g_k/s_j)=(\lambda_B/s_j)=(c/s_j)=(q/s_j)=1$ for every $j$, and $(s_i/s_j)=1$ for $i\ne j$. \emph{The triple.} We apply \cref{thm:primes} over $B$ with $N=L_B$, $C_1=C_2=C_3$ the class of $3$-cycles, $\psi_1=U$, $\psi_2=W$ and $\psi_3=V=(cC\psi_1-q\psi_2)/\lambda_B$, and with $m=2^{12}cqC$ and $\psi_1$, $\psi_2$ prescribed modulo $m$ by these residues: $U\equiv U_n^*$ and $W\equiv W_n^*\pmod{2^{12}}$; $(U/c)=(U_n^*/c^*)$ and $(W/c)=(W_n^*/c^*)$; if $r$ is odd, $(U/q)=(U_2^*/q_2^*)$ and $(W/q)=(W_2^*/q_2^*)$; and $(U/s_j)=-1$, $(W/s_j)=1$. Then $\psi_3\in\cO_B$, as $c^*U_n^*\equiv q_n^*W_n^*\pmod{\lambda_B}$, and $u=cCU$, $v=\lambda_BV$, $u-v=qW$. Moreover $V\equiv V_n^*\pmod{\lambda_B^{23}}$ and $(V/s_j)=1$, and the characters of $V$ at $c$ and $q$ are those of $V_n^*$ at $c^*$ and $q_n^*$, as $\lambda_BV\equiv-qW\pmod c$ and $\lambda_BV\equiv cCU\pmod q$. Take $f_0=8\cdot17\cdot\Nm c\cdot\Nm q\cdot\Nm C$. The Artin symbols of $U$, $V$, $W$ in $B(\sqrt2)/B$ are those of $U_n^*$, $V_n^*$, $W_n^*$, which are trivial; so $\Theta=1$, and $\beta_p>0$ for every $p$ as in the proof of \cref{thm:cyclic}. So there are such $U$, $V$, $W$, prime elements of degree one with distinct norms and Frobenius $3$-cycles; we take their norms prime to $17d_K$ and to those of $c$, $q$ and the $s_j$. \emph{The descents over $B$.} Let $A=-4uv(u-v)^2$ and $X=2iu(u-v)$. As $u/u_n^*$, $v/v_n^*$ and $(u-v)/(u_n^*-v_n^*)$ are $\equiv1\pmod{\lambda_B^{23}}$, $A/A_n^*$ is a fourth power and $X/X_n^*$ a square at $\mathfrak l_1$ and $\mathfrak l_2$, as in \cite[Lemma~2.4(a)]{RealQuadratic}. By \ref{B:class}, a class with even valuation outside $2$, $c$, $q$, the $s_j$, $U$, $V$ and $W$ is a product of the classes of $g_1,\dots,g_4$, $U$, $A$, $X$, $c$, $q$ and the $s_j$. At $s_j$ the local image is $\{1,[A]\}$, the symbols of the $g_k$, $c$, $q$ and the other $s_i$ are $1$, and those of $U$ and of the unit parts of $A$ and $X$, which have valuation one there, are $-1$. So, as in \cref{lem:three}, $v_{s_j}\equiv v_U\pmod2$ for each $j$, and the conditions at the other places are those of a matrix of Hilbert symbols in the columns $g_1,\dots,g_4$, $CU$, $A$, $X$, $c$ and, if $r$ is odd, $q$. At $\mathfrak l_1$ and $\mathfrak l_2$ the rows for $A$ and $4A$ are those for $A_n^*$ and $4A_n^*$, as $A/A_n^*$ is a fourth power there. At $U$, $V$, $c$ and at $W$, $q$ the local images are spanned by $[A]$ and by $[X]$, and for $4A$ at $W$ and $q$ by $[2X]$, the image of $(2Xt^2,0)$ with $t^4=v/u=A/X^2$, a fourth power there as $u\equiv v$, which is $[X]$ at $W$, where $2$ is a square, and not at $q$; by the product formula each entry there is fixed by the residues modulo $2^{12}$, the characters prescribed at $c$, $q$ and the $s_j$, and $(V/U)$: for example the entry of $CU$ at $U$ is $(c/U)(\lambda_B/U)(V/U)$, as $(C/U)$ appears twice, and that of $CU$ at $W$ is $(U/W)$, as $(C/W)=1$, with $(W/U)=(-q\lambda_BV/U)$ by $qW\equiv-\lambda_BV\pmod U$. So the matrix is that of $A_n^*$, or that one with the entries of the column of $CU$ at $U$, $V$, $W$ reversed, and \ref{B:sel} gives $\mathrm{Sel}_B(A)=\{1,[A],[X],[AX]\}$ and $\mathrm{Sel}_B(4A)=\{1,[A]\}$. \emph{The descent over $J$, torsion, ranks and characters.} The descent over $kF$ in the proof of \cref{thm:S3} applies with $J$, $c$, the $s_j$ and $q$, with one addition: above $c$ a class $c_1\in\mathrm{Sel}_J(A)$ with square norm is a square at $w_c$ and lies in $\{1,[c]\}=W_{w_c'}(A)$ at $w_c'$, and the factor at $w_c'$ of the product formula for $b\in\cS_K$ and $c_1$ is $1$ by \cref{lem:local}(b). So $c_1\in\cS_K$ once its valuations above the $s_j$ and $q$ are even, and $c_1=1$; $\mathrm{Sel}_J(A)$ is the image of $\mathrm{Sel}_B(A)$. Torsion and ranks follow as in the proof of \cref{thm:S3}. Let $\pi$ be as in \cref{prop:base}. The norms of $c$, $q$, the $s_j$, $U$, $V$ and $W$ are not $5$ or $7$, as no prime of degree one of $B$ has norm $5$ or $7$; so $\pi\equiv1+i$ modulo each of these primes. The product formula for $A$ and $\pi$ over $B$ has factor $1$ at $\mathfrak l_1$ and $\mathfrak l_2$, where $\pi$ is a square, and at $W$ and $q$, where $A$ has even valuation, and $((1+i)/\mathfrak p)^{v_{\mathfrak p}(uv)}$ at the other odd primes $\mathfrak p$ that divide $A$; so the product of the characters of $A$ at the two primes above $\pi$ is $\prod_{\mathfrak p\text{ odd}}(1+i,uv)_{\mathfrak p}=(1+i,uv)_{\mathfrak l_1}(1+i,uv)_{\mathfrak l_2}$, which is that for $u_n^*v_n^*$, and $-1$ by \ref{B:sign}. \end{proof} \section{Fields with group \texorpdfstring{$A_4$}{A4}}\label{sec:A4} This section proves \cref{thm:A4} for group $A_4$: to the construction of \cref{sec:cyclic} over the cyclic cubic subfield it adds two prime factors of $u-v$, chosen through the coordinates of the primitive classes at them, which give rank zero to the three quadratic twists of the Klein four layer. In this section $K$ is a totally real Galois extension of $\Q$ with group $A_4$, $V_4$ is the normal subgroup of order four of $\Gal(K/\Q)$, $C=K^{V_4}$, which is a cyclic cubic field, $D=CF$ and $L=KF$. As $A_4$ has no subgroup of index two, $K$ has no quadratic subfield; so $K\cap F=\Q$, $\sqrt3\notin K$, $\Gal(L/F)\cong A_4$ and $\Gal(L/D)=V_4$. The elements of $A_4$ outside $V_4$ are its eight $3$-cycles, and the abelianization of $A_4$ has order three, so $D$ is the maximal abelian subextension of $L/F$. If $K_4$ is a quartic subfield of $K$, then $K_4F$ is the fixed field of a subgroup of order three. Let $f$ be the conductor of $C$, $\chi$ a cubic Dirichlet character modulo $f$ defining $C$, and $\sigma$ a generator of $\Gal(C/\Q)$, extended to $D$ by $\sigma(\zeta)=\zeta$. We use \cref{sec:cyclic} for $C$, with $D$ in the role of $L$ there; so $\cS_C$ is a group of classes in $D^\times/D^{\times2}$, and $q_1,\dots,q_h$ are the primes of \cref{lem:auxiliary} for $C$, which split in $D$, with norms also prime to the primes ramified in $K$, as its proof allows. Put $Q=q_1\cdots q_h$. By Kummer theory over $C$, $K=C(\sqrt d,\sqrt{\sigma(d)})$ for some $d\in C^\times$ such that $[d]$, $[\sigma(d)]$, $[\sigma^2(d)]$ are the three nontrivial classes of a group of order four in $C^\times/C^{\times2}$, which $\sigma$ permutes cyclically; so $d\,\sigma(d)\,\sigma^2(d)$ is a square. Their restrictions to $D$ are distinct and nontrivial, as a nontrivial class of $C$ that is a square in $D=C(\zeta)$ is the class of $-1$, $2$ or $-2$ times a square, and these classes are fixed by $\sigma$. We fix such a $d$. \begin{lemma}\label{lem:A4ranks} For $A\in F^\times$, the $\Z[i]$-rank of $E_A(L)$ is $r_D+3(r_{K_4F}-r_F)$, where $r_M$ is the rank of $E_A$ over $M$. \end{lemma} \begin{proof} As in the proof of \cref{lem:S3ranks}, $E_A(L)\otimes_{\Z[i]}\C$ is a representation of $A_4$ whose invariants under a subgroup $H$ are $E_A(L^H)\otimes_{\Z[i]}\C$. It is the sum of $a$ copies of the trivial character, $b$ and $b'$ of the two nontrivial characters of $A_4/V_4$, and $c$ of the irreducible representation $\rho$ of degree three, the permutation representation on four letters less the trivial one. The restriction of $\rho$ to $V_4$ is the sum of the three nontrivial characters of $V_4$, and to a subgroup of order three, which fixes a letter, it is the sum of the three characters of that subgroup. So the invariants of $A_4$, $V_4$ and a subgroup of order three have dimensions $a$, $a+b+b'$ and $a+c$, and the rank $a+b+b'+3c$ is as stated. \end{proof} \begin{lemma}\label{lem:A4square} Let $b\in D^\times$ with $b\,\sigma(b)\,\sigma^2(b)\in D^{\times2}$, and let $w$ be a prime of $D$ above an odd prime of $F$ inert in $D$, at which $b$ has even valuation. Then $b$ is a square in the completion at $w$. \end{lemma} \begin{proof} As $w$ is the only prime above its prime of $F$, $\sigma$ extends to an automorphism of the completion at $w$, which preserves the class of the non-square units. The classes of $b$, $\sigma(b)$ and $\sigma^2(b)$ there are classes of units, so they are equal, and their product is trivial; so they are trivial. \end{proof} \begin{lemma}\label{lem:A4odd} Let $\mathfrak p$ be an odd prime of $F$ that ramifies in $L/D$. Then $\mathfrak p$ is prime to $f$ and splits in $D$, and its inertia groups in $\Gal(L/F)$ have order two. \end{lemma} \begin{proof} An inertia group $I$ above $\mathfrak p$ has a normal Sylow subgroup for the residue characteristic, which is odd, with cyclic quotient. The subgroups of $A_4$ are $1$, those of order two and three, $V_4$ and $A_4$; as $V_4$ and $A_4$ are not cyclic, and their Sylow subgroups for odd primes are trivial or not normal, $I$ is cyclic of order at most three. As $I$ meets $V_4$, it has order two and lies in $V_4$, so $\mathfrak p$ is unramified in $D$ and prime to $f$. The decomposition group normalizes $I$, and the normalizer in $A_4$ of a subgroup of order two is $V_4$; so $\mathfrak p$ splits in $D$. \end{proof} \subsection*{Primitive classes at split primes} For a prime element $r$ of $F$ of degree one that splits in $D$ and is prime to $2f$, let $w_0(r)$ be a prime of $D$ above it and $w_k(r)=\sigma^k(w_0(r))$. For a class $c$ of $D$ let $\nu_k$ be its valuation $n_k$ at $w_k(r)$ modulo $2$ and $\mu_k$ the residue symbol of $c/r^{n_k}$ there; we call $(\nu,\mu)\in\FF_2^3\times\FF_2^3$ the coordinates of $c$ at $r$. As $-1$ is a square, the Hilbert symbol at $w_k(r)$ of classes with coordinates $(\nu,\mu)$ and $(\nu',\mu')$ is $\nu_k\mu'_k+\nu'_k\mu_k$. Let $\mathsf W\subset\FF_2^3$ be the plane of vectors with sum zero, with the dot product, which is nondegenerate on it, and the cyclic rotation $\rho$, $\rho(x)_k=x_{k-1}$. The endomorphisms of $\mathsf W$ that commute with $\rho$ form the field $\FF_2[\rho]\cong\FF_4$; the adjoint of $\rho$ is $\rho^{-1}=\rho^2$, so the adjoint is the nontrivial automorphism of $\FF_4$, its fixed elements are $0$ and $1$, and $x^*x=x^3=1$ for $x\ne0$. \begin{lemma}\label{lem:A4graph} Let $\mathcal R$ be a finite set of prime elements of $F$ of degree one that generate distinct prime ideals, split in $D$, with norms prime to $2f$, to the norms of the $q_j$ and to the primes ramified in $L$. Let $\Pi_{\mathcal R}$ be the group of classes $c\in D^\times/D^{\times2}$ with $\Nm_{D/F}c$ a square such that $c\in W_w(A_0)$ at every prime $w$ above $\lambda$, $c\in\{1,[q_j\eta_j]\}$ at every prime above $q_j$, with $\eta_j$ a non-square unit at $q_j$, and $c$ has even valuation at every other odd prime not above $\mathcal R$. Then the coordinates of $c\in\Pi_{\mathcal R}$ at each $r\in\mathcal R$ lie in $\mathsf W\times \mathsf W$, and $c\mapsto(\nu(c))_{r\in\mathcal R}$ is an isomorphism of $\Pi_{\mathcal R}$ onto $\mathsf W^{\mathcal R}$. So $\mu=\Phi\nu$ for an endomorphism $\Phi$ of $\mathsf W^{\mathcal R}$; it is self-adjoint for the dot product, its diagonal block $\Phi_{rr}$ is $0$ or $1$ and does not depend on the rest of $\mathcal R$, and each off-diagonal block $\Phi_{r'r}$ is $0$ or an isometry of $\mathsf W$, with $\Phi_{rr'}=\Phi_{r'r}^*$. \end{lemma} \begin{proof} If $c\in\Pi_{\mathcal R}$ has even valuation above $\mathcal R$, it is trivial: the proof of \cref{thm:cyclic} shows that a class with square norm, even valuation at the odd primes not above $Q$, in $W_w(A_0)$ above $\lambda$ and, above each $q_j$, in a line spanned by a class of odd valuation, is trivial, by \cref{lem:auxiliary}. The coordinates at $r$ lie in $\mathsf W\times \mathsf W$, as the product of the three local classes is the class of $\Nm_{D/F}c$ at $r$, a square. Let $S$ be the set of primes of $D$ above $2$, the $q_j$ and $\mathcal R$, $Y_S=\bigoplus_{w\in S}D_w^\times/D_w^{\times2}$ with the sum of the Hilbert symbols, which is alternating and nondegenerate, and $\Gamma_S$ the image of the group of classes with even valuation outside $S$. This group has dimension $r_2(D)+\#S+c_S$, where $c_S$ is the dimension of the class group of $D$ modulo the primes of $S$ and its squares, by the $S$-units, and the kernel of its localization at $S$ has dimension $c_S$, as its classes generate the quadratic extensions unramified everywhere and split at $S$; so $\dim\Gamma_S=r_2(D)+\#S$, half of $\dim Y_S$ \cite[Chapter~VII, Proposition~6.8]{Milne}, and as $\Gamma_S$ is isotropic by the product formula, it is Lagrangian. Write $Y_S=Y_{\mathcal R}\oplus Y'$, with $Y_{\mathcal R}$ the sum over the primes above $\mathcal R$, and let $L'\subset Y'$ be the sum of the local conditions above $2$ and the $q_j$, which is Lagrangian by \cref{lem:local}(b). Then the projection $\Lambda$ to $Y_{\mathcal R}$ of $\Gamma_S\cap(Y_{\mathcal R}\oplus L')$ is Lagrangian: it is isotropic, and if $x\in Y_{\mathcal R}$ is orthogonal to it, then $(x,0)$ is orthogonal to $\Gamma_S\cap(Y_{\mathcal R}\oplus L')$, so it lies in $\Gamma_S+(0\oplus L')$, and $x\in\Lambda$. All these conditions are stable under $\sigma$, as $A_0$, $q_j$ and $r$ lie in $F$; and $c\mapsto(\mathrm{res}\Nm_{D/F}c,\,c\cdot\mathrm{res}\Nm_{D/F}c)$ splits both $Y_{\mathcal R}$ and $\Lambda$ into the restrictions from $F$ and the classes with square local norms, which are orthogonal, as $\sum_{w\mid\mathfrak p}(\mathrm{res}\,a,y)_w=(a,\Nm_{D/F}y)_{\mathfrak p}$. An element of $\Lambda$ with square local norms is the image of a class $b$ with even valuation outside $S$ that satisfies the conditions above $2$ and the $q_j$, and $b\cdot\mathrm{res}\Nm_{D/F}b$, which has norm $(\Nm_{D/F}b)^4$, has the same image and satisfies the same conditions, by \cref{lem:local}(c); so it lies in $\Pi_{\mathcal R}$. So the image $\Lambda'$ of $\Pi_{\mathcal R}$ is Lagrangian in $\bigoplus_{r\in\mathcal R}\mathsf W\times \mathsf W$, of dimension $2\#\mathcal R$. By the first paragraph, $\nu$ is injective on $\Pi_{\mathcal R}$; so it maps $\Pi_{\mathcal R}$ and $\Lambda'$ isomorphically onto $\mathsf W^{\mathcal R}$, and $\mu=\Phi\nu$. As $\Lambda'$ is isotropic, $\nu\cdot\Phi\nu'+\nu'\cdot\Phi\nu=0$ for all $\nu,\nu'$, so $\Phi$ is self-adjoint. As $\sigma$ maps $\Pi_{\mathcal R}$ to itself and $w_k(r)$ to $w_{k+1}(r)$, and $r\in F$, $\Phi$ commutes with $\rho$ on each orbit; so its blocks lie in $\FF_4$, the diagonal ones are self-adjoint, hence $0$ or $1$, and the others are $0$ or isometries. The class with valuation vector $\nu$ supported at $r$ has even valuation above $\mathcal R\setminus\{r\}$, so it lies in $\Pi_{\{r\}}$, and $\Phi_{rr}$ is the same for $\{r\}$. \end{proof} The primes $r_1$ and $r_2$ serve the twist $E_{d^2A}$, whose local images can differ from those of $E_A$ only where $d$ is not a square; the coefficient makes them agree at every such prime except the four above $r_1$ and $r_2$, and without these the two Selmer groups would be equal. \begin{lemma}\label{lem:A4diff} There are prime elements $r_1$, $r_2$ of $F$ of degree one, split in $D$, with distinct norms prime to $2f$, to the norms of the $q_j$ and to the primes ramified in $L$, such that $r_1,r_2\equiv1\pmod{32fQ}$, $(r_2/r_1)=-1$, and the Frobenius of $r_i$ in $L/D$ is nontrivial, and such that, for $\mathcal R=\{r_1,r_2\}$, with $\delta_i\in\FF_2^3$ the unit bits of $[d]$ at $r_i$, the block $T=\Phi_{r_2r_1}$ satisfies $(T\delta_1)\cdot\delta_2=1$. Then $(r_1/r_2)=-1$, and $\delta_1$, $\delta_2$ are nonzero vectors of $\mathsf W$. \end{lemma} \begin{proof} Let $R_1$ be the ray class field of $F$ modulo $32fQ$. It contains $D$, and $L\cap R_1$ is abelian over $F$, so it is $D$. By the Chebotarev density theorem in $LR_1$, there is a prime of $F$ of degree one, with norm prime to the fixed primes, trivial in $R_1$ and with Frobenius in $L$ in $V_4\setminus\{1\}$; as in the proof of \cref{lem:auxiliary} it is $r_1\cO$ with $r_1\equiv1\pmod{32fQ}$. The Frobenius elements of $w_0(r_1)$, $w_1(r_1)$, $w_2(r_1)$ in $L/D$ are conjugate by $\sigma$, so they are the three nontrivial elements of $V_4$, and $d$, which has even valuation there, is a non-square at exactly two of these primes; so $\delta_1\in \mathsf W\setminus\{0\}$, and likewise for $r_2$. By \cref{lem:A4graph} for $\{r_1\}$, let $\beta_1\in\Pi_{\{r_1\}}$ be the class with valuation vector $\delta_1$. The classes $\beta_1$, $\sigma(\beta_1)$ span a plane $P_\beta$, as their valuation vectors at $r_1$ are independent, and every nonzero class of $P_\beta$ has odd valuation at a prime above $r_1$, while $[d]$, $[\sigma(d)]$ span a plane $P_d$ of classes with even valuation there; so $P_\beta\cap P_d=0$, and $1+\sigma+\sigma^2$ vanishes on $P_\beta\oplus P_d$. Let $M_2=D(\sqrt c:c\in P_\beta\oplus P_d)$, which contains $L$. As in the proof of \cref{lem:auxiliary}, $\Gal(M_2/D)$ is dual to $P_\beta\oplus P_d$, and every subfield of $M_2$ abelian over $F$ lies in $D$, as $1+\sigma^{-1}=\sigma$ is invertible on $P_\beta\oplus P_d$. For a functional $\tau$ on $P_\beta\oplus P_d$, the vectors $(\tau(\sigma^{-k}c))_k$ for $c=\beta_1$ and $c=d$ lie in $\mathsf W$, and, as in that proof, each is an isomorphism of the dual of the plane onto $\mathsf W$; choose $\tau$ so that they are distinct and nonzero. Let $R_2$ be the ray class field of $F$ modulo $32fQr_1$, and $g\in\Gal(R_2/F)$ the class of an element $\equiv1\pmod{32fQ}$ that is a non-square modulo $r_1$; it is trivial on $D$, as is $\tau$, and $M_2\cap R_2\subseteq D$. By the Chebotarev density theorem there is a prime of degree one with Frobenius $\tau$ in $M_2/D$ at a prime above it and $g$ in $R_2$; it is $r_2\cO$ with $r_2\equiv1\pmod{32fQ}$ and $(r_2/r_1)=-1$, it splits in $D$, and the residue symbols of $\beta_1$ and $d$ at $w_k(r_2)$ are $\tau(\sigma^{-k}\beta_1)$ and $\tau(\sigma^{-k}d)$. As $\beta_1$ has even valuation at $r_2$, it lies in $\Pi_{\mathcal R}$ with valuation vector $(\delta_1,0)$, so its unit bits at $r_2$ are $T\delta_1$; and two distinct nonzero vectors of $\mathsf W$ have dot product one. Finally $(r_1/r_2)=(r_2/r_1)$ by the product formula, as $r_1$ and $r_2$ are squares in $F_\lambda$. \end{proof} \begin{lemma}\label{lem:A4dyadic} Let $u,v\in\cO$ with $u\equiv u_0$ and $v\equiv v_0\pmod{32}$, and $A=-4uv(u-v)^2$. Then $W_w(d^2A)=W_w(A)$ at every prime $w$ of $D$ above $\lambda$. \end{lemma} \begin{proof} As $f$ is odd, $C$ is unramified at $2$, and $D_w$ is $F_\lambda$ if $2$ splits in $C$ and the unramified cubic extension $\kappa$ of $F_\lambda$ if $2$ is inert. In the first case the class of $d$ at $w$ comes from $\Q_2^\times/\Q_2^{\times2}$, in which $-1$ and $2$ become squares in $F_\lambda$; so it is $1$ or $[5]$. In the second, let $\Q_2'$ be the unramified cubic extension of $\Q_2$. The norm from $C$ to $\Q$ of $d$ is a rational number that is a square in $C$, so a square, and the class of $d$ in $\Q_2'^\times/\Q_2'^{\times2}$ lies in the kernel of the norm, a plane, as $\Q_2'^\times/\Q_2'^{\times2}$ has dimension $5$ and the norm maps it onto $\Q_2^\times/\Q_2^{\times2}$; $\Gal(\Q_2'/\Q_2)$ permutes its three nonzero classes cyclically. As $A/A_0$ is a fourth power in every finite extension of $F_\lambda$ (\cref{sec:frame}), it suffices to compare $W_\kappa(t^2A_0)$ with $W_\kappa(A_0)$ for $\kappa=F_\lambda$ and $t=5$, and for $\kappa$ the unramified cubic extension and $t$ each nonzero class of that plane. We find, in each case, points of $E_{A_0}$ and of $E_{t^2A_0}$ over $\kappa$ whose images span one and the same subspace, of dimension $3$ for $F_\lambda$ and $7$ for its cubic extension, which is the dimension of both images by \cref{lem:local}(a); so the images are equal. \end{proof} \subsection*{The coefficient} \begin{theorem}\label{thm:A4coef} Let $r_1$, $r_2$ be as in \cref{lem:A4diff}, $R=r_1r_2$, $c_1$, $c_2$ the diagonal blocks of $\Phi$ at $r_1$, $r_2$, and $(s_1,s_2)\in\{(1,0),(0,1)\}$ with $(c_1+s_1)(c_2+s_2)=0$, which exists. There are prime elements $U$, $V$, $W$ of $F$ of degree one with distinct norms, inert in $D$, with $V=QU-\lambda RW$, $U\equiv u_0$ and $V\equiv v_0\pmod{32}$, such that $A=-4uv(u-v)^2$ with $u=QU$ and $v=V$ satisfies \ref{re:i}, \ref{re:ii} and \ref{re:iii}. \end{theorem} \begin{proof} \emph{The triple.} Let $\mathcal O$ be the set of odd primes of $F$ that ramify in $L/D$, which split in $D$ and are prime to $f$ (\cref{lem:A4odd}), and let $n$ be a rational integer prime to $f$ with $\chi(n)\ne1$. Let $f_0$ be the product of $2$, $f$ and the norms of the $q_j$, of $r_1$, $r_2$ and of the primes of $\mathcal O$, and $m=32f_0$. We apply \cref{thm:primes} with $N=D$, as in the proof of \cref{thm:cyclic}, to $\psi_1=U$, $\psi_2=W$ and $\psi_3=V=Q\psi_1-\lambda R\psi_2$, that is, with $Q$, $-\lambda R$, $1$, $0$ in place of $a$, $b$, $c$, $e$, and with $\psi_1$, $\psi_2$ prescribed modulo $m$ by the Chinese remainder theorem: $U\equiv u_0$ and $W\equiv(u_0-v_0)/\lambda\pmod{32}$, so that $V\equiv v_0$, as $Q\equiv R\equiv1\pmod{32}$; $U\equiv n$ and $W\equiv2n/\lambda\pmod{f\cO}$, so that $V\equiv-n$; at each $q_j$, units with $(UV/q_j)=-1$, where $V\equiv-\lambda RW$; at $r_i$, $U$ a square and $W$ a square if $s_i=1$ and a non-square if $s_i=0$; at each $\mathfrak p\in\mathcal O$, $U\equiv Q^{-1}$ and $W\equiv(1-t_{\mathfrak p})/(\lambda R)$ with $t_{\mathfrak p}$ a non-square unit, so that $v/u\equiv t_{\mathfrak p}$; and at the other primes of $F$ dividing $m$, $U\equiv Q^{-1}$ and $W\equiv2/(\lambda R)$. At every pair at which the forms are units their residues modulo $f$ are these, with norms $\equiv n^4$, $8n^4$, $n^4\pmod f$, at which $\chi$ is $\chi(n)$; so the three Artin symbols in $\Gal(D/F)$ are the element $\gamma$ at which $\chi$ is $\chi(n)$, and with $C_1=C_2=C_3=\{\gamma\}$, $\Theta=1$. As the forms are constant units at every prime dividing $m$, $\beta_p>0$ for every $p$, as in the proof of \cref{thm:cyclic}. So \cref{thm:primes} gives $U$, $V$, $W$, prime elements of degree one with distinct norms, prime to $m$, inert in $D$, and unramified in $L$. \emph{Local images.} Now $A=-4\lambda^2QUVR^2W^2$ and $X=2i\lambda QURW$, so $[A]=[QUV]$ and $[X]=[\lambda QURW]$. At $r_i$, $u\equiv v$, so $-4uv$ is a square, $A$ is a square of valuation two, and $W_{r_i}(A)=\{1,[X]\}$, as $X$ has valuation one. The unit bit of $X/r_i$ at $r_i$ is $s_i$: $2i$ is a square, $\lambda$ and the $q_j$ are squares at $r_i$ by the product formula, as $r_i\equiv1$ modulo $32$ and the $q_j$, the other $r_{i'}$ is a non-square, $U$ is a square, and $W$ is a square exactly when $s_i=1$. So above $r_i$, a class with coordinates $(\nu,\mu)$ lies in the image of $E_A$ exactly when $\mu=s_i\nu$. At $U$, $V$ and the $q_j$ the image is $\{1,[A]\}$, and above $q_j$ in $D$ it is $\{1,[q_j\eta_j]\}$, as $(UV/q_j)=-1$; at $W$ it is $\{1,[X]\}$; at the primes of $\mathcal O$, where $[A]=[v/u]$ is a non-square unit, it is the group of unit classes, as at every other odd prime prime to $A$. \emph{Over $F$.} As in the proof of \cref{thm:cyclic}, every class of $\mathrm{Sel}_F(A)$ is, up to $[A]$ and $[X]$, the class of $(\varepsilon\lambda)^{e_0}q_1^{e_1}\cdots q_h^{e_h}r_1^{g_1}r_2^{g_2}$, and $e_1=\dots=e_h=0$, as the $r_i$ are squares at the $q_j$. At $r_1$ and $r_2$, $\varepsilon\lambda$ is a square, by the product formula, and so the conditions there are $s_1g_1+g_2=0$ and $g_1+s_2g_2=0$, whose determinant is $s_1s_2+1=1$; so $g_1=g_2=0$, and $e_0=0$ by the condition at $U$. So $\mathrm{Sel}_F(A)=\{1,[A],[X],[AX]\}$. \emph{Over $D$.} As in the proof of \cref{thm:cyclic}, it suffices to show that a class $c\in\mathrm{Sel}_D(A)$ with $\Nm_{D/F}c$ a square is trivial. It is a square above $U$, $V$, $W$, which are inert in $D$, and so lies in $\Pi_{\mathcal R}$, $\mathcal R=\{r_1,r_2\}$. With $T$ as in \cref{lem:A4diff}, $\Phi=\bigl(\begin{smallmatrix}c_1&T^*\\T&c_2\end{smallmatrix}\bigr)$, and the conditions above $r_1$, $r_2$ say $M\nu=0$ with \[ M=\begin{pmatrix}a_1&T^*\\T&a_2\end{pmatrix},\qquad a_i=c_i+s_i,\qquad M^{-1}=\begin{pmatrix}a_2&T^*\\T&a_1\end{pmatrix}, \] the inverse as $a_1a_2=0$ and $T^*T=TT^*=1$. So $\nu=0$ and $c=1$ by \cref{lem:A4graph}, and $\mathrm{Sel}_D(A)$ is the image of $\mathrm{Sel}_F(A)$. \emph{The twist.} The local images of $E_{d^2A}$ over $D$ are those of $E_A$ except at the two primes above each $r_i$ at which $d$ is a non-square. Above $\lambda$ this is \cref{lem:A4dyadic}. At the odd primes where $A$ has odd valuation, $d$ has even valuation, and both images are $\{1,[A]\}$; above $W$, $d$ is a square by \cref{lem:A4square}; at an odd prime where $A$ is a non-square unit, both images have order two and contain $[d^2A]=[A]$, so they are the group of unit classes, and this covers the primes above $\mathcal O$, the only odd primes at which $d$ can have odd valuation; at the other odd primes prime to $A$, $d^2A$ is a unit times a fourth power. Above $r_i$, $A=a^2$ with $[a]=[X]$, as $A/X^2=v/u\equiv1$; where $d$ is a non-square, the point $(da,0)$ of $E_{d^2A}$ has image $[da]$, of odd valuation, so the image is $\{1,[dX]\}$, and the condition there is $\mu=(s_i+1)\nu$. Let $\mathcal G$ be the group of classes of $D$ that satisfy the conditions of $E_A$ at every prime not above $r_1$, $r_2$, and let $r_a$ be the $r_i$ with $s_i=1$, and $r_{a'}$ the other. For $c\in\mathcal G$ let $\nu\in\FF_2^6$ be its valuations at the six primes above $\mathcal R$ and $e=\mu-s\nu$, with $s=s_i$ at the primes above $r_i$. Then $\mathcal G$ is spanned by $\Pi_{\mathcal R}$, $[A]$, $[X]$ and $[r_a]$. Indeed, as in the proof of \cref{thm:cyclic}, every class of $\mathcal G$ is the product of one with square norm, which lies in $\Pi_{\mathcal R}$, as above, and the restriction of one from $F$ that satisfies the conditions of $E_A$ at every prime other than $r_1$, $r_2$; and these are found as over $F$: the same reduction leaves $r_1^{g_1}r_2^{g_2}$, as $(r_i/U)=(U/r_i)=1$, $U$ being a square modulo $r_i$, and at $W$, where $W$ is a square modulo $r_a$ and a non-square modulo $r_{a'}$, the residue symbols of $r_a$ and $r_{a'}$ are $1$ and $-1$ by the product formula, so $g_{a'}=0$; and $r_a$ lies in $\mathcal G$, as it is a square in $F_\lambda$, modulo the $q_j$, and at $U$, $V$, $W$, by the product formula, as $U$, $V\equiv QU$ and $W$ are squares modulo $r_a$. The coordinates are: $[A]$ has $\nu=e=0$; $[X]$ has $\nu=(1,\dots,1)=\mathbf1$ and $e=0$; $[r_a]$ has $\nu=\varepsilon_a$, the indicator of the three primes above $r_a$, and $e=\mathbf1$; and $c\in\Pi_{\mathcal R}$ with valuation vector $y\in \mathsf W^2$ has $e=My$. Let $c\in\mathrm{Sel}_D(d^2A)$, and write $c=c_0[A]^\alpha[X]^\beta[r_a]^\gamma$ with $c_0\in\Pi_{\mathcal R}$ of valuation vector $y$. Then $e(c)=My+\gamma\mathbf1$ and $\nu(c)=y+\beta\mathbf1+\gamma\varepsilon_a$, and the conditions are $e(c)=0$ at the two primes where $d$ is a square and $e(c)=\nu(c)$ at the four others. Let $\mathsf P$ be the space of vectors of $\FF_2^6$ supported on these four positions with even weight, of dimension three, and for $t\in\mathsf P$ let $h(t)$ be the common parity of its weights on the two orbits and $t^0=t+h(t)\mathbf1\in \mathsf W^2$. Then $w=e(c)$ lies in $\mathsf P$ with $h(w)=\gamma$, as $My\in \mathsf W^2$, so $y=M^{-1}w^0$, and the remaining condition is that $M^{-1}w^0+h(w)\varepsilon_a+w$ is constant on the four positions, which determines $\beta$; that is, that $w$ lies in the radical of the symmetric form \[ S(w,t)=(M^{-1}w^0)\cdot t^0+h(w)h(t)+w\cdot t \] on $\mathsf P$, as $\mathbf1\cdot M^{-1}w^0=0$ and $\varepsilon_a\cdot t=h(t)$. So $\mathrm{Sel}_D(d^2A)$ has dimension one more than the radical of $S$, $[A]$ giving the one. The map $y\mapsto(M^{-1}y)\cdot y$ is linear, as $M$ is self-adjoint, and invariant under $\rho$, and $\rho-1$ is invertible on $\mathsf W^2$; so it vanishes, and $S(t,t)=h(t)$. The vectors $t\in\mathsf P$ with $h(t)=0$ are spanned by $(\delta_1,0)$ and $(0,\delta_2)$, the indicators of the positions, and \[ S\bigl((\delta_1,0),(0,\delta_2)\bigr)=M^{-1}(\delta_1,0)\cdot(0,\delta_2)=(T\delta_1)\cdot\delta_2=1. \] So $S$ is nondegenerate on that plane, and on its orthogonal in $\mathsf P$, a line on which $h$ and $S(t,t)$ are $1$; so $S$ is nondegenerate, and $\mathrm{Sel}_D(d^2A)=\{1,[A]\}$. As $\sigma$ fixes $A$, the same holds for $\sigma(d)$ and $\sigma^2(d)$. \emph{Torsion, ranks and characters.} The proof of \cite[Lemma~2.7(b)]{RealQuadratic} at $U$ and $V$, with $M=L$, which is unramified over $F$ there, gives $E_A(L)_\tors=\{O,T\}$, which is \ref{re:ii}. So the point with abscissa $X$ has infinite order, and by \eqref{eq:rankbound} $E_A$ has rank one over $F$ and $D$ and its three twists by $d$, $\sigma(d)$, $\sigma^2(d)$ have rank zero over $D$. The proof of \cite[Lemma~2.9]{RealQuadratic} applies over $D$, with $d$ and $\sigma(d)$ in place of the $D_j$, as $L=D(\sqrt d,\sqrt{\sigma(d)})$ has degree four over $D$; so the rank of $E_A$ over $L$ is one, which is \ref{re:i}. The proof of \ref{re:iii} in \cref{thm:cyclic} applies, as the odd primes at which $A$ has odd valuation are $U$, $V$ and the $q_j$. \end{proof} \subsection*{The field of discriminant \texorpdfstring{$163^2$}{163\texttwosuperior}} Let $k_0$ be the cyclic cubic field of conductor $163$; we find that it is $\Q(\alpha)$ with $\alpha^3-\alpha^2-54\alpha+169=0$. Let $K_4=\Q(\theta)$, $\theta^4-\theta^3-7\theta^2+2\theta+9=0$. We find that $K_4$ is totally real, with group $A_4$ and discriminant $163^2$, that the cubic subfield of its Galois closure $K$ is $k_0$, and that $2$ has primes of residue degrees $1$ and $3$ in $K_4$. So $K/\Q$ is ramified only at $163$, where its inertia groups are cyclic and map onto $\Gal(k_0/\Q)$, so have order three; hence $K/k_0$ is unramified. The decomposition groups above $2$ have orbits of lengths $1$ and $3$ on the four cosets of a subgroup of order three, so they have order three and map onto $\Gal(k_0/\Q)$; so $2$ is inert in $k_0$, and $\lambda$ is inert in $k_0F$, as $2$ is totally ramified in $F$. We use the notation of this section with $C=k_0$ and $D=k_0F$. As $K/k_0$ is unramified, the classes in $(k_0F)^\times/(k_0F)^{\times2}$ whose square roots generate $L$ over $k_0F$ have square norm to $F$ and even valuation at every prime, and they are squares above $\lambda$, which is inert in $k_0F$ and unramified in $L$, so that its decomposition groups in $\Gal(L/F)$ have order three; so they lie in $\cS_{k_0}$. They are also squares above every auxiliary prime split in $L$ and, by \cref{lem:A4square}, above every prime value with Frobenius a $3$-cycle, so that for every coefficient built from such primes as in \cref{sec:cyclic} they lie in $\mathrm{Sel}_{k_0F}(A)$. In \cref{thm:A4coef} the auxiliary primes need not split in $L$, and their conditions remove these classes from $\mathrm{Sel}_{k_0F}(A)$. \begin{lemma}\label{lem:classno} Let $k$ be a totally real field of degree $n$, unramified at $2$, such that $T=kF$ has exactly eight roots of unity, and let $M=k(\sqrt2)$, $N=k(i)$ and $P=k(\sqrt{-2})$. Then $h_T=h_Mh_Nh_P/h_k^2$. \end{lemma} \begin{proof} The extension $T/k$ has group $(\Z/2\Z)^2$, with the three quadratic subextensions $M$, $N$, $P$. Kuroda's formula in Lemmermeyer's form \cite[Theorem~1]{LemmermeyerKuroda} gives $h_T=\tfrac12q\,h_Mh_Nh_P/h_k^2$ with $q=(\cO_T^\times:\cO_M^\times\cO_N^\times\cO_P^\times)$, as the $n$ real places of $k$ ramify in $T$, the units of $k$ have rank $n-1$, and $T$ is not generated over $k$ by square roots of units, $2$ and $-2$ having valuation one at the primes of $k$ above $2$. The numbers of roots of unity are $8$ for $T$, $4$ for $N$ and $2$ for $k$, $M$, $P$, as $\zeta\in N$ or $i\in P$ would give $F\subseteq N$ or $F\subseteq P$, against $[N:\Q]=[P:\Q]<[T:\Q]=4n$; here $k\cap F=\Q$, as every subfield of $F$ other than $\Q$ is ramified at $2$. Every unit $e$ of $N$ is a root of unity times a unit of $k$. Indeed $e/\bar e$ is a root of unity, as all its conjugates have absolute value one; if it is $\pm1$, then $e$ or $e/i$ is real, and if it is $\pm i$, then $e/(1+i)$ or $e/(i(1+i))$ is real, as $(1+i)/(1-i)=i$; but $1+i$ has valuation one at the primes of $N$ above $2$, where $N/k$ has ramification index two, and real elements have even valuation there. In the same way, with $\sqrt{-2}$ and $1+\zeta$ in place of $1+i$, as $\sqrt{-2}/\overline{\sqrt{-2}}=-1$ and $(1+\zeta)/(1+\zeta^{-1})=\zeta$, every unit of $P$ is $\pm1$ times a unit of $k$ and every unit of $T$ is a root of unity times a unit of $M$. So $\cO_T^\times=\langle\zeta\rangle\cO_M^\times$ and $\cO_M^\times\cO_N^\times\cO_P^\times=\langle i\rangle\cO_M^\times$, and $q=2$, as $\zeta^2=i$ and no odd power of $\zeta$ is real. \end{proof} The fields $k_0$ and $K_4$ satisfy the hypotheses of \cref{lem:classno}. They are unramified at $2$. A root of unity of order $16$ in $k_0F$ or $K_4F$ would give a quadratic extension of $F$ in it, but $[k_0F:F]=3$, and the fields between $F$ and $K_4F$ correspond to the subgroups of $A_4$ that contain a subgroup of order three, which are that subgroup and $A_4$. A root of unity of odd prime order $r$ would make $r$ ramified, so $r=163$, but $[\Q(\zeta_{163}):\Q]=162>16$. We find, from the ideals of norm below the Minkowski bound, that $k_0$, $k_0(\sqrt2)$, $k_0(i)$, $k_0(\sqrt{-2})$ have class numbers $4$, $4$, $208$, $48$, and $K_4$, $K_4(\sqrt2)$, $K_4(i)$, $K_4(\sqrt{-2})$ have class numbers $1$, $1$, $4$, $24$. By \cref{lem:classno}, $k_0F$ and $K_4F$ have class numbers $2496$ and $96$. We find ideals of $k_0F$ and $K_4F$ that generate subgroups isomorphic to $\Z/156\Z\times\Z/4\Z\times(\Z/2\Z)^2$ and $\Z/24\Z\times(\Z/2\Z)^2$, which are therefore the class groups. Indeed, for each prime $r$ dividing the class number, characters of order $r$ at residue fields have full rank on the generators of the principal powers of those of these ideals whose order is divisible by $r$, together with as many units as the dimension of the units modulo $r$-th powers; so these units span the units modulo $r$-th powers, and no relation of order $r$ holds among the ideals. \begin{theorem}\label{thm:A4least} Let $K$ be the Galois closure of $K_4$, $L=KF$, and \[ u=-31\zeta^3-35\zeta^2-61\zeta-98,\qquad v=-65\zeta^2-97\zeta+3,\qquad w=-33\zeta^3-2\zeta^2-32\zeta-68. \] Then $u-v=\lambda w$, and $A=-4uv(u-v)^2$ satisfies \ref{re:i}, \ref{re:ii} and \ref{re:iii}. \end{theorem} \begin{proof} We have $u\equiv u_0$ and $v\equiv v_0\pmod{32}$, and we find that the norms of $u$, $v$, $w$ are the primes $164699921$, $113795057$, $45433393$, and that $\mathrm{Sel}_F(A)$, $\mathrm{Sel}_{k_0F}(A)$ and $\mathrm{Sel}_{K_4F}(A)$ have dimension two. For these, over each field the classes with even valuation at every odd prime not above $uvw$ are given by the class group and the units, and the local images are $\{1,[A]\}$ above $u$ and $v$, $\{1,[X]\}$ above $w$ and those of \cref{lem:inert} and of $W_0$ above $\lambda$, at the primes of degree three and one over $\lambda$. As $L/F$ is unramified outside $163$, the proof of \cite[Lemma~2.7(b)]{RealQuadratic} at $u$ and $v$ gives \ref{re:ii}, as in the proof of \cref{thm:cyclic}. So $\delta_F$ maps the torsion of $E_A(F)$ onto $\{1,[A]\}$, and the point with abscissa $X$ has infinite order. By \eqref{eq:rankbound}, $E_A$ has rank at most one over $F$, $k_0F$ and $K_4F$, so the three ranks are one, and the rank over $L$ is one by \cref{lem:A4ranks}. With $Q=1$, the proof of \cref{thm:cyclic} gives \ref{re:iii}, as $u\equiv u_0$ and $v\equiv v_0\pmod{32}$. \end{proof} \section{Fields with group \texorpdfstring{$S_4$}{S4}}\label{sec:S4} This section proves \cref{thm:A4} for group $S_4$: over the cubic resolvent field it controls three descents, of $E_A$, $E_{b^2A}$ and $E_{(db)^2A}$, with $b$ as below, whose Selmer groups fixed primes bring down to dimensions $2$, $1$, $1$ by realizing a Lagrangian subspace that meets all three in $0$. The plan is this. By \cref{lem:S4ranks}, the rank over $KF$, or over $KB$ when $\sqrt2\in K$, is read off five descents, two over the base field and three over the cubic resolvent field. We start from a coefficient of \cref{sec:S3,sec:sqrt3sqrt2} for the Galois closure of the cubic resolvent, which settles the two descents over the base, and add fixed primes by \cref{lem:S4step}. The first steps of the proof of \cref{thm:S4coef} cut the classes from the base field in the two twisted descents over the cubic resolvent field down to $[A]$. Modulo the classes from the base, the three descents over the cubic resolvent field become Lagrangian subspaces of one symplectic space (\cref{lem:S4lagr}), and a further step moves them apart until some Lagrangian subspace meets all three in $0$ (\cref{lem:S4compl}). New primes with odd Frobenius realize it as the image of the primitive classes; the symmetric matrix of residue symbols that this creates is canceled by the primitive classes of \cref{lem:S4lift}, whose residue symbol at the prime of degree two above their prime is fixed by the obstruction to lifting to $Q_8\rtimes S_3$. Let $K$ be a totally real Galois extension of $\Q$ with group $S_4$, $\Q(\sqrt d)$ its quadratic subfield, with $d>1$ squarefree, and $K_3\subset K$ the fixed field of the normal Klein four subgroup $V_4$, which is Galois over $\Q$ with group $S_3$ and quadratic subfield $\Q(\sqrt d)$. Put $P=F$ if $d\ne2$ and $P=B$ if $d=2$. The real subfields of $P$ are $\Q$ and $\Q(\sqrt2)$, or $\Q$ and $\Q(\sqrt{17})$, so $K\cap P=\Q$, and we identify $\Gal(KP/P)$ with $S_4$ acting on the roots $r_1,\dots,r_4$ of a defining polynomial of a quartic subfield of $K$. Let $J$ be the stabilizer of the partition $\{\{1,2\},\{3,4\}\}$, a dihedral group of order $8$, let $H=(KP)^J$, a cubic extension of $P$ with Galois closure $K_3P$, and let $b=(r_1+r_2-r_3-r_4)^2$. The three elements $r_a+r_b-r_c-r_d$ attached to the three partitions are permuted up to sign by $S_4$, transitively; the sum of two of them is $\pm2(r_j-r_k)\ne0$, so none vanishes; and their product is fixed by every transposition, so it lies in $\Q^\times$. Hence $b\in H^\times$, its stabilizer is $J$, and $\Nm_{H/P}(b)$ is a square in $P$. We write $D=[d]$; as $\sqrt2\in F$, this is the class of the odd part of $d$ when $P=F$. An element of $S_4$ acts on the three partitions through $S_4/V_4\cong S_3$, with the same sign. So for a prime $\mathfrak p$ of $P$ unramified in $KP$, $\mathfrak p$ splits in $H$ if its Frobenius lies in $V_4$, has one prime of degree one and one of degree two in $H$ if its Frobenius is odd, and is inert if its Frobenius is a $3$-cycle; and an element of $S_4$ is a $3$-cycle if and only if its image in $S_3$ is. \begin{lemma}\label{lem:S4ranks} For $A\in P^\times$, the $\Z[i]$-rank of $E_A(KP)$ is $r_P+r'_P+2(r_H-r_P)+3(r^b_H+r^{db}_H)$, where $r_P$ and $r_H$ are the ranks of $E_A$ over $P$ and $H$, $r'_P$ that of $E_{d^2A}$ over $P$, and $r^t_H$ that of $E_{t^2A}$ over $H$. \end{lemma} \begin{proof} As in the proof of \cref{lem:S3ranks}, $V=E_A(KP)\otimes_{\Z[i]}\C$ is a representation of $S_4$ whose invariants under a subgroup $S$ are $E_A((KP)^S)\otimes_{\Z[i]}\C$. Let $m_1$, $m_\epsilon$, $m_2$, $m_3$, $m'_3$ be the multiplicities in $V$ of the trivial and the sign character $\epsilon$, of the representation $\rho_2$ of degree two through $S_3$, of the representation $\rho_3$ of $S_4$ on the vectors of $\C^4$ with sum zero, and of $\rho_3\otimes\epsilon$. The invariants of $S_4$ and $A_4$ have dimensions $m_1$ and $m_1+m_\epsilon$, which are $r_P$ and $r_P+r'_P$ by the proof of \cite[Lemma~2.9]{RealQuadratic}, which holds over $B$ as over $F$. The permutation representation on the three partitions is $1+\rho_2$, so by Frobenius reciprocity the invariants of $J$ have dimension $m_1+m_2=r_H$. For $t\in\{b,db\}$ let $\kappa_t$ be the character of $J$ on $\sqrt t$. Through $(x,y)\mapsto(x/t,y/(t\sqrt t))$, $E_{t^2A}(H)\otimes\C$ is the part of $V$ on which $J$ acts by $\kappa_t$, of dimension $\langle\operatorname{Ind}_J\kappa_t,V\rangle$. The vector $e_1+e_2-e_3-e_4$ of $\rho_3$ spans a line on which $J$ acts by $\kappa_b$, so $\operatorname{Ind}_J\kappa_b=\rho_3$, both having degree three, and $\operatorname{Ind}_J\kappa_{db}=\rho_3\otimes\epsilon$. So $r^b_H=m_3$, $r^{db}_H=m'_3$, and the rank $m_1+m_\epsilon+2m_2+3m_3+3m'_3$ is as stated. \end{proof} So \ref{re:i} over $KP$ asks for ranks $1,0,1,0,0$ in the five descents of the lemma, which we call the \emph{five descents} of $A$; their Selmer groups are $\mathrm{Sel}_P(A)$, $\mathrm{Sel}_P(d^2A)$, $\mathrm{Sel}_H(A)$, $\mathrm{Sel}_H(b^2A)$ and $\mathrm{Sel}_H(d^2b^2A)$, and the last three contain $[A]$, the image of $T$. \begin{lemma}\label{lem:S4local} Let $w$ be a prime of $H$ above an odd prime $\mathfrak p$ of $P$ unramified in $KP$, $A\in P^\times$ and $t\in\{b,db\}$. \begin{enumerate} \item If the Frobenius of $\mathfrak p$ is a $3$-cycle, $w$ is the only prime above $\mathfrak p$, $b$ and $d$ are squares in $H_w$, and $W_w(t^2A)=W_w(A)$. \item If $A$ has odd valuation at $w$, then $W_w(t^2A)=W_w(A)=\{1,[A]\}$. \item If $A=a^2$ in $H_w$ with $a$ of odd valuation, then $W_w(A)=\{1,[a]\}$ and $W_w(t^2A)=\{1,[ta]\}$. \item If $A$ is a unit at $w$, then $W_w(A)$ and $W_w(t^2A)$ are the group of unit classes. \end{enumerate} \end{lemma} \begin{proof} As $\mathfrak p$ is unramified in $KP$, $t$ has even valuation at $w$. (a) The Frobenius permutes the partitions cyclically, so $w$ has degree three. As $3$-cycles are even, $d$ is a square at $\mathfrak p$; and the norm from the unramified extension $H_w$ of odd degree induces an isomorphism on unit square classes, under which $b$ maps to $\Nm_{H/P}(b)$, a square. So $E_{t^2A}\cong E_A$ over $H_w$. (b) and (d) follow from \cref{lem:local}(a), as $t^2A$ is $A$ times a unit times a fourth power. (c) The point $(ta,0)$ of $E_{t^2A}$ has image $[ta]$, of odd valuation, and the image has order two. \end{proof} \subsection*{Square classes} Fix a finite set $\mathcal T_0$ of primes of $P$ of degree one, unramified in $KP$, such that the primes of $H$ above $\mathcal T_0$ and above $2$ generate the class group of $H$ modulo squares. From now on $\mathcal T$ denotes a finite set of primes of $P$ containing $\mathcal T_0$, the dyadic primes and the primes ramified in $KP$. For $M\in\{P,H\}$ let $M(\mathcal T)$ be the group of classes in $M^\times/M^{\times2}$ with even valuation at every prime of $M$ not above $\mathcal T$; we call a class $c$ of $H$ primitive if $\Nm_{H/P}c$ is trivial, as in \cref{sec:intro}. Let $Y_{\mathcal T}=\bigoplus_wH_w^\times/H_w^{\times2}$ over the primes $w$ of $H$ above $\mathcal T$, with the form $\langle x,y\rangle=\sum_w(x_w,y_w)_w$, written additively; as $(x,x)_w=(x,-1)_w$ and $i\in P$, it is alternating, and it is nondegenerate \cite[Chapter~III, Theorem~4.4(c)]{Milne}. A subspace equal to its orthogonal is \emph{Lagrangian}, and by \cref{lem:local}(b) the product $L_t$ over $w\mid \mathcal T$ of the local images $W_w(t^2A)$ is Lagrangian, for $t\in\{1,b,db\}$. \begin{lemma}\label{lem:S4lagr} \begin{enumerate} \item Localization maps $H(\mathcal T)$ injectively onto a Lagrangian subspace $\Gamma_{\mathcal T}$ of $Y_{\mathcal T}$, and $P(\mathcal T)$ injectively into $\bigoplus_{\mathfrak p\in \mathcal T}P_{\mathfrak p}^\times/P_{\mathfrak p}^{\times2}$. \item $Y_{\mathcal T}=Y^0_{\mathcal T}\oplus Y'_{\mathcal T}$ orthogonally, where $Y^0_{\mathcal T}$ is the image of $\bigoplus_{\mathfrak p\in \mathcal T}P_{\mathfrak p}^\times/P_{\mathfrak p}^{\times2}$ under restriction and $Y'_{\mathcal T}$ the kernel of the local norms; and $\Gamma_{\mathcal T}=G_{\mathcal T}\oplus R_{\mathcal T}$, where $G_{\mathcal T}$, the image of $P(\mathcal T)$, is Lagrangian in $Y^0_{\mathcal T}$, and $R_{\mathcal T}$, the image of the primitive classes, is Lagrangian in $Y'_{\mathcal T}$. \item For a Lagrangian $L$ of $Y_{\mathcal T}$ let $K_L$ be the image of $L\cap(G_{\mathcal T}\oplus Y'_{\mathcal T})$ under the projection to $Y'_{\mathcal T}$. It is Lagrangian in $Y'_{\mathcal T}$, and for every Lagrangian $R'$ of $Y'_{\mathcal T}$, $\dim((G_{\mathcal T}\oplus R')\cap L)=\dim(G_{\mathcal T}\cap L)+\dim(R'\cap K_L)$. \end{enumerate} \end{lemma} \begin{proof} (a) A class of $H(\mathcal T)$ that is a square at every prime above $\mathcal T$ defines a quadratic extension of $H$ unramified everywhere and split above $\mathcal T$, which is trivial by the choice of $\mathcal T_0$; the same holds over $P$, which has class number one, or two with non-principal dyadic primes, by \ref{B:class}. The image is isotropic by the product formula, $H$ having no real place. As the class group of $H$ modulo the primes above $\mathcal T$ has odd order, $H(\mathcal T)$ is the group of $\mathcal T$-units modulo squares, of dimension $r_2(H)+n_{\mathcal T}$, where $n_{\mathcal T}$ is the number of primes of $H$ above $\mathcal T$; and $\dim Y_{\mathcal T}=2n_{\mathcal T}+[H:\Q]$ \cite[Chapter~VII, Proposition~6.8]{Milne}. (b) As $\Nm\circ\mathrm{res}$ is the cube and some prime above each $\mathfrak p$ has odd degree, restriction is injective, and $c\mapsto(\mathrm{res}\Nm c,\,c\cdot\mathrm{res}\Nm c)$ splits both $Y_{\mathcal T}$ and $H(\mathcal T)$; the summands are orthogonal as $\sum_{w\mid\mathfrak p}(\mathrm{res}\,a,y)_w=(a,\Nm y)_{\mathfrak p}$. Two isotropic subspaces of the two summands whose sum is Lagrangian are each Lagrangian. (c) As $G_{\mathcal T}$ is Lagrangian in $Y^0_{\mathcal T}$, its orthogonal is $G_{\mathcal T}\oplus Y'_{\mathcal T}$, and $K_L$ is the symplectic reduction of $L$. Reduction modulo $G_{\mathcal T}$ maps $(G_{\mathcal T}\oplus R')\cap L$ onto $R'\cap K_L$, with kernel $G_{\mathcal T}\cap L$. \end{proof} For a coefficient $A$ whose odd prime factors lie above $\mathcal T$, the classes of the three Selmer groups over $H$ have even valuation outside $\mathcal T$, by \cref{lem:S4local}(d), so they are $\Gamma_{\mathcal T}\cap L_t$; their subgroups $B_t=\mathrm{Sel}_H(t^2A)\cap\mathrm{res}(P^\times/P^{\times2})$ for $t\in\{b,db\}$ correspond to $G_{\mathcal T}\cap L_t$, and $G_{\mathcal T}\cap L_1$ is the restriction of $\mathrm{Sel}_P(A)$ by \cref{lem:local}(c). \subsection*{Admissible coefficients} We call $A=-4uv(u-v)^2$ \emph{admissible} if $u$, $v$ satisfy the conditions above $2$ of \cref{thm:S3} or \cref{thm:base}, that is $u\equiv u_0$, $v\equiv v_0\pmod{32}$ if $P=F$, and $u/u_n^*$, $v/v_n^*$, $(u-v)/(u_n^*-v_n^*)\equiv1\pmod{\lambda_B^{23}}$ for some $n\in\{1,2\}$ if $P=B$; if the odd primes dividing $uv(u-v)$ are prime elements of degree one, to exponent one, unramified in $KP$ and outside $\mathcal T_0$; if $\mathrm{Sel}_P(A)=\{1,[A],[X],[AX]\}$ and $\mathrm{Sel}_P(d^2A)=\{1,[A]\}$, with $X=2iu(u-v)$; and if $v$ and $u-v$ have odd prime factors $p$ and $q$ whose Frobenius in $KP/P$ is a $3$-cycle. Let $\mathcal T_A$ be the least $\mathcal T$ containing the primes that divide $uv(u-v)$. Since $-1$, $2i$ and $-4$ are squares, $[A]=[uv]$, $[X]=[u(u-v)]$ and $[AX]=[v(u-v)]$. For a prime $z\notin \mathcal T$ of degree one and a class $h$ of $P$ with even valuation at $z$, let $\ell_z(h)\in\FF_2$ be the residue symbol at $z$ of a representative of $h$ that is a unit there, and $Q(h)$ the valuation of $h$ at $q$ modulo $2$. \needspace{4\baselineskip} \begin{lemma}\label{lem:S4step} Let $A$ be admissible and $\mathcal T=\mathcal T_A$. \begin{enumerate} \item Let $S$ be a set of an even number of prime elements of degree one outside $\mathcal T$, unramified in $KP$, such that $\sigma=\prod_{z\in S}z$ is a fourth power at every prime of $\mathcal T$, $\ell_z(z')=0$ for $z\ne z'$, and $\ell_z=\ell$ on $P(\mathcal T)$ for every $z\in S$, with $\ell([A])=\ell([X])=0$. Then there are prime elements $U$, $V$, $W$ with Frobenius $3$-cycles such that $u'=\sigma uU$ and $v'=vV$ define an admissible $A'$ with $u'-v'=(u-v)W$, for which the Selmer group of each of the five descents is isomorphic to the group of classes $y\in M(\mathcal T\cup S)$, $M$ the field of the descent, that satisfy the local conditions of that descent for $A$ above $\mathcal T$, and at each prime $w$ of $M$ above $z\in S$ lie in $\{1,[z\eta_z]\}$ if $w$ has odd degree and in $\{1,[z]\}$ if not, where $\eta_z$ is a non-square unit of $P_z$. \item Let $s$, $t$ be prime elements of degree one outside $\mathcal T$, unramified in $KP$, the Frobenius of $s$ in $V_4\setminus\{1\}$ and that of $t$ a $3$-cycle, such that $st$ is a fourth power at every prime of $\mathcal T$ and $\ell_s=\ell_t=\ell$ on $P(\mathcal T)$ with $\ell([A])=\ell([X])=\ell(D)=0$. Then there are prime elements $U$, $V$, $W$ with Frobenius $3$-cycles such that $u'=uU$ and $v'=vV$ define an admissible $A'$ with $u'-v'=st(u-v)W$, and for $t'\in\{b,db\}$, $B_{t'}(A')$ is isomorphic to $\{h\in B_{t'}(A):\ell(h)=Q(h)\}$ by a map sending $[A]$ to $[A']$. \end{enumerate} In both cases $U$, $V$, $W$ can be taken outside any finite set, $p$ and $q$ serve again for $A'$, and in (a) $\mathrm{Sel}_P$ and $B_{t'}$ are carried by $h\mapsto h\sigma^{\ell(h)}(\sigma U)^{v_p(h)+v_q(h)}V^{v_p(h)}W^{v_q(h)}$, the valuations taken modulo $2$. \end{lemma} \begin{proof} \emph{The triple.} We apply \cref{thm:primes} with $N=KP$, the class of $3$-cycles, $\psi_3=(\sigma u\psi_1-v\psi_2)/(u-v)$ in (a) and $(u\psi_1-v\psi_2)/(st(u-v))$ in (b), and these residues: at each prime of $\mathcal T$ other than $p$ and $q$, $(\sigma U,V,W)$ in (a) and $(U,V,stW)$ in (b) are close to $(1,1,1)$, which residues of $U$ and $V$ modulo a high power of the prime fix; at $p$, $U$ and $V$ are non-squares, and then $[W]=[U]$ there, as $W\equiv\sigma U$ in (a) and $stW\equiv U$ in (b), and $\sigma$ and $st$ are fourth powers there; at $q$, $U$ and $V$ are non-squares with $\sigma U\equiv V$ in (a) and $U\equiv V$ in (b), as $u\equiv v$, and $W$ is a square, which the residues of $U$ and $V$ modulo $q^2$ fix; in (a), at $z\in S$, $U$ is a non-square and $V$ a square, so that $W\equiv-vV/(u-v)$ is a square, as $\ell([AX])=0$; in (b), at $s$ and $t$, $U$ and $V$ are squares, possible as $\ell([A])=0$, and $W$ is a non-square, which the residues of $U$ and $V$ modulo $s^2$ and $t^2$ fix. As the forms are squares at the primes that ramify in $P(\sqrt d)$, their Artin symbols in $G^\ab=\Gal(P(\sqrt d)/P)$ are trivial, so $\Theta=1$ in \cref{thm:primes}, and $\beta_p>0$ for every $p$ by these unit witnesses, as in the proof of \cref{thm:cyclic}. The residues above $2$ are those of $A$, and $p$, $q$ divide $v'$ and $u'-v'$ once. \emph{The elimination.} Fix one of the five descents, with field $M$; for $y\in M^\times$ let $n(y)$ be $y$ or $\Nm_{H/P}y$. As $U$, $V$, $W$ are inert in $H$ (\cref{lem:S4local}(a)), every class with even valuation outside $\mathcal T\cup S$ (or $\mathcal T\cup\{s,t\}$) and $U$, $V$, $W$ is uniquely $y=y_0\tilde U^{e_1}V^{e_2}\tilde W^{e_3}$, with $(\tilde U,\tilde W)=(\sigma U,W)$ in (a) and $(U,stW)$ in (b) and $y_0$ supported there. Let $P_0$, $Q_0$ be the valuations of $n(y_0)$ at $p$, $q$ and, in (b), $R_0$, $S_0$ those at $s$, $t$, modulo $2$. Above the primes of $\mathcal T$ other than $p$, $q$, $A'/A$ is a fourth power and the new prime values are squares, so the condition on $y$ is that of $A$ on $y_0$. By \cref{lem:S4local}(a), the conditions at $U$, $V$ and $W$ are the vanishing of the Hilbert symbols of $n(y)$ with $A'$, $A'$ and $X'$ there. By the product formula and the residues, the contributions of $y_0$ to these three equations are $P_0+Q_0$, $P_0+Q_0$ and $P_0$, plus, in (a), $\sum_zv_z(n(y_0))$ in the first, and, in (b), $R_0+S_0$ in the third; and, with $x$ the residue symbol of $V$ at $U$, which equals that of $U$ at $V$ by reciprocity, those of $\tilde U$, $V$, $\tilde W$ form the matrix \[ \begin{pmatrix}1+x&x&x\\x&1+x&1+x\\x&1+x&x\end{pmatrix}, \] as in the proof of \cref{lem:three}: in (a) the symbols of $\sigma$ at $U$ cancel those added to the symbol of $U$ at $U$ by $\sigma$ in $u'$, and in (b) those of $st$ cancel in the same way. The determinant is $1$ for $x=0$ and $x=1$. At $p$, $A'/A$ is a square, the line $\{1,[A']\}$ is that of $A$, and the new columns contribute $f_w(e_1+e_2+e_3)$ at a prime $w$ of degree $f_w$. At $q$, $[X']=[X\eta_q]$ with $\eta_q$ a non-square unit, so at the prime $w$ above $q$, of degree three by \cref{lem:S4local}(a), the condition of $A'$ is that of $A$ plus $v_w(y_0)+e_1+e_2$. In (a), at a prime above $z\in S$, $\tilde U$ lies in the local image and $V$, $\tilde W$ are squares, so the condition is on $y_0$ alone, and it is as stated, by \cref{lem:S4local}(b). Write $n(y_0)=h\prod_zz^{R_z}$ with $h\in P(\mathcal T)$, as $z$ is principal. The local norm at $z$ of a class satisfying these conditions lies in $\{1,[z\eta_z]\}$, so $R_z\equiv\ell(h)$, and $\sum_zR_z\equiv0$, as $\#S$ is even. So the moving equations have the unique solution $(e_1,e_2,e_3)=(P_0+Q_0,P_0,Q_0)$, the contributions at $p$ and $q$ vanish, and $y_0\mapsto y_0\tilde U^{P_0+Q_0}V^{P_0}\tilde W^{Q_0}$ is the isomorphism of (a). Over $P$, and for classes from $P$ over $H$, $y_0=h\sigma^{\ell(h)}$ with $h$ satisfying the conditions of $A$ above $\mathcal T$; as $\ell$ vanishes on $\mathrm{Sel}_P(A)$ and $\mathrm{Sel}_P(d^2A)$, these are carried to those of $A'$, which is therefore admissible. In (b), let $k=\ell_s(t)=\ell_t(s)$ and $y_0=s^{R_0}t^{S_0}h$ with $h\in P(\mathcal T)$. At $s$ and $t$, $[X']$ is $[s\eta_s^{k+1}]$ and $[t\eta_t^{k+1}]$, as $\ell([X])=0$ and $W$ is a non-square; $U$, $V$ are squares there, and $\tilde W=stW$ lies in $\{1,[X']\}$. Over $P$ the conditions at $s$ and $t$ give $R_0(k+1)+kS_0+\ell(h)=0=S_0(k+1)+kR_0+\ell(h)$, so $R_0=S_0=\ell(h)$, which is $0$ for $h$ satisfying the conditions of $A$ above $\mathcal T$, as $\ell$ vanishes on the Selmer groups of $A$; so they are carried to those of $A'$ by $h\mapsto hU^{v_p(h)+v_q(h)}V^{v_p(h)}(stW)^{v_q(h)}$, the valuations taken modulo $2$, and $A'$ is admissible. Now let $y=\mathrm{res}(y_P)$ be a class from $P$ in $\mathrm{Sel}_H(t'^2A')$. At the three primes $w$ of degree one above $s$ the local image is $\{1,[\tau_ws\eta_s^{k+1}]\}$, with $\tau_w$ the class of $t'$, a non-square unit at two of them and a square at the third (\cref{lem:S4local}(c)). Indeed the Frobenius of $s$, a product of two disjoint transpositions, fixes the three partitions, so $H$ has three primes of degree one above $s$, and it fixes $r_a+r_b-r_c-r_d$ for the partition formed by its two transpositions and negates it for the other two. At the prime $w$ attached to a partition, $b$ is the square of the element attached to the same partition, which lies in $H_w=P_s$ exactly when the Frobenius fixes it; so $b$ is a square at exactly one of the three primes, and so is $db$, as $d$ is a square at $s$, $V_4$ lying in $A_4$. At each $w$, $\tilde W$ contributes $e_3$ times the residue symbol of $\tau_w$. The conditions read $R_0(\tau_w+k+1)+kS_0+\ell(h)+\tau_we_3=0$; at $t$, where $t'$ is a square, $S_0(k+1)+kR_0+\ell(h)=0$. So $R_0=S_0=\ell(h)=e_3$. The moving equations give $e_3=Q_0+R_0+S_0=Q(h)$, so $\ell(h)=Q(h)$; then the contributions at $p$ and $q$ vanish, and $h$ satisfies the conditions of $t'^2A$ above $\mathcal T$. Conversely every $h\in B_{t'}(A)$ with $\ell(h)=Q(h)$ gives the class $(st)^{\ell(h)}h\,U^{e_1}V^{e_2}\tilde W^{e_3}$; for $h=[uv]$ it is $[u'v']=[A']$. \end{proof} The proof of \cref{lem:S4step}(b) is where the primes dividing $u-v$ differ from those dividing $u$: at a prime of degree one above $s$ the twisted curves have the line $[\tau_wX']$, and the base classes they admit are cut by $\ell+Q$. \subsection*{Two lemmas on square classes} \begin{lemma}\label{lem:S4lift} Let $\mathcal T$ be as above, and $t\notin \mathcal T$ a prime of $P$ of degree one, unramified in $KP$ with odd Frobenius, such that every primitive class of $H(\mathcal T)$ is a square at the prime $w_2$ of $H$ of degree two above $t$. Then there is a primitive class $y$ of $H$ that is a square above every prime of $\mathcal T$, has odd valuation at $w_2$ and even valuation at every other prime. For every such $y$ and every uniformizer $\varpi$ of $P_t$, $y/\varpi$ is a non-square unit at $w_2$, up to squares. \end{lemma} \begin{proof} Let $\mathcal T'=\mathcal T\cup\{w_2\}$, as a set of primes of $H$; \cref{lem:S4lagr}(a) holds for $H(\mathcal T')$, with image $\Gamma'$ in $Y_{\mathcal T}\oplus Y_{w_2}$. The classes of $H(\mathcal T')$ with even valuation at $w_2$ are those of $H(\mathcal T)$, which are squares at $w_2$, as base units are squares at a prime of degree two and the primitive ones by hypothesis. If no class had odd valuation at $w_2$, the class $(0,[\eta])$, $\eta$ a non-square unit, would be orthogonal to $\Gamma'$, so in $\Gamma'$, a contradiction. Let $x$ be a class with odd valuation at $w_2$. Its component $x_{w_2}$ is orthogonal to itself, so $(0,x_{w_2})$ is orthogonal to $\Gamma'$ and lies in it: it is the image of a class $y$, a square above $\mathcal T$. Its norm has even valuation everywhere and is a square above $\mathcal T$, so it is a square, by \cref{lem:S4lagr}(a). Let $y_1$, $y_2$, $y_3$ be the images of $y$ in $K_3P$ under the three embeddings of $H$, indexed by the three partitions, and choose square roots with $\sqrt{y_1}\sqrt{y_2}\sqrt{y_3}\in P$. Every $g\in\Gal(\bar P/P)$ maps $\sqrt{y_j}$ to $\pm\sqrt{y_{\pi(j)}}$, where $\pi$ is its image in $S_3$, with signs of product $1$; this is a homomorphism $\phi$ to $\mathsf V\rtimes S_3$, where $\mathsf V$ is the group of sign vectors with product $1$. Let $Q_8=\{\pm1,\pm e_1,\pm e_2,\pm e_3\}$ with $e_1e_2=e_3$ and its cyclic permutations, and $\tilde G=Q_8\rtimes S_3$ with $\pi(e_j)=\mathrm{sgn}(\pi)e_{\pi(j)}$; it is a central extension of $\mathsf V\rtimes S_3$ by $\{\pm1\}$, with $\pm e_j$ mapping to the vector with $+1$ exactly at $j$. The obstruction to lifting $\phi$ to $\tilde G$ lies in $H^2(P,\{\pm1\})=\mathrm{Br}(P)[2]$, and its local invariants are the obstructions for the decomposition groups. Above $\mathcal T$ every $y_j$ is a local square, so the local image meets $\mathsf V$ trivially; it is then conjugate into a complement of $\mathsf V$, the image of $1\rtimes S_3$, and lifts. Where $\phi$ is unramified, a lift of the image of a Frobenius gives a lift. The infinite places are complex. So the invariant at $t$ vanishes too \cite[Chapter~VIII, Theorem~4.2]{Milne}. At $t$ the local image is tame, as $t$ is odd, being outside $\mathcal T$, and has degree one, so that its residue characteristic is at least $13$, and is generated by the image $\phi(\tau)$ of inertia and $\phi(\varphi)$ of a Frobenius, with $\varphi\tau\varphi^{-1}=\tau^{\Nm t}$ and $\Nm t\equiv1\pmod4$. Index the partitions so that the image of $\varphi$ in $S_3$ is the transposition fixing $1$, the index of the prime of degree one. Then $\phi(\tau)=w$, the vector $(1,-1,-1)$, and $\phi(\varphi)=(\varepsilon,(2\,3))$, where $\varepsilon_1=1$ if and only if $y$ is a square at the prime of degree one above $t$; as $\Nm y$ is a square, this holds if and only if the unit $y/\varpi$ is a square at $w_2$. In that case $\varepsilon\in\{1,w\}$. A lift of $w$ is $\pm e_1$, of order four, and every lift of $\phi(\varphi)$ conjugates $e_1$ to $-e_1$; so the relation $\tilde\varphi\tilde\tau\tilde\varphi^{-1}=\tilde\tau^{\Nm t}=\tilde\tau$ fails, and the local obstruction at $t$ is nonzero, a contradiction. \end{proof} \begin{lemma}\label{lem:S4compl} \begin{enumerate} \item For every symmetric bilinear form $\beta$ on $\FF_2^n$, $n\ge3$, there is a nondegenerate symmetric form $\gamma$ with $\gamma+\beta$ nondegenerate. \item Let $E$, $K'$, $J'$ be Lagrangian subspaces of a symplectic space over $\FF_2$ with $\dim E-\dim(E\cap K')\ge3$. Then some Lagrangian subspace meets each of them in $0$. \end{enumerate} \end{lemma} \begin{proof} (a) Write $\beta=\beta_0\oplus0$ with $\beta_0$ nondegenerate of rank $m$. If $\beta_0$ is alternating with $m=2k\ge4$, or not alternating with $m\ge2$, realize it as $\Tr(x_1y_2+x_2y_1)$ on $\FF_{2^k}^2$, or $\Tr(xy)$ on $\FF_{2^m}$, nondegenerate forms of the same type, and take $\gamma_0(x,y)=\beta_0(x,cy)$ with $c\in\FF_{2^k}\setminus\FF_2$ or $\FF_{2^m}\setminus\FF_2$; then $\gamma_0$ and $\gamma_0+\beta_0=\beta_0(x,(c+1)y)$ are nondegenerate, and $\gamma=\gamma_0\oplus1$ works. If $m=0$ take $\gamma$ the identity; if $m=1$, $n-m\ge2$, and on $\beta_0\oplus0$ of dimension two the hyperbolic plane works; if $m=2$ and $\beta_0$ is alternating, on $\beta_0\oplus0$ of dimension three the antidiagonal matrix works, as its sum with $\beta_0\oplus0$ has determinant $1$. (b) Choose a Lagrangian $V$ with $E\oplus V$ the whole space, and identify $E$ with the dual of $V$. The Lagrangians meeting $E$ in $0$ are the graphs of symmetric forms $\gamma$ on $V$. A Lagrangian $L$ projects onto a subspace $U_L$ of $V$ of dimension $\dim E-\dim(E\cap L)$ and defines a symmetric form $\beta_L$ on it, and the graph of $\gamma$ meets $L$ in $0$ if and only if $\gamma|_{U_L}-\beta_L$ is nondegenerate. Extend $\beta_{K'}$ to $V$ and subtract it; we need $\gamma$ nondegenerate on $U=U_{K'}$, with $\dim U\ge3$, and $\gamma-\beta$ nondegenerate on $U'=U_{J'}$ for a form $\beta$ there. A form on $I=U\cap U'$ whose radical has dimension at most $\dim U-\dim I$ extends to a nondegenerate form on $U$, by pairing the radical with new directions. If $\dim I\ge3$, by (a) choose $\gamma$ on $I$ with $\gamma$ and $\gamma-\beta$ nondegenerate; if $\dim I\le2$, choose $\gamma-\beta$ nondegenerate on $I$ and $\gamma\ne0$ if $\dim I=2$, possible as there are four nondegenerate forms on $\FF_2^2$. Extend over $U$ and over $U'$ as above, then to $V$. \end{proof} \subsection*{The coefficient} \begin{theorem}\label{thm:S4coef} There is an admissible $A$ such that $E_A$ has $\Z[i]$-rank one over $P$ and over $KP$ and $E_A(KP)_\tors=\{O,T\}$, and such that $A$ satisfies \ref{re:iii} if $P=F$, and the condition on characters of \cref{prop:base} if $P=B$. \end{theorem} \begin{proof} \emph{The start.} \Cref{thm:S3} for $K_3$ if $d\ne2$, and \cref{thm:base} if $d=2$, give an admissible coefficient once all their primes are taken outside $\mathcal T_0$ and prime to the discriminant of $K$, as their proofs allow, with $p=V$ and $q=W$, whose Frobenius in $K_3P/P$, and so in $KP/P$, is a $3$-cycle. The primes needed in each step below exist by the Chebotarev density theorem, as in the proofs of \cref{lem:auxiliary,lem:S3auxiliary}: the Kummer extension generated by the square roots of $P(\mathcal T)$ meets $KP$ in $P(\sqrt d)$, so a Frobenius condition in $KP/P$ and quadratic symbols $\ell$ on $P(\mathcal T)$ are compatible when $\ell(D)$ is the sign of the Frobenius; over $B$ we also ask $\ell(\vartheta)=0$, where $B(\sqrt\vartheta)$ is the Hilbert class field, so that the primes are principal. For a finite group $\Pi$ of primitive classes of $H$, let $M_\Pi$ be the field generated over $K_3P$ by the square roots of their images under the three embeddings of $H$. Its group over $K_3P$ is dual to the span of these images, on which a $3$-cycle acts without fixed points, as the three images of a primitive class have trivial sum; so the maximal abelian subextension of $M_\Pi/P$ is $P(\sqrt d)$. A Frobenius $\varphi$ of $M_\Pi/P$ above a transposition $\tau$ of $S_3$ squares to the Frobenius of the prime of degree two, and as $\varphi$ runs over the lifts of $\tau$, $\varphi^2$ runs over a coset of the functionals $c\mapsto a(c+\tau c)$, $a$ running over the functionals on the span of the images, and for $c$ the image of a primitive class at a moved embedding, $c+\tau c$ is its image at the fixed embedding. So at a prime with odd Frobenius the residue symbols of the classes of $\Pi$ at the prime of degree two can be prescribed, with the class modulo $\mathcal T$ and symbols at finitely many other primes; the symbol of $b$, which is primitive and lies in $H(\mathcal T)$, is $0$ if the Frobenius in $KP/P$ is a transposition and $1$ if it is a $4$-cycle, as the Frobenius at the prime of degree two is the square of the Frobenius in $KP/P$, which is trivial for a transposition and, for a $4$-cycle, a product of two transpositions that negates the elements $r_a+r_b-r_c-r_d$ of the two partitions it moves. \emph{Step 1: classes from $P$.} While $B_b$ or $B_{db}$ contains a class $h\notin\langle[A],D,\vartheta\rangle$, with $\vartheta$ omitted if $P=F$, apply \cref{lem:S4step}(b) with $\ell([A])=\ell([X])=\ell(D)=\ell(\vartheta)=0$ and $\ell(h)+Q(h)=1$: this is possible, as $Q([A])=Q(D)=Q(\vartheta)=0$ and $Q([X])=1$, so that either $h\in[X]\langle[A],D,\vartheta\rangle$ or $h$ is independent of $[A]$, $[X]$, $D$, $\vartheta$. Then $B_b$ and $B_{db}$ do not grow, and one of them shrinks. After finitely many steps both lie in $\langle[A],D,\vartheta\rangle$. If $P=B$, they contain neither $\vartheta$ nor $[A]\vartheta$: at a dyadic prime $\mathfrak l$ the classes of $B_{\mathfrak l}$ whose restrictions lie in the local images of $E_{t^2A}$ above $\mathfrak l$ form an isotropic subspace containing $[A]$, by \cref{lem:S4lagr}(b), while $\vartheta$ is a non-square unit at $\mathfrak l$, which is not principal, and $v_{\mathfrak l}(A)=5$, so $(\vartheta,A)_{\mathfrak l}\ne0$. \emph{Step 2: the class $D$.} If $B_b$ or $B_{db}$ contains $D$ or $D\vartheta$, apply \cref{lem:S4step}(a) with $S=\{s,s'\}$ of odd Frobenius, $s$ in a class with $\ell([A])=\ell([X])=\ell(\vartheta)=0$ modulo a high power of the primes of $\mathcal T$ and $s'$ in the inverse class, with $\ell_s(s')=0$; then $\ell(D)=1$, and $D$, $D\vartheta$ are carried to $Dss'$, $D\vartheta ss'$. Then apply \cref{lem:S4step}(b) with $\ell$ vanishing on $[A]$, $[X]$, $D$, $\vartheta$ and $\ell(ss')=1$, which cuts them; now $B_b=B_{db}=\{1,[A]\}$. \emph{Step 3: separating the descents.} Let $\mathcal T_1=\mathcal T_A$. Apply \cref{lem:S4step}(b) $N$ times with $\ell=0$; this keeps $B_b=B_{db}=\{1,[A]\}$, as $Q([A])=0$. Let $A$ now be the result, $\mathcal T=\mathcal T_A$, and $K_t=K_{L_t}$ in $Y'_{\mathcal T}$ (\cref{lem:S4lagr}(c)). At the two primes of degree one above each of the $N$ primes $s$ at which $b$ is a non-square, the lines $[X]$ and $[bX]$ differ (as in the proof of \cref{lem:S4step}(b)), so $L_1\cap L_b$ has codimension at least $2N$ in $L_1$. Let $C=L_1\cap L_b$ and $c=\dim(G_{\mathcal T}\cap C^\perp)$. The pairs $(x,y)\in(L_1\cap G_{\mathcal T}^\perp)\times(L_b\cap G_{\mathcal T}^\perp)$ with $x-y\in G_{\mathcal T}$ have $x-y\in G_{\mathcal T}\cap(L_1+L_b)=G_{\mathcal T}\cap C^\perp$, and those with $x=y$ form $C\cap G_{\mathcal T}^\perp$, of dimension $\dim C-\dim G_{\mathcal T}+c$; so $\dim(K_1\cap K_b)\le\dim C-\dim G_{\mathcal T}+2c$, and as $\dim K_1=\dim L_1-\dim G_{\mathcal T}$, $K_1\cap K_b$ has codimension at least $2N-2c$ in $K_1$. If $\mathrm{res}\,h\in L_1+L_b$ for $h\in P(\mathcal T)$, then at each prime of $\mathcal T$ not in $\mathcal T_1$ some prime above it of odd degree has $L_{1,w}=L_{b,w}$, the prime of degree one above $s$ at which $b$ is a square, or the prime above the other new primes, which are $3$-cycles; so $h\in W_{\mathfrak p}(A)$ there by \cref{lem:local}(c), and $c\le2+\sum_{\mathfrak p\in \mathcal T_1}\dim(P_{\mathfrak p}^\times/P_{\mathfrak p}^{\times2})$, a bound independent of $N$. Take $N$ with $2N-2c\ge3$. By \cref{lem:S4compl}(b) some Lagrangian $R'$ of $Y'_{\mathcal T}$ meets $K_1$, $K_b$ and $K_{db}$ in $0$. \emph{Step 4: realizing $R'$.} Let $R=R_{\mathcal T}$ and $I=R\cap R'$, choose $u_1,\dots,u_m\in R'$ with $R'=I\oplus\langle u_1,\dots,u_m\rangle$, and let $f_i=\langle u_i,\cdot\rangle$ on $R$, a basis of the functionals on $R$ vanishing on $I$. Fix a class $\rho$ modulo a high power of the primes of $\mathcal T$ with quadratic symbols $\ell$ on $P(\mathcal T)$, $\ell(D)=1$ and $\ell([A])=\ell([X])=\ell(\vartheta)=0$. Choose prime elements $s_1,\dots,s_m$ in the class of $\rho$, with mutual symbols $0$, whose Frobenius is a transposition or a $4$-cycle as $f_i$ vanishes at the image of $b$ or not, at which the residue symbol at the prime $w_2(s_i)$ of degree two of each primitive class of $H(\mathcal T)$ with image $r\in R$ is $f_i(r)$. As the primes above $\mathcal T$ generate the class group of $H$ modulo squares, some class has odd valuation at $w_2(s_i)$ and even valuation at the other primes not above $\mathcal T$, and its product with the restriction of its norm is a primitive class $x_i$ with the same property; its image on $\mathcal T$ pairs with $r\in R$ to $f_i(r)$ by reciprocity, so after multiplying by a primitive class of $H(\mathcal T)$, its image on $\mathcal T$ is $u_i$. Let $C_{ij}$ be the residue symbol of $x_i$ at $w_2(s_j)$, after removing $s_j^{v}$ when $i=j$; by reciprocity, and as $\langle u_i,u_j\rangle=0$, $C$ is symmetric. Write $C=\sum_a\nu_a\nu_a^{\mathsf T}$ with $\nu_a\in\FF_2^m$, using $e_ie_i^{\mathsf T}$ and $e_ie_i^{\mathsf T}+e_je_j^{\mathsf T}+(e_i+e_j)(e_i+e_j)^{\mathsf T}$, with zero vectors added so that the number of $a$ is at least $m$ and the number of all primes is even. Choose prime elements $t_a$ in turn, with Frobenius a transposition, with mutual symbols $0$ with the earlier primes, at which the primitive classes of $H(\mathcal T)$ are squares at $w_2(t_a)$, $x_i$ has residue symbol $\nu_{ai}$ and the earlier $y_{a'}$ are squares, with half of all the primes in the class of $\rho$ and half in its inverse, so that their product $\sigma$ is a fourth power above $\mathcal T$; let $y_a$ be the class of \cref{lem:S4lift} for $t_a$. By reciprocity, $y_a$ has residue symbol $\nu_{ai}$ at $w_2(s_i)$ and is a square at $w_2(t_{a'})$ for $a'\ne a$. Apply \cref{lem:S4step}(a) with $S=\{s_i\}\cup\{t_a\}$. We first leave the conditions above $\mathcal T$ aside. For $y_0$ as there that satisfies the conditions at $S$, the class $\alpha=y_0\sigma^{\ell(h)}$, with $h$ as in its proof, has even valuation at the primes of degree one above $S$ and lies in $\langle[z]\rangle$ at $w_2(z)$. Conversely, for such an $\alpha$, $h=\Nm_{H/P}\alpha$ lies in $P(\mathcal T)$ and agrees at $z$ with the class of $\alpha$ at the prime of degree one, as the class at $w_2(z)$ has square norm; so $y_0=\alpha\sigma^{\ell(h)}$ satisfies the conditions at $S$, and it has the same image as $\alpha$ on $\mathcal T$, as $\sigma$ is a fourth power there. Write $\alpha$ as $g\prod_ix_i^{v_i}\prod_ay_a^{w_a}$ with $g\in H(\mathcal T)$, and $g_1$ for the primitive part of $g$. The conditions at $w_2(t_a)$ give $w_a=\nu_a\cdot v$, as $y_a/t_a$ is a non-square unit there by \cref{lem:S4lift}; those at $w_2(s_i)$ give $f(g_1)+Cv+\sum_a\nu_aw_a=0$, that is $f(g_1)=0$, so the image of $g_1$ on $\mathcal T$ lies in $I$, with $v$ free. So the images on $\mathcal T$ of the classes $\alpha$ are $G_{\mathcal T}\oplus R'$, injectively. Imposing now the conditions of $A$ above $\mathcal T$, for $t\in\{1,b,db\}$, $\mathrm{Sel}_H(t^2A')$ is isomorphic to $(G_{\mathcal T}\oplus R')\cap L_t$, which by \cref{lem:S4lagr}(c) has dimension $\dim(G_{\mathcal T}\cap L_t)$, that is $2$ for $t=1$ and $1$ for $t=b,db$. \emph{Ranks, torsion and characters.} For the resulting admissible $A$, \eqref{eq:rankbound} gives $r'_P=r^b_H=r^{db}_H=0$ and $r_P,r_H\le1$. The proof of \cite[Lemma~2.7(b)]{RealQuadratic} at the primes $U$ and $V$, unramified in $KP$, gives $E_A(KP)_\tors=\{O,T\}$, so the point with abscissa $X$ has infinite order, $r_P=r_H=1$, and the rank over $KP$ is one by \cref{lem:S4ranks}. If $P=F$, let $\pi$ be as in \ref{re:iii}. The odd primes dividing $A$ have degree one, so their norms are $\equiv1\pmod8$ and divide $M_A$, and $\pi\equiv1+i$ modulo each; the product formula for $A$ and $\pi$ and that for $1+i$ and $uv$ show that the characters of $A$ at the two primes above $\pi$ multiply to $(1+i,uv)_\lambda$. As $u\equiv u_0$ and $v\equiv v_0\pmod{32}$, this is $(1+i,u_0)_\lambda(1+i,v_0)_\lambda$, which the same product formulas give as $((1+i)/U)((1+i)/V)=-1$ for any prime elements $U\equiv u_0$ and $V\equiv v_0\pmod{32}$ \cite[Lemma~2.4(b)]{RealQuadratic}. If $P=B$ the same holds with the dyadic symbols of \ref{B:sign}, as at the end of the proof of \cref{thm:base}. \end{proof} \subsection*{The field of discriminant \texorpdfstring{$1957$}{1957}} Let $K_4=\Q(\theta)$, $\theta^4-4\theta^2-\theta+1=0$. We find that $K_4$ is totally real, with group $S_4$ and discriminant $1957=19\cdot103$, and that the quadratic subfield of its Galois closure $K$ is $\Q(\sqrt{1957})$; so $P=F$, $K\cap F=\Q$ and $\sqrt3\notin K$. With the roots of $x^4-4x^2-x+1$, $b=(r_1+r_2-r_3-r_4)^2$ is $4(r_1+r_2)^2$, and $(r_1+r_2)^2$ is a root of $y^3-8y^2+12y-1$, of discriminant $1957$; let $k_3$ be the field it generates and $H=k_3F$. The field $k_3$ satisfies the hypotheses of \cref{lem:classno}: it is unramified at $2$; a root of unity of order $16$ in $H$ would give a quadratic extension of $F$ in $H$, which has degree three over $F$; and one of odd prime order $r$ would make $r$ ramified, so $r\in\{19,103\}$, but $[\Q(\zeta_r):\Q]>12$. We find, from the ideals of norm below the Minkowski bound, that $k_3$, $k_3(\sqrt2)$, $k_3(i)$, $k_3(\sqrt{-2})$ have class groups $\Z/2\Z$, $\Z/2\Z$, $(\Z/4\Z)^2$, $\Z/20\Z$; so $H$ has class number $2\cdot16\cdot20/2^2=160$, and we find ideals that generate a subgroup $\Z/40\Z\times\Z/4\Z$, which is therefore the class group, with residue characters as in \cref{sec:A4}. \begin{theorem}\label{thm:S4least} Let $K$ be the Galois closure of $K_4$, $L=KF$, and \[ u=\zeta^3-3\zeta^2+3\zeta-2,\qquad v=-\zeta^2-\zeta+35,\qquad w=-17\zeta^3-18\zeta^2-16\zeta-20. \] Then $u-v=\lambda w$, and $A=-4uv(u-v)^2$ satisfies \ref{re:i}, \ref{re:ii} and \ref{re:iii}. \end{theorem} \begin{proof} We have $u=u_0$ and $v=v_0+32$, and we find that the norms of $u$, $v$, $w$ are $17$, $1049\cdot1433$ and $73\cdot13033$, products of distinct primes prime to $2\cdot1957$, and that the Selmer groups of the five descents, $\mathrm{Sel}_F(A)$, $\mathrm{Sel}_F(1957^2A)$, $\mathrm{Sel}_H(A)$, $\mathrm{Sel}_H(b^2A)$ and $\mathrm{Sel}_H(1957^2b^2A)$, have dimensions $2$, $1$, $2$, $1$, $1$. For these, the classes with even valuation at every odd prime not above $1957uvw$ are given by the class groups and the units; the local images at the odd primes are those of \cref{lem:local,lem:S4local} and, at the odd primes where the twisting element $t$ has odd valuation, at which $A$ is a unit, those given by the proof of \cite[Lemma~2.8(a)]{RealQuadratic}: of order two, generated by $[A]$ if $A$ is not a square and by $[ta]$, the image of $(ta,0)$, if $A=a^2$; and above $\lambda$, where $H$ has primes of degrees one and two, they have dimensions $3$ over $F$ and $3$ and $5$ over $H$, by \cref{lem:local}(a), and are spanned by the images of points that we find. The proof of \cite[Lemma~2.7(b)]{RealQuadratic} at the primes above $17$ and $1049$, unramified in $L$, gives \ref{re:ii}; so the point with abscissa $X$ has infinite order, the ranks are $1$, $0$, $1$, $0$, $0$, and the rank over $L$ is one by \cref{lem:S4ranks}. Condition \ref{re:iii} follows as at the end of the proof of \cref{thm:S4coef}. \end{proof} \section{Proofs of \texorpdfstring{\cref{thm:main,thm:A4}}{Theorems 1.1 and 1.2}}\label{sec:proofs} \begin{lemma}\label{lem:down} Let $k\subseteq M$ be number fields, with $k$ real. If $\Z$ is Diophantine in $M$, it is Diophantine in $k$. \end{lemma} \begin{proof} Let $f\in\Z[X,Y_1,\dots,Y_m]$ be such that $\Z$ is the set of $a\in M$ with $f(a,y)=0$ for some $y\in M^m$. Write $k=\Q(\gamma)$, where $\gamma$ is a root of an irreducible $g\in\Z[T]$, and $M=k(\vartheta)$, where $\vartheta$ is a root of $T^n+\sum_{j