\section{Three theorems from the literature}\label{sec:literature} We state the three results on which the paper depends, in the notation of their sources, and record the instance of each that is used. The letters $E$, $F$, $H$, $S$, $T$, $\Sigma$ in this section are those of the sources. From Section~\ref{sec:inputs} on, $F$ and $E_j$ will denote specific CM fields attached to $k$, and we shall say explicitly how the present statements are applied to them. \subsection{The averaged Colmez formula}\label{subsec:lit-colmez} Let $A$ be an abelian variety of dimension $g$ over a number field $K$, with everywhere good reduction, and let $\mathcal A$ be its N\'eron model over $\OO_K$. Let $\omega(\mathcal A)$ be the determinant of the sheaf of invariant differentials of $\mathcal A$, a line bundle on $\Spec\OO_K$, with the metric \[ \|\alpha\|_v^2=\frac1{(2\pi)^g}\left|\int_{A_v(\C)}\alpha\wedge\bar\alpha\right| \] at each archimedean place $v$. The \emph{Faltings height} of $A$ is $h(A)=[K:\Q]^{-1}\,\widehat{\deg}\,\omega(\mathcal A)$. It does not change under extension of $K$. Let $E$ be a CM field of degree $2g$ with maximal totally real subfield $F$. A CM type of $E$ is a set $\Phi$ of $g$ embeddings $E\hookrightarrow\C$ containing one from each pair of complex conjugates. An abelian variety with complex multiplication by $\OO_E$ of type $\Phi$ is defined over a number field and has potentially good reduction, and Colmez \cite{Colmez} showed that its Faltings height depends only on $\Phi$. Write $h(\Phi)$ for this height. Let $\eta_{E/F}$ be the quadratic Hecke character of $F$ attached to $E/F$, and let $L_f(s,\eta_{E/F})$ be its $L$-function, without gamma factors. \begin{theorem}[Yuan--Zhang {\cite[Theorem~1.1]{YuanZhang}}; Andreatta--Goren--Howard--Madapusi Pera \cite{AGHMP}]\label{thm:lit-colmez} Let $d_F$ be the absolute discriminant of $F$ and $d_{E/F}$ the norm of the relative discriminant of $E/F$. Then \[ \frac1{2^g}\sum_{\Phi}h(\Phi) =-\frac12\,\frac{L_f'(0,\eta_{E/F})}{L_f(0,\eta_{E/F})}-\frac14\log(d_{E/F}\,d_F), \] where $\Phi$ runs through the $2^g$ CM types of $E$. \end{theorem} We shall also use the first step of the proof in \cite{YuanZhang}, which is independent of the rest of that paper. For a CM type $\Phi$ and $\tau\in\Phi$, Yuan and Zhang attach to an abelian variety $A$ of type $(\OO_E,\Phi)$ a metrized line bundle $\mathcal N(A,\tau)$, built from the $\tau$-eigenquotient of the invariant differentials of $A$ and the $\tau c$-eigenquotient for the dual abelian variety, and they set $h(A,\tau)=\tfrac12[K:\Q]^{-1}\widehat{\deg}\,\mathcal N(A,\tau)$. \begin{proposition}[{\cite[Theorem~2.2 and the proof of Corollary~2.6]{YuanZhang}}]\label{prop:lit-decomposition} The height $h(A,\tau)$ depends only on the pair $(\Phi,\tau)$; write it $h(\Phi,\tau)$. Moreover \[ \frac1{2^g}\sum_\Phi h(\Phi)-\frac1{2^g}\sum_{\Phi}\sum_{\tau\in\Phi}h(\Phi,\tau)=-\frac14\log d_F . \] \end{proposition} \begin{remark} The erratum to \cite{YuanZhang} repairs Theorem~2.7 of that paper, which is used in the proof of Theorem~\ref{thm:lit-colmez}; the statement of Theorem~\ref{thm:lit-colmez} is unchanged. Proposition~\ref{prop:lit-decomposition} does not involve Theorem~2.7. Beyond these two statements we use from \cite{YuanZhang} only the description of the cotangent module in its Lemma~2.4 and Corollary~2.5. \end{remark} Here is how these two results enter the paper. We apply Theorem~\ref{thm:lit-colmez} and Proposition~\ref{prop:lit-decomposition} once, in Lemma~\ref{lem:individual-height}, to the CM extension $k(\sqrt{-\delta})/k$ constructed in Section~\ref{sec:inputs}. There $g=[k:\Q]$, the relative discriminant has norm equal to a prime $d$, and the Galois group of the normal closure permutes the pairs $(\Phi,\tau)$ transitively. All the $h(\Phi,\tau)$ are then equal, and the two displayed identities determine their common value: \[ g\,h(\Phi,\tau)=-\frac12\,\frac{L_f'(0,\eta)}{L_f(0,\eta)}-\frac14\log d . \] It is this single number, and not merely an average, that the comparison of determinants requires. \subsection{Brumer--Stark away from two}\label{subsec:lit-dk} Let $F$ be a totally real field of degree $n$ and let $H$ be a finite abelian extension of $F$ which is a CM field. Put $G=\Gal(H/F)$ and let $c\in G$ be complex conjugation. Let $S$ and $T$ be disjoint finite sets of places of $F$. Assume that $S$ contains the infinite places and the places ramified in $H$, and that no nontrivial root of unity in $H$ is congruent to $1$ modulo every prime of $H$ above $T$. The second condition holds if $T$ contains a prime of residue characteristic larger than $n+1$. For a character $\chi$ of $G$ put \[ L_{S,T}(\chi,s)=\prod_{\frakp\notin S}\frac1{1-\chi(\frakp)\N\frakp^{-s}}\ \prod_{\frakp\in T}\bigl(1-\chi(\frakp)\N\frakp^{1-s}\bigr). \] The \emph{Stickelberger element} $\Theta_{S,T}\in\C[G]$ is defined by $\chi(\Theta_{S,T})=L_{S,T}(\chi^{-1},0)$ for all $\chi$. By Deligne--Ribet \cite{DeligneRibet} and Cassou-Nogu\`es \cite{CassouNogues} it lies in $\Z[G]$. Let $\Cl^T(H)$ be the ray class group of $H$ whose conductor is the product of the primes above $T$: the group of fractional ideals prime to $T$ modulo the principal ideals $(\alpha)$ with $\alpha\equiv1$ at every prime above $T$. Its Pontryagin dual $\Cl^T(H)^\vee=\Hom(\Cl^T(H),\Q/\Z)$ carries the action $(\sigma f)(x)=f(\sigma^{-1}x)$. Let $x\mapsto x^{\#}$ be the involution of $\Z[G]$ induced by $g\mapsto g^{-1}$. For a $\Z[G]$-module $M$ put $M^-=M\otimes\Z[\tfrac12]/(1+c)$, and $\Z[G]^-=\Z[\tfrac12][G]/(1+c)$. \begin{theorem}[Dasgupta--Kakde {\cite[Theorem~1.3]{DasguptaKakde}}]\label{thm:lit-dk} With the notation and hypotheses above, \[ \Theta_{S,T}^{\#}\in\Fitt_{\Z[G]^-}\bigl(\Cl^T(H)^{\vee,-}\bigr), \] where $\Fitt$ denotes the zeroth Fitting ideal. \end{theorem} The statement concerns the dual of the class group. As the authors point out, the corresponding inclusion for the class group itself is false in general, and we take care in Section~\ref{sec:inputs} to apply the theorem to the dual with the action written above. \subsection{Brumer--Stark at two}\label{subsec:lit-dksw} Keep $F$, $H$, $G$ and $c$ as before. In this subsection the minus part is defined integrally, with no inversion of $2$: $\Z[G]_-=\Z[G]/(1+c)$ and $M_-=M/(1+c)M$. \begin{theorem}[Dasgupta--Kakde--Silliman--Wang {\cite[Theorem~1.1]{DKSW}}]\label{thm:lit-dksw-unit} Let $S$ and $T$ be disjoint finite sets of places of $F$. Assume that $S$ contains the infinite places and the places ramified in $H$, and that $T$ contains two primes of different residue characteristics or one prime of residue characteristic larger than $n+1$. Let $\frakp\notin S\cup T$ be a prime of $F$ that splits completely in $H$, and let $\mathfrak P$ be a prime of $H$ above $\frakp$. Then there is $u\in H^\times$ such that \begin{enumerate} \item $|u|_w=1$ for every place $w$ of $H$ not above $\frakp$, the complex places included; \item $\sum_{\sigma\in G}\chi(\sigma)\ord_{\sigma^{-1}\mathfrak P}(u)=L_{S,T}(\chi,0)$ for every character $\chi$ of $G$; \item $u\equiv1$ modulo every prime of $H$ above $T$. \end{enumerate} \end{theorem} The second result is a statement about Fitting ideals. Let $\Sigma$ and $\Sigma'$ be disjoint finite sets of places of $F$, and fix a prime $p$. Consider the conditions \begin{enumerate} \item[(A1)] $\Sigma\cup\Sigma'$ contains the infinite places and the places ramified in $H$; \item[(A2)] the group of units of $H$ congruent to $1$ modulo every prime above a prime in $\Sigma'$ is torsion-free; \item[(A3)] $\Sigma$ is nonempty; \item[(A4)] $\Sigma$ contains the ramified places above $p$; \item[(A5)] $\Sigma'$ contains the ramified places not above $p$. \end{enumerate} Under (A1) and (A2), the authors construct a $\Z[G]$-module $\nabla_\Sigma^{\Sigma'}(H)$, generalizing a construction of Ritter and Weiss, which sits in an exact sequence \begin{equation}\label{eq:lit-rw-sequence} 0\longrightarrow\Cl_\Sigma^{\Sigma'}(H)\longrightarrow\nabla_\Sigma^{\Sigma'}(H)\longrightarrow X_{H,\Sigma}\longrightarrow0 . \end{equation} Here $\Cl_\Sigma^{\Sigma'}(H)$ is the quotient of the ray class group $\Cl^{\Sigma'}(H)$ by the classes of the primes above $\Sigma$, and $X_{H,\Sigma}$ is the group of divisors of degree zero supported on the places of $H$ above $\Sigma$. Let $\Theta_{\Sigma,\Sigma'}$ be the Stickelberger element defined as above, with the Euler factors at the finite places of $\Sigma$ removed and smoothing at the primes of $\Sigma'$. \begin{theorem}[Dasgupta--Kakde--Silliman--Wang {\cite[Theorem~1.2]{DKSW}}]\label{thm:lit-dksw-fitting} Assume \textup{(A1)--(A5)} and let $t$ be the number of infinite places in $\Sigma'$. There is a unique element $\Theta_{\Sigma,\Sigma'}/2^t$ of $\Z_p[G]_-$ with $\chi(\Theta_{\Sigma,\Sigma'}/2^t)=L_{\Sigma,\Sigma'}(\chi^{-1},0)/2^t$ for every odd character $\chi$ of $G$, and \[ \Fitt_{\Z_p[G]_-}\bigl(\nabla_\Sigma^{\Sigma'}(H)\otimes_{\Z[G]}\Z_p[G]_-\bigr)=\bigl(\Theta_{\Sigma,\Sigma'}/2^t\bigr). \] \end{theorem} For odd $p$ this is due to Dasgupta and Kakde \cite{DasguptaKakde}; the new case is $p=2$. We now say how the three Brumer--Stark statements are used. Theorems~\ref{thm:lit-dk}, \ref{thm:lit-dksw-unit} and~\ref{thm:lit-dksw-fitting} are applied only in the proof of Proposition~\ref{prop:odd-length}. There the totally real field is the maximal real subfield $E_j^+$ of a stage $E_j$ of the cyclotomic tower of Section~\ref{sec:inputs}, and the abelian CM extension is a layer $E_j(\mu_{\ell^b})$ for a prime $\ell$ and $b\ge1$. The smoothing set consists of one prime $\frakq$ of large residue characteristic. For odd $\ell$ we use Theorem~\ref{thm:lit-dk} with $S$ the infinite places and the places above $\ell$. For $\ell=2$ we use Theorem~\ref{thm:lit-dksw-fitting} with $p=2$, $\Sigma$ the infinite and dyadic places, $\Sigma'=\{\frakq\}$ and hence $t=0$, together with the injection in \eqref{eq:lit-rw-sequence}. The consequence needed at $\ell=2$ is that the Stickelberger element annihilates the minus part of the $2$-class group of $\OO_{E_j(\mu_{2^b})}[1/2]$. This also follows from the unit of Theorem~\ref{thm:lit-dksw-unit}, whose divisor exhibits the required relations among the primes above a completely split prime; the formal proof described in Appendix~\ref{sec:verification} takes that route, and so assumes Theorem~\ref{thm:lit-dksw-unit} only.