\documentclass[11pt,letterpaper]{article}
\usepackage[T1]{fontenc}
\usepackage{lmodern,amsmath,amssymb,amsthm,microtype,xcolor,xurl,booktabs,enumitem}
\usepackage[letterpaper,left=1.02in,right=1.02in,top=.92in,bottom=.95in]{geometry}
\usepackage{multicol}
\usepackage{longtable}
\usepackage[breakable,skins]{tcolorbox}
\newtcolorbox{altbox}{breakable,enhanced jigsaw,colback=white,colframe=black!75,boxrule=0.7pt,arc=0pt,
left=5pt,right=5pt,top=3pt,bottom=3pt,colbacktitle=black!10,coltitle=black,fonttitle=\bfseries\small,
title={Alternative to the Lean proof}}
\newtcolorbox{illbox}{breakable,enhanced jigsaw,colback=white,colframe=black!45,boxrule=0.4pt,arc=0pt,
left=5pt,right=5pt,top=3pt,bottom=3pt,colbacktitle=black!4,coltitle=black,fonttitle=\bfseries\small,
title={Illustration --- not used in the proof}}
\usepackage{hyperref}
\definecolor{source}{HTML}{395E6F}
\hypersetup{hypertexnames=false,colorlinks=true,linkcolor=black,urlcolor=source,pdftitle={The Alpoge-Claude proof of the Riemann hypothesis explained for the Riemann zeta function}}
\newtheorem*{lemma}{Lemma}
\newtheorem{theorem}{Theorem}[section]
\newtheorem*{prop}{Proposition}
\newtheorem*{thmA}{Estimate A}
\newtheorem*{thmB}{Estimate B}
\newtheorem*{thmC}{Estimate C}
\newcommand{\Z}{\mathbb Z}\newcommand{\Q}{\mathbb Q}\newcommand{\C}{\mathbb C}
\newcommand{\re}{\operatorname{Re}}
\newcommand{\quoted}{\textsf{[quoted]}}
\setlength{\parskip}{4pt plus 1pt}
\setlist{itemsep=2pt,topsep=3pt}
\renewcommand{\thesection}{I.\arabic{section}}
\renewcommand{\theequation}{I.\arabic{equation}}
\title{\vspace{-11.5mm}The Alp\"oge--Claude proof of the Riemann hypothesis\\[2pt] explained for the Riemann zeta function}
\author{Claude Fable 5.2, Codex Astra 6.2, and Gemini Carbon\\[2pt] at the behest of Michael O. Rubinstein}
\date{Version 2. Working draft, 22 November 2026}
\newcounter{partno}\setcounter{partno}{1}
\renewcommand{\theHequation}{\arabic{partno}.\arabic{equation}}
\renewcommand{\theHsection}{\arabic{partno}.\arabic{section}}
\renewcommand{\theHtheorem}{\arabic{partno}.\arabic{section}.\arabic{theorem}}
\begin{document}
\maketitle\thispagestyle{empty}
\vspace{-14mm}
\vspace{3mm}
\begin{center}\begin{minipage}{.86\textwidth}\small
\textbf{Abstract.} We explain the argument of Alp\"oge and Claude for the Riemann hypothesis in the case of
the Riemann zeta function. The analytic step shows that upper bounds $G(x)\ll_\varepsilon x^{1/2+\varepsilon}$, for every $\varepsilon>0$,
for a smoothed sum $G$ over prime powers, valid throughout intervals $[Y,Y^{3/2}]$ with $Y$ arbitrarily large,
exclude zeros to the right of the critical line. We derive these bounds from the main inequality (M), an upper
bound for the mean of a weighted sum over prime powers after subtraction of its main term, and two estimates
for Dirichlet characters. We prove the two estimates, for suitably chosen auxiliary primes, from theorems in the literature, and explain how the
divisibility and the size of theta lifts enter (M). We quote (M) from the Lean development and prove a conditional reduction of it.
This is a work in progress. Part III reduces (M), and with it the Riemann hypothesis, to a list of numbered
hypotheses, each stated in classical terms (\S\ref{as:sec}); none of them is proved outright here, and the last
includes that the primes with which the construction is made satisfy the first estimate. It proves
parts of the argument behind several of them, works the simplest case, the lemniscate, in full
(\S\ref{el:sec}), and lists the 195 statements that the Lean development takes under the heading of
published results (\S\ref{cs:sec}). (M) itself is not proved here.
\end{minipage}\end{center}
\vspace{1mm}
\begin{center}\fbox{\parbox{.92\textwidth}{\small\textbf{Note.} This is a working guide to Alp\"oge's
Lean-verified proof of the Riemann hypothesis, specialised to the Riemann zeta function. Its goal is a
human-readable exposition of the proof in the style of classical analytic number theory. It is a work in
progress, written as an aid to studying the proof.
\smallskip\emph{What is in these pages.} Parts I and II deduce the Riemann hypothesis from one inequality, called (M)
throughout, and two estimates for Dirichlet characters. Part III proves the two estimates for suitably chosen auxiliary primes (\S III.1--III.2). It
reduces (M), and with it the Riemann hypothesis, to thirteen numbered hypotheses, each stated in classical terms
(\S\ref{as:sec}); the thirteenth includes that the primes with which the construction is made satisfy the first
estimate. It defines the objects of the construction (\S\ref{ob:sec}), constructs the two sets of columns outright
(\S III.3), and proves parts of the argument behind several of the hypotheses, in an abstract setting or from
named statements of the Lean development (\S III.4--III.9). The lemniscate illustrates the size and divisibility
calculations; the theorems stated for it are proved from classical results (\S\ref{el:sec}). And it lists the 195 statements that
the Lean development takes under the heading of published results (\S\ref{cs:sec}). Labelled boxes mark selected passages
that give a proof different from the Lean development's, or that are illustrations not used in the proof;
smaller departures and models are noted where they occur.
\smallskip\emph{What is not.} None of the thirteen hypotheses is proved outright here. Behind them stand, taken from
the Lean development: the integrality of the theta kernels; the inner-product formula for the theta lifts, the
covolumes of the lattices and the local indices; the local data at the level primes, the count of forms and the
covolume of a lattice of forms; the trace-formula estimates and the size and subspace conditions of
Corollary~T2; the bound for Galois cohomology and the comparison inequality that links it to the
denominators; the existence of the objects of the construction; and the supply of all these data at every
scale of an interval. The bibliographic attributions proposed in the census (\S\ref{cs:sec}) are from memory.
\smallskip The tables at the start of Part III and in \S\ref{as:sec} say, statement by statement, what is proved in
these pages, what is proved from named statements, and what is taken without proof from the Lean development.
\S I.12 lists what remains to be written up.}}\end{center}
{\small\setcounter{tocdepth}{1}\makeatletter\renewcommand{\l@part}[2]{\par\addvspace{4pt}\penalty-200\noindent\textbf{#1}\par\nobreak}\renewcommand{\@pnumwidth}{1.6em}\renewcommand{\l@section}{\@dottedtocline{1}{0em}{2.7em}}\makeatother
\setlength{\columnsep}{22pt}\begin{multicols}{2}[\noindent\textbf{Contents} {\footnotesize (entries are links)}]\makeatletter\@starttoc{toc}\makeatother\end{multicols}}
\noindent\textbf{What this is.} In November 2026 Levent Alp\"oge announced a proof, found with the AI system
Claude, of the Riemann hypothesis. It exists as a formal proof in the Lean proof assistant, about 17 million
lines long. This paper explains how the argument works for the Riemann zeta function, for a reader who knows
a first course in analytic number theory: the prime number theorem, Dirichlet characters, and Mellin
transforms.
\noindent\textbf{How it is organised.} Part I is an exposition: the strategy first, then each step with its
motivation and with examples computed on real primes. Part II gives the details and proofs to which Part I
refers. A reader can stop after Part I and know how the proof goes; Part II is there to check each step.
Part III, which is being written, is to prove the statements that Parts I and II quote. It proves Estimates B and C
and constructs the two auxiliary sets of residue classes (the ``sets of columns'' of \S I.5). It reduces the main inequality (M),
and with it the Riemann hypothesis, to a list of numbered hypotheses, each stated in classical terms
(\S\ref{as:sec}); none of them is proved outright here. It proves parts of the argument behind several of them,
some conditionally on statements of the Lean development which it names, and takes the
rest from that development; the table at the start of Part III says which. It works the simplest case, the
lemniscate, in full (\S\ref{el:sec}). A census lists the 195 statements that the Lean development takes under
the heading of published results (\S\ref{cs:sec}).
\noindent\textbf{What is proved here and what is not.} The argument rests on three statements. One
of them, the main inequality (M), is the arithmetic heart of the matter. Two further estimates (B and C) concern
auxiliary Dirichlet characters. We state B and C exactly, and (M) in the form in which it is used, and explain why one should expect them. That the
three together imply the Riemann hypothesis is proved in Part II. Estimates B and C are proved in Part III,
from theorems on Dirichlet $L$-functions that are cited there. But (M) is not yet proved here: we are working through its proof in the Lean development and adding the details to Part III section by section.
Of what it needs, Part III so far constructs the two sets of columns (\S III.3) and proves: the analytic part of the
bound for the size of the theta kernels, with four conditional passages (\S III.4); a local divisibility estimate for power series at
inert primes, under the integrality of the theta kernels in the coordinates of the height-two logarithm
(hypothesis (B)), for orbits of length two and with a further duality input for longer orbits (\S III.5); the lemmas on
lattices that carry this estimate to lattices and part of the sum over primes, the
main theorem there being conditional on two statements of the Lean development (\S III.6); that the size inequality
follows from eleven named inputs (\S III.7); that the dimension bound follows from three statements of the Lean
development on traces, ranks and pairings and the size and subspace conditions of Corollary~T2 (\S III.8); and
the step from the bound for Galois cohomology and a quoted comparison inequality to a bound for
denominators (\S III.9); and that (M), at one sufficiently large scale,
follows from twelve numbered hypotheses, and the Riemann hypothesis from these and a thirteenth, which concerns
the scales and the auxiliary primes (\S\ref{as:sec}). None of the thirteen hypotheses is proved outright here.
Part II proves the elementary
lemmas. The rest is for now
\emph{quoted} or assumed: hypothesis (B) and the statement on valuations built on it, the arithmetic inputs of the size estimate,
the trace-formula estimates themselves, the bound for Galois cohomology itself and the comparison inequality, the construction of the maps and their
weights, and those of the hypotheses of \S\ref{as:sec} that no section treats. The simplest case, the lemniscate, is
worked in full in \S\ref{el:sec}; \S\ref{cs:sec} is a census of the 195 statements that the Lean development takes
under the heading of published results. Statements marked \quoted\ are taken
from the Lean development without proof. The full proof of (M) is where almost all of the formal
development goes, and writing it up is the work in progress; \S I.12 lists what remains. Every numerical example, except where stated, can be reproduced with the scripts listed
under Computations, after Part III, or named where the numbers occur.
\bigskip
\begin{center}\Large\bfseries Part I. How the proof works\end{center}
\phantomsection\addcontentsline{toc}{part}{Part I. How the proof works}
\section*{I.0\quad The strategy in eight steps}\addcontentsline{toc}{section}{I.0\quad The strategy in eight steps}
\textbf{Chebyshev's idea about counting primes.} Chebyshev \cite{Che52} bounded the number of primes using
the prime factorization of factorials. In the simplest form of the
argument, due to Erd\H{o}s \cite{Erd32}, one considers the middle binomial coefficient $\binom{2n}{n}$. It is
divisible by every prime between $n$ and $2n$, and it is at most $4^n$. So the product of
those primes is at most $4^n$. That is an upper bound for a count of primes, obtained from two facts about
one integer: what divides it, and how big it is.
\textbf{One piece of notation.} For a real number $v$ we write $v_+$ for its \emph{positive part}:
$v_+=v$ if $v>0$, and $v_+=0$ otherwise. For example $5_+=5$ and $(-3)_+=0$. A sum of terms of the form
$(\cdots)_+$ is automatically cut off where the terms would become negative.
\textbf{The plan.} The proof of the Riemann hypothesis described here is Chebyshev's argument, run with a far
better ``integer''. There are eight steps. After each we name the main ingredients, and say where it is
treated and whether it is proved in this paper.
\begin{enumerate}[leftmargin=2em]
\item \textbf{Zeros to primes.} The Riemann hypothesis follows from one-sided bounds
$G(x)\le x^{1/2+\varepsilon}$, for every $\varepsilon>0$, for a certain smoothed count of prime powers $G(x)$, and it is enough to have
it on a sparse sequence of long intervals.
\emph{Ingredients:} a variant of Landau's theorem on Mellin transforms of functions of constant sign; the
Mellin transform \eqref{F} of $G$ and Chebyshev's bound. \emph{Where:} \S I.1; proved in Part II, \S1.
\item \textbf{Chebyshev's principle, for lattices.} If $N\ne0$ and $p^{e_p}\mid N$ for each of several distinct primes $p$, then
$\prod_pp^{e_p}\le|N|$. To bound primes from above one compares the divisibility of an object with its size.
In the proof the object is not one integer but a linear map between lattices of large rank.
\emph{Ingredients:} Chebyshev's method; the slope inequality for a map of lattices (Bost), and the
filtration of a lattice by slopes (Stuhler, Grayson). \emph{Where:} \S I.2, \S I.7; the inequality is proved
in the form needed in Part III, \S\ref{as:sec}.
\item \textbf{Divisibility with no floor functions.} For $n!$ the exponent of $p$ is
$\sum_h\lfloor n/p^h\rfloor$, and the rounding in the floor functions is why the classical method gives
constants and not asymptotics. Derivatives of order $a$ of suitable functions attached to complex
multiplication have a smooth lower bound for their divisibility, up to one rounding, at the primes that stay
prime (the \emph{inert} primes): for the lemniscate sine and every inert prime $p$,
$v_p(A_a)\ge\lfloor ap/(p^2-1)\rfloor>a(1/p+1/p^3+\cdots)-1$ (\S\ref{el:sec}). At the other primes there is no
such systematic gain. For theta series it is not automatic: the simplest one fails (\S I.4.1). It holds for the
particular theta series of the proof, in particular coordinates, and that is the statement taken from the
Lean development. Subtracting a weight $w$ turns each term $a/p^h$ into
$(a/p^h-w)_+=w\,(x/p^h-1)_+$ with $x=a/w$: the kernel that $G$ uses, magnified by $w$.
\emph{Ingredients:} formal groups of height two (Lubin and Tate, Honda); the reduction of curves with
complex multiplication (Deuring). \emph{Where:} \S I.3, \S I.4; Part III, \S III.5 (conditionally on the integrality hypothesis (B) and, for longer orbits, a
duality statement, both taken from the Lean development) and \S III.6 (in part; its main theorem is
conditional on two further statements, and the bounds for the losses are quoted). The simplest case, the
lemniscate, is proved in full in \S\ref{el:sec}.
\item \textbf{Size, through the linear term.} For the comparison to be useful the size must be known not
just to leading order $a\log a$ but through the term linear in $a$. The map is a chain of $m$ theta lifts
between unitary groups; the kernels are written in classical terms here for the definite ones
(\S\ref{ob:sec}). A bound for its norm, together with the covolume estimates, identifies
the main term through the term linear in $a$, and the linear terms on the two sides agree.
\emph{Ingredients:} Gaussian integrals ($\|z^a\|^2=a!$); the period formula (Kronecker's limit formula;
Lerch, Chowla and Selberg); the mass formula (Siegel, Shimura) and the Siegel--Weil formula; the inner
product formula for theta lifts (Rallis); Weyl's dimension formula. \emph{Where:} \S I.4.2, \S I.7;
Part III, \S III.4 and \S III.7, from inputs that are quoted.
\item \textbf{Denominators.} A chain of lifts need not map integral lattices to integral lattices. The
lattices are assembled prime by prime, using the freedom to twist the intermediate lifts by characters
without changing the final period. Comparing these choices costs an error at each lift. A quoted
comparison bounds the total error at each lift in terms of the lengths of certain Galois cohomology groups
of the field, generalisations of class groups, and Theorem~G of \S III.9 bounds their weighted sum.
\emph{Ingredients:} the seesaw identity (Kudla) and Bessel periods; Galois representations attached to
automorphic forms; Iwasawa theory and $p$-adic Hodge theory. This is the part of the proof that uses the
most mathematics from outside analytic number theory. \emph{Where:} \S I.7; Part III, \S III.9, where the
bound itself is quoted.
\item \textbf{Rank.} Each source lattice has smaller rank than the target, and one map controls only the
largest slope of the target. A family of maps is used, and their images are shown to be spread evenly, so
that together they fill almost the whole target and the \emph{mean} slope is controlled.
\emph{Ingredients:} a relative trace formula (Jacquet), for a second moment of periods; a lemma of linear
algebra. \emph{Where:} \S I.7; Part III, \S III.8, from three quoted statements. Steps 2 to 6 together give
the main inequality (M) (\S I.5); it is deduced from numbered hypotheses in Part III, \S\ref{as:sec}.
\item \textbf{Balance.} With $m$ lifts there is an error $x/m$, made once at the two ends of the chain, and
an error $m$, accumulated over the steps. They balance at $m\approx\sqrt x$. This is where the exponent
$\frac12$ comes from. \emph{Where:} \S I.8.
\item \textbf{From inert primes to all primes.} The sum in (M) runs over prime powers in certain residue
classes, the cells of a table. Averaging over translates removes the column condition on the
distinguished cells. Their contribution gives $G(x)$ plus three sums twisted by quadratic characters of two
auxiliary primes $q$ and $d$, and for well-chosen $q$ and $d$ the three sums are small on long intervals;
Estimate~C controls the remaining cells.
\emph{Ingredients:} zero-free regions and the exceptional zero (Landau, Page); a zero-density estimate
(Montgomery); primes in progressions to large moduli (Thorner and Zaman); the prime number theorem in
progressions; a set of columns of the table chosen by a construction of Behrend. \emph{Where:} \S I.5,
\S I.6; Part II, \S3--5; proved in Part III, \S III.1--III.3, from cited theorems.
\end{enumerate}
\noindent In short: steps 1 and 8 are proved in this paper, from cited theorems of analytic number theory,
and step 7 is a choice of parameters. Steps 2 to 6 make up the main inequality (M), which is reduced to
numbered hypotheses and is not proved here.
\noindent\textbf{Logical skeleton.}
\begin{equation}\label{D:1}
\underbrace{\text{(M)}}_{\text{\quoted}},\ \underbrace{\text{B},\ \text{C}}_{\text{Part III}}
\ \xrightarrow{\ \S\mathrm{I}.6\ }\ \text{Estimate A}
\ \xrightarrow{\ \S\mathrm{I}.6\ }\ G(x)\le x^{1/2+\varepsilon}\ \text{on long intervals}
\ \xrightarrow{\ \S\mathrm{I}.1\ }\ \text{RH}.
\end{equation}
Three statements enter: the main inequality (M), which is quoted (Part III, \S\ref{as:sec} reduces it,
and with it the Riemann hypothesis, to thirteen numbered hypotheses; none is proved outright), and two estimates for auxiliary
Dirichlet characters, one at the scale $x$ (Estimate B) and one at a much larger scale (Estimate C), which
are proved in Part III from cited theorems. The order of
choices is this. For each small $\varepsilon$ there are intervals $[Z,Z^{3/2}]$ with $Z$ arbitrarily large
such that every $x$ in the interval has a pair of auxiliary primes $q,d$, chosen at a scale $Y$ with
$x^{1/J}\le Y\le x$ ($J\ge1$ depends on $\varepsilon$ only), for which Estimates B and C hold at $x$ and for
which the construction is made at $x$. The argument is for each $x$ separately. (Theorem~\ref{thm:pair}
gives one pair for all $x$ in $[Y,Y^{J}]$; that the construction can be made at each $x$ with such a pair,
with constants independent of $x$, is Hypothesis (H12) of Part III, \S\ref{as:sec}.)
\section{From zeros to a sum over primes}
\textbf{The statistic.} Let $\Lambda(n)=\log p$ if $n=p^h$ is a prime power and $0$ otherwise. Define
\begin{equation}\label{D:2}
S(x)=\sum_{n\le x}\Lambda(n)\Big(\frac xn-1\Big),\qquad
G(x)=S(x)-x\log x+(1+\gamma)x ,
\end{equation}
where $\gamma$ is Euler's constant. Equivalently $S(x)=\sum_n\Lambda(n)(x/n-1)_+$, where $v_+=\max(v,0)$: with the
positive part, the condition $n\le x$ under the sum can be omitted. Compared with Chebyshev's $\psi(x)=\sum_{n\le x}\Lambda(n)$, the sum
$S$ weights $n$ by the \emph{ramp} $(x/n-1)_+$: as a function of $n$ it is large for small $n$, decreases,
reaches $0$ at $n=x$, and is $0$ for $n>x$. Also
$S(x)=x\int_1^x\psi(t)\,dt/t^2$. The two subtracted terms are the main term of $S$, so $G$ is a remainder.
\textbf{Why this statistic.} The Mellin transform of the ramp is simple:
$\int_1^\infty (x/n-1)_+\,x^{-s-1}dx=n^{-s}/(s(s-1))$ for $\re s>1$. Summing over $n$ with weights
$\Lambda(n)$,
\begin{equation}\label{F}
F(s)=\int_1^\infty G(x)x^{-s-1}dx
=-\frac{\zeta'(s)}{\zeta(s)}\cdot\frac1{s(s-1)}-\frac1{(s-1)^2}+\frac{1+\gamma}{s-1}.
\end{equation}
The last two terms cancel the pole at $s=1$ (both terms of its principal part). What remains are simple poles of $F$ at the zeros $\rho$
of $\zeta$, with residue $-1/(\rho(\rho-1))$ at a simple zero, and a pole at $s=0$. (The trivial zeros
$-2,-4,\ldots$ also give poles; they produce the term $O(x^{-2})$ below.) Shifting the contour in
the inverse transform gives the explicit formula (compare \cite[Ch.~17]{Dav00})
\begin{equation}\label{D:4}
G(x)=\log 2\pi-\sum_\rho\frac{x^\rho}{\rho(\rho-1)}+O(x^{-2}),
\end{equation}
the sum being over the nontrivial zeros. It converges absolutely, because of the factor $\rho(\rho-1)$; that
is the benefit of smoothing. One has $\sum_\rho\frac1{\rho(1-\rho)}=2+\gamma-\log4\pi=0.0461\ldots$\,. If every zero has real part
$\frac12$ then $|\rho(\rho-1)|=\rho(1-\rho)$, and therefore, for large $x$,
$|G(x)-\log2\pi|\le 0.0462\sqrt x$. A zero with
real part $\beta>\frac12$ would contribute a term of size $x^\beta$.
\emph{A sanity check on real primes.} Summing over the prime powers up to $2\cdot10^6$ gives
$G(10^4)=1.749$, $G(10^5)=3.671$, $G(10^6)=11.040$, $G(2\cdot10^6)=-12.268$, to be compared with
$\log2\pi=1.838$ and $0.0462\sqrt{10^6}=46.2$.
\textbf{One side is enough.} The terms of a zero off the line and of its complex conjugate together form a real function of $x$ that
oscillates and takes both signs. So one expects a zero with real part $\beta$ to make $G(x)$
exceed $+cx^{\beta}$ for some arbitrarily large $x$. Thus an \emph{upper} bound for $G$ should already
exclude it. That an upper bound suffices follows from a theorem of Landau on Mellin transforms of functions of one sign \cite{Lan05}; see \cite[\S15.1]{MV07}.
\begin{lemma}[one-sided criterion] Let $0<\theta<1$. If $G(x)\le x^\theta$ for all large $x$, then
$\zeta(s)\ne0$ for $\re s>\theta$.
\end{lemma}
\begin{proof} The integral $H(s)=\int_1^\infty\big(x^\theta-G(x)\big)x^{-s-1}dx$ equals $1/(s-\theta)-F(s)$,
and its integrand is nonnegative for large $x$. Landau's theorem says that a Mellin transform of an
eventually nonnegative function has a singularity at the real point of its abscissa of convergence. But by
\eqref{F} the function $H$ is regular at every real $s>\theta$: the only real singularities of $F$ in
$s>0$ would come from real zeros of $\zeta$ in $(0,1)$, and there are none. Hence the abscissa is at most
$\theta$, the integral converges for $\re s>\theta$, and $F$ is holomorphic there. A zero of $\zeta$ in that
half-plane would be a pole of $F$.
\end{proof}
The arithmetic argument below produces the upper bound only for $x$ in certain long intervals. The lemma
survives this weakening.
\begin{lemma}[the same, on intervals] Let $0<\theta<1$. If there are arbitrarily large $Y$ such that
$G(x)\le x^\theta$ for all $x\in[Y,Y^{3/2}]$, then $\zeta(s)\ne0$ for $\re s>\theta$.
\end{lemma}
\noindent The proof replaces Landau's theorem by an estimate of high derivatives of $F$, which see only one
interval at a time; it is one page and is given in full in Part II, \S1.
\begin{altbox}
\emph{A second proof, from a published theorem on changes of sign.} Kaczorowski and Pintz
\cite[Theorem~1 and Corollary~1]{KP86} proved the following quantitative form of Landau's theorem for meromorphic transforms (a sharpening of a theorem of P\'olya). Let $f$ be real
on $(0,\infty)$, and let $\Phi(s)=\int_0^\infty f(x)x^{-s-1}dx$ converge absolutely for $\re s$ large.
Suppose that $\Phi$ is regular for $\re s>\Theta$ but in no half-plane $\re s>\Theta-\eta$ with $\eta>0$;
that $\Phi$ is meromorphic in $\re s\ge\Theta-c_0$ for some $c_0>0$; and that $\Phi$ is regular at the real
point $s=\Theta$. Then for every $\alpha>0$ and every $T\ge T_0(f,\alpha)$ the interval $[T^{1-\alpha},T]$ contains a
change of sign of $f$; in the sense of their definition this means two points of it at which $f$ is
nonzero and of opposite signs. (The third hypothesis is not displayed in the statement of
\cite{KP86}; it is the case in which their least boundary ordinate $\gamma$ is positive, with $\gamma=+\infty$
allowed, the only one their proof treats, and without it the
conclusion fails for $f(x)=x^\Theta$ ($x\ge1$), $f(x)=0$ ($x<1$), with $\Phi(s)=1/(s-\Theta)$. We read the
statement, the beginning of the proof and its last step (\cite[(3.29)--(3.30), p.~182]{KP86}), not the whole
proof.) To deduce the lemma, suppose that $\zeta$ has a zero with real part greater than $\theta$, and let
$\Theta\le1$ be the supremum of the real parts of the zeros. Put $f(x)=G(x)-2x^\theta$ for $x\ge1$ and
$f(x)=0$ for $x<1$. Then $\Phi(s)=F(s)-2/(s-\theta)$ for $\re s>1$, since $G(x)=O(x\log x)$. By \eqref{F},
$\Phi$ is meromorphic in the plane; its poles with $\re s>0$ are the zeros of $\zeta$ in the critical strip
and the point $\theta$, which lies to the left of $\Theta$. So $\Phi$ is regular for $\re s>\Theta$ and in
no larger half-plane. It is regular at the real point $\Theta$: there is no real zero of $\zeta$ in $(0,1)$,
and $F$ is regular at $s=1$. Hence $f$ takes a positive value in $[T^{1-\alpha},T]$ for every large $T$.
Take $\alpha=\frac14$ and $T=Y^{3/2}$: the interval $[Y^{9/8},Y^{3/2}]$ lies in $[Y,Y^{3/2}]$, where
$f(x)\le-x^\theta<0$. This is a contradiction when $Y$ is large. The argument does not need the supremum
$\Theta$ to be attained. It explains the shape of the intervals: any intervals $[Y,Y^{1+c}]$ with a fixed
$c>0$ would do.
The Lean development proves the lemma by high derivatives of $F$; Part~II, \S1 gives a version of that
argument.
\end{altbox}
\textbf{Conclusion of step 1.} To prove the Riemann hypothesis it suffices to show: for every
$\varepsilon>0$ there are arbitrarily large $Y$ with $G(x)\le x^{1/2+\varepsilon}$ throughout
$[Y,Y^{3/2}]$. (Zeros come in pairs $\rho$, $1-\rho$, so no zeros to the right of the line means none to the
left.) \emph{From now on the goal is an upper bound for a sum over primes.}
\section{Chebyshev's method, and where it stalls}
\textbf{The method.} Let $N=\binom{2n}{n}$. Every prime $p$ with $n
0$ is a \emph{weight} attached to another place: the one reached from the given place by the
Frobenius automorphism of $p^h$ followed by complex conjugation. The display keeps only the main term. The
statement proved in the source is an inequality for sums of such exponents over the $m$ lifts and over the
places, with several loss terms: from the digits of the integers involved, from repeated visits of a
Frobenius orbit to the same place, and from indices of lattices (Part II, \S6.4) \quoted\ (see \S III.5 for what is proved).
\textbf{The Frobenius and the places.} The field $E$ lies inside a field generated by roots of unity. The
Frobenius of $p$ is the automorphism of $E$ induced by raising those roots of unity to the $p$th power. It
permutes the $4n$ embeddings of $E$, and it depends only on residue classes of $p$. The $2n$ places are
chosen embeddings, one from each pair of complex conjugates. At a prime that is inert in $\Q(\sqrt{-d})$ an
odd power of the Frobenius carries each chosen embedding to one that is not chosen; composing with complex
conjugation brings it back. This is the reason for the conjugation above. Since the Frobenius
depends only on a residue class of $p^h$, residue classes of prime powers will appear in \S I.5.
\textbf{Where the subtraction of $w$ comes from.} The polynomial $P$ is a product, over the $2n$ places, of
minors (determinants of sub-matrices) of the matrix variable at each place. Its shape at each place is
described by a diagram of boxes. At the chosen place the diagram has a first row of length about $a$. At
another place $\tau'$ the polynomial contains about $w_{\tau'}$ minors, where $w_{\tau'}$ is the weight
parameter at $\tau'$. At the scale $p^h$ the Frobenius links the chosen place to the place $\tau_h$, and each
minor there can absorb only one derivative in a linked direction: in $\det(X+sb,\ Y+tb)$ there is no term in
$st$, $s^2$ or $t^2$. Each derivative absorbed at $\tau_h$ costs one unit of the gain at the scale $p^h$. There are
about $w_h$ minors at $\tau_h$, each absorbing at most one, and at most $a/p^h$ units are available; so the
loss at that scale is at most $\min(a/p^h,w_h)$, and what survives is $(a/p^h-w_h)_+$ (Part II, \eqref{II:t6.1}).
In the simplest case (a single index; Part II, \eqref{II:t6.1a}) the loss comes from the digits of the integers involved, by Legendre's
formula, and is of size $O((\log a)^2)$ for each prime (Part II, \S6.4). The losses in the statement the
source proves are larger and of several kinds, as said above.
\textbf{Example.} Take $a=81$, $p=3$, and $w_h=2$ for all $h$.
\begin{center}\small
\begin{tabular}{c|rrrr}
\toprule
$h$ & $1$ & $3$ & $5$ & $7$\\
\midrule
$p^h$ & $3$ & $27$ & $243$ & $2187$\\
$a/p^h$ & $27$ & $3$ & $0.33$ & $0.04$\\
$a/p^h-w$ & $25$ & $1$ & $-1.67$ & $-1.96$\\
$(a/p^h-w)_+$ & $25$ & $1$ & $0$ & $0$\\
\bottomrule
\end{tabular}
\end{center}
\noindent The exponent is at least $25+1=26$, up to the losses. Every term with $p^h>a/w=40.5$ is zero.
\textbf{The choice of $a$ and $w$, and what it achieves.} Let $x$ be the scale at which we want information
about primes. Put
\begin{equation}\label{D:20}
b=\exp(x^\varepsilon),\qquad w\approx b,\qquad a\approx xb .
\end{equation}
Then $a/w\approx x$, and the elementary identity
\begin{equation}\label{ramp}
\Big(\frac a{p^h}-w\Big)_+=w\,\Big(\frac{x}{p^h}-1\Big)_+\qquad(x=a/w)
\end{equation}
shows what has been gained. (In the example, $x=40.5$ and for $p^h=3$ the right side is
$2\cdot(40.5/3-1)=25$.)
\begin{itemize}
\item \emph{Only prime powers up to $x$ are involved,} at the places that carry the weight $b$. The right
side of \eqref{ramp} vanishes for $p^h\ge x$. Although we differentiate about $xb$ times, the primes that
matter at those places are those below $x$. (At the places with small weights the cut-off is much larger;
see below.)
\item \emph{The kernel is the ramp of \S I.1.} The factor $(x/p^h-1)_+$ is exactly the weight with which
prime powers enter $G(x)$. This is where the smoothing in the definition of $G$ comes from.
\item \emph{Rounding becomes invisible.} Each prime power below $x$ now contributes about $b$ times its
ramp value. The bound \eqref{expo} is used only where its main term is positive; elsewhere one uses only
that the exponent is not negative, which is the integrality of the entries. The loss terms are of lower
order, and after dividing the whole inequality by $b$ they are absorbed in the error of (M). The
precise accounting is part of the quoted statement. This removes defect (D1), and with it the
floor-function problem of \S I.2.
\end{itemize}
\textbf{Why $b$ must be exponentially large.} To defeat rounding, a power of $x$ would do.
One other step needs more. There are $2n$ places and each needs a weight, but only some of them can
be given the weight $b$ (the columns that carry it form the set $T_2$ constructed in \S III.3). The others are given very small weights $w'$, so that they test primes at a scale
$a/w'\ge\frac13\exp(x^{\varepsilon/3})$; only at such a scale is the distribution of primes in the relevant
progressions known unconditionally with a good error term (\S I.6(b)). The weights in the construction are positive integers, so
$w'\ge1$; this forces $a\ge\frac13\exp(x^{\varepsilon/3})$, and hence $b$ exponential in a power of $x$. The size of $b$ also enters the control of denominators (\S I.7).
What is bounded there is a weighted sum of logarithms of orders, $\sum_\ell\log\ell\sum_ah_{\ell,a}$ in the
notation of Part II, \S6.8, and $b$ is chosen so that the available bound is at most $\sqrt b$. After division
by $b$ this is negligible.
\subsection*{I.4.4\quad Repair of (D2): characters, and a table}
\textbf{Only inert primes: use a character.} Let $d$ be a prime with $d\equiv3\bmod4$ and let
$\chi_d(r)=(r/d)$ be the Legendre symbol. The primes inert in $\Q(\sqrt{-d})$ are those with
$\chi_d(p)=-1$. A sum over odd powers of inert primes is a sum over all prime powers with the coefficient
$1-\chi_d(r)$:
\begin{equation}\label{D:22}
1-\chi_d(p^h)=\begin{cases}2,& p \text{ inert},\ h\text{ odd},\\ 0,&\text{all other prime powers with } p\ne d.\end{cases}
\end{equation}
(With this coefficient $2$ the sum matches the factor $2$ in $2e\log p$ of \S I.4.2(ii).) So the divisibility side is
$\sum_r\Lambda(r)\,(1-\chi_d(r))\,(\cdots)$: the sum for $\zeta$ \emph{minus} the sum for $L(s,\chi_d)$. To
isolate $\zeta$ one must know that the $\chi_d$-sum is small. This is arranged by choosing $d$ well
(\S I.6(e)), and it is not circular.
\textbf{Many places: a table.} By \eqref{expo} the weight met by a prime power $r=p^h$ depends on the place
to which the Frobenius of $r$ leads. The field used in the proof is
\begin{equation}\label{D:23}
E=\Q\big(\zeta_N+\zeta_N^{-1},\ \sqrt{-q},\ \sqrt{-d}\big),\qquad \zeta_N=e^{2\pi i/N},\quad N=4n,
\end{equation}
with $n$ a large power of $2$ and $q\equiv3\bmod4$ a second auxiliary prime. Starting from the fixed place, the place reached by a prime power $r$ is determined by
two things: the residue class of $r$ modulo $N$ up to sign (the Frobenius sends $\zeta_N+\zeta_N^{-1}$ to
$\zeta_N^r+\zeta_N^{-r}$), and the quadratic symbol $\chi_q(r)$ (the Frobenius multiplies $\sqrt{-q}$ by $\chi_q(r)$; the complex conjugation, which enters for the odd powers of inert primes that contribute here, then changes its sign, which only interchanges the names of the two rows). For general $r$ prime to $2q$ this is a labelling of residue classes; the prime $d$ itself is treated separately, with coefficient $\log d$ (Part II, \S4.1). So the places can be arranged in a \emph{table}, with two rows (the value of $\chi_q$) and
$n$ columns (the residue class), and each prime power is assigned to a cell of the table. The inequality
that comes out of the construction, stated in \S I.5, is a bound for a sum over prime powers in which each
prime power carries the weight of its cell. \S I.6 then removes the dependence on the cell by averaging.
\subsection*{I.4.5\quad What the reader can check, and what is quoted}
\begin{center}\small
\begin{tabular}{p{.62\textwidth}p{.3\textwidth}}
\toprule
Statement in this section & Status\\
\midrule
$T_n$, the period $\varpi$, the rational numbers $r_k$, the size of $T_n$ & computed; script \texttt{e6\_hecke\_theta.py}\\
$\|z^a\|^2=a!$ and inequality \eqref{CS} & proved above\\
Identity \eqref{ramp} and the example $a=81$ & elementary\\
Leading terms agree: $\sum_{p\text{ inert}}\frac{2a}p\log p=a\log a+O(a)$ & Mertens' theorem in progressions\\
A determinant absorbs one derivative per direction; the factorial count & proved in Part II, \S6.4\\
The entries of the lift are the numbers \eqref{entry} & quoted\\
The exponent bound \eqref{expo} for the theta series of the proof & written up in \S III.5, conditionally on the integrality of the theta kernels in the coordinates of the height-two logarithm (hypothesis (B)), which is taken from the Lean development\\
\bottomrule
\end{tabular}
\end{center}
\section{The inequality that comes out}
Here is the statement. It has the form: there exist data (weights, two sets of columns, integers $m$, $k$)
with the properties listed, such that the inequality (M) holds. The properties are given here in outline and
exactly in Part II, \S4.2--4.3. The statement looks elaborate; the example after it shows that it is
elementary to state.
\textbf{Data.} Fix a small $\varepsilon>0$ and a scale $x$. Let $q\equiv3\bmod8$ and $d\equiv7\bmod16$ be
primes with $q\mid d+1$ (how they are chosen: \S I.6). They are very large: $\log q$ is about $Y^{\varepsilon/5}$ and $\log d$ about
$Y^{\varepsilon/5}(\log Y)^2$, where $Y$ is the scale at which the pair is chosen; $x^{1/J}\le Y\le x$ with
$J\ge1$ depending on $\varepsilon$ only (\S I.6(e); Part III, \S\ref{as:sec}, \S7).
Let $n$ be a power of $2$ with $x^{2+8\varepsilon}\le n\le2x^{2+8\varepsilon}$, and $N=4n$. Let $H$ be the group of odd residue classes modulo $N$ with $r$ and $-r$ identified; it
has $n$ elements, written $[r]$. Let $b=\exp(x^\varepsilon)$.
\textbf{The table.} Picture a table with two rows $v\in\{0,1\}$ and $n$ columns indexed by $H$. An odd
prime power $r=p^h$, $p\ne q$, is assigned to the cell
\begin{equation}\label{D:24}
\text{row } v(r)=\tfrac12(1+\chi_q(r)),\qquad\text{column } [r] .
\end{equation}
The $2n$ cells are the $2n$ places of \S I.4.3. Each cell $i$ carries a positive weight $w_i$. A cell of row $1$ is \emph{distinguished} when its column lies in a set of columns of density $\delta$; its weight
is then (very nearly) $b$. All other weights are tiny by comparison: so small that $a/w_i\ge\frac13\exp(x^{\varepsilon/3})$.
\textbf{The prime sum and its main term.} For a derivative order $a$ with $|a/b-x|\le1$ (it depends on the label $t$ introduced below, and is written
$a_t$ in Part II), put
\begin{align}\label{D:25}
P&=\sum_{p\ne2,q}\ \sum_{h\ge1}\big(1-\chi_d(p^h)\big)\log p\,
\Big(\frac a{p^h}-w_{\mathrm{cell}(p^h)}\Big)_+ ,\\
M&=a\Big(\log a-1-\gamma+\frac{L'}{L}(1,\chi_d)-\langle\log w\rangle\Big),
\end{align}
where $\langle\log w\rangle$ is the average of $\log w_i$ over the $2n$ cells. $P$ is the divisibility side:
by \eqref{ramp} it is a sum of ramps, one for each cell, at the scale $a/w_i$. $M$ is its expected value
if primes were perfectly distributed among the cells (\S I.6(a); proved in Part II, \S5.1). So $P-M$ measures the
irregularity of primes in the cells of the table, at the scales $a/w_i$.
The primes $2$ and $q$ can be omitted without changing anything: $d\equiv7\bmod8$ gives $\chi_d(2)=1$, and
$q\mid d+1$ gives $\chi_d(q)=1$ by quadratic reciprocity, so the coefficient $1-\chi_d$ vanishes on their
powers. This is what the congruence conditions on $q$ and $d$ are for (Part II, \S4.1). (The powers of $d$
do occur, with coefficient $\log d$, but only at the large scale, since $d>x$.)
\textbf{The inequality.} The construction depends on three further choices: a translate $u\in H$ (which
moves the distinguished cells to other columns), a label $t$ in a set $T\subset H$ (which shifts the column
of every prime power), and an index $j=1,\dots,m$ numbering the $m$ repetitions. Write $P_{u,t,j}$,
$M_{u,t,j}$ accordingly.
\begin{equation}\label{D:26}\tag{M}
\boxed{\ \frac1n\sum_{u\in H}\ \sum_{t\in T}\ \sum_{j=1}^m\big(P_{u,t,j}-M_{u,t,j}\big)\ \le\ \mathcal E,
\qquad \frac{\mathcal E}{B}\le x^{C\varepsilon}\Big(\frac xm+\frac{xm}{k}+m+\frac k{n^2}\Big)\ }
\end{equation}
Here $B=|T|\,m\,b\,\delta/2$ is the natural normalisation ($\delta$ is the proportion of distinguished
columns), $k$ is a further parameter of the construction (a rank), and $C$ is an absolute constant. The
inequality is asserted for $x\ge x_0(\varepsilon)$ \quoted.
In words: \emph{on average over translates, the primes are not more numerous than expected in the
table, up to the four errors shown.} It is an upper bound, as every instance of \eqref{det} is.
The set $T$ and the set of distinguished columns (called $T_2$ in Parts II and III) are constructed in
Part III, \S III.3; how the construction uses them is part of the quoted statement.
More precisely: there are intervals $[Z,Z^{3/2}]$ with $Z$ arbitrarily large such that for every $x$ in
them the construction provides primes $q,d$ for which Estimates B and C hold at $x$ (\S I.6(e)), chosen at
a scale $Y$ with $x^{1/J}\le Y\le x$, where $J\ge1$ depends on $\varepsilon$ only, and
$m=x^{1/2+O(\varepsilon)}$, $k=x^{9/2+O(\varepsilon)}$,
sets $T$, $T_2$ with $|T_2|/n=\delta\ge x^{-\varepsilon}$ and $|T|/n\ge\frac12x^{-\varepsilon/8}$, orders $a_t$
and weights as above, for which (M) holds. The constants $C$ and $x_0(\varepsilon)$ do not depend on $x$,
$Y$, $q$, $d$. This is what Part III, \S\ref{as:sec} states exactly, as Hypothesis (H12); it is assumed
there.
\textbf{A table small enough to write out.} Take $q=11$, $d=1319$, $N=16$, so $n=4$ and
$H=\{[1],[3],[5],[7]\}$. These primes satisfy the congruences: $q\equiv3\bmod8$, $d\equiv7\bmod16$, and
$q\mid d+1=1320$. The primes $3$, $5$, $7$ and $11$ are squares modulo $1319$, so they split in
$\Q(\sqrt{-1319})$ and have coefficient $0$. The prime $23$ is a square modulo $11$ and $23\equiv7\bmod16$: it
goes in row $1$, column $[7]$, with coefficient $2\log23$ because $23$ is a non-square modulo $1319$. The
primes up to $61$ with non-zero coefficient fall as follows.
\begin{equation}\label{D:27}
\begin{array}{c|cccc}
v\backslash\text{column} &[1]&[3]&[5]&[7]\\ \hline
0&17&13,\,29,\,61& - &41\\
1&47& - &37,\,59&23
\end{array}
\end{equation}
With $x=1000$, $b=10$, $a=10^4$, weight $10$ in cell $(1,[1])$ and $0.05$ elsewhere, summing over the prime powers
gives $P=84701.032$ and $M=84463.394$: the excess $P-M$ is $237.64$, against a main term of nearly $10^5$.
Moving the distinguished cell to the other three columns gives excesses $-300.26$, $-176.73$, $229.13$.
The mean of the four excesses is $-2.55$. (The example only
illustrates the identities, which hold for any positive weights. Its parameters do not satisfy all the
conditions under which (M) is proved. There $x$ is large, $q$ and $d$ exceed a bound that depends on the
ranks of the construction and is at least $541$ (here $q=11$ is too small), the odd primes up to a bound
that is at least $11$ split in $\Q(\sqrt{-d})$ (here they do up to $11$, but $13$ is inert), the construction
even asks that they divide $d+1$ (here $7\nmid1320$), and the weights are integers. See \S III.10. The first version of this paper used $q=3$, $d=23$, which violates
more of these conditions.)
\section{From the table to $G(x)$}
This step is classical analytic number theory, and it is proved in full, from (M), B and C, in Part II, \S4--5.
Here are the ideas.
\textbf{(a) Each cell is an arithmetic progression.} The prime powers in a given cell are those in one pair
of residue classes $\pm c$ modulo $N$ with a prescribed value of $\chi_q$; the coefficient $1-\chi_d$ then
selects the odd powers of primes inert in $\Q(\sqrt{-d})$. For fixed moduli and scale tending to infinity,
the prime number theorem in progressions gives each cell the fraction $1/(2n)$ of the primes, half of them
inert, and $M$ is defined as the resulting main term, with its constants. The identity
$P-M=\sum_iw_iR_i(a/w_i)$, where $R_i(y)$ is the remainder of cell $i$ at scale $y$ (Part II, \eqref{II:t5.2}), is then
exact (Part II, \eqref{II:t5.3}). No uniformity is claimed at this point. At the scale $x$ there are far more cells
than primes, and a single $R_i(x)$ need not be small; the argument uses only the average over translates
in (c). At the large scale the uniformity is Estimate C.
\textbf{(b) Two scales.} A cell with weight $w_i$ tests primes up to $a/w_i$. For a distinguished cell this
is $a/b\approx x$: the scale we care about. For every other cell it is at least $\frac13\exp(x^{\varepsilon/3})$,
an enormous scale. \emph{Why arrange this?} The construction needs weights on all $2n$ cells, but we want
information at scale $x$ only. At the enormous scale the distribution of primes in these progressions can be controlled with a saving
better than any power of $x$. This is Estimate C below. It rests on the classical zero-free region for
Dirichlet $L$-functions; it is available because $\log q$ and $\log d$ are much smaller than
$x^{\varepsilon/3}$, and because $q$ and $d$ are chosen so that no exceptional real zero interferes. So those
cells contribute a negligible amount. In the example they account for $0.15$ of the mean excess $-2.55$.
\textbf{(c) Averaging over translates.} As $u$ runs over $H$, the distinguished cells visit every column
equally often. So the average over $u$ no longer sees the residue class modulo $N$. It sees only the two
quadratic conditions: row $1$ means $\chi_q(r)=1$, and the coefficient is $1-\chi_d(r)$. The average of the
distinguished part is therefore
\begin{equation}\label{D:28}
\frac{\delta b}{2}\sum_{r\le x}\Lambda(r)\big(1+\chi_q(r)\big)\big(1-\chi_d(r)\big)\Big(\frac xr-1\Big)
\quad\text{minus its main term.}
\end{equation}
In the example this accounts for the other $-2.70$ of the $-2.55$: it is $\frac{10}8R_{11,1319}(1000)$, with $R_{11,1319}(1000)=-2.163$ (Part~II, \S5.3).
\textbf{(d) Expanding the product.} Since $(1+\chi_q)(1-\chi_d)=1+\chi_q-\chi_d-\chi_q\chi_d$, the last
expression is $\frac{\delta b}2R_{q,d}(x)$ with
\begin{equation}\label{D:29}
R_{q,d}(x)=G(x)+G_{\chi_q}(x)-G_{\chi_d}(x)-G_{\chi_q\chi_d}(x),
\end{equation}
where, for a primitive character $\chi\ne1$, $G_\chi(x)=\sum_{r\le x}\Lambda(r)\chi(r)(x/r-1)+x\,\frac{L'}L(1,\chi)$ is the analogue of $G$ for
$L(s,\chi)$. \emph{The function $G$ appears with coefficient $+1$.} (The construction gives this at the scale $a/b$,
with $|a/b-x|\le1$; the passage to $x$ costs $O(1+\log x)$, see Part II, \S5.4.) Dividing (M) by $B$, and using Estimates B
and C below to bound the error terms (Part II, \S5.4), gives:
\begin{thmA} Let $x$ be a point of one of the intervals of \S I.5, with its primes $q,d$. For the parameters
of the construction at $x$, with $m=x^{1/2+O(\varepsilon)}$, $k=x^{9/2+O(\varepsilon)}$, $n=x^{2+O(\varepsilon)}$ (exactly: $m\asymp x^{1/2-\varepsilon/16}$, $k\asymp x^{9/2+10\varepsilon}$, $n\asymp x^{2+8\varepsilon}$),
\begin{equation}\label{D:30}
R_{q,d}(x)\ \le\ x^{C\varepsilon}\Big(\frac xm+\frac{xm}k+m+\frac k{n^2}\Big)\ \le\ x^{1/2+C'\varepsilon}
\qquad(x\ge x_0(\varepsilon)).
\end{equation}
\end{thmA}
\textbf{(e) The three twisted sums.} To pass from $R_{q,d}$ to $G$ we need:
\begin{thmB} Let $0<\varepsilon<\frac1{52}$. For all large $Y$ there are primes $q\equiv3\bmod8$, $d\equiv7\bmod16$ with $q\mid d+1$, $\log q\asymp Y^{\varepsilon/5}$, $\log d\asymp Y^{\varepsilon/5}(\log Y)^2$, such that $|G_\chi(x)|\le x^{1/2+\varepsilon}$ for
$\chi=\chi_q,\ \chi_d,\ \chi_q\chi_d$ and all $x$ in the interval $[Y,Y^{3/2}]$. (Proved in Part III as Theorem~\ref{thm:pair}(d), in a
stronger form: exponent $\frac12+\frac\varepsilon2$, and any interval $[Y,Y^A]$. With $A=J$ this covers every
$x$ with $x^{1/J}\le Y\le x$, as in \S I.5.)
\end{thmB}
\begin{thmC} For the same primes $q$, $d$ and every $x\in[Y,Y^{3/2}]$, $Y$ large, every one of the $4n$ primitive Dirichlet characters $\chi$ that occur when
the cells of the table are expanded in characters (their conductors divide $4nqd$) satisfies
$|G_\chi(y)|\le y\exp(-\kappa x^{\varepsilon/8})$ for all $y\ge\frac13\exp(x^{\varepsilon/3})$, with a constant
$\kappa>0$; here $G_\chi=G$ for the trivial character. (Proved in Part III as Theorem~\ref{thm:C}, where $\kappa$ is called $c'$ and may be any positive number
once $x$ is large. The proof uses a further property of $q$ and $d$, part (e) of Theorem~\ref{thm:pair}.
The hypotheses of that theorem hold for every $x\ge Y$ once $Y$ is large, so the estimate holds as well for every $x$ with $x^{1/J}\le Y\le x$, as in \S I.5.)
\end{thmC}
\emph{Is this circular?} It looks like assuming the Riemann hypothesis for three $L$-functions. It is not,
for a reason of scale. The moduli $q$ and $d$ are astronomically larger than $x$: their logarithms are
powers of $x$. The quantity $G_\chi(x)$ has two parts. One is the constant $\frac{L'}L(1,\chi)$, an infinite
sum over prime powers. The other is the finite sum over $r\le x$. The tail of the constant beyond $Z=Y^{600}$ is shown to be small using a zero-density estimate for
zeros close to the line $\re s=1$; this discards a small proportion of the moduli, and uses nothing about
zeros near $\re s=\frac12$. What remains is a sum over $r\le Z$, which is still very short compared
with $q$ and $d$. Mean-square estimates over the modulus show that for \emph{most} pairs $(q,d)$ such a sum
is as small as a random sum, about $\sqrt x$. One only needs one good pair. For C see (b) above. Estimates B and C are proved in Part III,
from standard theorems on Dirichlet $L$-functions that are cited there.
\textbf{Conclusion.} From A and B (A itself uses (M), B and C): $G(x)\le R_{q,d}(x)+3x^{1/2+\varepsilon}\le x^{1/2+C''\varepsilon}$ on
the interval. By \S I.1 this proves the Riemann hypothesis.
\section[Where (M) comes from]{Where the main inequality (M) comes from}
This is the part quoted from the Lean development; Part III has begun its proof: \S III.4 (the analytic part
of item 2 below) and \S III.5 (item 1 below, conditionally on one hypothesis from the Lean development).
Sections III.6--III.9 prove further steps, each from named statements of the Lean development, which are
quoted: the passage from derivatives to lattices, in part (\S III.6); the deduction of the size inequality
from eleven inputs (\S III.7); the deduction of the dimension bound of item 3 from three statements
(\S III.8); and the step from the bound for Galois cohomology to the bound for denominators (\S III.9). The
table at the start of Part III says what each section proves, proves conditionally, or quotes. The
construction of the maps and weights is not proved: Part III, \S\ref{ob:sec} defines the objects and takes
their existence from the Lean development, as seven numbered hypotheses. The assembly is written as a reduction: Part III, \S\ref{as:sec} deduces (M), at one scale, from twelve numbered hypotheses, and the Riemann hypothesis from these and a thirteenth. None of the hypotheses is proved outright, and (M) is still not proved. We describe the objects and the three things that have
to be proved about them.
\textbf{Theta series.} A theta series counts representations by a quadratic form. For the form $a^2+b^2$,
\begin{equation}\label{D:31}
\Theta(z)=\sum_{a,b\in\Z}s^{a^2+b^2}=1+4s+4s^2+4s^4+8s^5+\cdots,\qquad s=e^{2\pi iz}.
\end{equation}
Theta series have two properties at once: they are sums over a
lattice, so their coefficients are integers with arithmetic meaning; and they are Gaussian in nature
(the terms have absolute value $e^{-2\pi y(a^2+b^2)}$, where $y$ is the imaginary part of $z$), so their sizes are governed by Gaussian integrals. These are the two
properties needed in \S I.4: divisibility of derivatives (\S I.4.1) and Gaussian size (the repair of (D3), \S I.4.2).
\textbf{A theta lift} is a map defined by a theta series in two sets of variables, used as the kernel
of an integral: $(\mathcal Tf)(h)=\int\Theta(g,h)\overline{f(g)}\,dg$. (It is conjugate-linear in $f$.) We describe the
case in which both groups are \emph{definite unitary groups}, for which everything is finite. (In the
construction some of the groups are not compact; Part III, \S\ref{ob:sec} gives the classical form for the
definite ones only.) In the definite case a ``function on the group'' is a function on
a finite set of lattices $L_1,\dots,L_c$ (the classes in a genus), the integral is a finite sum weighted by
$1/|\mathrm{Aut}\,L_i|$, and $\mathcal T$ is a matrix. Its entries are derivatives, at the origin, of the
theta series attached to pairs of lattices. So \emph{a theta lift is a matrix of derivatives of theta
functions}, between two spaces that carry natural integer lattices (functions with integer values) and
natural norms.
\textbf{The role of \eqref{det}.} Let $\mathcal T:L\to M$ be an injective linear map between lattices in
Euclidean spaces. If $\mathcal T(L)\subset p^eM$ for some prime power, then, comparing volumes,
\begin{equation}\label{slope}
e\log p\ \le\ \log\|\mathcal T\|+\mu_{\max}(M)-\mu(L),
\end{equation}
where $\|\mathcal T\|$ is the operator norm and $\mu=-\frac1{\mathrm{rank}}\log(\text{covolume})$ is the
\emph{slope} of a lattice ($\mu_{\max}$: the largest slope of a sublattice). For $L=M=\Z$ this is
\eqref{det}. In the construction the lattices are modules over the integers of a field with complex
multiplication, and one works with squared norms: \eqref{slope} is doubled, so that $2e\log p$ is compared
with $\log\|\mathcal T\|^2$, as in \S I.4. Three things must be established.
\textbf{1. Divisibility.} \emph{The matrix of the lift is divisible by $p^{e}$ with $e$ of the form
$\sum_{h\text{ odd}}(a/p^h-w)_+$ at inert primes.} The mechanism is that of \S I.3, applied to theta functions of lattices over a field with complex
multiplication: derivatives of order $a$ gain $a(1/p+1/p^3+\cdots)$. The subtraction of $w$ has an elementary source, explained in \S I.4.3:
each minor can absorb only one derivative in a given direction. Composing $m$ lifts multiplies the matrices, so
the exponents add: this is the analogue of a function vanishing to order $m$ in Stepanov's proof of the
Riemann hypothesis for curves over finite fields. The divisibility at inert primes is written up in \S III.5, conditionally on the integrality of the theta kernels in the coordinates of the height-two logarithm (hypothesis (B)), which is taken from the Lean development. The passage from this estimate to lattices is the subject of \S III.6. Proved there: the lemmas on slopes of lattices, the form of the prime sum and its splitting by classes of primes, and bounds for several of its terms. The theorem on the glued lattice is conditional on two statements of the Lean development. The bounds for the eleven loss sums and for their total are quoted, and so is the statement on valuations itself.
\textbf{2. Size.} \emph{The squared norm of the lift has logarithm at most
$a(\log a-1-\log\Omega_E)+\cdots$, with the linear term known exactly.} The leading term is the Gaussian
integral $\|z^a\|^2=a!$. The constants $\Omega$ and $\Omega_E$ are \emph{periods}: $\Omega$ belongs to an elliptic curve, and
$\Omega_E$, defined below, to the field $E$. A derivative with respect to the algebraic invariant differential
and one with respect to the analytic variable differ by a constant factor, the period; an $a$th derivative
acquires its $a$th power, and $\Omega$ is the square of that factor. Its value is
\begin{equation}\label{D:33}
\log\Omega=\gamma+\log\frac{2\pi}{\sqrt d}-\frac{L'}{L}(1,\chi_d).
\end{equation}
In this form the identity is Kronecker's limit formula; $\Omega$ is then a geometric mean, over the ideal
classes of $\Q(\sqrt{-d})$, of squared periods of the corresponding elliptic curves. Expressing it through
values of the Gamma function is the formula of Lerch and of Chowla and Selberg \cite{CS67}, whose name the
source uses. For the field $\Q(i)$, with $d$ replaced by $4$ and $\chi_d$ by the character modulo $4$, exponentiating this formula gives $\Omega=2\pi(\varpi/\pi)^2=\Gamma(\tfrac14)^4/(4\pi^2)$ exactly:
that is $2\pi$ times the square of the factor $\varpi/\pi$ met in \S I.4.1.
The constant $\Omega$ above is the period for the elliptic curve. The constant that enters the size bound
for the field $E$ is $\Omega_E$, with
\begin{equation}\label{D:34}
\log\Omega_E=\log\Omega-\log\frac{\mathrm{rd}_E}{\sqrt d}
=\gamma+\log\frac{2\pi}{\mathrm{rd}_E}-\frac{L'}{L}(1,\chi_d),
\end{equation}
where $\mathrm{rd}_E$ is the root discriminant of $E$. Part II, \S6.6 gives both normalisations; the
cancellation of the linear terms is the same.
This is how $\gamma$ and $L'/L(1,\chi_d)$ enter the main term $M$. They are the same constants that
appear in the prime sum, by \S I.6(a); that the two sides produce the same linear term is the reason
the method can work at all. The remaining linear terms come from the slopes in \eqref{slope}: the number of
lattice classes counted with weights $1/|\mathrm{Aut}|$ (the Siegel mass formula) and the dimensions of the spaces (the Weyl dimension formula).
After an exact cancellation of factorials, the total is $M$.
\textbf{3. Denominators and rank.} Two things can spoil \eqref{slope}.
\begin{itemize}
\item \emph{Denominators.} The lift need not map integer-valued functions to integer-valued functions; one
must find the right lattices. They are assembled prime by prime, using the freedom to twist the lift by
characters. Comparing these choices costs an error at each lift. A quoted comparison bounds the total error
at each lift in terms of the lengths of certain Galois cohomology groups of the field (generalisations of
class groups); Proposition~G2 of \S III.9 combines it with the bound for those lengths. A bound, by $\sqrt b$, for the logarithm of the product of the orders of these groups
(over all primes $\ell$ and all twists up to $x^{400}$) is proved
separately in the Lean development (it is quoted here); it uses the theory of automorphic forms and Galois representations, and is a large part of the
formal development. Part III, \S III.9 proves the step from this bound and the quoted comparison to the bound for denominators, and
the vanishing of the groups in some cases over $\Q$ from cited theorems; the bound itself is quoted, with
an account of its proof in the Lean development.
\item \emph{Rank.} A single map of small rank controls only the \emph{maximal} slope of its target, which
can be far from the average and would lose the main term. One therefore uses many maps. Their images cannot
all be perpendicular to one another: the dimensions of the images add up to more than the dimension of the
target. What is
shown is a bound for their total overlap (a second moment; a trace formula gives it). It says that the images
are spread evenly: the weighted sum, over the maps, of the adjoint of the map followed by the map is close
in mean square to a multiple of the identity of the target. A lemma of linear
algebra then says the images fill almost the whole target, so that the \emph{mean} slope is controlled.
Part III, \S III.8 proves that the dimension bound of this lemma follows from three statements of the Lean
development (on traces, ranks and pairings) and stated size conditions; the three statements, and the
theorems behind them, are quoted.
\end{itemize}
\textbf{The elementary parts.} Several steps in this section are elementary and are proved, with worked
examples, in Part II, \S6: the persistence of integrality through a chain of maps;
the minor congruence; the factorial count (from Legendre's formula) giving the gain
$a\,p/(p^2-1)$; the Gaussian norm; the cancellation that leaves $M$; the elementary slope
inequality; and the linear-algebra lemma on images that are spread evenly in this sense.
The analytic part of the size estimate is proved in part in Part III, \S III.4: the Gaussian bound for one
block, for one map and for a chain, with four passages conditional on inputs from the Lean development.
Part III, \S III.7 proves that the size inequality \eqref{III:sizefinal} follows from eleven named inputs,
and that an index-corrected mean of periods equals $\log\Omega_E$ under hypotheses stated there. The eleven
inputs are quoted, among them the inner-product formula, the covolumes and the local index bounds. So the
size bound itself (Part II, \eqref{II:t6.5}, first line) remains quoted.
\section{Why the exponent is one half}
After division by $B$, the errors in (M) are, up to factors $x^{C\varepsilon}$,
\begin{equation}\label{D:35}
\frac xm\qquad\frac{xm}{k}\qquad m\qquad\frac k{n^2}.
\end{equation}
\begin{itemize}
\item $x/m$: errors made \emph{once}, in the sizes of the lattices at the two ends of the chain of maps. The gain from divisibility
is collected $m$ times, so these are divided by $m$. This is why one composes many lifts.
\item $m$: errors accumulated over the $m$ steps. The budget of each step (ranks, weights, denominators) itself grows in proportion to $m$, so the total is of order $m^2$ before normalisation; the factor $m$ contained in $B$ leaves $m$.
\item $xm/k$ and $k/n^2$: costs of the auxiliary parameters $k$ (the rank) and $n$ (the size of the table).
With $k\approx x^{9/2}$ and $n\approx x^2$ the first is negligible ($x^{-3}$) and the second is again of
order $\sqrt x$.
\end{itemize}
The terms $x/m$ and $m$ are balanced when $m\approx\sqrt x$, and both equal $\sqrt x$. \emph{That is where the
exponent $\frac12$ comes from.} If the second cost were $m^2$ instead of $m$ after normalisation, one would have $x/m+m^2$, balanced at
$m=x^{1/3}$, and the same analytic argument would give only that $\zeta(s)\ne0$ for $\re s>\frac23$, provided the corresponding inequality could be proved with the other errors below $x^{2/3+\varepsilon}$. (Whether such an inequality can be proved without the estimate for Galois cohomology is a separate question, which we do not address.) So the precision of
the comparison of lattices is decisive.
\section{Dictionary with Alp\"oge's announcement}
The announcement\footnote{\url{https://alpo.ge/remark.pdf}, pages 3--4.} lists twenty steps, in the order in
which they were found between 6 October and 16 November 2026. It is a record of discovery, so it contains
earlier formulations and motivating ideas as well as steps of the final argument. This section says where
each step appears in this paper. The correspondence is our reading. For steps 1, 2, 5 and 7--20, and for the Poincar\'e bundle in step 3,
it rests on statements of the Lean development that were read in the course of this work. Steps 4 and 6,
and the rest of step 3, were not found in the Lean development and are matched from the description in the
announcement.
\textbf{Steps that are in this paper.}
\begin{center}\small
\begin{tabular}{rp{.43\textwidth}p{.43\textwidth}}
\toprule
& Step in the announcement & In this paper\\
\midrule
1 & Stepanov determinant & \S I.2: a nonzero integer divisible by $\prod p^{e_p}$ is at least that large, \eqref{det}; the model is Stepanov's count of points on curves\\
5 & Switch to $\sum_{n\le X}\Lambda(n)(X/n-1)-X\log X+(1+\gamma)X$ & \S I.1: this is $G(X)$\\
8 & Iterated theta lifts between totally definite unitary groups; a chain of length about $\sqrt X$ & \S I.7 (theta lift; composition); \S I.8 ($m\approx\sqrt x$); in the construction some of the groups are indefinite (\S\ref{ob:sec})\\
9 & Norms of the lifts; cancellation using Chowla--Selberg, Weyl, Siegel mass & \S I.7, ``Size''; Part II, \S6.6--6.7; the norms, in part: Part III, \S III.4; the size inequality from eleven quoted inputs: \S III.7\\
10 & Lower bound for the divisibility of the $m$-fold lift & \S I.4.3, \eqref{expo}; \S I.7, ``Divisibility''; written up in Part III, \S III.5, conditionally on the integrality of the theta kernels in the coordinates of the height-two logarithm (hypothesis (B)), which is taken from the Lean development; the passage to lattices, in part: \S III.6\\
12 & Seesaw: the period of the iterated lift is a Bessel period independent of the Hecke characters & \S I.7, ``Denominators'' (the freedom to twist by characters); Part II, \S6.8\\
13 & Bost slope inequality & \S I.7, the inequality for a map of lattices; the elementary case is proved in Part II, \S6.8; a form sufficient for the deduction of (M) is proved in Part III, \S\ref{as:sec}, Lemma~M3\\
14 & Cost of each lift; ``one would stop at $2/3$''; need for ``division'' & \S I.8: $x/m+m^2$ gives $\frac23$, $x/m+m$ gives $\frac12$\\
15 & Glue an integral structure across Hecke characters (a ``gcd'') & \S I.7, ``Denominators'': lattices assembled prime by prime; Part II, \S6.8\\
16 & Relative trace formula; approximate orthogonality & \S I.7, ``Rank''; Part II, \S6.9--6.10\\
17 & Classes in $H^1$ not killed by twisting; a weakening of Vandiver's conjecture & \S I.7, ``Denominators'': the bound by $\sqrt b$ for Galois cohomology; Part II, \S6.8\\
20 & GRH & here only $\zeta$, the case of the trivial character\\
\bottomrule
\end{tabular}
\end{center}
\textbf{Steps that appear here in another form, or only in part.}
\begin{itemize}
\item \emph{Step 2} (the invariant derivation $D$ on a curve with complex multiplication satisfies
$D^p\equiv0$ at an inert prime; divisibility of $D^a\,\Omega\cdot\theta(0)$). This is the idea of \S I.3 and
\S I.4.1: derivatives on such a curve, the period ($\varpi$ in \S I.4.1, $\Omega$ in \S I.7), and exponents involving odd powers of $p$ only.
For the lemniscate sine the stated exponent is a theorem: at an inert prime $p$ the $n$th derivative at zero,
$A_n=\mathrm{sl}^{(n)}(0)$, is divisible by $p^{\lfloor np/(p^2-1)\rfloor}$ (\S\ref{el:sec}). For the Weierstrass function
$\wp$ of the same curve a divisibility with this exponent, for the derivatives at zero of $\wp(z)-z^{-2}$ times a
simple factor, is in the literature: for an odd inert prime $p$, $n\ge2$ and $b\in\Z[i]$ prime to $p$, the
derivative of order $n$ times $(1-b^{n+2})(1-p^n)$ is divisible by $p^{\lfloor np/(p^2-1)\rfloor}$
(Katz \cite{Kat81}; Bannai and Kobayashi \cite[Thm.~5.1]{BK16}; we have not consulted
these papers, and the statement was compared with \cite{BK16} by a reviewer). For the theta function $\Theta$ of $\Z[i]$ in \S I.4.1 the exponent does not hold: the exponent we
computed is smaller, and for a closely related two-variable function Bannai and Kobayashi \cite{BK10} found
coefficients that are not integral at $p=7$ (also not consulted). So the object of the announcement is not that
theta function. For the lemniscate curve the first statement of the step, that the $p$-th power of the invariant derivation vanishes modulo an inert prime $p$, is Proposition~Le20a\,(ii) of \S\ref{el:sec}. For what is proved in this paper about the divisibility at an inert prime, see Part III,
\S III.5.
\item \emph{Steps 4 and 6} (positivity $W(f)\ge0$ in Weil's explicit formula, obtained from a determinant; a
zero-free region from such a positivity). These are an earlier form of our first step. In the final
argument the statement ``an upper bound excludes zeros'' is the Landau-type lemma of \S I.1.
\item \emph{Step 7} (determinants containing Gan--Gross--Prasad periods; interlacing weights). In the Lean
development the period pairing at the end of the chain of lifts is identified with a Bessel period (\S I.7;
Part II, \S6.2 and \S6.8; source file [19]), and a condition of interlacing on the weights governs the
passage between consecutive unitary groups (source file [23]). We do not use the Gan--Gross--Prasad
terminology in the text.
\item \emph{Steps 11 and 19} (an Iwasawa tower; a construction of Behrend). The tower is the field $E$ with
$n$ a large power of $2$, which gives the columns of the table (\S I.4.4, \S I.5). Behrend's construction
is used to choose the set $T_2$ of distinguished columns (Part II, \S4.2). The set is constructed in
Part III, \S III.3, following source file [27], which uses the sphere construction of Behrend as formalised
in Mathlib. (The definitions in [17] are an earlier formulation; the final theorem does not use them.) The announcement itself expects Behrend's construction to be unnecessary.
\item \emph{Step 18} (covolumes; the index of theta series; congruences between lifts and forms). These are
the slopes of the lattices in \S I.7. The elementary inequality for slopes is proved in Part II, \S6.8, and the forms used for (M) in Part III, \S\ref{as:sec} (Lemma~M3; Proposition~M4, from quoted statements and a cited fact on the filtration by slopes); the covolumes and the indices are quoted or assumed.
\end{itemize}
\textbf{A step largely absent from the final proof.} \emph{Step 3} (an identity $qN=M^k+R$; a quadric;
automorphy through a theta function on a sixfold cover of $\mathrm{GL}_5$; the Poincar\'e bundle). We found
no trace of the identity or of a sixfold cover in the Lean development (quadrics occur in some file names, in what appear to be unrelated lemmas on orbit measures); step 16 of the
announcement refers to them as ``a different half-plane argument''. A Poincar\'e bundle does occur in the archive, on an auxiliary abelian scheme, in a construction of the line
bundle whose section gives the theta kernel in algebraic coordinates (\S I.4.1; Part II, \S6.5). The
declaration we tested from that file is not among those the final theorem depends on, so we cannot say
that the final proof uses it.
\textbf{Steps of the proof that the announcement does not list.} The choice of the auxiliary primes $q$ and
$d$, with the three character sums and the zero-density and mean-square estimates that control them
(\S I.6(e)); the two scales, and the size of $b$ (\S I.4.3, \S I.6(b)); and the form of Landau's lemma on
intervals (\S I.1; Part II, \S1). These are in the Lean development; file names are given in Part II. The
first is proved in Part III, \S III.1, the estimate at the large scale in \S III.2, and the lemma in Part II, \S1.
\section{The same proof for Dirichlet $L$-functions}
The Lean proof treats all Dirichlet $L$-functions at once, and $\zeta$ is the case of the trivial character. This section says what changes for another character. It is described from the statements of the Lean development and is not worked out in this paper.
Let $\psi$ be a primitive Dirichlet character of conductor $M$. Its powers $1,\psi,\psi^2,\dots$ form a finite cyclic group; let $o$ be the number of distinct powers, that is, the order of $\psi$. For $1\le j\theta$; the Lean proof of the lemma has this case as a separate branch. The conclusion is: if for every $\varepsilon>0$ the bound $G^\psi(y)\le y^{1/2+\varepsilon}$ holds on intervals $[Y,Y^{3/2}]$ with $Y$ arbitrarily large, then $\zeta$ and every $L(s,\psi_j)$ have no zero with real part greater than $\frac12$. (For $o=1$ this is $G$ and $\zeta$.)
The rest changes as follows. The field $E$ is enlarged so that $\psi$ becomes one of its characters. The columns of the table are then indexed by a larger group: it consists of $o$ cosets of the subgroup on which the label coming from $\psi$ is trivial, and the common size of these cosets depends on how much $\psi$ shares with the residue classes modulo $4n$ (for the character $(\frac2\cdot)$ modulo $8$, for instance, the number of columns does not grow). The set $T$ is chosen with slightly different densities on different groups of columns; this is where the weight $\frac1{3o+1}$ comes from. Estimate B is needed for the twists $\xi\chi_q^i\chi_d^j$ of all characters $\xi$ modulo $M$, and Estimate C for the characters of the larger field; the theorems of \S III.1 and \S III.2 are stated in that generality. Everything else is the same: the main inequality (M), with its theta lifts, divisibility, size, trace formula and Galois cohomology, is the same construction for the larger field, and the passage from the table to one prime sum is the same computation with more characters.
\section{Notes on the literature}
This paper explains an argument due to Alp\"oge and Claude \cite{Alp26}. Apart from that argument it uses, or
quotes, results of many mathematicians. This section says which, and where. Two kinds of use should be
distinguished.
\textbf{(a) Published results used in the proofs given in this paper.}
\begin{itemize}
\item \emph{Chebyshev's method} (\S I.0, \S I.2): Chebyshev \cite{Che52}; the form with the middle binomial
coefficient is due to Erd\H{o}s \cite{Erd32}. The exponent of a prime in $n!$ is
due to Legendre \cite{Leg08}. Textbook accounts: \cite[Ch.~4]{Apo76}, \cite[Ch.~7]{Dav00}.
\item \emph{Landau's theorem} on Mellin transforms (or Dirichlet series) of functions of constant sign
(\S I.1): Landau \cite{Lan05}; see \cite[\S15.1]{MV07}. A second proof of the version on intervals, from a theorem of Kaczorowski and Pintz \cite{KP86} on changes of sign, is in \S I.1; we read the statement of that theorem, the beginning of its proof and its last step, and a reviewer compared the statement with the article. The version on intervals (Part II, \S1) is proved in
full in this paper, following the Lean development.
\item \emph{The explicit formula} and the value $\sum_\rho\frac1{\rho(1-\rho)}=2+\gamma-\log4\pi$ (\S I.1):
von Mangoldt; see \cite[Ch.~12 and 17]{Dav00}. The use of positivity in an explicit formula goes back to
Weil \cite{Wei52}.
\item \emph{The prime number theorem in arithmetic progressions}, for a fixed modulus, and
\emph{Mertens' theorem} in progressions (\S I.4.2, \S I.6; Part II, \S5): de la Vall\'ee Poussin; see
\cite[Ch.~20 and 22]{Dav00}, \cite[Ch.~11]{MV07}.
\item \emph{Theorems on Dirichlet $L$-functions used in Part III.} For Estimate B (\S III.1): the zero-free
region with at most one exceptional zero, Landau and Page \cite{Pag35}, \cite[Ch.~14]{Dav00}; primes in
progressions to large moduli, Thorner and Zaman \cite{TZ21}, after Linnik and Gallagher \cite{Gal70},
\cite{Bom87}; a zero-density estimate, Montgomery \cite{Mon71}; Landau's bound for $L'/L$ in a zero-free
region, \cite{Tit86}, \cite{MV07}. For Estimate C (\S III.2): the zero-free region, the count of zeros in a
window and the truncated explicit formula, \cite[Ch.~14, 16, 19]{Dav00}, \cite[Ch.~11, 12]{MV07}. These are
cited, not proved. The mean value over the auxiliary primes is obtained from primes in progressions and not
from a large sieve; compare \cite{Bom65}, \cite{DH66}, \cite{HB95}.
\item \emph{Sets without three-term progressions} (\S I.9, steps 11 and 19; Part III, \S III.3): Behrend
\cite{Beh46}. The construction is carried out, with proof, in \S III.3.
\item \emph{The filtration of a lattice by slopes} (Part III, \S\ref{as:sec}, (C6); used in the proof of
Proposition~M4): Stuhler \cite{Stu76}, Grayson \cite{Gra84}; cited from memory.
\item \emph{Stepanov's method} (\S I.2, \S I.7; Part II, \S2), as the model for counting with multiplicity:
Stepanov \cite{Ste69}; see Bombieri \cite{Bom74}.
\item \emph{The lemniscate functions} and their arithmetic (\S I.3): Hurwitz \cite{Hur99}. The main statements of
\S I.3 and \S I.4.1 about them are proved in \S\ref{el:sec}, which lists what is proved and what is only
computed; no novelty is claimed for them. \emph{Formal groups
with complex multiplication}, which explain the exponent $a\,p/(p^2-1)$ at inert primes: Lubin and Tate
\cite{LT65}, Honda \cite{Hon70}. That the reduction is of this type exactly at the inert primes: Deuring
\cite{Deu41}. Algebraicity of the lattice sums of \S I.4.1: compare Damerell \cite{Dam70}.
\item \emph{The Gaussian inner product on polynomials}, $\|z^a\|^2=a!$ (\S I.4.2; Part II, \S6.5): the
Fock, or Bargmann, space \cite{Bar61}.
\item Hadamard's inequality, the Chinese remainder theorem and the Cauchy--Schwarz inequality are used in
Part II, \S6 without further reference.
\end{itemize}
\textbf{(b) Results behind the quoted statements.} A census of the 195 statements that the Lean development
takes under the heading of published results is in \S\ref{cs:sec}. The statements marked \quoted\ are proved in the Lean
development, which contains its own proofs of the theorems it needs. The underlying mathematics has the
following sources. We cite them for the classical statements; we have not compared the formalised
statements with the published ones in detail.
\begin{itemize}
\item \emph{Theta series as kernels} and the representation that governs them (\S I.4.1, \S I.7): Weil
\cite{Wei64}; the correspondence between forms on a pair of groups: Howe \cite{How79}. \emph{Seesaw
identities}: Kudla \cite{Kud84}. \emph{The inner product formula} for theta lifts: Rallis \cite{Ral87}.
\emph{Bessel periods} and the restriction problems in which they occur: Gan, Gross and Prasad \cite{GGP12}.
\item \emph{The period formula} (\S I.7; Part II, \S6.6). In the form used, it is Kronecker's limit formula
(see \cite{Wei76}); the evaluation through Gamma values is due to Lerch, and to Chowla and Selberg
\cite{CS67}.
\item \emph{The mass formula} for definite lattices (\S I.7; Part II, \S6.6): Siegel \cite{Sie35}; for
Hermitian lattices, Shimura, see Gan, Hanke and Yu \cite{GHY01}. \emph{The Siegel--Weil formula}
(\S III.7, \S III.8): Weil \cite{Wei65}; the precise hypotheses and normalisations used are those stated in
those sections. \emph{The dimension formula}: Weyl
\cite{Wey25}.
\item \emph{Slopes of Euclidean lattices} and the maximal slope (\S I.7; Part II, \S6.8, \S6.10): Stuhler
\cite{Stu76}, Grayson \cite{Gra84}. \emph{The slope inequality} for maps of lattices: Bost \cite{Bos96}.
\item \emph{The relative trace formula} (\S I.7, ``Rank''): Jacquet \cite{Jac86}.
\item \emph{The bound for Galois cohomology} (\S I.7, ``Denominators''; Part II, \S6.8). The announcement
describes it as a weakening of Vandiver's conjecture. According to our reading of the Lean development its
proof uses the vanishing of the Iwasawa $\mu$-invariant (Ferrero and Washington \cite{FW79}): a statement
under that name is proved in the development and the final theorem depends on it. The development also
contains statements named after Kato's Euler systems \cite{Kat04}; some of these are among the declarations the
final theorem depends on and one that we tested is not. The proof
also uses modularity lifting theorems. We did not find the main conjecture of Iwasawa theory
(Mazur and Wiles \cite{MW84}) stated under that name. An upper bound for a cohomology length in terms of the
valuation of a Bernoulli number with explicit integral factors is present; it corresponds to a consequence of
the main conjecture, and we have not compared the two. A bound for the whole group $H^2$ at every prime is also
present. Finiteness of these groups is due to Soul\'e (\cite{Sou79}, from memory). Soul\'e
\cite[Thms.~2 and~3]{Sou03} gives a quantitative bound away from small primes: for the primes $p\ge4n'-1$,
$p\ge[L:\Q]+2$, where $L$ is the field and $n'$ is the twist (Soul\'e writes $n$; it is not the $n$ of this
paper). This was compared with the article by a reviewer, not by us. We have not
identified a published estimate in the full small-prime range. Part III, \S\ref{gc:sec} describes the statement and the structure of its proof in the development, and says
which published theorems the cases correspond to; we have not checked how closely the formal proofs follow the
published ones.
\end{itemize}
\textbf{What is new.} The combination described in this paper, namely iterated theta lifts as a source of
multiplicity, the comparison of divisibility with size through slopes of lattices carried to the term
linear in the order, and the resulting one-sided bound for $G(x)$, is the contribution of \cite{Alp26}.
The exposition, the worked examples and the computations in this paper are ours.
\section{Summary: what is proved where}
\begin{center}\small
\begin{tabular}{p{.47\textwidth}p{.45\textwidth}}
\toprule
Statement & Status\\
\midrule
One-sided bound for $G$ on intervals $\Rightarrow$ RH (\S I.1) & proved (Part II, \S1)\\
Model divisibility $a\,p/(p^2-1)$; lemniscate numbers (\S I.3) & proved for the model series (Part II, \S2) and for the lemniscate numbers (\S\ref{el:sec}, Theorem~Le18)\\
(M), B and C $\Rightarrow$ Estimate A $\Rightarrow$ the bound for $G$ (\S I.6) & proved (Part II, \S3--5); the identities used are checked numerically on an example\\
Estimate B: the auxiliary primes (\S I.6) & proved (Part III, \S III.1), from four cited theorems\\
Estimate C: the characters at the large scale (\S I.6) & proved (Part III, \S III.2), from three cited theorems and Theorem~\ref{thm:pair}(e)\\
The sets of columns $T_2$ and $T$ (\S I.5) & constructed (Part III, \S III.3); their use in (M) is through two hypotheses of Part III, \S\ref{as:sec}\\
(M), size (\S I.7, item 2) & the analytic estimates for one map and for a chain are proved in an abstract setting (Part III, \S III.4); that the maps of the construction are instances of it is quoted; four passages of \S III.4 are conditional; the arithmetic inputs are quoted\\
(M), divisibility at inert primes (\S I.7, item 1) & written up in \S III.5, conditionally on the integrality of the theta kernels in the coordinates of the height-two logarithm (hypothesis (B)), which is taken from the Lean development; elementary lemmas proved (Part II, \S6)\\
(M), from derivatives to lattices (\S I.7, item 1) & proved (Part III, \S III.6): lemmas on slopes of lattices, the splitting of the prime sum, bounds for several of its terms. Conditional on two statements of the Lean development: the theorem on the glued lattice. Quoted: the bounds for the eleven loss sums and their total; the statement on valuations\\
(M), arithmetic inputs of the size bound (\S I.7, item 2) & proved (Part III, \S III.7): the size inequality follows from eleven named inputs; a mean of periods equals $\log\Omega_E$ under stated hypotheses. The eleven inputs are quoted\\
(M), rank (\S I.7, item 3) & proved (Part III, \S III.8): the dimension bound follows from three statements of the Lean development and stated size conditions. The three statements are quoted; elementary lemmas proved (Part II, \S6)\\
(M), denominators (\S I.7, item 3) & proved (Part III, \S III.9): the step from the bound for Galois cohomology to the bound for denominators. The bound itself is quoted; elementary lemmas proved (Part II, \S6)\\
(M), the assembly & reduced to twelve numbered hypotheses (Part III, \S\ref{as:sec}); the hypotheses are derived from quoted statements, quoted, or assumed\\
(M) at every scale of the intervals, with the primes of Estimates B and C & a thirteenth hypothesis, assumed; with it the Riemann hypothesis follows from the hypotheses (Part III, \S\ref{as:sec}, Corollary~M11)\\
(M), the construction of the maps and weights & assumed (Part III, \S III.10)\\
Error budget and exponent $\frac12$ (\S I.8) & proved from the stated form of (M)\\
\bottomrule
\end{tabular}
\end{center}
\clearpage
\noindent\textbf{What remains to be written up.} For these pages to be a complete human-readable proof, the
following would still have to be written out. They are grouped by the part of the proof they serve; the
table of Hypotheses in Part~III, \S\ref{as:sec}, and the table at the start of Part~III give the details.
\begin{enumerate}[leftmargin=2em,itemsep=1pt]
\item \emph{The construction.} The field $E$ is explicit once $n$, $q$, $d$ are fixed (\S\ref{ob:sec}). Over
it one must construct the Hermitian spaces and lattices, the chain of theta lifts with its ranks, levels and
weights, and the translates and labels, with the properties of \S\ref{ob:sec}; verify the identifications
left open in the dictionary of \S\ref{ob:sec}, \S7; and supply these data at every scale of the intervals,
with constants independent of the scale and with auxiliary primes for which Estimate~B holds (Hypothesis
(H12) of \S\ref{as:sec}; Estimate~C then follows, \S III.2). \S\ref{ob:sec} gives no classical description
of the forms on the groups that are not compact.
\item \emph{Divisibility.} Hypothesis (B), the integrality of the theta kernels at inert primes in the
coordinates of the height-two logarithm (proved here only for one example, \S\ref{el:sec}); in \S III.5 the
duality input for longer orbits, the operator on the ordinary rows, the passage to all frames and labels, and
the remaining classes of primes; in \S III.6 the two statements (Val) and (Lat) behind the glued lattice, the
local comparisons (a)--(d) needed for Hypothesis (H6)(ii), and the maximal-slope comparison used in
Lemma~M10 for (H6)(iii); and the eleven losses with the required bound for their total (Hypothesis (H7)).
\item \emph{Size.} The eleven arithmetic inputs of the size inequality (\S III.7), among them the
inner-product formula for the lifts, the covolumes of the lattices and the local indices; that the maps of
the construction are instances of the setting of \S III.4; and the conditional passages there.
\item \emph{Levels, counts, covolumes and slopes.} The local level correction (H2); the comparison of the
heights of two words (H3); in (H4), the lower bound for the level with its allowance (a count of forms) and
the comparison of the levels of two words; the covolume of the first lattice of the chain, a lattice of forms (H5); and the
range of the slopes (H9). The comparison of heights (H3) is elementary in kind; the count of forms and the
covolume in (H5) are deep. (The upper bound in (H4) is a condition of the construction.)
\item \emph{Rank.} For the family of the construction: the moment estimates (S), which come from a relative
trace formula; the bound (I) for the projection loss, which the source relates to a count of good weight
tuples and to residual irreducibility, and which also gives (H10); the pairing statement (P), from
rationality and the identification with a Bessel pairing; and the rank, size and subspace conditions of
Corollary~T2, which also give (H11) and the first half of (H0)(g) (\S III.8). For the mean-slope
inequality (H8), the pairings of \S III.6 and \S III.8 and the map of \S III.7 must be shown to be one map,
with the same norms, so that the integrality, height and rank bounds apply to it together.
\item \emph{Denominators.} The bound for Galois cohomology, Theorem~G, and the comparison inequality that
bounds the total twist error at each lift in terms of cohomology lengths (\S III.9; Proposition~G2 deduces the
bound for denominators from the two). For several steps of the proof of Theorem~G in the Lean development
we found no published counterpart (\S III.9, \S6, list~(C)).
\item \emph{The published results.} For each substantive outside result used in the prose proof, a
checked reference with matching hypotheses, or a proof. The census of \S\ref{cs:sec} records the 195 formal
entries that the Lean development gathers under this heading, including repetitions and one unused slot;
the bibliographic matches proposed there are from memory and have not been checked systematically, and
several of the entries are weak forms of the published theorems (for instance the local Langlands
correspondence, \S III.9).
\end{enumerate}
\noindent What is complete: the deduction of the Riemann hypothesis from (M) and Estimates~B and~C (Parts~I
and~II); Estimates~B and~C, from cited theorems on Dirichlet $L$-functions (\S III.1--III.2); the sets of
columns (\S III.3); and the deduction of (M), and of the Riemann hypothesis, from the thirteen Hypotheses
(\S\ref{as:sec}): (H0)--(H11) at one sufficiently large scale give (M) there, and (H12) supplies them on the
required intervals. So the census of \S\ref{cs:sec} is not the only gap. Items~1--6 carry the substance of
(M), and they are where most of the Lean development goes.
\medskip
\noindent The formal proof in Lean establishes the Riemann hypothesis for all Dirichlet $L$-functions at
once, and with it the statements quoted here, in its own formulation. The case of $\zeta$ described here is
the case of the trivial character; it uses the same construction.
\medskip
\noindent Sources (the Lean files) are at the end of Part II; the list of scripts follows Part III.
\newpage
\setcounter{equation}{0}\renewcommand{\theequation}{II.\arabic{equation}}
\stepcounter{partno}\begin{center}\Large\bfseries Part II. Details and proofs\end{center}
\phantomsection\addcontentsline{toc}{part}{Part II. Details and proofs}
\noindent Part II can be read after \S I.1 and \S I.5: it uses $G(x)$ from \S I.1 and otherwise repeats its
definitions. It is numbered separately. Its sections are 1--6. Its displays are numbered (II.$n$), except
two that carry names, (A) and (M).\footnote{In the version of 21 November 2026 eighteen displays of Part II carried section numbers instead; they are now numbered as follows: (1.1)$\to$(II.3), (4.1)$\to$(II.14), (4.2)$\to$(II.16), (5.1)$\to$(II.21), (5.2)$\to$(II.22), (5.3)$\to$(II.24), (5.4)$\to$(II.29), (5.5)$\to$(II.30), (5.6)$\to$(II.33), (5.7)$\to$(II.36), (6.1)$\to$(II.47), (6.1a)$\to$(II.48), (6.2)$\to$(II.50), (6.3)$\to$(II.54), (6.4)$\to$(II.57), (6.5)$\to$(II.58), (6.6)$\to$(II.59), (6.7)$\to$(II.69).} The main inequality is called (M) in all three parts, and Estimate A of
Part I is formula (A) of Part II. Section 3 of Part II states the
reduction to one prime sum again, with all definitions, so that sections 4--6 can be read on their own.
References in square brackets with numbers are to the list of source files at the end of Part II. Some letters are
used with more than one meaning in Part II (for instance $N$, $L$, $T$, $h$ and $a$); each is defined where it
is used. Formula \eqref{II:t5.6} of Part II is Estimate C of Part I.
Where sections 3--5 attribute a statement to ``the source'', a proof is now in Part III for the following:
the choice of the primes $q$, $d$ and the bound for the three twists (section 3; Part III, \S III.1);
formula \eqref{II:t5.6} (Part III, \S III.2); the existence of the sets $T$, $T_2$ with the stated densities
(section 4; Part III, \S III.3). The divisibility at inert primes of sections 6.3--6.4 is written up in Part III, \S III.5, conditionally on the integrality of the theta kernels in the coordinates of the height-two logarithm (hypothesis (B)), which is taken from the Lean development. Part III, \S III.6--III.9 prove further steps towards (M), each from named statements of the Lean development: the passage to lattices in part (\S III.6), the size inequality from eleven quoted inputs (\S III.7), the dimension bound of section 6.9 from three quoted statements (\S III.8), and the step from the bound for Galois cohomology to the bound for denominators (\S III.9); Part III, \S\ref{as:sec} deduces (M), at one scale, from twelve numbered hypotheses, and the Riemann hypothesis from these and a thirteenth; the table at the start of Part III gives the status of each. The main inequality (M) is still not proved: it is quoted in Part II.
{\setlength{\parindent}{0pt}\setlength{\parskip}{.32\baselineskip plus 1pt}
\section*{1. What a zero forces}\addcontentsline{toc}{section}{1. What a zero forces}
For $\re s>1$, termwise integration gives
\begin{equation}\label{D:38}
F(s)=\int_1^\infty G(x)x^{-s-1}\,dx
=-\frac{\zeta'(s)}{s(s-1)\zeta(s)}
-\frac1{(s-1)^2}+\frac{1+\gamma}{s-1}.
\end{equation}
Indeed, the transform of $(x/n-1)_+$ is $n^{-s}/[s(s-1)]$, where $v_+=\max(v,0)$. The Laurent expansion of $\zeta$ at $1$ cancels both terms of the principal part there. A zero $\rho$ of multiplicity $\nu$ in the critical strip gives $F$ a simple pole of residue $-\nu/[\rho(\rho-1)]$. The poles at $s=0$ and at the trivial zeros $-2,-4,\ldots$ lie outside the half-plane $\re s>\theta$ used below. The poles in the critical strip are nonreal, since the alternating zeta series gives $\zeta(\sigma)<0$ for $0<\sigma<1$.
A bound valid for every large $x$ would allow the usual oscillation argument of Landau. We know the bound only on certain intervals. To use one such interval, we differentiate the transform many times. Its new weight is concentrated on that interval, and a nearby pole forces large derivatives.
\textbf{Lemma (the one-sided criterion on intervals; \S I.1).} \textit{Let $0<\theta<1$. If $G(x)\le x^\theta$ throughout $[Y,Y^{3/2}]$ for arbitrarily large $Y$, then $\zeta$ has no zero in $\re s>\theta$.}
Write $u=\log x$, $g(u)=G(e^u)$ and, for each integer $j\ge0$, let $A_j(s)=(-1)^jF^{(j)}(s)/j!$ be the signed $j$th Taylor coefficient. Let $\eta=\max(0.8e^{0.2},1.2e^{-0.2})=0.9825\ldots$ and $c=0.008$, which is less than $\log((1+\eta)/(2\eta))=0.00887\ldots$; these are absolute constants. Fix $\sigma>2$ so large that $(\sigma-\theta)/(\sigma-2)\le e^{c}$. With the constants above this holds for $\sigma\ge252$ and every $\theta$ in $(0,1)$. Differentiating the Mellin integral gives
\begin{equation}\label{D:39}
A_j(\sigma+it)=\int_0^\infty g(u)e^{-itu}K_j(u)\,du,
\qquad K_j(u)=u^je^{-\sigma u}/j!.
\end{equation}
On each interval satisfying the lemma's bound, put $U=\log Y$ and choose $j$ nearest to $\tfrac54(\sigma-2)U$. Then
\begin{equation}
|A_j(\sigma+it)|+A_j(\sigma)
\le 2\int_0^\infty \max(g(u),0)K_j(u)\,du
\ll (\sigma-\theta)^{-j}, \label{II:t1.1}
\end{equation}
uniformly for real $t$. The first inequality follows from the triangle inequality and $|g|+g=2\max(g,0)$. On $[U,3U/2]$ integrate $e^{\theta u}K_j(u)$.
Outside the window, use $|g(u)|\ll e^{2u}$, since partial summation of Chebyshev's bound $\sum_{n\le x}\Lambda(n)\ll x$ gives $\sum_{n\le x}\Lambda(n)/n\ll\log x$ and hence $|G(x)|\ll x\log x$ for $x\ge2$. The density proportional to $u^je^{-(\sigma-2)u}$ is concentrated about $j/(\sigma-2)\sim5U/4$.
\textbf{Claim.} \textit{For $U$ large and $j$ nearest to $\tfrac54(\sigma-2)U$, the part of $\int_0^\infty u^je^{-(\sigma-2)u}\,du$ outside $[U,3U/2]$ is at most $C_0e^{-cj}$ times the whole, with $C_0$ independent of $U$.} Indeed, on putting $v=(\sigma-2)u/j$ the density is proportional to $(ve^{1-v})^j$, and the window becomes an interval in $v$ whose ends tend to $4/5$ and $6/5$ as $U\to\infty$. The base $ve^{1-v}$ has its unique maximum $1$ at $v=1$. Off the window it is bounded by a number $\eta'<1$ that tends to $\eta$ as $U\to\infty$, so the tail integral is at most $\eta'^{\,j-1}\int_0^\infty ve^{1-v}\,dv$. A small fixed interval about $1$ has base at least $(1+\eta')/2$. So the fraction outside is $O\big((2\eta'/(1+\eta'))^j\big)$, and this is $O(e^{-cj})$ for $U$ large, because $c<\log((1+\eta)/(2\eta))$. The tail is therefore $O(e^{-cj}(\sigma-2)^{-j-1})=O((\sigma-\theta)^{-j})$, by the choice of $\sigma$. This proves \eqref{II:t1.1} along a sequence $j\to\infty$.
Suppose now there is a pole to the right of $\theta$. Let $R$ be the smaller of $\sigma-\theta$ and the distance from $\sigma$ to the nearest pole in $\re s>0$. Some pole has horizontal distance from the line $\re s=\sigma$ strictly less than $R$. If $R=\sigma-\theta$, this follows from the supposition. Otherwise take a nearest pole to $\sigma$ and use its nonzero imaginary part. Take $t_0=\operatorname{Im}\rho$ for that pole $\rho$; then the pole nearest to $\sigma+it_0$ is at distance less than $R$. Only finitely many poles lie within $R+1$ of it, and each pair is equidistant from at most one point of the line $\re s=\sigma$ (both lie to its left). So $t$ near $t_0$ can be chosen so that $z=\sigma+it$ has a unique nearest pole, at distance $d0$ (the principal part $c/(s-\rho)$ contributes exactly $c\,(z-\rho)^{-j-1}$ to $A_j(z)$). At the real centre $\sigma$ the same estimate gives $|A_j(\sigma)|\ll r^{-j}$. This contradicts \eqref{II:t1.1} for large $j$, since $d1$, and the prime denotes differentiation in $s$.
For distinct odd primes $q,d$ write $\eta=\chi_q\chi_d$ for the pointwise product. Consider the single prime sum
\begin{equation}\label{D:45}
S_{q,d}(x)=\sum_{r\le x}\Lambda(r)(1+\chi_q(r))(1-\chi_d(r))(x/r-1).
\end{equation}
Away from $q,d$, the coefficient of $\Lambda(r)$ before smoothing is $4$ if $r$ is a square modulo $q$ and a nonsquare modulo $d$, and zero otherwise. The exact identity obtained by expanding the two factors is
\begin{equation}\label{D:46}
\begin{aligned}
R_{q,d}(x)&=S_{q,d}(x)-x\log x+(1+\gamma+c_{\chi_q}-c_{\chi_d}-c_\eta)x\\
&=G(x)+G_{\chi_q}(x)-G_{\chi_d}(x)-G_\eta(x).
\end{aligned}
\end{equation}
Thus a one-sided bound for $R_{q,d}$ and absolute bounds for three quadratic character sums suffice.
\textbf{The reduction.} Fix $0<\varepsilon<1/52$. By Theorems~\ref{thm:pair} and~\ref{thm:C} of Part III, for every large $Y$ there are primes $q\equiv3\bmod8$, $d\equiv7\bmod16$ with $q\mid d+1$ for which statement 2 below (Estimate B) and formula \eqref{II:t5.6} (Estimate C) hold for $Y\le x\le Y^{3/2}$. Statement 1 (Estimate A) is then deduced in sections 4 and 5 from the main inequality (M), which is quoted, together with Estimates B and C. The argument of sections 4 and 5 is for one $x$ at a time, and uses (M), Estimate B and Estimate C at that $x$ for the same $q$, $d$, $n$. So nothing in it changes if the pair depends on $x$. In the source, and in Hypothesis (H12) of Part III, \S\ref{as:sec}, the intervals are $[Z,Z^{3/2}]$ with $Z$ arbitrarily large, and the pair used at $x$ is chosen at a scale $Y$ with $x^{1/J}\le Y\le x$, where $J\ge1$ depends on $\varepsilon$ only; $Y$ need not be the left end $Z$, and the pair may depend on $x$. For a pair given by Theorem~\ref{thm:pair} with $A=J$ at the scale $Y$, Estimates B and C hold at every $x$ with $Y\le x\le Y^J$; that the construction is made at $x$ with such a pair is part of (H12). Part III, \S\ref{as:sec}, \S7 states exactly what is needed, as (H12), and repeats the deduction with it (Corollary~M11).
\par\noindent\textbf{1.}\enspace \textbf{The residue sum.} There are positive integers $m,k,n$ depending on $x$ such that
\begin{equation}\label{D:47}
R_{q,d}(x)\le C_\varepsilon x^{C\varepsilon}
\left(\frac{x}{m}+\frac{xm}{k}+m+\frac{k}{n^2}\right). \tag{A}
\end{equation}
Here $C$ is absolute and $C_\varepsilon$ depends only on $\varepsilon$. The orders are $m=x^{1/2+O(\varepsilon)}$, $k=x^{9/2+O(\varepsilon)}$, $n=x^{2+O(\varepsilon)}$. Sections 4 and 5 derive this from (M).
\par\noindent\textbf{2.}\enspace \textbf{The three twists.} For $\chi=\chi_q,\chi_d,\eta$ the selection gives $|G_\chi(x)|\le x^{1/2+\varepsilon}$. To see what is estimated, put $\Psi_\chi(t)=\sum_{r\le t}\Lambda(r)\chi(r)$. Partial summation and $\sum_{r\ge1}\Lambda(r)\chi(r)/r=-c_\chi$ give
\begin{equation}\label{D:48}
G_\chi(x)=-x\int_x^\infty \Psi_\chi(t)\,\frac{dt}{t^2}.
\end{equation}
The convergence here follows from the prime number theorem for a fixed nonprincipal character. The proof bounds the proportion of bad choices by mean-square estimates, first in $q$, then in $d$ for each good $q$. This gives a common pair on the whole interval. It is given in Part III, \S III.1, with the exponent $\frac12+\frac\varepsilon2$; the Lean proof is in [9, 10, 29].
\textbf{Conclusion.} The terms $x/m$ and $m$ balance at $\sqrt{x}$. With the stated orders, $k/n^2=x^{1/2+O(\varepsilon)}$ and $xm/k$ is smaller. By the identity above, $G(x)\le C'_\varepsilon x^{1/2+C'\varepsilon}$ on these intervals, with an absolute $C'$. Given $1/2<\theta<1$, choose $\varepsilon$ so that $1/2+C'\varepsilon<\theta$. On all sufficiently large selected intervals $G(x)\le x^\theta$. Section 1 excludes every zero to the right of $\theta$. Letting $\theta$ decrease to $1/2$ and using the symmetry $\rho\mapsto1-\rho$ from the functional equation proves RH from (M) and Estimates B and C. [1, 6, 12]
\newpage
\section*{4. The main inequality (M)}\addcontentsline{toc}{section}{4. The main inequality (M)}
\subsection*{4.1 Which prime powers are counted?}
Fix $x$ and primes $q,d$ for which Estimates B and C hold at $x$ (section 3). For an odd prime power $r=p^h$ with $p\ne q$, attach two labels. The first is the row $v(r)=(1+\chi_q(r))/2$, equal to $1$ if $r$ is a nonzero square modulo $q$, and $0$ otherwise. For the second, choose $n=2^e$ at the scale $x^{2+8\varepsilon}\le n\le 2x^{2+8\varepsilon}$ and put $N=4n$. Write $[r]=\{r,-r\}\bmod N$. The $n$ pairs of odd residues form a group $H$ under multiplication. Its elements will label columns. Choosing a fixed $t\in H$ puts $r$ in column $t[r]$.
The coefficient at $r=p^h$, before inserting a weight, is
\begin{equation}\label{D:49}
c(r)=(1-\chi_d(r))\log p.
\end{equation}
If $p\ne d$ it is $2\log p$ for an odd power of a nonsquare modulo $d$ and zero otherwise. At $p=d$ it is $\log d$ for every power. The two omitted primes $2,q$ have $\chi_d(2)=\chi_d(q)=1$. Indeed $d\equiv7\bmod 8$ gives the first identity. For the second, $q,d\equiv3\bmod 4$ and $d\equiv-1\bmod q$, so quadratic reciprocity gives $(q/d)=-(d/q)=-(-1/q)=1$. So $c(r)$ vanishes at every power of $2$ and of $q$; omitting these primes changes nothing.
\textbf{A table small enough to write out.} Take $q=11$, $d=1319$, $N=16$ and $t=[1]$. Then $q\equiv3\bmod8$, $d\equiv7\bmod16$ and $q\mid d+1=1320$. The four columns are $[1],[3],[5],[7]$. For example $[3]^2=[9]=[7]$ and $[3]^3=[5]$. The nonzero squares modulo $11$ are $1,3,4,5,9$. In each cell below are the primes at most $61$ with nonzero coefficient; the primes $3,5,7,19,31,43,53$ are squares modulo $1319$ and have coefficient $0$. A dash denotes an empty cell in this range.
\begin{equation}\label{D:50}
\begin{array}{c|cccc}
v\backslash s &[1]&[3]&[5]&[7]\\ \hline
0&17&13,29,61& - &41\\
1&47& - &37,59&23
\end{array}
\end{equation}
For each cell, the primes in that cell with nonzero coefficient have density $1/16$ among all primes, as shown in section 5. To place $13$, observe that $13\equiv2\bmod11$ and $[13]=[3]$. To place a higher power one repeats both tests on that power. The prime $23$ goes in $(1,[7])$ with coefficient $2\log 23$. Its square disappears because $\chi_{1319}(23^2)=1$. Its cube has the same row and column as $23$. At the exceptional prime $1319$, its first power lands in $(0,[7])$, its square in $(1,[1])$, and each has coefficient $\log 1319$. The example only illustrates the identities of section 5, which hold for any positive weights; its parameters do not satisfy all the conditions of (M) (Part~III, \S\ref{ob:sec}, \S3). The first version of this paper used $q=3$, $d=23$.
\newpage
\subsection*{4.2 How a weight determines a cutoff}
Let $b=\exp(x^\varepsilon)$. The construction supplies nonempty subsets $T,T_2$ of $H$, an integer $a_t>0$ for each $t\in T$ with $|a_t/b-x|\le1$, and $m$ maps of initial rank $k$ (the chain of theta lifts of section 6.2; $m$ and $k$ are the parameters in (A)). Write $|S|$ for the cardinality of a finite set $S$ and $\delta=|T_2|/n$. For each translate $u\in H$ and map $1\le j\le m$ there are $2n$ positive weights $w_{u,j}(v,s)$. In the construction they are integers. The distinguished cells are $(1,s)$ with $s\in uT_2$. Their weights satisfy $b\le w_{u,j}(1,s)\le b+O(b/(nx^2))$. At every other cell the ratio $a_t/w_{u,j}(v,s)$ is at least $\exp(x^{\varepsilon/3})/3$. Thus the same table tests primes at two markedly different scales.
Fix $u,t,j$, write $a=a_t$ and $w=w_{u,j}$. Each power in cell $i=(v,s)$ contributes
\begin{equation}\label{D:51}
c(r)(a/r-w_i)_+
=c(r)w_i\big(a/(rw_i)-1\big)_+,\qquad z_+=\max(z,0).
\end{equation}
The contribution ends at $r=a/w_i$. Adding all cells gives the finite sum
\begin{equation}
P_{u,t,j}=\sum_{\substack{p\ {\rm odd\ prime}\\p\ne q}}\ \sum_{h\ge1}
(1-\chi_d(p^h))\log p\,
\big(a_t/p^h-w_{u,j}(v(p^h),t[p^h])\big)_+ . \label{II:t4.1}
\end{equation}
In the running example take $T=T_2=\{[1]\}$, one table, $x=1000$, $b=10$, $a=10000$ and $u=[1]$. Here $\delta=1/4$. The weights and cutoffs, in the same column order as above, are
\begin{equation}\label{D:53}
\begin{array}{c|rrrr}
w_i &[1]&[3]&[5]&[7]\\ \hline
0&0.05&0.05&0.05&0.05\\
1&10&0.05&0.05&0.05
\end{array}\qquad
\begin{array}{c|rrrr}
a/w_i &[1]&[3]&[5]&[7]\\ \hline
0&200000&200000&200000&200000\\
1&1000&200000&200000&200000
\end{array}
\end{equation}
For example $23$ contributes $2\log 23\,(10000/23-0.05)$, whereas $47$ contributes $2\log 47\,(10000/47-10)$, and the prime $1319$ contributes $\log1319\,(10000/1319-0.05)$. Translating by $u=[7]$ moves the weight $10$ to column $[7]$ in row $1$. Now the subtracted weight at $23$ is $10$, and at $47$ it is $0.05$.
For a reproducible finite calculation run through the primes $p\le200000$ and the successive powers $p,p^2,\ldots\le200000$. Drop $2,11$, compute the coefficient and the cell as above, and add its positive part. This gives $P_{[1],t,1}=84701.0317$ to four decimals. The same number will be obtained by grouping the terms in a different order in section 5.
\newpage
\subsection*{4.3 What the arithmetic construction must prove}
The quantity to subtract from \eqref{II:t4.1} is
\begin{equation}
\langle\log w\rangle=\frac{1}{2n}\sum_i\log w_i,\qquad
M_{u,t,j}=a_t\big(\log a_t-1-\gamma+c_{\chi_d}-\langle\log w\rangle\big).
\label{II:t4.2}
\end{equation}
Section 5 derives each term by ordinary prime summation. Section 6 explains why the arithmetic estimate on the maps yields the same expression. The match through the term linear in $a_t$ is essential.
Every translate has seven weights equal to $0.05$ and one equal to $10$. Substitution in \eqref{II:t4.2} gives
\begin{equation}\label{D:55}
\begin{aligned}
M&=10000\big(\log 10000-1-\gamma-1.520227887516\ldots\\[-2pt]
&\hspace{39mm}-(\log 10+7\log 0.05)/8\big)=84463.3942\ldots .
\end{aligned}
\end{equation}
For $u=[1]$ the excess is $237.6375$ to four decimals. The other three excesses are $-300.2570$, $-176.7314$, and $229.1329$, giving a mean of $-2.5545$. (M) bounds their average over $u$, summed over the labels $t$ and the maps $j$.
\textbf{The main inequality (M).} At every $x$ of intervals $[Z,Z^{3/2}]$ with $Z$ arbitrarily large the source constructs the above data, for a pair $q,d$ attached to $x$ (Part III, \S\ref{as:sec}, Hypothesis (H12)), with $\delta\ge x^{-\varepsilon}$, $|T|/n\ge x^{-\varepsilon/8}/2$, and an upper error $\mathcal E\ge0$. (Sets $T_2$, $T$ with these densities are constructed in Part III, \S III.3. The rest of the data is quoted.) With $B=|T|mb\delta/2$ it proves
\begin{equation}\label{D:56}
\frac1n\sum_{u\in H}\sum_{t\in T}\sum_{j=1}^m(P_{u,t,j}-M_{u,t,j})\le\mathcal E,\qquad
\frac{\mathcal E}{B}\le x^{C\varepsilon}
\left(\frac{x}{m}+\frac{xm}{k}+m+\frac{k}{n^2}\right). \tag{M}
\end{equation}
Here $C$ is absolute, and the inequality is asserted for $x\ge x_0(\varepsilon)$. The first inequality compares integral divisibility with complex size. To check the powers in the second, put $h=|T|$, $h_2=|T_2|$ and $a=xb$. The source proves more than the mean: for its data at an admissible scale $x$ and every translate $u\in H$,
\begin{equation}\label{D:57}
\sum_{t\in T}\sum_{j=1}^m(P_{u,t,j}-M_{u,t,j})\le x^{(C_{\rm abs}+e_L+3)\varepsilon}\left[
h a(1+m^2/k)+m\left(2nmbx^\varepsilon+
\frac{h_2kb x^\varepsilon}{n(n x^{-\varepsilon})}\right)\right]
\end{equation}
for $x\ge x_0(\varepsilon)$, where $C_{\rm abs},e_L\ge0$ are constants of the source that do not depend on $x$ or $\varepsilon$ ($e_L=0$ on the route of the final theorem; the value of $C_{\rm abs}$ was not determined). This is the statement the final theorem uses. Part III, \S\ref{as:sec}, Theorem~M deduces this inequality from the Hypotheses (H0)--(H11) of that section, which are not proved in this paper, as soon as $x^\varepsilon\ge79(1+K)^2(1+C_H)(1+e_K)$ for the constants $K,C_H,e_K$ of the Hypotheses. The right side does not depend on $u$, so the mean over $u$ satisfies the same bound; call it $\mathcal E$. Division by $B=hmb\delta/2$ bounds the three bracketed contributions respectively by
\begin{equation}\label{D:58}
\frac2\delta\left(\frac{x}{m}+\frac{xm}{k}\right),\quad
\frac{4n}{h\delta}mx^\varepsilon,\quad
2\frac{n}{h}\frac{k}{n^2}x^{2\varepsilon}.
\end{equation}
Here $h_2=n\delta$. The bounds $\delta\ge x^{-\varepsilon}$ and $h/n\ge x^{-\varepsilon/8}/2$ give (M) with $C=C_{\rm abs}+e_L+6$. This computation explains why multiplicity matters. A cost incurred once yields $x/m$ after division, while the lattice comparison incurs a cost of order $m$ after division. Their balance occurs at $\sqrt{x}$. [3, 5, 6]
\newpage
\section*{5. From the table to a single prime sum}\addcontentsline{toc}{section}{5. From the table to a single prime sum}
\subsection*{5.1 Subtracting the main term cell by cell}
Keep $t$ fixed; the quantities $S_i$, $\Psi_i$, $C_i$, $R_i$ below depend on $t$, through the column $t[r]$. Let $\sum_{r\in i}$ denote a sum over prime powers assigned to cell $i$ by section 4. The smoothed sum in that cell and its unsmoothed counting function are
\begin{equation}\label{D:59}
S_i(y)=\sum_{r\in i}c(r)(y/r-1)_+,\qquad
\Psi_i(z)=\sum_{\substack{r\in i\\r\le z}}c(r).
\end{equation}
For $y\ge1$, integrating each step of $\Psi_i$ proves the first identity below. The second follows term by term from \eqref{II:t4.1}.
\begin{equation}
S_i(y)/y=\int_1^y\Psi_i(z)\frac{dz}{z^2},\qquad
P_{u,t,j}=\sum_i w_iS_i(a/w_i). \label{II:t5.1}
\end{equation}
For fixed moduli, among primes not dividing $2qd$ the fraction contributing to a given cell is $1/(4n)$. One half are nonsquares modulo $d$, one half have the specified sign modulo $q$, and $1/n$ have the specified pair modulo $N$. The Chinese remainder theorem makes these conditions independent among the invertible residue classes. The prime number theorem in progressions gives their density among primes. The coefficient $2\log p$ doubles this density in $\Psi_i$. Thus $\Psi_i(z)$ has main term $\mu z$, where $\mu=1/(2n)$.
The fixed-modulus prime number theorem gives an error $O_A(z/(\log z)^A)$ as $z\to\infty$ for each fixed $A>0$. Higher prime powers and the one exceptional prime fit within this bound. The constants may depend on the moduli.
Set $C_i=\int_1^\infty(\Psi_i(z)-\mu z)\,dz/z^2$, which converges by that estimate. Subtract the integral from $y$ to infinity to obtain the exact formula
\begin{equation}
S_i(y)=\mu y\log y+C_i y+R_i(y),\qquad
R_i(y)=-y\int_y^\infty(\Psi_i(z)-\mu z)\frac{dz}{z^2}. \label{II:t5.2}
\end{equation}
In particular $R_i(y)=o(y)$ for fixed moduli, meaning $R_i(y)/y\to0$. The uniform estimate needed when the moduli vary with $x$ comes later.
What is $\sum_i C_i$? Write $S_1(y)$ for the ordinary smoothed von Mangoldt sum and $S_\chi(y)$ for the same sum with coefficient $\chi(r)$. Then
\begin{equation}\label{D:62}
\sum_i S_i(y)= S_1(y)-S_{\chi_d}(y).
\end{equation}
This identity includes powers of $d$, and both sides vanish termwise at $p=2,q$. For a nonprincipal character, partial summation and the convergent series for $-L'(1,\chi)/L(1,\chi)$ give $S_\chi(y)/y\to-c_\chi$. For the ordinary sum, the constant in $\sum_{r\le y}\Lambda(r)/r-\log y$ is $-\gamma$, by the Laurent expansion of $-\zeta'/\zeta$ at $1$ and partial summation. Subtracting $y^{-1}\sum_{r\le y}\Lambda(r)\to1$ gives the linear coefficient $-1-\gamma$. Comparison with \eqref{II:t5.2} yields
\begin{equation}
\sum_i C_i=-1-\gamma+c_{\chi_d},\qquad
P_{u,t,j}-M_{u,t,j}=\sum_i w_iR_i(a/w_i). \label{II:t5.3}
\end{equation}
For the last equality expand $\mu a\sum_i\log(a/w_i)=a\log a-a\langle\log w\rangle$ and insert the sum of the constants.
\newpage
\subsection*{5.2 Arithmetic check of the centering}
For $q=11,d=1319,n=4,t=[1]$, every cell has $\mu=1/8$. The constants and sums below allow \eqref{II:t5.1}--\eqref{II:t5.3} to be checked on the individual cells. Here $y_0=1000$ and $y_1=200000$.
\begin{equation}\label{D:64}
\begin{array}{cc|r|rr|rr}
v&s&C_i&S_i(y_0)&S_i(y_1)&R_i(y_0)&R_i(y_1)\\ \hline
0&[1]&-.260399&622.935&253248.083&19.864&176.026\\
0&[3]& .185272&1005.562&341839.067&-43.179&-367.240\\
0&[5]&-.769229&158.362&150230.420&64.122&-1075.524\\
0&[7]&-.356666&476.905&234628.730&-29.898&810.184\\
1&[1]&-.538998&352.750&198411.282&28.278&1059.057\\
1&[3]&-.574173&256.299&189878.990&-32.998&-438.252\\
1&[5]&-.443019&404.588&217066.374&-15.862&518.334\\
1&[7]&-.340232&542.738&236579.027&19.500&-526.431
\end{array}
\end{equation}
Summing the eight constants before rounding gives $-3.097443552\ldots=-1-\gamma+c_{\chi_{1319}}$. For $u=[1]$ multiply the $(1,[1])$ entry at $y_0$ by $10$, and each of the other seven entries at $y_1$ by $0.05$. Doing this in the $S$ columns, with the entries before rounding, gives $84701.0317$. Doing it in the $R$ columns gives $237.6375$. The same operations at the four translates give
\begin{equation}\label{D:65}
\begin{array}{c|rrr}
u&P_{u,t,1}&M_{u,t,1}&P_{u,t,1}-M_{u,t,1}\\ \hline
{[1]}&84701.0317&84463.3942&237.6375\\
{[3]}&84163.1372&84463.3942&-300.2570\\
{[5]}&84286.6628&84463.3942&-176.7314\\
{[7]}&84692.5272&84463.3942&229.1329
\end{array}
\end{equation}
\textbf{How to compute $C_i$ without fitting data.} For this table let $\xi$ be the character of the pairs modulo $16$ with $\xi([3])=\sqrt{-1}$. For $i=(v,s)$ put $\beta=2v-1$. As a function of a prime power, the coefficient of cell $i$ divided by $\Lambda$ has the following finite character expansion:
\begin{equation}\label{D:66}
\frac18\sum_{j,l=0}^1\sum_{k=0}^3
\beta^j(-1)^l\overline{\xi(s)^k}\,(\chi_{11}^j\chi_{1319}^l\xi^k)_{\rm prim}.
\end{equation}
The subscript uses the character of smallest modulus inducing the product on units, so a factor with exponent zero is the constant one even at its own prime. For units, the two sign sums are each $2$ when the signs agree and zero otherwise. The four powers of $\xi$ sum to $4$ precisely in column $s$. This gives coefficient $2$. At $1319$, terms with $l=1$ vanish, giving coefficient $1$ in the prescribed cell. At $2$ and $11$ the $\chi_{1319}$ factor sums to zero. Substituting the linear coefficient $-c_\chi$ for each nontrivial character and $-1-\gamma$ for the trivial one gives the displayed $C_i$. For general $t,n$ use the column $t^{-1}s$, the $n$ characters of $H$, and coefficient $1/(2n)$. [3]
\newpage
\subsection*{5.3 What translation preserves}
Fix $t,j$. First replace each distinguished weight by $b$. For a given column $s$, the equation $s=uz$, $z\in T_2$, gives exactly $|T_2|$ choices $u=sz^{-1}$. Thus for each admissible prime power $r$
\begin{equation}\label{D:67}
\frac1n\sum_{u\in H}\mathbf1_{\{v(r)=1,\ t[r]\in uT_2\}}
=\delta\,\mathbf1_{\{\chi_q(r)=1\}}
=\frac{\delta}{2}(1+\chi_q(r)).
\end{equation}
Here $\mathbf1$ equals one when its condition holds and zero otherwise. Multiplication by $1-\chi_d(r)$ gives the right contribution at the three special primes as well, with zero understood at the two omitted primes. Hence, with $a=a_t$,
\begin{equation}
\frac1n\sum_u\sum_{i\ {\rm distinguished\ at}\ u} b S_i(a/b)
=\frac{\delta b}{2}S_{q,d}(a/b). \label{II:t5.4}
\end{equation}
This is an identity for every common argument $y=a/b$. The map sending a sum with expansion $\alpha y\log y+\beta y+o(y)$ to its remainder after subtracting those two terms is linear. The coefficients are unique by taking limits. Applying it to \eqref{II:t5.4} gives
\begin{equation}
\frac1n\sum_u\sum_{i\ {\rm distinguished\ at}\ u} b R_i(a/b)
=\frac{\delta b}{2}R_{q,d}(a/b). \label{II:t5.5}
\end{equation}
In particular, with $\eta=\chi_q\chi_d$, the right side involves $G+G_{\chi_q}-G_{\chi_d}-G_\eta$. The plus sign on $G$ comes from expanding $(1+\chi_q)(1-\chi_d)$.
In the example each of the four row-$1$ cells is distinguished once. From the $S_i(1000)$ column we get
\begin{equation}\label{D:70}
\tfrac{10}{4}(352.749714+256.298804+404.588288+542.737992)
\simeq3890.936997 .
\end{equation}
Direct summation with the two quadratic signs gives the same value $(10/8)S_{11,1319}(1000)$. For \eqref{II:t5.5}, the four remainders give $-2.703354\ldots$ to six decimals, or $(10/8)R_{11,1319}(1000)$. There is a separate check using the three $L$-values:
\begin{equation}\label{D:71}
\begin{array}{c|rrrr|r}
y&G&G_{\chi_{11}}&G_{\chi_{1319}}&G_{\chi_{11}\chi_{1319}}&R_{11,1319}\\ \hline
1000&1.531&-2.299&-8.297&9.692&-2.163\\
1000000&11.040&-266.971&912.895&-618.737&-550.088
\end{array}
\end{equation}
To six decimals the three constants are $c_{\chi_{11}}=-0.084218$, $c_{\chi_{1319}}=-1.520228$, and $c_\eta=-0.779618$. They can be computed by grouping the Dirichlet series into residue classes and differentiating its Laurent expansion at $1$. The mean excess in section 5.2 is $-2.554507$ to six decimals. Its distinguished part accounts for $-2.703354$ and the other cells for $0.148847$, rounded separately. The latter need an estimate in the asymptotic proof. [3, 6]
\newpage
\subsection*{5.4 Discarding the other scale with a uniform estimate}
Divisibility uses all the cells, but only the distinguished cells should measure primes near $x$. Small weights at the other cells push their cutoffs far enough out for the prime number theorem to control them. The fixed-modulus limit $R_i(y)/y\to0$ gives no rate uniform in $q,d,N$. For the moduli of section 3 one has, for each primitive character in the cell expansion and for $y\ge \exp(x^{\varepsilon/3})/3$,
\begin{equation}
|G_\chi(y)|\le y\,\vartheta,\qquad
\vartheta=\exp(-\kappa x^{\varepsilon/8}),\qquad \kappa>0, \label{II:t5.6}
\end{equation}
with $G$ for the trivial character. The constant $\kappa$ does not depend on $x$, $q$ or $d$, and the bound is for $x\ge x_0(\varepsilon,\kappa)$. This is Estimate C. It is proved in Part III, \S III.2 (Theorem~\ref{thm:C}), where $\kappa$ is called $c'$. At any nondistinguished cell $i$ use \eqref{II:t5.6} at $y=a/w_i$. Each remainder is a combination $R_i=\sum_\chi f_\chi G_\chi$ of the functions $G_\chi$ for the characters of the table, with $\sum_\chi|f_\chi|=2$: the sum of the absolute values of the $4n$ Fourier coefficients is $4n/(2n)=2$. Therefore
\begin{equation}\label{D:73}
|w_i R_i(a/w_i)|\le2a\vartheta,\qquad
\frac1{B n}\sum_{u,t,j}\sum_{i\ {\rm nondistinguished}}
|w_i R_i(a_t/w_i)|\ll \frac{nx}{\delta}\,\vartheta=o(1).
\end{equation}
Indeed there are at most $2n$ cells per table, $a_t/b\le x+1$, and $nx/\delta$ grows polynomially in $x$. Exponential decay in \eqref{II:t5.6} absorbs this factor.
For a distinguished cell let $w_i=b+\Delta_i$ with $0\le\Delta_i\ll b/(nx^2)$. The function $w\mapsto(a/r-w)_+$ changes by at most $\Delta_i$ and only $r\le a/b$ can contribute. Since $0\le c(r)\le2\Lambda(r)$, Chebyshev's estimate bounds the total change in the prime sum by $O(x\Delta_i)$. In its main term $aC_i$ is unchanged, and $\mu a\log(w_i/b)\le\mu a\Delta_i/b$. Consequently
\begin{equation}\label{D:74}
|w_i R_i(a/w_i)-b R_i(a/b)|\ll x\Delta_i,\qquad
\frac{1}{\delta b/2}\sum_{i\ {\rm distinguished}} x\Delta_i\ll 1/x.
\end{equation}
For the second bound, there are $\delta n=|T_2|$ distinguished cells in each table. Summing over $u,t,j$ and dividing by $Bn$ gives $O(1/x)$.
Finally $|a_t/b-x|\le1$. When $y$ moves by at most $1$ from $x$, $S_{q,d}(y)$ and $y\log y$ change by $O(1+\log x)$, since $\sum_{r\le x+1}\Lambda(r)/r\ll\log x$. For $\chi=\chi_q,\chi_d,\eta$, Theorem~\ref{thm:pair}(d) of Part III gives $|c_\chi|\le4\log x$ (it also follows from Estimate B and the definition of $G_\chi$). The same estimate for the variation thus holds for the centering terms. Combining \eqref{II:t5.3}, \eqref{II:t5.5}, and the two error bounds gives
\begin{equation}
\frac1n\sum_{u,t,j}(P_{u,t,j}-M_{u,t,j})
=B\,R_{q,d}(x)+O_\varepsilon\big(B(1+\log x)\big). \label{II:t5.7}
\end{equation}
With (M), this gives $R_{q,d}(x)\le\mathcal E/B+O_\varepsilon(1+\log x)$, proving (A). Only an upper bound follows. In the finite example the changes of distinguished weight and argument are both zero, so before estimation \eqref{II:t5.7} is the numerical split of the mean excess into $-2.703354$ and $0.148847$. [6, 11]
\newpage
\section*{6. Where the main inequality (M) comes from}\addcontentsline{toc}{section}{6. Where the main inequality (M) comes from}
Sections 6.1--6.2 construct the maps from theta series. Sections 6.3--6.4 explain why their derivatives are divisible by powers of inert primes. Sections 6.5--6.7 bound the size of the same derivatives and identify the main term. Sections 6.8--6.10 control denominators and show that enough independent images survive. We prove the elementary calculations in each step and say which arithmetic statements are quoted.
\subsection*{6.1 A theta lift in classical terms}
A theta series records representations of integers by a quadratic form. For instance put $L=\mathbb Z[i]$, $Q(a+bi)=a^2+b^2$ and $z$ in the complex upper half-plane. With $s=\exp(2\pi i z)$, its theta series is
\begin{equation}\label{D:76}
\Theta_L(z)=\sum_{\lambda\in L}s^{Q(\lambda)}
=1+4s+4s^2+4s^4+8s^5+\cdots .
\end{equation}
The coefficient of $s^5$ is $8$ because the solutions are $(\pm1,\pm2)$ and $(\pm2,\pm1)$. Absolute convergence follows from $\sum_{a,b}\exp(-2\pi\,\Im z\,(a^2+b^2))<\infty$. Fourier orthogonality recovers a coefficient by pairing: for each $y>0$,
\begin{equation}\label{D:77}
e^{10\pi y}\int_0^1 \Theta_L(u+iy)e^{-2\pi i5u}\,du=8.
\end{equation}
Indeed $\int_0^1 e^{2\pi i(k-5)u}\,du$ is one for $k=5$ and zero for every other integer $k$.
To make this a lift, allow the lattice to vary within a finite collection of isometry classes $L_i$. Attach to each class a value $f(i)$. Weight it by $h_i=1/|\operatorname{Aut}L_i|$, the reciprocal of the number of its symmetries in the chosen group. The theta series are now a kernel depending on both $i$ and $z$. The lifted function is
\begin{equation}\label{D:78}
\Theta(f)(z)=\sum_i h_i\overline{f(i)}\,\Theta_{L_i}(z).
\end{equation}
In the rank-one Hermitian example, unitary symmetries of $\mathbb Z[i]$ are multiplication by $1,-1,i,-i$. On its single class with $f=1$ this normalization gives $\Theta_L/4$, so the same Fourier pairing gives $8/4=2$. This example shows what integration against a theta kernel does. The high-rank construction has different groups and test functions.
For the source let $E=\mathbb Q(\zeta_N+\zeta_N^{-1},\sqrt{-q},\sqrt{-d})$, with $\zeta_N=\exp(2\pi i/N)$, and let $F$ denote its maximal real subfield. Write $\overline{\phantom{a}}$ for complex conjugation on $E$. A Hermitian matrix $J$ satisfies $\overline J^{\,t}=J$. Its unitary group consists of matrices $g$ with $\overline g^{\,t}Jg=J$. It is definite if its form at every real embedding of $F$ is definite. At a fixed integral level and scalar weight, forms on a definite group can be viewed as functions on finitely many lattice classes. At higher weight the values are vectors and must transform under the finite stabilizers.
For a pair of unitary groups, the general lift has the same two operations:
\begin{equation}\label{D:79}
\Theta_\varphi(g,h)=\sum_{\lambda\in V(F)}(\omega(g,h)\varphi)(\lambda),
\qquad
\mathcal T_\varphi f(h)=\int_{[U(J)]}\Theta_\varphi(g,h)\overline{f(g)}\,dg.
\end{equation}
Here $V$ is a finite-dimensional coordinate space for the theta sum; $V(F)$ denotes its rational points over $F$. The notation $[U(J)]$ denotes integration over the group at all places modulo its rational points, with its invariant measure. The test function $\varphi$ decays rapidly at infinity and is locally constant of compact support at finite primes. The Weil representation $\omega$ is the action of the two groups on these test functions. Lattice indicators at the finite primes restrict the sum to lattices. In the displayed convention the lift is linear in $\varphi$ and conjugate-linear in $f$. [13] (The linearity statement of [13] is a statement in the archive, not used by the final theorem.)
\newpage
\subsection*{6.2 Composing maps and clearing their denominators}
For a finite form of the calculation let $I_j$ be the finite set of classes at stage $j$, $h_j(i)$ its weights, and $K_j(i,i')$ the matrix of the $j$th map. In the linear convention write
\begin{equation}\label{D:80}
(T_j f)(i')=\sum_{i\in I_j} h_j(i)K_j(i,i')f(i).
\end{equation}
Complex conjugates from a pairing are absorbed by taking the conjugate source space. Expanding two such sums gives the composite kernel $\sum_{i'}K_j(i,i')h_{j+1}(i')K_{j+1}(i',i'')$. Thus successive maps really do use the same intermediate index.
In the source the definite ranks are $N_j=k+j(\tau_0+1)$ for an odd integer $\tau_0$. The rank conditions [26] include $m$ even and $m\ge2$, $k$ even and $k\ge m+3$, $\tau_0\ge k+m+4$, $\tau_0>3m$, and $m\le2n\le k$. Since $n\ge4$, the smallest case is $m=2$, $k=8$, $\tau_0=15$, with ranks $8,24,40$. The full chain also needs field, level, and lattice data. Since $m$ is even and $m\ge2$, the chain has at least two steps.
At the end of the chain the complex pairing of the entire chain can be expressed as a single period integral over a subgroup. The source proves this identity with prescribed normalization factors and coordinate changes. Its use is that the final period can be compared at different choices of the intermediate character twists. [7, 14]
\textbf{The integrality assertion for a finite chain.} Let $S$ be a subring of a commutative ring $R$. Suppose all $K_j(i,i')$ and starting values belong to $S$. If scalars $D_j\in R$ satisfy $D_j h_j(i)\in S$ for every $i$, then every final value multiplied by $\prod_{1\le j\le m}D_j$ belongs to $S$. For one map this follows by moving $D_1$ into its finite sum. Applying the same argument to the already cleared values proves the statement by induction. For vector values, replace $S$ by a lattice at each stage and require each $K_j(i,i')$ to carry the preceding lattice into the next. This is the assertion stated as $\mathrm{ChainInt}$, with its vector version, in [14] (a statement in the archive, not used by the final theorem).
For example, on one class let the successive weights be $1/2,1/3$, the kernel entries $5,7$, and the starting value $1$. The output is $35/6$, and clearing the two weights gives $35$. At the prime $5$, two entries divisible respectively by $5^2$ and $5^3$ would give a cleared output divisible by $5^5$. In a sum the exponent can increase through cancellation. It is always at least the common lower bound on the summands. This elementary induction explains how divisibility persists. It requires separate local estimates to put significant prime powers into each kernel entry.
\textbf{Where a period enters.} A kernel evaluated in complex coordinates need not be integral. An algebraic local coordinate and a complex analytic coordinate on the same elliptic curve differ at the tangent space by a nonzero scale. An $a$th derivative acquires its $a$th power. Taking logarithms gives a term linear in $a$. In the global comparison the local gains, the period, and the lattice indices must all pertain to the same normalized maps. We next give a local example in which one can track every derivative, and then the estimates that take its place in the chain.
\newpage
\subsection*{6.3 A genuine local example and an elementary minor calculation}
Let $s(z)$ be the inverse near $0$ of $t\mapsto\int_0^t(1-u^4)^{-1/2}\,du$, and let $A_j=s^{(j)}(0)$. The lemniscate curve $y^2=1-x^4$ has the symmetry $(x,y)\mapsto(ix,y)$ fixing the origin $(0,1)$. This yields complex multiplication by $\mathbb Z[i]$. Differentiating the inverse function gives
\begin{equation}\label{D:81}
s(0)=0,\quad s'(0)=1,\quad (s')^2=1-s^4,\quad s''=-2s^3.
\end{equation}
The product rule gives an integer recursion, with $A_0=0,A_1=1$,
\begin{equation}\label{D:82}
A_{j+2}=-2\!\sum_{a+b+c=j}\frac{j!}{a!\,b!\,c!}\,A_a A_b A_c.
\end{equation}
For $j=3$, only $(1,1,1)$ contributes, giving $A_5=-12$. For $j=7$ there are three permutations of $(5,1,1)$, giving $A_9=-2\cdot3\cdot42\cdot(-12)=3024$. Uniqueness of the series solution gives $s(iz)=is(z)$, so only indices $j\equiv1\bmod4$ can contribute. The exact computation gives
\begin{equation}\label{D:83}
A_{17}=21224560896=2^8\,3^6\,7^2\,11\,211 .
\end{equation}
The primes $3,7,11$ remain prime in $\mathbb Z[i]$. Their exponents are $6,2,1$; the model in section 2 predicts the respective leading terms $17\cdot3/8$, $17\cdot7/48$, $17\cdot11/120$. At the split primes $5,13$ the exponents here are zero. At $j=201$ the computed valuations at $3,7$ are $75,29$. These valuations are computed, not proved in general; section 2 proves the bound only for its model series.
There is a quantitative gap between this example and \eqref{II:t4.1}. At $j=101$ the contribution to $\log|A_j|$ from inert primes at most $j$ is $167.67$ out of $306.77$. At $j=121$ it is $203.58$ out of $388.67$. The density calculation explains the scale: $\sum_{p\le j,\ p\equiv3\bmod4}(\log p)/p\sim\tfrac12\log j$, so the model exponents $j/p$ at these primes give about $\tfrac12 j\log j$. The main inequality (M) requires agreement even to the term proportional to $j$. So the numbers $A_j$ cannot serve in (M): they are too large by a factor $2$ in the leading term (defect (D3) of \S I.3).
\textbf{A local calculation from the source.} Let $A$ be a commutative ring with an element $\pi_0$ satisfying $\pi_0^2=p$, where $p$ is prime. For an integer $e\ge0$ put $P=p^e$. Let $M,N'$ be square matrices with $N'_{bc}\equiv M_{bc}^P\bmod p$. Suppose all but the zeroth coordinates of row vectors $u,u'$ are divisible by $\pi_0$. Write $X=uM$, $Y=u'N'$. The minor used in [15] satisfies
\begin{equation}\label{D:84}
\pi_0\mid Y_c X_0^P-Y_0 X_c^P .
\end{equation}
Indeed, modulo $\pi_0$, $X_c=u_0M_{0c}$ and $Y_c=u'_0 M_{0c}^P$. Substitution makes the two products equal. For $p=3$, $\pi_0=\sqrt3$, take $P=3$, $M=N'=\left(\begin{smallmatrix}1&1\\0&1\end{smallmatrix}\right)$, $u=(1,\pi_0)$, $u'=(1,0)$. The minor for $c=1$ is $1-(1+\pi_0)^3=-3\pi_0-3\pi_0^2-\pi_0^3$, visibly divisible by $\pi_0$. The estimate on the full lift requires many such congruences and their behavior under differentiation.
\newpage
\subsection*{6.4 How the weight cuts down the local exponent}
Here is a calculation which accounts for the positive part in \eqref{II:t4.1}. A directional Hasse derivative of a polynomial $Q$ is the coefficient of $Z^\beta$ in $Q(X+\sum_j b_j Z_j)$, where $b_j$ are vectors, $Z_j$ indeterminates, and $\beta$ a list of nonnegative exponents. It has no factorial denominator. For a product $\prod_c Q_c$ the coefficient is the sum of products over decompositions $\beta=\sum_c\beta_c$. If for a given set $S$ of directions the coefficient for $Q_c$ vanishes whenever $\sum_{j\in S}(\beta_c)_j>m_c$, then the coefficient for the product vanishes whenever $\sum_{j\in S}\beta_j>\sum_c m_c$: each term exceeds the allowance of some factor. This is the product-vanishing lemma in [21].
For a determinant the allowance has a simple origin. In $\det(X+s b,Y+t b)$, where $X,Y,b$ are columns of length two, the coefficient of $st$ is $\det(b,b)=0$, and there is no term in $s^2$ or $t^2$. Each minor can take at most one such hit. Products of $C$ minors can take at most $C$. With several directions confined to specified columns, the number of available columns provides another upper bound. These are constraints on nonvanishing terms before any prime estimate is made.
For an inert prime $p$, write $\gamma_p=p/(p^2-1)=\sum_{h\ge1,\ h\ {\rm odd}}p^{-h}$. Suppose a local expansion of derivative order $a$ supplies a valuation lower bound $\gamma_p a-\sum_h i_h-D_0$, where $D_0$ is a loss, and the nonvanishing terms have
\begin{equation}\label{D:85}
0\le i_h\le \min(a/p^h,w_h)\qquad (h\ {\rm odd}).
\end{equation}
Then the gain after charging these terms is at least
\begin{equation}
\sum_{h\ {\rm odd}}\left(a/p^h-\min(a/p^h,w_h)\right)-D_0
=\sum_{h\ {\rm odd}}(a/p^h-w_h)_+-D_0. \label{II:t6.1}
\end{equation}
The first bound $p^hi_h\le a$ is a degree bound. The second is supplied by column and minor capacities in the translated weight data. For example $p=3$, $a=81$, $w_h=2$ gives $25$ at $h=1$, $1$ at $h=3$, and zero thereafter. Obtaining all these bounds together is the arithmetic content. In the source the factorial valuations in the polynomial substitution give the initial lower bound, other terms have to be paid for, and a local lattice index must also be subtracted. [19, 21]
\textbf{The factorial count, with proof.} The initial lower bound in the last paragraph comes from valuations of factorials. Here is the source's statement in full, with an elementary proof. Let $p$ be prime and put $\rho_p=1/(p^2-1)$, so that $\gamma_p+\rho_p=1/(p-1)$. For an integer $n\ge0$ let $\lambda(n)$ be the number of digits of $n$ in base $p$, with $\lambda(0)=0$. Let $S$ be a finite set and $S_0\subset S$. Suppose given nonnegative integers as follows:
\begin{enumerate}[label=(\roman*),leftmargin=2.6em,itemsep=0pt,topsep=2pt]
\item $\alpha_s$ and $\ell_s$ for $s\in S$, with $\alpha_s=0$ outside $S_0$;
\item lists $e_{s,1},\ldots,e_{s,r_1}$ with sum $\alpha_s$;
\item lists $a_{s,1},\ldots,a_{s,r_0r_1}$ with sum at most $\ell_s$;
\item $i_{s,h}$ for $h$ in a finite set of nonnegative integers, zero outside $S_0$, with $p^{2h+1}i_{s,h}\le\alpha_s$;
\item with $A=\sum_s\alpha_s$ and $\Lambda=\sum_s\ell_s$, one has $\sum_{s}\sum_j a_{s,j}+\sum_{s,h}i_{s,h}=\Lambda$.
\end{enumerate}
Let $V$ be the sum of $v_p(n!)$ over all the $e_{s,j}$, $a_{s,j}$, $i_{s,h}$. Then for every integer $i_2$ with $pi_2\le\Lambda$,
\begin{equation}
V\ \ge\ \gamma_pA+\rho_p(A+\Lambda)+i_2-\Delta,\qquad
\Delta=\sum_{s\in S}\big(r_1\lambda(\alpha_s)+r_0r_1\lambda(\ell_s)\big)
+\sum_{s\in S_0}\lambda(\alpha_s)^2 . \label{II:t6.1a}
\end{equation}
\emph{Proof.} Legendre's formula is $v_p(n!)=(n-\sigma_p(n))/(p-1)$, where $\sigma_p(n)$ is the sum of the digits of $n$ in base $p$. Each digit is at most $p-1$, so $v_p(n!)\ge n/(p-1)-\lambda(n)$. The integers in the three families add up to $A+\Lambda$, by the two hypotheses on sums. Hence $V\ge(A+\Lambda)/(p-1)-\sum\lambda(n)$. Now count digits. Each $e_{s,j}$ is at most $\alpha_s$, and there are $r_1$ of them: at most $r_1\lambda(\alpha_s)$. Each $a_{s,j}$ is at most $\ell_s$, and there are $r_0r_1$ of them: at most $r_0r_1\lambda(\ell_s)$. If $i_{s,h}\ge1$ then $p^{2h+1}\le\alpha_s$, so $h<\lambda(\alpha_s)$ and at most $\lambda(\alpha_s)$ values of $h$ occur; each such $i_{s,h}$ is at most $\alpha_s$. These contribute at most $\lambda(\alpha_s)^2$, and only for $s\in S_0$. Thus $\sum\lambda(n)\le\Delta$. Finally $(A+\Lambda)/(p-1)=\gamma_pA+\gamma_p\Lambda+\rho_p(A+\Lambda)$, and $\gamma_p\Lambda\ge\Lambda/p\ge i_2$. $\square$
In \eqref{II:t6.1a} the term $\gamma_pA$ is the model gain $A(1/p+1/p^3+\cdots)$ of section 2. The term $\rho_p(A+\Lambda)$ pays exactly for the denominators $1/(p^2-1)$ per unit of degree met there in the inverse series, and $i_2$ pays for one further division. The loss $\Delta$ is small: per index $s$ it is at most $(r_1+r_0r_1+\lambda)\lambda$, where $\lambda$ is the larger of the digit counts $\lambda(\alpha_s)$, $\lambda(\ell_s)$. For example, with $p=3$, one index $s$, $r_0=r_1=1$, $\alpha=81$, $\ell=0$ and no $i_{s,h}$: $V=v_3(81!)=40$, while $\gamma_3A+\rho_3A=81/2=40.5$ and $\Delta=\lambda(81)+\lambda(81)^2=30$. The inequality $40\ge40.5-30$ holds with room to spare; the main terms agree to within one. This lemma supplies valuations of individual factorials. It does not identify which factorials occur in the theta coefficients, which is part of the quoted local theorem. [21]
\textbf{The coefficient $2\log p$.} For the coefficient field $L_0$ and a prime ideal $\mathfrak p$ over $p$, write $e_{\mathfrak p},f_{\mathfrak p}$ for the ramification index and residue degree. The normalized local weight is $\lambda_{\mathfrak p}=\log \operatorname{Norm}(\mathfrak p)/[L_0:\mathbb Q]$. The source measures a local gain $y$ in units $2\lambda_{\mathfrak p}e_{\mathfrak p}y$. Since $\operatorname{Norm}(\mathfrak p)=p^{f_{\mathfrak p}}$ and $\sum_{\mathfrak p\mid p}e_{\mathfrak p}f_{\mathfrak p}=[L_0:\mathbb Q]$, one unit at every place over $p$ sums to $2\log p$. For example in $\mathbb Q(i)$ above $3$, $e=1$, $f=2$ and $\lambda=(\log9)/2=\log3$. The factor $2$ is the squared-norm normalisation of \S I.4.2(ii). At the ramified prime $d$ the splitting condition has half weight and gives $\log d$. These are the coefficients $c(r)$ of section 4.1; section 5.2 checked that the character expansion reproduces them. [3, 22]
The concrete minor, the Hasse product rule and \eqref{II:t6.1} are three elementary ingredients of the local argument. Applying them to all the normalized theta kernels, choosing the usable places, and bounding the losses after summation requires the source's local divisibility theorem. In its statement the left side is the sum of the odd-prime-power expressions \textbf{minus} the orbit and rounding losses. The right side is the sum of actual local gains over the $m$ maps \textbf{minus} the local lattice correction. [19] The divisibility at inert primes is written up in Part III, \S III.5, conditionally on the integrality of the theta kernels in the coordinates of the height-two logarithm (hypothesis (B)), which is taken from the Lean development; under that hypothesis \S III.5 proves the lower bound for the valuation of a product of minors applied to one such function (for Frobenius orbits of length two; for longer orbits it also uses a duality statement cited from the Lean), with the positive parts of \eqref{II:t6.1}, and it proves without hypothesis the estimate of section 2 for the inverse of the logarithm in several variables; it does not prove the passage to lattices, and the congruence of section 6.3 is not used there. The passage to lattices is treated in Part III, \S III.6: the lemmas on lattices and the splitting of the prime sum are proved there, the theorem on the glued lattice is conditional on two statements of the source, and the bounds for the loss sums are quoted.
\newpage
\subsection*{6.5 Which theta function is differentiated?}
At step $j$ let $N_j=k+j(\tau_0+1)$ be the dimension of the positive definite Hermitian space at that stage (the space $\mathsf X_j$ of Part~III, \S\ref{ob:sec}), where $\tau_0$ is the odd rank parameter. The coordinates of the holomorphic theta function, for a pair of lattice classes $L,L'$ at consecutive stages and a complex embedding of the coefficient field, are the entries of a rectangular matrix at each weight place:
\begin{equation}\label{D:88}
z=(z_{\tau,\alpha,\beta}),\qquad
1\le\alpha\le N_j,\quad 1\le\beta\le N_{j+1}.
\end{equation}
Write its Taylor series at zero as $\Theta_{L,L'}(z)=\sum_{\nu}c_\nu z^\nu$, using a multi-index $\nu=(\nu_g)$ with $g=(\tau,\alpha,\beta)$ and $\nu!=\prod_g\nu_g!$. For vectors in the consecutive spaces of forms there is a polynomial $P(z)=\sum_\nu P_\nu z^\nu$ determined by their weights and pairing. In the formulation of [23] (a statement in the archive; see the start of Part III) the local expression in a matrix entry is
\begin{equation}
P(\partial)\Theta_{L,L'}(0)=\sum_{\nu} P_\nu\,\nu!\,c_\nu . \label{II:t6.2}
\end{equation}
This explains why the polynomial minors and the factorials occur together. At each place the monomials in $P$ have prescribed total degree. The global matrix coefficient sums the displayed expressions over preceding classes with reciprocal stabilizer weights. The source also describes the theta function with algebraic coordinates at finite places so that the same normalized pairing has the local divisibility. That identification of rational structures is a theorem of the construction. That the entries used by the final theorem are of the form \eqref{II:t6.2} is quoted. [23]
On the complex side the polynomial has the squared Gaussian norm
\begin{equation}\label{D:90}
\|P\|_{\rm F}^2=\sum_\nu |P_\nu|^2\nu! .
\end{equation}
Here is a proof of its simplest case. In the complex plane give area the density $\pi^{-1}e^{-|z|^2}$. Integration in angle makes different powers orthogonal, and the squared norm of $z^a$ is
\begin{equation}\label{D:91}
2\int_0^\infty r^{2a+1}e^{-r^2}\,dr
=\int_0^\infty t^a e^{-t}\,dt=a! .
\end{equation}
The last integral follows by $a$ integrations by parts. For several independent variables the integrals multiply. For a positive width $\Omega$, the density $(\pi\Omega)^{-1}\exp(-|z|^2/\Omega)$ gives the squared monomial norm $a!\Omega^a$. In the dual coefficient estimate the scale appears with the inverse power. Weighted Cauchy--Schwarz gives the inequality stated in the archive [23]
\begin{equation}\label{D:92}
|P(\partial)\Theta(0)|^2\le
\|P\|_{\rm F}^2\sum_{\nu\in\operatorname{supp}P}\nu!|c_\nu|^2 ,
\end{equation}
where $\operatorname{supp}P$ consists of its monomials with nonzero coefficients. Apply Cauchy--Schwarz to the two lists $P_\nu\sqrt{\nu!}$ and $c_\nu\sqrt{\nu!}$.
The analytic estimates bound the coefficient factor using the Gaussian-weighted norm of the theta function on a fundamental domain. The polynomial factor is bounded by a product of hook factors of the weights times the squared norms of the two input vectors. In one row of length $a$ the hook factor is exactly $a!$. The full operator bound also contains the period, level, multiplicities and theta mass. [23, 24] The estimates for the two factors are proved in Part III, \S III.4, apart from the four conditional passages listed at the start of that section.
\textbf{Comparison with section 6.3.} In the lattice comparison the archimedean map height is the average over infinite places $v$ of $\log\|T_v\|_{\rm op}^2$, where the operator norm uses the two chosen Hermitian metrics. Divisibility by $p^e$ thus contributes $2e\log p$ when measured at all places above $p$, and a degree-$a$ monomial contributes $\log(a!)=a\log a-a+O(\log(a+1))$ in the squared Gaussian norm. The difference from section 6.3 is visible in $A_a=a![z^a]s(z)$, where $[z^a]$ means the coefficient of $z^a$. The nearest pole of $s$ is at finite positive distance $R$; the radius formula gives $\limsup_a|[z^a]s|^{1/a}=1/R$. Along a subsequence, therefore, $\log|A_a|^2=2\log(a!)+O(a)$, while the squared Gaussian norm contributes just one factorial. [24, 25]
\newpage
\textbf{A natural question.} Why not differentiate a classical entire theta function, which already has Gaussian size? For the lemniscatic lattice the Weierstrass function $\sigma$ of $y^2=4x^3-4x$ has integer derivatives $\sigma^{(n)}(0)$; they vanish unless $n\equiv1\bmod4$, and the nonzero ones satisfy $\log|\sigma^{(n)}(0)|\le\tfrac12n\log n+O(n)$, by the Gaussian growth of $\sigma$ and Cauchy's formula. Exact computation for $n\le241$ shows that their divisibility at inert primes falls well short of the model: the exponent of $3$ is $13$ at $n=101$ and $28$ at $n=241$, against $3n/8=37.9$ and $90.4$. So Gaussian size does not by itself bring the divisibility with it. The source's local theorem establishes both properties together for its theta kernels, in coordinates chosen for that purpose, and it is quoted here. The computation is in the file \texttt{e4\_sigma.py} listed under Computations. [21, 23]
\subsection*{6.6 Size of a derivative, its period, and the count of forms}
The model for the size of a derivative is this. Let $f$ be an entire function with $|f(z)|\le S\,e^{|z|^2/2}$ for all $z$, where $S>0$. Cauchy's formula on the circle $|z|=\sqrt a$ gives $|f^{(a)}(0)|\le S\,a!\,(e/a)^{a/2}$ for $a\ge1$. By Stirling's formula, if $f^{(a)}(0)\ne0$, then $\log|f^{(a)}(0)|^2\le a\log a-a+2\log S+O(\log(a+1))$: one factorial for the square. Rescaling the variable by the period adds $-a\log\Omega_E$, with $\Omega_E$ as defined below. This is the model at the start of Part III, \S III.4. It identifies the factorial and scale terms of \eqref{II:t6.5}. The bound for the norm of an actual composed map needs additional estimates.
Here is the exact period normalization appearing in the comparison. It is the normalization for the field $E$, which is the one of the source. Let $\mathrm{rd}_E=|\mathrm{disc}\,E|^{1/[E:\mathbb Q]}$ be the root discriminant of $E$, and put $v=\mathrm{rd}_E/2$. The normalized period $\Omega_E$ is the positive number with
\begin{equation}
\log\Omega_E=\gamma+\log\pi-\log v-c_{\chi_d}
=\gamma+\log(2\pi/\mathrm{rd}_E)-c_{\chi_d}. \label{II:t6.3}
\end{equation}
This is the Chowla--Selberg identity in the form used. The period $\Omega_E$ measures squared size. In [16] the period is not constructed from a specific curve: the statement is that a curve and a normalisation exist for which \eqref{II:t6.3} holds. It is important here which period normalization is used. Rescaling the differential changes the linear term. [16]
\textbf{Remark. For the elliptic curve itself}, with complex multiplication by $\mathbb Q(\sqrt{-d})$, the same identity holds with $v=\sqrt d/2$, the imaginary part of the quadratic lattice parameter $(1+i\sqrt d)/2$, and with the period $\Omega$ of the curve: $\log\Omega=\gamma+\log(2\pi/\sqrt d)-c_{\chi_d}=\gamma+\log\pi-\log v-c_{\chi_d}$. In this form the identity is Kronecker's limit formula, and $\Omega$ is a geometric mean over the ideal classes of $\mathbb Q(\sqrt{-d})$. For $\mathbb Q(i)$, with $d$ replaced by $4$, exponentiating the same expression gives $\Omega=2\pi(\varpi/\pi)^2$, with $\varpi$ the lemniscate constant. For $d=1319$ the formula gives $\log\Omega=\gamma+\log(2\pi/\sqrt{1319})+1.520227887516\ldots$. The two normalizations differ by $\log\Omega-\log\Omega_E=\log(\mathrm{rd}_E/\sqrt d)$, and the sum of the logarithm of the period and $\log v$ is the same in both: $\log\Omega_E+\log(\mathrm{rd}_E/2)=\log\Omega+\log(\sqrt d/2)$. Only this sum enters \eqref{II:t6.6}. So \eqref{II:t6.6} is the same in either normalization, and the numerical check in section 6.7 may use either. The two lines of \eqref{II:t6.5}, taken separately, hold only with $\Omega_E$ and $v=\mathrm{rd}_E/2$.
The other source of linear terms is a count of forms. The mass of a definite genus is the sum of reciprocal stabilizer orders over its lattice classes, as in section 6.1. The dimension of a representation with strictly decreasing shifted integral weights $z_1,\ldots,z_r$ is
\begin{equation}\label{D:94}
D_r(z)=\frac{V_r(z)}{\prod_{j=0}^{r-1}j!},\qquad
V_r(z)=\prod_{1\le i0$ collects the extra local factors:
\begin{equation}\label{D:95}
\frac{M_r}{M_{r-1}}=
\big((r-1)!(v/\pi)^r\big)^f(2v)^{-f/2}\kappa_r .
\end{equation}
Here $v=\mathrm{rd}_E/2$, as in \eqref{II:t6.3}, and $M_r$ is unrelated to the subtracted main term $M_{u,t,j}$. For two ranks $r_00$, $S=\sum_i\dim V_i>0$ and positive weights $c_i$. A superscript $\dagger$ denotes the adjoint. Put $K_i=c_iB_i^\dagger B_i$ and $Q=\sum_i c_i B_iB_i^\dagger$. Let $U_i$ be subspaces of $V_i$ with $\sum_i(\dim V_i-\dim U_i)\le\alpha S$, and suppose
\begin{equation}\label{D:104}
\sum_i\|K_i-I\|_{\rm HS}^2\le e S,\quad 0\le e\le1/4,\qquad
\operatorname{tr}(Q^2)\le(1+\eta)(\operatorname{tr}Q)^2/D.
\end{equation}
Here $\|A\|_{\rm HS}^2=\operatorname{tr}(A^\dagger A)$. \textbf{Lemma.} \textit{Under these hypotheses the codimension of $\sum_i B_i U_i$ in $H$ satisfies}
\begin{equation}\label{D:105}
\operatorname{codim}\Big(\sum_i B_iU_i\Big)\le\big(2\eta+4\alpha+4\sqrt e\big)D .
\end{equation}
(The proof below gives the sharper bound with $\eta$ in place of $2\eta$. The form with $\eta$ is the one that is used: in section 6.10 for the chain of the source, and in Part III, \S\ref{tr:sec}, Lemma~T1(d).) The display, with $2\eta$, is the finite-dimensional assertion $\mathrm{FrameLA}$ stated in [20] (a statement in the archive, not used by the final theorem; the chain uses a variant, $\mathrm{FrameLA1}$, stated for subspaces and with $\eta$ in place of $2\eta$; see Part III, \S\ref{tr:sec}, \S2).
\textbf{Proof.} We may take $0\le\alpha\le1$, since losing the entire space makes a larger bound automatic. Let $P$ project onto the missing target space, of dimension $zD$. Then $PB_i$ vanishes on $U_i$. Hence $\operatorname{tr}(PQ)$ is at most the sum of the traces of $K_i$ over the omitted source directions, since $c_iB_i^\dagger PB_i\le K_i$ and it vanishes on $U_i$. Write $K_i=I+(K_i-I)$ there and apply Cauchy--Schwarz. Also apply it to the total trace:
\begin{equation}\label{D:106}
\operatorname{tr}(PQ)\le(\alpha+\sqrt{\alpha e})S,\qquad
\operatorname{tr}Q\ge (1-\sqrt e)S\ge S/2 .
\end{equation}
Writing $\bar q=\operatorname{tr}Q/D$, the second-moment hypothesis gives $\|Q-\bar q I\|_{\rm HS}^2\le\eta(\operatorname{tr}Q)^2/D$. Pairing with $P$ yields
\begin{equation}\label{D:107}
z\le\operatorname{tr}(PQ)/\operatorname{tr}Q+\sqrt{\eta z}
\le 2\alpha+2\sqrt e+(\eta+z)/2.
\end{equation}
This proves even $z\le\eta+4\alpha+4\sqrt e$. The specialization to the actual maps requires a lower first moment and an upper second moment of their period pairings; the latter comes from a relative trace formula. A trace formula equates a sum over a basis of functions with a sum of geometric integrals. Here it controls correlations between the images of different maps. These automorphic estimates are quoted. [7, 19, 20] In the source the index $i$ is a word: a string of $k-2$ binary letters which chooses, at every weight place, one of the weights that interlace a fixed weight of the group in $k-1$ variables; each word also has its own level prime. The space $V_i$ is attached to the word, and $H$ is common to all words. The character twists of section 6.8 are a different index (one twist for each place) and do not enter this family. There is one such family for each translate $u$ of section 4; the weights $w_{u,j}$ depend on the translate and not on the word. See Part III, \S\ref{tr:sec}.
\newpage
\subsection*{6.10 From the rank bound to (M)}
It remains to see why a count of directions can control a mean slope. In this section $H$ is a bound for heights and $u$ is a spread of slopes; they are not the target space $H$ of section 6.9 and the translate $u$ of section 4. Let $d_1,\ldots,d_D$ be real slopes, $a$ a reference value, and assume $d_j\ge a-H$ with $H\ge0$. Put $N(t)=\#\{j:d_j0$, the fraction below $s-t$ is at most $u/(u+t)$. Indeed, with fraction $z$ below, their mean is at most $z(s-t)+(1-z)(s+u)$. Apply the rank bound of section 6.9 after discarding those directions; so $\alpha=u/(u+t)$ in the lemma of section 6.9, which gives the term $4u/(u+t)$ below.
(Passing from the bound on the missing directions to a count of the slopes of the target below a given level uses a slope inequality for the maps induced on quotients, and properties of the filtration of a lattice by slopes. This step is no longer quoted as a whole: it is derived in Part III, \S\ref{as:sec}, Proposition~M4. There the slope inequality is Lemma~M3, which is proved, and the properties of the filtration are a cited fact, (C6) of that section (Stuhler, Grayson; cited from memory), which is not proved in this paper. Proposition~M4 takes a rank bound of the form of section 6.9 (the conclusion of Corollary~T2 of \S III.8) as a hypothesis. The derivation there is not the one of the source, which uses the statements of [25].)
In the notation of [20], for numbers $s,h,L,u,H,\eta,e$ with $u>0$ and $L,H,\eta,e\ge0$, the hypotheses take the form
\begin{equation}\label{D:109}
d_j\ge s-h-H,\quad
\frac{\#\{j:d_j0$ (Part III, \S\ref{tr:sec}). In the variant the chain uses, the error bracket is $4u\log(1+H/u)+(\eta+4\sqrt e)H$, with $\eta$ and not $2\eta$. It is multiplied by $1/(1-\delta_{\rm p})$, where $\delta_{\rm p}$ is the proportion of the target not spanned by its lattice (exponentially small, quoted). The lower bound also has $-\log|\mathsf W|$ as a separate term, which this factor does not multiply. Here $\mathsf W$ is the set of words and $\log|\mathsf W|\le(k-3)\log2$, which is negligible; the sizes of $H$ and of $E_{\rm cnt}$ are part of the quoted statements and are not derived here. The bound for the spread $u$ and the arithmetic control of $L$ are also needed. This argument uses a mean slope of the target, where the elementary inequality of section 6.8 by itself would only control a maximal slope.
\textbf{Assembly.} The local derivative bounds place the prime sum in the integral lattices. The period identity makes it possible to compare the different local choices in one space. The height and counting comparisons \eqref{II:t6.5}--\eqref{II:t6.6} give the prime sum's main term. Finally the mean-slope bound accounts for losses from indices and directions which must be discarded. The exact output of the source's comparison is this: for each translate, the required divisibility sum is at most its main term plus an aggregated error [28]. The hypotheses of that statement are defined in [7]. The archive also has the form averaged over the translates, in [7]; the final theorem does not use it. The size estimates bound the error by the unnormalized expression of section 4.3. These are the inputs [5, 7, 19, 28] used at (M).
Once the quoted estimates are granted, sections 4 and 5 give (A), and section 3 concludes by balancing $x/m$ and $m$. A cost of $m^2$ would instead give $m=x^{1/3}$ and exponent $2/3$, if the corresponding inequality were available with the other errors under control.
\par\medskip\noindent\fbox{\parbox{\dimexpr\linewidth-2\fboxsep-2\fboxrule\relax}{\textbf{Proved in Part II, section 6.} Finite-chain integrality, the minor congruence, the Hasse product rule, the reduction \eqref{II:t6.1}, the factorial count \eqref{II:t6.1a}, the Gaussian norm and the Cauchy--Schwarz bound of section 6.5, the count identity \eqref{II:t6.4} and the cancellation \eqref{II:t6.6}, the elementary slope inequality, rational lattice gluing (an illustration over $\mathbb Q$), the rank bound and its integration. (Sections 1--5 are proved in full, given (M) and Estimates B, C.)\par\smallskip \textbf{Quoted from the Lean source.} The normalized theta maps and period identity, their simultaneous local divisibilities and losses, the period and mass formulas, the level bounds, and the norm bounds (apart from the analytic estimates of Part III, \S III.4); the denominator estimates; and the two moments for this family. Part III, \S III.6--III.9 deduce parts of these from named statements of the source, which remain quoted. Part III, \S\ref{as:sec} deduces (M) at one scale from twelve numbered hypotheses, and the Riemann hypothesis from these and a thirteenth; none of the hypotheses is proved outright. See the table at the start of Part III.}}
\newpage
\section*{Sources}\addcontentsline{toc}{section}{Sources}
\small\setlength{\parskip}{2pt}
Alpöge published the Lean source as one archive, \path{lean.tar.gz}, split into fourteen download parts at \href{https://alpo.ge/}{alpo.ge} (listed in footnote 1 of \href{https://alpo.ge/remark.pdf}{his announcement}). Unpacked, it contains 175{,}187 Lean files. The SHA-256 digest of the joined archive is \path{9631b4f020199e580ba86178cb56c6e9b09f690c2369a80dc4334aa93f49c7fc}. The numbered references below are files of that archive; all except [4] are cited in this paper. Each is given by its path from the root of the archive.
\par\hangindent=2.2em\noindent\makebox[2.2em][l]{[1]}{\small \path{lean/src/Development/AutomorphicArithmetic/DedekindLFunctions/LandauTheorems/}\linebreak\path{landauWindow.lean}}
\par\hangindent=2.2em\noindent\makebox[2.2em][l]{[2]}{\small \path{lean/src/Formalism/ProductFormula/StatementOCCM.lean}}
\par\hangindent=2.2em\noindent\makebox[2.2em][l]{[3]}{\small \path{lean/src/Formalism/SizeWindowBrackets/FirstPrimeNeSecondPrime.lean}}
\par\hangindent=2.2em\noindent\makebox[2.2em][l]{[4]}{\small \path{lean/src/Formalism/StatementCM.lean}} {\small (definitions for the earlier form of the argument; see the remark on [2] in section 2)}
\par\hangindent=2.2em\noindent\makebox[2.2em][l]{[5]}{\small \path{lean/src/Development/AutomorphicArithmetic/DedekindLFunctions/LandauTheorems/}\linebreak\path{ChTop.lean}}
\par\hangindent=2.2em\noindent\makebox[2.2em][l]{[6]}{\small \path{lean/src/Formalism/SizeWindowBrackets/GrowthBoundGivesRiemannHypothesis.lean}}
\par\hangindent=2.2em\noindent\makebox[2.2em][l]{[7]}{\small \path{lean/src/Formalism/RankGapBounds/MeanBoundSecondForm.lean}}
\par\hangindent=2.2em\noindent\makebox[2.2em][l]{[8]}{\small \path{lean/src/Development/AutomorphicArithmetic/CharacterBoxes/ExistsPageN.lean}}
\par\hangindent=2.2em\noindent\makebox[2.2em][l]{[9]}{\small \path{lean/src/Development/AutomorphicArithmetic/MeanSquareBounds/pairEx.lean}}
\par\hangindent=2.2em\noindent\makebox[2.2em][l]{[10]}{\small \path{lean/src/Development/AutomorphicArithmetic/CharacterBoxes/WinPairs.lean}}
\par\hangindent=2.2em\noindent\makebox[2.2em][l]{[11]}{\small \path{lean/src/Development/AutomorphicArithmetic/PrimitiveCosets/CoreGm.lean}}
\par\hangindent=2.2em\noindent\makebox[2.2em][l]{[12]}{\small \path{lean/src/Supplements/Kernels/MainTheorems.lean}}
\par\hangindent=2.2em\noindent\makebox[2.2em][l]{[13]}{\small \path{lean/src/Development/AutomorphicArithmetic/AdelicQuotients/ThetaLiftLinear.lean}}
\par\hangindent=2.2em\noindent\makebox[2.2em][l]{[14]}{\small \path{lean/src/Formalism/ThetaLiftIndependence/Statement.lean}}
\par\hangindent=2.2em\noindent\makebox[2.2em][l]{[15]}{\small \path{lean/src/Formalism/SharpRestriction/GrowthBounds/CoarseMultiplicity/KeyMinorDvd.lean}}
\par\hangindent=2.2em\noindent\makebox[2.2em][l]{[16]}{\small \path{lean/src/Development/AutomorphicSpectrum/Proofs/GeometryProofs/}\newline\path{ChowlaSelbergPeriodStatement.lean}}
\par\hangindent=2.2em\noindent\makebox[2.2em][l]{[17]}{\small \path{lean/src/Formalism/BehrendSets/StatementE.lean}}
\par\hangindent=2.2em\noindent\makebox[2.2em][l]{[18]}{\small \path{lean/src/Formalism/ThickAverageLoss/PartnersToFactorsAt.lean}}
\par\hangindent=2.2em\noindent\makebox[2.2em][l]{[19]}{\small \path{lean/src/Formalism/SharpRestriction/GlobalTheoremInputs.lean}}
\par\hangindent=2.2em\noindent\makebox[2.2em][l]{[20]}{\small \path{lean/src/Formalism/CorankShare/StatementFR.lean}}
\par\hangindent=2.2em\noindent\makebox[2.2em][l]{[21]}{\small \path{lean/src/Formalism/ThetaLogCoordinates/UniformThetaSubstitution/StatementAB.lean}}
\par\hangindent=2.2em\noindent\makebox[2.2em][l]{[22]}{\small \path{lean/src/Formalism/LocalRingCardinality/DataParams}\textsubscript{2}\path{.lean}} {\small (the file name contains the subscript character U+2082)}
\par\hangindent=2.2em\noindent\makebox[2.2em][l]{[23]}{\small \path{lean/src/Formalism/SharpRestriction/GlobalSchurBounds/FlipTwoThree.lean}}
\par\hangindent=2.2em\noindent\makebox[2.2em][l]{[24]}{\small \path{lean/src/Formalism/SharpRestriction/GlobalSchurBounds/}\newline\path{IntegrableOfContinuousCircleMeasure.lean}}
\par\hangindent=2.2em\noindent\makebox[2.2em][l]{[25]}{\small \path{lean/src/Formalism/HarderNarasimhan/StatementPl.lean}}
\par\hangindent=2.2em\noindent\makebox[2.2em][l]{[26]}{\small \path{lean/src/Formalism/LocalRingCardinality/Params.lean}}
\par\hangindent=2.2em\noindent\makebox[2.2em][l]{[27]}{\small \path{lean/src/Formalism/FrobeniusOrbits/FrobeniusOrbitsProofs/ThickExists.lean}}
\par\hangindent=2.2em\noindent\makebox[2.2em][l]{[28]}{\small \path{lean/src/Formalism/SizeWindowBrackets/ChainSlopeWindows/LevelOfCongruence.lean}}
\par\hangindent=2.2em\noindent\makebox[2.2em][l]{[29]}{\small \path{lean/src/Development/AutomorphicArithmetic/CharacterBoxes/PairGood.lean}}
}
\newpage
\sloppy
\setcounter{section}{0}\setcounter{equation}{0}
\renewcommand{\thesection}{III.\arabic{section}}
\renewcommand{\theequation}{III.\arabic{equation}}
\stepcounter{partno}\begin{center}\Large\bfseries Part III. Proofs of the quoted statements\end{center}
\phantomsection\addcontentsline{toc}{part}{Part III. Proofs of the quoted statements}
\noindent Parts I and II deduce the Riemann hypothesis from statements marked \quoted. Part III is meant to
prove those statements, in the same classical language, so that the three parts together form a complete
proof. It is being written in stages, and the table below records what has been done.
{\small\setlength{\LTleft}{\fill}\setlength{\LTright}{\fill}
\begin{longtable}{p{.36\textwidth}p{.56\textwidth}}
\toprule
Statement of Parts I and II & Status in Part III\\
\midrule\endhead
\bottomrule\endfoot
Estimate B: the auxiliary primes $q$, $d$ (\S III.1) & proved, from four cited theorems (Q1)--(Q4)\\
Estimate C: the characters of $E$ at the large scale (\S III.2) & proved, from three cited theorems (Z1)--(Z3) and Theorem~\ref{thm:pair}(e)\\
The sets $T_2$ and $T$ of columns (\S III.3) & constructed, with proof (elementary). In (M) they enter through the densities (H0)(h) and the loss bound (H7) of \S\ref{as:sec}; (H7) is quoted\\
The inequality (M), size of the theta kernels (\S I.7, item 2; \S III.4) & the analytic estimates for one block, one map and a chain are proved in an abstract setting; that the maps of the construction are instances of it is quoted (item (vi) of the list in \S III.4); four passages are conditional (the reference mean square, the eigenvalues of a lift, the row-by-row comparison, the pairing at the end of the chain); the arithmetic inputs listed at the end of the section are not proved\\
The inequality (M), divisibility at inert primes (\S I.7, item 1; \S III.5) & written up in \S III.5, conditionally on the integrality of the theta kernels in the coordinates of the height-two logarithm (hypothesis (B)), which is taken from the Lean development. Under (B) the local estimate for power series is proved for orbits of length two; for longer orbits it also uses a duality statement cited from the Lean. That the theta kernels satisfy (B), the frames and labels, and the remaining primes are not proved\\
The inequality (M), from derivatives to lattices (\S III.6) & proved: the lemmas on slopes of lattices, the form of the prime sum and its splitting by classes of primes, the digit losses, the inequality at one class of primes, and bounds for several terms of the sum over primes. Quoted: the bounds for the eleven loss sums and for their total. Conditional on two statements of the source (on valuations and on lattices): the theorem on the glued lattice. A model case only: the comparison of the two sides. Quoted: the statement on valuations itself\\
The inequality (M), arithmetic inputs of the size bound (\S III.7) & proved: the size inequality \eqref{III:sizefinal} follows from eleven named inputs; an index-corrected mean of periods equals $\log\Omega_E$, under the hypotheses on the periods and the field stated there (its identification with the periods of the input (S4) rests on two further statements of the source and one that is proved there). The eleven inputs are quoted, among them the inner-product formula, the covolumes and the local index bounds\\
The inequality (M), the trace-formula estimates (\S III.8) & proved: the dimension bound of Part II, \S6.9 follows from three statements of the source (on traces, ranks and pairings) and the size and subspace conditions of Corollary~T2; a finite model of the trace estimates. The three statements, and the theorems behind them, are quoted\\
The inequality (M), the bound for Galois cohomology (\S III.9) & proved: the step from the bound and a quoted comparison inequality to the bound for denominators, and vanishing in some cases over $\Q$ from cited theorems. The bound itself and the comparison inequality are quoted, with an account of the proof of the bound in the source\\
The objects of the construction (\S III.10) & definitions, in classical terms. Proved: the structure of the field $E$ and (from cited theorems) how primes split in it; the rule for the cells of the table; slopes of lattices and of their duals; convergence, size and Taylor coefficients of the theta series of a pair of lattices. Assumed from the source, as seven numbered hypotheses: that the spaces, lattices, parameters and weights exist with the stated properties, that the maps of the chain are given by these theta series, and that the kernels are algebraic, integral and of the stated size. A dictionary relates the settings of \S III.4--III.9 to these objects; some of its rows are not verified\\
The inequality (M), the assembly (\S\ref{as:sec}) & proved: (M) for one scale $x$ follows from twelve numbered Hypotheses (H0)--(H11) (Theorem~M, Corollary~M9). None of the twelve is proved outright. Six are derived, there or in \S III.6--III.8, from named statements of the source, which are quoted or assumed: (H0), (H1), (H6), (H8), (H10), (H11). One, (H7), is quoted. Four, (H2), (H3), (H5), (H9), are assumed, and (H4) is assumed in part\\
The Riemann hypothesis from numbered Hypotheses (\S\ref{as:sec}, \S7) & proved: a thirteenth Hypothesis, (H12), implies the Riemann hypothesis (Corollary~M11), by Theorem~M, Parts~I and~II and \S III.2. (H12) says that data satisfying (H0)--(H11) exist at every $x$ of intervals $[Z,Z^{3/2}]$ with $Z$ arbitrarily large, with constants that do not depend on $x$ and with primes $q$, $d$ for which Estimates~B and~C hold at $x$. (H12) is assumed. \S III.1 proves that primes as in its clause (b) exist. Estimate~C for such primes is proved in \S III.2; it is not part of (H12)\\
The hypotheses of \S III.10 & assumed; not proved in these pages\\
\end{longtable}}
\noindent So at present Parts I--III prove the Riemann hypothesis from the inequality (M), on the intervals of
Part~II, \S3, and from the cited theorems; (M) is not proved. \S\ref{as:sec} reduces (M) at one scale to the
Hypotheses (H0)--(H11), and the Riemann hypothesis to the Hypotheses (H0)--(H12) and the cited theorems
(Corollary~M11 there). None of the thirteen Hypotheses is proved outright in this paper;
\S III.4--III.10 treat them to the extent stated in the table, conditionally as stated there. That the
Hypotheses hold at every scale of such intervals, with constants that do not depend on the scale and for
primes for which Estimates~B and~C hold, is Hypothesis (H12). It is asserted by the source and is assumed
here.
\noindent The statements below are translated from the Lean development of the announcement. In Part III
``the source'' always means this Lean development. For \S III.1--III.3 each is a statement that the
final theorem actually depends on (for \S III.4--III.10 see the remarks in those sections): we computed the set of all declarations on which the Lean theorem
\texttt{riemannHypothesis} depends, and checked that these belong to it.
\noindent A caution about this check. A declaration belongs to that set as soon as the proof term of the final
theorem refers to it, directly or through other declarations. That is necessary for a statement to be used in the
proof, but it is not sufficient: a statement that is carried along inside a record of statements is counted even if
the argument never consults it. An example: among the declarations on which \texttt{riemannHypothesis} depends in
this sense is one whose statement is the proposition \texttt{True}. So in these
pages ``the final theorem depends on it'' means membership in that set, and nothing more. Where we say that a
statement is not among the declarations the final theorem depends on, that is conclusive: such a statement is not
used. The census of \S\ref{cs:sec} gives a second example: ten of the statements listed there are never read
in the theorems they are passed through, as far as this was followed (eight are entries of a record that are
never taken out of it, and two occur only in the proofs of these), and the final theorem depends on each of
them.
\noindent For \S III.1--III.3 the check was also made for the lemmas of the Lean proofs that the sections
follow (for instance \texttt{QH.thinH}, \texttt{twistK}, \texttt{meanSqK}, \texttt{bad\_share},
\texttt{tailK}, \texttt{count\_bad}, \texttt{hostThickExists}, \texttt{topsChoiceH}): all are among the
declarations the final theorem depends on.
\emph{A correction to the source references of Part II.} The same computation shows that several
statements cited in Part II are present in the archive but are \emph{not} among the $1{,}478{,}198$
declarations on which \texttt{riemannHypothesis} depends: the Fock norm and jet definitions of [23]; the
statements \texttt{ChainInt} of [14], \texttt{FrameLA} and \texttt{FrameLast} of [20], and
\texttt{CountIdentity} of [17] (a statement of the same name elsewhere is used); the definitions concerning
Behrend sets in [17]; and the inequality of [6] in the form quoted. These are
parallel or earlier formulations. The same holds for the linearity statement of [13]. The mathematics of Part II does not depend on them, since what Part II
proves it proves directly; but for these items the phrase ``the source's statement'' should be read as ``a
statement in the archive''. The statements that are used include: the Landau lemma on intervals [1], the
auxiliary primes [9, 29], the weighted sums \texttt{ASK} and \texttt{MAIN} [3], the height of a map [25], the
Chowla--Selberg period [16], the minors congruence [15], the digit inequality \texttt{StarArith} [21], the
layer-cake formula, the Bessel identity and the local comparisons of [19], the bound for each translate
\texttt{each\_unit\_bound\_statement} of [28] with the hypotheses defined in [7] (the averaged statement
\texttt{MeanBoundSecondForm} of [7] is not used), and the bound for Galois cohomology [8].
\section{The auxiliary primes: proof of Estimate B}
For a primitive Dirichlet character $\chi\ne1$ put, as in Part I,
\begin{equation}\label{D:111}
G_\chi(y)=\sum_{n\le y}\Lambda(n)\chi(n)\Big(\frac yn-1\Big)+y\,\frac{L'}{L}(1,\chi).
\end{equation}
For an odd prime $p$ write $\chi_p$ for the Legendre symbol modulo $p$.
\begin{theorem}[auxiliary primes; \texttt{QH.pairEx} in {[9]}, statement in {[29]}]\label{thm:pair}
Let $M\ge1$ be an integer, $0<\varepsilon<\frac1{52}$ and $A\ge1$. There is $Y_1$ such that for every
$Y\ge Y_1$ there are primes $q$ and $d$ with the following properties.
\begin{enumerate}[label=\textup{(\alph*)},leftmargin=2.2em]
\item $q\equiv3\bmod8$ and $\frac12Y^{\varepsilon/5}<\log q\le Y^{\varepsilon/5}$.
\item $d\equiv7\bmod16$ and $\frac12Y^{\varepsilon/5}(\log Y)^2<\log d\le Y^{\varepsilon/5}(\log Y)^2$.
\item $q$ divides $d+1$, and so does every odd prime $p\le Y^{\varepsilon/5}$. Neither $q$ nor $d$ divides $M$.
\item Let $\xi$ be a Dirichlet character modulo $M$ and let $(i,j)\in\{0,1\}^2$, $(i,j)\ne(0,0)$. Let $\chi$ be
the primitive character that induces $\xi\chi_q^i\chi_d^j$. Then for all $y$ with $Y\le y\le Y^A$
\begin{equation}\label{D:112}
|G_\chi(y)|\le y^{1/2+\varepsilon/2}\qquad\text{and}\qquad\Big|\frac{L'}{L}(1,\chi)\Big|\le4\log y .
\end{equation}
\item Let $\rho$ be a real primitive character whose conductor divides $8M$, let $(i,j)\ne(0,0)$, and let
$\chi$ be the primitive character that induces $\rho\chi_q^i\chi_d^j$. Then $L(s,\chi)\ne0$ in the region
\begin{equation}\label{D:113}
\re s>1-\tfrac1{400},\qquad |\mathrm{Im}\,s|\le 8M\exp\!\big(Y^{\varepsilon/5}\big)\exp\!\big(j\,Y^{\varepsilon/5}(\log Y)^2\big).
\end{equation}
\end{enumerate}
\end{theorem}
\noindent\emph{Remarks.} (1) For $\zeta$ one takes $M=1$ and $A\ge\frac32$. Then (d) gives Estimate B of Part I, with $x=y$, the interval $[Y,Y^{3/2}]$ contained in $[Y,Y^A]$, and the
exponent $\frac12+\frac\varepsilon2$ in place of $\frac12+\varepsilon$.
(2) The conductors are far larger than $y$: $\log q$ is a power of $Y$. So (d) cannot be a statement about
a fixed character as $y\to\infty$. It is a statement about well-chosen $q$ and $d$.
(3) Condition (c) has a consequence that is not visible in Part I. If $p$ is an odd prime with
$p\le Y^{\varepsilon/5}$, then $d\equiv-1\bmod p$, and since $d\equiv3\bmod4$ quadratic reciprocity gives
$\chi_d(p)=\big(\tfrac{-1}p\big)(-1)^{(p-1)/2}=1$. Also $\chi_d(2)=1$. So \emph{every prime up to
$Y^{\varepsilon/5}$ splits in $\Q(\sqrt{-d})$}; the inert primes, which carry the argument of Part I, all
exceed $Y^{\varepsilon/5}$.
(4) Part (e) is used for Estimate C: it excludes exceptional real zeros for the real characters whose
conductor is divisible by $q$ or $d$.
\subsection*{Proof of Theorem \ref{thm:pair}}
The proof chooses $q$ at random from a set of primes, then $d$ at random from a second set, and shows that
most choices work. Two things must hold for the chosen primes: a sum over $n\le Z$ must be small (this comes
from a mean square over the primes), and a tail $n>Z$ must be small (this comes from a zero-free box, which
holds for all but few primes by a zero-density theorem). Throughout, $\tau=\varepsilon/2$,
\begin{equation}\label{D:114}
Z=Y^{400A},\qquad z=Y^{\varepsilon/5},\qquad z'=Y^{\varepsilon/5}(\log Y)^2 ,
\end{equation}
and $Y$ is large in terms of $M$, $\varepsilon$, $A$. Constants $C$, $c$ are absolute, or depend only on $A$, unless indicated.
\textbf{Cited theorems.}
\begin{enumerate}[label=\textup{(Q\arabic*)},leftmargin=2.6em]
\item \emph{Zero-free region, with uniqueness} (Landau, Page; \cite[Ch.~14]{Dav00}, \cite{Pag35}; in this
explicit form \cite[\S1]{TZ21}). Let $c_1=\frac1{13}$. For every modulus $m\ge2$, the functions $L(s,\chi)$,
$\chi$ modulo $m$, have no zero with
$\beta\ge1-c_1/\log(m(|\gamma|+3))$, except possibly one simple real zero $\beta_1$ of one real nonprincipal
character $\chi_1$. Moreover $\beta_1\le1-c/m$; this follows from the bound $\beta_1\le1-c'm^{-1/2}$ recorded in \cite[\S1]{TZ21}. This is the exceptional zero meant in (Q2).
\item \emph{Primes in progressions to large moduli} (Thorner and Zaman \cite[Corollary 1.4]{TZ21}; results
of this type go back to Linnik and to Gallagher \cite{Gal70}, see also \cite{Bom87}). There is an absolute
$c_3>0$ such that for coprime $m\ge2$ and $b$, and $t\ge m^{12}$,
\begin{equation}\label{D:115}
\sum_{p\le t,\ p\equiv b\,(m)}\log p=\Lambda_b(t)\big(1+O(\kappa(t))\big),\qquad
\Lambda_b(t)=\frac1{\varphi(m)}\Big(t-\chi_1(b)\frac{t^{\beta_1}}{\beta_1}\Big),
\end{equation}
with $\kappa(t)=\exp(-c_3\log t/\log m)+\exp(-c_3(\log t)^{3/5}(\log\log t)^{-1/5})$. The term with $\chi_1$
is present only if the exceptional zero of (Q1) exists for the modulus $m$.
\item \emph{Zero density} (Montgomery \cite[Theorem 12.2]{Mon71}). The number of primitive characters $\chi$
of conductor at most $Q$ for which $L(s,\chi)$ has a zero with $\beta>1-\frac1{400}$, $|\gamma|\le Q$, is at
most $CQ^{1/4}$.
\item \emph{The logarithmic derivative in a zero-free box} (a standard consequence of Landau's lemma
\cite[\S3.9]{Tit86}, \cite[Lemma 6.3]{MV07}, and the convexity bound for $L(s,\chi)$). Let $\chi\ne1$ be primitive of conductor at most $Q$, and suppose $L(s,\chi)\ne0$ for
$\re s>1-\frac1{400}$, $|\mathrm{Im}\,s|\le Q$. Then for each $\delta>0$ there is $K_\delta$ with
$|\frac{L'}L(s,\chi)|\le K_\delta\log Q$ for $\re s\ge1-\frac1{400}+\delta$, $|\mathrm{Im}\,s|\le Q-1$.
\end{enumerate}
\emph{The form of (Q2) that is used.} Let $U\ge m^{24}$, and let
$\pi^*(U;m,b)$ be the number of primes $p\equiv b\bmod m$ with $U^{1/2}1$. Put
\begin{equation}\label{D:117}
P=P(m_0,a_0,U)=\{q\text{ prime}:\ U^{1/2}0$, and let $Y$ be large in terms of $B$ as well. Then
$|P|\ge U^{9/10}$. Moreover, among the odd squarefree $s$ with $1\frac12Y^{\varepsilon/6}$, so $q\nmid s$. Split $P$ into residue classes $b$ modulo $m_0s$ with $b\equiv a_0\bmod m_0$,
$(b,s)=1$; the symbol $(\frac bs)$ is constant on each, and the class contains $\pi^*(U;m,b)$ elements of
$P$. So
\begin{equation}\label{D:120}
\sum_{q\in P}\Big(\frac qs\Big)=\sum_b\Big(\frac bs\Big)\mathcal M_b+O\Big(k\sum_b\mathcal M_b\Big).
\end{equation}
\emph{The error.} Since $k\le\frac12$, \eqref{III:Q2} gives $\mathcal M_b\le2\pi^*(U;m,b)$, so
$\sum_b\mathcal M_b\le2|P|$. (This is why a relative error is needed: $P$ may be small if the modulus $m_0$
itself has an exceptional zero.)
\emph{The main terms.} The part of $\mathcal M_b$ without $\chi_1$ is the same for all $b$, and
$b\mapsto(\frac bs)$ is a nontrivial character on the classes $b\equiv a_0\bmod m_0$ ($s$ is squarefree, odd,
prime to $m_0$ and greater than $1$). So these parts cancel. The parts with $\chi_1$ cancel in the same way
unless $\chi_1(b)(\frac bs)$ is constant on those classes. In that case call $s$ \emph{bad} if in addition
$\beta_1>1-\frac{c_1}{3\log(m_0Z^2)}$.
\emph{At most one $s$ is bad.} If $s_1$, $s_2$ are both bad, apply (Q1) to the modulus $m_0s_1s_2$; since
$\log(3m_0s_1s_2)\le3\log(m_0Z^2)$, both exceptional zeros lie in its region, so the two exceptional
characters are induced by the same character. Hence $(\frac u{s_1})=(\frac u{s_2})$ for $u\equiv1\bmod m_0$
prime to $s_1s_2$, and $s_1=s_2$. So at most one $s=n^*$ is bad.
\emph{The other $s$.} If $s$ is not bad and the parts with $\chi_1$ do not cancel, then
$t^{\beta_1-1}\le U^{-(1-\beta_1)/2}\le U^{-c_1/(6\log(m_0Z^2))}\le Y^{-B-1}$ on the range of integration, so the
part with $\chi_1$ is at most $Y^{-B-1}$ times the part without it, hence at most $2Y^{-B-1}\mathcal M_b$.
Altogether $|\sum_{q\in P}(\frac qs)|\le(2k+4Y^{-B-1})|P|\le Y^{-B}|P|$.
\emph{The size of $P$.} Apply \eqref{III:Q2} with $m=m_0$, $b=a_0$: $|P|\ge\frac12\mathcal M_{a_0}$. By (Q1),
$1-\beta_1\ge c/m_0$, so $1-t^{\beta_1-1}\ge c'/m_0$ for $t\ge U/2$, and
$\mathcal M_{a_0}\ge c'U/(2m_0^2\log U)$. Since $\log m_0\le4\log U/(\log Y)^2$, this exceeds $2U^{9/10}$. \qed
\textbf{Step 2: the mean square.} For $y\ge1$, an odd prime $q$ and a function $\kappa$ with $|\kappa(n)|\le1$ put
\begin{equation}\label{D:121}
S(y,q,\kappa)=\sum_{n\le Z}\Lambda(n)\min\Big(1,\frac yn\Big)\kappa(n)\Big(\frac nq\Big).
\end{equation}
\emph{Let $(m_0,a_0,U)$ be admissible. Then for $Y\le y\le Y^A$ and every such $\kappa$,}
\begin{equation}\label{III:ms}
\sum_{q\in P}|S(y,q,\kappa)|^2\le C\,y\log y\,|P| .
\end{equation}
\emph{Proof.} Write $c_n=\Lambda(n)\min(1,y/n)$. Expanding the square,
\begin{equation}\label{D:123}
\sum_{q\in P}|S|^2\le\sum_{n,n'\le Z}c_nc_{n'}\Big|\sum_{q\in P}\Big(\frac{nn'}q\Big)\Big| .
\end{equation}
Every $q\in P$ exceeds $Z^2\ge nn'$, since $\log q>\frac12Y^{\varepsilon/6}$. Let $s$ be the product of the
primes that do not divide $m_0$ and occur in $nn'$ to an odd power. All $q\in P$ lie in one residue class
modulo $m_0$, and $8\mid m_0$; so by quadratic reciprocity and its supplements $(\frac{nn'}q)=\pm(\frac qs)$
with a sign that does not depend on $q$. By Step~1 the inner sum is at most $Y^{-A-1}|P|$ unless $s=1$ or
$s=n^*$, when we bound it by $|P|$.
The terms $n,n'$ are prime powers. Put $\sigma(p)=\sum_{p^j\le Z}c_{p^j}$. One checks $\sigma(p)\le3\log y$,
and $\sigma(p)\le2y\log p/p$ for $p>y$, whence $\sum_p\sigma(p)^2\le Cy\log y$ by Chebyshev's bound. Call $n$
\emph{neutral} if it is an even power of a prime or a power of a prime dividing $m_0$; let
$R$ be the sum of $c_n$ over such $n\le Z$. Even powers contribute at most $C\sqrt y$. The primes dividing
$m_0$ that are at most $Z$ are at most $Y^{1/4}$, so there are at most $Y^{1/4}$ of them, each contributing
at most $3\log y$. So $R\le C\sqrt y$.
\emph{Pairs with $s=1$.} Either $n$, $n'$ are powers of the same prime, or both are neutral.
Their contribution is at most $\big(\sum_p\sigma(p)^2+R^2\big)|P|\le Cy\log y\,|P|$.
\emph{Pairs with $s=n^*$.} Since $n$, $n'$ are prime powers, such pairs exist only if $n^*$ is a prime or a
product of two primes; then one of $n,n'$ is a power of
a fixed prime while the other is a power of a second fixed prime or is neutral. The
contribution is at most $(2\cdot9\log^2y+6\log y\cdot R)|P|\le Cy|P|$.
\emph{All other pairs.} Since $\sum_{n\le Z}c_n\le y\sum_{n\le Z}\Lambda(n)/n\le Cy\log Z$, they contribute at
most $Y^{-A-1}(Cy\cdot400A\log Y)^2|P|\le Cy|P|$, because $y\le Y^A$. \qed
\textbf{Step 3: all $y$ at once.} \emph{Let $(m_0,a_0,U)$ be admissible and $\kappa$ as before. The number of
$q\in P$ for which $|S(y,q,\kappa)|>\frac12y^{1/2+\tau}$ for some $y\in[Y,Y^A]$ is at most $C_\tau Y^{-\tau}|P|$.}
\noindent\emph{Proof.} As a function of $y$, $S$ is continuous and piecewise linear, with derivative
$D(y)=\sum_{yy$. So \eqref{III:ms}, which is uniform in $\kappa$, gives also
$\sum_q|D(y)|^2\le C\log y\,|P|/y$. On a block $I=[W,\min(2W,Y^A)]$ with $Y\le W$, by the Cauchy--Schwarz inequality,
$|S(y)|^2\le2|S(W)|^2+2W\int_I|D|^2$, so
$\sum_q\max_{y\in I}|S(y)|^2\le CW\log W\,|P|$. By Chebyshev's inequality the number of $q$ with
$\max|S|>\frac12W^{1/2+\tau}$ on the block is at most $CW^{-2\tau}\log W\,|P|\le(C/\tau)W^{-\tau}|P|$. Sum
over the blocks $W=2^iY$. \qed
\textbf{Step 4: the tail.} For a primitive $\chi\ne1$ and $w\ge1$ put
\begin{equation}\label{D:124}
t_\chi(w)=-\frac{L'}L(1,\chi)-\sum_{n\le w}\frac{\Lambda(n)\chi(n)}n ,
\end{equation}
the tail of the series for $-\frac{L'}L(1,\chi)$. \emph{Let $\chi$ have conductor at most $Q$ and suppose
$L(s,\chi)\ne0$ for $\re s>1-\frac1{400}$, $|\mathrm{Im}\,s|\le Q$. Then for $Q\ge2$, $w\ge2$, $0<\eta\le1$ and
$0<\delta\le\frac1{800}$,}
\begin{equation}\label{III:tail}
|t_\chi(w)|\le K'_\delta\Big((\log Q)^2w^{-1/400+\delta}+\frac{w\log Q}{\eta\,Q}\Big)+\frac{2(w\eta+1)\log(2w)}{w}.
\end{equation}
\emph{Proof.} Let $G_\chi$ be as above. For $h=w\eta$ one has directly from the definitions
\begin{equation}\label{D:126}
G_\chi(w+h)-G_\chi(w)=-h\,t_\chi(w)+\sum_{w1-\frac1{400}$,
$|\mathrm{Im}\,s|\le FU$; and $|G_\chi(y)|\le y^{1/2+\tau}$ for $Y\le y\le Y^A$.}
\noindent\emph{Proof.} Since $q>U^{1/2}\ge F$, the prime $q$ does not divide the conductor of $\xi$, so
$\xi\chi_q$ is primitive, and $q$ is determined by it. Hence by (Q3) the number of $q\in P$ for which some
primitive character of the form $\xi'\chi_q$, with $\xi'$ of conductor at most $F$, has a zero in the box of
height $FU$ is at most $C(FU)^{1/4}\le CU^{3/8}$, which is at most $\frac14U^{9/10}\le\frac14|P|$. By Step~3
with $\kappa=\xi$, used for each $\xi\in\Xi$, the number of $q$ with $|S(y,q,\xi)|>\frac12y^{1/2+\tau}$ for
some $y$ and some $\xi$ is at most $RC_\tau Y^{-\tau}|P|\le\frac14|P|$. For the remaining $q$,
\eqref{III:split} and consequence (a) of Step~4 with $Q=FU$ give
$|G_\chi(y)|\le\frac12y^{1/2+\tau}+Y^\varepsilon\le y^{1/2+\tau}$. \qed
\textbf{Step 7: the choice of $q$ and $d$.}
\emph{The prime $q$.} Take $m_0=8$, $a_0=3$, $U=e^z$. This is admissible. Take $F=8M$ and for $\Xi$ all
primitive characters of conductor dividing $8M$, the trivial one included. Step~6 gives a prime
$q\equiv3\bmod8$ with $\frac z2<\log q\le z$ such that every $\xi\chi_q$ has the three properties, with box
height $8Me^z$.
\emph{The prime $d$.} Now take $m_0=16\,q\prod_{3\le p\le z}p$ and let $a_0$ be the class with
$a_0\equiv7\bmod16$ and $a_0\equiv-1$ modulo $q$ and modulo every odd prime $p\le z$. Take $U=e^{z'}$. Then
$\log m_0\le4z=4z'/(\log Y)^2$, and the prime factors of $m_0$ are at most $z\le Y^{1/4}$, or equal to $q$,
which exceeds $Z^2$. So $(m_0,a_0,U)$ is admissible. Take $F=8Me^z\le U^{1/2}$ and
$\Xi=\{\xi\chi_q^a\}$ with $\xi$ as before and $a\in\{0,1\}$. Step~6 gives a prime $d\equiv7\bmod16$ with
$\frac{z'}2<\log d\le z'$, with $d\equiv-1$ modulo $q$ and modulo every odd prime up to $z$, such that every
$\xi\chi_q^a\chi_d$ has the three properties, with box height $8Me^{z+z'}$.
\emph{Verification.} Parts (a)--(c) hold by construction; $q,d>8M$. For (d): a character $\xi$ modulo $M$ is
induced by a primitive character of conductor dividing $M$, so the primitive character inducing
$\xi\chi_q^i\chi_d^j$ is one of those treated, and $|G_\chi(y)|\le y^{1/2+\varepsilon/2}$ on $[Y,Y^A]$. The
bound $|\frac{L'}L(1,\chi)|\le4\log Y\le4\log y$ is consequence (b) of Step~4, with
$\log Q\le\log(8M)+z+z'\le3z'$. Part (e) is the zero-free box. \qed
\emph{Remarks.} (1) \emph{There is no circularity.} Nothing of the strength of the Riemann hypothesis is
assumed for the characters $\chi$. The bound $y^{1/2+\tau}$ is the mean-square size of a sum of fixed length
$Z=Y^{400A}$ over a family of primes $q$ with $\log q\ge\frac12Y^{\varepsilon/6}$, far beyond that length. As
$q$ varies, the symbols $(\frac nq)$, $n\le Z$, behave like independent signs; reciprocity turns the
statement into one about primes $q$ in progressions to moduli $m_0s$ much smaller than $q$, where (Q2)
applies. The zero-free box is a weak property of the same kind, and it is proved for all but few $q$, by
(Q3).
(2) Part (e) is proved for every primitive $\rho$ of conductor dividing $8M$, real or not.
(3) The mean value \eqref{III:ms} is obtained without a large sieve inequality. A reader who knows
Heath-Brown's large sieve for real characters \cite{HB95} will recognise the statement; the route above
uses primes in progressions.
\section{The large scale: proof of Estimate C}
This section proves Estimate C from three standard theorems on Dirichlet $L$-functions, which we cite, and
from part (e) of Theorem~\ref{thm:pair}. No zero-density estimate and no mean value over characters is
used here. In the Lean development this is the theorem \texttt{QH.thinH} with the lemmas it calls.
\textbf{Notation.} For a primitive character $\chi$ modulo $N$ (the case $N=1$, $\chi=1$ included) put
\begin{equation}\label{D:130}
\psi_0(u,\chi)=\sum_{n\le u}\Lambda(n)\chi(n)-\begin{cases}u&\chi=1\\0&\chi\ne1.\end{cases}
\end{equation}
Let $G_\chi$ be as in \S III.1 for $\chi\ne1$, and $G_1=G$. Zeros $\rho=\beta+i\gamma$ are counted with
multiplicity.
\begin{theorem}[Estimate C; \texttt{QH.thinH}]\label{thm:C}
Let $B\ge1$, $0<\varepsilon<\frac1{52}$ and $c'>0$. There is $x_0=x_0(B,\varepsilon,c')$ such that the following holds for
$x\ge x_0$. Let $q\ne d$ be odd primes and $Q$ a positive integer prime to $qd$, divisible by $8$, with odd
part at most $B$, and with $\log(Qqd)\le2x^{\varepsilon/5}(\log x)^2$. Suppose that for every real primitive
character $\chi\ne1$ whose conductor divides $Qqd$ and is divisible by $q$ or by $d$, $L(\beta,\chi)\ne0$ for
real $\beta>1-\frac1{400}$. Then for every primitive character $\chi$ whose conductor divides $Qqd$,
\begin{equation}\label{D:131}
|G_\chi(y)|\le y\exp\!\big(-c'x^{\varepsilon/8}\big)\qquad\text{for all }y\ge\tfrac13\exp\!\big(x^{\varepsilon/3}\big).
\end{equation}
\end{theorem}
\noindent In the application $Q$ is the power of $2$ equal to $4n$ (for $\zeta$), the characters are those of
the field $E$, and $q$, $d$ are the primes of Theorem~\ref{thm:pair} with $Y\le x\le Y^{3/2}$; then
$\log(Qqd)\le2x^{\varepsilon/5}(\log x)^2$ by parts (a), (b) of that theorem, and the hypothesis on real zeros
is its part (e) with $M=1$ (see Step~6; for a general $Q$ one takes $M$ divisible by the odd part of $Q$).
In Part I and in formula \eqref{II:t5.6} of Part II the constant $c'$ is called $\kappa$.
\textbf{The three theorems cited.} Proofs are in Davenport \cite[Ch.~14, 16, 19]{Dav00} and Montgomery and
Vaughan \cite{MV07}: Theorem 11.3 for (Z1), Theorem 10.17 for (Z2), and Theorems 12.5 and 12.10 with the
discussion after Corollary 12.11 for (Z3), which is stated there in a slightly different form. The Lean development proves all three.
\begin{enumerate}[label=\textup{(Z\arabic*)},leftmargin=2.6em]
\item \emph{Zero-free region} (de la Vall\'ee Poussin, Gronwall, Landau, Titchmarsh). There is an absolute
constant $c_1>0$ such that, for every $N\ge1$ and every character $\chi$ modulo $N$, if $L(\rho,\chi)=0$ and
$\beta\ge1-c_1/\log(N(|\gamma|+2))$, then $\chi$ is real and nonprincipal and $\rho$ is real. (For $N=1$ this
says that $\zeta$ has no zero in the region.)
\item \emph{Zeros in a window.} There is an absolute $C_1$ such that for every primitive $\chi$ modulo $N$ and
every real $t$, the number of zeros with $0<\beta<1$ and $|\gamma-t|\le1$ is at most $C_1\log(N(|t|+2))$.
\item \emph{Truncated explicit formula.} There is an absolute $C_2$ such that for every primitive $\chi$
modulo $N$ and $2\le T\le u$,
\begin{equation}\label{D:132}
\Big|\psi_0(u,\chi)+\sum_{|\gamma|1$,
integrating the Dirichlet series term by term,
\begin{equation}\label{D:134}
H(s)=\int_1^\infty\psi_0(u,\chi)\,u^{-s-1}du=-\frac1s\frac{L'}{L}(s,\chi)-\frac{\delta}{s-1}.
\end{equation}
By Step~4 below (which does not use the present step), $|\psi_0(u,\chi)|u^{-2}$ is integrable; for this one
needs, for a real $\chi$, only some interval $(1-c_\chi,1)$ free of zeros, which exists because
$L(1,\chi)\ne0$. So we may let $s\to1^+$ under the integral. This gives $H(1)=-\frac{L'}L(1,\chi)$ for
$\chi\ne1$, and $H(1)=-1-\gamma$ for $\chi=1$, from the expansion
$-\frac{\zeta'}\zeta(s)=\frac1{s-1}-\gamma+O(s-1)$. On the other hand, by partial summation,
\begin{equation}\label{D:135}
y\int_1^y\psi(u,\chi)\frac{du}{u^2}=\sum_{n\le y}\Lambda(n)\chi(n)\Big(\frac yn-1\Big).
\end{equation}
Hence $y\int_1^y\psi_0u^{-2}du$ equals this sum minus $\delta y\log y$. Subtracting $yH(1)$ gives
$-y\int_y^\infty\psi_0u^{-2}du=\sum_{n\le y}\Lambda(n)\chi(n)(y/n-1)-\delta y\log y-yH(1)$, which is
$G_\chi(y)$ in both cases. This is also where the constant $1+\gamma$ in the definition of $G$ comes
from. \qed
\textbf{Step 2: the zero-free region, as used.} Let $c_0>0$ and $c=\min(c_1,c_0)$. \emph{Let $\chi$ be a
character modulo $N$ and $\lambda\ge\max(1,\log N)$. If $\chi$ is real and nonprincipal, suppose
$L(\beta,\chi)\ne0$ for $1-c_0<\beta<1$. Then every zero with $\beta<1$ satisfies}
\begin{equation}\label{III:zfr}
\beta\le1-\frac{c}{\lambda+\log(|\gamma|+3)} .
\end{equation}
\emph{Proof.} If not, $\beta>1-c_1/\log(N(|\gamma|+2))$, so by (Z1) $\chi$ is real and nonprincipal and
$\rho=\beta$ is real. But then $\beta>1-c/(\lambda+\log3)\ge1-c_0$, since $c\le c_0$ and $\lambda\ge1$; this is against the assumption. \qed
\emph{Zeros are not close to $0$.} If moreover $\chi$ is primitive, a zero with $0<\beta<1$ and $|\gamma|\le2$
has $\beta\ge c/(3\lambda)$. Indeed $1-\rho$ is a zero of $L(s,\overline\chi)$, and \eqref{III:zfr} applies to
$\overline\chi$ (if $\overline\chi$ is real it equals $\chi$); so $1-\beta\le1-c/(\lambda+\log5)$, and
$\log5\le2\lambda$.
\textbf{Step 3: the sum of $1/|\rho|$.} \emph{Under the assumptions of Step 2 with $\chi$ primitive, for
$T\ge1$,}
\begin{equation}\label{D:137}
\sum_{|\gamma|0$,
depending only on $c_0$, such that for $u\ge e$, with $v=\log u$,}
\begin{equation}\label{III:psi}
|\psi_0(u,\chi)|\le C_4\,u\,(v+\lambda)^2\exp\Big(-\frac{c_2\,v}{\lambda+\sqrt v}\Big).
\end{equation}
\emph{Proof.} Take $T=\exp(\sqrt v)$ in (Z3); then $2\le T\le u$. Put $c_2=\min(c/3,1)$ and
$\mathcal E=\exp(-c_2v/(\lambda+\sqrt v))$. For $|\gamma|0$ and $c'>0$. For large $x$, if
$y\ge\frac13\exp(x^{\varepsilon/3})$, $1\le\lambda\le Ax^{\varepsilon/5}(\log x)^2$, and \eqref{III:psi} holds
for $u\ge y$, then $y\int_y^\infty|\psi_0(u,\chi)|u^{-2}du\le y\exp(-c'x^{\varepsilon/8})$.}
\noindent\emph{Proof.} Substitute $u=e^v$. The integral is at most
$C_4\int_V^\infty(v+\lambda)^2\exp(-c_2v/(\lambda+\sqrt v))\,dv$ with $V=\log y\ge\frac12x^{\varepsilon/3}$. For
$v\ge\frac12x^{\varepsilon/3}$ and large $x$ we have $\lambda\le v^{61/100}$, because
$v^{61/100}\ge2^{-1}x^{\varepsilon/5}x^{\varepsilon/300}$ and $2A(\log x)^2\le x^{\varepsilon/300}$. Also
$\sqrt v\le v^{61/100}$ and $\lambda\le v$. Hence the exponent is at least $\frac{c_2}2v^{39/100}$, and
$(v+\lambda)^2\le4v^2$. Now $v^{39/100}\ge\frac12x^{13\varepsilon/100}$, so
\begin{equation}\label{D:139}
\exp\big(-\tfrac{c_2}2v^{39/100}\big)\le\exp\big(-\tfrac{c_2}8x^{13\varepsilon/100}\big)\exp\big(-\tfrac{c_2}4v^{39/100}\big),
\end{equation}
and $\int_0^\infty v^2\exp(-\frac{c_2}4v^{39/100})dv$ is a finite constant. So the integral is at most a
constant times $\exp(-\frac{c_2}8x^{13\varepsilon/100})$. Since $\frac{13}{100}>\frac18$, this is at most
$\exp(-c'x^{\varepsilon/8})$ for large $x$. \qed
\emph{Where the exponents come from.} The classical saving is
$\exp(-c\log y/(\log N+\sqrt{\log y}))$. Here $\log N$ is about $x^{\varepsilon/5}$ and $\log y$ about
$x^{\varepsilon/3}$, so the saving is $\exp(-x^{\varepsilon/3-\varepsilon/5-o(1)})$, and
$\frac13-\frac15=\frac2{15}>\frac18$.
\textbf{Step 6: exceptional zeros.} It remains to produce $c_0>0$, depending only on $B$, such that every
real primitive $\chi\ne1$ with conductor $N\mid Qqd$ has no zero in $(1-c_0,1)$.
\emph{(i) $N$ divisible by $q$ or $d$.} This is the hypothesis of the theorem, with $\frac1{400}$.
\emph{(ii) $N$ prime to $qd$.} Then $N\mid Q$. The conductor of a real primitive character is not divisible
by $16$ or by the square of an odd prime. (If $p^2\mid N$ with $p$ odd, each $u\equiv1\bmod N/p$ is a square
modulo $N$: $1+\frac Npt\equiv\big(1+\frac Npt\frac{p+1}2\big)^2$. So $\chi(u)=1$ and $\chi$ is defined modulo
$N/p$. Similarly $1+\frac N2t\equiv(1+\frac N4t)^2$ when $16\mid N$.) So $N$ divides $8$ times the odd part
of $Q$, and $N\le8B$. There are finitely many characters of conductor at most $8B$. For each, $L(1,\chi)\ne0$
and $L(s,\chi)$ is continuous, so $L(\beta,\chi)\ne0$ on some interval $(1-c_\chi,1]$. Let $c_0$ be the
smallest of the $c_\chi$ and of $\frac1{400}$. (For $\zeta$ only the real characters of conductor $4$ and $8$ occur. The constant can be made explicit
in $B$ by (Q1) of \S III.1: a real zero $\beta$ of a character of conductor $N\le8B$ has
$1-\beta\ge\min(c_1/\log(3N),\,c/N)$.)
\emph{How part (e) of Theorem~\ref{thm:pair} gives (i).} A real primitive character $\chi$ of conductor
$N\mid Qqd$ divisible by $q$ or $d$ factors as $\rho\,\chi_q^i\chi_d^j$ with $(i,j)\ne(0,0)$ and $\rho$ real
primitive of conductor dividing $8$ times the odd part of $Q$. Part (e), on the real axis, says
$L(\beta,\chi)\ne0$ for $\beta>1-\frac1{400}$.
\textbf{Conclusion.} Let $\chi$ be primitive of conductor $N\mid Qqd$, and
$\lambda=\max(1,\log N)\le3x^{\varepsilon/5}(\log x)^2$. By Step~6 the assumption of Step~2 holds with $c_0$.
So \eqref{III:psi} holds for all $u\ge e$, and Steps~1 and~5 give the theorem. \qed
\emph{Remark.} The Lean proof obtains the limits in Step~1, and the convergence of the integral, from
the Siegel--Walfisz theorem. The argument above uses only \eqref{III:psi} for the one character in
question.
\section{The sets of columns $T_2$ and $T$}
The table of \S I.5 has $n$ columns, indexed by the group $H$ of \S I.5. It is cyclic of order $n$; fix an isomorphism with $A=\Z/n\Z$ and write it
additively, so that the translates $uT_2$ of Part II become $u_0+T_2$. The construction singles out
two sets of columns. Both are needed only through the combinatorial properties proved here; how (M)
uses them is in \S\ref{as:sec} ((H0)(h) and (H7) there). Throughout, $x$ is large, $0<\varepsilon<\frac1{52}$, and
$x^{2+8\varepsilon}\le n\le2x^{2+8\varepsilon}$.
\subsection*{The set $T_2$: a construction of Behrend}
\begin{theorem}[\texttt{hostThickExists} in {[27]}; \texttt{hostThickOrbit}, \texttt{thickFrame2}]\label{thm:T2}
Let $L\ge2$ be an integer with $L\le C_L\log x$. For $x$ large in terms of $\varepsilon$ and $C_L$ there is
a set $T_2$ of positive integers with the following properties.
\begin{enumerate}[label=\textup{(\alph*)},leftmargin=2.2em]
\item $4Ls12/\varepsilon$, and
put $D=\lfloor(n/(4L))^{1/S}/(4L)\rfloor$. Then $B^S=(4LD)^S\le n/(4L)$, so $4Ls0$, $K=\lceil8(4+8\varepsilon)/\varepsilon\rceil$ and $r=K+1$.
There are $C_b$ and $x_0$ such that for $x\ge x_0$ the following holds. Let $L_2\le L_b$. Let $\mathcal P$ be
a finite set of primes, and for $p\in\mathcal P$ let $h_p\in A$ have order $n_p\ge x^{\varepsilon/4}$. For each
$p$ and each coset of $\langle h_p\rangle$ fix a base point $b$ on it; for $t\in A$ let
$W_p(t,T)=\{0\le ix^{\varepsilon/(5C_o)}$, with a constant $C_o\ge2$ that is defined in the source). That $L_2$ is
bounded uses Remark~(3) of \S III.1: every inert prime exceeds $Y^{\varepsilon/5}$.
\emph{Proof.} Choose $T$ at random: each element of $A$ belongs to $T$ independently with probability
$\delta_1$. (For Dirichlet characters other than the trivial one the source uses two different
probabilities, $\delta_1$ and $\frac34\delta_1$, on different cosets. For $\zeta$ there is one coset.)
\emph{Size.} $|T|$ has mean $\delta_1n$ and variance at most $\delta_1n$.
\emph{One orbit.} Fix $p$ and $t$, write $n'=n_p$, and condition on $t\in T$. The other points of the orbit
remain independent. We bound the probability that $W=W_p(t,T)$ is not good.
(G1) fails only if some window of length $L_2$ contains $K$ points other than $t$. For one window this has
probability at most $\binom{L_2}K\delta_1^K\le L_b^Kx^{-K\varepsilon/8}\le L_b^Kx^{-(4+8\varepsilon)}$. There
are $n'$ windows.
(G2). A given tile not containing $t$ is marked with probability at least
\begin{equation}\label{D:144}
\big((1-\delta_1)^u\big)^{3r+1}\Big(\big\lfloor\tfrac u2\big\rfloor\delta_1(1-\delta_1)^{u-1}\Big)^{3r}\ge10^{-(6r+1)},
\end{equation}
since $u\delta_1$ is between $1$ and $1.01$. Among $M_0+1$ consecutive tiles at most one contains $t$;
the other $M_0$ are disjoint, hence independent. The probability that none is marked is at most
$(1-10^{-(6r+1)})^{M_0}\le x^{-(5+8\varepsilon)}$. There are at most $n'$ starting tiles. (Here and for (G1), (G3)
one needs $L_2\le n'$ and $G'=(M_0+5)\ell\le n'$, so that windows and runs of tiles do not wrap around; this holds for large $x$ because
$n'\ge x^{\varepsilon/4}$, $L_2\le L_b$ and $\ell\le2(6r+1)x^{\varepsilon/8}$.)
(G3) fails only if some window of length $G'$ contains $N_1$ points other than $t$; then it contains
$j=N_1-1$ such points. Since
$j\ge6eG'\delta_1$, the probability of the latter is at most $\binom{G'}{j}\delta_1^j\le(eG'\delta_1/j)^j\le6^{-j}$, which is at
most $x^{-(5+8\varepsilon)}$. There are $n'$ windows.
Since $n'\le n\le2x^{2+8\varepsilon}$, the three bounds add up to at most $C_bx^{-2}$. So the expected number
of $t\in T$ with $W_p(t,T)$ not good is at most $C_bx^{-2}\delta_1n$, for every $p$.
\emph{Choice.} We may assume $\mathcal P$ is not empty. Let $V=(|T|-\delta_1n)^2/(2\delta_1n)$ and let $\mathcal B$ be the left side of the inequality
of the theorem divided by four times its expected upper bound $C_bx^{-2}\delta_1n\sum_p\frac{\log p}p$. Then
$\mathbb E(V)\le\frac12$ and $\mathbb E(\mathcal B)\le\frac14$. So some $T$ has $V+\mathcal B\le1$. For it
$\mathcal B\le1$, which is the second assertion, and $\big||T|-\delta_1n\big|\le\sqrt{2\delta_1n}\le\frac12\delta_1n$,
which gives the first. \qed
\section{The size of the theta kernels}
This section concerns the upper bound for the size of the maps: inequality \eqref{II:t6.5} of Part II, first line.
The following are proved below: the one-variable model; the coefficient estimate in
several variables and in several blocks, with the period; the bound for the polynomial on the unit sphere;
the bound for one map and for a chain of maps; the bound for a theta function by its mean square; and the
hook product. Four passages are conditional: the reference mean square; the eigenvalues of a lift; the
comparison, row by row, of the kernel degrees with the hook product; and the norm of the pairing at the end
of the chain. The last two are deductions from inputs of the source that are named where they are used.
The passage from these estimates to \eqref{II:t6.5} is in \S\ref{sa:sec}: Theorem~\ref{sa:thm} deduces the first line of
\eqref{II:t6.5} from eleven named inputs. The inputs are the arithmetic statements listed at the end of this section;
none of them is proved in these pages. So the first line of \eqref{II:t6.5} is reduced to quoted statements, not
proved.
We begin with the one-variable model. It shows where the two features of the bound come from: the size
$\sqrt{n!}$ and the sign of the term with the period.
\textbf{The model.} \emph{Let $F$ be an entire function with $|F(z)|\le S\,e^{|z|^2/2}$ for all $z$, where $S>0$. Then for
$n\ge1$}
\begin{equation}\label{D:145}
|F^{(n)}(0)|\le S\,n!\,\Big(\frac en\Big)^{n/2},
\end{equation}
so that, if $F^{(n)}(0)\ne0$,
\begin{equation}\label{D:146}
\log|F^{(n)}(0)|^2\le2\log S+n\log n-n+O(\log(n+1)).
\end{equation}
\emph{Proof.} By Cauchy's formula on the circle $|z|=r$, $|F^{(n)}(0)|\le n!\,S\,e^{r^2/2}r^{-n}$. Take
$r=\sqrt n$. The second form follows from Stirling's formula, $\log n!=n\log n-n+O(\log(n+1))$. \qed
\noindent So a Gaussian bound for the function gives, for the \emph{square} of its $n$th derivative, the size
$n\log n-n$: this is $\log n!$. Compare a function with a pole at finite distance, such as $1/(1-z)$: its $n$th
derivative at $0$ is $n!$, and the logarithm of the square is $2\log n!$. That was the situation of the
lemniscate sine in \S I.3. Theta functions
satisfy such a Gaussian bound. This is point (i) of \S I.4.2.
\emph{The period.} If the coordinate is changed by a factor, $z=\lambda w$ with $|\lambda|^2=1/\Omega$, then
the $n$th derivative with respect to $w$ is $\lambda^n$ times that with respect to $z$, and the bound for the
logarithm of its square becomes
\begin{equation}\label{D:147}
n\log n-n-n\log\Omega+2\log S+O(\log(n+1)).
\end{equation}
This is the shape $a(\log a-1-\log\Omega)$ of \eqref{II:t6.5}, with its sign. The constant relevant there is
$\Omega_E$, not the elliptic $\Omega$ of \S I.7; the two differ by the factor $\mathrm{rd}_E/\sqrt d$.
The paragraphs that follow carry the model over to the setting of the proof: several complex variables, a
polynomial with values in linear maps in place of a single derivative, several blocks of variables (one for
each place), and sums over classes of lattices. Those up to and including the bound for a theta function by its mean square, and the hook product, are complete as stated; the four passages named above are conditional on inputs from the source. The first of them assumes a Gaussian bound $S$ for the function and a bound for
the polynomial on the unit sphere; both assumptions are then proved in an abstract setting; for the first, the mean square of one
reference theta function is bounded under the inputs (I1)--(I5) listed at the head of that paragraph. That the actual theta kernels
and polynomials of the construction are instances of this setting is taken from the source: the hypotheses
of the majorant lemma with $v=\mathrm{rd}_E$, the form of the constant $S$ with its factors $\beta$ and $c$,
and the identification of the polynomial $P$ of the construction with a substitution of the kind treated
below.
\textbf{Several variables: a coefficient estimate on a sphere.}
Let $F(z)=\sum_\alpha c_\alpha z^\alpha$ be entire on $\mathbb C^d$, $d\ge1$,
with $|F(z)|\le S\exp(\|z\|^2/2)$, where $\|z\|^2=\sum_j|z_j|^2$.
Let $P(\bar z)=\sum_{|\alpha|=n}A_\alpha\bar z^\alpha$ be homogeneous,
with coefficients in a finite-dimensional normed space, for example a space
of linear maps. Here $\alpha$ is a $d$-tuple of nonnegative integers,
$|\alpha|=\sum_j\alpha_j$, $z^\alpha=\prod_j z_j^{\alpha_j}$ and
$\alpha!=\prod_j\alpha_j!$. Suppose, for unit vectors $u$, that the following holds, factors with $\nu_i=0$ being omitted:
\begin{equation}\label{D:148}
\|P(\bar u)\|\le\prod_i s_i(u)^{\nu_i},\qquad
s_i(u)\ge0,\quad \sum_i s_i(u)^2=1,\quad
\nu_i\ge0,\quad\sum_i\nu_i=n.
\end{equation}
Put $h(v)=v\log v-v$ for $v>0$ and $h(0)=0$.
Then
\begin{equation}\label{D:149}
\left\|\sum_{|\alpha|=n}c_\alpha\alpha! A_\alpha\right\|
\le S\, e^{1/2}(2n+2)^d
\exp\left(\tfrac12\sum_i h(\nu_i)\right).
\end{equation}
\emph{Proof.} Let $du$ be probability measure on the unit sphere in
$\mathbb C^d$. Independent rotations of the coordinates show that the mean
of $u^\beta\bar u^\alpha$ vanishes unless $\alpha=\beta$. Its value for
$\alpha=\beta$ is $\alpha!(d-1)!/(n+d-1)!$. Indeed, integrate
$|z^\alpha|^2$ against $\pi^{-d}e^{-\|z\|^2}$ first in the separate complex
coordinates and then in polar coordinates. The two radial moments needed
are $\int_0^\infty t^j e^{-t}\,dt=j!$ for $j=d-1,n+d-1$.
Thus for $r>0$ the sum to be bounded equals
\begin{equation}\label{D:150}
\frac{(n+d-1)!}{(d-1)!\,r^n}\int F(ru) P(\bar u)\,du.
\end{equation}
Termwise integration is valid by uniform convergence on the sphere.
For $n>0$ the weighted arithmetic--geometric mean inequality, with weights
$\nu_i/n$, gives $\prod_i s_i(u)^{\nu_i}\le
\prod_{\nu_i>0}(\nu_i/n)^{\nu_i/2}$. Take $r=\sqrt n$.
After removing $S\exp(\frac12\sum_i h(\nu_i))$, the remaining factor is
\begin{equation}\label{D:151}
n!(e/n)^n {n+d-1\choose d-1}
\le en(n+1)^{d-1}\le e^{1/2}(2n+2)^d .
\end{equation}
The first inequality follows by comparing $\sum_{j0$. The differential
is scaled so that the Weierstrass invariants satisfy
$g_2^3-27g_3^2=1$. Thus $A_\rho=|\omega|^2y$ is the area of this
particular lattice. The marked point and its conjugates determine which
of the three even theta functions to use.
In coordinates $z=u+v\tau$ on the torus, put
\begin{equation}\label{D:164}
\theta(z)=\sum_{m\in\mathbb Z+\alpha}
e^{\pi i m^2\tau+2\pi i m(z+\beta)},\qquad
(\alpha,\beta)\in\{(0,0),(0,\tfrac12),(\tfrac12,0)\}.
\end{equation}
Choose the characteristic whose zero is the marked half-period in these
coordinates. Write $T=|\theta(0)|>0$. The normalisation of the section
at the origin divides it by $\theta(0)$; this is input (I5). In Jacobi coordinates its
squared norm, averaged over the torus with total mass one, is
\begin{equation}\label{D:165}
H_\rho=\int_0^1\!\!\int_0^1
\frac{|\theta(u+v\tau)|^2}{T^2}e^{-2\pi yv^2}\,du\,dv
=\frac{1}{\sqrt{2y}\,T^2}.
\end{equation}
Indeed, integration in $u$ kills the mixed Fourier terms. The remaining
integrals of $e^{-2\pi y(m+v)^2}$ tile the real line. Absolute convergence
on the closed parallelogram justifies termwise integration.
\emph{The arithmetic normalisation.} On the curve
$Y^2=4x^3-g_2x-g_3$, let $e$ be the $x$-coordinate of the marked
point, and $e',e''$ the other two roots of the cubic. Put
$a=e-e'$, $b=e-e''$, $P=ab=3e^2-g_2/4$, and $X=P^{-3}\in M$.
All three roots are distinct. The discriminant identity gives
$16P^2(a-b)^2=1$, while the sum of the roots gives
$g_2=\tfrac43((a-b)^2+P)$. Substituting these identities into
$j=1728g_2^3$ yields
\begin{equation}\label{D:166}
(X+16)^3-jX=0.
\end{equation}
The singular modulus $j$ is an algebraic integer by complex
multiplication. The displayed monic equation therefore makes $X$ a
nonzero algebraic integer. This is the only integrality calculation
needed here.
For clarity, the classical Jacobi identities used to recover the
absolute value of $X$ are as follows. The three half-period
differences, up to sign, are $\pi^2\omega^{-2}$ times the fourth
powers of the three even theta constants. The two differences through
$e$ use the other two constants. The product of all three constants
is $2\eta(\tau)^3$, where
$\eta(\tau)=e^{\pi i\tau/12}\prod_{n\ge1}(1-e^{2\pi i n\tau})$.
Finally, the discriminant identity
$1=(2\pi/\omega)^{12}\eta(\tau)^{24}$ gives
$|\omega|=2\pi|\eta(\tau)|^2$. Hence at each embedding
\begin{equation}\label{D:167}
|\rho X|=(T/|\eta(\tau)|)^{12},\qquad
A_\rho=4\pi^2 y|\eta(\tau)|^4,\qquad
\log H_\rho=\tfrac12\log(2\pi^2)-\tfrac12\log A_\rho
-\tfrac16\log|\rho X|.
\end{equation}
Here the same algebraic number $X$ works at every embedding because
its formula uses just the marked coordinate $e$ and $g_2$.
The conjugates of a curve with complex multiplication by $\mathcal O_K$
run equally often through the ideal classes of $K$ (input (I2)). By the class mean
period formula of \S I.7 in the discriminant-one scale (input (I3)),
$\langle\log A_\rho\rangle=\log\pi+\gamma+
\log(2\pi/\sqrt d)-c_d$, where $\gamma$ is Euler's constant.
Since $|N_{M/\mathbb Q}X|$ is a positive integer, averaging gives
\begin{equation}\label{D:168}
\langle\log H_\rho\rangle
=\tfrac12(\log\sqrt d-\gamma+c_d)
-\frac{\log |N_{M/\mathbb Q}X|}{6[M:\mathbb Q]}
\le \tfrac12(\log\sqrt d-\gamma+c_d).
\end{equation}
The reference section of ranks $N,N'$ has squared norm
$\Theta_{0,\rho}=H_\rho^{fNN'}$, where $f=2n$ is the number of weight places ($n$ as in Part II).
This last identity uses the tensor-power description of the normalised
reference section; the integral of a product on independent elliptic
coordinates factors. Thus its average logarithm is at most $fNN'$
times the displayed bound. This is the conclusion stated at the head of the paragraph.
\emph{The step that uses $L_{\rm sc}$.} This step is separate from the conclusion above. In the application
$|c_d|\le4\log x$, by Theorem~\ref{thm:pair}(d) with $M=1$ and $\chi=\chi_d$. Put
$v_{\rm host}=\mathrm{rd}_E/2$, and let $L_{\rm sc}$ be the logarithmic scale of the Lean development; it
is defined in the source. In the parameters of the chain one has
$\log\sqrt d-\gamma\le\log v_{\rm host}$ (the inequality $\sqrt d\le v_{\rm host}$ itself holds for
$N\ge8$ but fails for $N=4$, $q=3$) and
$\log v_{\rm host}+|c_d|\le2L_{\rm sc}$; both inequalities are taken from the source. So the contribution
is at most $fNN' L_{\rm sc}$.
\textbf{The hook product.}
The hook product enters as an exact Gaussian integral. Given integers
$\lambda_1\ge\cdots\ge\lambda_s\ge0$, form a diagram with $\lambda_i$
boxes in row $i$, left justified. The hook length of a box is one plus
the numbers of boxes to its right in the same row and below it in the
same column. Let $H(\lambda)$ be the product of all hook lengths,
with empty product one. For a square complex matrix $X$ of size $s$ put
\begin{equation}\label{D:169}
p_\lambda(X)=\prod_{i=1}^s
\det(X_{1:i,1:i})^{\lambda_i-\lambda_{i+1}},
\qquad \lambda_{s+1}=0 .
\end{equation}
With the Gaussian probability norm used above,
$\|p_\lambda\|_G^2=H(\lambda)$.
Here is a proof by removing full columns. Write $X=QR$ as in the proof
of the polynomial estimate. Conditional on the preceding columns,
$R_{ii}^2$ is the squared length of a standard complex Gaussian vector
in dimension $s-i+1$. Its density is $t^{s-i}e^{-t}/(s-i)!$ on $t>0$,
by polar integration. This conditional law is constant, so the
$R_{ii}^2$ are independent. Averaging first over unitary matrices on the
left as above gives
\begin{equation}\label{D:170}
\|p_\lambda\|_G^2=
\left(\int_{U(s)}|p_\lambda(U)|^2\,dU\right)
\prod_{i=1}^s\frac{(\lambda_i+s-i)!}{(s-i)!},
\end{equation}
where $dU$ has total mass one. Put $a=\lambda_s$ and
$\mu_i=\lambda_i-a$. Then $p_\lambda=(\det X)^a p_\mu$, so the
unitary integrals for $\lambda$ and $\mu$ agree. The ratio of their
squared Gaussian norms is consequently
\begin{equation}\label{D:171}
\prod_{i=1}^s\frac{(\lambda_i+s-i)!}{(\lambda_i-a+s-i)!}.
\end{equation}
These are exactly the hook lengths in the first $a$ columns, since the
hook at $(i,j)$ there has length $\lambda_i-j+1+s-i$. Deleting those
columns leaves all other hook lengths unchanged. The last row is now
empty, and $p_\mu$ depends only on the upper left $(s-1)$ by $(s-1)$
matrix. Induction on $s$ proves the formula, including $a=0$.
\textbf{The eigenvalues of a lift: what the inner-product formula contributes.} \emph{This paragraph is
conditional on the following hypotheses, which are taken from the source and not proved here.} The
notation is explained below the list.
\begin{enumerate}[label=\textup{(E\arabic*)},leftmargin=2.6em,itemsep=1pt,topsep=3pt]
\item At each weight place the polynomial in the theta lift is a product of two polynomials of the form
$p_\lambda$ on disjoint sets of variables.
\item On each non-empty simultaneous Hecke component of the target, the Rallis inner-product formula,
evaluated with the chosen local test functions, gives $TT^*=\lambda I$ with the scalar $\lambda$ of the
form displayed below; in it $D_0\ge1$, and the level index times the squared norm of the finite test
function equals $1/D_S$.
\item The parameter conditions: $1\le f\le\varrho$, $1\le r\le\varrho/2$, $t\ge r+5$, $\varrho\ge8$,
$L\ge5.5$, $\log\varrho\le L$, and $\log(d_\rho+2)\le2L$.
\item The bound for the mass $M_0$, the bounds for the normalising factors $D_S$, $D_{S^c}$, and the
formal-degree estimate for $J_\rho$, as displayed below.
\item The local parameter bound $|x|\le(\mathrm N\mathfrak p)^{(r-t-2)/2}$ for the parameters of the
unramified Euler factors.
\item The lift used at the distinguished embedding is $S=PT$ with $P$ an orthogonal projection on the
target, and the Hecke components span the target.
\item At the other embeddings the lower bound of the conclusion holds as well.
\end{enumerate}
\emph{Conclusion.} Under (E1)--(E7) every positive eigenvalue of $SS^*$ is at least
\begin{equation}\label{D:172}
\exp\Big(\sum_\rho\log H(A_\rho^+)-8f\varrho^2L\Big).
\end{equation}
\noindent The lower bound for these eigenvalues is one of the inputs listed at the end of this section.
Fix one step of the chain. At each of the $f=2n$ weight places $\rho$,
the polynomial in the theta lift is a product of two polynomials of the
form $p_\lambda$ on disjoint sets of variables, by (E1). Write $A_\rho^+$ and
$A_\rho^-$ for their diagrams; their row lengths are the column degrees
of the two products of minors, arranged in decreasing order. Reversing
rows or columns in a corner minor leaves its absolute value unchanged
after the corresponding change of variables. The Gaussian integrals
over disjoint coordinates factor, giving the squared norm
$\prod_\rho H(A_\rho^+)H(A_\rho^-)$.
Let $T$ be the full theta lift between its finite-dimensional complex
inner-product spaces. On each non-empty simultaneous Hecke component of the target
the Rallis inner-product formula, evaluated with the chosen local test
functions, gives $TT^*=\lambda I$, by (E2). In the normalisation of the source
its scalar has the form
\begin{equation}\label{D:173}
\lambda= D_0\,M_0\,
\frac{E_0}{D_S D_{S^c}}\,
\prod_\rho H(A_\rho^+)H(A_\rho^-)J_\rho .
\end{equation}
Here $D_0\ge1$ is a product of representation dimensions, $M_0$ is
the mass (the sum of reciprocal stabilizer orders), $E_0$ is the
absolute value of the unramified Euler product, and $D_S,D_{S^c}$
are the positive normalising factors at the exceptional finite places
and their complement. The level index times the squared norm of the
finite test function equals $1/D_S$. The factor $J_\rho$ is the integral
of the squared absolute value of a unit vector's matrix coefficient
on the real unitary group at $\rho$, for the measure of the formula; it is defined in the source.
Here are the bounds on these factors that suffice. Here $k$, $m$ and $t$ are parameters of the construction
(in Part II, \S6.2: the initial rank $k$, the number $m$ of lifts, and the odd parameter written $\tau_0$
there), and $f=2n$ is the number of weight places. Write $r=k+m-1$,
$\varrho=r+t$ for the rank parameter, $g_0,g_1$ for the two level primes,
$b$ for the weight bound, and
$L=\log(b\,\mathrm{rd}_E\,g_0g_1\varrho)$. (In Part II, \S6.6 the letter $h$ denotes $k+m-1$, which is $r$ here.)
By (E3) the parameter conditions give
$1\le f\le\varrho$, $1\le r\le\varrho/2$, $t\ge r+5$, $\varrho\ge8$, $L\ge5.5$ and $\log\varrho\le L$.
The mass bound, the finite Euler factor estimates and the
formal-degree estimate used in the source give
\begin{equation}\label{III:massbd}
M_0\ge\frac1{(8 f^2)^\varrho\,\varrho!},\qquad E_0\ge e^{-2rf},
\qquad D_S,D_{S^c}\le e^{4rf},\qquad
-\log J_\rho\le2+r^2\log\bigl(2\sqrt2\,r^2\varrho(d_\rho+2)\bigr),
\end{equation}
where $d_\rho=|A_\rho^+|+|A_\rho^-|$ counts their boxes and $\log(d_\rho+2)\le2L$. The bounds for $M_0$,
$D_S$, $D_{S^c}$ and $J_\rho$ are (E4). The bound for $E_0$ follows from (E5):
the factors of $E_0$ are $|1-x|^{-1}$ with $r$ parameters
at each unramified prime ideal $\mathfrak p$ of $E$. Their absolute
values satisfy $|x|\le(\mathrm N\mathfrak p)^{(r-t-2)/2}
\le(\mathrm N\mathfrak p)^{-2}$, by the local parameter bound and
$t\ge r+5$. At most $[E:\mathbb Q]=2f$ prime ideals lie above any
rational prime $p$, and each has norm at least $p$, so $\sum_{\mathfrak p}(\mathrm N\mathfrak p)^{-2}
\le2f\sum_{p}p^{-2}\le2f$, the last sum being over the rational primes. Taking logarithms and using
$\log|1-x|\le|x|$ proves the stated bound for $E_0$.
The logarithmic losses are at most $4\varrho L$ from the mass, $10rf$ from
the finite factors, and $f(2+6r^2L)$ from the real integrals.
Their sum is at most $8f\varrho^2L$ by the preceding inequalities.
Since every hook length is at least one, this gives
\begin{equation}\label{D:175}
\log\lambda\ge
\sum_\rho\log H(A_\rho^+)-8f\varrho^2L .
\end{equation}
This deduction uses the stated arithmetic and analytic estimates for
the test functions.
Finally, by (E6), the lift used at the distinguished embedding is $S=PT$ with
$P$ an orthogonal projection on the target, and the Hecke components span
the target. Since $TT^*$ is self-adjoint, the scalar bounds on those
components give $TT^*\ge cI$, where $c$ is the exponential of the
last lower bound. On the range of $P$ one has
$\langle SS^*x,x\rangle=\|T^*x\|^2\ge c\|x\|^2$. This bounds every
positive eigenvalue of $SS^*$. At the other embeddings the same bound is taken from the Lean development;
this is (E7).
\textbf{Row by row: why only the first row survives.} \emph{This passage is conditional: it is a deduction
from inputs taken from the source, listed below.}
It compares the terms $\sum_ih(\nu_i)$ of the block estimate with the hook product of the preceding
paragraph, one row at a time. Fix a step $1\le j\le m$ of the chain (steps are numbered from 1 here, as in the source) and one weight place $\rho$.
Let $k$ and $t$ be the parameters of the preceding paragraph, with $k\ge2$. The terms used are these.
\begin{itemize}[leftmargin=2.4em,itemsep=1pt,topsep=3pt]
\item The \emph{kernel degrees} are the column degrees of the polynomial of the kernel of this step in the
block at this place. We assume, as input (o) from the source, that these are the degrees $\nu_i$ to which
the block estimate is applied (one block for each weight place); in the Lean development this is the case: the degrees fed to the block
estimate are identified with these numbers (\texttt{weights\_rows}, \texttt{nu\_eq\_originRow}). We call them also the lengths of the kernel rows. There are at least $k$ of them.
\item $A_\rho^+$ is the positive-signature diagram of the preceding paragraph, and $H(A_\rho^+)$ its hook
product.
\item The weight shift $w$ at this step, the weight parameters $u_1,\ldots,u_k$ of the domain at this place, and
the parameters $v_1,\ldots,v_{k-1}$ of the positive-signature rows are as in the source (Lean:
\texttt{origin\_rewrite}, \texttt{origin\_interlace}, with the formulas \texttt{originRow},
\texttt{originBig}). We do not define them here.
\item A weight place is \emph{ordinary} or \emph{distinguished}, as in the source (Lean: the two cases
\texttt{RowsOriginOff} and \texttt{RowsOriginTop}). At a distinguished place, which we denote by
$\mathfrak t$, there are two integers $a_{\mathfrak t}\ge0$ and $b_{\mathfrak t}\ge0$; $a_{\mathfrak t}$ is
the number $a_t$ of the inequality at the end of this section. The index $\mathfrak t$ is not the
parameter $t$.
\item $\Delta$ is the width of the weight interval (in the source, \texttt{Sw}).
\item $B$ is a bound for the sum of the kernel degrees other than the first $k$.
\item $L_a=\log(a\,\mathrm{rd}_E)$, with $a$ as in the inequality at the end of this section.
\end{itemize}
Put
\begin{equation}\label{D:176}
\varsigma=\frac{k+(2j-1)(t+1)}2,\quad W=w-\varsigma,\quad \delta=(j-1)t,
\end{equation}
\begin{equation}\label{D:177}
x_i=u_i-\frac{k+1-2i}{2},\quad y_i=v_i-\frac{k-2i}{2}.
\end{equation}
Assumed here, from the source:
\begin{enumerate}[label=\textup{(\alph*)},leftmargin=2.4em,itemsep=1pt,topsep=3pt]
\item \emph{The degree formulas.} $W\ge0$, the first $k$ kernel degrees are given by the formulas for $\nu_i$ below, and
$k-1$ of the rows of $A_\rho^+$ have the lengths $R_i$ below:
\begin{equation}\label{D:178}
\nu_i=W+x_i\quad(1\le i\le k),\qquad
R_i=W+y_i+\delta\quad(1\le iv_i>u_{i+1}$ for $i0$ and $h(0)=0$. For integers $d\ge0$
one has $h(d)\le\log(d!)$ by integration of $\log x$.
The hooks along a row of length $R$ are at least $R,R-1,\ldots,1$.
Hence $\log H(A_\rho^+)\ge\sum_{i\sigma_j-j$ for $ij$. The omission excludes zero when $i=j$. Put
$\Gamma=\lambda_1-\lambda_\Psi+\Psi$ and
$d_1=\sum_{i=1}^\psi\min(\lambda_i-\lambda_{i+1},d_0)$.
Each factor has absolute value at most $\Gamma$ and there are $\psi d_1$ of them.
What the source shows to be integral is the transposed map $\vartheta\kappa C^*$ (Lean:
\texttt{BranchMap}); the map $\vartheta\kappa C$ itself can have denominators. A map and its adjoint have
the same norm, so the statements about norms here are not affected. By $CC^*=I/\kappa$, the squared norm
of either map is $\vartheta^2\kappa$.
One can also bound $\kappa$ by the Gaussian calculation above. The two
polynomials in its ratio, $\xi$ and $p_{\lambda'}$, have identical column degrees, and both are unchanged
when a multiple of an earlier column is added to a later column. So both lie in $W_{\lambda'}$, the
argument by $X=QR$ applies to both, and their radial factors cancel. Equal column degrees alone would not
be enough. Every minor of a unitary matrix has absolute value
at most one. In addition, the Gaussian hook formula and the radial
moments give
\begin{equation}\label{D:184}
\kappa\le\left(\int_{U(\Psi)} |p_{\lambda'}(U)|^2\,dU\right)^{-1}
=\frac{1}{H(\lambda')}\prod_{i=1}^\Psi
\frac{(\lambda'_i+\Psi-i)!}{(\Psi-i)!}
\le\prod_{i=1}^\Psi {\lambda'_i+\Psi-i\choose \Psi-i}
\le \Gamma^{\Psi(\Psi-1)/2}.
\end{equation}
The middle bound uses the row factorial lower bound for $H(\lambda')$.
\emph{The level factor is taken from the source, not derived here} (Lean: \texttt{brAt}).
At level $\mathcal T$ the map has the additional scalar
$\varpi^{-\ell}$ with $|\varpi|^2=\mathcal T$ in orthonormal coordinates. Its
squared norm is consequently $\mathcal T^{-\ell}\vartheta^2\kappa$.
Factors at independent places multiply. Taking logarithms, the full
bound is
\begin{equation}\label{D:185}
-\sum_\rho \ell_\rho\log\mathcal T+
\sum_\rho\bigl(2\psi d_{1,\rho}+\Psi(\Psi-1)/2\bigr)\log \Gamma_\rho .
\end{equation}
The final functional pairs these images with the target by a weighted
sum over lattice classes, with reciprocal stabilizer orders as weights. That it has this form is an input
from the source. Cauchy--Schwarz for this finite sum gives precisely the same bound for
the squared pairing on unit vectors. Here unit vectors are tuples indexed by the classes, of norm one in
the weighted class norms $\sum_pw(p)\|f_p\|^2$ of the paragraph on sums over classes, with $w(p)$ the
reciprocal stabilizer order; and the squared pairing is the squared absolute value of the sum over the
classes $p$ of $w(p)$ times the inner product of the image of $f_p$ with the $p$th entry of the second
tuple (Lean: \texttt{sum\_pair\_le}).
\emph{What this proves, and what it assumes:} it proves that $CC^*=I/\kappa$ in the normalised norms, so
that $\vartheta\kappa C$ and its adjoint have squared norm $\vartheta^2\kappa$, that
$|\vartheta|\le\Gamma^{\psi d_1}$ and $\kappa\le\Gamma^{\Psi(\Psi-1)/2}$, and the displayed bound for the
squared pairing; it assumes interlacing of the two weights with a common last entry, that the last map of
the construction is $\vartheta\kappa C$ up to the level factor, that this factor is $\varpi^{-\ell}$, and
that the final functional is the weighted sum over classes, and it does not substitute the actual weights
into $\ell$ and $d_1$.
\textbf{Relation to the Lean proof.} The estimate for one block, with the constant
$e^{1/2}(2n+2)^d\exp(\frac12\sum_ih(\nu_i))$ and the factor $\Omega_\tau^{-n_\tau}$, is the statement of the
Lean development that the final theorem depends on (\texttt{blockBound\_of\_fockJet}, with
\texttt{gaussianCoeffIntegral}); the Lean statement is for the square of the norm, which is why the period enters as $\Omega_\tau^{-n_\tau}$;
with the factor $|I|\,|J|$ from the sum over classes it becomes the bound for one lift. The source proves it through an integral over $\C^d$ against the Gaussian measure; the proof
above uses the sphere instead. For a chain of $m$ lifts the source bounds the norm of each map at each
archimedean place in this way, multiplies the bounds (the norm of a composition is at most the product of
the norms), and averages the logarithms over the places (\texttt{chain\_coupled\_bound}). The hook products and the
lower bound for the eigenvalues of a lift enter the assembly as a term subtracted for each map: in the
source the bound for the height has the form $h_A+\sum_j(h_{B,j}-h_{X,j})$, where $h_{B,j}$ comes from the
block estimate and $h_{X,j}$ from the eigenvalue bound.
\textbf{What remains to be written.} In the Lean development the passage from this estimate to the first
line of \eqref{II:t6.5} is an assembly (\texttt{divClausesR\_of}) of the following further statements, each proved
elsewhere in the development. The assembly itself is carried out in \S\ref{sa:sec}, which proves that the first line of \eqref{II:t6.5} follows from a list of such statements, and proves one statement on the periods. The statements themselves are not proved in these pages. Until they are, the first line of \eqref{II:t6.5} remains a quoted statement.
\begin{enumerate}[label=\textup{(\roman*)},leftmargin=2.4em]
\item \emph{The inputs \textup{(I1)--(I5)} of the reference mean square above}: the integrality of the singular modulus
(classical), that the conjugates of the curve run equally often through the ideal classes, the formula for
the mean of $\log A_\rho$ over the classes (the class mean period formula), the description of the
reference section as a tensor power, and the identification of the reference section at $\rho$ with
$\theta/\theta(0)$ and its metric. Also: that the chain of maps is defined over a field containing $M$, with
$H_{\bar\rho}=H_\rho$; the two inequalities for $v_{\rm host}$ and $L_{\rm sc}$ used in the last step
there; and the bounds for $\beta$ and $c$ in the
constant $S$.
\item \emph{The pairing at the end of the chain, and the eigenvalues of a lift.} The norm of the pairing at
the end of the chain and the row-by-row comparison are proved above, conditionally on the inputs named
there. What remains: the integral realisation of the last map, with its level factor; the substitution of
the actual weights of the construction (into $\ell$ and $d_1$ for the pairing, and into the inputs (o) and (a)--(e)
of the comparison); and, for the lower bound for the eigenvalues of a lift, the hypotheses (E1)--(E7) of the conditional
paragraph above: the form of the polynomial at each weight place (E1); the Rallis inner-product formula
with the chosen test functions and the form of its scalar (E2); the parameter conditions (E3); the bound
for the mass, the bounds for the normalising factors and the formal-degree estimate (E4); the local
parameter bound (E5); the form $S=PT$ of the lift and the spanning by Hecke components (E6); and the bound
at the other embeddings (E7).
\item \emph{The periods}: that the average over the archimedean places of $\log\Omega_\tau$ is the constant
$\log\Omega_E$ of \S I.7 (the constant relevant here is $\Omega_E$, not the elliptic $\Omega$; the two differ
by the factor $\mathrm{rd}_E/\sqrt d$), and that the same constant appears in the covolume of the lattices. This is where
the Chowla--Selberg formula is used, and where the two occurrences of $\log\Omega$ cancel up to a small error.
\item \emph{Local index bounds} at the finite places, including the term $F_0$ of Part II, \S6.7, which is
supplied by the divisibility statement (item 1 of \S I.7).
\item \emph{The passage between levels}, and bounds for class numbers and for the constants of the kernels.
\item \emph{That the kernels and polynomials of the construction are instances of the abstract setting}:
the lattice hypothesis with $v=\mathrm{rd}_E$, the form \eqref{III:Sform} of $S$, the identification of $P$ with
a substitution, and the tuple representation of each map with matching norms.
\end{enumerate}
The inequality that results is, in the notation of Part II, \S6.7,
\begin{equation}\label{III:sizefinal}
\mu_{\rm CC}+h-F_0\le\sum_{t\in T}\Big(m\big(a_t\log a_t-a_t-a_t\log\Omega_E\big)-a_t\log\mathcal T\Big)
+C\,|T|\,a\,L_a+C\,m\,(B_0+N_c)\,x^{2\varepsilon},
\end{equation}
where $a=x\,b$ (the orders $a_t$ are not assumed to be at most $a$; Part II allows $a_t$ up to $(x+1)\,b$), $L_a=\log(a\,\mathrm{rd}_E)$, $B_0=2n\,m\,b\,x^{\varepsilon}$ and $N_c=|T_2|\,k\,b\,x^{2\varepsilon}/n^2$.
(In the Lean record \texttt{RecNums.rhs} the last factor is $x^{\varepsilon}$ times a constant, and the form above is weaker; the final Lean statement has the factor $x^{C_{\rm abs}\varepsilon}$ with a free constant $C_{\rm abs}$, and the form above is its case $C_{\rm abs}=2$. The
value of $N_c$ is the one fixed in the Lean file \texttt{DataArith.lean}.)
Here $h$ is an upper bound for the height of the pairing map, $\mu_{\rm CC}$ is the mean slope of the lattice in which the pairing maps take their values (in the source it is the dual of a fixed lattice), in the normalisation for squared norms, as in Part II, \S6.7, and $F_0$ is as in Part II, \S6.7. After division by $|T|\,m\,b\,\delta/2$, where $\delta=|T_2|/n$, the term $C\,|T|\,a\,L_a$ gives the
error $x/m$ of (M), the summand with $B_0$ gives $m$, and the summand with $N_c$ gives $k/n^2$ (each up to a
factor $x^{O(\varepsilon)}$); the fourth error, $xm/k$, does not come from this inequality.
\section{Divisibility at inert primes}
This section concerns the lower bound for the exponent of an inert prime: inequality \eqref{expo} of
\S I.4.3. It proves the local estimate behind that bound, for power series, under one hypothesis of
integrality, called (B) below. In this section the prime is called $\ell$, as in the Lean files; it is the
inert prime $p$ of Part~I. Several letters used here have other meanings elsewhere in the paper, among them
$\beta$, $\lambda$, $\varepsilon$, $a$, $p$, $d$, $x$, $N$, $D$, $q$, $k$, $m$, $n$, $f$, $c$, $\sigma$, $e$ and $\psi$; in this section each has the meaning
given where it is introduced.
\emph{Proved outright.} The valuation of the coefficients of the inverse of the height-two logarithm, in
several variables (Lemma~1); the integrality lemma (Lemma~2); the optimisation for the top row (Lemma~6),
which produces the sum $\sum_{h\ \mathrm{odd}}(A/\ell^h-w_h)_+$; weak duality for the linear program of \S5;
and the closed form of that program for orbits of length two.
\emph{Proved conditionally on hypothesis \textup{(B)}.} Lemmas~3 and~4: the passage from (B) to a bound for
a series $\beta$ in the exponent, with the gain from $1/(\ell^2-1)$ to $1/(\ell-1)$. Proposition~5: the bound
for one Taylor coefficient of a function $U\cdot\exp(\pm\beta)$, with weights on the variables. Theorem~J,
for orbits of length two: the bound for a product of minors applied to such a function.
\emph{Conditional on \textup{(B)} and on strong duality, cited from the source.} Theorem~J for orbits of
length four or more. The cited statement is the equality of a linear program with its dual (Lean:
\texttt{strongDuality}). This case was not tested end to end.
\emph{Taken from the source without proof.} The transcription of the top-level inequality
\texttt{LinkG\_at} (\S1 below); that the theta kernels of the construction have the form
$U\cdot\exp(\pm\beta)$ and satisfy (B); the dictionary between sites and places; the frames and labels that
Theorem~J requires; the passage from Taylor coefficients (jets) to lattices and to the inequality that the
final theorem uses; and the remaining primes. These are listed at the end.
\subsection*{1.\quad The statement in the source}
\textbf{The top-level inequality.} The final theorem depends on the Lean statement \texttt{LinkG}, of
the file \texttt{GlobalTheoremInputs.lean}. It does so through the theorems \texttt{closed\_linkG\_of\_duty}
and \texttt{linkG\_concrete5}.
Its third clause is the inequality of Part~II, \S6.4, last paragraph. We state it. The scale is
$x>1$, $0<\varepsilon<1/52$, $b=\exp(x^\varepsilon)$, $a=xb$, $X'=\exp(x^{\varepsilon/3})$, $b'=a/X'$,
$w''=b'/(xn)$, $X''=a/w''$, $p_0=k^2x^{26}$, $\delta_1=x^{-\varepsilon/8}$. Here $m$ (the number of lifts),
$k$ and $t_0$ are integer parameters of the construction (the fields \texttt{m}, \texttt{k}, \texttt{t} of
\texttt{D.R}); $n$ is a field of the parent structure (\texttt{ord}); and $f=2n$ and $N_m=k+m(t_0+1)$ are
defined quantities, not fields. $\mathcal T$ is a finite index set (\texttt{D.host.TT}). The
following are \emph{given data} (fields of the structure \texttt{SizeData}$_2$): integers $a_t$ for
$t\in\mathcal T$ with $a\le a_t\le a+a/(kx^{13})$; real
numbers $\mathrm{gain}(j,w)$ and $\tau(w)$ for $1\le j\le m$ and $w$ a place of the coefficient field; real
numbers $\mathrm{wPart}(j,t,p,i)\ge1$; subsets $\mathcal T_w\subset\mathcal T$; and real numbers
$\mathrm{Sc}$, $\eta$, $\Lambda_G$. Put
\begin{equation}\label{dv:V}
V(j,t,p)=\sum_{\substack{i\ \mathrm{odd}\\ i<\lfloor\log_pa_t\rfloor+2}}
\Big(\frac{a_t}{p^i}-\mathrm{wPart}(j,t,p,i)\Big)_+ .
\end{equation}
This is the Lean development's \texttt{vonMangoldtClassSum}. For constants $C$ and $b_o$ put
\begin{equation}\label{dv:fl}
\mathrm{fl}_G(p)=C\,f\,N_m^2\,\log_pa+C\,f\,(\log_pa)^2,\qquad
\mathrm{lo}_G(p)=C\,(\mathrm{Sc}+k+\eta)\log_p(2a)+\mathrm{pr}(p)+\mathrm{or}(p),
\end{equation}
where $\mathrm{pr}(p)$ and $\mathrm{or}(p)$ vanish unless $p$ is of the class \texttt{inertClass}
(defined below), and for such $p$, with $r_G=\lceil8(4+8\varepsilon)/\varepsilon\rceil+1$ and
$e_p=\lceil\log_p(k^2x^{78})\rceil+1$,
\begin{equation}\label{dv:lo}
\begin{aligned}
\mathrm{pr}(p)&=\begin{cases}C\,r_G\,b'\log x,& pd_{\rm top}(s)}}\frac{\nu_1(s)}{\ell^h},
\end{aligned}
\end{equation}
where $\bar a\ge1$ is an integer with $\mathrm{size}(s)\le\bar a$ for all $s$, and $F(D)\ge0$ is the value of a linear
program defined in \S5. \texttt{ThmAOp} asserts $v\big(P(\partial)\Theta(0)\big)\ge B$ under hypotheses on the
frame stated in Theorem~J; here $P(\partial)\Theta(0)=\sum_\kappa P_\kappa\,\kappa!\,\Theta_\kappa$ as in
\eqref{II:t6.2} of Part~II, with $\Theta$ expanded in the variables $X$.
\emph{One top site.} If $\mathit{TT}=\{s_0\}$ then $d_{\rm top}(s_0)=\infty$, because $d$ is even. With
$A=\nu_1(s_0)$ and $w_h=\nu_1(s_0+h)$ the bound reads
\begin{equation}\label{dv:onerow}
v\big(P(\partial)\Theta(0)\big)\ \ge\ \sum_{h\ \mathrm{odd}}\Big(\frac A{\ell^h}-w_h\Big)_+
-\gamma W(s_0)+F(D)-dN_0N_1(\log_\ell\bar a+1).
\end{equation}
This is \eqref{expo}: $A$ is the length of the first row at the chosen place, and $w_h$ is the number of
minors at the place reached by the $h$th power of the Frobenius followed by conjugation.
\subsection*{2.\quad Weights, and the inverse of the logarithm}
\textbf{Weights.} Let $f=\sum_nf_nX^n$ be a power series in finitely many variables $X_i$, with
coefficients in $K$. Let $r=(r_i)$ be real numbers $\ge0$ and $w$ a real number. Write $n\cdot r=\sum_in_ir_i$
and $|n|=\sum_in_i$. We say that $f$ has \emph{weight $w$ at radii $r$}, and write $f\in\mathcal W(r,w)$, if
$v(f_n)\ge w-n\cdot r$ for all $n$. This says that the Gauss norm of $f$ on the polydisc $v(X_i)\ge r_i$ is
at most $\ell^{-w}$. (Lean: \texttt{WtGe}.) The following rules are immediate from $v(x+y)\ge\min(v(x),v(y))$.
\begin{enumerate}[label=\textup{(W\arabic*)},leftmargin=3.2em]
\item If $f\in\mathcal W(r,w)$ and $h\in\mathcal W(r,w')$ then $fh\in\mathcal W(r,w+w')$. If $r\le r'$ then
$\mathcal W(r,w)\subset\mathcal W(r',w)$.
\item If $f\in\mathcal W(r,w)$ and the series $a_i$ have no constant term and $a_i\in\mathcal W(r',r_i)$,
then $f(a)\in\mathcal W(r',w)$. (A monomial $f_na^n$ lies in $\mathcal W(r',\,w-n\cdot r+n\cdot r)$.)
\item If $Y$ has no constant term and $Y\in\mathcal W(r,\frac1{\ell-1})$, then
$\exp(Y)-1$ and $\log(1+Y)$ lie in $\mathcal W(r,\frac1{\ell-1})$.
\item The coefficient of $X^\kappa$ in $fh$, in $\exp(Y)$ and in $\log(1+Y)$ depends only on the
coefficients of $X^n$ with $n\le\kappa$; so (W1) and (W3) hold with ``for all $n$'' replaced by ``for all
$n\le\kappa$''.
\end{enumerate}
For (W3): $Y^k\in\mathcal W(r,\frac k{\ell-1})$, and $v(k)\le v(k!)=(k-\sigma_\ell(k))/(\ell-1)\le(k-1)/(\ell-1)$,
where $\sigma_\ell(k)\ge1$ is the sum of the digits of $k$ in base $\ell$. So $Y^k/k!$ and $Y^k/k$ lie in
$\mathcal W(r,\frac1{\ell-1})$. (Lean: \texttt{MulWtLe}, \texttt{RadMono}, \texttt{SubstWt},
\texttt{LogStep}. The Lean statement \texttt{ExpWtLe} is not (W3): it gives weight $0$ for the exponential
of a series, truncated at $\kappa$, which is what Proposition~5 uses.)
\textbf{Lemma 1 (inverse of the logarithm).} \emph{Let $\mathcal Y$ be a finite set and
$\pi:\mathcal Y\to\mathcal Y$ a map. For $y\in\mathcal Y$ put}
\begin{equation}\label{dv:log}
L_y(X)=\sum_{e\ge0}\ell^{-e}\,X_{\pi^e(y)}^{\ell^{2e}} .
\end{equation}
\emph{There is a unique family $g=(g_y)$ of power series without constant term with $L_y(g)=X_y$ for all
$y$. It satisfies $g_y\in\mathcal W(\rho,\rho)$, where the radius is $\rho$ for every variable:}
\begin{equation}\label{dv:ginv}
v\big(\text{coefficient of }X^n\text{ in }g_y\big)\ \ge\ -\big(|n|-1\big)\rho .
\end{equation}
\emph{Proof.} The equation is $g_y=X_y-\sum_{e\ge1}\ell^{-e}g_{\pi^e(y)}^{\,\ell^{2e}}$. It determines the
coefficients by induction on $|n|$, since the terms with $e\ge1$ involve only coefficients of lower degree.
The bound holds for $|n|=1$. Let $|n|\ge2$ and $r=\ell^{2e}$, $e\ge1$. The coefficient of $X^n$ in an $r$th
power is a sum of products of $r$ coefficients, of degrees $|n_1|,\ldots,|n_r|\ge1$ with sum $|n|$. By
induction such a product has valuation at least $-(|n|-r)\rho$. Division by $\ell^e$ costs $e$, and
$e\le1+\ell^2+\cdots+\ell^{2(e-1)}=(r-1)\rho$. \qed
\noindent This is Part~II, \S2, in several variables. (Lean: \texttt{GenLogWeight},
\texttt{generalized\_log\_weight}; the series \eqref{dv:log} is \texttt{genLog}. Also $g(L(X))=X$:
\texttt{GenLogInverse}.) In one variable ($\pi$ the identity) a computation confirms
\eqref{dv:ginv} for $\ell=3,5,7$ and all degrees up to $801$, $1201$, $1201$: the minimum of
$v(g_n)+(n-1)\rho$ is $0$, attained exactly at $n=\ell^{2e}$. The bound cannot be improved. (See Proposition~Le15 of \S\ref{el:sec} for the refinement that includes the factorial.)
\subsection*{3.\quad From integrality to a bound for $\beta$}
In \eqref{dv:theta} the factor $U(g(Z))$ lies in $\mathcal W(\rho,0)$, by Lemma~1 and (W2). After
multiplication by $\kappa!$ this gives the exponent $|\kappa|\,(\frac1{\ell-1}-\rho)=|\kappa|\gamma$ of
\S I.3. For the exponential factor to do as well, by (W3) the series $\beta$ should have weight
$\frac1{\ell-1}$ at radii $\rho$. Integrality gives directly only the weight $\rho$. The gain from $\rho$ to
$\frac1{\ell-1}$ is the content of this paragraph. It uses that the degrees of the monomials are divisible by $\ell+1$. The proof given below also uses that the
coefficients lie in a field with value group $\Z$ (an unramified field); the source carries this hypothesis
(\texttt{Unram}, in \texttt{BHyp}), and it is kept as (B1). The statements do not need it: see the Remarks
after Theorem~J.
\textbf{Hypothesis (B).} Let $K_0\subset K$ be a subfield with $v(K_0^\times)=\Z$. Let $\zeta\in K$ be a
primitive root of unity of order $\ell^d-1$. For a site $s$, represented by $0\le s0$.
\textbf{Lemma 3.} \emph{Assume \textup{(B)}. Then $\Delta_1\beta$ and $\Delta_2\beta$ lie in
$\mathcal W(\rho,\frac1{\ell-1})$.}
\emph{Proof.} Let $\Delta$ be one of them and $E=\exp(\Delta)\circ L$. By (B3) $\Delta$ has no constant
term, so $E$ has constant term $1$. Since $L\circ g$ is the identity, $\exp(\Delta)-1=(E-1)\circ g$. By
(B4), Lemma~1 and (W2), a monomial of degree $j\ge1$ of $E-1$ contributes a series in
$\mathcal W(\rho,j\rho)\subset\mathcal W(\rho,\rho)$. So $\exp(\Delta)-1\in\mathcal W(\rho,\rho)$. Its
coefficients lie in $K_0$, by (B1). By (B2), $\Delta$ and $\exp(\Delta)$ are unchanged when each variable at
the site $s$ is multiplied by $\zeta^{\mathrm{lw}(s)}$. So a monomial $X^n$ with nonzero coefficient has
$\sum n_x\mathrm{lw}(s_x)\equiv0$ modulo $\ell^d-1$, where $s_x$ is the site of the variable $x$. Now $\ell+1$
divides $\ell^d-1$, because $d$ is even, and $\mathrm{lw}(s)\equiv(-1)^s(-1)^s=1$ modulo $\ell+1$. Hence $\ell+1$
divides $|n|$. Lemma~2 gives $\exp(\Delta)-1\in\mathcal W(\rho,\frac1{\ell-1})$, and (W3) gives the same
for $\Delta=\log(1+(\exp(\Delta)-1))$. \qed
\noindent (Lean: \texttt{asmS\_diff} in \texttt{ConstantCoeffEvenDerivativeEqZero.lean}, with
\texttt{ExpDeInv} for the divisibility.) A computation tests the chain of Lemmas 1--3 in one
variable: for $Y=\varphi(g(X))$ with $\varphi$ an integral series in $T^{\ell+1}$, and $\Delta=\log(1+Y)$,
the minimum over $n\le240$ of $v(\Delta_n)-(\frac1{\ell-1}-n\rho)$ is $0$ for $\ell=3,5,7$, attained at
$n=\ell+1$. For $\varphi(T)=T$ the bound fails (the minimum is $-11/8$, $-29/24$, $-55/48$).
\textbf{Lemma 4 (from the differences to $\beta$).} \emph{Assume \textup{(B)}. Call a monomial
\emph{exceptional} if it is $X_s^{\ell^\alpha}X_{s'}^{\ell^{\alpha'}}$ with $s$ even, $s'$ odd,
$(\alpha,\alpha')\ne(0,0)$ and $s+\alpha=s'+\alpha'$ in $\Z/d$. Then every coefficient $c_n$ of $\beta$
satisfies}
\begin{equation}\label{dv:beta}
v(c_n)\ \ge\ \frac1{\ell-1}-|n|\rho-\mathrm{ex}(n),\qquad \mathrm{ex}(n)=1\ \text{if $X^n$ is exceptional},\quad
\mathrm{ex}(n)=0\ \text{otherwise.}
\end{equation}
\emph{Proof.} Write $X^n=X_{\rm ev}^{\,u}X_{\rm od}^{\,u'}$ with multi-indices $u,u'$ on the even and the odd
sites. By \eqref{dv:de}, the coefficient of $x_{\rm ev}^{\,j}\,y_{\rm ev}^{\,u-j}\,x_{\rm od}^{\,u'}$ in
$\Delta_1\beta$ is $c_n\prod_s\binom{u_s}{j_s}$, for every $j$ with $0\le j\le u$, $j\ne0$, $j\ne u$. By
Lemma~3, $v(c_n)\ge\frac1{\ell-1}-|n|\rho-\mu(u)$, where $\mu(u)$ is the least valuation of such a product
of binomial coefficients; this holds if $|u|\ge2$. If $u$ involves two sites, take $j$ equal to $u$ at one
site and $0$ elsewhere: $\mu(u)=0$. Let $u$ be supported at one site, with $u_s$ not a power of $\ell$. If $u_s$ has at least two nonzero
digits in base $\ell$, let $j$ be its leading digit times the corresponding power of $\ell$; if
$u_s$ is $\ell^k$ times one digit between $2$ and $\ell-1$, let $j=\ell^k$. By Lucas's congruence $\binom{u_s}{j}$ is prime to
$\ell$, so $\mu(u)=0$. If $u_s=\ell^\alpha$ with $\alpha\ge1$ then $\mu(u)=1$, attained at $j=\ell^{\alpha-1}$. The same
holds for $u'$ and $\Delta_2\beta$. By (B3), $|u|\ge2$ or $|u'|\ge2$. So $\mathrm{ex}(n)=0$ unless $u$ and $u'$
are each a power of $\ell$ at one site, not both equal to $1$. In that case
$X^n=X_s^{\ell^\alpha}X_{s'}^{\ell^{\alpha'}}$, and if $c_n\ne0$ then (B2) gives
$\ell^{s+\alpha}\equiv\ell^{s'+\alpha'}$ modulo $\ell^d-1$, that is $s+\alpha=s'+\alpha'$ in $\Z/d$. \qed
\noindent (Lean: the statement is \texttt{LemmaS}, proved as \texttt{lemmaS}; the step of Lemma~4 is
\texttt{BinomExtract}. The proof of Lemma~4 above is ours; the Lean proof of \texttt{BinomExtract} was not
read. The facts on binomial coefficients were checked for $u_s\le1500$.)
So $\beta$ has the weight $\frac1{\ell-1}$ that is needed, except at the exceptional monomials, where one
unit is missing. The exceptional monomials pair a site $s$ with the site $s'=s+(\alpha-\alpha')$, at an odd
distance. They are the reason for the weights of the next paragraph.
\subsection*{4.\quad One Taylor coefficient, with weights on the variables}
\textbf{Proposition 5.} \emph{Assume \textup{(B)}. Let $X_i$ $(i\in\iota)$ be finitely many variables. Let
$Z_y=\sum_iM_{y,i}X_i$ be linear forms with $v(M_{y,i})\ge0$, one for each variable $Z_y$ of
\eqref{dv:theta}, and let $\Theta$ be \eqref{dv:theta} written in the variables $X$. Let
$\mathcal B=\sum_{q,c}\beta\big((Z_{s,q,c})_s\big)=\sum_n\mathcal B_nX^n$. Let $\kappa$ be a multi-index and
let $r_i\ge0$ be real numbers such that}
\begin{equation}\label{dv:cond}
\ell^\alpha r_i+\ell^{\alpha'} r_j\ \ge\ 1\qquad\text{whenever }X_i^{\ell^\alpha}X_j^{\ell^{\alpha'}}\text{ divides }
X^\kappa\text{ and }v\big(\mathcal B_{\ell^\alpha e_i+\ell^{\alpha'} e_j}\big)<\tfrac1{\ell-1}-(\ell^\alpha+\ell^{\alpha'})\rho .
\end{equation}
\emph{The case $i=j$ is included; the monomial is then $X_i^{\ell^\alpha+\ell^{\alpha'}}$. Then, with
$\lambda(k)=\lfloor\log_\ell k\rfloor+1$ for $k\ge1$ and $\lambda(0)=0$,}
\begin{equation}\label{dv:jet}
v\big(\kappa!\,\Theta_\kappa\big)\ \ge\ \sum_i\kappa_i\,(\gamma-r_i)\ -\ \sum_i\lambda(\kappa_i).
\end{equation}
\emph{Proof.} First, $\mathcal B_n$ has valuation $\ge\frac1{\ell-1}-|n|\rho$ unless $n=\ell^\alpha e_i+\ell^{\alpha'} e_j$
for some $i,j,\alpha,\alpha'$ ($i=j$ allowed); and $\ge\frac1{\ell-1}-1-|n|\rho$ always. Indeed, by \eqref{dv:beta} and (W2)
only the exceptional monomials $c\,X_s^{\ell^\alpha}X_{s'}^{\ell^{\alpha'}}$ of $\beta$ matter. For a linear form
$Z=\sum_iM_iX_i$ one has $Z^{\ell^\alpha}=\sum_iM_i^{\ell^\alpha}X_i^{\ell^\alpha}+\ell R$, with $R$ a polynomial with
coefficients of valuation $\ge0$. So all monomials of $Z^{\ell^\alpha}Z'^{\ell^{\alpha'}}$ other than the
$X_i^{\ell^\alpha}X_j^{\ell^{\alpha'}}$ carry a factor $\ell$. Now put $r'_i=\rho+r_i$. For $n\le\kappa$ we get
$v(\mathcal B_n)\ge\frac1{\ell-1}-n\cdot r'$: this is clear if $v(\mathcal B_n)\ge\frac1{\ell-1}-|n|\rho$, and
otherwise $n=\ell^\alpha e_i+\ell^{\alpha'} e_j$ and $n\cdot r'=|n|\rho+\ell^\alpha r_i+\ell^{\alpha'} r_j\ge|n|\rho+1$ by
\eqref{dv:cond}. By (W3) and (W4) the coefficients of $X^n$ in $\exp(\pm\mathcal B)$, $n\le\kappa$, have
valuation $\ge-n\cdot r'$. The factor $U(g(Z))$ lies in $\mathcal W(\rho,0)\subset\mathcal W(r',0)$ by
Lemma~1 and (W2), (W1). By (W1), $v(\Theta_\kappa)\ge-\kappa\cdot r'$. Finally
$v(k!)=(k-\sigma_\ell(k))/(\ell-1)\ge\frac k{\ell-1}-\lambda(k)$, and $\frac1{\ell-1}-\rho=\gamma$. \qed
\noindent (Lean: \texttt{LemmaR}, with \texttt{PureCross} for the first step and \texttt{FactVal} for the
last; the Lean loss is $|\iota|\,(\log_\ell|\kappa|+1)$. \texttt{LemmaR} has one more hypothesis than
Proposition~5: each variable $X_i$ belongs to one site. Proposition~5 does not need it. The statement \texttt{LemmaR} is in the archive,
proved as \texttt{lemmaR\_of}, but the dependency computation shows that \texttt{LemmaR} is not among the
declarations the final theorem depends on. Proposition~5 is proved here independently. By occurrences of
names the chain uses \texttt{LemmaRA}.) Each variable pays its radius $r_i$ out of the gain
$\gamma$. The radii are needed only where an exceptional monomial is present with a coefficient that is not
divisible by one more power of $\ell$.
\textbf{One variable.} Take one variable $X$ and $\Theta=U(g(X))\exp(\mathcal B(X))$, where
$v(\mathcal B_n)\ge\frac1{\ell-1}-n\rho$ for $n\notin S$ and $v(\mathcal B_n)\ge\frac1{\ell-1}-1-n\rho$ for
$n\in S=\{\ell^\alpha+\ell^{\alpha'}:\alpha+\alpha'\text{ odd}\}$. The second half of the proof of Proposition~5 applies to such a series: what is needed is
$nr\ge1$ for $n\in S$, $n\le\kappa$. The least element of $S$ is $\ell+1$, so $r=\frac1{\ell+1}$ will do,
and $\gamma-\frac1{\ell+1}=\rho$. Thus
\begin{equation}\label{dv:onevar}
v\big(\kappa!\,\Theta_\kappa\big)\ \ge\ \kappa\gamma-\lambda(\kappa)\ \ \text{if }\mathcal B\text{ has no terms in }S,
\qquad v\big(\kappa!\,\Theta_\kappa\big)\ \ge\ \kappa\rho-\lambda(\kappa)\ \ \text{in general.}
\end{equation}
In the first case the factorial contributes $\kappa/(\ell-1)=\kappa(\gamma+\rho)$ and the function costs
$\kappa\rho$. In the second the exceptional terms can cost a further $\kappa/(\ell+1)$. (Lean, for the second:
\texttt{OneLetterRadius}. The Lean statement \texttt{OneLetterR} is for several variables through an
integral matrix, with exponent $(\mathrm{sgn}/2)\sum\beta(Z,\mathrm{ep}\cdot Z)$.) A computation tests \eqref{dv:onevar} with exact
rational arithmetic for $\ell=3,5,7$ and all $\kappa\le240$, with $U$ a random series with integer
coefficients that are units at $\ell$, and $\mathcal B_n$ of the least valuation allowed. The minimum over $\kappa$ of the left side
minus the right side is $\frac14,\frac16,\frac18$ in the first case and $\frac34,\frac56,\frac78$ in the
second. In the second case the first bound fails: at $\kappa=240$ the left side is below
$\kappa\gamma-\lambda(\kappa)$ by $57$, $37$, $28$. So the cost $\kappa/(\ell+1)$ is real in this model
($240/(\ell+1)=60,40,30$).
\subsection*{5.\quad The choice of the weights}
In Proposition~5 the bound is $\sum_i\kappa_i(\gamma-r_i)$, and the radii are free subject to
\eqref{dv:cond}. The exponent \eqref{dv:B} comes from a choice of radii. Two elementary optimisations are
involved.
\textbf{Lemma 6 (the top radius).} \emph{Let $A\ge0$, let $c_j\ge0$ for odd $j\ge1$, and let $J\ge1$ be odd.
There is $\omega\ge\ell^{-J}$ with}
\begin{equation}\label{dv:top}
A\omega+\sum_{\substack{j\ \mathrm{odd}\\ jJ}}\frac A{\ell^j}.
\end{equation}
\emph{Proof.} Let $j_0$ be the least odd $jJ$, is the
second sum in the definition of $\mathrm{top}(s)$. The lemma asserts that a suitable $\omega$ exists, not that
\eqref{dv:topgain} holds for every $\omega\ge\ell^{-J}$. If
$d_{\rm top}(s)=\infty$ and only the $j$ with $\ell^j\le A$ occur on the left, the same choice (with
$\omega=0$ if there is no $j_0$) gives $\sum_{j\ \mathrm{odd}}(A/\ell^j-c_j)_+$ on the right.
\textbf{The linear program.} Let $D:\Z/d\to\mathbb R_{\ge0}$. A \emph{flow} is a family $\psi(s,i)\ge0$, for
sites $s$ and odd $i\alpha'$ this is $\ell^{\alpha'}$ times $\ell^{\alpha-\alpha'}\sigma(s)+\sigma(s+(\alpha-\alpha'))\ge1$;
if $\alpha'>\alpha$ exchange the roles of $(s,\alpha)$ and $(s',\alpha')$ (and $\alpha\ne\alpha'$, since
$\alpha+\alpha'$ is odd).
So such a $\sigma$, used as radius for all variables at the site $s$, satisfies \eqref{dv:cond}.
\emph{Orbits of length two, proved here.} Let $d=2$. Then
\begin{equation}\label{dv:d2}
\mathrm{maxFlow}(D)=\min\Big(D_0,\,D_1,\,\frac{D_0+D_1}{\ell+1}\Big),\quad
F(D)=\begin{cases}\rho\,(D_0+D_1),&D_1/\ell\le D_0\le\ell D_1,\\
\gamma D_0-(1-\gamma)D_1,&\ell D_1\le D_0,\\ \gamma D_1-(1-\gamma)D_0,&\ell D_0\le D_1.\end{cases}
\end{equation}
Indeed, in the first case $\psi=\big(\frac{\ell D_0-D_1}{\ell^2-1},\frac{\ell D_1-D_0}{\ell^2-1}\big)$ is a flow
and $\sigma=(\frac1{\ell+1},\frac1{\ell+1})$ a dual, both of value $\frac{D_0+D_1}{\ell+1}$; in the second
$\psi=(D_1,0)$ and $\sigma=(0,1)$, of value $D_1$; the third is symmetric. By \eqref{dv:weak} these are optimal.
These duals satisfy the inequalities for all odd $i$. (Checked exactly on $20000$ cases, and strong duality
numerically for $d=2,4,6$.) Note that $F(D)$ is \emph{not} $\sum_{h\ \mathrm{odd}}(D_0/\ell^h-D_1)_+$:
for $\ell=5$ and $D=(1000,10)$ the two are $200.42$ and $190$; for $D=(1000,250)$ they are $52.08$ and $0$.
One has $F(D)\ge\sum_{h\ \mathrm{odd}}(D_0/\ell^h-D_1)_+$, with equality only for $D_1=0$. In the source the
sum of the shape \eqref{dv:V} is the term $\mathrm{top}(s)$. Here it comes from Lemma~6; on the route of the final theorem it is the statement \texttt{asmA\_top}. The linear program
governs the rows other than the top rows.
\textbf{Theorem J.} \emph{Assume \textup{(B)}, with $\ell$ an odd prime and $d\ge2$ even. Let a shape, a set
$\mathit{TT}$, the polynomial $P$ and the integer $\bar a$ be as in \S1. Call a row $(s,i)$ \emph{ordinary} if it
is not a top row. Call a top site $s_0$, an odd integer $j$ and an ordinary row $(s,i)$ \emph{linked} if $s=s_0+j$, and
$\ell^j\le\nu_1(s_0)$ if $j>0$, and $\ell^{-j}\le\mathrm{size}(s)$ if $j<0$. Let $\mathrm{spec}$ be an
injective map from a set of ordinary rows to pairs $(s_0,j)$, such that $s_0$, $j$, $(s,i)$ are linked
whenever $\mathrm{spec}(s,i)=(s_0,j)$; the pair is the \emph{label} of the row. Here $j$ is an integer, not a class modulo $d$: $(s_0,j)$ and
$(s_0,j+d)$ are different labels for the same site. Suppose that whenever $s_0$,
$j$, $(s,i)$ are linked and $(s_0,j)$ is not the label of $(s,i)$, the frame satisfies}
\begin{equation}\label{dv:frame}
v\Big(\sum_{q}\xi(s_0,0,q)^{\ell^{j}}\,\xi(s,i,q)\Big)\ge1\quad(j>0),\qquad
v\Big(\sum_{q}\xi(s_0,0,q)\,\xi(s,i,q)^{\ell^{-j}}\Big)\ge1\quad(j<0).
\end{equation}
\emph{Then $v\big(P(\partial)\Theta(0)\big)\ge B'$, where
$B'=\sum_{s\in\mathit{TT}}\big(\mathrm{top}(s)-\gamma W(s)\big)+F(D)-\max_\kappa\sum_y\lambda(\kappa_y)$, the
maximum being over the monomials $X^\kappa$ of $P$ and the sum over the variables $y$. This is the loss that
the proof gives. Since $\sum_y\lambda(\kappa_y)\le dN_0N_1(\log_\ell\bar a+1)$, one has $B'\ge B$ with $B$ as in
\eqref{dv:B}, which is the exponent of the Lean statement. For $d=2$ this is proved
here; for $d\ge4$ the proof uses the cited strong duality.}
\emph{Proof.} Since $P$ has integer coefficients, it suffices to prove $v(\kappa!\Theta_\kappa)\ge B'$ for
each monomial $X^\kappa$ of $P$. A determinant is linear in each row. So the degree of $X^\kappa$ in the
variables of the row $(s,i)$ is the number of $c$ with $\mathrm{len}(s,c)>i$. It is $\nu_1(s)$ for $i=0$, and at most
$\nu_2(s)$ for $i\ge1$. Hence the degree is $\nu_1(s)$ in a top row, at most $\mathrm{cap}(s)$ in an
ordinary row, and $D(s)$ in all ordinary rows at $s$ together; and each $\kappa_y\le\bar a$.
\emph{Radii.} Let $\sigma$ be an optimal dual for $D$, as above. For $s\in\mathit{TT}$ let $\omega(s)$
be given by Lemma~6 with $A=\nu_1(s)$, $c_j=\mathrm{cap}(s+j)$ and $J=d_{\rm top}(s)$ (and by the remark
after it if $d_{\rm top}(s)=\infty$). Give the variables of a top row the radius $\omega(s)$. Give the
variables of an ordinary row $(s,i)$ the radius $\sigma(s)$ if the row has no label;
$\max(\sigma(s),1-\ell^j\omega(s_0))$ if its label is $(s_0,j)$ with $j>0$; and
$\max(\sigma(s),\ell^{-|j|})$ if $j<0$. (Lean: \texttt{rowRad}.)
\emph{The condition \eqref{dv:cond}.} With $Z_{s,q,c}=\sum_i\xi(s,i,q)X_{s,i,c}$, a monomial
$X_y^{\ell^\alpha}X_{y'}^{\ell^{\alpha'}}$, $y=(s,i,c)$, $y'=(s',i',c')$, has in $\mathcal B$ the coefficient
$c_n\sum_q\xi(s,i,q)^{\ell^\alpha}\xi(s',i',q)^{\ell^{\alpha'}}$ if $c=c'$, and $0$ otherwise, where $c_n$ is the
coefficient of $X_s^{\ell^\alpha}X_{s'}^{\ell^{\alpha'}}$ in $\beta$ (it is $0$ by (B3) if $s$ and $s'$ have the
same parity). By \eqref{dv:beta} the condition concerns
only the case $s+\alpha=s'+\alpha'$, $\alpha+\alpha'$ odd, and only if the sum over $q$ has valuation $<1$.
If both rows are ordinary, their radii are at least $\sigma(s)$, $\sigma(s')$, and \eqref{dv:rad} applies.
If both are top rows, say with $\alpha>\alpha'$, then $d_{\rm top}(s)\le\alpha-\alpha'$, so
$\ell^\alpha\omega(s)\ge\ell^\alpha\ell^{-(\alpha-\alpha')}\ge1$. There remains the case of a top row and an ordinary row; by symmetry let $(s,0)$ be the top row and
$(s',i')$ the ordinary row, and $j=\alpha-\alpha'$, so $s'=s+j$. Let $j>0$. Since the monomial divides $X^\kappa$,
$\ell^j\le\ell^\alpha\le\nu_1(s)$. If the label of $(s',i')$ is $(s,j)$, then
$\ell^\alpha\omega(s)+\ell^{\alpha'}(1-\ell^j\omega(s))=\ell^{\alpha'}\ge1$. If not, \eqref{dv:frame}
holds, and $\sum_q\big(\xi(s,0,q)^{\ell^j}\xi(s',i',q)\big)^{\ell^{\alpha'}}\equiv
\big(\sum_q\xi(s,0,q)^{\ell^j}\xi(s',i',q)\big)^{\ell^{\alpha'}}$ modulo $\ell$ has valuation $\ge1$: the condition
is void. Let $j<0$. Then $\ell^{|j|}\le\ell^{\alpha'}\le\mathrm{size}(s')$. If the label is $(s,j)$ then
$\ell^{\alpha'}\ell^{-|j|}=\ell^\alpha\ge1$. If not, \eqref{dv:frame} applies in the same way.
\emph{The sum.} By Proposition~5 it remains to show $\sum_y\kappa_y(\gamma-r_y)\ge
\sum_{s\in\mathit{TT}}(\mathrm{top}(s)-\gamma W(s))+F(D)$. Use $\max(\sigma,u)\le\sigma+u_+$. The terms with
$\sigma$ give $\sum_sD(s)(\gamma-\sigma(s))=F(D)$. The labels $(s_0,j)$ with $j>0$ cost at most
$\mathrm{cap}(s_0+j)(1-\ell^j\omega(s_0))_+$ each, because $\mathrm{spec}$ is injective and one row has
degree at most $\mathrm{cap}$; with the top row this gives $\mathrm{top}(s_0)$ by \eqref{dv:topgain}. The
labels $(s_0,j)$ with $j<0$ cost at most $\mathrm{cap}(s_0-|j|)\,\ell^{-|j|}\le W(s_0)\,\ell^{-|j|}$, and
$\sum_{j\ \mathrm{odd}}\ell^{-j}=\gamma$. The loss in \eqref{dv:jet} is $\sum_y\lambda(\kappa_y)$, as in $B'$. It is at most
$dN_0N_1(\log_\ell\bar a+1)$, because there are $dN_0N_1$ variables and each $\kappa_y\le\bar a$. \qed
\noindent (Lean: \texttt{ThmAJetA} for one $\kappa$, \texttt{ThmAAssembly} for the sum, \texttt{ThmARadii}
for the condition, \texttt{ThmAOp} for the result. The Lean statement \texttt{ThmAOp} is more general: it
allows an integral linear operator on the ordinary rows before the minors are formed. That generality is
not proved here. The inequality for the sum was tested on $3000$ random shapes.)
\textbf{Remarks.} The following are observations of the test of this section. They are recorded
without proof, and nothing above depends on them.
\emph{(1) The field $K_0$.} The field $K_0$, hypothesis (B1) and Lemma~2 are not used in Lemmas 3--4,
Proposition~5 and Theorem~J, except in the proof of Lemma~3 as written. The reason is this. In that proof
the series $E=\exp(\Delta)\circ L$ is invariant under the torus, because $L$ commutes with it. Hence every
monomial of $E-1$ has degree $j$ divisible by $\ell+1$, so $j\ge\ell+1$, and it contributes a series in
$\mathcal W(\rho,j\rho)\subset\mathcal W(\rho,(\ell+1)\rho)=\mathcal W(\rho,\frac1{\ell-1})$. This is the
conclusion of Lemma~3. The Lean statement \texttt{BinomExtract} has no $K_0$ either.
\emph{(2) Strong duality.} The strong duality cited from the source is the duality theorem of linear
programming together with two elementary reductions. First, replacing $\sigma$ by $\min(\sigma,1)$ keeps the
constraints and does not increase $\sum_s\sigma(s)D(s)$. Second, for odd $i\ge d$ write $i=i'+kd$ with $i'$
odd and $1\le i'0$ and $266\,970$ have
$B'>0$. It also holds in every case computed with minors of size two at one site.
\textbf{Comparison with \S I.4.3.} The description there is \eqref{dv:onerow}. The weight $w_h$ is
$\mathrm{cap}(s_0+h)$: the number of minors at the place reached by the $h$th power of the Frobenius
composed with conjugation. It enters in two steps. First, an exceptional monomial of $\beta$ links the top
row at $s_0$ to a row at $s_0+h$, by \eqref{dv:beta}; only such a link forces a radius, by \eqref{dv:cond}.
Second, a monomial of a product of minors has degree at most $\mathrm{cap}$ in one row; this is the
statement of \S I.4.3 that a minor absorbs one derivative in a linked direction. Lemma~6 then balances the
radius of the top row against the radii of the linked rows, and the result is $(A/\ell^h-w_h)_+$ at each
odd $h$. The labels with \eqref{dv:frame} express that at each $h$ only one row at the place $s_0+h$ is
linked. The congruence of Part~II, \S6.3 is a statement of the same kind as \eqref{dv:frame}. The source does not
use it by name at this point: see \S6\,(ii).
\subsection*{6.\quad Assumed here, from the source}
\begin{enumerate}[label=\textup{(\roman*)},leftmargin=2.4em]
\item \emph{The form \eqref{dv:theta} of the theta kernels, and hypothesis \textup{(B)}.} In the Lean this is
the statement \texttt{Loc.AdmB}, of the file \texttt{ProductZerothFirstParts.lean}. It says that there are a unit $e$ and a series $\beta$ such
that the kernel, in the coordinates $e\cdot L$, equals $U\cdot\exp(\pm\sum\beta)\circ L$ with $U$ integral
(clause \texttt{B0}; also \texttt{OrbitThetaExpansion}), with coefficients in the fraction field of the
Witt ring (\texttt{B1}), torus invariance (\texttt{B2}), the condition on degrees (\texttt{B3}), and the
integrality (B4) (\texttt{B4}). The hypothesis \texttt{hServ.pdv} (\texttt{SelectionServed}) of the final theorem does not contain
\texttt{Loc.AdmB} literally: it gives \texttt{BeOK} (B1--B4 for each orbit representative) and
\texttt{ThetaExpansionAllPlaces}. How these give \texttt{Loc.AdmB} was not read. Nothing of it is proved
here. The passage from
\texttt{Loc.AdmB} to \texttt{BHyp} (\texttt{tieB}) was not read.
\item \emph{The frames.} Theorem~J needs a labelling and \eqref{dv:frame}. In the Lean the theorem for all
frames at once is \texttt{ThmAGauss}: every coefficient of the polynomial \texttt{frameJet} in the frame
variables has valuation $\ge B$, if $2\log_\ell\bar a+2\le N_0-1$. Its proof (\texttt{thmAGauss\_of}) names
\texttt{residuallyGenericExists}: there are frames whose entries are residually independent units
(\texttt{IsGeneric}). Three further inputs are supplied to it as hypotheses, in \texttt{thmAGauss}: a transfer
of the hypotheses between fields (\texttt{admissibleTransfer}, of type \texttt{TransferB}), the evaluation
of the frame polynomial (\texttt{FrameJetEval}, \texttt{GaussPow}), and the existence of labels
(\texttt{labelsExist\_statement}, of type \texttt{LabelsExist}). The statement \texttt{TransferB} contains no
frame: it transports \texttt{Unram}, \texttt{BHyp}, the inverse $g$ of the logarithm and the integrality of
$U$ along a norm-preserving homomorphism of fields. The proofs of these inputs were not read. The congruence
\texttt{key\_minor\_dvd} of Part~II, \S6.3 is not used by name in this step: no file under
\texttt{Formalism/GaussJetBounds} mentions it. Its only use by name is in its own file; that file is
imported by \texttt{Loc4ResOfLine} and \texttt{LiftSubstStart}, in the directory \texttt{CoarseMultiplicity},
which were not read.
\item \emph{From Taylor coefficients to the statement used.} The comparison of $F(D)$ and $\mathrm{top}(s)$
with the weights of the construction (\texttt{normCor7}; \texttt{split\_bound\_eleven\_one}, conditional on
\texttt{Loc.AdmB}); the factorial count \texttt{StarArith} and the inequality \texttt{BCore}, which is of the form \eqref{II:t6.1}
of Part~II; the identification of sites with places and of $\nu_1$ with the weights. Then the loss terms
$\mathrm{lo}_G$, $\mathrm{fl}_G$ of \eqref{dv:fl}; the lattice clauses of \texttt{LinkG\_at};
\texttt{stLoss7}; \texttt{placesF\_min'}. For \texttt{stLoss7} and \texttt{placesF\_min'} only the statements
were read. On the route from \texttt{LinkG} to the final theorem that was read, the clauses about
valuations of kernels are proved for the zero chain (\texttt{linkG\_without\_kernels}); how \texttt{ThmAOp}
enters the final theorem was not read. The dependency computation shows that \texttt{thmAOp} is among the
declarations the final theorem depends on. By occurrences of names it reaches the final theorem through \texttt{thmAGauss}, \texttt{thmA\_of},
\texttt{split\_bound\_eleven\_one} and \texttt{sum\_over\_primes\_service}, that is, through
\texttt{SelectionServed}.
\item \emph{The other primes.} The primes of class \texttt{inertClass} are at least $13$ for large $x$
(\texttt{thirteen\_le}, which has a hypothesis that $x$ is large and uses the assumed splitting of the
small primes, \texttt{split\_small}). The primes of the
other classes, and the primes above $X''$, are treated by other clauses, not discussed here.
\end{enumerate}
\textbf{What this section proves, and what it assumes.} \emph{Proved outright:} Lemma~1 (the inverse
of the logarithm), Lemma~2 (integrality), Lemma~6 (the optimisation for the top row), weak duality
\eqref{dv:weak}, and the closed form \eqref{dv:d2} for orbits of length two. \emph{Proved conditionally on
hypothesis \textup{(B)}:} Lemmas~3 and~4, Proposition~5, and Theorem~J for $d=2$. \emph{Conditional on
\textup{(B)} and on strong duality, which is cited from the source} (\texttt{strongDuality}): Theorem~J for
$d\ge4$; this case was not tested end to end. \emph{Taken from the source without proof:} the transcription
of the top-level inequality \texttt{LinkG\_at} in \S1; that the theta kernels satisfy (B) (item (i)); the
dictionary between sites and places; the frames and labels (item (ii)); the passage from jets to lattices
(item (iii)); the remaining primes (item (iv)). Theorem~J is proved without the operator on the ordinary
rows that the Lean statement \texttt{ThmAOp} allows.
\emph{Relation to the declarations the final theorem depends on.} By the dependency computation, the
following declarations named or used in this section are among them: \texttt{strongDuality},
\texttt{weightQuantization}, \texttt{lemmaS\_of}, \texttt{thmAOp},
\texttt{binomial\_coefficient\_extraction}, \texttt{lpF\_eq\_Fnum}, \texttt{residuallyGenericExists},
\texttt{theorem\_A\_generic} and \texttt{gauss\_sum\_powers}. The four statements \texttt{TopRadius},
\texttt{top\_radius\_holds}, \texttt{LemmaR} and \texttt{ThmABound} are in the archive but are not used by
the final theorem. So Lemma~6 and the weighted bound for one Taylor coefficient (Proposition~5) are proved
here independently of the route of the final theorem, and the declarations the final theorem uses instead are \texttt{asmA\_top} and \texttt{lemma\_R\_log\_loss}. Their statements are consistent with Lemma~6 and Proposition~5: for a finite cut-off, and for the set of all odd $j\mathrm{rk}$ and $\tau+\mathrm{io}$ is not zero. On the other $140$ cases,
without the rounding term it fails in $15$. Lemma~L5 was also tested on $20000$ random data in the form of
the Lean statement \texttt{ClaimLow}; without the factor for the rank the inequality fails in a third of
the cases.
\textbf{The Lean statement, and what it compares with.} The Lean statement of the slope bound
(\texttt{SlopesN\_at}, proved from \texttt{Places\_at} by \texttt{lower\_bound\_simplified}) is not
\eqref{lt:slope} word for word. It reads
\begin{equation}\label{lt:Lo}
\mu(\Lambda^{\rm gl}_\alpha)\ \ge\ \mu_{0,\alpha}+G_{\rm top}+F_0-E_{\rm err}(\alpha)
-\Big(C_{\rm pl}\sum_w\lambda_we_w\mathrm{io}(w)+C_{\rm pl}\,|\mathcal T|\,m\Big(\frac ak+b'\Big)\log\mathrm{Lv}_\alpha
+C_{\rm pl}\,X''+1\Big),
\end{equation}
where $C_{\rm pl}$ is a constant of the source (it is not the constant $C$ of \eqref{dv:fl}), and
$\mu_{0,\alpha}$ is the slope of the \emph{first lattice of the chain}, not of
$\Lambda^{\rm src}_\alpha$, which is its preimage. It comes with an upper bound of the same shape for the
largest slope of a sublattice of $\Lambda^{\rm gl}_\alpha$. The passage from \eqref{lt:slope} to
\eqref{lt:Lo} uses four statements of the source, which are assumed here (Lean: \texttt{adm26},
\texttt{HypLow2}, \texttt{places\_at\_of}).
\begin{enumerate}[label=\textup{(\alph*)},leftmargin=2.4em,itemsep=1pt,topsep=2pt]
\item \emph{The rank.} $\mathrm{rk}=(1-1/(\mathrm{Lv}_\alpha-1))^f\,\mathrm{rk}^*$ (\texttt{adm26}). Hence
$(\mathrm{rk}^*-\mathrm{rk})/\mathrm{rk}^*\le2f/\mathrm{Lv}_\alpha$, which the source bounds by $\frac12$.
So $\mathrm{rk}^*/\mathrm{rk}\le2$, and the part of the first term of \eqref{lt:Lodef} with
$\mathrm{io}$ is at most $4\sum_w\lambda_we_w\mathrm{io}(w)$. This factor is absorbed in the constant $C_{\rm pl}$
of \eqref{lt:Lo}; it is not part of the ``$+1$''.
\item \emph{The places above the level.} There $\tau(w)=0$; this is the hypothesis \texttt{htauT} of
\texttt{places\_at\_of}, not a clause of \texttt{adm26}. The second term of \eqref{lt:Lodef} is then at
most $C_{\rm pl}|\mathcal T|m(a/k+b')\log\mathrm{Lv}_\alpha$ (the last clause of \texttt{adm26}). This is
the second term of \eqref{lt:Lo}.
\item \emph{The rounding.} $2\sum_{p\in\mathrm{Rd}_\alpha}\log p\le C_{\rm pl}X''$. The theorem
\texttt{places\_at\_of} does not prove this: it has the bound as a hypothesis (\texttt{NprimeMuR}, the
statement that $\mu(\Lambda^{\rm gl}_\alpha)-\mu(\Lambda^{\rm div}_\alpha)$ differs from
$\sum_w\mathrm{sz}_w(\mathrm{sg}_\alpha(w))$ by at most $C_{\rm pl}X''$). The source proves that hypothesis
elsewhere (\texttt{round\_le}, \texttt{nprimeMu\_at}, \texttt{nprimeMuR\_at}, \texttt{linkMu}). There the
rounding is counted at every place with $\mathrm{sg}_\alpha(w)\ne0$; the primes below these places include
$\mathrm{Rd}_\alpha$. The set $\mathrm{Rd}_\alpha$ is not contained in $[1,X'']$. By two statements of the
source (\texttt{ZeroAbove} for $\mathrm{gain}$ and $\mathrm{err}$, the field \texttt{F\_above} for $\phi$;
together \texttt{sg\_eq\_zero}), $\mathrm{sg}_\alpha(w)=0$ if
$p_w>X''$, unless $p_w$ is $\mathrm{Lv}_\alpha$, $g_0$, $g_1$, $d$ or a prime factor of the denominator
$D_\alpha$ of \S3. So
\begin{equation}\label{D:229}
\sum_{p\in\mathrm{Rd}_\alpha}\log p\ \le\ X''\log4+\log\mathrm{Lv}_\alpha+\log g_0+\log g_1+\log d+\log D_\alpha ,
\end{equation}
by Chebyshev's bound for the primes up to $X''$ (\texttt{sum\_log\_primes\_le}), and because the sum of
$\log p$ over the prime factors of $D_\alpha$ is at most $\log D_\alpha$
(\texttt{sum\_log\_primeFactors\_le}). This display is the statement \texttt{nprimeMu\_at}. The source then
uses that each of $\log g_0,\log g_1,\log d$ is at most $X''$ (from the size conditions \texttt{SizeG},
\texttt{SizeQD}), and two further hypotheses on the family:
$\log\mathrm{Lv}_\alpha\le C_{\rm lv}X''$ and $\log D_\alpha\le C_{\rm den}X''$ (\texttt{MuTu},
\texttt{MuDGam}). This gives the constant $2(\log4+3+C_{\rm lv}+C_{\rm den})$ in \texttt{NprimeMuR}
(\texttt{nprimeMuR\_at}, \texttt{linkMu}). It also assumes that the glued lattices are finitely generated
and have positive rank (\texttt{MuFG}, \texttt{MuRank}).
These hypotheses are assumed here. The names of this item were not put to the dependency computation.
\item \emph{The first lattice of the chain, and the ``$+1$''.} The source has
$\mu(\Lambda^{\rm src}_\alpha)=\mu_{0,\alpha}-f\log(\mathrm{Lv}_\alpha-1)/(\mathrm{Lv}_\alpha-2)$ exactly
(\texttt{adm26}), and $\sum_w\mathrm{sz}_w(\tau(w))\le b^2$ (a hypothesis of \texttt{places\_at\_of}; the source proves it as \texttt{ta\_le}). With (a), the part of the first term of
\eqref{lt:Lodef} with $\tau$ is at most $4fb^2/\mathrm{Lv}_\alpha$. The source requires
$4fb^2/\mathrm{Lv}_\alpha+f\log(\mathrm{Lv}_\alpha-1)/(\mathrm{Lv}_\alpha-2)\le1$ (\texttt{HypLow2}). So the
cost of the rank on $\tau$ and the change from $\mu(\Lambda^{\rm src}_\alpha)$ to $\mu_{0,\alpha}$ are
together at most $1$. This is the single ``$+1$'' of \eqref{lt:Lo}. There is one such term, not two.
\end{enumerate}
\subsection*{3.\quad What \texttt{LinkG} is, and where the valuation statement lives}
The statement \texttt{LinkG} of the source has five clauses (\texttt{LinkG\_at}). They are:
(1) the lattice clause, of which \textup{(Lat)} is the part used in \S2; (2) a bound for the auxiliary numbers \texttt{Sv}; (3) the
inequality \eqref{dv:link} of \S III.5, with $0\le\mathrm{gain}(j,w)\le4|\mathcal T|a/p_w$, at the places of
class \texttt{signal} or \texttt{inertClass} with $p_w\le X''$; (4) a clause that holds by definition; (5) a
bound for the mean of certain numbers $\kappa(\mathcal Q)$, used in \S5. None of them mentions a theta
function, a Taylor coefficient, or a pairing. As \S III.5 already said, \eqref{dv:link} is an inequality
between the numbers $\mathrm{gain},\tau,\mathrm{wPart}$. A hypothesis on the family (the field
\texttt{fills}, of type \texttt{ParametersFill}) says that these numbers are given by explicit formulas
(\texttt{gainP}, \texttt{tauP}, \texttt{fill}, \texttt{partner}, \texttt{TTP}); they are recalled in \S4.
With that hypothesis, clause (3) is arithmetic about the formulas. Proposition~L10 below carries this out
at the primes of class \texttt{signal}, with its own loss terms.
\emph{The zero chain.} The proof of \texttt{LinkG} in the source (\texttt{linkG\_without\_kernels}) goes
through an intermediate statement \texttt{admG1}, one part of which does speak of the valuation of a chain
of maps on a local lattice (\texttt{vKge}). On the route to the final theorem that part is applied to the
chain in which every map is zero (\texttt{zeroCh}). The valuation of $0$ is infinite, so the part holds
for a trivial reason (\texttt{vKge\_zero}). So \texttt{LinkG} is proved without any information on the
theta kernels. This is consistent: \texttt{LinkG} is the bookkeeping, and the lattice clause (1).
\emph{Where the divisibility is asserted.} It is the statement \textup{(Val)}. The final theorem depends
on \texttt{LocalQuadraticParts.adm2}. The route, read downward from the place where it is consumed, is
this.
\begin{enumerate}[label=\textup{(\alph*)},leftmargin=2.4em,itemsep=1pt,topsep=2pt]
\item \texttt{divClausesR\_of} takes a structure of inputs, \texttt{DivInputsR}, and produces four
clauses. One field of \texttt{DivInputsR} is \texttt{val2}, that is \eqref{lt:V}. The other fields are
independent of it. From \texttt{val2} comes the first clause only: the integrality of Theorem~L4\,(i), by
\texttt{intoDual} and \texttt{divIntoDualShift} (Lemma~L3), which use the field \texttt{l1b}. The second
clause bounds the squares of the operator norms of the pairing at the complex places by numbers whose mean
logarithm is the height of the record minus a constant. It comes
from the height inputs (the fields \texttt{ch}, \texttt{hn}, \texttt{nP}, \texttt{nKcb}, \texttt{eig6}).
The third clause is the inequality of sizes, first line of \eqref{II:t6.5} of Part~II, with its term $-F_0$. It
comes from the size inputs (among them \texttt{L3main}, \texttt{Qb}, \texttt{deQ}, \texttt{errB}, and the
inequality \texttt{constant\_ge\_twenty\_eight}). The fourth clause is the slope identity of
Lemma~L2\,(ii), by \texttt{shiftMu}; it uses that \texttt{Nu} is a lattice of positive rank
(\texttt{Nu\_lat}, \texttt{a\_pos}). So the valuation statement does not imply the height bound or the
inequality of sizes. The inequality of sizes is the subject of \S III.4.
\item \texttt{val2AllAtRF} deduces \texttt{val2} from \texttt{adm2}, by linearity, under the hypotheses
described in \S2. In the seventh run of the dependency computation \texttt{val2AllAtRF} is marked as used
by the final theorem. The archive has a second formulation, \texttt{DivisionPackage.val2}. A later run of the dependency computation
shows that the final theorem does not depend on it; of the five declarations named \texttt{val2}, it depends on
\texttt{DivInputsR.val2} only.
\item \texttt{admissible\_level\_two} proves \texttt{adm2}, place by place. At the places above
$\mathrm{Lv}_\alpha$ and above the two auxiliary level primes $g_0,g_1$ of Part~II, \S6.7 it uses separate
inputs. At all other places it uses the statement \texttt{Conclusion1} of the file
\texttt{WeilJacquetShalikaLaw.lean}: \emph{for every $y$ in the local lattice at $w$ that defines
$\Lambda^{\rm div}_\alpha$, the image of $y$ under the composite of the $m$ maps of the chain is divisible,
in the last lattice of the chain, by $\mathfrak p_w$ to the power
$e_w\big(\sum_j(\mathrm{gain}(j,w)+\phi(j,w)-\mathrm{err}(\alpha,j,w))+\mathtt{sp}\cdot v_{p_w}(D_\alpha)\big)$.}
Here $D_\alpha$ is an integer denominator of the member, $v_{p_w}$ is the $p_w$-adic valuation, and
\texttt{sp} is a real parameter of the Lean statement. On the route \texttt{sp} is $1$: the statement
\texttt{Serv} contains \texttt{Conclusion1} with this value. The term with $D_\alpha$ does not reach
\eqref{lt:V}. The theorem \texttt{period\_geTU}, which passes from the chain to the period, lowers the
exponent by exactly $v_{p_w}(D_\alpha)$ (\texttt{vDG}), and the two cancel. This is the statement about
kernels.
\item \texttt{Conclusion1} is part of \texttt{ServF}, which \texttt{sum\_over\_primes\_service} proves
from the structure \texttt{SumOverPrimesHypotheses}, which has the fields \texttt{twU} and \texttt{pdv},
a bound for the denominators $D_\alpha$
(\texttt{DGamSize}), and the theorem \texttt{split\_bound\_eleven\_one}. The latter is the local
estimate: it rests on \texttt{thmAOp}, the Lean form of Theorem~J of \S III.5. The hypothesis \texttt{pdv}
contains hypothesis (B) of \S III.5 for the kernels of the construction.
\end{enumerate}
So there are two branches. One (\texttt{LinkG}) says what the numbers $\mathrm{gain}$ and $\tau$ are and
that they dominate the sums $V$; it needs no kernel. The other (\texttt{ServF}, then \textup{(Val)}) says
that the kernels are divisible by these numbers; it needs Theorem~J and hypothesis (B), and it is assumed
here. They meet in Theorem~L4 and in \S5.
\subsection*{4.\quad From Theorem~J to a gain at a place}
\textbf{Cells, and sums over one prime.} Let $H$ be the group of Part~II, \S4.1, of order $n$. It is the
group of \S III.3, and it is written additively here, as there and as in the Lean; $\mathcal T\subset H$.
A \emph{cell} is a pair $(0,t)$ or $(1,t)$ with $t\in H$; the first entry is the \emph{row}. There are
$f=2n$ cells. For an odd prime $p$ let $h_p\in H$ be its class, of order $n_p$. The classes of primes are
those of the Lean (\texttt{primeClass}): a prime $p\nmid2qd$ is \texttt{splitK} if $\chi_d(p)=1$; if
$\chi_d(p)=-1$ it is \texttt{signal} when $\chi_q(p)=1$ and \texttt{inertClass} when $\chi_q(p)=-1$. For an
odd prime $p\ne q$, $t\in H$ and an integer $i\ge1$ put
\begin{equation}\label{lt:cell}
\mathrm{cell}(p,t,i)=\Big(\frac{1+\chi_q(p)^i}2,\ t+i\,h_p\Big).
\end{equation}
This is the cell of the prime power $p^i$ in the table of Part~II, \S4.1, for the column $t$. For odd $i$
the row is $1$ if $p$ is \texttt{signal} and $0$ if $p$ is \texttt{inertClass}. (Lean, for odd $i$:
\texttt{partner}.) For each $j$ there are weights $\mathrm{wt}_j>0$ on the cells (Lean: \texttt{fill});
these are the weights of Part~II, \S4.2, for the translate $u$ of the record and the map $j$. The
hypothesis \texttt{fills} says $\mathrm{wPart}(j,t,p,i)=\mathrm{wt}_j(\mathrm{cell}(p,t,i))$. Put
\begin{equation}\label{lt:Vdef}
V_\infty(j,t,p)=\sum_{i\ \mathrm{odd}}\Big(\frac{a_t}{p^i}-\mathrm{wt}_j\big(\mathrm{cell}(p,t,i)\big)\Big)_+ ,
\end{equation}
the sum being over all odd $i\ge1$. The sum $V(j,t,p)$ of \eqref{dv:V} has the same terms, but only
those with $p^{i-1}\le a_t$. \emph{If all the weights are $\ge1$, then $V_\infty=V$}: the terms with
$p^i>a_t$ vanish, and \eqref{dv:V} contains every $i$ with $p^i\le a_t$. In the source the weights that
occur are $\ge1$ (\S III.5, \S1). Without this hypothesis the two sums can differ; see the example below.
\textbf{Lemma L6 (the prime sum).} \emph{Let the weights be any positive numbers. The sum \textup{\eqref{II:t4.1}}
of Part~II, for these weights, is}
\begin{equation}\label{lt:P}
P_{u,t,j}=\sum_{\substack{p\ \mathtt{signal}\\\text{or }\mathtt{inertClass}}}2\log p\ V_\infty(j,t,p)\ +\
\log d\sum_{i\ge1}\Big(\frac{a_t}{d^i}-\mathrm{wt}_j\big(\mathrm{cell}(d,t,i)\big)\Big)_+ .
\end{equation}
\emph{Proof.} In \eqref{II:t4.1} the coefficient of $p^i$ is $(1-\chi_d(p^i))\log p$. For $p\ne d$ it is $2\log p$
if $\chi_d(p)=-1$ and $i$ is odd, and $0$ otherwise. The row and the column of $p^i$ are those of
\eqref{lt:cell}. The prime $d$ gives the last term, with coefficient $\log d$ for every $i$. The primes $2$
and $q$ are absent, and split primes have coefficient $0$. \qed
\noindent In the running example of Part~II, \S4.2 ($q=11$, $d=1319$, $n=4$, $a_t=10000$) the weights are
$0.05$ and $10$. Computing the right side of \eqref{lt:P} gives $84701.0317$ for the translate $[1]$, the
value of Part~II, and the four values for the four translates agree with \eqref{II:t4.1} to $10^{-9}$. The example
uses $V_\infty$, not $V$, because its weights $0.05$ are below $1$. Here the two happen to agree: no odd power
$p^i$ of a prime of class \texttt{signal} or \texttt{inertClass} has $p^{i-1}>10^4$ and $10^4/p^i>0.05$.
(For the example of the first version, $q=3$, $d=23$, the right side with $V$ is smaller by $0.309064$ for
the translate $[1]$: the powers $5^7$ and $11^5$ are lost.) With the weights $10$ and $1$ the difference is
$0$ in any case. The primes of class \texttt{inertClass}
contribute $48943.2040$ for every translate: their odd powers lie in row $0$, which contains no
distinguished cell. The primes of class \texttt{signal} contribute $35703.7167$ for the translate $[1]$.
The distinguished weights carry the information on the zeros. Among the unramified primes, only
\texttt{signal} primes sample a distinguished weight; this is the reason for the name. The powers of $d$
contribute the separate last term of Lemma~L6. In general that term depends on the translate, because the
even powers of $d$ lie in row $1$. In this example only $d$ itself is below $a_t/0.05$; it lies in the cell
$(0,[7])$, since $\chi_{11}(1319)=-1$ and $1319\equiv7\bmod16$, and the last term is
$\log1319\,(10^4/1319-0.05)=54.1110$ for every translate.
\textbf{The formulas for the gain.} From here on the weights are $\ge1$, as in the source, so that
$V_\infty=V$. Let $p$ be \texttt{signal} or \texttt{inertClass}. The group generated by $h_p$ (by $2h_p$
if $p$ is \texttt{signal}) acts on $H$ by translation. For an orbit $\mathcal Q$ write
$\mathcal T(\mathcal Q)=\mathcal T\cap\mathcal Q$. (The Lean fixes a base point on each orbit,
\texttt{reps}.) Put $\mathrm{ka}_j=\frac12\big(k+(2j-1)(t_0+1)\big)$, with the integer parameter $t_0$ of
\S III.5. The source has $0\le\mathrm{ka}_j\le\mathrm{Sc}$ for $1\le j\le m$ (\texttt{kaJ\_nonneg} for the lower
bound, \texttt{kaJ\_le} for the upper bound). For an
orbit $\mathcal Q$ put
\begin{equation}\label{lt:g0}
\mathrm{gain}^{\rm plain}(j,\mathcal Q)=\sum_{t\in\mathcal T(\mathcal Q)}\
\sum_{\substack{i\ \mathrm{odd}\\ i\notin\mathrm{Ex}(p,t)}}
\Big(\frac{a_t-8\,\mathrm{Sc}}{p^i}-\mathrm{wt}_j\big(\mathrm{cell}(p,t,i)\big)+\mathrm{ka}_j-4\,\mathrm{Sc}\Big)_+
-\mathrm{dl}(\mathcal Q),
\end{equation}
\begin{equation}\label{lt:dl}
\mathrm{dl}(\mathcal Q)=C_1\,n(\mathcal Q)\,N_m^2\log_p(2a)+C_2\,|\mathcal T(\mathcal Q)|\,\big(\log_p(2a)\big)^2 .
\end{equation}
Here $n(\mathcal Q)$ is the number of \emph{sites} of the orbit. For an \texttt{inertClass} prime the
sites are the points of the orbit, and $n(\mathcal Q)=n_p$. For a \texttt{signal} prime a site is a pair
consisting of the parity of an exponent $i\ge0$ and the column $t+i\,h_p$, with $t\in\mathcal Q$; there are
two parities and, for each, as many columns as $\mathcal Q$ has points, so $n(\mathcal Q)$ is twice the
order of $2h_p$. (Lean: the sites are the values of \texttt{partner}, and $n(\mathcal Q)$ is \texttt{nP}.
The sites are not the cells \eqref{lt:cell} of the powers of $p$: the two agree for odd $i$ only.) The
numbers $C_1,C_2\ge0$ are constants, and $\mathrm{Ex}(p,t)$ is the set
of odd $i$ for which $\mathrm{cell}(p,t,i)=(0,t')$ with $t'\in\mathcal T$, $t'\ne t$, and $i$ is the least
positive exponent with this property for $t'$. (Lean: \texttt{g0}, \texttt{dl}, \texttt{Excl}, \texttt{al},
\texttt{capU}, \texttt{kaJ}; the number $4\,\mathrm{Sc}$ is \texttt{cG}.) The gain is
\begin{equation}\label{lt:gainP}
\begin{aligned}
\mathrm{gain}(j,p)={}&\sum_{\mathcal Q\in\mathrm{Srv}(p)}
\max\big(\mathrm{gain}^{\rm srv}(j,\mathcal Q)-\mathrm{Pr}(j,\mathcal Q),\,\mathrm{gain}^{\rm plain}(j,\mathcal Q),\,0\big)\\
&+\sum_{\mathcal Q\notin\mathrm{Srv}(p)}\max\big(\mathrm{gain}^{\rm plain}(j,\mathcal Q),0\big)
\end{aligned}
\end{equation}
for $p\le X''$, and $\mathrm{gain}(j,p)=0$ for $p>X''$ and for \texttt{inertClass} primes with $h_p=0$.
Here $\mathrm{Srv}(p)$ is the set of \emph{served} orbits, defined in \S5; it is empty unless $p$ is
\texttt{inertClass} and $pd_{\rm top}(s)$ (the Lean development's \texttt{topTerm} has both). It is the right side of \eqref{dv:topgain}, and
$\nu_1(s)\,\ell/(\ell^2-1)=\gamma A$, with $\gamma=\ell/(\ell^2-1)$ as in \S III.5. So \eqref{lt:asmA} is \eqref{dv:topgain} with $\mathrm{top}(s)$ moved
to the left. Both assert only that some $\omega$ exists; neither holds for every $\omega\ge\ell^{-d_{\rm top}(s)}$.
For example, for $\nu_1(s)=9$, $\ell=3$, $d_{\rm top}(s)=1$ one has $\mathrm{top}(s)=\frac38$ and
$\gamma A=\frac{27}8$; both hold with equality at $\omega=\frac13$ and both fail at $\omega=\frac38$. A larger set gives nothing more, because the terms with $i\ge d_{\rm top}(s)$ vanish when
$\omega\ge\ell^{-d_{\rm top}(s)}$. The Lean proof takes the same radius as the proof of the lemma:
$\omega=\ell^{-i_0}$, where $i_0$ is the least odd $iA$ then $A/p^i-\psi_i<0$, so the term on the right is $0$ and nothing is lost. The odd $i$ with
$p^i\le A$ are the odd $i$ with $1\le i\le\log_pA$; for $A\ge1$ their number is at most
$\frac12(\log_pA+1)$. \qed
\noindent The bound for $\mathrm{odd}_p(A)$ needs $A\ge1$: for $00$ of the source. Below, $C_{\rm r}$ is a further constant of the source (Lean: \texttt{Cr}; it
is not the constant $C$ of \eqref{dv:fl}). A \emph{candidate} is an \texttt{inertClass} prime $pX''$. The gain is $0$. All weights are at least $a/X''$ (Lean: the field
\texttt{off\_thin} of the structure \texttt{Inst}, with $a/X''=w''$; the other cells have larger weights,
by \texttt{off\_top} and \texttt{off\_thick}). Since moreover
$a_t\le a(1+1/(kx^{13}))$, $V$ vanishes unless $p\le X''(1+1/(kx^{13}))$: a short interval.
\item \emph{second}: candidates with $\mathrm{Sig}(p)>x^{-\varepsilon}$. The gain is set to $0$.
\item \emph{first}: \texttt{inertClass}, $p1$. The gain is set to $0$.
\item \emph{served}: all others. There \eqref{dv:link} holds with $\mathcal T_p$ as in \eqref{lt:Tp}.
\end{enumerate}
The class ``served'' contains the \texttt{inertClass} primes with $h_p=0$ and $p\ge X'(1+C_{\rm r}\,\mathrm{bw})$.
Their gain is $0$ by \eqref{lt:gainP}, and $V$ vanishes there, because $a_t/p$ is below the weights of the
cells $(0,t)$, $t\in\mathcal T$. These weights exceed $b'=a/X'$ (Lean: the field \texttt{bT\_ge} of
\texttt{SizeData}$_2$ for the label, and \texttt{off\_top} of \texttt{Inst} for the rest of the weight,
which is at least $b'/x$). The primes of the classes high, second and first are the ``dropped'' primes of \S2. The
other primes need no gain: split primes have coefficient $0$ in \eqref{II:t4.1}, and so do $2$ and $q$. Every odd
prime up to $x^{\varepsilon/(5C_o)}$ splits, where $C_o$ is the constant of the source that appears
after Theorem~\ref{thm:T} (Lean: \texttt{split\_small}, an assumed property of $d$, with
\texttt{three\_le\_split}; the Lean writes the exponent as \texttt{ez}$/5$, and \texttt{ez} is
$\varepsilon$ divided by a constant \texttt{J} of the scale, so $C_o$ is \texttt{J}). The paragraph after
Theorem~\ref{thm:T} writes $C_o\ge2$. The Lean structure of the scale has only $1\le\mathtt J$
(\texttt{one\_le\_J}). Whether $\mathtt J\ge2$ on the route was not determined; the statement that these
primes split does not depend on it. So the sum starts above that bound. At the
split primes, at $g_0$, $g_1$ and at the levels the numbers $\mathrm{gain}$, $\tau$, $\mathrm{io}$ are
$0$, and only $\phi$ and $\mathrm{err}$ occur. The cut-offs have this meaning: $X'=a/b'$ is where $a/p$
falls below the weights of the cells $(0,t)$, $t\in\mathcal T$; $X''$ is where it falls below the smallest
weights; below $p_0$ the source uses a different local argument.
\textbf{Lemma L13 (a label that is not served lies on a bad orbit).} \emph{Let $p$ be a served prime and
$t\in\mathcal T\smallsetminus\mathcal T_p$. Then $p$ is of class \texttt{inertClass}, $p0$ and $\mathrm{Sig}(p)\ge0$ on a finite set $\Xi_{\rm c}$ of primes. Then}
\begin{equation}\label{lt:markov}
2\!\!\sum_{p\in\Xi_{\rm c},\ \mathrm{Sig}(p)>\theta}\frac{\log p}p\ \le\
\sum_{p\in\Xi_{\rm c}}\frac{\log p}p\Big(2\cdot[\mathrm{Sig}(p)>\theta]+4\,\mathrm{Sig}(p)\Big)
\ \le\ \Big(\frac2\theta+4\Big)\sum_{p\in\Xi_{\rm c}}\frac{\log p}p\,\mathrm{Sig}(p).
\end{equation}
\emph{Here $[\,\cdot\,]$ is $1$ if the condition holds and $0$ otherwise. Hence, if the middle sum is at
most $x^{-9}$, the primes of the second class cost at most} $\frac83\,m\,a'\,|\mathcal T|\,x^{-9}$.
\end{enumerate}
\emph{Proof.} (i) Theorem~\ref{thm:T} bounds the left side by
$4C_bx^{-2}\delta_1n\cdot2x^{\varepsilon/3}$, and $\delta_1n\le2|\mathcal T|$. So it is at most
$16C_bx^{-2+\varepsilon/3}|\mathcal T|\le x^{-2+\varepsilon}|\mathcal T|$. (ii) By Lemma~L12 each $V$ is at
most $\frac43a'/p$; by Lemma~L13 the labels counted are those of \eqref{lt:bad}. (iii) The first inequality
is clear. For the second, $[\mathrm{Sig}(p)>\theta]\le\mathrm{Sig}(p)/\theta$. The cost of the second class
is, by Lemma~L12, at most $\frac83ma'|\mathcal T|\sum_{\mathrm{second}}\frac{\log p}p$. \qed
\noindent (Lean: \texttt{ChBad\_at} is the inequality of Theorem~\ref{thm:T}; \texttt{ChBadp\_at} is
\eqref{lt:bad}; \texttt{OutD} is (ii); \texttt{lhsW}, \texttt{ChW\_at}, \texttt{term\_le},
\texttt{SecondD} are (iii). The bound $\sum_{p1$ and $\varepsilon>0$ are real numbers; $L_{\rm sc}=x^{\varepsilon}$,
$b=e^{L_{\rm sc}}$, $a=x\,b$, $L_a=\log(a\,\mathrm{rd}_E)$, $B_0=f\,m\,b\,x^{\varepsilon}$, and $N_c\ge0$.
(In the application $f=2n$ and $N_c=|T_2|\,k\,b\,x^{2\varepsilon}/n^2$; the proofs below use only
$N_c\ge0$.) As in \S III.4, $h(u)=u\log u-u$ for $u>0$ and $h(0)=0$. So
$a_t\log a_t-a_t$ means $0$ when $a_t=0$ (the convention $0\cdot\log0=0$).
\emph{Index sets.} $\mathcal J=\{1,\dots,m\}$ indexes the lifts. $\mathcal P$ is the set of weight
places; it has at most $f$ elements. $T\subseteq\mathcal P$ is the set of distinguished places, with a
real number $a_t\ge0$ for each $t\in T$. When an element of $T$ is called $\tau$ this number is written
$a_\tau$. For a statement $\mathsf S$ the symbol $[\mathsf S]$ is $1$ if $\mathsf S$ holds and $0$
otherwise.
\emph{The field and its places.} $K$ is the number field of the first remark above. In the source it is
totally complex. $v$ runs over its archimedean places, $s$ is their number, and
$\langle u\rangle=s^{-1}\sum_vu(v)$ for a real function $u$ of $v$.
\emph{The chain and its end.} A Hermitian norm at $v$ on a $K$-vector space $W$ means a positive definite
Hermitian norm on the complex space $W\otimes_{K,v}\C$. $V_0,\dots,V_m$ are finite-dimensional $K$-vector spaces with a Hermitian
norm at each $v$, and $K_j:V_{j-1}\to V_j$ $(j\in\mathcal J)$ are $K$-linear maps. $U$ is a
finite-dimensional $K$-vector space with a positive definite Hermitian norm at each $v$, and
$U_0\subseteq U$ is a $K$-subspace. $\bar U=U/U_0$, and $\bar{\mathbf u}\in\bar U$ is the class of
$\mathbf u\in U$. $\bar U$ carries at each $v$ the quotient norm,
$\|\mathbf x\|=\min\{\|\mathbf u\|:\bar{\mathbf u}=\mathbf x\}$, where $\mathbf x$ is in $\bar U\otimes_{K,v}\C$ and $\mathbf u$ runs over $U\otimes_{K,v}\C$ (the minimum is attained there). $Y$ is a $K$-vector space with a
Hermitian norm at each $v$, and $\iota:\bar U\to Y$ is a $K$-linear bijection. $\Pi:V_m\to U^{*}$ is a
$K$-linear map into the dual space (the pairing at the end of the chain). Dual spaces carry the dual
norms. The map of the inequality is the $K$-linear map $\Phi:V_0\to Y^{*}$ determined by
\begin{equation}\label{sa:fact}
\Phi(\varphi)\big(\iota\,\bar{\mathbf u}\big)=\Pi\big(K_m\cdots K_1\varphi\big)(\mathbf u)
\qquad(\varphi\in V_0,\ \mathbf u\in U).
\end{equation}
It exists as soon as the right side vanishes for $\mathbf u\in U_0$; this is part of input (S3). If
$\Phi\ne0$, its height is $\mathrm{ht}(\Phi)=\langle\log\|\Phi\|_v^2\rangle$; \S III.4 writes $h(P)$ for
the height of a map $P$. In the source the chain is a chain of matrix steps, and one step may contain
several lifts (Lean: a map \texttt{lf} from the lifts to the steps); the bound (S1) is then a bound for
the matrix of a step. We state everything for one lift in each step. The argument is the same.
\emph{Lattices and slopes.} A lattice $\mathcal L$ is a finitely generated $\mathcal O_K$-module that
spans a $K$-vector space with norms at every $v$. $\mu(\mathcal L)$ denotes the normalised slope of the
source (\texttt{muDef}): twice the slope of $\mathcal L$ for these norms, plus a constant depending only
on $K$. It is the normalisation for squared norms. $\mathcal L^\vee$ is the dual lattice in the dual
space, with the dual norms, and $\mu_{\max}(\mathcal L)$ is the largest normalised slope of a sublattice.
$\mathcal R\subset Y$ is the lattice whose dual receives the values of $\Phi$, and
$\mu_{\rm CC}=\mu(\mathcal R^\vee)$. There is a second lattice $\mathcal R_0$, in a space $Y_0$ of the
same kind, built from the same data at a lower level; $\mu_0=\mu(\mathcal R_0^\vee)$.
\emph{The record.} The following real numbers are given: $\log\mathcal T\ge0$; $\log\Omega_E$; for
$j\in\mathcal J$ and $\tau\in\mathcal P$ nonnegative kernel degrees $\nu_{j\tau i}$ $(1\le i\le r_\nu)$
with sum $n_{j\tau}=\sum_i\nu_{j\tau i}$, a number $\log H_{j\tau}$ (in the application the logarithm of
the hook product $H(A^+_\tau)$ of step $j$), a number $w_{j\tau}$ (the weight shift), and two error terms
$\mathfrak e_{j\tau}$, $\mathfrak d_{j\tau}$; for $j\in\mathcal J$ a number $p_j$; and parameters
$k,N_m,S_{\rm c},t_0,\eta,w'',b',\lambda_0,\varrho,L$ and constants $C_0,c_e,C_h$. (In the source the
kernel degrees are padded by zeros to $r_\nu=N_m$.) Put
\begin{align}\label{D:253}
h_A&=-\sum_{t\in T}a_t\log\mathcal T+C_h\big(|T|\,b'N_m+f(m\eta+S_{\rm c})N_m+fN_m^2\big)L_a,\\
h_{B,j}&=\sum_{\tau\in\mathcal P}\Big(\sum_ih(\nu_{j\tau i})-n_{j\tau}\log\Omega_E\Big)
+C_hfN_m^2\big(L_a+m^3L_{\rm sc}\big),\\
h_{X,j}&=\sum_{\tau\in\mathcal P}\log H_{j\tau}-C_hf\,\varrho^2L,\\
\mathcal H&=h_A+\sum_{j\in\mathcal J}\big(h_{B,j}-h_{X,j}\big).
\end{align}
These are the quantities $h_A$, $h_{B,j}$, $h_{X,j}$ of the paragraph ``Relation to the Lean proof'' of
\S III.4 (Lean: \texttt{RecNums.hA}, \texttt{hB}, \texttt{hX}, \texttt{hu}).
\subsection*{2.\quad The inputs}
\begin{enumerate}[label=\textup{(S\arabic*)},leftmargin=2.8em,itemsep=3pt,topsep=3pt]
\item \emph{The chain bound.} For $j\in\mathcal J$ and every $v$, $\log\|K_j\|_v^2\le\Sigma_j(v)$, where
\begin{align}\label{D:254}
\Sigma_j(v)={}&\sum_{\tau\in\mathcal P}\Big(\sum_ih(\nu_{j\tau i})-n_{j\tau}\log\Omega_\tau(v)\Big)
+|\mathcal P|\,\mathfrak g_j\log\Theta_1(v)\\
&+|\mathcal P|\,\mathfrak g_j\log\big(8+32\,|\mathcal P|\,\mathfrak g_j\,v_{\rm h}\big)
+2\log\beta^{*}_j(v)\\
&+\sum_{\tau\in\mathcal P}\big(1+2\mathfrak g_j\log(2n_{j\tau}+2)\big)+\log\mathrm{cl}_j+\log\mathrm{cl}_j' .
\end{align}
Here $\Omega_\tau(v)>0$ (the local squared period), $\Theta_1(v)>0$ (the mean square of the reference
theta function, per variable), $\beta^{*}_j(v)>0$ (the constant of the kernel),
$\mathrm{cl}_j,\mathrm{cl}_j'>0$ (numbers of classes), $\mathfrak g_j$ and $v_{\rm h}$ are real numbers, $v_{\rm h}\ge0$,
with, for constants $C_2,C_{\rm th},C_4,c_5,c_6,C_T,C_8,C_e\ge0$ and a real number $L_g$ (in the
application $\log(g_0g_1)$):
\begin{gather}\label{D:255}
\log\beta^{*}_j(v)\le C_2fm^2N_m^2(L_g+\log\mathcal T)+C_efN_m^2L_g,\qquad
\langle\log\Theta_1\rangle\le C_{\rm th}L_{\rm sc},\\
\log\mathrm{cl}_j,\ \log\mathrm{cl}_j'\le C_4fN_m^2(L_{\rm sc}+\log\mathcal T+L_g),\qquad
0\le\mathfrak g_j\le N_m^2,\\
\log\big(8+32|\mathcal P|\mathfrak g_jv_{\rm h}\big)\le c_5L_a,\qquad\log(2n_{j\tau}+2)\le c_6L_a,\\
L_g\le C_8L_{\rm sc},\qquad\log\mathcal T\le C_TmL_{\rm sc},
\end{gather}
and $C_{\rm th}+c_5+2c_6+1+2C_4+2C_eC_8\le C_h$, $2(C_2+C_4)(C_T+C_8)\le C_h$. Since
$\mathfrak g_j\ge0$ and $v_{\rm h}\ge0$, the number $8+32|\mathcal P|\mathfrak g_jv_{\rm h}$ is at least
$8$; so its logarithm is defined. The condition $v_{\rm h}\ge0$ is assumed here for this reason only. The
record of the source does not contain it; in the source's construction $v_{\rm h}=\mathrm{rd}_E/2>0$
(see subsection 5).
\item \emph{The pairing at the end.} There is a real number $h_\Pi$ with $\|\Pi\|_v^2\le e^{h_\Pi}$ for
every $v$, and there are real numbers $\ell_\tau,\lambda_{1,\tau},d_{0,\tau},d_{1,\tau},b_\tau$,
$\mathfrak m_\tau,\mathfrak m_\tau'$ $(\tau\in\mathcal P)$ and $e_\Pi$, $C_\Pi\ge0$ with
\begin{gather}\label{D:256}
h_\Pi\le-\sum_{\tau\in\mathcal P}\ell_\tau\log\mathcal T
+\sum_{\tau\in\mathcal P}\big(2\,\mathfrak m_\tau+\mathfrak m_\tau'\big)+e_\Pi,\qquad
\ell_\tau=\lambda_{1,\tau}-d_{0,\tau},\\
\lambda_{1,\tau}=a_\tau-\tfrac{N_m-k}2\ (\tau\in T),\qquad
\lambda_{1,\tau}\ge S_{\rm c}-\tfrac{N_m-1}2\ (\tau\notin T),\\
d_{0,\tau}\le S_{\rm c}+m\eta+[\tau\in T]\,b_\tau,\quad b_\tau\le2b'\ (\tau\in T),\quad
d_{1,\tau}\le3d_{0,\tau}+S_{\rm c}+\eta,\\
\mathfrak m_\tau\le(N_m-1)\,d_{1,\tau}\log(2a),\quad\mathfrak m_\tau'\le\tfrac{N_m(N_m-1)}2\log(2a),\quad
e_\Pi\le C_\Pi fN_m^2L_a,
\end{gather}
and $2(16+C_T+C_\Pi)\le C_h$. The number $e_\Pi$ is one real number; it does not depend on $v$. We read
the first line as the bound of the paragraph ``The pairing at the end of the chain'' of \S III.4 at the
place $\tau$, with $\psi\le N_m-1$, $\Psi\le N_m$ and $\Gamma\le2a$, and with $\mathfrak m_\tau$,
$\mathfrak m_\tau'$ in the place of $\log|\vartheta|$, $\log\kappa$ there. This reading is ours: in the
source $\mathfrak m_\tau$ and $\mathfrak m_\tau'$ are by definition the two majorants
$(N_m-1)\,d_{1,\tau}\log(2a)$ and $\frac{N_m(N_m-1)}2\log(2a)$ (Lean: \texttt{logc}, \texttt{logxi} in
\texttt{lastSide\_of\_logT\_le}).
\item \emph{The eigenvalues of a lift.} The right side of \eqref{sa:fact} vanishes for
$\mathbf u\in U_0$. There are a finite nonempty index set $\mathcal I$, $K$-subspaces
$\bar U_p\subseteq\bar U$ $(p\in\mathcal I)$ with $\sum_p\bar U_p=\bar U$, and positive numbers
$\varkappa_v$ and $\lambda_{j,p}(v)$ such that at every $v$
\begin{equation}\label{D:257}
\langle\iota\mathbf x,\iota\mathbf x'\rangle_{Y,v}
=\varkappa_v\prod_{j\in\mathcal J}\lambda_{j,p}(v)\ \langle\mathbf x,\mathbf x'\rangle_{\bar U,v}
\qquad(\mathbf x\in\bar U_p,\ \mathbf x'\in\bar U).
\end{equation}
There are real numbers $l_{6,j}$ with $l_{6,j}\le\log\lambda_{j,p}(v)$ for all $j,p,v$, and
$\sum_jh_{X,j}\le\sum_jl_{6,j}$.
\item \emph{The periods.} For every $\tau\in\mathcal P$, $\langle\log\Omega_\tau\rangle=\log\Omega_E$.
\item \emph{The slope at the lower level.} There are real numbers $l_{3,j}$ $(j\in\mathcal J)$,
$\mathfrak F$ and $E_{\rm loc}$ with
\begin{equation}\label{D:258}
\mu_0-\langle\log\varkappa\rangle\le\sum_{j\in\mathcal J}l_{3,j}+2\mathfrak F+E_{\rm loc}.
\end{equation}
Here $l_{3,j}$ is an upper bound for the normalised logarithmic covolume, divided by $\dim Y$, of the
lattice attached to the $j$th lift; $\mathfrak F$ is the sum of the local index terms; $E_{\rm loc}$ is
the sum of the local errors. This is the form of the source: its theorem has the bound by $l_{3,j}$ among
its hypotheses and the display as its conclusion (subsection 5).
\item \emph{The covolumes.} There is a real number $E_3$ with
\begin{equation}\label{D:259}
\sum_{j\in\mathcal J}l_{3,j}\le\sum_{j\in\mathcal J}\sum_{\tau\in\mathcal P}p_j\,w_{j\tau}\log\Omega_E+E_3 .
\end{equation}
\item \emph{The passage between levels.} There are real numbers $\mathrm{de}\ge0$, $\mathrm{la}$, $H_{\max}$, $Q_0\ge1$ with
$\mu_{\max}(\mathcal R_0)\le H_{\max}-\langle\log\varkappa\rangle$, and such that, if
$\mathrm{de}\le\frac13$ and $H_*$ is a real number with $\mu_{\max}(\mathcal R_0)\le H_*$, then
\begin{equation}\label{D:260}
\mu_{\rm CC}\le\mu_0+3\,\mathrm{de}\,\big(\mu_0+H_*+28\,\mathrm{la}\big)+28\,\mathrm{la} .
\end{equation}
Moreover $3\,\mathrm{de}\,Q_0\le1$,\ \
$\sum_jl_{3,j}+2\mathfrak F+E_{\rm loc}+H_{\max}+28\,\mathrm{la}\le Q_0$,\ \
$\mathrm{la}\le\lambda_0$ and $C_0\ge28$. Here $\langle\log\varkappa\rangle$ is the mean of the numbers
$\log\varkappa_v$ of (S3), as in (S5). (The source uses the same scalars $\varkappa_v$ for $\mathcal R_0$
and for $\mathcal R$; this explains why one number occurs at both levels. It is a comment, not a
hypothesis.)
\item \emph{The size of the local errors.} $E_3+E_{\rm loc}\le c_e\,m\,x^{\varepsilon}(B_0+N_c)$.
\end{enumerate}
\begin{enumerate}[label=\textup{(W\arabic*)},leftmargin=2.8em,itemsep=3pt,topsep=3pt]
\item \emph{Rows against hooks.} For all $j,\tau$:\quad
$\sum_ih(\nu_{j\tau i})-\log H_{j\tau}\le[\tau\in T]\,h(a_\tau)+\mathfrak e_{j\tau}$, with
$\mathfrak e_{j\tau}\le C_0\big(w_{j\tau}+S_{\rm c}+N_m^2+m(t_0+1)\eta\big)L_a$.
\item \emph{The total degree.} For all $j,\tau$:\quad
$n_{j\tau}=[\tau\in T]\,a_\tau+k\,w_{j\tau}+\mathfrak d_{j\tau}$, with
$|\mathfrak d_{j\tau}|\le C_0\big(w_{j\tau}+k(N_m+S_{\rm c})+m(t_0+1)\eta+[\tau\in T]\,k\,b'\big)$.
\end{enumerate}
\begin{enumerate}[label=\textup{(G)},leftmargin=2.8em,itemsep=3pt,topsep=3pt]
\item \emph{Sizes of the parameters.} $\mathrm{rd}_E\ge1$, $\log\mathrm{rd}_E\le L_{\rm sc}$,
$\log x\le L_{\rm sc}$; $m,f,k\ge1$, $k+m\le N_m$; $S_{\rm c},t_0,\eta,b',\lambda_0,\varrho,L\ge0$,
$\varrho\le N_m$; $0\le w_{j\tau}\le2b$; $|p_j-k|\le m$; $|\log\Omega_E|\le L_a$; and
\begin{gather}\label{D:261}
m\lambda_0\le b,\quad N_m^2\le b,\quad m^3N_m^2L_{\rm sc}\le b,\quad m\,\eta\,N_m\,L_{\rm sc}\le b,\quad
kN_m\le b,\\
kS_{\rm c}\le w'',\quad m(t_0+1)\eta\le w'',\quad N_mw''\le b,\quad b'N_m\le a,\quad m\,k\,b'\le a,\\
1\le C_0\le c_e,\qquad 0\le C_h\le C_0,\qquad C_hL\le C_0L_a .
\end{gather}
\end{enumerate}
\emph{Remarks on the list.} (1) \emph{\textup{(W1)} and \textup{(W2)} follow from ``Row by row''.} In
the source $\mathfrak e_{j\tau}$ and $\mathfrak d_{j\tau}$ are defined by equality in the first halves of
(W1) and (W2) (Lean: \texttt{eEN}, \texttt{dN}). Fix $j$ and $\tau$ and write $w=w_{j\tau}$. From its
inputs (o), (a)--(e) the paragraph ``Row by row'' of \S III.4 derives
\begin{equation}\label{D:262}
\mathfrak e_{j\tau}\le(w+\Delta+B)\,L_a,\qquad|\mathfrak d_{j\tau}|\le k(\varsigma+\Delta)+w+B,
\qquad\varsigma=\frac{k+(2j-1)(t_0+1)}2 ,
\end{equation}
where $\Delta\ge0$ is the width of the weight interval and $B$ bounds the extra degrees. (At a
distinguished place it gives $(w+B)L_a$ for the first.) Three facts are taken from the source (Lean:
the fields \texttt{constant\_weight\_sum\_bound}, \texttt{constant\_succ\_le}, \texttt{blk} of
\texttt{NumFacts}, and \texttt{Nm\_cast}): $2\Delta\le C_1S_{\rm c}$ for a constant $C_1$ with
$C_1+1\le C_0$; $B=m(t_0+1)\eta$; and $N_m=k+m(t_0+1)$. So $\Delta\le C_0S_{\rm c}$, because
$S_{\rm c}\ge0$, and $\varsigma\le N_m$, because $2j-1\le2m$. With $w\ge0$, $B\ge0$, $k\ge1$ and
$C_0\ge1$ from (G),
\begin{align}\label{D:263}
w+\Delta+B&\le w+C_0S_{\rm c}+B\le C_0\big(w+S_{\rm c}+N_m^2+m(t_0+1)\eta\big),\\
k(\varsigma+\Delta)+w+B&\le kN_m+C_0kS_{\rm c}+w+B\le C_0\big(w+k(N_m+S_{\rm c})+m(t_0+1)\eta\big).
\end{align}
Multiply the first line by $L_a\ge0$. These are the bounds of (W1) and (W2); the term
$[\tau\in T]\,k\,b'$ of (W2) is not needed. So (W1) and (W2) hold under the inputs (o), (a)--(e) of
``Row by row'' and the three facts. In the source this is \texttt{stepE\_num}, used in
\texttt{RecNums.ofNum}. The theorem below assumes (W1) and (W2) as stated.
(2) In the source $p_j=k+(2j-1-m)$ (Lean: \texttt{ClosedScale3.l3m}), so that $|p_j-k|\le m-1$.
(3) The condition $C_0\ge28$ stands in (S7) because the source has it there (Lean: the field
\texttt{constant\_ge\_twenty\_eight}). The proof uses it once, in Step 3, for
$28\,\mathrm{la}\le C_0\,m\,\lambda_0$. It is not an extra condition: $2(16+C_T+C_\Pi)\le C_h$ of (S2) and
$C_h\le C_0$ of (G) give $C_0\ge32$. Two other conditions are also used once each: $k+m\le N_m$ of (G)
only through $m\le N_m$ in Step 2, and $C_0\le c_e$ only for the last display of the theorem.
\subsection*{3.\quad The assembly}
\begin{theorem}\label{sa:thm}
Assume \textup{(S1)--(S8)}, \textup{(W1)}, \textup{(W2)} and \textup{(G)}. Then:
\begin{enumerate}[label=\textup{(\alph*)},leftmargin=2.4em,itemsep=2pt,topsep=3pt]
\item if $\Phi\ne0$, then $\ \mathrm{ht}(\Phi)\le\mathcal H-\langle\log\varkappa\rangle$;
\item with $\mathcal U_1=|T|\,a\,L_a$ and $\mathcal U_2=m\,x^{\varepsilon}(B_0+N_c)$,
\begin{equation}\label{D:264}
\begin{aligned}
\mu_{\rm CC}-\langle\log\varkappa\rangle+\mathcal H-2\mathfrak F\ \le{}&
\sum_{t\in T}\Big(m\big(h(a_t)-a_t\log\Omega_E\big)-a_t\log\mathcal T\Big)\\
&+2C_0\,\mathcal U_1+\big(47C_0+7+c_e\big)\mathcal U_2 .
\end{aligned}
\end{equation}
\end{enumerate}
In particular, with $h=\mathcal H-\langle\log\varkappa\rangle$, $F_0=2\mathfrak F$ and
$C=\max(50C_0+10,\,60c_e)$,
\begin{equation}\label{D:265}
\begin{aligned}
\mu_{\rm CC}+h-F_0\le{}&\sum_{t\in T}\Big(m\big(a_t\log a_t-a_t-a_t\log\Omega_E\big)-a_t\log\mathcal T\Big)\\
&+C\,|T|\,a\,L_a+C\,m\,B_0\,x^{2\varepsilon}+C\,m\,N_c\,x^{2\varepsilon}.
\end{aligned}
\end{equation}
\end{theorem}
The last display is the inequality (\ref{III:sizefinal}) at the end of \S III.4. In it
$a_t\log a_t$ means $0$ when $a_t=0$, since $h(0)=0$; part (b) is written with $h(a_t)$. The constant $C$
is at least $1610$, because $C_0\ge32$. So the inequality has content only when $m$ is large compared
with $C$: otherwise the error term $C\,|T|\,a\,L_a$ can exceed the main term. The source states (b) with the
error $(50C_0+10)\,\mathcal U_1+60c_e\,\mathcal U_2$ (Lean: \texttt{RecNums.rhs}); this is weaker than
(b), since $47C_0+7+c_e\le55c_e$. The terms $h$ and $F_0$ of the final inequality are thus
$\mathcal H-\langle\log\varkappa\rangle$ and $2\mathfrak F$. The term $F_0$ enters in two places. In
(S5) it is added in the bound for the slope, and it is subtracted on the left. It also occurs in the
condition of (S7) that bounds $Q_0$ from below. The proof takes the rest of this subsection. It has four
steps: a bound for $\|\Phi\|_v$ at one place; the average over the places; the slope; the cancellation.
\medskip
\noindent\textbf{Step 1: a map that factors through a quotient.}
\textbf{Lemma (descent).} \emph{Fix a place $v$ and extend all spaces to $\C$ by the embedding at $v$.
Assume the first two sentences of \textup{(S3)}. Then}
\begin{equation}\label{D:266}
\|\Phi\|_v^2\ \le\ \frac{\|\Pi\|_v^2\,\prod_{j\in\mathcal J}\|K_j\|_v^2}
{\varkappa_v\,\min_{p\in\mathcal I}\prod_{j\in\mathcal J}\lambda_{j,p}(v)} .
\end{equation}
\emph{Proof.} Write $\mathfrak s_p=\varkappa_v\prod_j\lambda_{j,p}(v)$ and
$\mathfrak s_{\min}=\min_p\mathfrak s_p$. Let $\Xi$ be the operator on $\bar U\otimes\C$ with
$\langle\iota\mathbf x,\iota\mathbf x'\rangle_Y=\langle\Xi\mathbf x,\mathbf x'\rangle_{\bar U}$ for all
$\mathbf x,\mathbf x'$. It is Hermitian. The hypothesis says
$\langle\Xi\mathbf x,\mathbf x'\rangle=\mathfrak s_p\langle\mathbf x,\mathbf x'\rangle$ for
$\mathbf x\in\bar U_p$ and all $\mathbf x'$, that is, $\Xi\mathbf x=\mathfrak s_p\mathbf x$ on $\bar U_p$.
The spaces $\bar U_p\otimes\C$ span $\bar U\otimes\C$, so $\Xi$ is diagonalisable with all eigenvalues
among the $\mathfrak s_p$. Eigenspaces of a Hermitian operator for different eigenvalues are orthogonal.
Hence $\|\iota\mathbf x\|_Y^2=\langle\Xi\mathbf x,\mathbf x\rangle\ge\mathfrak s_{\min}\|\mathbf x\|_{\bar U}^2$
for every $\mathbf x$. Now let $\mathbf y\in Y\otimes\C$ and put $\mathbf x=\iota^{-1}\mathbf y$. Choose
$\mathbf u$ with $\bar{\mathbf u}=\mathbf x$ and $\|\mathbf u\|_U=\|\mathbf x\|_{\bar U}$; this is
possible by the definition of the quotient norm. By \eqref{sa:fact},
\begin{equation}\label{D:267}
|\Phi(\varphi)(\mathbf y)|=\big|\Pi(K_m\cdots K_1\varphi)(\mathbf u)\big|
\le\|\Pi\|\,\prod_j\|K_j\|\,\|\varphi\|\,\|\mathbf u\|_U
\le\|\Pi\|\,\prod_j\|K_j\|\,\|\varphi\|\,\frac{\|\mathbf y\|_Y}{\sqrt{\mathfrak s_{\min}}} .
\end{equation}
The norm of $\Phi(\varphi)$ in the dual of $Y$ is the supremum of
$|\Phi(\varphi)(\mathbf y)|/\|\mathbf y\|_Y$. \qed
\noindent(Lean: \texttt{HeightBoundConstant}, proved as \texttt{height\_constant\_bound} and used in
\texttt{height\_chain\_atR}; there for a chain of matrix steps, as said in subsection 1.)
Assume now (S1), (S2), (S3) and $\Phi\ne0$. Then $\|\Phi\|_v>0$ at every $v$, because a nonzero entry of
the matrix of $\Phi$ stays nonzero under an embedding of $K$. Taking logarithms in the lemma and using
$l_{6,j}\le\log\lambda_{j,p}(v)$,
\begin{equation}\label{sa:place}
\log\|\Phi\|_v^2\le h_\Pi+\sum_{j\in\mathcal J}\Sigma_j(v)-\log\varkappa_v-\sum_{j\in\mathcal J}l_{6,j}
\qquad\text{for every }v.
\end{equation}
\noindent\textbf{Step 2: the average over the places.}
\textbf{Lemma (the height record).} \emph{Assume the numerical parts of \textup{(S1)} and
\textup{(S2)}, the identity \textup{(S4)}, and \textup{(G)}. Then}
\begin{equation}\label{D:269}
h_\Pi\le h_A\qquad\text{and}\qquad\langle\Sigma_j\rangle\le h_{B,j}\quad(j\in\mathcal J).
\end{equation}
\emph{Proof.} From (G): $L_{\rm sc}\ge1$ since $x>1$; $L_a=\log x+L_{\rm sc}+\log\mathrm{rd}_E$, so
$1\le L_{\rm sc}\le L_a\le3L_{\rm sc}$; $0\le\log(2a)\le2L_a$; and $m\le N_m$.
\emph{The first inequality.} For $\tau\in T$ put $\bar D_\tau=S_{\rm c}+m\eta+2b'$, and for
$\tau\notin T$ put $\bar D_\tau=S_{\rm c}+m\eta$; then $d_{0,\tau}\le\bar D_\tau$ and
$d_{1,\tau}\le3\bar D_\tau+S_{\rm c}+\eta\le4S_{\rm c}+4m\eta+[\tau\in T]\,6b'$. Since
$(N_m-1)\log(2a)\ge0$ and the last bound is nonnegative,
\begin{equation}\label{D:270}
2\,\mathfrak m_\tau\le\big(16N_m(S_{\rm c}+m\eta)+[\tau\in T]\,24\,b'N_m\big)L_a,
\qquad\mathfrak m_\tau'\le N_m^2L_a .
\end{equation}
Next, $-\ell_\tau\log\mathcal T=(d_{0,\tau}-\lambda_{1,\tau})\log\mathcal T$ and
$0\le\log\mathcal T\le C_TmL_a$. For $\tau\in T$ the coefficient is
$-a_\tau+\frac{N_m-k}2+d_{0,\tau}\le-a_\tau+\frac{N_m}2+S_{\rm c}+m\eta+2b'$; for $\tau\notin T$ it is at
most $\frac{N_m-1}2-S_{\rm c}+S_{\rm c}+m\eta\le\frac{N_m}2+m\eta$. With $m\le N_m$ this gives
\begin{equation}\label{D:271}
-\ell_\tau\log\mathcal T\le-[\tau\in T]\,a_\tau\log\mathcal T
+C_T\Big(\tfrac{N_m^2}2+N_m(S_{\rm c}+m\eta)+[\tau\in T]\,2b'N_m\Big)L_a .
\end{equation}
Sum over the at most $f$ places $\tau$, of which $|T|$ are in $T$, and add $e_\Pi\le C_\Pi fN_m^2L_a$:
\begin{equation}\label{D:272}
h_\Pi\le-\sum_{t\in T}a_t\log\mathcal T+\Big((24+2C_T)|T|\,b'N_m+(16+C_T)f(m\eta+S_{\rm c})N_m
+\big(1+\tfrac{C_T}2+C_\Pi\big)fN_m^2\Big)L_a .
\end{equation}
Each of the three coefficients is at most $2(16+C_T+C_\Pi)\le C_h$. This is $h_\Pi\le h_A$.
\emph{The second inequality.} Average $\Sigma_j(v)$ over $v$. By (S4) the first sum becomes
$\sum_\tau(\sum_ih(\nu_{j\tau i})-n_{j\tau}\log\Omega_E)$, exactly. For the other terms, using
$|\mathcal P|\le f$, $0\le\mathfrak g_j\le N_m^2$, $1\le L_{\rm sc}\le L_a$ and
$L_g+\log\mathcal T\le(C_8+C_T)mL_{\rm sc}$:
\begin{align}\label{D:273}
|\mathcal P|\,\mathfrak g_j\,\langle\log\Theta_1\rangle&\le C_{\rm th}fN_m^2L_a,\\
|\mathcal P|\,\mathfrak g_j\log(8+32|\mathcal P|\mathfrak g_jv_{\rm h})&\le c_5fN_m^2L_a,\\
\textstyle\sum_\tau\big(1+2\mathfrak g_j\log(2n_{j\tau}+2)\big)&\le(1+2c_6)fN_m^2L_a,\\
2\langle\log\beta^{*}_j\rangle&\le2C_2(C_T+C_8)fm^3N_m^2L_{\rm sc}+2C_eC_8fN_m^2L_a,\\
\log\mathrm{cl}_j+\log\mathrm{cl}_j'&\le2C_4fN_m^2L_a+2C_4(C_T+C_8)fm^3N_m^2L_{\rm sc}.
\end{align}
The sum of the coefficients of $fN_m^2L_a$ is $C_{\rm th}+c_5+2c_6+1+2C_4+2C_eC_8\le C_h$, and that of
$fm^3N_m^2L_{\rm sc}$ is $2(C_2+C_4)(C_T+C_8)\le C_h$. \qed
\noindent(Lean: \texttt{height\_bound\_at\_set}, applied through \texttt{HtNums.le\_hu}. A parallel
statement for the first inequality, \texttt{stepDiiiRecord}, is in the archive but is not used by the
final theorem.)
\emph{Proof of Theorem \ref{sa:thm}(a).} Average \eqref{sa:place} over $v$ and apply the lemma and the
last inequality of (S3):
\begin{equation}\label{D:274}
\mathrm{ht}(\Phi)\le h_\Pi+\sum_j\langle\Sigma_j\rangle-\sum_jl_{6,j}-\langle\log\varkappa\rangle
\le h_A+\sum_jh_{B,j}-\sum_jh_{X,j}-\langle\log\varkappa\rangle=\mathcal H-\langle\log\varkappa\rangle .
\end{equation}
\emph{This is the first place where $\log\Omega_E$ enters:} through (S4), each $h_{B,j}$ contains
$-\sum_\tau n_{j\tau}\log\Omega_E$. The hook products enter through (S3), as the subtracted terms
$h_{X,j}$. \qed
\medskip
\noindent\textbf{Step 3: the slope.} Put $\mu_0'=\mu_0-\langle\log\varkappa\rangle$ and
$\mu_C=\mu_{\rm CC}-\langle\log\varkappa\rangle$. By (S5),
\begin{equation}\label{sa:mu0a}
\mu_0'\le\sum_jl_{3,j}+2\mathfrak F+E_{\rm loc},
\end{equation}
and then by (S6) and (S8),
\begin{equation}\label{sa:mu0}
\mu_0'\le\sum_{j\in\mathcal J}\sum_{\tau\in\mathcal P}p_j\,w_{j\tau}\log\Omega_E+2\mathfrak F+E_b,\qquad
E_b=E_3+E_{\rm loc}\le c_e\,m\,x^{\varepsilon}(B_0+N_c).
\end{equation}
\emph{This is the second place where $\log\Omega_E$ enters.} For the passage, $3\,\mathrm{de}\,Q_0\le1$
and $Q_0\ge1$ give $\mathrm{de}\le\frac13$. Apply (S7) with $H_*=H_{\max}-\langle\log\varkappa\rangle$ and
subtract the number $\langle\log\varkappa\rangle$ from both sides:
\begin{equation}\label{D:277}
\mu_C\le\mu_0'+3\,\mathrm{de}\,\big(\mu_0'+H_{\max}+28\,\mathrm{la}\big)+28\,\mathrm{la} .
\end{equation}
By \eqref{sa:mu0a} and (S7), $\mu_0'+H_{\max}+28\,\mathrm{la}\le Q_0$; as $\mathrm{de}\ge0$, the middle
term is at most $3\,\mathrm{de}\,Q_0\le1$. Also $28\,\mathrm{la}\le28\lambda_0\le C_0m\lambda_0$. So
\begin{equation}\label{sa:pass}
\mu_C\le\mu_0'+L_{\rm pass},\qquad L_{\rm pass}\le1+C_0\,m\,\lambda_0 .
\end{equation}
\noindent\textbf{Step 4: the cancellation.}
\textbf{Lemma (cancellation).} \emph{Assume \textup{(W1)}, \textup{(W2)}, \textup{(G)}, and let
$\mu_C,\mu_0',\mathfrak F,E_b,L_{\rm pass}$ be real numbers satisfying \eqref{sa:mu0} and
\eqref{sa:pass}. Then}
\begin{equation}\label{D:279}
\mu_C+\mathcal H-2\mathfrak F\le\sum_{t\in T}\Big(m\big(h(a_t)-a_t\log\Omega_E\big)-a_t\log\mathcal T\Big)
+2C_0\,\mathcal U_1+(47C_0+7+c_e)\,\mathcal U_2 .
\end{equation}
\emph{Proof.} Add \eqref{sa:pass}, \eqref{sa:mu0} and the definition of $\mathcal H$:
\begin{align}\label{D:280}
\mu_C+\mathcal H-2\mathfrak F\le{}&L_{\rm pass}+E_b+h_A+E_K+E_X\\
&+\sum_{j,\tau}\Big(p_jw_{j\tau}\log\Omega_E+\sum_ih(\nu_{j\tau i})-n_{j\tau}\log\Omega_E-\log H_{j\tau}\Big),
\end{align}
where $E_K=m\,C_hfN_m^2(L_a+m^3L_{\rm sc})$ and $E_X=m\,C_hf\,\varrho^2L$. By (W1) and (W2) the summand is
at most
\begin{equation}\label{D:281}
[\tau\in T]\big(h(a_\tau)-a_\tau\log\Omega_E\big)+\mathfrak e_{j\tau}
+(p_j-k)\,w_{j\tau}\log\Omega_E-\mathfrak d_{j\tau}\log\Omega_E .
\end{equation}
\emph{Here the two occurrences of the period cancel:} $+p_jw_{j\tau}\log\Omega_E$ from the slope against
$-k\,w_{j\tau}\log\Omega_E$ from the height. What is left of them is $(p_j-k)w_{j\tau}\log\Omega_E$. The
sum over $j\in\mathcal J$ and $\tau\in\mathcal P$ of the first bracket is
$m\sum_{t\in T}(h(a_t)-a_t\log\Omega_E)$, and $h_A$ contributes $-\sum_ta_t\log\mathcal T$. So the left
side is at most the main term plus
\begin{equation}\label{D:282}
\mathcal E_1+\dots+\mathcal E_8,
\end{equation}
where
\begin{gather}\label{D:283}
\mathcal E_1=L_{\rm pass},\qquad\mathcal E_2=E_b,\qquad\mathcal E_3=E_K,\qquad\mathcal E_4=E_X,\\
\mathcal E_5=C_h\big(|T|b'N_m+f(m\eta+S_{\rm c})N_m+fN_m^2\big)L_a,\qquad
\mathcal E_6=\textstyle\sum_{j,\tau}\mathfrak e_{j\tau},\\
\mathcal E_7=\textstyle\sum_{j,\tau}|p_j-k|\,w_{j\tau}\,|\log\Omega_E|,\qquad
\mathcal E_8=\textstyle\sum_{j,\tau}|\mathfrak d_{j\tau}|\,|\log\Omega_E| .
\end{gather}
Put $\mathcal V=f\,m\,b\,L_{\rm sc}$. From (G): $L_{\rm sc}\ge1$, $b\ge1$, $L_a\le3L_{\rm sc}$;
$S_{\rm c}\le kS_{\rm c}\le w''\le N_mw''\le b$ and $S_{\rm c}N_m\le b$; $m(t_0+1)\eta\le w''\le b$;
$b\le\mathcal V$; and
\begin{equation}\label{D:284}
\mathcal U_2\ge m\,x^{\varepsilon}B_0=m\,L_{\rm sc}\,\mathcal V\ \ge\ m\mathcal V\ \ge\ \mathcal V .
\end{equation}
There are $m$ values of $j$ and at most $f$ values of $\tau$. Then:
\begin{align}\label{D:285}
\mathcal E_1&\le1+C_0b\le(1+C_0)\mathcal V;\\
\mathcal E_3&\le C_0\,mf\,(b\cdot3L_{\rm sc}+b)\le4C_0\mathcal V;\\
\mathcal E_4&\le C_0\,mfN_m^2L_a\le3C_0\mathcal V&&(\text{by }C_hL\le C_0L_a,\ \varrho\le N_m);\\
\mathcal E_5&\le C_0|T|aL_a+C_0f\big(3b+3bL_{\rm sc}+3bL_{\rm sc}\big)\le C_0\,\mathcal U_1+9C_0\mathcal V
&&(\text{by }b'N_m\le a,\ m\eta N_mL_{\rm sc}\le b);\\
\mathcal E_6&\le mf\,C_0\,(2b+b+b+b)\,3L_{\rm sc}=15C_0\mathcal V;\\
\mathcal E_7&\le mf\cdot m\cdot2b\cdot3L_{\rm sc}=6m\mathcal V;\\
\mathcal E_8&\le15C_0\mathcal V+m|T|\,C_0\,k\,b'L_a\le15C_0\mathcal V+C_0\,\mathcal U_1
&&(\text{by }kN_m\le b,\ kS_{\rm c}\le b,\ mkb'\le a).
\end{align}
Finally $\mathcal E_2\le c_e\,\mathcal U_2$. The sum is at most
$2C_0\,\mathcal U_1+(47C_0+1)\mathcal V+6m\mathcal V+c_e\,\mathcal U_2
\le2C_0\,\mathcal U_1+(47C_0+7+c_e)\,\mathcal U_2$. \qed
\noindent(Lean: \texttt{divisor\_inequality\_explicit}, used through \texttt{divIneqRecord} and
\texttt{RecNums.divIneq}; it is \texttt{divisor\_inequality\_assembly}, the exact rearrangement, followed
by \texttt{error\_absorption}, the estimates of $\mathcal E_1,\dots,\mathcal E_8$. The source's constants
are $50C_0+10$ and $60c_e$.)
\emph{Proof of Theorem \ref{sa:thm}(b).} Steps 3 and 4. For the last display of the theorem:
$h(a_t)=a_t\log a_t-a_t$; $2C_0\le C$; $47C_0+7+c_e\le55c_e\le C$ because $1\le C_0\le c_e$; and
$\mathcal U_2=m\,x^{\varepsilon}(B_0+N_c)\le m\,x^{2\varepsilon}(B_0+N_c)$ because $x>1$. \qed
\medskip
\noindent\textbf{Where each term comes from.}
\begin{center}\small
\begin{tabular}{p{.27\textwidth}p{.66\textwidth}}
\toprule
Term of the inequality & Source in the proof\\
\midrule
$m\,h(a_t)$ & (W1): at a distinguished place the hook product cancels all rows of the kernel but the
first, once for each of the $m$ lifts\\
$-m\,a_t\log\Omega_E$ & (S4) and (W2): the part $[\tau\in T]\,a_\tau$ of the degree $n_{j\tau}$, times the
mean period, for each lift\\
$-a_t\log\mathcal T$ & (S2): the level factor of the last map, through
$\ell_\tau=\lambda_{1,\tau}-d_{0,\tau}$ and $\lambda_{1,\tau}=a_\tau-\frac{N_m-k}2$\\
cancelled: $k\,w_{j\tau}\log\Omega_E$ & $-k\,w_{j\tau}\log\Omega_E$ from (S4), (W2) in the height;
$+p_jw_{j\tau}\log\Omega_E$ from (S6) in the slope; remainder $\mathcal E_7$\\
$C\,|T|\,a\,L_a$ & $\mathcal E_5$ (the term $|T|\,b'N_m$ of the end pairing) and $\mathcal E_8$ (the term
$k\,b'$ of the degree error at distinguished places, times $|\log\Omega_E|$)\\
$C\,m\,B_0\,x^{2\varepsilon}$ & $\mathcal E_1$ (level passage), $\mathcal E_3$ (constants of the kernels,
class numbers, reference mean square), $\mathcal E_4$ (loss in the eigenvalue bound), the rest of
$\mathcal E_5$, $\mathcal E_6$ (rows against hooks), $\mathcal E_7$ (the periods cancel only up to
$|p_j-k|\le m$), the rest of $\mathcal E_8$; and the part of $\mathcal E_2$ with $B_0$\\
$C\,m\,N_c\,x^{2\varepsilon}$ & $\mathcal E_2$ only: the local errors $E_3+E_{\rm loc}$, by (S8)\\
\bottomrule
\end{tabular}
\end{center}
Among the terms of the second kind, $\mathcal E_7\le6m\mathcal V$ is the only one whose bound carries the
factor $m$; so it is the only one that needs the full factor $m$ in
$\mathcal U_2\ge mL_{\rm sc}\mathcal V$. It is the cost of $p_j\ne k$. Its bound is not the largest in
general: the bounds for $\mathcal E_6$ and $\mathcal E_8$ are $15C_0\mathcal V$, and $6m>15C_0$ only when
$m>2.5\,C_0$.
\subsection*{4.\quad The mean of the periods of the integral lines}
This subsection proves a formula for a mean of periods (the Proposition below). It does not prove (S4);
what is missing is listed at the end. \emph{In this subsection $\rho$ denotes an embedding of a field $M$
into $\C$, as in the paragraph ``The reference mean square'' of \S III.4, and $\tau$, $\tau'$ denote
weight places.}
Let $k_d=\Q(\sqrt{-d})$, embedded in $\C$. Its discriminant is $-d$, because $d$ is squarefree and
$d\equiv3\bmod4$ (the $d$ of the paper is a prime with $d\equiv7\bmod8$); Lemma A uses this. Let
$E\supset k_d$ be the field of the construction, of degree $[E:k_d]=f$. The weight places are the $f$
embeddings $\tau:E\to\C$ that extend the given embedding of $k_d$. So here $\mathcal P$ has exactly $f$
elements; subsection 3 used only $|\mathcal P|\le f$. Let $\mathfrak D$ be the different of $E$ over
$k_d$, and let the bar be complex conjugation on $E$.
\emph{A fact about the field $E$.} There is an integral ideal $\mathfrak b$ of $E$ with
$\mathfrak D=\mathfrak b\,\bar{\mathfrak b}$. This holds for the field of the paper,
$E=\Q(\zeta_N+\zeta_N^{-1},\sqrt{-q},\sqrt{-d})$, where $N=4n$, $n$ is a power of $2$, and $q$ is a prime
with $q\equiv3\bmod4$ that divides $d+1$. The proof has two steps.
\emph{First step: every prime of $E$ that divides $\mathfrak D$ lies over $2$ or over $q$.} (This is
(P2) below.) Put $F=\Q(\zeta_N+\zeta_N^{-1},\sqrt{-q})$. Then $E=k_dF$. Since $q\equiv3\bmod4$, the number
$\sqrt{-q}$ lies in $\Q(\zeta_q)$ (the quadratic Gauss sum). So $F\subseteq\Q(\zeta_{Nq})$, and $F$ is
unramified over $\Q$ at every prime number that does not divide $2q$. Let $\mathfrak Q$ be a prime of $E$
that does not lie over $2$ or $q$. An extension that is unramified at a prime stays unramified when the
ground field is enlarged; so $E=k_dF$ is unramified over $k_d$ at $\mathfrak Q$. A prime that is
unramified does not divide the different. (For $n=1$ the field $F$ is $\Q(\sqrt{-q})$, and only primes
over $q$ can divide $\mathfrak D$.) The Lean has this step as \texttt{diffSupport}.
\emph{Second step.} $2$ and $q$ split in $k_d$, because $d\equiv7\bmod8$ and $-d\equiv1\bmod q$. Complex
conjugation exchanges the two primes of $k_d$ over $2$, and the two over $q$. So a prime $\mathfrak Q$ of
$E$ that divides $\mathfrak D$ and its conjugate $\bar{\mathfrak Q}$ lie over different primes of $k_d$,
and $\bar{\mathfrak Q}\ne\mathfrak Q$. Conjugation maps $E$ to $E$ and $k_d$ to $k_d$; so
$\bar{\mathfrak D}=\mathfrak D$, and $\mathfrak Q$, $\bar{\mathfrak Q}$ occur in $\mathfrak D$ with the
same exponent. Take for $\mathfrak b$ the product of one prime power from each pair. (Lean:
\texttt{principal} in \texttt{KcDiff.lean}, from \texttt{diffSupport} and \texttt{kc\_below\_ne}; it is
used through \texttt{Arith.bb\_ex} to fill the field $\mathfrak b$\texttt{\_spec} of the record
\texttt{Host}.)
This $\mathfrak b$ is coprime to $\bar{\mathfrak b}$, as is the ideal of the source. There are other
integral choices when an exponent $e$ is larger than $1$: one may take $\mathfrak Q^{i}\bar{\mathfrak Q}^{e-i}$
with $0\le i\le e$ from a pair. The Proposition below holds for every $\mathfrak b$ with
$\mathfrak D=\mathfrak b\,\bar{\mathfrak b}$; its proof uses nothing else. The coprimality is not used in
this section.
The splitting of $2$ and $q$ in $k_d$ is sufficient for the existence of $\mathfrak b$. It is not
necessary. For a field $E$ with complex multiplication over an imaginary quadratic field, an integral
$\mathfrak b$ with $\mathfrak D=\mathfrak b\,\bar{\mathfrak b}$ exists if and only if every prime of
$\mathfrak D$ that is equal to its conjugate has an even exponent. (If $\bar{\mathfrak Q}=\mathfrak Q$,
the exponent of $\mathfrak Q$ in $\mathfrak b\,\bar{\mathfrak b}$ is twice its exponent in $\mathfrak b$.
Conversely, halve the exponents of these primes and treat the other primes in pairs as above.) So the
statement fails for some fields: for $E=\Q(\sqrt{-7},\sqrt{-3})$ over $\Q(\sqrt{-7})$ the different is the
prime over $3$, with exponent $1$, and it is its own conjugate.
Fix such a $\mathfrak b$ and put $\mathfrak a_0=\mathfrak b^{-1}$. Let $M\subset\C$ be a number field
that contains $\tau(E)$ for every $\tau$ and a field of definition of the elliptic curve of \S III.4,
with lattice $\Lambda$ normalised by $g_2^3-27g_3^2=1$. For an embedding $\rho$ of $M$, $A_\rho$ is the
area of the lattice of the conjugate curve, as in \S III.4.
Let $\mathcal M\subset M^{f}$ be the $\mathcal O_M$-module spanned by the vectors
$(\tau(\alpha))_\tau$, $\alpha\in\mathfrak a_0$, and let
\begin{equation}\label{D:286}
\mathfrak l_\tau=\{z\in M:\ z\,\mathbf e_\tau\in\mathcal M\},
\end{equation}
where $\mathbf e_\tau$ is the $\tau$th coordinate vector. This is the integral line at the place $\tau$
(Lean: \texttt{ellT}). For a nonzero $z\in\mathfrak l_\tau$ the local squared period at $(\tau,\rho)$ is
$A_\rho/(\pi|\rho(z)|^2)$, and the mean of its logarithm is defined, with a correction for the index, by
\begin{equation}\label{sa:meandef}
\overline{\log\Omega_\tau}=\frac1{[M:\Q]}\Big(\sum_{\rho}\log\frac{A_\rho}{\pi\,|\rho(z)|^2}
+2\log\big[\mathfrak l_\tau:\mathcal O_Mz\big]\Big).
\end{equation}
(Lean: \texttt{meanLogOm}, \texttt{logMet}.) If $\mathfrak l_\tau=\mathcal O_Mz_\tau$ is principal, this
is the plain mean over $\rho$ of $\log\big(A_\rho/(\pi|\rho(z_\tau)|^2)\big)$.
\textbf{Proposition (the mean period).} \emph{The number \eqref{sa:meandef} does not depend on $z$, on
$\tau$, or on $M$, and}
\begin{equation}\label{D:288}
\overline{\log\Omega_\tau}=\frac1{[M:\Q]}\sum_\rho\log\frac{A_\rho}{\pi}-\log\frac{\mathrm{rd}_E}{\sqrt d}.
\end{equation}
\emph{Under the inputs \textup{(I2)}, \textup{(I3)} of \S III.4, it equals
$\gamma+\log(2\pi/\mathrm{rd}_E)-c_d=\log\Omega_E$.}
The proof uses four statements about ideals. $\mathrm N$ is the absolute norm of ideals of $E$.
\textbf{Lemma A (the tower formula).} \emph{$|\mathrm{disc}\,E|=d^{\,f}\,\mathrm N(\mathfrak D)$.
Consequently $\frac1{[E:\Q]}\log\mathrm N(\mathfrak D)=\log\mathrm{rd}_E-\log\sqrt d$.}
\emph{Proof.} Cited: the different is multiplicative in towers,
$\mathfrak D_{E/\Q}=\mathfrak D\cdot\mathfrak D_{k_d/\Q}\mathcal O_E$, and the absolute norm of the
different of a number field is the absolute value of its discriminant (J.~Neukirch, \emph{Algebraic Number
Theory}, 1999, Ch.~III, (2.2)(i) and (2.9)). The norm of $\mathfrak D_{k_d/\Q}\mathcal O_E$ is
$\mathrm N(\mathfrak D_{k_d/\Q})^{[E:k_d]}=d^{f}$, since the discriminant of $k_d$ is $-d$. For the
second statement divide the logarithm by $[E:\Q]=2f$. \qed
\textbf{Lemma B (the integral line).} \emph{For a nonzero fractional ideal $\mathfrak c$ of $E$ let
$\mathcal M_{\mathfrak c}$ be the $\mathcal O_M$-module spanned by the vectors
$(\tau'(\alpha))_{\tau'}$, $\alpha\in\mathfrak c$. Then the line
$\{z\in M: z\,\mathbf e_\tau\in\mathcal M_{\mathfrak c}\}$ is the $\mathcal O_M$-module generated by
$\tau(\mathfrak c\,\mathfrak D)$. In particular
$\mathfrak l_\tau=\tau(\mathfrak a_0\mathfrak D)\mathcal O_M=\tau(\bar{\mathfrak b})\mathcal O_M$.}
\emph{Proof.} Let
$\mathfrak c^{*}=\{\alpha^{*}\in E:\mathrm{Tr}_{E/k_d}(\alpha^{*}\mathfrak c)\subseteq\mathcal O_{k_d}\}
=\mathfrak c^{-1}\mathfrak D^{-1}$ (the definition of the different), and let $\mathcal M^{*}$ be the
$\mathcal O_M$-module spanned by the vectors $(\tau'(\alpha^{*}))_{\tau'}$,
$\alpha^{*}\in\mathfrak c^{*}$. Use the bilinear form
$\langle\mathbf m,\mathbf m'\rangle=\sum_{\tau'}m_{\tau'}m'_{\tau'}$ on $M^f$. For $\alpha\in\mathfrak c$
and $\alpha^{*}\in\mathfrak c^{*}$ the pairing of their vectors is
$\sum_{\tau'}\tau'(\alpha\alpha^{*})=\mathrm{Tr}_{E/k_d}(\alpha\alpha^{*})\in\mathcal O_{k_d}\subseteq\mathcal O_M$.
(Every $\tau'$ restricts to the given embedding of $k_d$; so the map
$\alpha\mapsto(\tau'(\alpha))_{\tau'}$ is $k_d$-linear, and the sum over $\tau'$ is the trace to $k_d$.)
We claim that $\mathcal M_{\mathfrak c}$ is exactly the set of $\mathbf m$ with
$\langle\mathbf m,\mathbf m'\rangle\in\mathcal O_M$ for all $\mathbf m'\in\mathcal M^{*}$. It is enough
to check this after localising at each prime of $\mathcal O_M$. Above a prime $\mathfrak p$ of $k_d$ the
module $\mathfrak c_{\mathfrak p}$ is free over the local ring of $k_d$, with a basis
$\alpha_1,\dots,\alpha_f$, and $\mathfrak c^{*}_{\mathfrak p}$ has the dual basis
$\alpha_1^{*},\dots,\alpha_f^{*}$ for the trace form. The corresponding vectors $\mathbf a_i$,
$\mathbf a_i^{*}$ of $M^f$ satisfy $\langle\mathbf a_i,\mathbf a_{i'}^{*}\rangle=\delta_{ii'}$, so they
are two bases of $M^f$, dual to each other, and they generate the localisations of
$\mathcal M_{\mathfrak c}$ and $\mathcal M^{*}$. This proves the claim. Now $z\,\mathbf e_\tau$ pairs with
the vector of $\alpha^{*}$ to $z\,\tau(\alpha^{*})$. So $z\,\mathbf e_\tau\in\mathcal M_{\mathfrak c}$ if
and only if $z\,\tau(\alpha^{*})\in\mathcal O_M$ for all $\alpha^{*}\in\mathfrak c^{*}$, that is, if and
only if $z$ lies in the inverse of the ideal $\tau(\mathfrak c^{*})\mathcal O_M$, which is
$\tau(\mathfrak c\,\mathfrak D)\mathcal O_M$. \qed
\textbf{Lemma C (the index).} \emph{For nonzero $z\in\mathfrak l_\tau$,\quad
$[\mathfrak l_\tau:\mathcal O_Mz]=|\mathrm N_{M/\Q}(z)|\cdot\mathrm N(\bar{\mathfrak b})^{-[M:\Q]/[E:\Q]}$.}
\emph{Proof.} For a nonzero ideal $\mathfrak A$ of $\mathcal O_M$ and $z\in\mathfrak A$ one has
$[\mathfrak A:z\mathcal O_M]=|\mathrm N_{M/\Q}z|/\mathrm N_M(\mathfrak A)$, by multiplicativity of the
norm. By Lemma B, $\mathfrak A=\mathfrak l_\tau$ is the extension to $M$ of the ideal
$\tau(\bar{\mathfrak b})$ of $\tau(E)$, and the norm of an extended ideal is the norm raised to the power
$[M:\tau(E)]$. \qed
\textbf{Lemma D (the product formula).} \emph{For nonzero $z\in M$,\quad
$\sum_\rho\log|\rho(z)|^2=2\log|\mathrm N_{M/\Q}(z)|$.}
\emph{Proof.} $\mathrm N_{M/\Q}(z)=\prod_\rho\rho(z)$, the product over all embeddings. \qed
\noindent\emph{Proof of the Proposition.} By Lemmas C and D the terms with $z$ cancel:
\begin{equation}\label{D:289}
2\log[\mathfrak l_\tau:\mathcal O_Mz]-\sum_\rho\log|\rho(z)|^2
=-\frac{2[M:\Q]}{[E:\Q]}\log\mathrm N(\bar{\mathfrak b}) .
\end{equation}
In particular a unit, or any other change of $z$, does not change \eqref{sa:meandef}. Since
$\mathrm N(\mathfrak b)=\mathrm N(\bar{\mathfrak b})$ and $\mathfrak D=\mathfrak b\bar{\mathfrak b}$,
$2\log\mathrm N(\bar{\mathfrak b})=\log\mathrm N(\mathfrak D)$. By Lemma A,
\begin{equation}\label{D:290}
\overline{\log\Omega_\tau}=\frac1{[M:\Q]}\sum_\rho\log\frac{A_\rho}\pi-\frac1{[E:\Q]}\log\mathrm N(\mathfrak D)
=\frac1{[M:\Q]}\sum_\rho\log\frac{A_\rho}\pi-\log\frac{\mathrm{rd}_E}{\sqrt d}.
\end{equation}
The first term does not depend on $M$. Indeed, let $M_0\subseteq M$ be a field that contains the
coefficients $g_2,g_3$ of the curve. The number $A_\rho$ depends only on the restriction of $\rho$ to $M_0$,
and every embedding of $M_0$ extends to exactly $[M:M_0]$ embeddings of $M$. So the mean over the
embeddings of $M$ is the mean over the embeddings of $M_0$, and two fields $M$ are compared through their
compositum. This proves the first assertion.
By (I2) and (I3) of \S III.4 the mean of $\log A_\rho$ is $\log\pi+\gamma+\log(2\pi/\sqrt d)-c_d$. Subtracting, $\overline{\log\Omega_\tau}=\gamma+\log(2\pi/\mathrm{rd}_E)-c_d$, which is
$\log\Omega_E$ by its definition in \S I.7. \qed
\noindent So the constant $\Omega_E$ differs from the elliptic $\Omega$ by the factor
$\mathrm N(\mathfrak D)^{1/[E:\Q]}=\mathrm{rd}_E/\sqrt d$. Two things give this factor. The first is
Lemma B: the integral line at a weight place is generated by $\tau(\mathfrak a_0\mathfrak D)$, not by
$\tau(\mathfrak a_0)$. The second is the choice $\mathfrak a_0=\mathfrak b^{-1}$, for which
$\mathrm N(\mathfrak a_0\mathfrak D)^2=\mathrm N(\mathfrak D)$. For an arbitrary nonzero fractional ideal
$\mathfrak a_0$ the same proof gives
\begin{equation}\label{D:291}
\overline{\log\Omega_\tau}=\frac1{[M:\Q]}\sum_\rho\log\frac{A_\rho}\pi
-\frac2{[E:\Q]}\log\mathrm N(\mathfrak a_0\mathfrak D) ;
\end{equation}
with $\mathfrak a_0=\mathcal O_E$ the factor would be $(\mathrm{rd}_E/\sqrt d)^2$.
(Lean: \texttt{meanPeriodAt}, from \texttt{mean\_log\_period}, \texttt{br\_meanLogOm\_eq} and
\texttt{two\_log\_brN}; Lemma B is \texttt{lineR\_eq}, Lemma C is \texttt{index\_lineR}, Lemma D is
\texttt{br\_sum\_log\_norm\_sq}, Lemma A is \texttt{natAbs\_discr\_eq}. The source proves Lemma A from
the same two facts.)
\emph{What the Proposition proves, and what it does not.} It proves that the number
\eqref{sa:meandef}, which is defined by the ideal $\mathfrak a_0$ and the areas $A_\rho$, equals
$\log\Omega_E$, under (I2), (I3) and the fact about $E$. Input (S4) is a different statement. It concerns
the numbers $\Omega_\tau(v)$ of (S1), averaged over the archimedean places $v$ of $K$. To deduce (S4)
from the Proposition one needs three further statements. (P1) and (P3) are assumed, from the source,
and not proved here. (P2) was proved above:
\begin{enumerate}[label=\textup{(P\arabic*)},leftmargin=2.8em,itemsep=2pt,topsep=3pt]
\item the period that occurs in the block estimate of \S III.4 for the kernel conjugated by $\rho$, at
the weight place $\tau$, is $A_\rho/(\pi|\rho(z_\tau)|^2)$ for a generator $z_\tau$ of $\mathfrak l_\tau$
(Lean: \texttt{logOmAt}, \texttt{ExtraTie.om\_eq}). Generators need not exist over a given $M$. An example: $M=E$,
$q=3$, $d=23$, $N=4$, $8$ or $16$ (the class number of $E$ is $3$, $6$, $60$). There the ideal
$\tau(\bar{\mathfrak b})\mathcal O_E$ of Lemma B is not principal for any of the choices of $\mathfrak b$
coprime to $\bar{\mathfrak b}$. This was computed with Sage 10.9, with class groups computed in its mode
\texttt{proof=False}; so the example is correct under GRH and was not checked without it. Nothing in
this section depends on the example. It depends on the choice of $\mathfrak b$: for $N=8$ two of the
eight integral $\mathfrak b$, which are not coprime to their conjugates, give a principal line. The
existence of generators over a suitable larger field is the hypothesis \texttt{IsDgen} of \texttt{mean\_logMet\_eq};
\item every prime of $E$ that divides $\mathfrak D$ lies over $2$ or over $q$ (Lean:
\texttt{diffSupport}). This is the first step of the fact about $E$ above; it is proved there for the
field $E$ of the paper. With it the ideal $\mathfrak b$ exists;
\item the mean over the embeddings $\rho$ of $M$ can be replaced by the mean over the places $v$ of $K$:
the source takes $M\supseteq K$ and for $\log\Omega_\tau(v)$ an average, with weights of sum $1$, of the
numbers $\log\big(A_\rho/(\pi|\rho(z_\tau)|^2)\big)$, the weights having the same total for every $\rho$
(Lean: \texttt{kerSide\_of\_meansS}, \texttt{exists\_weights}).
\end{enumerate}
\subsection*{5.\quad The remaining inputs: statements and status}
Each statement below is assumed in this section. We give its form in the source and say what a proof
needs. The Lean names are collected in subsection 6.
\textbf{(S1), the chain bound.} The analytic content is proved in \S III.4: the bound for one block with
the period (``Several blocks, and the period''), the bound for one map (``Sums over classes''), and the
bound for the Gaussian constant by a mean square. Compare with the formula for $\log b_j(v)$ and with the
constant $S$ of (\ref{III:Sform}) there. $|\mathcal P|\,\mathfrak g_j$ is the number $g=2nNN'$ of variables,
with $N$, $N'$ the ranks of the pair as in \S III.4. $\beta^{*}_j(v)$ is the prefactor
$\beta\,c^{2[E:\Q]NN'}$, and $\mathrm{cl}_j,\mathrm{cl}_j'$ count classes. $\Theta_1(v)$ is a mean square
per variable. In \S III.4 the reference mean square at an embedding $\rho$ is
$\Theta_{0,\rho}=H_\rho^{fNN'}$, with $H_\rho$ the mean square of one elliptic theta function. It enters
$S^2$ once, with $\langle\log\Theta_{0,\rho}\rangle\le fNN'L_{\rm sc}$. In (S1) the same term is written
$|\mathcal P|\,\mathfrak g_j\log\Theta_1(v)$, with $\langle\log\Theta_1\rangle\le C_{\rm th}L_{\rm sc}$. So
$\Theta_1$ corresponds to $H_\rho$, not to $\Theta_{0,\rho}$. What is assumed: that the maps of the construction are
instances (item (vi) of the list in \S III.4), and the eight numerical bounds listed under (S1). Of
these, the bound for $\langle\log\Theta_1\rangle$ is the conclusion of the paragraph ``The reference mean
square'' of \S III.4 (conditional on (I1)--(I5)), divided by the number of variables; the bounds for
$\beta^{*}_j$ and for the numbers of classes are statements about the finite data of the construction
(coefficients, modulus, class numbers of Hermitian lattices of bounded level). A proof needs a bound for
class numbers of definite Hermitian lattices in terms of the mass and the level. The source's statements
were not read for this section, with one exception, the sign of $v_{\rm h}$. In the record of the source
$v_{\rm h}$ is a real number with no condition on its sign (Lean: the field \texttt{vv} of
\texttt{HtNums}, and the same in \texttt{KerSide}); the logarithm of the Lean is defined for every real
number, so the record needs none. Where the source builds the record, $v_{\rm h}=\mathrm{rd}_E/2$ (Lean:
\texttt{NumDatum.v}), and $v_{\rm h}\ge0$ is proved from $\mathrm{rd}_E\ge1$ inside the proof of the bound
with $c_5$ (\texttt{log\_eight\_leS}). The source's statement of the analytic bound for one map
(\texttt{LiftedMapEmbeddingLogBound}) has $v_{\rm h}>0$ among its hypotheses. So $v_{\rm h}\ge0$ is not a
hypothesis of the record, and it is a consequence of the construction.
\textbf{(S2), the pairing at the end.} The inequality $\|\Pi\|_v^2\le e^{h_\Pi}$, with $h_\Pi$ bounded
as in the first line of (S2) with $e_\Pi=0$, is the conclusion of the paragraph ``The pairing at the end
of the chain'' of \S III.4, with its own inputs; there the two terms are bounded by
$\log|\vartheta|\le\psi\,d_1\log\Gamma$ and $\log\kappa\le\frac{\Psi(\Psi-1)}2\log\Gamma$. The source
does not name $\log|\vartheta|$ and $\log\kappa$: its numbers $\mathfrak m_\tau$, $\mathfrak m_\tau'$ are
these two majorants with $\psi=N_m-1$, $\Psi=N_m$ and $2a$ in the place of $\Gamma$. The identification
of $d_{0,\tau}$, $d_{1,\tau}$, $\ell_\tau$, $\lambda_{1,\tau}$, $b_\tau$ with the $d_0$, $d_1$, $\ell$,
$\lambda_1$, $b_{\mathfrak t}$ of \S III.4 was confirmed in the Lean
(\texttt{lastSide\_of\_logT\_le}). The remaining conditions of (S2) express the exponent
$\ell_\tau=\lambda_{1,\tau}-d_{0,\tau}$ and the degrees $d_{0,\tau}$, $d_{1,\tau}$ through the weights of
the construction: at a distinguished place the first weight is $a_\tau$ up to the shift $(N_m-k)/2$. They
are statements about the weights only; this is the ``substitution of the actual weights'' of item (ii)
of the list in \S III.4. A proof needs the weights of the last two spaces of the chain as explicit
functions of the data. In the source $e_\Pi=0$ and $C_\Pi=0$.
\textbf{(S3), the eigenvalues.} This is the paragraph ``The eigenvalues of a lift'' of \S III.4, with its
hypotheses (E1)--(E7). The source's evaluation of the scalar is the following statement (Lean:
\texttt{scalar\_bound\_lowC}; among the declarations the final theorem depends on). Let
\begin{equation}\label{D:292}
\lambda=D_0\cdot\mathrm{vol}(\mathcal F)\cdot
\prod_\tau H(A_\tau^+)H(A_\tau^-)\cdot\frac{\|\phi\|^2}{D_{S^c}}\cdot\prod_\tau J_\tau\cdot|E_0|,
\end{equation}
where $D_0\ge1$ is a product of dimensions of representations; $\mathrm{vol}(\mathcal F)$ is the volume
of a fundamental set for the level subgroup of the definite group; $\|\phi\|^2$ is the squared
$L^2$-norm of the finite test function for a measure in which the rational lattice has covolume one;
$J_\tau$ is the integral, over the real unitary group at $\tau$, of the squared absolute value of a
matrix coefficient of a unit vector of the lowest type for the maximal compact subgroup; $E_0$ is an
Euler product over the prime ideals $\mathfrak P$ of $E$ outside a finite set, with parameters of absolute value
at most $(\mathrm N\mathfrak P)^{(r-1)/2-(1+t_0)/2}$, as in (E5); and $D_{S^c}$ is the normalising factor
outside that set. Assume the level-index identity (the index of the level subgroup times $\|\phi\|^2$
equals $1/D_S$), the lower bound $\big(w_E^{\,\varrho}\,\varrho!\big)^{-1}$ for the mass, with $w_E$ the
number of roots of unity of $E$, and the bound
$-\log J_\tau\le2+r^2\log\big(2\sqrt2\,r^2\varrho(d_\tau+2)\big)$. Then $\lambda>0$ and
\begin{equation}\label{D:293}
\log\lambda\ \ge\ \sum_\tau\big(\log H(A_\tau^+)+\log H(A_\tau^-)\big)-8f\,\varrho^2\,L,\qquad
L=\log\big(b\,\mathrm{rd}_E\,g_0g_1\,\varrho\big).
\end{equation}
This is the deduction written in \S III.4, with one difference. The mass bound in (\ref{III:massbd}) is
$\big((8f^2)^{\varrho}\varrho!\big)^{-1}$; here and in the Lean it is
$\big(w_E^{\,\varrho}\varrho!\big)^{-1}$. The second implies the first, because $w_E\le8f^2$. The reason:
write $\mathrm{eul}(u)$ for Euler's function of an integer $u\ge1$. The field $E$ contains
$\Q(\zeta_{w_E})$, which has degree $\mathrm{eul}(w_E)$ over $\Q$. So $\mathrm{eul}(w_E)$ divides
$[E:\Q]=2f$, and $\mathrm{eul}(w_E)\le2f$. Next, $u\le2\,\mathrm{eul}(u)^2$ for every $u\ge1$: the
quotient $\mathrm{eul}(u)^2/u$ is the product of the numbers $p^{e-2}(p-1)^2$ over the prime powers $p^e$
that divide $u$ exactly, and such a number is at least $\frac43$ for $p\ge3$ and at least $\frac12$ for
$p=2$. Hence $w_E\le2(2f)^2=8f^2$. The Lean has this inequality as a theorem, for the field $E$ of its
record \texttt{Host}: \texttt{host\_torsionOrder\_le}, which states
\texttt{Units.torsionOrder H.E} $\le8f^2$. The inner-product
formula itself is used in the following form (Lean: the hypothesis \texttt{InnerProductFormulaC} of
\texttt{term\_eval\_lowC}): for theta lifts $\theta(\phi_i,\mathfrak f_i)$, to the definite group, of
forms $\mathfrak f_i$ on the group $\mathsf G$ lifted from,
\begin{equation}\label{D:294}
\big\langle\theta(\phi_1,\mathfrak f_1),\theta(\phi_2,\mathfrak f_2)\big\rangle
=\mathrm{vol}(\mathcal F)\int_{\mathsf G(\mathbb A)}
\langle\omega(g)\phi_1,\phi_2\rangle\ \overline{\langle g\cdot\mathfrak f_1,\mathfrak f_2\rangle}\ dg ,
\end{equation}
the integral being written as a sum over finitely many cosets at the finite places and an integral over
the real points, absolutely convergent. This is the inner-product formula in the convergent range, as an
integral of matrix coefficients; it is not the form with a special value of an $L$-function, and no
Siegel--Weil formula appears in the statement. For the classical statements see S.~Rallis,
\emph{$L$-functions and the oscillator representation}, Lecture Notes in Math.~1245 (1987) [Ral87] and
\emph{Injectivity properties of liftings associated to Weil representations}, Compositio Math.~52 (1984);
J.-S.~Li, \emph{Non-vanishing theorems for the cohomology of certain arithmetic quotients}, J.~reine
angew.~Math.~428 (1992) (the formula as an integral of matrix coefficients, in the stable range);
W.~T.~Gan, Y.~Qiu, S.~Takeda, \emph{The regularized Siegel--Weil formula (the second term identity) and
the Rallis inner product formula}, Invent.~Math.~198 (2014); S.~Yamana, \emph{$L$-functions and theta
correspondence for classical groups}, Invent.~Math.~196 (2014). All from memory; none was consulted. A
proof of (S3) needs: this formula for the actual test functions; the unramified computation of the local
integrals (the factors of $E_0$); the mass formula for definite unitary groups (for instance \cite{GHY01}; its formula is for maximal lattices, and local comparisons would be needed for the levels used here); the formal degree of the discrete series at the real places (Harish-Chandra); the transport to
the other embeddings (E7); and the description of the target by Hecke components (E6). The source has a
theorem that derives the inner-product formula (\texttt{innerProductFormula\_of\_hypotheses}) from four
hypotheses. Three are statements named \texttt{Published.CuspRapidDecay},
\texttt{WeilSiegelFormulaUnitary} and \texttt{SiegelEisensteinContinuation}. The fourth is the existence
of a choice of parameters (Lean: a \texttt{ParameterChoice'} exists for some \texttt{SizeData}$_2$). Each of
the three named statements has a closed theorem in the source. Their proofs
were not read. The dependency computation shows that the final theorem depends on \texttt{innerProductFormula\_of\_hypotheses}; the three named statements were not put to it.
\textbf{(S5), the slope at the lower level.} In the source this is a theorem
(\texttt{IndefSide.boundsMu}, from \texttt{slope\_bounds}). Its conclusion is the display of (S5), with
the sum of the $l_{3,j}$. Its hypotheses are the following. The first is the covolume bound: the
normalised logarithmic covolume of the lattice of the $j$th lift, divided by $\dim Y$, is at most
$l_{3,j}$ (Lean: the field \texttt{l3} of \texttt{IndefSide}; in the source the covolume is minus the
normalised slope). The others are all at finite places. For a finite place $y$ of $K$ write
$\mathrm{wt}(y)=\log\mathrm N(y)/[K:\Q]$, $\mathrm{ram}(y)$ for its ramification index and
$\mathrm{rc}(y)$ for its residue characteristic. There are a finite set $\mathcal S_{\rm fin}$ of places
containing the set $\mathcal S_{\rm tw}$ of places where a twist is made, and real numbers
$\mathrm{gd}(y)$, $\mathrm{ix}(y,j)$, $\mathrm{err}(y,j)\ge0$, $\mathrm{jx}(y,j)$, $\mathrm{et}(y,j)$,
such that: the valuation at $y$ of a Gram determinant of the quotient lattice is $0$ outside
$\mathcal S_{\rm fin}$ and at most $\dim Y\cdot\mathrm{gd}(y)$ on $\mathcal S_{\rm fin}$; on
$\mathcal S_{\rm tw}$ the sum over $j$ of the two local indices of the lattice of the $j$th lift (at $y$
and at $\bar y$) is at most
$\big(\sum_j(2\,\mathrm{ram}(y)\,\mathrm{ix}(y,j)+\mathrm{ram}(y)\,\mathrm{err}(y,j))
+2\,\mathrm{ram}(y)/\mathrm{rc}(y)^2\big)\dim Y$; a further local index is at most
$\mathrm{ram}(y)\,\mathrm{jx}(y,j)\dim Y+\mathrm{et}(y,j)$; outside $\mathcal S_{\rm tw}$, for each $j$, the
sum of these three local indices (the two at $y$ and $\bar y$ and the further one) vanishes, and so does
$\mathrm{ix}(y,j)$ (Lean: \texttt{IndefData.Untwisted}; it asks for the vanishing of the sum, not of each
index). Then (S5) holds with $\mathfrak F$ as follows, and with every $E_{\rm loc}$ that is at least
the sum written below:
\begin{align}\label{D:295}
\mathfrak F&=\sum_j\sum_{y\in\mathcal S_{\rm tw}}\mathrm{wt}(y)\,\mathrm{ram}(y)\,\mathrm{ix}(y,j),\\
E_{\rm loc}&=\sum_{y\in\mathcal S_{\rm fin}}\mathrm{wt}(y)\,\mathrm{gd}(y)
+\sum_j\sum_{y\in\mathcal S_{\rm tw}}\mathrm{wt}(y)\Big(\mathrm{ram}(y)\big(\mathrm{err}(y,j)+\mathrm{jx}(y,j)\big)
+\frac{\mathrm{et}(y,j)}{\dim Y}\Big)\\
&\quad+\sum_{y\in\mathcal S_{\rm fin}}\frac{2\,\mathrm{wt}(y)\,\mathrm{ram}(y)}{\mathrm{rc}(y)^2}.
\end{align}
The display gives $E_{\rm loc}$ in the case of equality. In the source the four sums of $E_{\rm loc}$
are not computed: each is bounded by a free real number (Lean: \texttt{LG}, \texttt{E1}, \texttt{E2},
\texttt{E3}), and the conclusion has the sum of these majorants. The Lean \texttt{E3} is the last sum of
$E_{\rm loc}$. It is not the $E_3$ of (S6), which the Lean calls \texttt{El3}.
It is a statement of the geometry of numbers over $K$: the covolume of a lattice glued from local
lattices, compared with the covolumes of the lattices of the lifts through the scalar relations of (S3)
(which is where $\langle\log\varkappa\rangle$ enters) and through local indices. No period occurs in it.
The term $\mathfrak F$ is the term $F_0/2$ of Part II, \S6.7. The local index bounds are separate inputs;
those at the places of $\mathcal S_{\rm tw}$ are of the kind treated in \S III.5. The proof in the source
was not read.
\textbf{(S6), the covolumes.} In the source
$l_{3,j}=\sum_\tau p_jw_{j\tau}\log\Omega_E+C_3\,B_0\log\log x$ by definition, with a constant $C_3$
(Lean: \texttt{ClosedScale3.l3m}, \texttt{l3u}) and with $p_j=k+2j-1-m$. So (S6) holds with
$E_3=m\,C_3\,B_0\log\log x$ (\texttt{levelThree\_bound\_closed}). The content is therefore in the first
hypothesis of the theorem quoted under (S5), the covolume bound (\texttt{IndefSide.l3}): the normalised
logarithmic covolume of the lattice of the $j$th lift, divided by $\dim Y$, is at most
$\sum_\tau p_j\,w_{j\tau}\log\Omega_E$ up to $C_3\,B_0\log\log x$. This is the count of forms of Part II,
\S6.6 in its arithmetic form: the lattice is a space of algebraic automorphic forms of weight governed
by $w_{j\tau}$, its metric is the Petersson norm, and the period appears because integral forms are
normalised by the algebraic differential, with the same integral lines $\mathfrak l_\tau$ as in
subsection 4. \emph{That the constant here is the same $\Omega_E$ as in \textup{(S4)} is exactly what
makes the cancellation in Step 4 possible; it is assumed, not proved, in this section.} A proof needs the
covolume of the lattice of integral forms on a definite unitary group for the Petersson metric (mass
formula and dimension formula, as in \eqref{II:t6.4} of Part II), with the period normalisation of subsection 4.
The source derives it from a statement named \texttt{CovolumeBoundThirdPlaceSeries}
(\texttt{linked\_bundles\_l3\_of\_open\_alt}), whose hypotheses include statements on discrete series and
on Harish-Chandra modules; it was not read beyond its header. One of its hypotheses is a covolume bound
named \texttt{CovolumeBoundOfX}. The source proves that one (\texttt{topCovolSlim2\_use\_alt\_alt}) from
statements of algebraic and Arakelov geometry, which it takes as hypotheses: among them resolution of
singularities and principalisation in characteristic zero, a Poincar\'e--Lelong formula, an arithmetic
Hilbert--Samuel statement, a bigness statement named after Moriwaki, toroidal compactifications, and a
list named \texttt{PublishedHodgeBundleTheorems}. Only the headers of these two theorems were read. The
statements passed to this bound are listed, with their published sources, in the census of \S\ref{cs:sec}:
they include every row of its groups on abelian varieties and on algebraic and arithmetic geometry (groups~J
and~K).
\textbf{(S7), the passage between levels.} Two statements: the bound
$\mu_{\max}(\mathcal R_0)\le H_{\max}-\langle\log\varkappa\rangle$ with $H_{\max}=x^{C_H}b$ for a
constant $C_H$ (Lean: \texttt{IndefExtraR.fun0}), and the comparison of $\mu(\mathcal R^\vee)$ with
$\mu(\mathcal R_0^\vee)$ displayed in (S7) (\texttt{IndefExtraR.passage}). In the source $\mathrm{la}$ is
the logarithm of the order of a finite group, and $\mathrm{de}=8fr/\min(g_0,g_1)$ with $r=k+m-1$. The
number $Q_0$ is $\max(1,\,\cdot\,)$ of a majorant of the left side of its defining inequality: any upper
bound for $\sum_jl_{3,j}+2\mathfrak F+E_{\rm loc}$, plus $H_{\max}+28\,\mathrm{la}$. The condition
$3\,\mathrm{de}\,Q_0\le1$ then says that the level primes $g_0,g_1$ are at least $24\,f\,r\,Q_0$. (The
source proves an inequality of this form, $24\,f\,r\,Q\le\min(g_0,g_1)$ for its number \texttt{QOfR}, from
$g_0,g_1\ge(kb)^8$ and further size conditions: \texttt{hg\_of\_sizeG}, \texttt{SizeG}. Only the statement was read.) So the
passage costs a bounded amount because the level primes are large. The comparison is a statement about
two lattices of forms of different level and the trace map between them; the first bound is a bound for
the largest slope of a lattice of forms. Proofs were not read; the source reaches them through
statements on Fourier coefficients (\texttt{fittedFunction\_at\_zero\_close\_alt}).
\textbf{(S8), the size of the local errors,} and \textbf{(G)}. These are inequalities between the
parameters. (S8) contains the only occurrence of $N_c$. With $E_3=m\,C_3\,B_0\log\log x$ as above, and
with the bounds for $\mathrm{wt}(y)\,\mathrm{gd}(y)$, $\mathrm{err}$, $\mathrm{jx}$, $\mathrm{et}$
supplied by the local statements, it holds for large $x$. The part of $E_{\rm loc}$ with
$\mathrm{et}(y,j)$ is where the bound for Galois cohomology of Part II, \S6.8 is used (Lean:
\texttt{divinN\_of\_hypV}); this was read in the notes of another reader and not checked here. (G) is a
list of size conditions on the parameters of the chain, valid for $x\ge x_0$ in the source; among them
$|\log\Omega_E|\le L_a$ follows from $|c_d|\le4\log x$ (Theorem~\ref{thm:pair}(d)) for large $x$.
\textbf{(W1), (W2).} See remark (1) after the list of inputs: they follow from the conclusions of ``Row
by row'', which are conditional on the inputs (o), (a)--(e) there, and from three facts of the source.
\subsection*{6.\quad Assumed here, from the source}
The Lean statements corresponding to the inputs. ``Dependency: yes'' means that the name is among the
declarations the final theorem depends on, by the dependency computation; ``reached'' means that the name
is not in the lists computed, but is used in the proof or in the definition of a name that is, either
directly or through further declarations that are not in the lists. The route is given each time.
\begin{itemize}[leftmargin=1.6em,itemsep=2pt,topsep=3pt]
\item \texttt{divClausesR\_of} (dependency: yes): the assembly; its third clause is Theorem
\ref{sa:thm}(b) with the error $(50C_0+10)\,\mathcal U_1+60c_e\,\mathcal U_2$, its second clause is
Theorem \ref{sa:thm}(a) in the form of a majorant at each place.
\item (S1): fields \texttt{cb}, \texttt{nKcb} of \texttt{DivInputs0R} and \texttt{i2}--\texttt{i10},
\texttt{k2}, \texttt{k3} of \texttt{HtNums}: each matrix of the chain is a sum over classes of blocks
with squared norm at most a bound whose logarithm is at most $\Sigma_j(v)$.
\texttt{chain\_coupled\_bound} (yes) turns this into $\log\|K_j\|_v^2\le\Sigma_j(v)$.
\item (S2): field \texttt{nP} of \texttt{DivInputs0R} and \texttt{t1}--\texttt{t11}, \texttt{k1} of
\texttt{HtNums}.
\item (S3): fields \texttt{l1b}, \texttt{l1c}, \texttt{l6} of \texttt{IndefColsR} and \texttt{eig6} of
\texttt{DivInputs0R}; \texttt{scalar\_bound\_lowC} (yes). The source has a theorem named
\texttt{lamLow\_of\_classicalTheorems}; among its hypotheses are the Siegel--Weil formula for unitary
groups with its convergence, the doubling method, and the unramified doubling computation for
$\mathrm{GL}$ (\texttt{weilSiegelFormulaUnitary}, \texttt{siegelWeilUnitaryConvergent},
\texttt{doublingMethod}, \texttt{unramifiedDoublingGL}). By its name it gives the lower bound for the
scalars. That it is what fills the field \texttt{l6} was not verified.
\item {\sloppy (S4): field \texttt{i1} of \texttt{HtNums}; \texttt{meanPeriod} (yes), \texttt{mean\_log\_period}
(yes), \texttt{chowla\_selberg\_eta} (yes). Reached: \texttt{two\_log\_brN} and \texttt{br\_meanLogOm\_eq},
through \texttt{meanPeriodAt}, which is the body of \texttt{meanPeriod} and is not in the lists;
\texttt{index\_lineR}, through \texttt{br\_meanLogOm\_eq}; \texttt{lineR\_eq}, through
\texttt{index\_lineR}. The ideal $\mathfrak b$: \texttt{principal}, \texttt{Arith.bb\_ex}, field
$\mathfrak b$\texttt{\_spec} of \texttt{Host} (dependency: yes for \texttt{principal}, by a later run of the computation, which finds it in the
namespace \texttt{Formalism.HC.Der}).\par}
\item (S5): \texttt{IndefSide.boundsMu} (yes), \texttt{slope\_bounds} (yes), with the fields
\texttt{bi}, \texttt{bLG}, \texttt{biv}, \texttt{borderedMinorImage},
\texttt{twisted\_third\_sum\_le} of \texttt{DivInputs0R}, \texttt{on} and \texttt{l3} of
\texttt{IndefSide} and \texttt{untw} of \texttt{IndefExtraR}.
\item (S6): field \texttt{L3main} of \texttt{DivInputs0R}.
\item (S7): fields \texttt{level}, \texttt{passage}, \texttt{fun0} of \texttt{IndefExtraR}; fields
\texttt{de0}, \texttt{deQ}, \texttt{Q1}, \texttt{Qb}, \texttt{la\_le},
\texttt{constant\_ge\_twenty\_eight} of \texttt{DivInputs0R}.
\item (S8): field \texttt{errB} of \texttt{DivInputs0R}.
\item (W1), (W2), (G): fields \texttt{weight\_height\_sum\_le}, \texttt{weight\_sum\_eq}, \texttt{sE},
\texttt{s}$\delta$, \texttt{p1}--\texttt{p38}, \texttt{c1}--\texttt{c5} of \texttt{RecNums}; for remark
(1), \texttt{NumFacts}, \texttt{stepE\_num}, \texttt{RecNums.ofNum}.
\item {\sloppy Step 1: \texttt{height\_chain\_atR} (yes); \texttt{height\_constant\_bound} (reached directly: it
is used in the proof of \texttt{height\_chain\_atR}). Step 2:
\texttt{height\_bound\_at\_set} (yes). Step 4: \texttt{divisor\_inequality\_explicit} (yes),
\texttt{divIneqRecord} (yes), \texttt{error\_absorption} (yes); \texttt{divisor\_inequality\_assembly}
(reached through \texttt{divisor\_inequality}, which is not in the lists and is applied by
\texttt{divisor\_inequality\_explicit}).\par}
\item The identifications $h=\mathcal H-\langle\log\varkappa\rangle$, $F_0=2\mathfrak F$,
$\mu_{\rm CC}=\mu(\mathcal R^\vee)$ with the quantities of the final statement of the source:
\texttt{hTie\_of} (yes) and the hypotheses \texttt{tMu}, \texttt{tFo}, \texttt{tR} of
\texttt{wordFacts\_of\_clauses}. In the source the function $h(u)$ of the final statement is defined by
the formula for $\mathcal H-\langle\log\varkappa\rangle$ (\texttt{hExpl6}); so it already contains
$-\langle\log\varkappa\rangle$.
\end{itemize}
\subsection*{7.\quad What this section proves, and what it assumes}
\emph{Proved:} Theorem \ref{sa:thm}: the inequality (\ref{III:sizefinal}) at the end of \S III.4 follows from
(S1)--(S8), (W1), (W2), (G), with the constant $C=\max(50C_0+10,60c_e)$; the descent lemma; the two
lemmas on real numbers, with every constant; the table of the origin of each term. The Proposition of
subsection 4: the mean \eqref{sa:meandef} of the logarithms of the periods of the integral lines is
$\log\Omega_E$, given the class mean formula (I2), (I3) of \S III.4, the multiplicativity of the
different and the formula for its norm (cited), and the ideal $\mathfrak b$; Lemmas B, C, D are proved.
The existence of $\mathfrak b$ for the field $E$ of the paper, with (P2), on which it rests. Remark (1) after the list of
inputs: (W1), (W2) from the conclusions of ``Row by row'' and three facts of the source.
\emph{Assumed:} (S1)--(S8), (W1), (W2), (G). The input (S4) is not proved: it would follow from the
Proposition and (P1)--(P3), and (P1), (P3) are assumed from the source. Of the inputs, (S1), (S2), (S3),
(W1), (W2) correspond to conclusions of conditional paragraphs of \S III.4, each with inputs of its own
that are named there. For (S1) and (S2) the exact match of the numerical forms (the constants of (S1),
the weights in (S2)) is part of what is assumed. For (W1), (W2) the match is made in remark (1), given
the three facts quoted there.
\subsection*{8.\quad What remains}
\begin{enumerate}[label=\textup{(\roman*)},leftmargin=2.4em,itemsep=2pt,topsep=3pt]
\item The covolume bound with the period $\Omega_E$ of subsection 4 (the first hypothesis of the theorem
behind (S5), with the values of $l_{3,j}$ in (S6)): the statement that the lattice of integral forms of
the $j$th lift has normalised covolume at most $\sum_\tau p_jw_{j\tau}\log\Omega_E$ up to the stated
error. This is the largest gap: the cancellation of the period is proved here only as an identity
between two inputs.
\item The slope bound (S5) and its local index bounds, including the definition of $\mathfrak F$.
\item The passage between levels (S7).
\item The inner-product formula, the mass, the formal degrees and the local factors, for (S3).
\item The statements (P1) and (P3) on the periods of the actual kernels, and item (vi)
of the list of \S III.4.
\item The verification of (G) and (S8) for the parameters of Part II for large $x$, and the bounds for
the constants and the class numbers in (S1).
\end{enumerate}
\section{The images in general position: the trace-formula estimates}\label{tr:sec}
This section concerns the two smallness statements that the linear algebra of Part~II, \S6.9--6.10 consumes,
and the identity that connects them with the pairings of the chain of lifts. In the Lean development these
are three statements: \texttt{LinkS} (bounds for the Gram blocks of a family of maps; the trace statement),
\texttt{LinkIRR} (a count; the rank statement), and \texttt{BesselId} (the pairing at the end of the chain is
an inner product with the image of such a map; the pairing statement). The title needs a word of
explanation. The source does not prove that the images of the maps are nearly orthogonal. The images cannot
all be mutually orthogonal: by the trace statement their dimensions add up to more than the dimension of the
target (Remark~(1) of subsection~2). What the source bounds is this: every block
$B_{\mathsf w}^\dagger B_{\mathsf w'}$ with $\mathsf w\ne\mathsf w'$ has at most $(1+\eta_0)(1+\eta_1)$ times
the mean size that it has for subspaces in general position, where $\eta_0$ and $\eta_1$ are the numbers
of Statement~(S) of subsection~1, at most $\exp(-x^{\varepsilon/8})$. So the operator
$Q=\sum_{\mathsf w}B_{\mathsf w}B_{\mathsf w}^\dagger$ is close to its mean eigenvalue in Hilbert--Schmidt norm
(Remark~(1) of subsection~2). The operator $Q$ is not a sum of projections. \emph{Proved here:} Lemma~T1 and
Corollary~T2. This section deduces the dimension bound from the three trace, rank and pairing statements and
the size and subspace conditions in T2, with explicit constants. It also proves Lemma~T3, a statement about
finite sets and weights which is the mechanism of a second moment in the simplest case (a sum over twists of
$B_\chi^\dagger B_\chi$ is a count of pairs of representations, and its main term is a mass). \emph{Quoted
from the source:} the three statements themselves, transcribed in subsection~1, and the theorems from which
the source deduces them, listed in subsection~4 with their Lean names. The construction of the spaces and
maps and the arithmetic inputs are quoted; none of these is proved here. The assembly of (M) is in
\S\ref{as:sec}: it uses Corollary~T2, through Proposition~M4 there, and it reduces (M) to numbered
Hypotheses, which are not proved. The error term
that Part~II, \S6.10 takes from this section is recalled at the end of subsection~2. Below, \S1, \S2, \dots\
without a part number mean the subsections of this section.
{\sloppy Letters introduced in this section: $\mathsf W$, $\mathsf w$ (words); $\mathcal H$, $\mathcal C_{\mathsf w}$,
$\mathcal M_{\mathsf w}$, $\mathcal E_0$, $\mathcal E$, $\mathcal U_{\mathsf w}$ (spaces), with $\mathcal M_{\mathsf w,\mathbb L}$,
$\mathcal E_{\mathbb L}$ (spaces over a number field $\mathbb L$); $P_{\mathsf w}$, $B_{\mathsf w}$,
$K_{\mathsf w\mathsf w'}$, $\mathsf s$, $\mathfrak B_{\mathsf w}$, $\beta_{\mathsf w}$, $\Psi$, $\Psi_{\mathsf w}$, $\Lambda$, $\pi_{\mathcal E}$
(maps and pairings); $d_{\mathsf w}$, $d^{\rm ram}_{\mathsf w}$, $D_*$, $D_{\rm r}$ (dimensions);
$\eta_0,\eta_1,e_0,\delta_{\rm p},\delta_{\mathcal E},\varkappa,\alpha_{\rm ram},\alpha',\varepsilon_z,\varepsilon_C$ (small
numbers); $\mathsf G$, $C_{\mathsf G}$, $C_0$, $C_H$, $J_z$, $c_0(\mathsf w)$, $\lambda_{\mathsf w}$ (constants);
$\mathrm{Wg}$, $\mathcal T(\mathsf w)$, $\xi_i$, $\psi_i$, $\theta_j$, $e_j'$, $\Delta$ (in \S2, \S4, \S5); and, in \S3 only,
$\mathcal I,\mathcal I',\omega,\omega',G_i,\mathrm{Rep},A,\mathrm{inv},\Theta_\chi,B_\chi,\mathcal N,\mathcal N^\circ,\mathfrak N^\circ,\mathfrak m,\sigma,\ell_0,\varsigma_\iota$.
The letters $Q$, $D$, $S$, $e$, $\eta$, $\alpha$, $u$, $H$ have the meaning of Part~II, \S6.9--6.10: $Q$ is the sum of
the operators $B_{\mathsf w}B_{\mathsf w}^\dagger$, $D$ the dimension of the target, $S$ the total dimension of the
sources, $e$, $\eta$, $\alpha$ the three constants of the lemma of \S6.9, and $u$, $H$ the spread and the height
bound of \S6.10. From Corollary~T2 on, the share of directions lost at the level primes is written $\alpha_{\rm ram}$; it is one part of the constant $\alpha$ of the lemma, which in Corollary~T2 is $\alpha_{\rm ram}+\alpha'$, and it is not the $\alpha=u/(u+t)$ of \S6.10. The target space, called $H$ in \S6.9, is written $\mathcal H$ here. The letters $k,m,t_0,f,r$,
$g_0,g_1$, $q,d$, $b$ have the meaning of \S III.4 and \S III.5: $k$ is the initial rank, $m$ the number of lifts,
$t_0$ the integer parameter written $t$ in \S III.4 and $t_0$ in \S III.5 (the field \texttt{t} of the Lean record of ranks), $f=2n$ the number of weight places, $r=k+m-1$, $g_0,g_1$ are the two level primes, $q,d$ the auxiliary primes, and
$b=\exp(x^\varepsilon)$ with $0<\varepsilon<1/52$. $\|A\|_{\rm HS}^2=\operatorname{tr}(A^\dagger A)$ is the
squared Hilbert--Schmidt norm, and $A^\dagger$ the adjoint. Inner products are conjugate-linear in the
first variable and linear in the second. $V^\vee$ is the space of $\C$-linear forms on a complex space $V$.
The letter $\nu$ denotes a dimension where it
occurs, and $j$, $j'$, $l$, $\iota$ are indices. The exponential function is written $\exp$ in this section,
because $e$ is a constant of the lemma of \S6.9.\par}
{\sloppy \emph{Other letters.} Used in more than one place: $\varphi$ and $F$ (elements of
$\mathcal M_{\mathsf w}$ or $\mathcal M_{\mathsf w,\mathbb L}$, and of $\mathcal E_0$ or $\mathcal E_{\mathbb L}$);
$x_0$ (a threshold for $x$) and $c$, $c'$, $C$, $C'$ (positive constants), which are not the same at each
occurrence; $y$ (a real number in the proof of Lemma~T3, and $x^{\varepsilon/8}$ in \S4); $i$ (an index in
$c_i$, $\xi_i$, $\psi_i$, an element of $\mathcal I$ in \S3, and the imaginary unit in $iF$ in \S1); $v$ (a
finite place in (R1) and (R2), a positive real number in (R3)); $X$ (a tuple of vectors in (R2), the variable
of a polynomial in (R4)); $g$ (a group element in (R2), a prime in (R4)); $M$ (a rank, in (R2) and (R3)).
Used in one place only and explained there: $s$ (the inner mean of \S2, a real number; it is not the map
$\mathsf s$); $\mathcal X$, $\mathcal Z$, $\mathcal Y$, $h$ (in the proofs of Lemma~T1(d) and Corollary~T2);
$\Xi$, $\zeta$, $\zeta'$, $p$ (in the Remarks); $Y$, $\rho$, $\chi$ (in \S3); $\tau$, $K^{(\tau)}$, $K''$, $s_0$
(in (R1)); $E/E^+$, $J$, $Z$, $\Phi$, $\varrho_v$ (in (R2)). The number $e_0'$ of \S5 is the first of the
$e_j'$; it is not the $e_0$ of (S).\par}
{\sloppy \emph{The letters are local.} No letter of this section was changed to agree with the other sections of
Part~III, and several have another meaning there. The clashes most likely to confuse are these. $C_0$ is $3$
here; in \S III.7 it is a constant with $C_0\ge28$. $\mathcal H$ is the target space here; in \S III.7 it is a
height. $\mathsf G$ is the number $\exp(C_{\mathsf G}m^5fx^\varepsilon)$ here and in Part~II, \S6.10; in
\S III.7 it is a group. $\mathcal T(\mathsf w)$ is a level prime here, as $\mathcal T$ is in Part~II, \S6.7; in
\S III.6 $\mathcal T$ is a set. $\varsigma_\iota$ are minors here (\S3); in \S III.4 and \S III.7
$\varsigma$ is a number formed from the ranks. $\Lambda$ is a map here; in \S III.6 the $\Lambda_w$ are
lattices, and elsewhere $\Lambda$ is the von Mangoldt function. $\Xi$ is a random unitary map here; in
\S III.6 it is a set of primes and in \S III.7 an operator. $\Psi$, $\Psi_{\mathsf w}$ are unitary maps and
$\psi_i$ weights here; in \S III.4 $\Psi=\psi+1$ and $\psi$ are ranks, and in \S III.9 $\Psi$ is a character.
$\Delta$ is the step of the weights here (\S5); in \S III.4 it is the width of the weight interval. Also:
$\alpha$ is a constant here and a member of the family in \S III.6 (the word of this section; see \S1);
$\mathfrak B$ and $c_0$ occur in \S III.9, $\varkappa_v$ in \S III.7 and $\mathcal Y$ in \S III.5, with other
meanings.\par}
\subsection*{1.\quad The three statements in the source}
\textbf{The data.} At a scale $x$ the source works with a record (Lean: \texttt{D7}) which contains, among
many other things, the following. They are fields of the record. Their identification with spaces of
automorphic forms is made in the source by further hypotheses, which were not read (see \S6).
\begin{itemize}
\item A finite set $\mathsf W$ of \emph{words}. Each word $\mathsf w$ has a sequence of letters in
$\{0,1\}^{k-2}$, and distinct words have distinct sequences (\texttt{letter}, \texttt{letter\_inj}). A word
fixes, at each of the $f$ weight places, a weight $\xi=(\xi_0>\dots>\xi_{k-1})$ of a unitary group in $k$
variables; see \S5.
\item A complex inner product space $\mathcal H$ of finite dimension $D$ (\texttt{HH}, \texttt{Dall}), and a
real number $D_*>0$ (\texttt{Dstar}). The positivity of $D_*$ is not a field of the record. It follows from
two fields of other records: \texttt{Dstar\_eq} and \texttt{Dstar\_pos}.
\item For each word a complex inner product space $\mathcal C_{\mathsf w}$ of finite dimension
$d_{\mathsf w}$ (\texttt{Cu}, \texttt{duS}), a subspace $\mathcal M_{\mathsf w}\subset\mathcal C_{\mathsf w}$ of
dimension $d^{\rm ram}_{\mathsf w}$ (\texttt{Mram}, \texttt{du}), a linear map
$P_{\mathsf w}:\mathcal C_{\mathsf w}\to\mathcal H$ (\texttt{Pu}), and a number $c_0(\mathsf w)\ge0$
(\texttt{c0}, a product of two volumes divided by a dimension). When $c_0(\mathsf w)>0$ put
\begin{equation}\label{tr:K}
B_{\mathsf w}=c_0(\mathsf w)^{-1/2}P_{\mathsf w},\qquad
K_{\mathsf w\mathsf w'}=B_{\mathsf w}^\dagger B_{\mathsf w'}:\ \mathcal C_{\mathsf w'}\to\mathcal C_{\mathsf w}.
\end{equation}
When $c_0(\mathsf w)=0$ the definitions of the source give $K_{\mathsf w\mathsf w}=0$. In the notation of
Part~II, \S6.9 the maps $B_i$ are the $P_{\mathsf w}$, the spaces $V_i$ are the $\mathcal C_{\mathsf w}$, and the
weights are $c_i=1/c_0(\mathsf w)$ (the letter $c_i$ is that of \S6.9; the number $c_0(\mathsf w)$ of the
record is not one of the $c_i$); so $K_i=K_{\mathsf w\mathsf w}$ and
$Q=\sum_{\mathsf w}B_{\mathsf w}B_{\mathsf w}^\dagger$.
\item A complex inner product space $\mathcal E_0$ of dimension $D_{\rm r}$ (\texttt{EE}), and a
\emph{conjugate-linear} map $\mathsf s:\mathcal E_0\to\mathcal H$ which preserves norms (\texttt{sEE}). So
$\mathsf s(cF)=\bar c\,\mathsf s(F)$ for $c\in\C$, and $\mathsf s$ is injective. Its image
$\mathcal E=\mathsf s(\mathcal E_0)$ is a complex subspace of $\mathcal H$ of dimension $D_{\rm r}$. There is a
number $\delta_{\rm p}\le1$ with $D_{\rm r}=(1-\delta_{\rm p})D$ (\texttt{Drows}, \texttt{delp}, \texttt{D\_eq}).
The spaces $\mathcal E_0$ and $\mathcal E$ have the same elements up to $\mathsf s$, with conjugate actions of
the scalars. They are kept apart below.
\item For each word a pairing $\mathfrak B_{\mathsf w}:\mathcal M_{\mathsf w}\times\mathcal E_0\to\C$, linear over
$\C$ in each variable (\texttt{Bu}, \texttt{Bu\_linL}, \texttt{Bu\_linR}). In the source it stands for the
pairing at the end of the chain of $m$ lifts of Part~II, \S6.2, between the space at the start of the chain
and the space at its end (it is tied to the chain by the fields \texttt{perCol} and \texttt{PtilCol}, which
were not read). Both spaces carry structures over a number field $\mathbb L\subset\C$: there are
$\mathbb L$-vector spaces $\mathcal M_{\mathsf w,\mathbb L}$ and $\mathcal E_{\mathbb L}$, with lattices in them,
and maps $\mathcal M_{\mathsf w,\mathbb L}\to\mathcal M_{\mathsf w}$ and $\mathcal E_{\mathbb L}\to\mathcal E_0$,
linear over $\mathbb L$ (\texttt{jN}, \texttt{jEE}), under which an $\mathbb L$-basis of
$\mathcal M_{\mathsf w,\mathbb L}$ is a $\C$-basis of $\mathcal M_{\mathsf w}$ and an $\mathbb L$-basis of
$\mathcal E_{\mathbb L}$ is a $\C$-basis of $\mathcal E_0$ (\texttt{jN\_basis}, \texttt{jEE\_basis}: linear
independence and span). The second map goes to $\mathcal E_0$ and not to $\mathcal E$: composed with
$\mathsf s$ it would be conjugate-semilinear over $\mathbb L$, and so linear over $\mathbb L$ only if
$\mathbb L\subset\mathbb R$. In particular
\begin{equation}\label{tr:dimE}
\dim_{\mathbb L}\mathcal E_{\mathbb L}=D_{\rm r}
\end{equation}
(\texttt{RRV\_finrank}). There is an $\mathbb L$-bilinear pairing
$\mathfrak B^{\rm alg}_{\mathsf w}:\mathcal M_{\mathsf w,\mathbb L}\times\mathcal E_{\mathbb L}\to\mathbb L$
(\texttt{Bk}). The slopes of Part~II, \S6.8--6.10 are those of these lattices.
\end{itemize}
\emph{Comparison with the letters of \S III.6.} The following was checked in the types of the Lean record.
The field $\mathbb L$ is the coefficient field $L_0$ of \S III.6 (\texttt{LL}, with the embedding
\texttt{embLL}). The words are the members $\alpha$ of \S III.6 (\texttt{Word}). The space
$\mathcal M_{\mathsf w,\mathbb L}$ is the space $U_\alpha$ that carries the glued lattice
$\Lambda^{\rm gl}_\alpha$ (\texttt{Nu}), and $\mathcal E_{\mathbb L}$ is the space $U'$ with the lattice
$\mathcal R$ (\texttt{RR}): the maps \texttt{jN} and \texttt{jEE} have the sources \texttt{(div.Nu u).V} and
\texttt{div.RR.V}. Not checked in the Lean: that $\mathfrak B^{\rm alg}_{\mathsf w}$ (\texttt{Bk}) is the
pairing $\langle\ ,\ \rangle_\alpha$ of \S III.6 (\texttt{perCol}), and that the level prime
$\mathcal T(\mathsf w)$ of \S2 is the prime $\mathrm{Lv}_\alpha$ of \S III.6; both sections describe them
in the same words. The letters of \S III.7 were not compared.
\emph{The index of the family is the word.} It is not a Hecke character: in the source the twists by Hecke
characters form another index (\texttt{Tup}), with one twist attached to each place (\texttt{muAt}). By our
reading it serves to glue the lattices (Part~II, \S6.8). The space $\mathcal E_0$ and the pairings
$\mathfrak B_{\mathsf w}$ do not depend on it: \texttt{Tup} does not occur in the types of \texttt{EE} and
\texttt{Bu}, nor in \texttt{LinkS\_at}, \texttt{Frame\_at} and \texttt{frame\_at\_of}.
\emph{Translates.} There is one record for each translate of Part~II, \S4.2, and each record has its own set
of words (Lean: the definition \texttt{data} in \texttt{QuadraticLogDerivCongr.lean}, whose family of index
sets is \texttt{fun u0 => (Fm.D x (M.pt u0)).what}$_2$\texttt{.Word}; there \texttt{u0} is the translate and \texttt{u}
the word). The weights of the table of Part~II, \S4.2 depend on the translate and not on the word
(\texttt{w u0 j}). The level prime, the height and the rank depend on the translate and on the word
(\texttt{T u0 u}, \texttt{h u0 u}, \texttt{d u0 u}).
\textbf{Statement (S)} (Lean: \texttt{LinkS\_at}, \texttt{LinkS}, with $C_0=3$). \emph{Put
$\mathsf G=\exp(C_{\mathsf G}\,m^5f\,x^{\varepsilon})$, where $C_{\mathsf G}>0$ is a constant of the family. There is
$x_0$ such that for every $x\ge x_0$ and every record of the family at the scale $x$ there are real numbers
$\eta_0,\eta_1$ and $e_0\ge0$ with}
\begin{equation}\label{tr:small}
\eta_0\le \exp(-x^{\varepsilon/8}),\qquad \eta_1\le \exp(-x^{\varepsilon/8}),\qquad \sqrt{e_0}\le \exp(-x^{\varepsilon/8}),
\end{equation}
\emph{such that, if}
\begin{equation}\label{tr:proviso}
C_0^{-1}\le d_{\mathsf w}\,\mathsf G^2/D_*\le C_0\qquad\text{for every word }\mathsf w,
\end{equation}
\emph{then}
\begin{align}
\|K_{\mathsf w\mathsf w'}\|_{\rm HS}^2&\le(1+\eta_0)\,\frac{d_{\mathsf w}d_{\mathsf w'}}{D_*}
\qquad(\mathsf w\ne\mathsf w'),\label{tr:S1}\\
\|K_{\mathsf w\mathsf w}-1\|_{\rm HS}^2&\le e_0\,d_{\mathsf w},\label{tr:S2}\\
D&\le(1+\eta_1)\,D_*.\label{tr:S3}
\end{align}
In the proof in the source the three numbers are
$\eta_0=b^{-6}$, $e_0=2C_0/\mathsf G+2\exp(-kf\log k)$ and $\eta_1=\exp(-c\,rf\log r)$ with a constant $c>0$
(\texttt{linkS\_concl}). So they are of size $\exp(-c'x^{\varepsilon})$, and \eqref{tr:small} is a weaker,
uniform way of recording this. When \eqref{tr:proviso} fails for a record, that proof takes
$\eta_0=\eta_1=e_0=0$, and the implication is empty (\texttt{linkS\_of\_standing\_hypotheses}). The source
proves (S) for families satisfying a further condition on the level primes of the words (\texttt{TuSize}).
\textbf{Statement (I)} (Lean: \texttt{LinkIRR}). \emph{There is $x_0$ such that for $x\ge x_0$ and every record
of the family at the scale $x$}
\begin{equation}\label{tr:I}
0\le\delta_{\rm p}\le\exp\big(-x^{\varepsilon_z/7}\big),\qquad \varepsilon_z=\varepsilon/J_z,
\end{equation}
\emph{where $J_z\ge1$ is a constant of the family.} So $\mathcal E$ is almost all of $\mathcal H$.
\textbf{Statement (P)} (Lean: \texttt{BesselId}). \emph{For every record: \textup{(P1)} for
$\varphi\in\mathcal M_{\mathsf w,\mathbb L}$ and $F\in\mathcal E_{\mathbb L}$,
$\mathfrak B_{\mathsf w}(\varphi,F)=\mathfrak B^{\rm alg}_{\mathsf w}(\varphi,F)$, the right side being
read in $\C$ through the fixed embedding of $\mathbb L$, and $\varphi$, $F$ on the left being their images in
$\mathcal M_{\mathsf w}$ and $\mathcal E_0$; \textup{(P2)} there are a unitary map $\Psi$ of
$\mathcal E_0$ and, for each word, a complex number $\lambda_{\mathsf w}\ne0$ and a unitary map
$\Psi_{\mathsf w}$ of $\mathcal M_{\mathsf w}$, such that}
\begin{equation}\label{tr:P}
\mathfrak B_{\mathsf w}(\varphi,F)=\lambda_{\mathsf w}\,\big\langle \mathsf s\Psi F,\ P_{\mathsf w}\Psi_{\mathsf w}\varphi\big\rangle_{\mathcal H}
\qquad(\varphi\in\mathcal M_{\mathsf w},\ F\in\mathcal E_0).
\end{equation}
Both sides are linear in $\varphi$ and in $F$. For the right side and $F$: replace $F$ by $iF$. Then
$\Psi F$ is multiplied by $i$, since $\Psi$ is linear; $\mathsf s\Psi F$ is multiplied by $-i$, since
$\mathsf s$ is conjugate-linear; and the inner product is multiplied by $i$, since it is conjugate-linear in
its first variable. The map $\mathsf s$ cannot be omitted: for a complex subspace $\mathcal E$ of $\mathcal H$,
a pairing that is linear on $\mathcal M_{\mathsf w}\times\mathcal E$ cannot be equal to
$\lambda_{\mathsf w}\langle\Psi F,P_{\mathsf w}\Psi_{\mathsf w}\varphi\rangle$ with $\Psi$ unitary on $\mathcal E$, unless it is zero: the left side
would be multiplied by $i$ and the right side by $-i$. In the Lean, \texttt{sEE} has the type of a
conjugate-linear isometry from \texttt{EE} to the target, the pairing \texttt{besS} is
\texttt{inner (sEE F) (Pu \dots)}, and \texttt{BesselId} asserts
\texttt{Bu u phi F = a * besS u (U phi) (V F)} with linear isometric equivalences \texttt{V} of \texttt{EE} and
\texttt{U} of the space of $\varphi$. In the source (P) is a clause of the statement \texttt{LinkDIV\_at}. The
name refers to the realisation of $\langle\mathsf sF,P_{\mathsf w}\varphi\rangle$ in the source as a Bessel period
of $F$; in the form \eqref{tr:P} no integral appears.
\subsection*{2.\quad From the three statements to the hypotheses of Part~II, \S6.9}
The lemma of Part~II, \S6.9 has three hypotheses, with constants $e$, $\eta$, $\alpha$: a bound
$\sum_i\|K_i-1\|_{\rm HS}^2\le eS$ for the diagonal blocks; a bound
$\operatorname{tr}(Q^2)\le(1+\eta)(\operatorname{tr}Q)^2/D$ for the operator $Q$; and subspaces of total
codimension at most $\alpha S$. Its conclusion is that the images span all of the target but a part of
dimension at most $(\eta+4\alpha+4\sqrt e)D$. This is the form that the proof in \S6.9 gives. The display of
\S6.9 has $2\eta$ in place of $\eta$, which is weaker. This section uses the form with $\eta$ everywhere, and
so does the source (\texttt{FrameLA1}; see below). The next lemma obtains the first two hypotheses from \eqref{tr:S1}--\eqref{tr:S3}.
\textbf{Lemma T1.} \emph{Let $\mathcal H$ be a complex inner product space of dimension $D\ge1$, let
$\mathsf W$ be a finite nonempty set, and for $\mathsf w\in\mathsf W$ let
$B_{\mathsf w}:\mathcal C_{\mathsf w}\to\mathcal H$ be a linear map from an inner product space of dimension
$d_{\mathsf w}\ge1$. Put $K_{\mathsf w\mathsf w'}=B_{\mathsf w}^\dagger B_{\mathsf w'}$,
$Q=\sum_{\mathsf w}B_{\mathsf w}B_{\mathsf w}^\dagger$ and $S=\sum_{\mathsf w}d_{\mathsf w}$.}
\begin{enumerate}[label=\textup{(\alph*)},leftmargin=2.2em]
\item $\operatorname{tr}Q=\sum_{\mathsf w}\operatorname{tr}K_{\mathsf w\mathsf w}$ \emph{and}
$\operatorname{tr}(Q^2)=\sum_{\mathsf w,\mathsf w'}\|K_{\mathsf w\mathsf w'}\|_{\rm HS}^2$.
\item \emph{Let $D_*>0$, $\eta_0\ge-1$, $e_0\ge0$, and assume \eqref{tr:S1} and \eqref{tr:S2}. Then}
\begin{equation}\label{tr:cor}
\operatorname{tr}(Q^2)\le(1+\eta_0)\frac{S^2}{D_*}+(1+\sqrt{e_0})^2S,\qquad
\operatorname{tr}Q\ge(1-\sqrt{e_0})S,\qquad \sum_{\mathsf w}\|K_{\mathsf w\mathsf w}-1\|_{\rm HS}^2\le e_0S .
\end{equation}
\item \emph{Assume in addition \eqref{tr:S3}, and let $0<\varkappa\le\frac14$ be such that}
\begin{equation}\label{tr:kap}
D_*\le\varkappa S,\qquad \eta_0\le\varkappa/2,\qquad\eta_1\le\varkappa/2,\qquad\sqrt{e_0}\le\varkappa/2 .
\end{equation}
\emph{Then}
\begin{equation}\label{tr:F1}
\operatorname{tr}(Q^2)\le(1+5\varkappa)\,\frac{(\operatorname{tr}Q)^2}{D},\qquad e_0\le\tfrac1{64}.
\end{equation}
\item \emph{Under the hypotheses of \textup{(c)}, let $\mathcal U_{\mathsf w}\subset\mathcal C_{\mathsf w}$ be
subspaces with $\sum_{\mathsf w}(d_{\mathsf w}-\dim\mathcal U_{\mathsf w})\le\alpha S$, let
$\mathcal E\subset\mathcal H$ be a complex subspace of dimension $(1-\delta_{\mathcal E})D$ with $0\le\delta_{\mathcal E}<1$,
and let $\pi_{\mathcal E}$ be the orthogonal projection onto $\mathcal E$. Then}
\begin{equation}\label{tr:codim}
\dim\mathcal E-\dim\sum_{\mathsf w}\pi_{\mathcal E} B_{\mathsf w}\,\mathcal U_{\mathsf w}
\ \le\ \frac{5\varkappa+4\alpha+4\sqrt{e_0}}{1-\delta_{\mathcal E}}\,\dim\mathcal E .
\end{equation}
\end{enumerate}
\emph{Proof.} (a) The first identity is $\operatorname{tr}(BB^\dagger)=\operatorname{tr}(B^\dagger B)$. For the
second, $K_{\mathsf w\mathsf w'}^\dagger=K_{\mathsf w'\mathsf w}$, so
\begin{equation}\label{D:307}
\operatorname{tr}\big(B_{\mathsf w}B_{\mathsf w}^\dagger B_{\mathsf w'}B_{\mathsf w'}^\dagger\big)
=\operatorname{tr}\big(B_{\mathsf w'}^\dagger B_{\mathsf w}\,B_{\mathsf w}^\dagger B_{\mathsf w'}\big)
=\operatorname{tr}\big(K_{\mathsf w\mathsf w'}^\dagger K_{\mathsf w\mathsf w'}\big)
=\|K_{\mathsf w\mathsf w'}\|_{\rm HS}^2 ,
\end{equation}
and $\operatorname{tr}(Q^2)$ is the sum of these over all pairs.
(b) Let $K$ be an operator on a space of dimension $\nu$. By the Cauchy--Schwarz inequality for the
Hilbert--Schmidt inner product, $|\operatorname{tr}(K-1)|\le\sqrt\nu\,\|K-1\|_{\rm HS}$, so
$\re\operatorname{tr}K\ge\nu-\sqrt\nu\,\|K-1\|_{\rm HS}$; and $\|K\|_{\rm HS}\le\sqrt\nu+\|K-1\|_{\rm HS}$. With
\eqref{tr:S2} this gives $\operatorname{tr}K_{\mathsf w\mathsf w}\ge(1-\sqrt{e_0})d_{\mathsf w}$ (the trace is
real) and $\|K_{\mathsf w\mathsf w}\|_{\rm HS}^2\le(1+\sqrt{e_0})^2d_{\mathsf w}$. Sum over $\mathsf w$ and use
(a). For the pairs $\mathsf w\ne\mathsf w'$ use \eqref{tr:S1} and
$\sum_{\mathsf w\ne\mathsf w'}d_{\mathsf w}d_{\mathsf w'}\le S^2$; here $1+\eta_0\ge0$ is used.
(c) By \eqref{tr:S3}, $1+\eta_1\ge D/D_*>0$ and $1/D\ge1/((1+\varkappa/2)D_*)$. By (b) and \eqref{tr:kap},
$\operatorname{tr}Q\ge(1-\varkappa/2)S\ge0$, and, since $S\le\varkappa S^2/D_*$,
\begin{align}\label{D:308}
\operatorname{tr}(Q^2)&\le\Big((1+\tfrac\varkappa2)+(1+\tfrac\varkappa2)^2\varkappa\Big)\frac{S^2}{D_*},\\
(1+5\varkappa)\frac{(\operatorname{tr}Q)^2}{D}&\ge\frac{(1+5\varkappa)(1-\frac\varkappa2)^2}{1+\frac\varkappa2}\cdot\frac{S^2}{D_*}.
\end{align}
So it suffices that $(1+\frac\varkappa2)^2+(1+\frac\varkappa2)^3\varkappa\le(1+5\varkappa)(1-\frac\varkappa2)^2$.
Expanding both sides, the difference of the right side and the left side is
\begin{equation}\label{tr:poly}
\varkappa\big(2-\tfrac{13}2\varkappa+\tfrac12\varkappa^2-\tfrac18\varkappa^3\big),
\end{equation}
which is positive for $0<\varkappa\le\frac14$, since then the bracket is at least $2-\frac{13}8-\frac1{512}>0$.
Finally $e_0\le\varkappa^2/4\le1/64$.
(d) By (b) and (c) the hypotheses of the lemma of Part~II, \S6.9 hold for the maps $B_{\mathsf w}$, with
all weights $c_i$ equal to $1$, with $e=e_0\le\frac14$, $\eta=5\varkappa$, and the given $\alpha$. So, by the form of
that lemma with $\eta$ which its proof gives, the orthogonal
complement $\mathcal Z$ of $\mathcal X=\sum_{\mathsf w}B_{\mathsf w}\mathcal U_{\mathsf w}$ in $\mathcal H$ has
dimension at most $(5\varkappa+4\alpha+4\sqrt{e_0})D$. Now $\pi_{\mathcal E}(\mathcal X)=(\mathcal X+\mathcal E^\perp)\cap\mathcal E$,
and the codimension of this space in $\mathcal E$ equals the codimension of $\mathcal X+\mathcal E^\perp$ in
$\mathcal H$, because $\mathcal X+\mathcal E^\perp=\pi_{\mathcal E}(\mathcal X)\oplus\mathcal E^\perp$ and
$\mathcal H=\mathcal E\oplus\mathcal E^\perp$. This codimension is at most that of $\mathcal X$, which is
$\dim\mathcal Z$. Finally $D=\dim\mathcal E/(1-\delta_{\mathcal E})$. \qed
\emph{Remarks.} (1) \emph{The blocks are not small, and the images are not nearly orthogonal.} For every
family, $\operatorname{tr}(Q^2)\ge(\operatorname{tr}Q)^2/D$, by the Cauchy--Schwarz inequality for the
eigenvalues of $Q$. If all $B_{\mathsf w}$ are isometries, then $K_{\mathsf w\mathsf w}=1$, and this and (a) give
\begin{equation}\label{D:310}
\sum_{\mathsf w\ne\mathsf w'}\|K_{\mathsf w\mathsf w'}\|_{\rm HS}^2\ \ge\ \frac{S^2}D-S .
\end{equation}
The sum of the bounds $d_{\mathsf w}d_{\mathsf w'}/D$ over the same pairs is $(S^2-\sum_{\mathsf w}d_{\mathsf w}^2)/D$,
which exceeds the right side by at most $S$, that is, by the relative amount $D/S$ at most. By \eqref{tr:S3}, $1/D_*\le(1+\eta_1)/D$. So \eqref{tr:S1} and \eqref{tr:S3} assert that the squared norm of
every off-diagonal block is at most $(1+\eta_0)(1+\eta_1)$ times $d_{\mathsf w}d_{\mathsf w'}/D$. Up to this
factor and up to the relative error $D/S$, that is the least size that the blocks can have on average.
Statement (S) bounds $D$ by $D_*$ from above only; the bound in the other direction is in (R3) of \S4 and is
not used in this section. The number $d_{\mathsf w}d_{\mathsf w'}/D$ is also the mean size for subspaces in
general position: if $\Xi$ is a random unitary map of $\mathcal H$ for Haar measure and $\zeta,\zeta'$ are unit
vectors, the mean of $|\langle\zeta,\Xi\zeta'\rangle|^2$ is $1/D$, so the mean of $\|B^\dagger\Xi B'\|_{\rm HS}^2$ for
isometries $B,B'$ of ranks $\nu,\nu'$ is $\nu\nu'/D$. Orthogonal images would mean
$K_{\mathsf w\mathsf w'}=0$. Mutually orthogonal images have dimensions that add up to at most $D$. For
injective maps this is impossible when $S>D$. The maps of the source are not known to be injective, but
\eqref{tr:S2} bounds their ranks from below. The operator $K_{\mathsf w\mathsf w}-1$ is $-1$ on the kernel of
$B_{\mathsf w}$, so $\|K_{\mathsf w\mathsf w}-1\|_{\rm HS}^2\ge d_{\mathsf w}-\operatorname{rank}B_{\mathsf w}$, and
\eqref{tr:S2} gives $\operatorname{rank}B_{\mathsf w}\ge(1-e_0)\,d_{\mathsf w}$. Under the hypotheses of
Corollary~T2 below, $e_0\le\frac1{64}$, $S\ge x^{C_H}D_*\ge4D_*$ and $D\le\frac98D_*$. So the ranks add up to
at least $\frac{63}{64}S>D$, which is more than the dimension of the target, and the images cannot all be
mutually orthogonal. The Gram block estimates control their total squared overlap
and put $Q$ close to its mean eigenvalue in Hilbert--Schmidt norm. Precisely, for a Hermitian operator $Q$ on
$\mathcal H$ one has $\operatorname{tr}(Q^2)-(\operatorname{tr}Q)^2/D=\|Q-(\operatorname{tr}Q/D)\cdot1\|_{\rm HS}^2$,
so under the hypotheses of Lemma~T1(c) the bound \eqref{tr:F1} is
\begin{equation}\label{tr:QHS}
\Big\|Q-\frac{\operatorname{tr}Q}D\cdot1\Big\|_{\rm HS}^2\ \le\ 5\varkappa\,\frac{(\operatorname{tr}Q)^2}D .
\end{equation}
The operator $Q=\sum_{\mathsf w}B_{\mathsf w}B_{\mathsf w}^\dagger$, with
$B_{\mathsf w}=c_0(\mathsf w)^{-1/2}P_{\mathsf w}$ for the maps of the source, is not the sum of the projections onto the images:
$B_{\mathsf w}B_{\mathsf w}^\dagger$ is a projection only if $B_{\mathsf w}$ is a partial isometry.
(2) \emph{The constant $5$.} The term $(1+\sqrt{e_0})^2S$ in \eqref{tr:cor} comes from the diagonal blocks. It
is the reason why \eqref{tr:F1} needs $D_*\le\varkappa S$: the total dimension $S$ of the sources must exceed
the dimension of the target by the factor $1/\varkappa$. A term of this size is present on average for maps in
general position: for isometries $B_{\mathsf w}$ composed with independent random unitary maps of
$\mathcal H$, the mean of $\operatorname{tr}(Q^2)$ is $S+(S^2-\sum_{\mathsf w}d_{\mathsf w}^2)/D$ by Remark~(1), while
$\operatorname{tr}Q=S$; so the mean of $\operatorname{tr}(Q^2)D/(\operatorname{tr}Q)^2-1$ is about $D/S$. This is
a statement about a mean. Lemma~T1(c) is an upper bound, and \eqref{tr:S1}--\eqref{tr:S3} do not bound
$\operatorname{tr}(Q^2)D/(\operatorname{tr}Q)^2-1$ from below. For example, if every $B_{\mathsf w}$ is a unitary
map of $\mathcal H$, then \eqref{tr:S1}--\eqref{tr:S3} hold with $D_*=D$ and $\eta_0=e_0=\eta_1=0$, and
$Q=|\mathsf W|\cdot1$, so this number is $0$, while $D_*/S=1/|\mathsf W|$. (Another example, with $d_{\mathsf w}=1$: the $p(p+1)$ lines spanned by the vectors of $p+1$ mutually unbiased
bases of $\C^p$, where such bases exist. Here $Q=(p+1)\cdot1$ and $D_*/S=1/(p+1)$.)
(3) The archive contains statements with these names. \texttt{CorBounds} is for (b).
\texttt{TraceSquareAndDiagBounds} is for (c), with $e_0\le\frac14$ where (c) has $\frac1{64}$.
\texttt{CompressTraceSquareBound} is a variant of (c), not of (d): the maps are first restricted to
subspaces of total codimension at most $\alpha S$, and the conclusion is the second-moment bound for the
restricted maps with $\eta=5\varkappa+3\sqrt\alpha$ (for $\varkappa\le\frac1{20}$, $0\le\alpha\le\frac14$). The
bound for the diagonal blocks of the restricted maps, with $e=2e_0$, is the conclusion of another statement,
\texttt{CompressDiagDefectBound} (for $\alpha\le\frac12$). The proofs above
are ours. The Lean proofs of these statements were not read. By the dependency computation the final theorem depends on
\texttt{CompressTraceSquareBound} and not on \texttt{CorBounds} or \texttt{TraceSquareAndDiagBounds}. The name
\texttt{CompressDiagDefectBound} was not among those queried.
\begin{altbox}
Corollary~T2, with Proposition~M4 of \S\ref{as:sec}, is this paper's route to the mean-slope inequality
(H8). The source does not state Corollary~T2; it proves (H8) from a theorem on lattices of its own
(\texttt{TheoremF}), with three further conditions (\S\ref{as:sec}, \S4).
\end{altbox}
\textbf{Corollary T2} (the hypotheses of Part~II, \S6.9 for the maps of the source, and for arbitrary
subspaces). \emph{Assume \textup{(S)} with \eqref{tr:proviso}, \textup{(I)} with $\delta_{\rm p}<1$, and
\textup{(P)}, for one record. Let $C_H>0$ and put $\varkappa=x^{-C_H}$. Let $\alpha_{\rm ram},\alpha'\ge0$, and for each
word let $\mathcal U_{\mathsf w}\subset\mathcal M_{\mathsf w}$ be a complex subspace. Assume further}
\begin{equation}\label{tr:side}
|\mathsf W|\ \ge\ C_0\,\mathsf G^2x^{C_H},\qquad
d_{\mathsf w}-d^{\rm ram}_{\mathsf w}\le\alpha_{\rm ram}\,d_{\mathsf w}\ \ (\mathsf w\in\mathsf W),\qquad
\varkappa\le\tfrac14,\qquad \exp(-x^{\varepsilon/8})\le\varkappa/2 ,
\end{equation}
\begin{equation}\label{tr:sub}
\sum_{\mathsf w}\big(d^{\rm ram}_{\mathsf w}-\dim\mathcal U_{\mathsf w}\big)\ \le\ \alpha'\sum_{\mathsf w}d_{\mathsf w}.
\end{equation}
\emph{For each word let $\beta_{\mathsf w}:\mathcal M_{\mathsf w}\to\operatorname{Hom}_{\mathbb L}(\mathcal E_{\mathbb L},\mathbb L)\otimes_{\mathbb L}\C$
be the complexification of the map $\varphi\mapsto\mathfrak B^{\rm alg}_{\mathsf w}(\varphi,\cdot)$ on
$\mathcal M_{\mathsf w,\mathbb L}$; here $\mathcal M_{\mathsf w,\mathbb L}\otimes_{\mathbb L}\C$ is identified with
$\mathcal M_{\mathsf w}$ as in \S1. The target is identified with the dual $\mathcal E_0^\vee$ of
$\mathcal E_0$ by the map $\mathcal E_{\mathbb L}\to\mathcal E_0$ of \S1. Then the sum of the spaces
$\beta_{\mathsf w}(\mathcal U_{\mathsf w})$ has codimension at most}
\begin{equation}\label{tr:final}
\frac{5x^{-C_H}+4(\alpha_{\rm ram}+\alpha')+4\sqrt{e_0}}{1-\delta_{\rm p}}\ D_{\rm r}
\end{equation}
\emph{in $\mathcal E_0^\vee$, which has dimension $D_{\rm r}$ by \eqref{tr:dimE}. In particular, for
$\mathcal U_{\mathsf w}=\mathcal M_{\mathsf w}$ and $\alpha'=0$, the sum of the images of the $\beta_{\mathsf w}$ has
codimension at most $(5x^{-C_H}+4\alpha_{\rm ram}+4\sqrt{e_0})D_{\rm r}/(1-\delta_{\rm p})$.}
\emph{Proof.} First, $c_0(\mathsf w)>0$ for every word, so that $B_{\mathsf w}$ is defined. Indeed
$d_{\mathsf w}\ge1$ by the lower bound in \eqref{tr:proviso}, and $e_0<1$ by \eqref{tr:small}; if
$c_0(\mathsf w)=0$, then $K_{\mathsf w\mathsf w}=0$ and \eqref{tr:S2} would read $d_{\mathsf w}\le e_0d_{\mathsf w}$.
(This is \texttt{unfolding\_constant\_pos\_of\_diagonal} in the source.) By the lower bound in
\eqref{tr:proviso}, $d_{\mathsf w}\ge D_*/(C_0\mathsf G^2)$, so
$S\ge|\mathsf W|D_*/(C_0\mathsf G^2)\ge D_*/\varkappa$. With \eqref{tr:small} and the last condition of
\eqref{tr:side}, \eqref{tr:kap} holds; and $D\ge1$, because \eqref{tr:S2} with $e_0<1$ gives $B_{\mathsf w}\ne0$. (If $\eta_0<-1$, \eqref{tr:S1} forces $|\mathsf W|=1$, which the first
condition of \eqref{tr:side} excludes.) By the second condition of \eqref{tr:side} and by \eqref{tr:sub},
$\sum_{\mathsf w}(d_{\mathsf w}-\dim\mathcal U_{\mathsf w})\le(\alpha_{\rm ram}+\alpha')S$.
\emph{The estimate in $\mathcal H$.} The space $\mathcal E=\mathsf s(\mathcal E_0)$ is a complex subspace of
$\mathcal H$, because $c\,\mathsf s(F)=\mathsf s(\bar cF)$. Its dimension is $D_{\rm r}=(1-\delta_{\rm p})D$,
because $\mathsf s$ is injective and maps a basis of $\mathcal E_0$ to a basis of $\mathcal E$. Let $\pi_{\mathcal E}$ be
the orthogonal projection of $\mathcal H$ onto $\mathcal E$. Apply Lemma~T1(d) with the subspaces
$\Psi_{\mathsf w}\mathcal U_{\mathsf w}\subset\mathcal M_{\mathsf w}\subset\mathcal C_{\mathsf w}$, which have the
dimensions of the $\mathcal U_{\mathsf w}$, with $\alpha_{\rm ram}+\alpha'$ in place of $\alpha$, and with
$\delta_{\mathcal E}=\delta_{\rm p}$. Since $P_{\mathsf w}$ and $B_{\mathsf w}$ differ by a positive factor, the
space $\mathcal Y=\sum_{\mathsf w}\pi_{\mathcal E} P_{\mathsf w}\Psi_{\mathsf w}\mathcal U_{\mathsf w}$ has codimension at most
\eqref{tr:final} in $\mathcal E$. This step uses only the subspace $\mathcal E$ of $\mathcal H$, and neither
$\mathsf s$ nor the scalars of $\mathcal E_0$.
\emph{The passage to the dual.} Let $\Lambda:\mathcal H\to\mathcal E_0^\vee$ send $h$ to the form
\begin{equation}\label{D:315}
\Lambda(h):\ F\longmapsto\langle\mathsf s\Psi F,\,h\rangle_{\mathcal H}\qquad(F\in\mathcal E_0).
\end{equation}
The form $\Lambda(h)$ is $\C$-linear in $F$, by the computation after \eqref{tr:P}; so it lies in
$\mathcal E_0^\vee$. The map $\Lambda$ is $\C$-linear in $h$. Its kernel is the set of $h$ orthogonal to
$\mathsf s\Psi(\mathcal E_0)=\mathsf s(\mathcal E_0)=\mathcal E$, that is, $\mathcal E^\perp$. So
$\Lambda=\Lambda\circ\pi_{\mathcal E}$, the restriction of $\Lambda$ to $\mathcal E$ is injective, and since
$\dim\mathcal E=D_{\rm r}=\dim\mathcal E_0^\vee$ it maps $\mathcal E$ isomorphically onto $\mathcal E_0^\vee$.
Hence $\Lambda$ maps $\mathcal H$ onto $\mathcal E_0^\vee$, and $\Lambda(\mathcal Y)$ has in $\mathcal E_0^\vee$
the codimension of $\mathcal Y$ in $\mathcal E$. By \eqref{tr:P}, the map
$\varphi\mapsto\mathfrak B_{\mathsf w}(\varphi,\cdot)$ from $\mathcal M_{\mathsf w}$ to $\mathcal E_0^\vee$ is
$\lambda_{\mathsf w}\,\Lambda P_{\mathsf w}\Psi_{\mathsf w}$, a $\C$-linear map. The image of $\mathcal U_{\mathsf w}$
under it is $\Lambda\pi_{\mathcal E} P_{\mathsf w}\Psi_{\mathsf w}\mathcal U_{\mathsf w}$, because $\lambda_{\mathsf w}\ne0$ and the
image is a complex subspace. So the sum of these images is $\Lambda(\mathcal Y)$.
\emph{The algebraic model.} The map $\mathcal E_{\mathbb L}\to\mathcal E_0$ is linear over $\mathbb L$ and maps
an $\mathbb L$-basis to a $\C$-basis. So restriction of forms along it is a $\C$-linear isomorphism of
$\mathcal E_0^\vee$ with $\operatorname{Hom}_{\mathbb L}(\mathcal E_{\mathbb L},\mathbb L)\otimes_{\mathbb L}\C$.
Under it and under $\mathcal M_{\mathsf w,\mathbb L}\otimes_{\mathbb L}\C=\mathcal M_{\mathsf w}$, the map
$\varphi\mapsto\mathfrak B_{\mathsf w}(\varphi,\cdot)$ is $\beta_{\mathsf w}$: both are $\C$-linear, and by (P1)
they agree on the image of $\mathcal M_{\mathsf w,\mathbb L}$, which spans $\mathcal M_{\mathsf w}$. \qed
\emph{On the two scalar actions.} Every space in this proof is a complex space, and every map in it is
$\C$-linear, except $\mathsf s$. The conjugate-linear map $\mathsf s$ occurs only inside the inner product,
in its conjugate-linear variable. The constants are those of Lemma~T1(d).
The corollary is stated for arbitrary subspaces because Part~II, \S6.10 needs it so: there the rank bound is
applied after discarding directions, for every level of the slope filtration. The subspaces that occur are
complexifications of $\mathbb L$-subspaces of $\mathcal M_{\mathsf w,\mathbb L}$.
\emph{The side conditions in the source.} For the second condition of \eqref{tr:side}: each word has a level
prime $\mathcal T(\mathsf w)\ge b^{m/2}$, and
$d^{\rm ram}_{\mathsf w}=d_{\mathsf w}(1-1/(\mathcal T(\mathsf w)-1))^f$ (\texttt{RamRank\_at}); by Bernoulli's
inequality this gives $\alpha_{\rm ram}=2f/b$ for $b\ge3$ (\texttt{ramShare\_at\_of}). The number $\mathcal T(\mathsf w)$ is
the level $\mathcal T$ of Part~II, \S6.7, which is said there to be attached to one choice of lattice data. In
the source it depends on the translate and on the word (\texttt{T u0 u}). The first condition of
\eqref{tr:side} is \texttt{ChCode\_at}. In the source the number of words is fixed at that size: with $C_0=3$,
\begin{equation}\label{tr:words}
|\mathsf W|=\big\lceil 3\,\mathsf G^2x^{C_H}\big\rceil,\qquad\text{so that, under \eqref{tr:proviso},}\qquad
x^{C_H}\ \le\ \frac S{D_*}\ \le\ 9x^{C_H}+3
\end{equation}
(the equality is a clause in \texttt{DesignS.lean}, where the exponent is the one passed to
\texttt{ChCode\_at}; the two bounds are ours, from $D_*/(3\mathsf G^2)\le d_{\mathsf w}\le3D_*/\mathsf G^2$).
Since the words have $k-2$ letters, this requires $2^{k-2}\ge|\mathsf W|$. The source has
$\log|\mathsf W|\le(k-3)\log2$ (a clause of \texttt{Win\_at}) and the size condition
$8C_{\mathsf G}\,m^5f\,x^\varepsilon\le k$ (a clause of \texttt{SizeKRel}), with
$m\approx x^{1/2-\varepsilon/16}$, $n\approx x^{2+8\varepsilon}$ and $k\approx x^{9/2+10\varepsilon}$, each up to a
factor $x^{\pm\varepsilon/100}$ (\texttt{SizeM}, \texttt{SizeN}, \texttt{SizeK}). The rounded sizes
$m\approx\sqrt x$, $n\approx x^2$, $k\approx x^{9/2}$ of \S I.8 do not satisfy this condition: they give
$m^5f\,x^\varepsilon=2x^{9/2+\varepsilon}$. By the dependency computation the final theorem depends on
\texttt{RamRank\_at}, \texttt{ramShare\_at\_of} and \texttt{ChCode\_at}. The names \texttt{Win\_at},
\texttt{SizeKRel}, \texttt{SizeM}, \texttt{SizeN} and \texttt{SizeK} were not among those queried.
\textbf{How the source uses the corollary.} The source does not state Corollary~T2. It applies a theorem on
lattices (\texttt{TheoremF}). By the names of the declarations, its
proof uses the lemma of Part~II, \S6.9 in the form \texttt{FrameLA1}, which is stated for arbitrary
subspaces and has $\eta$ and not $2\eta$ (the
chain of names from \texttt{frame\_at\_of} to \texttt{frame\_linear\_algebra\_first} was followed; the proof
terms were not read). The conclusion is the mean-slope inequality of Part~II, \S6.10, for each translate,
with the error term
\begin{equation}\label{tr:frame}
\frac1{1-\delta_{\rm p}}\Big(4u\log\big(1+\tfrac Hu\big)+(\eta+4\sqrt e)H\Big),\qquad
\eta=5x^{-C_H}+3\sqrt{\alpha_{\rm ram}},\quad e=2e_0,
\end{equation}
and with $-\log|\mathsf W|$ as a separate term of the lower bound, outside the bracket and not multiplied
by $(1-\delta_{\rm p})^{-1}$ (\texttt{Frame\_at}, \texttt{frame\_at\_of}). Here $u$ and $H$ are the
spread and the height bound of Part~II, \S6.10, and $\alpha_{\rm ram}$ is any number with $\alpha_{\rm ram}\le\frac14$ for which the
second condition of \eqref{tr:side} holds (\texttt{de} in the Lean); the statement also requires $x^{-C_H}\le\frac1{20}$. The values of $\eta$ and $e$ in
\eqref{tr:frame} are the ones that the proof of \texttt{frame\_at\_of} supplies. The source then takes
$\alpha_{\rm ram}=e^{-2x^{\varepsilon/8}}$, so that $\sqrt{\alpha_{\rm ram}}=\exp(-x^{\varepsilon/8})$, and uses
$\sqrt{e_0}\le \exp(-x^{\varepsilon/8})$ from \eqref{tr:small} (\texttt{matRealF\_of}). For all sufficiently
large $x$, $(3+4\sqrt2)\,\exp(-x^{\varepsilon/8})x^{C_H}\le1$. Since $\eta=5x^{-C_H}+3\sqrt{\alpha_{\rm ram}}$ and $e=2e_0$,
this gives
\begin{equation}\label{tr:six}
(\eta+4\sqrt e)\,x^{C_H}\le6,\qquad\text{so that}\qquad(\eta+4\sqrt e)H\le6b\quad\text{for }H=x^{C_H}b
\end{equation}
(\texttt{FrameF}, \texttt{frameF\_of}). Indeed $(\eta+4\sqrt e)x^{C_H}=5+(3\sqrt{\alpha_{\rm ram}}+4\sqrt{2e_0})x^{C_H}$, and
the bracket is at most $(3+4\sqrt2)\exp(-x^{\varepsilon/8})$. The weaker bound
$\exp(-x^{\varepsilon/8})\le x^{-C_H}/2$, which is the last condition of \eqref{tr:side}, would not suffice: it
leaves $(3+4\sqrt2)/2>1$ for the terms beyond $5$. In the Lean the hypothesis of \texttt{frameF\_of} is
$(3\sqrt{\texttt{de}}+4\sqrt{\texttt{eB}})\,x^{C_H}\le1$ with $0\le\texttt{de}\le\frac14$ and
$0\le\texttt{eB}\le\frac14$ (\texttt{FrameRealF}), where \texttt{de} is $\alpha_{\rm ram}$ and \texttt{eB} is an upper
bound for $e$; \texttt{matRealF\_of} proves it for $x\ge18+|a_0|+|a_1|$. Here $a_0$ is the threshold in its
hypothesis (\texttt{MatSF}), and $a_1$ is a number such that $x^{C_H+1}\le\exp(x^{\varepsilon/8})$ for all
$x\ge\max(a_1,1)$. For such $x$ the proof deduces $\exp(-x^{\varepsilon/8})x^{C_H}\le\frac1{18}$, and it
uses the cruder constant $11$ in place of $3+4\sqrt2$. So the threshold is not $18$; it depends on
$\varepsilon$ and $C_H$. The exponent $C_H$ is the one in the bound
$H\le x^{C_H}b$ of the source (a clause of \texttt{LinkDIV\_at}).
\emph{What is known about the use of these declarations.} \texttt{blockReal\_at\_of} is in the dependency lists
as a declaration that the final theorem depends on. \texttt{frame\_at\_of} and \texttt{matRealF\_of} were first reached by reading proof terms from \texttt{blockReal\_at\_of}, and a later dependency computation confirms that the final theorem depends on both. The chain of proof terms is this. \texttt{blockReal\_at\_of} is used only in the proof of
\texttt{matKF\_of}. \texttt{matKF\_of} is used in four places. In each, its value is an argument of
\texttt{frameRealF\_of''}, and the value of \texttt{frameRealF\_of''} is an argument of \texttt{frameF\_of}.
\texttt{frameRealF\_of''} uses \texttt{matRealF\_of} through \texttt{frameRealF\_of'}, and
\texttt{frameF\_of} uses \texttt{frame\_at\_of}. The same computation shows that the final theorem depends on \texttt{LinkIRR}, \texttt{TheoremF}, \texttt{FrameLA1},
\texttt{frame\_linear\_algebra\_first}, \texttt{Frame\_at}, \texttt{FrameF}, \texttt{matSF\_of},
\texttt{ChCode\_at} and \texttt{CodeUpF}, and does not depend on \texttt{MeanBoundSecondForm}. The statement \texttt{FrameLA} and its
proof \texttt{frame\_linear\_algebra\_bound} are in the lists as not used by the final theorem, as Part~II,
\S6.9 notes. The final theorem also depends on \texttt{matKF\_of}, on
\texttt{unfolding\_constant\_pos\_of\_diagonal} and on \texttt{TheoremFSharp}.
\textbf{The error term and the two means.} Part~II, \S6.9--6.10 states these points; here they are given
with the names of the source. \emph{The error.} For each translate, the mean-slope inequality of the source
has the form
\begin{equation}\label{tr:err}
(\text{mean slope of the target})\ \ge\ s-\log|\mathsf W|
-\frac1{1-\delta_{\rm p}}\Big(4u\log\big(1+\tfrac Hu\big)+(\eta+4\sqrt e)H\Big),
\end{equation}
with $\eta=5x^{-C_H}+3\sqrt{\alpha_{\rm ram}}$ and $e=2e_0$ as in \eqref{tr:frame}. Here $s$ is the mean over the words,
weighted by the ranks, of the slopes of the sources minus their heights (\texttt{sFrame}), and the target is
the dual lattice (\texttt{muDual}); this is the statement \texttt{Frame\_at}. The factor $(1-\delta_{\rm p})^{-1}$
multiplies the error bracket only. It is there because the lattice of the target spans a space of dimension
$D_{\rm r}$, not $D$, and the second moment is taken in $\mathcal H$; this is where (I) is used, as in
Lemma~T1(d). The term $-\log|\mathsf W|$ is separate. It is at most $(k-3)\log2$ in absolute value
(\texttt{Win\_at}), which is negligible against $b$. The archive has a statement with the same hypotheses and
no such term (\texttt{TheoremFSharp}). In $\eta$ only $\sqrt{\alpha_{\rm ram}}$ is exponentially small. The power of $x$
comes from the number of words \eqref{tr:words}: by Lemma~T1(c) a bound $5\varkappa$ for $\eta$ needs
$D_*\le\varkappa S$, and $D_*/S\ge1/(9x^{C_H}+3)$. So no bound for $\eta$ better than a negative power of $x$
follows from \textup{(S)} by Lemma~T1. This is enough, by \eqref{tr:six}. We do not assert that the number
$\operatorname{tr}(Q^2)D/(\operatorname{tr}Q)^2-1$ of the family is of that size: it was not bounded from
below (Remark~(2)). \emph{The two means.} Each translate of Part~II, \S4.2 has its own record, with its own
set of words (\S1). The mean over the words is an inner mean, weighted by the ranks, inside \eqref{tr:err}
for one translate: the number $s$ is, in the file \texttt{MeanBoundSecondForm.lean} (source [7] of Part~II),
\begin{center}\texttt{def s (u0 : U0) : }$\mathbb R$\texttt{ := wmean (D.d u0) (fun u => D.muN u0 u - D.h u0 u)}.\end{center} That file defines the
record and its hypotheses, among them the slope inequality \eqref{tr:err} for each translate
(\texttt{Data.SlopeIneq}; the final theorem depends on it). It also states a bound for the mean over the
translates, with an error \texttt{ErrX} that contains the mean of $\log|\mathsf W|$
(\texttt{MeanBoundSecondForm}). The final theorem does not depend on that statement. The route of the final
theorem keeps the translate fixed: \texttt{each\_unit\_bound\_statement}, in the file
\texttt{LevelOfCongruence.lean} (source [28] of Part~II), has the conclusion
\begin{center}\texttt{D.ASK u0 $\le$ D.Main u0 + ErrX5at D C Xpp u0}\quad for every \texttt{u0},\end{center}
and $\log|\mathsf W|$, for the set of words of the translate \texttt{u0}, is a term of \texttt{ErrX5at}. The
final theorem depends on \texttt{each\_unit\_bound\_statement}; its two uses in the archive, in the files
\texttt{ChTop.lean} (source [5]) and \texttt{PChain.lean}, are again for one translate. So the bound of the source holds for each
translate, and the mean over the translates in (M) is an outer mean, taken afterwards.
The inner mean is not visible in (M). The ``two moments'' of Part~II, \S6.9--6.10 are what the lemma there needs.
What the source assumes are the bounds \eqref{tr:S1}--\eqref{tr:S3} for the Gram blocks; the two moments
follow from them by Lemma~T1(b),(c).
\subsection*{3.\quad The mechanism in a finite model}
\begin{illbox}
This subsection, with Lemma~T3, is a model. It is not a step of the source's proof and is not used in the
proof.
\end{illbox}
Statement (S) is proved in the source by expanding each block $K_{\mathsf w\mathsf w'}$ as a sum of terms and
computing its squared norm as a sum over pairs of terms (see \S4). The simplest instance of this kind of
computation is the following, for theta lifts between two definite groups as in Part~II, \S6.1--6.2. It is
a statement about finite sets.
\textbf{The setting.} Let $\mathcal I$ and $\mathcal I'$ be nonempty finite sets with positive weights $\omega$ and
$\omega'$ (classes of lattices $L_i$ and $L'_{i'}$, with $\omega(i)=1/|\mathrm{Aut}\,L_i|$). For $i\in\mathcal I$
let $G_i$ be a finite group of order $1/\omega(i)$. For $i\in\mathcal I$, $i'\in\mathcal I'$ let
$\mathrm{Rep}(i,i')$ be a finite set on which $G_i$ acts freely (the isometric
embeddings $\rho:L_i\to L'_{i'}$, with $\sigma\in\mathrm{Aut}\,L_i$ acting by $\rho\mapsto\rho\sigma$). Let $A$ be a
finite abelian group and $\mathrm{inv}:\mathrm{Rep}(i,i')\to A$ maps with
$\mathrm{inv}(\rho\sigma)=\mathrm{inv}(\rho)$ for $\sigma\in G_i$. For a character $\chi$ of $A$ put
\begin{equation}\label{tr:theta}
\Theta_\chi(i,i')=\sum_{\rho\in\mathrm{Rep}(i,i')}\chi(\mathrm{inv}(\rho)),\qquad
(B_\chi f)(i')=\sum_{i\in\mathcal I}\omega(i)\,\Theta_\chi(i,i')\,f(i).
\end{equation}
So $\Theta_1(i,i')$ is the number of representations of $L_i$ by $L'_{i'}$, and $\Theta_\chi$ is a
representation number twisted by a character. The map $B_\chi$ goes from $L^2(\mathcal I,\omega)$ to
$L^2(\mathcal I',\omega')$, where $\langle f,g\rangle=\sum_i\omega(i)\overline{f(i)}g(i)$, conjugate-linear in the first variable as
everywhere in this section. An operator $Y$ on
$L^2(\mathcal I,\omega)$ has a kernel, also written $Y$, with
$(Yf)(i_1)=\sum_{i_2}\omega(i_2)Y(i_1,i_2)f(i_2)$; the kernel of the identity is $1/\omega(i_1)$ for $i_1=i_2$
and $0$ otherwise, and
$\|Y\|_{\rm HS}^2=\sum_{i_1,i_2}\omega(i_1)\omega(i_2)|Y(i_1,i_2)|^2$. For $i_1,i_2\in\mathcal I$ put
\begin{equation}\label{tr:N}
\mathcal N(i_1,i_2)=\sum_{i'\in\mathcal I'}\omega'(i')\,\#\big\{(\rho_1,\rho_2)\in\mathrm{Rep}(i_1,i')\times\mathrm{Rep}(i_2,i'):\ \mathrm{inv}(\rho_1)=\mathrm{inv}(\rho_2)\big\},
\end{equation}
and let $\mathcal N^{\circ}(i_1,i_2)$ be the same sum restricted to the pairs that are \emph{not} of the form
$(\rho,\rho\sigma)$ with $i_1=i_2$ and $\sigma\in G_{i_1}$.
\textbf{Lemma T3.} \emph{\textup{(a)} The operator $\sum_\chi B_\chi^\dagger B_\chi$ on $L^2(\mathcal I,\omega)$, the
sum being over all characters of $A$, has the kernel $|A|\,\mathcal N$.}
\emph{\textup{(b)} Assume that there is a number $\mathfrak m$ with}
\begin{equation}\label{tr:mass}
\sum_{i'\in\mathcal I'}\omega'(i')\,|\mathrm{Rep}(i,i')|=\mathfrak m\qquad\text{for every }i\in\mathcal I.
\end{equation}
\emph{Then $\sum_\chi B_\chi^\dagger B_\chi=|A|\,(\mathfrak m\cdot1+\mathfrak N^{\circ})$, where $\mathfrak N^{\circ}$ is the
operator with kernel $\mathcal N^\circ\ge0$, and}
\begin{equation}\label{tr:HS}
\Big\|\sum_\chi B_\chi^\dagger B_\chi-|A|\,\mathfrak m\cdot1\Big\|_{\rm HS}^2=|A|^2\sum_{i_1,i_2\in\mathcal I}\omega(i_1)\omega(i_2)\,\mathcal N^{\circ}(i_1,i_2)^2 .
\end{equation}
\emph{\textup{(c)} Under \eqref{tr:mass} and $\mathfrak m>0$, the family of the adjoint maps
$B_\chi^\dagger:L^2(\mathcal I',\omega')\to L^2(\mathcal I,\omega)$ satisfies the second-moment hypothesis of
Part~II, \S6.9: with $Q=\sum_\chi B_\chi^\dagger B_\chi$,}
\begin{equation}\label{tr:eta}
\operatorname{tr}(Q^2)\le(1+\eta)\frac{(\operatorname{tr}Q)^2}{|\mathcal I|},\qquad
\eta=\frac1{\mathfrak m^2|\mathcal I|}\sum_{i_1,i_2}\omega(i_1)\omega(i_2)\,\mathcal N^{\circ}(i_1,i_2)^2 .
\end{equation}
\emph{Proof.} (a) The adjoint of $B_\chi$ is
$(B_\chi^\dagger g)(i)=\sum_{i'}\omega'(i')\overline{\Theta_\chi(i,i')}g(i')$, as one sees by writing out
$\langle B_\chi f,g\rangle=\langle f,B_\chi^\dagger g\rangle$. So $B_\chi^\dagger B_\chi$ has the kernel
$\sum_{i'}\omega'(i')\overline{\Theta_\chi(i_1,i')}\Theta_\chi(i_2,i')$. Insert \eqref{tr:theta} and sum over $\chi$:
by the orthogonality of the characters of $A$,
$\sum_\chi\overline{\chi(\mathrm{inv}(\rho_1))}\chi(\mathrm{inv}(\rho_2))$ is $|A|$ if
$\mathrm{inv}(\rho_1)=\mathrm{inv}(\rho_2)$ and $0$ otherwise. This gives $|A|\,\mathcal N(i_1,i_2)$.
(b) Let $i_1=i_2=i$. The pairs $(\rho,\rho\sigma)$ with $\rho\in\mathrm{Rep}(i,i')$ and $\sigma\in G_i$ are
distinct for distinct $(\rho,\sigma)$, because the action is free; they satisfy
$\mathrm{inv}(\rho)=\mathrm{inv}(\rho\sigma)$; and their number is $|\mathrm{Rep}(i,i')|/\omega(i)$. By
\eqref{tr:mass} their contribution to $\mathcal N(i,i)$ is $\mathfrak m/\omega(i)$, which is the kernel of
$\mathfrak m\cdot1$. The rest is $\mathcal N^\circ$, by definition, and $\mathcal N^\circ\ge0$ because it is a
weighted count. \eqref{tr:HS} is the formula for the Hilbert--Schmidt norm of an operator with a kernel.
(c) For a Hermitian operator $Q$ on a space of dimension $\nu$ and any real $y$,
$\operatorname{tr}(Q^2)-(\operatorname{tr}Q)^2/\nu=\|Q-\frac{\operatorname{tr}Q}\nu\|_{\rm HS}^2\le\|Q-y\|_{\rm HS}^2$.
Take $\nu=|\mathcal I|$ and $y=|A|\,\mathfrak m$ and use \eqref{tr:HS}. Also
$\operatorname{tr}Q=|A|(\mathfrak m|\mathcal I|+\operatorname{tr}\mathfrak N^{\circ})\ge|A|\,\mathfrak m|\mathcal I|$,
because $\operatorname{tr}\mathfrak N^{\circ}=\sum_i\omega(i)\mathcal N^\circ(i,i)\ge0$. Divide. \qed
\emph{What the lemma shows.} The sum over the twists is a count of pairs of representations subject to one
condition, $\mathrm{inv}(\rho_1)=\mathrm{inv}(\rho_2)$: this is the form a relative trace formula takes when
both groups are definite. The pairs that are forced, $(\rho,\rho\sigma)$, give a multiple of the identity, and
the multiple is the mean number of representations \eqref{tr:mass}. The other pairs are coincidences, and
$\eta$ is their normalised mean square. Part (b) uses three hypotheses, and each is needed. The first is that
the action of $G_i$ is free: with stabilisers of order $2$ the identity of (b) fails. The second is the
invariance $\mathrm{inv}(\rho\sigma)=\mathrm{inv}(\rho)$: without it the forced pairs do not all satisfy the
condition, and the identity of (b) and \eqref{tr:HS} fail. (The number $\mathcal N^\circ$ is a restricted count
and stays nonnegative; it is the kernel $\mathcal N-\mathfrak m/\omega$ on the diagonal that can become
negative.) The third is \eqref{tr:mass}, which is not formal. For lattices it is Siegel's theorem: if
$\mathcal I'$ is a full genus and the $L_i$ belong to one genus, the left side of \eqref{tr:mass} is the mass
of the genus $\mathcal I'$ times a product of local densities, which depend only on the genus of $L_i$
(C.~L.~Siegel, \emph{\"Uber die analytische Theorie der quadratischen Formen}, Ann.\ of Math.\ 36 (1935); in
the adelic form, A.~Weil, \emph{Sur la formule de Siegel dans la th\'eorie des groupes classiques}, Acta
Math.\ 113 (1965); both cited from memory).
\emph{An example.} Let $L_1,L_2$ be the binary lattices with Gram matrices
$\big(\begin{smallmatrix}2&1\\1&12\end{smallmatrix}\big)$ and $\big(\begin{smallmatrix}4&1\\1&6\end{smallmatrix}\big)$
(twice the forms $X_1^2+X_1X_2+6X_2^2$ and $2X_1^2+X_1X_2+3X_2^2$ of discriminant $-23$, which form one genus and represent the
two classes under $\mathrm{GL}_2(\Z)$), with automorphism groups of orders $4$ and $2$, and let $\mathcal I'$
consist of the lattice $\Z^5$, which is alone in its genus, with $\omega'=1/(2^5\,5!)$. A count gives
$|\mathrm{Rep}(L_1,\Z^5)|=|\mathrm{Rep}(L_2,\Z^5)|=1920$, so \eqref{tr:mass} holds with $\mathfrak m=\frac12$; for
$\Z^6$ both numbers are $19200$. (For two forms of determinant $60$ in different genera,
$\big(\begin{smallmatrix}2&0\\0&30\end{smallmatrix}\big)$ and $\big(\begin{smallmatrix}6&0\\0&10\end{smallmatrix}\big)$, the
numbers for $\Z^5$ are $4480$ and $13440$.) Let $\varsigma_0,\dots,\varsigma_9$ be the ten $2\times2$ minors of
the pair of vectors $\rho$, in lexicographic order. Take for $\mathrm{inv}(\rho)$ the $55$ products
$\varsigma_\iota\varsigma_{\iota'}$ modulo a prime $\ell_0$; they are invariant under $G_i$, and
$A=(\Z/\ell_0)^{55}$. For $\ell_0=3$ one finds
$\mathcal N^\circ=\big(\begin{smallmatrix}2&0\\0&3\end{smallmatrix}\big)$. Then the true value
$\operatorname{tr}(Q^2)|\mathcal I|/(\operatorname{tr}Q)^2-1$ is $\frac19$, and the bound \eqref{tr:eta} gives
$\eta=5$. For $\ell_0=5$ and $\ell_0=11$ there are no coincidences,
$\mathcal N^\circ=0$, and $\sum_\chi B_\chi^\dagger B_\chi=|A|\,\mathfrak m$ exactly. With the single invariant
$\mathrm{inv}(\rho)=\varsigma_0^2+2\varsigma_9^2+3\varsigma_1\varsigma_4$ modulo $5$ (so $|A|=5$) the
coincidences dominate: $\mathcal N^\circ\approx\big(\begin{smallmatrix}242&173\\173&209\end{smallmatrix}\big)$. So the family of
twists must be large compared with the number of representations for the count $\mathcal N^\circ$ to be small. The
identities \eqref{tr:HS}, \eqref{tr:eta} were also checked numerically on random finite models.
\subsection*{4.\quad The statements behind \textup{(S)}, \textup{(I)} and \textup{(P)} in the source}
These are assumed here. For each we give the statement that was read, its Lean name, the kind of theorem it
is, and the parameter that produces the saving. References to the literature are from memory.
\textbf{(R1) The expansion of a block and its four parts} (\texttt{ClKppOff}, \texttt{ClKppDiag}, \texttt{ClOff},
\texttt{ClDiag}; they give (S) by \texttt{linkS\_concl}). Each block is an absolutely convergent sum
$K_{\mathsf w\mathsf w'}=\sum_\tau K^{(\tau)}_{\mathsf w\mathsf w'}$ over a set of \emph{terms} $\tau$ (\texttt{Term}, \texttt{aTerm}). A term has an
invariant in the totally real field (\texttt{Gterm}) and may be the identity term, or \emph{generic}. Write
$K''_{\mathsf w\mathsf w'}$ for the sum of the terms with invariant $0$ other than the identity term. The four
statements are: $K''_{\mathsf w\mathsf w'}=0$ for $\mathsf w\ne\mathsf w'$;
$\|K''_{\mathsf w\mathsf w}\|_{\rm HS}^2\le d_{\mathsf w}\exp(-kf\log k)$;
\begin{equation}\label{tr:four}
\|K_{\mathsf w\mathsf w'}-K''_{\mathsf w\mathsf w'}\|_{\rm HS}^2\le(1+b^{-6})\frac{d_{\mathsf w}d_{\mathsf w'}}{D_*}\ \ (\mathsf w\ne\mathsf w'),
\qquad
\|K_{\mathsf w\mathsf w}-K''_{\mathsf w\mathsf w}-1\|_{\rm HS}^2\le\mathsf G\,\frac{d_{\mathsf w}^2}{D_*}.
\end{equation}
With the upper bound in \eqref{tr:proviso}, $\mathsf G\,d_{\mathsf w}^2/D_*\le(C_0/\mathsf G)\,d_{\mathsf w}$: this is
\eqref{tr:S2}, and it shows where $e_0$ comes from. \emph{The diagonal bound is small because each
$\mathcal C_{\mathsf w}$ is a small part of $\mathcal H$}, of relative dimension about $\mathsf G^{-2}$, while
the constant in the second bound of \eqref{tr:four} is only $\mathsf G$. This is an expansion of the kind of
Petersson's formula for the inner products of Poincar\'e series, here for the Bessel periods of a unitary
group in $2(\frac m2-1)+k+1$ variables along a unitary group in $k$ variables; this number is $k+m-1$, the $r$ of \S III.4 (the periods of W.~T.~Gan,
B.~Gross and D.~Prasad, Ast\'erisque 346 (2012)); it is a relative trace formula in the sense of Jacquet. In
the source the squared norm of a part of the sum is expressed as a sum, over \emph{pairs} of terms, of inner
products of vectors attached to the terms (\texttt{pairSum}; compare \eqref{tr:N}), and the
pairs are divided by a rank $s_0\ge1$ and by being ``scalar'' or not. The pairs with $s_0=1$ that are scalar
and generic give the main term. The statements read are bounds for the classes of pairs:
\texttt{RowNGP} (non-generic terms: at most
$2^{-(k-m-3)}\exp(Cm^5f\log b)\,d_{\mathsf w}d_{\mathsf w'}/D_*$) and \texttt{RowMainEqP} (the main pairs of a diagonal
block: at most $\exp(Cm^5f\log b)\,d_{\mathsf w}^2/D_*$). Both are deduced in the source from (R2). The saving in
$\eta_0=b^{-6}$ comes from $k$ and from the level primes: the non-generic and the higher-rank pairs carry
factors $2^{-k}$ and $\exp(-ckf\log k)$ with $k\ge C'm^5fx^\varepsilon$, and the factor
$\prod_v(1+3/|\mathbb F_v|)$ over the places above $g_0,g_1$ is $1+O(b^{-7})$ when $g_0,g_1\ge(kb)^8$
(\texttt{NumPrice}). How these are combined in the proof of the first bound of \eqref{tr:four} was not read.
\textbf{(R2) The Siegel--Weil formula in the convergent range} (\texttt{SiegelWeilUnitaryConvergent}; the theorem
\texttt{siegelWeilUnitaryConvergent} is among the declarations the final theorem depends on). \emph{Let $E/E^+$ be
a CM extension, $J$ a nondegenerate Hermitian matrix of size $M$ over $E$, and $\nu$ an integer with $2\nu\psi_0>\xi_1>\psi_1>\dots>\psi_{k-2}>\xi_{k-1}>-\theta_0,\qquad \theta_00$ is not assumed: it follows from (S), see the proof of Corollary~T2.
\item \emph{The identification of the data of \S1} with spaces of automorphic forms, with Poincar\'e series
and with the pairing of the chain of lifts; and the passage from Corollary~T2 to the mean-slope inequality
(\texttt{TheoremF}, \texttt{frame\_at\_of}), which uses the slope filtration of Part~II, \S6.10. (A
passage from Corollary~T2 to the mean-slope inequality is derived in \S\ref{as:sec}, Proposition~M4, from
the rank bound and a cited fact on the filtration by slopes; it is not the passage of the source.) For what is
known about the dependence of the final theorem on these two declarations see the end of \S2.
\item (R1)--(R5) of \S4.
\end{enumerate}
\textbf{What this section proves, and what it assumes.} This section deduces the dimension bound from
the three trace, rank and pairing statements (S), (I), (P) and the size and subspace conditions
\eqref{tr:side}, \eqref{tr:sub} in T2. \emph{Proved outright:} Lemma~T1, including the
polynomial inequality \eqref{tr:poly}; Corollary~T2, for arbitrary subspaces, as that deduction; Lemma~T3;
and the arithmetic of the example of \S3 (by computation). \emph{Quoted from the
source without proof:} (S), (I), (P) and everything in \S4 and \S6. So the construction of the spaces and
maps and the arithmetic inputs are quoted. The assembly of (M) from Corollary~T2 and the other inputs is
in \S\ref{as:sec}; it is a reduction of (M) to numbered Hypotheses, not a proof of (M). Lemma~T3 is a model. It is not a step of
the source's proof: there the family is the set of words, the terms are attached to a Bessel subgroup, and
the larger group is, by our reading, not definite (the parameter \texttt{sigY0} of the source is the
signature $(k+\frac m2-1,\frac m2)$; it is the signature of the space \texttt{Y 0} of the record at every
embedding, by the field \texttt{baseSpace\_signature\_eq}). The statements \texttt{FrameLA}, \texttt{frame\_linear\_algebra\_bound},
\texttt{ThmSFree} and \texttt{KernelFree} of the archive are not used by the final theorem; the declarations
\texttt{LinkS}, \texttt{LinkS\_at}, \texttt{BesselId}, \texttt{blockReal\_at\_of}, \texttt{link\_alt\_alt\_bis},
\texttt{theoremS\_transport\_link\_zero}, \texttt{closed\_linkIRR\_of\_join\_count}, \texttt{rowNGP\_of\_siegelWeil},
\texttt{rowMainEqP\_of\_siegelWeil}, \texttt{siegelWeilUnitaryConvergent}, \texttt{adm13\_of\_kernel\_join},
\texttt{wuDecayOfGap}, \texttt{besselMapUniqGap} and \texttt{siegel\_mass\_ratio} are. So are, by a later
run of the same computation, \texttt{LinkIRR}, \texttt{TheoremF}, \texttt{FrameLA1},
\texttt{frame\_linear\_algebra\_first}, \texttt{Frame\_at}, \texttt{FrameF}, \texttt{frameF\_of},
\texttt{frame\_at\_of}, \texttt{matRealF\_of}, \texttt{matSF\_of}, \texttt{ChCode\_at}, \texttt{CodeUpF},
\texttt{RamRank\_at}, \texttt{ramShare\_at\_of}, \texttt{delp\_of\_allRows}, \texttt{Green},
\texttt{matKF\_of}, \texttt{unfolding\_constant\_pos\_of\_diagonal}, \texttt{TheoremFSharp},
\texttt{RRV\_finrank}, \texttt{jEE\_basis} (the field of \texttt{D7}) and
\texttt{CompressTraceSquareBound}. The final theorem does not depend on \texttt{CorBounds},
\texttt{TraceSquareAndDiagBounds} or \texttt{MeanBoundSecondForm}. Several declarations of the archive are named \texttt{offDiag}. The one that concerns this
section is \texttt{GlobalTheory.CarrierGap.offDiag}, which proves the off-diagonal bound
\texttt{TheoremSSelected} of (i) from the Siegel--Weil statements and \texttt{LoopRowS}. The final theorem
depends on it, and also on \texttt{each\_unit\_bound\_statement} and on \texttt{Data.SlopeIneq} (\S2).
\textbf{What remains.}
\begin{enumerate}[label=\textup{(\roman*)},leftmargin=2.4em]
\item The definition of $\mathcal H$, $\mathcal C_{\mathsf w}$ and $P_{\mathsf w}$ in classical terms (the group, the
level, the discrete series, the Poincar\'e series), and of the terms of the expansion (R1).
\item A proof of the first bound of \eqref{tr:four}: the main term with constant $1$ from (R2), and the bounds
for the other pairs. This is the centre of (S).
\item A proof of (P): why the pairing of the chain is an inner product with $P_{\mathsf w}\varphi$.
\item The count (R3) with its rate, and the distribution of the labels in (R4).
\item A run of the dependency computation for the names that were not queried: \texttt{Win\_at},
\texttt{SizeKRel}, \texttt{SizeM}, \texttt{SizeN}, \texttt{SizeK}, \texttt{SizesAt},
\texttt{CompressDiagDefectBound}.
\item Whether the number $\operatorname{tr}(Q^2)D/(\operatorname{tr}Q)^2-1$ of the family of the source is of the
size $x^{-C_H}$ or smaller; only the upper bound is known (the paragraph on the error term at the end of \S2).
\end{enumerate}
\endgroup
\section{The bound for Galois cohomology}\label{gc:sec}
This section concerns the bound \eqref{II:shabound} of Part~II, \S6.8 (Part~I, \S I.7, ``Denominators''): a bound
for the lengths of certain Galois cohomology groups of the field $E$, which the announcement \cite{Alp26}
calls a weakening of Vandiver's conjecture. It is the part of the proof that uses the most mathematics from
outside analytic number theory, and no proof of it is given here. The section states it exactly, shows how it
is used, describes the structure of its proof in the Lean development with the published theorems that
correspond to each step, and works out the simplest case.
\emph{Proved outright.} Lemma~G1 (lengths, orders and indices); Proposition~G2 (how the bound gives the
estimate for the denominators, given the inequality \texttt{LinkN\_at} of the source).
\emph{Proved from theorems of books that we consulted.} Proposition~G3: for the field $\Q$ the groups
vanish when a class group vanishes; with its corollaries for odd twists (Herbrand's theorem), for the twists
with $(\ell-1)\mid 2e$, and under Vandiver's conjecture. The theorems used are in Washington's book
\cite{Was82}; their statements and numbers were checked in a copy of the first edition. Lemma~G4: the class
number of $\Q(\sqrt\ell)$ is less than $\ell$; it is proved from Minkowski's theorem on lattice points
\cite[Ch.~I, (4.4)]{Neu99}. The numerical statements of \S5 are computed exactly.
\emph{Proved from the standard statements of class field theory.} The vanishing of
$\mathrm{Sha}_5(\Q(i),4)$, at the end of \S5. The proof is for this one field and this one twist.
\emph{Taken from the source without proof.} Theorem~G (the bound itself, Lean: \texttt{VWinAt} for the
trivial character); the inequality \texttt{LinkN\_at}; and every statement of \S4.
\emph{Citations.} They are of three kinds. (1) The books \cite{Was82}, \cite{Neu99} and \cite{NSW00} were
read in local copies (\cite{Was82} and \cite{NSW00} in the first edition); the test group G19 compared each
statement cited from them with the page. (2) The articles \cite{Sou03}, \cite{Kat04}, \cite{Kur92},
\cite{BC04}, \cite{Car12}, \cite{Car14}, \cite{CH13}, \cite{BS23} and the book \cite{Rub00} were not available to us.
Where a theorem or a section of one of them is named, the wording was compared with the publication by an
outside reviewer, and we say no more than his report says. (3) Everything else is cited from memory and is
marked so: \cite{Sou79}, the theorem of Voevodsky and Rost, \cite{MW84}, \cite{FW79}, the work of Harris and
Taylor and of Shin, and the last column of the table of \S4.
Letters introduced in this section: $\ell$ (a prime, as in \S III.5), $e$ (the twist; Part~II, \S6.8 writes
$a$), $t$ (a number of twists; in the construction it is the parameter written $t_0$ in \S III.5, and $t$
in \S III.4; Part~II, \S6.8 does not name it and writes the bound $\lfloor x^{400}\rfloor$), $V_0$, $S_\ell$, $G_{E,\ell}$, $G_v$, $W_e$, $\mathrm{Sha}_\ell(E,e)$,
$h_{\ell,e}$, $h^{\pm}_{\ell,e}$, $\jmath$ (complex conjugation), $\psi$ (a Dirichlet character),
$\mathfrak B$, $\eta_j(w)$, $H_j$, $y=x^{\varepsilon}$, $V$, $e_O$, $f_O$, $\kappa$, $c_\psi$, $x'$; in \S4:
$\mathcal K$, $\mathcal R$, $R$, $R'$, $c_0$, $\vartheta$, $\varrho$; and in \S5: $A$, $A^{(i)}$,
$X_\infty$, $H_\infty$, $\Gamma$, $\Pi$, $\omega$, $F$, $h$, $\mathfrak d$, $\mathfrak a$, $\alpha$, $T$, $L$,
$j$, $N$, $c$, $\delta$, $\lambda$, $z$, $\phi$, $a_1$, $a_2$, $\mathrm{rec}$, $u$, $\epsilon$, $\beta$. The
letters $x,\varepsilon,b,m,f,q,d,n$ have their meaning from Parts I and II; in particular
$b=\exp(x^{\varepsilon})$.
\emph{The letters are local.} The letters of this section have the meanings given here in this section
only. The clashes most likely to confuse are these. $n$ is the power of $2$ with $[E:\Q]=4n$; \S III.5
takes its $n$ from the record of the construction (\texttt{ord}), and \S1 says how the order of the frame
is related to the $n$ of Theorem~G; Soul\'e's twist, which he writes $n$, is written $n'$ in \S4. $t$ is a
number of twists, the $t_0$ of \S III.5; in \S III.5 the letter $t$ is an index. $e$ is the twist; $e(w)$
and $e_O$ are ramification indices (the $e_w$ of \S III.6); $e$ is never the base of the natural logarithm
here. $L_0$ is the base field of a tower, in \S4 only; the coefficient field, which is $L_0$ in \S III.6, is
called $K$ here, and $\mathcal K$ is an imaginary quadratic field. $\psi$ is a Dirichlet character and
$\Psi=\psi\chi_\ell^{e}$ a character; in \S III.2 $\psi(u,\chi)$ is a sum over prime powers, in \S III.4 and
\S III.7 $\psi$ and $\Psi$ are ranks, and in \S III.8 they are weights and unitary maps. $C$ is the
constant of \eqref{gc:link}, or an exponent in the table of \S4; it is not the $C$ of another section, and
it is not one of $c$ (a homomorphism, in \S5), $c_0$, $c_\psi$. Inside the section four letters have two or
more uses. $T$ is a finite group in Lemma~G1 and a real number in Lemma~G4. $N$ is a level or a conductor
in \S3 and \S4, the norm $N(w)$, $N(\mathfrak a)$ of a prime or an ideal, and the norm map of class groups
in the proof of the corollaries. $j$ numbers the maps of the chain in \S2 and is the map that extends
ideals in \S5. $\epsilon=\pm1$ is a sign in Step~4 of \S5; it is not $\varepsilon$.
\subsection*{1.\quad The statement in the source}
\textbf{The groups.} Let $E$ be a number field, $\ell$ a prime and $e$ an integer. Let $S_\ell$ be the set of
primes of $E$ above $\ell$, and $G_{E,\ell}$ the Galois group over $E$ of the largest extension of $E$ in which no
finite prime outside $S_\ell$ ramifies. Let $\chi_\ell\colon G_{E,\ell}\to\Z_\ell^\times$ be the cyclotomic
character, and let $W_e=\Q_\ell/\Z_\ell(-e)$: the discrete group $\Q_\ell/\Z_\ell$ on which $\sigma$ acts by
multiplication by $\chi_\ell(\sigma)^{-e}$. For $v\in S_\ell$ let $G_v\subset G_{E}$ be a decomposition group at
$v$, mapped to $G_{E,\ell}$. Put
\begin{equation}\label{gc:sha}
\begin{aligned}
\mathrm{Sha}_\ell(E,e)&=\ker\Big(H^1(G_{E,\ell},W_e)\longrightarrow\prod_{v\in S_\ell}H^1(G_v,W_e)\Big),\\
h_{\ell,e}&=\operatorname{length}_{\Z_\ell}\mathrm{Sha}_\ell(E,e)\ \in\ \{0,1,2,\dots\}\cup\{\infty\}.
\end{aligned}
\end{equation}
Cohomology is that of continuous cochains: $H^1$ is the group of continuous maps $\xi$ with
$\xi(\sigma\sigma')=\xi(\sigma)+\sigma\cdot \xi(\sigma')$, modulo the maps $\sigma\mapsto \sigma\cdot w-w$. So
$\mathrm{Sha}_\ell(E,e)$ consists of the
classes that are unramified outside $\ell$ and trivial at every prime above $\ell$, as in Part~II, \S6.8. The
length of a $\Z_\ell$-module is the length of a longest chain of submodules; a finite module of length $h$
has $\ell^{h}$ elements, and the length is $\infty$ if there is no finite bound.
In the Lean: \texttt{LData} (a choice of a place of $\overline E$ above each $v\in S_\ell$ and of the
character $\chi_\ell$ on $G_{E,\ell}$), \texttt{Sha} and \texttt{shaLen}
(\texttt{Formalism/GaloisCohomology/Statement.lean}, lines 54, 75, 78); the value $\infty$ is written $\top$.
The length does not depend on the choices; this is proved in the source (\texttt{shaLen\_eq\_}\allowbreak\texttt{shaInv}).
\textbf{The statement} $\mathrm{VVle}(E,t,V_0)$, for an integer $t\ge1$ and a real number $V_0$ (Lean: \texttt{VVle}, in the namespace
\texttt{UpperTheory.Top}; \texttt{ExistsPageN.lean}:12).
\emph{For every algebraic closure of $E$ and every choice of the data above, for every prime $\ell$:}
\begin{equation}\label{gc:vvle}
h_{\ell,e}<\infty\quad(1\le e1$,
$y=x^{\varepsilon}$, $b=\exp(y)$, $f,m\ge1$, $N_c\ge0$, $D_0\ge0$, $C$ real, $B_0=f\,m\,b\,y$. Suppose
$(\log x)^2\le y$, that \eqref{gc:link} holds with $d_j=D_0$, and that
$V=\sum_\ell\log\ell\sum_{1\le e0$ the set
$|x|+|y|\le T$ is convex and symmetric, of area $2T^2$. Minkowski's lattice point theorem
\cite[Ch.~I, (4.4)]{Neu99} says that it contains a nonzero point of the lattice if
$2T^2>4\sqrt{\mathfrak d}\,N(\mathfrak a)$. The inequality is strict there. (The case of equality for
compact sets is the last sentence of Exercise~2 of \S4 there, without proof; we do not use it.) Take
$T^2=2\sqrt{\mathfrak d}\,N(\mathfrak a)$. For every $T'>T$ the theorem gives a nonzero lattice point with
$|x|+|y|\le T'$. The lattice has only finitely many points with $|x|+|y|\le 2T$. So one of them, nonzero,
serves for a sequence of numbers $T'$ decreasing to $T$. We get
$\alpha\in\mathfrak a$, $\alpha\ne0$, with $|\alpha|+|\alpha'|\le T$, hence
\begin{equation}\label{D:344}
|\alpha\alpha'|\ \le\ \tfrac14\big(|\alpha|+|\alpha'|\big)^2\ \le\ \tfrac14T^2=\tfrac12\sqrt{\mathfrak d}\,N(\mathfrak a).
\end{equation}
Now let an ideal class be given, and let $\mathfrak a$ be an integral ideal in the inverse class. The ideal
$(\alpha)\mathfrak a^{-1}$ is integral, because $\alpha\in\mathfrak a$. It lies in the given class, and its
norm is $|\alpha\alpha'|/N(\mathfrak a)\le\tfrac12\sqrt{\mathfrak d}$.
\emph{Counting: for $j\ge1$, the number of integral ideals of $F$ of norm $j$ is at most $j$.} An ideal of norm
$j$ is in one way a product, over the primes $p$ dividing $j$, of ideals whose norms are the powers of $p$
in $j$. So let $j=p^{k}$. If $p$ splits, $(p)=\mathfrak p\mathfrak p'$, the ideals of norm $p^k$ are the
$k+1$ ideals $\mathfrak p^{k_1}\mathfrak p'^{\,k_2}$ with $k_1+k_2=k$. If $p$ is inert, there is one such ideal
for even $k$ and none for odd $k$. If $p$ ramifies, $(p)=\mathfrak p^2$, there is one, $\mathfrak p^{k}$. In
each case the number is at most $k+1$, the number of divisors of $p^k$. Hence the number of ideals of norm
$j$ is at most the number of positive divisors of $j$, which is at most $j$.
\emph{Conclusion.} Every ideal class contains an integral ideal of norm $j\le\tfrac12\sqrt{\mathfrak d}\le\sqrt\ell$.
The sum of the integers $j$ with $1\le j\le\sqrt\ell$ is at most $\tfrac12\sqrt\ell\,(\sqrt\ell+1)$. So
\begin{equation}\label{D:345}
h\ \le\ \sum_{1\le j\le\sqrt\ell}j\ \le\ \frac{\sqrt\ell\,(\sqrt\ell+1)}2=\frac{\ell+\sqrt\ell}2\ <\ \ell ,
\end{equation}
because $\sqrt\ell<\ell$ for $\ell>1$. This holds for every prime $\ell$, including $2$ and $3$.\qed
\emph{Numerical check.} The test group G12 computed the class numbers of
$\Q(\sqrt\ell)$ for all $17\,984$ primes $\ell<2\cdot10^5$ by cycles of reduced forms (script
\texttt{t04\_classno.py} in \texttt{zeta-paper\_tests/displays/G12}): $h<\sqrt\ell$ in every case. The test
group G19 reproduced this with PARI (the largest class number is $153$, at $\ell=176401$; PARI's values
were not certified), and for the $9592$ primes $\ell<10^5$ it checked every inequality of the proof.
\textbf{Corollaries.} \emph{\textup{(a)} Let $e\ge1$ be odd. If $\ell$ does not divide the numerator of
$B_{e+1}/(e+1)$, then $\mathrm{Sha}_\ell(\Q,e)=0$. \textup{(b)} Let $e\ge2$ be even and $(\ell-1)\mid2e$. Then
$\mathrm{Sha}_\ell(\Q,e)=0$. \textup{(c)} Let $e\ge2$ be even. If $\ell$ does not divide the class number of
$\Q(\zeta_\ell+\zeta_\ell^{-1})$, then $\mathrm{Sha}_\ell(\Q,e)=0$.}
\emph{Proof.} We use this fact: if $F\subset\Q(\zeta_\ell)$ is a subfield, then the $\ell$-part of the class
group of $F$ is the part of $A$ fixed by $\mathrm{Gal}(\Q(\zeta_\ell)/F)$. Indeed, write
$L=\Q(\zeta_\ell)$ in this proof, let $j\colon\mathrm{Cl}(F)\to\mathrm{Cl}(L)$ be the map that extends
ideals, and $N\colon\mathrm{Cl}(L)\to\mathrm{Cl}(F)$ the norm. Then
\begin{equation}\label{D:346}
N\circ j=[L:F]\ \text{ on }\mathrm{Cl}(F),\qquad j\circ N=\sum_{\sigma\in\mathrm{Gal}(L/F)}\sigma\ \text{ on }\mathrm{Cl}(L).
\end{equation}
The degree $[L:F]$ is prime to $\ell$. By the first identity $j$ is injective on the $\ell$-part. By the
second, a class $z$ of $A$ fixed by $\mathrm{Gal}(L/F)$ satisfies $j(N(z))=[L:F]\,z$, so it lies in the
image of $j$; and the image of $j$ is fixed by $\mathrm{Gal}(L/F)$.
(a) Here $i\equiv-e$ is odd. If $(\ell-1)\mid(e+1)$ then $i\equiv1$ and $A^{(1)}=0$
\cite[Prop.~6.16]{Was82}. Otherwise take $3\le i\le\ell-2$. By Herbrand's theorem \cite[Thm.~6.17]{Was82},
$A^{(i)}=0$ unless $\ell\mid B_{\ell-i}$; and $B_{\ell-i}/(\ell-i)\equiv B_{e+1}/(e+1)\pmod\ell$
by Kummer's congruence \cite[Cor.~5.14]{Was82}, since $\ell-i\equiv e+1\not\equiv0\pmod{\ell-1}$. (b) If
$(\ell-1)\mid e$ then $i\equiv0$ and
$A^{(0)}$ is the $\ell$-part of the class group of $\Q$, by the fact above. Otherwise $(\ell-1)/2$ divides
$e$ and is even, so $\ell\equiv1\pmod4$ and $i\equiv(\ell-1)/2$. The part of $A$ fixed by the squares in
$\Pi$ is $A^{(0)}\oplus A^{((\ell-1)/2)}$, and the field fixed by the squares is $\Q(\sqrt\ell)$. So
$A^{((\ell-1)/2)}$ is the $\ell$-part of the class group of $\Q(\sqrt\ell)$. It is $0$, because the class
number is less than $\ell$ (Lemma~G4). (c) For even $e$, $A^{(i)}$ lies in the part of $A$ fixed by complex
conjugation, which is the $\ell$-part of the class group of the real subfield.\qed
Kummer's congruence, as used in (a), was also tested numerically by the test group G12:
$B_r/r\equiv B_{r'}/r'\pmod\ell$ for the $2543$ triples $(\ell,r,r')$ with $\ell$ prime, $5\le\ell<200$,
$r$ and $r'$ even, $2\le r\le\ell-3$, $r0$, a place $\tau$ with the cell $(v,s)$ has
$\tau(\sqrt{qd})=(-1)^v\sqrt{qd}$. So the signature is $(2,0)$ at the places of row $0$ and $(1,1)$ at
those of row $1$. (2) A \emph{hyperbolic plane} is a Hermitian space with a basis $e,e'$ such that
$h(e,e)=h(e',e')=0$ and $h(e,e')=1$. Its Gram matrix has the eigenvalues $\pm1$: the signature is $(1,1)$
at every place.
\textbf{Definition O8 (lattices, duals, slopes).} An \emph{$\mathfrak o_E$-submodule} of $\mathsf X$ is a
subgroup $L$ with $aL\subset L$ for all $a\in\mathfrak o_E$. A \emph{lattice} in $\mathsf X$ is an
$\mathfrak o_E$-submodule generated by finitely many elements that span $\mathsf X$ over $E$. It is
\emph{free} if $L=\bigoplus_i\mathfrak o_Ee_i$ for a basis $(e_i)$ of $\mathsf X$; a lattice need not be
free (see the example below). For a nonzero ideal $\mathfrak a$, or a quotient $\mathfrak a\mathfrak b^{-1}$
of two ideals, $\mathfrak aL$ is the lattice of the finite sums $\sum a_iy_i$ with $a_i\in\mathfrak a$,
$y_i\in L$. The \emph{dual} of $L$ is
\begin{equation}\label{D:362}
L^\#=\{y\in\mathsf X:\ h(y',y)\in\mathfrak o_E\ \text{for all }y'\in L\},
\end{equation}
again a lattice. $L$ is \emph{integral} if $L\subset L^\#$ and \emph{unimodular} if $L=L^\#$. Suppose
$\mathsf X$ is positive definite. Put $\mathsf X_{\mathbb R}=\bigoplus_{\tau\in\Phi}\mathsf X_\tau$, a real
vector space of dimension $4nr_1$ with the Euclidean norm $\|y\|^2=\sum_{\tau\in\Phi}h_\tau(y_\tau,y_\tau)$. The
map $y\mapsto(y_\tau)_\tau$ embeds $\mathsf X$ in it, and $L$ becomes a discrete subgroup of full rank. Its
\emph{covolume} $\mathrm{covol}(L)$ is the volume of a fundamental parallelepiped for this norm. Its
\emph{slope} is
\begin{equation}\label{ob:mu}
\mu(L)=-\frac{2}{4n\,r_1}\,\log\mathrm{covol}(L)+\mathrm{cst}_E,\qquad
\mathrm{cst}_E=-\log2+\frac{\log|\mathrm{disc}\,E|}{4n}=\log\frac{\mathrm{rd}_E}2 .
\end{equation}
This is \eqref{lt:mu} of \S III.6 for the field $E$, with the volume fixed as the Euclidean volume of
this norm. It is the slope \emph{for squared norms}: twice the $\mu$ of Part~II, \S6.8, up to the
constant. The same definition is used over any CM field in place of $E$.
\textbf{Lemma O9 (slopes).} \emph{Let $\mathsf X$ be positive definite of rank $r_1$.}
\begin{enumerate}[label=\textup{(\alph*)},leftmargin=2.2em,itemsep=1pt,topsep=2pt]
\item \emph{If $L=\bigoplus_i\mathfrak o_Ee_i$ for a basis $(e_i)$ with Gram matrix $J$, then
$\mu(L)=-\frac1{2nr_1}\sum_{\tau\in\Phi}\log\det\tau(J)$. In particular $\mu(\mathfrak o_E^{r_1})=0$ for
the form $h(y,y')=\sum_i\bar y_iy_i'$.}
\item \emph{If $L'\subset L$ are lattices, then $\mu(L')=\mu(L)-\frac{1}{2nr_1}\log[L:L']$.}
\item \emph{For every lattice $L$, $\mu(L^\#)=-\mu(L)$. In case \textup{(a)},
$L^\#=\bigoplus_i\mathfrak o_Ee_i^\#$ for the dual basis ($h(e_i,e_j^\#)=\delta_{ij}$), whose Gram matrix
is $J^{-1}$.}
\end{enumerate}
\emph{Proof.} (a) For $r_1=1$ and $J=1$: the covolume of $\mathfrak o_E$ in $\bigoplus_{\tau\in\Phi}\C$ is
$2^{-2n}|\mathrm{disc}\,E|^{1/2}$. Indeed, the $4n\times4n$ matrix with rows
$(\tau(\omega_j),\overline{\tau(\omega_j)})_{\tau\in\Phi}$ has determinant of absolute value
$|\mathrm{disc}\,E|^{1/2}$, and passing from $(\tau(y),\overline{\tau(y)})$ to
$(\re\tau(y),\mathrm{Im}\,\tau(y))$ divides the determinant by $2$ for each $\tau$. So
$\log\mathrm{covol}(\mathfrak o_E)=2n\,\mathrm{cst}_E$ and $\mu(\mathfrak o_E)=0$. In general choose at each
$\tau$ a matrix $A_\tau$ with $\tau(J)=\overline A_\tau^{\,t}A_\tau$. The map $y\mapsto A_\tau y$ carries $h_\tau$
to the standard form on $\C^{r_1}$. As a real linear map of $\C^{r_1}=\mathbb R^{2r_1}$ it has determinant
$|\det A_\tau|^2=\det\tau(J)$: for $r_1=1$ multiplication by a complex number $\alpha$ is a rotation
followed by the scaling by $|\alpha|$, of determinant $|\alpha|^2$; in general write $A_\tau$ as a
product of a unitary matrix, which preserves volume, and a triangular one. So
$\mathrm{covol}(L)=\mathrm{covol}(\mathfrak o_E)^{r_1}\prod_\tau\det\tau(J)$.
(b) $\mathrm{covol}(L')=[L:L']\,\mathrm{covol}(L)$.
(c) In case (a) write $y=\sum_iy_ie_i^\#$; then $h(e_i,y)=y_i$, so $y\in L^\#$ exactly when all
$y_i\in\mathfrak o_E$. If $e_j^\#=\sum_la_{lj}e_l$, then $\delta_{ij}=\sum_lJ_{il}a_{lj}$, so $(a_{lj})=J^{-1}$,
and the Gram matrix of the dual basis is $\overline{J^{-1}}^{\,t}JJ^{-1}=J^{-1}$. For a general lattice
we use two cited facts. First (Steinitz; from memory), every lattice in $\mathsf X$ has the form
$M=\mathfrak o_Ee_1\oplus\dots\oplus\mathfrak o_Ee_{r_1-1}\oplus\mathfrak be_{r_1}$ for a basis $(e_i)$ and
an ideal $\mathfrak b$; since $[\mathfrak b:\mathfrak a\mathfrak b]$ is the norm $N(\mathfrak a)$, this
gives $\mathrm{covol}(\mathfrak aM)=N(\mathfrak a)^{r_1}\mathrm{covol}(M)$ for an ideal $\mathfrak a$, and
then for a quotient of ideals, with the norm extended multiplicatively. Second
(\cite[Ch.~III, \S2]{Neu99}; from memory), the set $\mathfrak d^{-1}$ of the $a\in E$ with
$\mathrm{Tr}_{E/\Q}(a\,\mathfrak o_E)\subset\Z$ is the inverse of an ideal $\mathfrak d$ of norm
$|\mathrm{disc}\,E|$. Now put $T(y,y')=\mathrm{Tr}_{E/\Q}h(y,y')$. It is a symmetric $\Q$-bilinear form,
and $\frac12T(y,y)=\|y\|^2$, because the trace of an element of $F$ is twice the sum of its images under
the $\tau\in\Phi$. Let $L^{*}$ be the set of the $y$ with $\frac12T(y',y)\in\Z$ for all $y'\in L$. By the
definition of $\mathfrak d^{-1}$, and because $L$ is an $\mathfrak o_E$-module, $L^*$ is the set of $y$
with $h(L,y)\subset2\mathfrak d^{-1}$, which is $2\mathfrak d^{-1}L^\#$ (if $h(L,y)\subset\mathfrak a$, then
$\mathfrak a^{-1}y\subset L^\#$, so $y\in\mathfrak aL^\#$). So
$\mathrm{covol}(L^*)=2^{4nr_1}|\mathrm{disc}\,E|^{-r_1}\mathrm{covol}(L^\#)$. But $L^*$ is the dual of $L$
for the Euclidean inner product, and a discrete subgroup of full rank and its Euclidean dual have
covolumes with product $1$ (their bases are related by the inverse transpose). Hence
$\mathrm{covol}(L)\,\mathrm{covol}(L^\#)=(2^{-2n}|\mathrm{disc}\,E|^{1/2})^{2r_1}=\mathrm{covol}(\mathfrak o_E^{r_1})^2$,
and $\mu(L)+\mu(L^\#)=2\mu(\mathfrak o_E^{r_1})=0$. \qed
\noindent Part (b) is Lemma~L1 of \S III.6 for the field $E$; the form with lengths at places is
\eqref{lt:index}.
\emph{Example} (script \texttt{o3\_lattice.py}; here the field is $K=\Q(\sqrt{-23})$, in the role of $k_d$, with $4n$
replaced by $2$). Let $\omega=\frac12(1+\sqrt{-23})$, $\mathfrak o=\Z[\omega]$, and
$\mathfrak p=(2,\omega)$, a prime ideal of norm $2$ that is not principal. In $\mathsf X=k_d^2$ with
$h(y,y')=\bar y_1y_1'+\bar y_2y_2'$ let $L=\mathfrak o\oplus\mathfrak p$; it is not free. Then
$L^\#=\mathfrak o\oplus\bar{\mathfrak p}^{-1}$, and $\bar{\mathfrak p}^{-1}=\frac12\mathfrak p=\Z+\Z\frac\omega2$
because $\mathfrak p\bar{\mathfrak p}=(2)$. The covolumes of $\mathfrak o^2$, $L$, $L^\#$ are $\frac{23}4$,
$\frac{23}2$, $\frac{23}8$, and the slopes are $0$, $-\frac12\log2$, $+\frac12\log2$, in agreement with (b)
for the index $2$, and with (c).
\textbf{Definition O10 (classes, genus, automorphisms).} Two lattices $L,L'$ in $\mathsf X$ are
\emph{isometric} if $L'=\gamma L$ for some $\gamma\in U(\mathsf X)$; the \emph{class} of $L$ is the set of
such $L'$. The \emph{automorphism group} of $L$ is $\Gamma_L=\{\gamma\in U(\mathsf X):\gamma L=L\}$. For a
prime ideal $\mathfrak p$ of $\mathfrak o_F$ let $F_{\mathfrak p}$ be the completion of $F$ for the absolute
value $|y|_{\mathfrak p}=N(\mathfrak p)^{-j}$, where $\mathfrak p^j$ is the exact power of $\mathfrak p$ in
$y\,\mathfrak o_F$; it is constructed from $F$ as $\Q_p$ is from $\Q$ (Part~II, \S6.8), and its elements
with $|y|_{\mathfrak p}\le1$ form a ring $\mathfrak o_{\mathfrak p}$. Let $\mathsf X_{\mathfrak p}$ be the
$F_{\mathfrak p}$-vector space with the same basis as the $F$-vector space $\mathsf X$; the form $h$ and
the multiplication by $E$ extend to it. Let $L_{\mathfrak p}\subset\mathsf X_{\mathfrak p}$ be the set of
the finite sums $\sum a_iy_i$ with $a_i\in\mathfrak o_{\mathfrak p}$, $y_i\in L$. Two lattices $L,L'$ are
\emph{in the same genus} if for every $\mathfrak p$ there is a bijective map of $\mathsf X_{\mathfrak p}$ to
itself that commutes with $E$, preserves $h$, and carries $L_{\mathfrak p}$ to $L'_{\mathfrak p}$. A genus is
a union of classes. Two Hermitian spaces are \emph{isometric over $F_{\mathfrak p}$} if there is such a
map from the one $\mathsf X_{\mathfrak p}$ to the other.
\emph{Example} (with $K=\Q(\sqrt{-23})$ in place of $k_d$, and $\Q$ in place of $E$ and $F$). Let $\mathsf X=k_d$ with
$h(y,y')=\bar yy'$. A lattice is a quotient of ideals $\mathfrak a$, and $\mathfrak a^\#=\bar{\mathfrak a}^{-1}$.
The unimodular lattices are the $\mathfrak a$ with $\mathfrak a\bar{\mathfrak a}=\mathfrak o$, that is
$\mathfrak a=\mathfrak b\bar{\mathfrak b}^{-1}$. They form one genus: at each prime $\mathfrak b$ is
generated by one element $\beta$, and multiplication by $\beta/\bar\beta$ is an isometry there. Two of
them are isometric exactly when they differ by a principal ideal. The ideal class group of $k_d$ has
order $3$ and is generated by the class of $\mathfrak p$, so the genus has three classes, represented by
$\mathfrak o$, $\mathfrak p\bar{\mathfrak p}^{-1}$, $\bar{\mathfrak p}\mathfrak p^{-1}$. Each has the
automorphism group $\{\pm1\}$.
\textbf{Lemma O11 (finiteness of $\Gamma_L$).} \emph{If $\mathsf X$ is positive definite, $\Gamma_L$ is
finite.}
\emph{Proof.} $\Gamma_L$ preserves the Euclidean norm of Definition~O8 and the discrete set $L$. A
$\Z$-basis of $L$ can be sent only to vectors of $L$ of the same norms, and there are finitely many of
those. \qed
\noindent (C5) \emph{Finiteness of the class number} (Borel, \emph{Some finiteness properties of adele
groups over number fields}, 1963, Theorem~5.1; from memory): a genus consists of finitely many classes. So
for a positive definite space ``a function on the classes of a genus'' is a function on a finite set
$L_1,\dots,L_\kappa$, and the weights $1/|\Gamma_{L_i}|$ of Part~II, \S6.1 are defined. A \emph{level
structure} at a prime $\mathfrak p$ of $F$ is an additional datum attached to $L/\mathfrak pL$ (or to
$L^\#/L$), which isometries and automorphisms are then required to respect; classes, genera and the
groups $\Gamma_L$ of lattices with level structure are defined in the same way, and (C5) holds for them.
\subsection*{3.\quad The standing parameters}
The parameters of the construction are assumed to exist, with the sizes of the following table. The
middle column gives the condition under which the datum is constructed, and, after ``record:'', the
weaker condition that the estimates of \S III.4--III.9 use. The last column gives the rounded size used
in Part~I, \S I.5 and \S I.8, and in Part~II.
\textbf{Hypothesis O23 (the parameters; assumed here, from the Lean development).} \emph{There is
$\varepsilon_0$ with $0<\varepsilon_0<\frac1{52}$ such that for every $0<\varepsilon\le\varepsilon_0$ there
are constants $C$, $C_{\rm abs}$, $C_H$, $C_{\mathsf G}$, $C_{\rm c}$, $C_8$, $J\ge1$ and an unbounded set
of real numbers $x$, the admissible scales, with the following property. For every admissible $x$
there is $n=2^e$, and for every $u$ in the group $H$ of \S1 there are the integers, primes, sets and
numbers named in the first column of the table below, satisfying the conditions of its middle column.
The data of the rows above the row of $\eta$ are the same for all $u$.}
\noindent (M) needs the last sentence (Part~II, \S4). In the source it is expressed by statements that
tie the data of different translates (\S9, row~28); we did not verify them.
{\small\setlength{\LTleft}{0pt}\setlength{\LTright}{0pt}
\begin{longtable}{@{}p{.215\textwidth}p{.50\textwidth}p{.225\textwidth}@{}}
\toprule
Parameter and meaning & Condition (assumed in O23) & Parts I and II\\
\midrule\endhead
\bottomrule\endfoot
$\varepsilon$; $x$, the scale & $0<\varepsilon\le\varepsilon_0<\frac1{52}$; $x$ admissible & $0<\varepsilon<\frac1{52}$; $x$ in an interval $[Z,Z^{3/2}]$\\
$b$, $a$ & $b=\exp(x^{\varepsilon})$, $a=xb$ & the same\\
$X'$, $b'$, $w''$, $X''$, $\delta_1$ & $X'=\exp(x^{\varepsilon/3})$, $b'=a/X'$, $w''=b'/(xn)$, $X''=a/w''=xnX'$, $\delta_1=x^{-\varepsilon/8}$ & cut-off $\frac13\exp(x^{\varepsilon/3})$; the others not named\\
$n$, $N$, $f$: the table has $2$ rows and $n$ columns & $n=2^e$, $e\ge2$, $x^{2+8\varepsilon}\le n\le2x^{2+8\varepsilon}$; $N=4n$, $f=2n$. Record: $x^{2+8\varepsilon-\varepsilon/100}\le n\le x^{2+8\varepsilon+\varepsilon/100}$ & $n\approx x^{2+8\varepsilon}$ (\S I.5); $n\approx x^2$ (\S I.8)\\
$m$, the number of lifts & $m$ even, $m\ge2$, $\sqrt{x\delta_1}\le m\le2\sqrt{x\delta_1}$, that is $m\asymp x^{1/2-\varepsilon/16}$. Record: within a factor $x^{\pm\varepsilon/100}$ of $\sqrt{x\delta_1}$ & $m\approx\sqrt x$; $m=x^{1/2+O(\varepsilon)}$\\
$k$, the initial rank & $k$ even, $x^{9/2+10\varepsilon}\le k\le2x^{9/2+10\varepsilon}$; $m+3\le k$, $m\le f\le k$. Record: within $x^{\pm\varepsilon/100}$ & $k\approx x^{9/2}$\\
$t_0$, the odd parameter & $t_0$ odd, $t_0\ge k+m+4$, $t_0>3m$, $m^2\le N_m$; and
$r+t_0=8fr+4+\lceil x^{377}\rceil\,n_W$ with $n_W=8\lceil\frac{10}8r(f+f^2(k-1)^3x^{2\varepsilon}/m)\rceil$. So $t_0\asymp x^{797/2+(929/16)\varepsilon}$, and $t_0\le x^{400}$ for $x\ge2^{100}$ & $\tau_0$ odd (II, \S6.2); twists below $\lfloor x^{400}\rfloor$ (II, \S6.8)\\
$r$, $N_j$, $\varrho$: the ranks & $r=k+m-1$; $N_j=k+j(t_0+1)$ for $0\le j\le m$; $\varrho=r+t_0$ & $N_j$ (II, \S6.2)\\
$q$, $d$: the auxiliary primes; $Y$, the scale at which they are chosen & primes, $q\equiv3\bmod8$, $d\equiv7\bmod16$, $q\mid d+1$ (so $(-d/q)=1$), $q\ne3$, $q,d>4t_0r+1$; $x^{1/J}\le Y\le x$; every odd prime $p\le Y^{\varepsilon/5}$ divides $d+1$ (so $(-d/p)=1$); $\frac12Y^{\varepsilon/5}<\log q\le Y^{\varepsilon/5}$, $\frac12Y^{\varepsilon/5}\log^2Y<\log d\le Y^{\varepsilon/5}\log^2Y$. Record: $(-d/q)=1$; $(-d/p)=1$ for the odd primes $p$ up to a bound that is at least $11$ and at least $\lfloor x^{\varepsilon_z/5}\rfloor$; $x^{\varepsilon_z/5-\varepsilon_z/100}\le\log q,\log d\le x^{\varepsilon/5+\varepsilon/100}$, where $\varepsilon_z=\varepsilon/J$ & $q\mid d+1$; $\log q\approx Y^{\varepsilon/5}$, $\log d\approx Y^{\varepsilon/5}(\log Y)^2$\\
$g_0$, $g_1$: the level primes & distinct primes, $g_i\equiv1\bmod Nqd$, $(kb)^8\le g_i\le2(kb)^8$. Record: $(kb)^8\le g_i\le2g_j$, $\log g_i\le x^{\varepsilon+\varepsilon/100}$ & $\ell_g=\log(g_0g_1)$ (II, \S6.7)\\
$g_2$, $g_3$, $g_4$: three further level primes & primes, at most $(Nqd)^{C_8}$; $g_2\ne g_3$, both different from $g_0,g_1,g_4$; $g_2\equiv g_3\equiv1\bmod\mathrm{lcm}(15,Nqd)$, $g_4\equiv1\bmod Nqd$. So $g_0,\dots,g_4$ split completely in $E$ (Lemma~O3). Record: two further level primes, distinct, $\equiv1\bmod15$ & not mentioned\\
$H$; a translate $u$ & $H$ cyclic of order $n$ (Lemma~O2); $u$ runs over $H$; there is one set of data for each $u$ & the same\\
$T_2$, $\delta$: the thick columns & a set of integers $i\ge0$ with $4L_{\rm th}i4t_0r+1$ (at least $541$ even for the triple of Remark~(4), and much larger once the equation for $t_0$
is imposed; here $q=11$ is below even $541$, and $d=1319$ below the latter); the condition that the odd
primes up to a bound $\ge11$ split in $k_d$ whenever that bound is $13$ or more ($13$ is inert); the
condition of Theorem~\ref{thm:pair} that every odd prime up to $Y^{\varepsilon/5}$ divide $d+1$, as soon
as that bound is $7$ or more ($d+1=1320$ is prime to $7$); and all conditions of size.
(The example of the first version, $q=3$, $d=23$, also violated $q\ne3$, and there $5,7,11$ are inert.) Part~II, \S4.1 and \S I.5 both say that its parameters do not satisfy the conditions of (M).
No proof uses the example.
\item \emph{The hypothesis on $q$ and $d$.} The estimates assume only $(-d/q)=1$ (the record). The
construction has $q\mid d+1$, as Part~I has; it implies $(-d/q)=1$, and the converse fails (for example
$q=11$, $d=7$). Parts~I and~II use $q\mid d+1$ only to get $\chi_d(q)=1$.
\item \emph{Not in Parts~I and~II:} that the labels $t\in T$ are places of row $0$ (Lemma~O5); the numbers
$b_t$ and the weights of the top cells; three further level primes; the cut-off $X''$ and the number
$w''$; the parameter $J$. (Of these, $b_t$, $X''$, $w''$ and $J$ occur in \S III.4--III.9.) In the data
used by the final theorem $J$ is a constant $\ge1$ whose value is not specified.
\end{enumerate}
\textbf{Status in the source} (statements read, no proof read; the declarations are in \S9, rows 2 and
8--15). (i) \emph{Existence.} The source asserts, as theorems, that data with the properties of O23, O12,
O24 and O25 exist for $0<\varepsilon\le\varepsilon_0$ and all admissible $x$; one of these theorems is
among the declarations the final theorem depends on. (ii) \emph{The field.} The source does not define
$E$ by generators. On the route of the final theorem it is the subfield of a cyclotomic field fixed by
the residues $a$ with $a\equiv\pm1\bmod2^{e+2}$ and $\chi_q(a)=\chi_d(a)=1$; by Lemma~O2(a) this is the
field $E$ of \S1. This identification is our inference from the definitions, not a statement of the
source. (iii) \emph{The sets $T_2$ and $T$} are installed in the data by the construction of the route of
the final theorem: $T_2$ from the thick-set theorem (Theorem~\ref{thm:T2}), then $T$ from the random
choice (Theorem~\ref{thm:T}); both are among the declarations the final theorem depends on. (iv)
\emph{The constant $J$} is obtained existentially, with $J\ge1$, from the Galois-cohomology input
(\S III.9, Theorem~G); it is not fixed to $1$. The primes $q,d$ are chosen at a scale $Y$ with
$x^{1/J}\le Y\le x$; this is why the record's lower bound for $\log q$ has the exponent
$\varepsilon_z=\varepsilon/J$. (v) \emph{Not located in the source:} the number $B$ and the constants
$C_H$, $C_0$, $C_{\rm abs}$ of the last two rows; they are taken from Part~II and \S III.4--III.8.
\subsection*{4.\quad The spaces, the lattices and the chain of lifts}
\textbf{Hypothesis O12 (the spaces and lattices; assumed here, from the Lean development).} \emph{Fix
$x$, a translate $u\in H$ and the parameters of \textup{O23}. There are Hermitian spaces over $E$ as
follows.}
\begin{enumerate}[label=\textup{(\roman*)},leftmargin=2.4em,itemsep=1pt,topsep=2pt]
\item \emph{$\mathsf X_j$ for $0\le j\le m$, positive definite of rank $N_j$.}
\item \emph{$\mathsf X'$, the orthogonal complement in $\mathsf X_m$ of a vector $y_0$ with
$h(y_0,y_0)\ne0$; it is positive definite of rank $N_m-1$.}
\item \emph{$\mathsf Y_j$ for $0\le j\le m$, of rank $r+jt_0$ and of signature
$\big(r+jt_0-\lfloor\frac{m-j}2\rfloor,\lfloor\frac{m-j}2\rfloor\big)$ at every $\tau\in\Phi$, with an
$E$-linear map $\mathsf X_j\to\mathsf Y_j$ preserving the forms for $j\psi_0>\xi_1>\dots>\psi_{r_1-2}>\xi_{r_1-1}$, and then it occurs once. (For example the
representation of $U(3)$ with highest weight $(4,2,0)$, of dimension $27$, restricts to the sum of the
nine representations of $U(2)$ with highest weights $(\lambda'_1,\lambda'_2)$,
$4\ge\lambda'_1\ge2\ge\lambda'_2\ge0$, whose dimensions add up to $27$; script \texttt{o3\_lattice.py}.)
For a number $y$ and an integer $l\ge1$ write $\mathrm{bl}(y,l)$ for the list of $l$ numbers in
arithmetic progression with step $1$ and middle point $y$.
\textbf{Hypothesis O24 (the weights of the construction; assumed here, from the Lean development).}
\emph{Fix $x$, $u$ and a word $\mathsf w$. At each place $\tau\in\Phi$ there are numbers}
\begin{equation}\label{ob:inter}
\xi_0>\psi_0>\xi_1>\dots>\psi_{k-2}>\xi_{k-1}>-\theta_0,\qquad
\theta_00$, namely
$F_{L,L'}(z)=\Theta_{L,L'}\big((\Omega_\tau^{-1/2}z_\tau)_\tau\big)/\Theta_{L,L'}(0)$, and then $K_j$ is a map \eqref{ob:lift} up to the unit scalars and a normalisation; its
equivariance is Lemmas~O17(c) and~O18. The source does not define its maps by the formula
\eqref{ob:theta}. It specifies them by a record of abstract data (\S9, rows 18 and 20), with statements
that tie these data to theta functions on abelian varieties with complex multiplication by $E$, of which
\eqref{ob:theta} is the classical expression. We did not verify this tie. Also, the source normalises by
linear maps applied before and after the kernel, not by one constant. Three properties of the
kernels are used later; O20 and O21 state the first two.
\textbf{Hypothesis O20 (algebraicity and integrality; assumed here, from the Lean development).}
\emph{Let $1\le j\le m$, $L\in\mathrm{Cl}_{j-1}(\mathsf w)$, $L'\in\mathrm{Cl}_j(\mathsf w)$, and let
$F=F_{L,L'}$ be the function of \textup{O19} $($for the index $j-1$ there$)$.}
\begin{enumerate}[label=\textup{(\alph*)},leftmargin=2.2em,itemsep=1pt,topsep=2pt]
\item \emph{There is a number field $L_0\supset E$, Galois over $\Q$ and without real embeddings, the same
for all $j,L,L'$ and all words, such that after a linear change of the variables $z_\tau$ with
coefficients in $L_0$ all Taylor coefficients of $F$ at $0$ lie in $L_0$.}
\item \emph{Let $\ell\ge5$ be a prime with $\chi_d(\ell)=-1$ and let $\sigma_\ell$ have order $d'$ in $G$.
Suppose $c$ is not a power of $\sigma_\ell$. Fix a place $\tau_1\in\Phi$, and an embedding of $L_0$ into an
algebraic closure of $\Q_\ell$; let $\mathrm{ord}_\ell$ be the valuation there with
$\mathrm{ord}_\ell(\ell)=1$. Call the place $\tau_1\circ(c\,\sigma_\ell)^{\varsigma}$ the place of the
\emph{site} $\varsigma\in\Z/d'$. Restrict the series of \textup{(a)} to the variables at the places of
the $d'$ sites, the others being set to $0$, and write these variables as $Z_{\varsigma,i,i'}$ with
$i0$, the modulus $c\ge1$ and
$\Theta_0>0$ are the numbers so named there.}
\item \emph{There are numbers $\Omega_\tau(v)>0$, for $\tau\in\Phi$ and $v$ an embedding of $L_0$ in $\C$
up to complex conjugation, which are the periods in \textup{(S1)} of \S III.7, and for every $\tau$ the
mean of $\log\Omega_\tau(v)$ over $v$ is $\log\Omega_E$, with $\Omega_E$ defined by Part~II, \textup{\eqref{II:t6.3}}.
This is input \textup{(S4)} of \S III.7.}
\end{enumerate}
\noindent By Lemma~O17(a) the series \eqref{ob:theta} is an entire function with a Gaussian majorant;
this is the setting of the block estimate of \S III.4 for one pair $(L,L')$. O21 is what \S III.4 needs
beyond it: item (vi) of the list at the end of \S III.4, and (S4). In (b) the letter $v$ is the place of
\S III.4 and \S III.7, not a row. In the record $\log\Omega_E$ is defined by the formula of \eqref{II:t6.3}, and
the statement about the mean occurs in the source as a hypothesis of two theorems (\S9, row~23). O21 is
not proved here.
\noindent \emph{Equivariance}, the third property: Lemma~O17(c) and Lemma~O18, proved here for kernels
of the form \eqref{ob:theta}. For the kernels of the construction it is contained in O19, in the
assertion that \eqref{ob:chain} maps $V_j$ to $V_{j+1}$.
\subsection*{6.\quad The family, the pairing and what is averaged}
Fix $x$ and a translate $u\in H$. The data of \S3--5 for this $u$ form what \S III.6 and \S III.8 call a
\emph{record}. The record contains a finite family of chains, indexed by words. Everything in this
subsection that is not a definition is collected in one Hypothesis.
\textbf{Hypothesis O25 (the family and the pairing; assumed here, from the Lean development).}
\emph{Fix $x$ and $u$, and the data of \textup{O23}, \textup{O12}, \textup{O24}, \textup{O19},
\textup{O20(a)}.}
\begin{enumerate}[label=\textup{(\alph*)},leftmargin=2.2em,itemsep=1pt,topsep=2pt]
\item \emph{Words. A word $\mathsf w\in\mathsf W_u$ has $k-2$ letters in $\{0,1\}$, and different words
have different letters. At every place, consecutive $\psi_l$ differ by $4\Delta$, the numbers $\xi_0$ and
$\xi_{k-1}$ do not depend on the word, and for $0\le l\le k-3$}
\begin{equation}\label{D:377}
\xi_{l+1}=\psi_l-\tfrac12-\Delta\cdot(\text{the }l\text{th letter of }\mathsf w).
\end{equation}
\emph{Each word has its own level prime $\mathrm{Lv}(\mathsf w)$, lattices $\mathrm{Cl}_j(\mathsf w)$ and
chain \eqref{ob:chain}. The weights $w_{u,j}$, the sets $T$, $T_2$ and the orders $a_t$ do not depend on
the word.}
\item \emph{The source space. There is a subspace $\mathcal C_{\mathsf w}\subset V_0(\mathsf w)$, and for
each of the $f$ primes $\mathfrak p$ of $F$ above $\mathrm{Lv}(\mathsf w)$, with residue field
$\mathbb F_{\mathfrak p}$ of $\mathrm{Lv}(\mathsf w)$ elements, a linear action of the group
$\mathbb F_{\mathfrak p}^\times$ on $\mathcal C_{\mathsf w}$, written $\alpha\cdot\phi$. Put}
\begin{equation}\label{D:378}
\mathcal M_{\mathsf w}=\{\phi\in\mathcal C_{\mathsf w}:\ \textstyle\sum_{\alpha\in\mathbb F_{\mathfrak p}^\times}\alpha\cdot\phi=0
\ \text{for all }\mathfrak p\mid\mathrm{Lv}(\mathsf w)\}.
\end{equation}
\emph{Then
$\dim\mathcal M_{\mathsf w}=\big(1-\frac1{\mathrm{Lv}(\mathsf w)-1}\big)^f\dim\mathcal C_{\mathsf w}$.}
\item \emph{The period. Let $\mathcal A$ be the space of forms on the classes of a genus of lattices in
$\mathsf X'$ $(\cong\mathsf Y_m)$, of a weight determined by $\psi,\theta,w$. There is a linear map
$\mathrm{res}:V_m(\mathsf w)\to\mathcal A$, and the \emph{period} is the bilinear form}
\begin{equation}\label{ob:per}
\mathrm{Per}_{\mathsf w}(\phi,\phi')=\Big\langle\ \mathrm{res}\big(K_{m-1}\cdots K_0\,\phi\big),\ \phi'\ \Big\rangle
\qquad(\phi\in\mathcal M_{\mathsf w},\ \phi'\in\mathcal A),
\end{equation}
\emph{the pairing being the finite sum of Definition~\textup{O14}, made bilinear as in \eqref{ob:lift}.}
\item \emph{The target. There are a complex inner product space $\mathcal E_0$ of finite dimension
$D_{\rm r}$, the same for all words, a linear map $\iota:\mathcal A\to\mathcal E_0$, and a subspace
$\mathcal A_0\subset\mathcal A$. Let $\mathcal A_1$ be the orthogonal complement of
$\mathcal A_0\cap\ker\iota$ in $\mathcal A_0$, so that $\iota$ is injective on $\mathcal A_1$, and for
$y\in\mathcal E_0$ let $\mathrm{sec}(y)$ be the element of $\mathcal A_1$ whose image under $\iota$ is the
orthogonal projection of $y$ to $\iota(\mathcal A_1)$.}
\item \emph{Rationality. Define the pairing of the word by}
\begin{equation}\label{ob:B}
\mathfrak B_{\mathsf w}:\mathcal M_{\mathsf w}\times\mathcal E_0\to\C,\qquad
\mathfrak B_{\mathsf w}(\phi,y)=\mathrm{Per}_{\mathsf w}\big(\phi,\mathrm{sec}(y)\big).
\end{equation}
\emph{Let $L_0$ be the field of \textup{O20(a)}, with a fixed embedding in $\C$. There are
$L_0$-vector spaces $U_{\mathsf w}\subset\mathcal M_{\mathsf w}$ and $U'\subset\mathcal E_0$, each spanned
over $L_0$ by a basis of the complex space, such that $\mathfrak B_{\mathsf w}$ takes values in $L_0$ on
$U_{\mathsf w}\times U'$.}
\item \emph{Lattices. $U'$ contains a lattice $\mathcal R$ over $\mathfrak o_{L_0}$, the same for all
words, and $U_{\mathsf w}$ contains lattices
$\Lambda^{\rm div}_{\mathsf w}\subset\Lambda^{\rm src}_{\mathsf w}$. For every embedding $v$ of $L_0$ in $\C$, the complex vector spaces with the same bases as $U_{\mathsf w}$
and $U'$, the coefficients being embedded by $v$, carry Hermitian inner products.}
\end{enumerate}
\noindent \emph{Comments.} (a) So \emph{the words are the weights of rank $k$ that interlace one fixed
weight $\psi$ of rank $k-1$}: $\xi_{l+1}$ lies between $\psi_{l+1}$ and $\psi_l$ (\S III.8, \S5). The prime
sum $P_{u,t,j}$ of Part~II, \eqref{II:t4.1} depends only on $w_{u,j}$, $T$, $T_2$, $a_t$, hence not on the word. A
word is the \emph{member} $\alpha$ of \S III.6. (b) These are the spaces $\mathcal C_{\mathsf w}$,
$\mathcal M_{\mathsf w}$ of \S III.8. The action rescales the linear form of the level structure at
$\mathfrak p$; this description is read from the types of the source. The dimension formula is a
statement of the source on which the final theorem depends (\S9, row~24). By a statement that the source
uses as a hypothesis, $\mathcal C_{\mathsf w}$ is all of $V_0(\mathsf w)$. (c) \eqref{ob:per} is the
``single period integral'' of Part~II, \S6.2. Our reading of $\mathrm{res}$, which is not in the source:
a lattice $L^\circ$ of $\mathsf X'$ gives the lattice $L^\circ\oplus\mathfrak o_Ey_0$ of $\mathsf X_m$, the
form is evaluated there, and the value is projected to the weight of $\mathcal A$. The source gives the
period as a composite of three linear maps. The variants of $\mathcal A$ with the twists of Part~II,
\S6.8 are not needed here. (d) $\mathcal E_0$ is a space of forms on the unitary group of $\mathsf Y_0$,
which is not compact; we give no classical description of it or of $\iota$. (e) The restriction of
$\mathfrak B_{\mathsf w}$ to $U_{\mathsf w}\times U'$ is the pairing $\langle\ ,\ \rangle_\alpha$ of \S III.6
and $\mathfrak B^{\rm alg}_{\mathsf w}$ of \S III.8. That these two are the same pairing was not checked in the
source (\S III.8, \S2); the derivation of the mean-slope inequality in \S\ref{as:sec} (Hypothesis (H8) there)
assumes it. (f) $\Lambda^{\rm src}_{\mathsf w}$ is the \emph{source
lattice} of \S III.6 (the preimage of the first lattice of the chain) and $\Lambda^{\rm div}_{\mathsf w}$
its sublattice defined there; the \emph{glued lattice}
$\Lambda^{\rm gl}_{\mathsf w}=I_{\mathsf w}\Lambda^{\rm div}_{\mathsf w}$ is defined in \eqref{lt:N}.
\textbf{Slopes over $L_0$.} For a lattice in $U_{\mathsf w}$ or $U'$ the slope $\mu$ is defined by
\eqref{lt:mu}, as in Definition~O8 with $L_0$ in place of $E$: the covolume is taken for the Euclidean
norm that is the sum, over the embeddings of $L_0$ up to conjugation, of the Hermitian norms of
\textup{O25(f)}. We did not identify these norms with those of Definition~O14. The \emph{target lattice}
of the pairing is
\begin{equation}\label{D:381}
\mathcal R^\vee=\{y^\vee:U'\to L_0\ \text{$L_0$-linear}:\ y^\vee(\mathcal R)\subset\mathfrak o_{L_0}\},
\end{equation}
a lattice in the space of the $L_0$-linear maps $U'\to L_0$, with the dual norms. The divisibility
statement of \S III.6 is that $\phi\mapsto\mathfrak B_{\mathsf w}(\phi,\cdot)$ maps
$\Lambda^{\rm gl}_{\mathsf w}$ into $\mathcal R^\vee$. The slope $\mu(\mathcal R^\vee)$ is the number
$\mu_{\rm CC}$ of Part~II, \S6.7.
\textbf{What is averaged.} For a word let $d_{\mathsf w}=\mathrm{rk}\,\Lambda^{\rm gl}_{\mathsf w}$ and let
$h_{\mathsf w}$ be the bound for the height of $\mathfrak B_{\mathsf w}$ (the $h$ of Part~II, \S6.7; with
its index it is not the Hermitian form). The
\emph{inner mean}, for one translate $u$, is the mean over the words weighted by the ranks:
\begin{equation}\label{ob:inner}
s_u=\frac{\sum_{\mathsf w\in\mathsf W_u}d_{\mathsf w}\,\big(\mu(\Lambda^{\rm gl}_{\mathsf w})-h_{\mathsf w}\big)}{\sum_{\mathsf w\in\mathsf W_u}d_{\mathsf w}} .
\end{equation}
The slope inequality for many maps (Part~II, \S6.9--6.10; \S III.8) compares $s_u$ with
$\mu(\mathcal R^\vee)$. Given the Hypotheses of \S\ref{as:sec} it gives, for each $u$, an upper bound for
$\sum_{t\in T}\sum_{j=1}^m(P_{u,t,j}-M_{u,t,j})$ (Proposition~M7 there). The \emph{outer mean} is the mean $\frac1n\sum_{u\in H}$ of
these bounds over the $n$ translates; it is the left side of (M). Only the outer mean removes the
dependence on the residue class modulo $N$ (\S I.6(c)). The source sums the bounds over the
translates of a subgroup, which for $\zeta$ is all of $H$ (\S\ref{as:sec}, \S2, item (5) and \S9, Remark~(5)).
\subsection*{7.\quad The dictionary}
Each row gives an abstract object of \S III.4--III.9, in the notation of that section, the object of the
construction, a status, and the rows of the table of \S9 where the declarations of the source are named.
\textbf{V}: verified in the source, in the way stated. \textbf{T}: read from the types and statements of
the record only; no proof was followed. \textbf{N}: not verified. A record of the source is a list of
data and of properties that the data are required to have; ``V'' for a field of the record means that
the property is part of the record, not that the record used by the final theorem was inspected. The
level is called $\mathcal T$ in Part~II, \S6.7 and \S III.7--III.8, and $\mathrm{Lv}_\alpha$ in \S III.6;
in \S III.5--III.6 the letter $\mathcal T$ is the set of labels, which is $T$ here.
{\small\setlength{\LTleft}{0pt}\setlength{\LTright}{0pt}
\begin{longtable}{@{}p{.22\textwidth}p{.39\textwidth}p{.25\textwidth}p{.06\textwidth}@{}}
\toprule
Abstract object & Object of the construction & Status & \S9\\
\midrule\endhead
\bottomrule\endfoot
\multicolumn{4}{@{}l}{\emph{\S III.4 (size of the kernels)}}\\
field $K$, places $v$ & $L_0$ and its embeddings up to conjugation & T & 21\\
$V_j$, norms $\|\cdot\|_{j,v}$ & forms on $\mathrm{Cl}_j(\mathsf w)$ of the weight of O24(b), with the norm of Definition~O14 & V: fields of the record & 18\\
classes $p\in I_j$, $w_j(p)$ & $L\in\mathrm{Cl}_j$, $1/|\Gamma_L|$ & V for the formula $w_j=1/|\Gamma_L|$; that $\Gamma_L$ is a group of automorphisms: stage $0$ by O12(vii), stages $\ge1$ N & 16, 18\\
$K_j$; $\epsilon_{pq}$, $T_{pq}$ & the lift \eqref{ob:chain}; $\epsilon(L,L')$, $\mathbf K_j(L,L')$ & V: the definition has this shape; $T_{pq}$ is a composite of three maps; $|\epsilon|=1$ for $j0$); (H6)(i); the statement (8b), which is Theorem~\ref{sa:thm}(a); the identification of the pairings of \S III.6, \S III.7 and \S III.8 with one map $\beta_{\mathsf w}$ (Comment~(e) to O25; not checked in the source); and (C6), cited & proved here from named statements\\
(H9) & the range of the slopes & the Lean development; in the source it rests on the bound for denominators and on the statement behind (H2) & assumed\\
(H10) & $\delta_{\rm p}\le\frac12$ & Statement~(I) of \S III.8, \eqref{tr:I}, which is quoted there & proved from the quoted statement (I), for $x$ at least its threshold $x_0$\\
(H11) & ranks are positive & \S III.8: the lower bound in \eqref{tr:proviso} and the second condition of \eqref{tr:side} & proved from named statements\\
(H12) & supply on windows: data with (H0)--(H11) at every $x$ of intervals $[Z,Z^{3/2}]$, with constants independent of $x$ and with primes $q$, $d$ good at $x$ (\S7) & the Lean development. \S III.1 proves that primes as in its clause (b) exist at each large scale. Estimate~C for such primes is proved in \S III.2; it is not part of (H12) & assumed; \S III.1 proves that primes as in clause (b) exist\\
\end{longtable}}
\noindent The statements of the source behind each row have their own status, given in the section named
and in the table at the start of Part~III. \emph{The count.} The table has sixteen rows for the
thirteen Hypotheses. No row is proved outright. Nine rows are proved from named statements: (H0) except
the first half of (g), that half, (H1), (H6)(i), (H6)(ii), (H6)(iii), (H8), (H11), and (H10), which
needs one quoted statement only. One row is quoted: (H7). Five rows are assumed: (H2), (H3), (H5), (H9),
(H12). One row is mixed: (H4). For (H2), (H3), (H5), (H9) and the lower bound of (H4) we record, from the
statements of the source (their proofs were not read), what kind of statement each is: (H3) is
elementary in kind; (H2) and (H9) rest on local statements at the level primes, and (H9) also on the
bound for denominators; the lower bound in (H4), and (H5), are deep: they contain the count of forms and
the covolume of a lattice of forms.
\subsection*{2.\quad The statement of (M)}
\textbf{Definition M1 (the two sides).} Fix $x$, the field $E$ and the parameters of \S\ref{ob:sec}
(Hypothesis~O23). A \emph{cell} is a pair $(v,s)$ with $v\in\{0,1\}$ and $s\in H$; there are $2n$ cells.
For a translate $u\in H$ and a lift $1\le j\le m$ let $w_{u,j}(v,s)>0$ be the weight of the cell. For an
odd prime power $p^i$ with $p\ne q$ and a label $t\in T$ put
$\mathrm{cell}(p^i,t)=\big(\tfrac12(1+\chi_q(p^i)),\,t[p^i]\big)$. This is the cell \eqref{ob:partner}
for $v=0$, $s=t$: by Lemma~O5 for a prime $p\nmid2qd$ with $\chi_d(p)=-1$ and odd $i$, and by Lemma~O22
for the powers of $d$. All other prime powers have the coefficient $1-\chi_d(p^i)=0$ in the sum below.
For $t\in T$ and $1\le j\le m$,
\begin{equation}\label{as:P}
P_{u,t,j}=\sum_{\substack{p\ \mathrm{odd\ prime}\\ p\ne q}}\ \sum_{i\ge1}\big(1-\chi_d(p^i)\big)\log p\,
\Big(\frac{a_t}{p^i}-w_{u,j}\big(\mathrm{cell}(p^i,t)\big)\Big)_+ ,
\end{equation}
where $(\,\cdot\,)_+$ is the positive part, $\max(\,\cdot\,,0)$; and
\begin{equation}\label{as:Mdef}
M_{u,t,j}=a_t\Big(\log a_t-1-\gamma+c_{\chi_d}-\langle\log w_{u,j}\rangle\Big),\qquad
\langle\log w_{u,j}\rangle=\frac1{2n}\sum_{(v,s)}\log w_{u,j}(v,s),
\end{equation}
where $\gamma$ is Euler's constant and $c_{\chi_d}=\frac{L'}{L}(1,\chi_d)$. These are \eqref{II:t4.1} and \eqref{II:t4.2} of
Part~II. \emph{Convention:} if $a_t=0$, then $a_t\log a_t$ means $0$; so $M_{u,t,j}=0$, and also
$P_{u,t,j}=0$. (Hypothesis (H0)(c) below allows $a_t=0$. In the data of Hypothesis~O23,
$a_t\ge a>0$.) The sum \eqref{as:P} is finite: the term of $p^i$ vanishes when $p^i\ge a_t/w_{\min}$ for the
smallest weight $w_{\min}$. Put
\begin{equation}\label{D:385}
P_u=\sum_{t\in T}\sum_{j=1}^mP_{u,t,j},\qquad M_u=\sum_{t\in T}\sum_{j=1}^mM_{u,t,j},\qquad
A=\sum_{t\in T}a_t .
\end{equation}
\emph{Example.} For $q=11$, $d=1319$, $N=16$, $T=T_2=\{[1]\}$, $m=1$, $a=10000$ and the weights of Part~II,
\S4.2 (one weight $10$, seven weights $0.05$), Part~II, \S4.2--4.3 computes $P_u=84701.0317$ and
$M_u=84463.3942$ for $u=[1]$, and the four differences $P_u-M_u$ are $237.6375$, $-300.2570$, $-176.7314$,
$229.1329$.
\textbf{The form of (M) that the end of the proof uses.} Put
\begin{equation}\label{as:E}
\mathfrak E=|T|\,a\,\Big(1+\frac{m^2}k\Big)+m\,(B_0+N_c),\qquad a=xb,\quad B_0=2n\,m\,b\,x^{\varepsilon},\quad
N_c=\frac{|T_2|\,k\,b\,x^{2\varepsilon}}{n^2}.
\end{equation}
The statement is: \emph{there are real numbers $C_{\rm abs},e_L\ge0$ and $\varepsilon_1>0$ such that for
every $0<\varepsilon<\varepsilon_1$ and every admissible scale $x\ge x_0(\varepsilon)$ the data of
\S\ref{ob:sec} exist, with $\delta=|T_2|/n\ge x^{-\varepsilon}$ and $|T|\ge\frac12x^{-\varepsilon/8}n$,
and for every translate $u\in H$}
\begin{equation}\label{as:M}
P_u-M_u\ \le\ x^{(C_{\rm abs}+e_L+3)\varepsilon}\ \mathfrak E .
\end{equation}
This is a statement for each translate. Theorem~M proves \eqref{as:M} from the Hypotheses of \S4. The
numbers $C_{\rm abs}$ and $e_L$ are the exponents in (H1) and (H7); the source calls the first $e_D$.
The two conditions on the densities are (H0)(h). Theorem~M does not prove that the data exist, and it
does not say which scales are admissible; that is the subject of Hypothesis (H12) in \S7. The statement
of the source contains further conditions on the sizes, among them $m\ge x^{1/2-\varepsilon}$ and
$k\le n^2x^{1/2-\varepsilon}$. These two are not among (H0)--(H11), and Theorem~M does not use them. They
are part of (H12), clause (e). They are used after (M), in the passage to the bound for $G(x)$
(Part~II, \S3 and \S5; Corollary~M11), where the four errors must be at most $x^{1/2+O(\varepsilon)}$.
\emph{How the end of the proof uses it.} Part~II, \S5 expresses $P_{u,t,j}-M_{u,t,j}$ as a sum, over the
cells and over the characters of $E$, of the functions $G_\chi$ at the points $a_t/w$. The sum of these
expressions over the translates $u$ removes the characters that are not trivial on $H$. The source sums
\eqref{as:M} over the translates, and only the sum is used. So \eqref{as:M} is used through its mean
over the translates, which is the form of Part~II.
\textbf{Comparison with the display (M) of Part~II, \S4.3.} Part~II states
$\frac1n\sum_{u}\sum_{t,j}(P_{u,t,j}-M_{u,t,j})\le\mathcal E$ with
$\mathcal E/B\le x^{C\varepsilon}(x/m+xm/k+m+k/n^2)$, $B=|T|mb\delta/2$. The two statements compare as
follows.
\begin{enumerate}[label=\textup{(\arabic*)},leftmargin=2.2em,itemsep=1pt,topsep=2pt]
\item \emph{Each translate.} The source proves \eqref{as:M} for every $u$. The mean over $u$ follows, with
$\mathcal E=x^{(C_{\rm abs}+e_L+3)\varepsilon}\mathfrak E$ (Corollary~M9). The display (M) of Part~II is
the mean.
\item \emph{The unnormalised error.} The bracket in the display after (M) in Part~II, \S4.3, with
$h=|T|$, $h_2=|T_2|$ and the scale $a=xb$, is $\mathfrak E$: indeed
$h_2kbx^{\varepsilon}/(n\cdot nx^{-\varepsilon})=N_c$. It is the bracket of the statement of the source
that the final theorem uses (\S9).
\item \emph{The constant.} After division by $B$, \eqref{as:M} gives
$(P_u-M_u)/B\le8\,x^{(C_{\rm abs}+e_L+3+17/8)\varepsilon}(x/m+xm/k+m+k/n^2)$ (Theorem~M). When
$8\le x^{7\varepsilon/8}$, which follows from \eqref{as:big} below, this is (M) with
$C=C_{\rm abs}+e_L+6$. The numbers $C_{\rm abs},e_L$ do not depend on $x$ or on $\varepsilon$. On the
route of the final theorem $e_L=0$, so that $C=C_{\rm abs}+6$. The number $C_{\rm abs}$ is a free
parameter $\ge0$ of the statements of the source that we read; the value with which the final theorem
uses them was not determined (\S9, Remark~(2)). In \eqref{III:sizefinal} it is $2$, and then $C=8$.
\item \emph{The orders.} Part~II has $|a_t/b-x|\le1$. The data of Hypothesis~O23 have
$a\le a_t\le a(1+1/(kx^{13}))$, which is stronger. The proof below uses only $0\le a_t\le2a$.
\item \emph{The translates that are used.} The source uses \eqref{as:M} for $u$ in the subgroup of $H$
generated by one element, which must contain $T_2$. In the setting of this paper the element is $[5]$.
The group $H$ is cyclic of order $n$ and $[5]$ generates it, because the odd residues modulo $4n=2^{e+2}$
are the numbers $\pm5^i$; so the subgroup is all of $H$, and the mean is $\frac1n\sum_{u\in H}$, as in
Part~II. In the source this was confirmed for the data whose group is cyclic of order $2^e$: there the
generator is the class of $5$ and the subgroup has index $1$. For the zeta function the statements of
the source require index $1$ for every set of data that they admit, so the mean is over all of $H$
(\S9, Remark~(5)).
\end{enumerate}
\subsection*{3.\quad Slopes: one map, and many maps}
This subsection recalls Part~II, \S6.8--6.10 over a number field and proves the two inequalities that
the assembly uses. Part~II, \S6.8 proves the first for lattices over $\Z$ and says that the form used in
the chain is quoted. It is proved here.
\textbf{Definition M2 (lattices with norms; slopes; heights).} Let $K$ be a number field of degree
$n_0$ without real embeddings, $\mathfrak o_K$ its ring of integers, and $\Phi_K$ a set of $n_0/2$
embeddings $K\to\C$ containing one of each pair of complex conjugates. (In the assembly $K$ is the
coefficient field $L_0$.) A \emph{lattice with norms} is a $K$-vector space $V$ of finite dimension $r_1$,
a finitely generated $\mathfrak o_K$-submodule $\Lambda\subset V$ that spans $V$, and for each $\tau\in\Phi_K$ a
positive definite Hermitian form (Definition~O7) on the complex vector space $V_\tau$, with norm
$\|\cdot\|_\tau$. Here $V_\tau$ is the complex vector space with the same basis as $V$, the coefficients
being embedded in $\C$ by $\tau$ (in symbols, $V\otimes_{K,\tau}\C$). Then
$\|y\|^2=\sum_{\tau\in\Phi_K}\|y_\tau\|_\tau^2$, for $y=(y_\tau)_\tau$, is a Euclidean norm on the real
vector space $V_{\mathbb R}=\bigoplus_\tau V_\tau$ of dimension $n_0r_1$. The space $V$ is embedded in
$V_{\mathbb R}$ by its images in the $V_\tau$, and $\Lambda$ is a lattice in $V_{\mathbb R}$. The
\emph{rank} of $\Lambda$ is $r_1$. For $r_1\ge1$ the \emph{slope} and the \emph{degree} are
\begin{equation}\label{as:mu}
\mu(\Lambda)=-\frac2{n_0\,r_1}\log\mathrm{covol}(\Lambda)+\mathrm{cst}_K,\qquad\deg \Lambda=r_1\,\mu(\Lambda),\qquad
\mathrm{cst}_K=-\log2+\frac{\log|\mathrm{disc}\,K|}{n_0},
\end{equation}
as in \eqref{ob:mu}; and $\deg0=0$. A submodule $\Lambda'\subset \Lambda$ is a lattice with norms in the $K$-span
$V'$ of $\Lambda'$, with the restricted forms. It is \emph{saturated} if $\Lambda'=\Lambda\cap V'$. For a saturated $\Lambda'$
the quotient $\Lambda/\Lambda'$ is a lattice with norms in $V/V'$: at each $\tau$ the space $V_\tau/V'_\tau$ is
identified with the orthogonal complement of $V'_\tau$ in $V_\tau$. Put
\begin{equation}\label{D:389}
\mu_{\max}(\Lambda)=\max_{0\ne \Lambda'\subset \Lambda}\mu(\Lambda'),\qquad
\mu_{\min}(\Lambda)=\min_{\Lambda'\ne \Lambda\ \mathrm{saturated}}\mu(\Lambda/\Lambda') ,
\end{equation}
over submodules $\Lambda'$; the extrema exist by (C6) below. So $\mu_{\min}(\Lambda)\le\mu(\Lambda)\le\mu_{\max}(\Lambda)$
(take $\Lambda'=0$ and $\Lambda'=\Lambda$). For a $K$-linear map $\phi:V\to V'$ between spaces with norms, let
$\phi_\tau:V_\tau\to V'_\tau$ be the complex linear map with the same matrix as $\phi$, and let
$\|\phi\|_\tau=\max\{\|\phi_\tau(y)\|_\tau:\ y\in V_\tau,\ \|y\|_\tau\le1\}$ be its \emph{operator norm}. The \emph{height} of $\phi\ne0$ is
\begin{equation}\label{as:ht}
\mathrm{ht}(\phi)=\frac2{n_0}\sum_{\tau\in\Phi_K}\log\|\phi\|_\tau^2 ,
\end{equation}
the mean over the $n_0/2$ places of the logarithm of the squared norm (Part~II, \S6.7).
\emph{Example.} $K=\Q(i)$, $n_0=2$, $\Phi_K=\{\mathrm{id}\}$, $\mathrm{cst}_K=-\log2+\frac12\log4=0$. In
$V=K^2$ with the standard form let $\Lambda=\Z[i]e_1\oplus\Z[i]\,2e_2$. Its covolume in $\C^2=\mathbb R^4$ is
$4$, so $\mu(\Lambda)=-\frac12\log4=-\log2$ and $\deg \Lambda=-2\log2$. The submodule $\Z[i]e_1$ has slope $0$, and
the quotient by it is $\Z[i]\,2e_2$, of slope $-\log4$. Here $\mu_{\max}(\Lambda)=0$, $\mu_{\min}(\Lambda)=-2\log2$,
and $0+(-2\log2)=\deg \Lambda$. The map $\phi=\mathrm{diag}(2+i,3)$ of $\Z[i]^2$ into itself has
$\mathrm{ht}(\phi)=\log9$ and image of index $5\cdot9=45$.
\textbf{Lemma M3 (one injective map; proved here).} \emph{Let $\Lambda\subset V$ and $\Lambda'\subset V'$ be lattices
with norms, $\Lambda$ of rank $r_1\ge1$, and $\phi:V\to V'$ an injective $K$-linear map with $\phi(\Lambda)\subset \Lambda'$.
Then}
\begin{equation}\label{as:one}
\mu(\Lambda)\ \le\ \mu(\phi(\Lambda))+\mathrm{ht}(\phi)\ \le\ \mu_{\max}(\Lambda')+\mathrm{ht}(\phi),
\end{equation}
\emph{where $\phi(\Lambda)$ is the submodule of $\Lambda'$ with the norms restricted from $V'$. Moreover,
for every $K$-linear map $\phi:V\to V'$, injective or not, and all $K$-subspaces $V_1\subset V$,
$V_1'\subset V'$ with $\phi(V_1)\subset V_1'$: the induced map $\bar\phi:V/V_1\to V'/V_1'$ satisfies,
for the quotient norms, $\|\bar\phi\|_\tau\le\|\phi\|_\tau$ for every $\tau$.}
\emph{Proof.} Fix $\tau$. The map $\phi_\tau$ is an injective complex linear map from $V_\tau$, of
dimension $r_1$, onto its image. In orthonormal bases it is an $r_1\times r_1$ complex matrix $A$. Let $A^*$ be its conjugate transpose.
The \emph{singular values} $\sigma_1,\dots,\sigma_{r_1}\ge0$ of $A$ are the square roots of the
eigenvalues of the Hermitian matrix $A^*A$. If $y$ is a unit eigenvector of $A^*A$ for $\sigma_i^2$, then
$\|Ay\|^2=y^*A^*Ay=\sigma_i^2$; so $\sigma_i\le\|\phi\|_\tau$. And $|\det A|^2=\det(A^*A)=\prod_i\sigma_i^2$.
As a real linear map of $\mathbb R^{2r_1}$, $A$ multiplies volumes by
$|\det A|^2\le\|\phi\|_\tau^{2r_1}$. The Euclidean spaces are orthogonal sums
over $\tau$, so $\mathrm{covol}(\phi(\Lambda))\le\mathrm{covol}(\Lambda)\prod_\tau\|\phi\|_\tau^{2r_1}$. By
\eqref{as:mu},
\begin{equation}\label{D:392}
\mu(\phi(\Lambda))\ \ge\ \mu(\Lambda)-\frac2{n_0r_1}\sum_\tau2r_1\log\|\phi\|_\tau=\mu(\Lambda)-\mathrm{ht}(\phi).
\end{equation}
This is the first inequality of \eqref{as:one}; the second is the definition of $\mu_{\max}$. For the
last assertion, $\bar\phi_\tau$ is the composite of the inclusion of $V_{1,\tau}^\perp$ in $V_\tau$, of
$\phi_\tau$, and of the orthogonal projection of $V'_\tau$ onto $(V'_{1,\tau})^\perp$; the first and the
third have norm at most $1$. Injectivity is not used for this assertion. \qed
\noindent For $\phi=\mathrm{diag}(2+i,3)$ of the example, \eqref{as:one} reads
$0\le-\frac12\log45+\log9$, that is, $45\le81$: \emph{the index is bounded by the size}. If $\Lambda'$ has the
rank of $\Lambda$, then $\mu(\phi(\Lambda))=\mu(\Lambda')-\frac2{n_0r_1}\log[\Lambda':\phi(\Lambda)]$ (Lemma~L1 of \S III.6), and
\eqref{as:one} is the second display of Part~II, \S6.8.
\textbf{(C6) The filtration by slopes} (cited: U.~Stuhler \cite{Stu76} for $K=\Q$; D.~Grayson
\cite[\S1]{Gra84} for lattices over the integers of a number field; from memory: no local copy of either
paper was consulted, so no theorem numbers are given). \emph{Let $\Lambda$ be a
lattice with norms of rank $r_1\ge1$.}
\begin{enumerate}[label=\textup{(\roman*)},leftmargin=2.4em,itemsep=1pt,topsep=2pt]
\item \emph{The slopes of the nonzero submodules of $\Lambda$ are bounded above and their maximum is attained;
the minimum defining $\mu_{\min}(\Lambda)$ is attained.}
\item \emph{There are saturated submodules $0=\Lambda_0\subsetneq \Lambda_1\subsetneq\dots\subsetneq \Lambda_l=\Lambda$ such that
the numbers $\mu_i=\mu(\Lambda_i/\Lambda_{i-1})$ satisfy $\mu_1>\mu_2>\dots>\mu_l$, and
$\mu_{\max}(\Lambda/\Lambda_i)=\mu_{i+1}$ for $0\le i0$ with $s-\mu_{\min}(Q)\le\mathsf R$. Then}
\begin{equation}\label{as:frame}
\mu(Q)\ \ge\ s-\frac1{1-\delta_*}\Big(4\,\mathrm{sp}\,\log\Big(1+\frac{\mathsf R}{\mathrm{sp}}\Big)+\eta_*\,\mathsf R\Big),
\end{equation}
\emph{where $\mathrm{sp}\log(1+\mathsf R/\mathrm{sp})$ means $0$ if $\mathrm{sp}=0$.}
\noindent This is the inequality \eqref{tr:err} of \S III.8, without the term $-\log|\mathsf W|$. It
replaces \eqref{as:one} when the sources are smaller than the target. It will be used for (H8). The
numbers $\alpha_*$ and $\delta_*$ are called $\alpha'$ and $\delta_{\rm p}$ in Corollary~T2 of \S III.8; in
Part~II, \S6.9--6.10 the first is $\alpha$.
\emph{Proof.} \emph{Step 1: the filtration of the target.} Let $0=Q_0\subsetneq\dots\subsetneq Q_l=Q$ and
$\mu_1>\dots>\mu_l$ be as in (C6)(ii), and $y_1\ge\dots\ge y_D$ the slopes of $Q$ with multiplicity. Fix
$\vartheta\ge0$. Let $i$ be the largest index with $\mu_i\ge s-\vartheta$, or $i=0$ if there is none, and put $F=Q_i$. The
number of $j$ with $y_j0$ and put $\alpha_*=\mathrm{sp}/(\mathrm{sp}+\vartheta)$, a number in $[0,1]$. By
\eqref{as:count}, $\sum_{\mathsf w}(d_{\mathsf w}-\dim V^\circ_{\mathsf w})\le\alpha_*\sum_{\mathsf w}d_{\mathsf w}$. The
space $\sum_{\mathsf w}\beta_{\mathsf w}(V^\circ_{\mathsf w})$ lies in $V'_F$, whose codimension is
$\mathcal N(\vartheta)$. By the rank bound,
\begin{equation}\label{as:Nt}
\frac{\mathcal N(\vartheta)}D\ \le\ \frac1{1-\delta_*}\Big(\eta_*+\frac{4\,\mathrm{sp}}{\mathrm{sp}+\vartheta}\Big)\qquad(\mathrm{sp}+\vartheta>0).
\end{equation}
\emph{Step 4: integration.} For a real number $y\ge s-\mathsf R$,
$(s-y)_+=\int_0^{\mathsf R}[\,y0$; for $\mathrm{sp}=0$ the integrand vanishes for $\vartheta>0$. \qed
The source proves the mean-slope inequality from a theorem on lattices of its own (\texttt{TheoremF});
the proof above is not a translation of it (\S9, Remark~(4)).
\end{altbox}
\emph{Example of Step 4.} Slopes $2,3,5$ and $s=4$: $\mathcal N(\vartheta)=2$ for $0<\vartheta<1$, $1$ for $1\le \vartheta<2$,
$0$ after. The integral is $3$, and the bound is $\frac{10}3\ge4-1$.
\emph{What Part~II quotes and what is proved here.} Part~II, \S6.10 quotes ``the inequality for the
minimal slope of the image of a map, and properties of the filtration of a lattice by slopes''. The first
is Lemma~M3 applied to the quotients, in Step~2. The second is (C6), which is cited. The rank bound is
the conclusion of Corollary~T2 of \S III.8; in Proposition~M4 it is a hypothesis. So the step that
Part~II, \S6.10 marks as quoted is derived here from one cited fact, (C6), given the rank bound. The
derivation is ours. The source reaches the mean-slope inequality by a theorem on lattices of its own,
whose hypotheses are not a rank bound for arbitrary subspaces (\S9, Remark~(4)). The proof was tested on
lattices of rank $2$ over $\Z$ (\S8).
\subsection*{4.\quad The Hypotheses}
Fix $\varepsilon$, a scale $x$, and a translate $u\in H$. The data of \S\ref{ob:sec} for this $u$ are
assumed given: the parameters (Hypothesis~O23), the spaces and lattices (O12), the weights (O24), the
maps of the chain (O19), and the family of words with its pairing (O25). Besides the parameters they
provide the following objects; the first column of the table in \S9 gives their names in the source.
\begin{itemize}[leftmargin=1.6em,itemsep=1pt,topsep=2pt]
\item For each word $\mathsf w\in\mathsf W_u$: the glued lattice $\Lambda^{\rm gl}_{\mathsf w}$ of
\eqref{lt:N}, in the $L_0$-vector space $U_{\mathsf w}$ of O25(e). It is a lattice with norms in the
sense of Definition~M2 for $K=L_0$, with the norms of O25(f), and its rank is $d_{\mathsf w}$. The linear
map $\beta_{\mathsf w}:U_{\mathsf w}\to\mathrm{Hom}_{L_0}(U',L_0)$,
$\beta_{\mathsf w}(\phi)=\mathfrak B_{\mathsf w}(\phi,\cdot)$, of \eqref{ob:B}. A real number
$h_{\mathsf w}$. The level prime $\mathrm{Lv}(\mathsf w)$. The \emph{first lattice of the chain}
$\Lambda^0_{\mathsf w}$, a lattice with norms (it is the lattice of the forms at stage $0$; its slope is
called $\mu_{0,\alpha}$ in \eqref{lt:Lo}). And real numbers $E_{\rm err,j}(\mathsf w)$, $1\le j\le m$,
with sum $E_{\rm err}(\mathsf w)$, as in \eqref{lt:totals}.
\item The target $\mathcal R^\vee$, a lattice with norms in $\mathrm{Hom}_{L_0}(U',L_0)$, of rank
$D_{\rm r}$. Write $\mu_{\rm CC}=\mu(\mathcal R^\vee)$ and $\mu_{\rm CC}^{\min}=\mu_{\min}(\mathcal R^\vee)$.
\item Real numbers $G_{\rm top}$, $F_0$ as in \eqref{lt:totals}, and
$I_u=\sum_w\lambda_w\,e_w\,\mathrm{io}(w)\ge0$, the sum over the places $w$ of $L_0$ of the numbers of \S III.6.
\item A real number $\delta_{\rm p}$, as in \S III.8.
\end{itemize}
\emph{The number $h_{\mathsf w}$.} The proofs of this section use only that $h_{\mathsf w}$ is a real
number satisfying the Hypotheses. In the source it is one explicit number: in the notation of \S III.7 it
is $\mathcal H-\langle\log\varkappa\rangle$, the $h$ of Theorem~\ref{sa:thm}, formed for the word
$\mathsf w$. The Hypotheses (H1), (H3), (H9) and the statement (8b) below all speak of this same number,
and (H3) has content only for it.
Put $\ell_g=\log(g_0g_1)$, and let $\Omega_E>0$ be the number with
$\log\Omega_E=\gamma+\log(2\pi/\mathrm{rd}_E)-c_{\chi_d}$, as in \eqref{II:t6.3} of Part~II. In this section
$\Omega_E$ is this number and nothing else; that it is a period is part of the proof of (H1), in
\S III.7. Let $s_u$ and $\mathrm{sp}_u$ be the numbers \eqref{as:s} for
$\Lambda_{\mathsf w}=\Lambda^{\rm gl}_{\mathsf w}$ and the given $h_{\mathsf w}$; so $s_u$ is the inner
mean \eqref{ob:inner}. Both are formed from means over the words with the weights $d_{\mathsf w}$. These
means are defined because the set of words is not empty, by (H0)(g), and every $d_{\mathsf w}$ is
positive, by (H11). Let $c_1,\dots,c_7\ge0$, $C_{\rm abs}\ge0$, $e_L\ge0$, $C_H\ge0$, $e_K\ge0$ be real
numbers. They are the constants of the Hypotheses. In the source they do not depend on $x$, on $u$ or on
the word.
\medskip
\noindent\textbf{Hypothesis (H0) (sizes).} \emph{The numbers $m\ge1$ and $n\ge1$ are integers, $T$ is not
empty, and}
\begin{enumerate}[label=\textup{(\alph*)},leftmargin=2.2em,itemsep=1pt,topsep=2pt]
\item $x\ge1$, $0<\varepsilon\le1$, $b\ge1$, $a=xb$, $\log x\le x^{\varepsilon}$;
\item $m\le x^{1/2+\varepsilon/2}$,\quad $xm\le k$,\quad $3\le k\le a$,\quad $k\le x^{e_K}$;
\item $0\le a_t\le2a$ \emph{for $t\in T$};
\item $0\le L_a\le2x^{\varepsilon}$,\quad $b'\ge0$,\quad $k\,b'\le a$,\quad $0\le X''\le a$;
\item $w_{u,j}(v,s)>0$ \emph{for all cells and lifts, and} $\mathrm{rd}_E>0$;
\item $B_0=2n\,m\,b\,x^{\varepsilon}$ \emph{and} $N_c=|T_2|\,k\,b\,x^{2\varepsilon}/n^2$;
\item $1\le|\mathsf W_u|$ \emph{and} $\log|\mathsf W_u|\le(k-3)\log2$;
\item $|T_2|\ge x^{-\varepsilon}n$ \emph{and} $|T|\ge\frac12x^{-\varepsilon/8}n$.
\end{enumerate}
\emph{Status.} For the parameters of Hypothesis~O23 (the table of \S\ref{ob:sec}, \S3) and $x$ large in
terms of $\varepsilon$, the first sentence, (a)--(f), the second half of (g) and (h) hold; this is a
direct check from the conditions of that table. For instance $k\le2x^{9/2+10\varepsilon}\le a$ and
$kb'=ka/X'\le a$ because $X'=\exp(x^{\varepsilon/3})$; $X''=xnX'\le xb$; $L_a=\log(xb\,\mathrm{rd}_E)\le2x^{\varepsilon}$
because $\log b=x^{\varepsilon}$ and $\log\mathrm{rd}_E\le x^{\varepsilon/2}$ by \eqref{ob:rd} and the sizes
of $q,d$; $a_t\le a(1+1/(kx^{13}))$; the weights are at least $w''>0$; and $|\mathsf W_u|\le2^{k-3}$. Among
these conditions the one that needs the largest $x$ is $kb'\le a$, that is, $k\le\exp(x^{\varepsilon/3})$.
Part (h) is a condition of O23 (the rows of $T_2$ and $T$); that sets with these densities exist is
proved in \S III.3 (Theorems~\ref{thm:T2}(a) and~\ref{thm:T}). The first half of (g), that the translate
has at least one word, is not among the conditions of O23. It follows from the first condition of
\eqref{tr:side}, $|\mathsf W|\ge C_0\mathsf G^2x^{C_H}$, which \S III.8 quotes: there $C_0=3$,
$\mathsf G\ge1$ and $x\ge1$, so $|\mathsf W|\ge3$. The status of (H8) and of (H11) rests on
\eqref{tr:side} in any case. So this half of (g) has the status of (H11): it is proved from a named
statement. In the source it is a hypothesis of the statement that corresponds to Theorem~M (\S9); which
statement of the source supplies it on the route of the final theorem was not followed. It is
used wherever a mean over the words is formed. Part (h) is used only for the division by $B$ in
Theorem~M. That data with these sizes exist is Hypothesis~O23; it is not proved in this paper.
\medskip
\noindent\textbf{Hypothesis (H1) (the size of the pairing).} \emph{For every word $\mathsf w$,}
\begin{equation}\label{as:H1}
\mu_{\rm CC}+h_{\mathsf w}-F_0\ \le\ S-A\log\mathrm{Lv}(\mathsf w)+c_1\,|T|\,a\,L_a+c_1\,m\,(B_0+N_c)\,x^{C_{\rm abs}\varepsilon},
\end{equation}
\emph{where} $S=\sum_{t\in T}m\big(a_t\log a_t-a_t-a_t\log\Omega_E\big)$.
\noindent
\emph{Status.} For $C_{\rm abs}=2$ this is \eqref{III:sizefinal}, for the level
$\mathcal T=\mathrm{Lv}(\mathsf w)$ and $h=h_{\mathsf w}$; for $C_{\rm abs}\ge2$ it follows from that
case. \S III.7 (Theorem~\ref{sa:thm}) proves \eqref{III:sizefinal} from the inputs (S1)--(S8), (W1), (W2),
(G) there, which are quoted. So (H1) is proved in the paper from these named inputs, given the
identification of the objects of \S III.7 with those of \S\ref{ob:sec} (the dictionary of
\S\ref{ob:sec}, \S7, whose rows for \S III.7 are not verified). In the source $C_{\rm abs}$ is a free
parameter $\ge0$ of the statement; the value with which the final theorem uses it was not determined
(\S9, Remark~(2)).
\emph{How the bound for denominators enters.} Proposition~G2 of \S III.9 gives \eqref{gc:div} from the
bound \eqref{II:shabound} for Galois cohomology. It enters (H1) through the input (S8), the size of the
local errors. In the source (S8) is an inequality whose left side is a sum over the lifts, and each
summand contains a bound for the left side of \eqref{gc:div}. We read the statements that show this
(\S9, Remark~(6)). One link was not followed: that the bound which occurs in (S8) is, on the route of
the final theorem, the right side of \eqref{gc:div}. The bound for denominators enters (H9) as well; see
there.
\medskip
\noindent\textbf{Hypothesis (H2) (the level correction).} \emph{For every word and every lift $j$,
$|E_{\rm err,j}(\mathsf w)-A\,\ell_g|\le c_2B_0$. Hence
$|E_{\rm err}(\mathsf w)-m\,A\,\ell_g|\le c_2\,m\,B_0$.} Assumed here, from the Lean development. It is the
``local level correction'' of Part~II, \S6.7. In the source it is a statement on the local error
exponents: their weighted sum is $A\log(g_0g_1)$ up to a multiple of $B_0$, and the part away from
$g_0,g_1$ is at most a multiple of $B_0$. It needs the local exponents at the level primes; no section
of this paper treats it.
\medskip
\noindent\textbf{Hypothesis (H3) (the heights of two words).} \emph{For all words $\mathsf w,\mathsf w'$,}
\begin{equation}\label{D:403}
\Big|\big(h_{\mathsf w}+A\log\mathrm{Lv}(\mathsf w)\big)-\big(h_{\mathsf w'}+A\log\mathrm{Lv}(\mathsf w')\big)\Big|
\le c_3\big(|T|\,a\,L_a+m\,B_0\big).
\end{equation}
Assumed here, from the Lean development. By (H1) the number $h_{\mathsf w}+A\log\mathrm{Lv}(\mathsf w)$ is
bounded above by a quantity that does not depend on the word; (H3) says that it varies little. In the
source it compares the explicit number $h_{\mathsf w}$ for two words. It is elementary in kind: two
explicit formulas are compared. We did not read its proof.
\medskip
\noindent\textbf{Hypothesis (H4) (the level prime and the count of forms).} \emph{For all words
$\mathsf w,\mathsf w'$,}
\begin{equation}\label{as:H4}
\sum_{j=1}^m\Big(\langle\log w_{u,j}\rangle+\log\frac{\mathrm{rd}_E}{2\pi}\Big)+m\,\ell_g
-c_4\Big(L_a+\frac{m^2L_a}k\Big)\ \le\ \log\mathrm{Lv}(\mathsf w)\ \le\ c_4\,m\,x^{\varepsilon},
\end{equation}
\emph{and $|\log\mathrm{Lv}(\mathsf w)-\log\mathrm{Lv}(\mathsf w')|\le c_4\log k$.} \emph{Status.} The
lower bound has the shape of the second line of \eqref{II:t6.5} of Part~II, with $E_{\rm cnt}=c_4(L_a+m^2L_a/k)$;
Part~II, \S6.6 derives the shape from the mass formula, which is quoted. Part~II leaves the allowance
$E_{\rm cnt}$ unspecified and says, in \S6.10, that its size is part of the quoted statements. The size
$c_4(L_a+m^2L_a/k)$ is not in Part~II; it is assumed here, from the Lean development. The lower bound is a
deep statement: it contains the count of forms. The upper bound is a condition of Hypothesis~O23 (the row of $\mathrm{Lv}(\mathsf w)$ in its
table), with $c_4$ at least the constant $C$ there. The third part is assumed here, from the Lean
development; we did not read how the source proves it.
\medskip
\noindent\textbf{Hypothesis (H5) (the first lattice of the chain).} \emph{For every word,}
\begin{equation}\label{D:405}
-c_5\,|T|\,a\,L_a\Big(1+\frac mk\Big)\le\mu(\Lambda^0_{\mathsf w})\qquad\text{and}\qquad
\mu_{\max}(\Lambda^0_{\mathsf w})\le c_5\,|T|\,a\,L_a .
\end{equation}
Assumed here, from the Lean development. It is a statement on the covolume of the lattice of forms at
stage $0$. It is deep; in the source it is deduced from statements of the kind that give the lower bound
of (H4).
\medskip
\noindent\textbf{Hypothesis (H6) (the glued lattice).} \emph{For every word:
\textup{(i)} $\beta_{\mathsf w}(\Lambda^{\rm gl}_{\mathsf w})\subset\mathcal R^\vee$;
\textup{(ii)}}
\begin{equation}\label{as:H6}
\mu(\Lambda^{\rm gl}_{\mathsf w})\ \ge\ \mu(\Lambda^0_{\mathsf w})+G_{\rm top}+F_0-E_{\rm err}(\mathsf w)-\mathrm{Lo}_{\mathsf w},
\qquad
\mathrm{Lo}_{\mathsf w}=c_6I_u+c_6|T|\,m\Big(\frac ak+b'\Big)\log\mathrm{Lv}(\mathsf w)+c_6X''+1;
\end{equation}
\emph{\textup{(iii)}
$\mu_{\max}(\Lambda^{\rm gl}_{\mathsf w})\le\mu_{\max}(\Lambda^0_{\mathsf w})+G_{\rm top}+F_0-E_{\rm err}(\mathsf w)+c_6\,m\,B_0$.}
\noindent\emph{Status.} Part (i) is Theorem~L4(i) of \S III.6, proved there from the statement (Val).
The statement (Val) is where the local estimate of \S III.5 (Theorem~J, under hypothesis (B)) is used.
Part (i) is \emph{not used} in the proof of Proposition~M7 or of Theorem~M. It is listed because the
derivation of (H8) from Proposition~M4 uses it; see (8a) below. Part (ii) is \eqref{lt:Lo}; \S III.6
proves \eqref{lt:slope} from the statement (Lat) (Theorem~L4(iii)) and passes to \eqref{lt:Lo} with the
statements (a)--(d) of \S III.6, \S2. These are four items; they contain at least eight statements of
the source, all assumed there. Part (iii) is not treated in \S III.6. It
is proved in Lemma~M10 (\S4a below), from (Lat) and two further statements of the source, and in a
stronger form, without the term $c_6mB_0$. The term is kept in (iii) only to match the source. So each
part is proved in the paper from named statements of the source; none is proved outright.
\medskip
\noindent\textbf{Hypothesis (H7) (the losses).}
\begin{equation}\label{as:H7}
P_u-G_{\rm top}\ \le\ \mathrm{LoP}\qquad\text{and}\qquad I_u\ \le\ \mathrm{LoP},\qquad
\mathrm{LoP}=c_7\,|T|\,m\,b\,x^{e_L\varepsilon}.
\end{equation}
\emph{Status.} This is \eqref{lt:loss} of \S III.6 (there $e_L=0$), quoted there. On the route of the
final theorem the source has $e_L=0$ as well (\S9, Remark~(2)); the exponent is kept here because the
statement of the source that corresponds to Theorem~M carries it. \S III.6 proves the
splitting of the left side by classes of primes and three of the estimates; one of them uses
Theorem~\ref{thm:T}. The identity between $P_u$ and the sum that the source bounds is Lemma~L6 of
\S III.6 with a statement of the source that was not read (\S9).
\medskip
\noindent\textbf{Hypothesis (H8) (the mean-slope inequality).} \emph{There are real numbers
$\eta_u,\mathsf e_u\ge0$ with $(\eta_u+4\sqrt{\mathsf e_u})\,x^{C_H}\le6$ such that for every $\mathsf R>0$ with
$s_u-\mu^{\min}_{\rm CC}\le\mathsf R$,}
\begin{equation}\label{as:H8}
\mu_{\rm CC}\ \ge\ s_u-\log|\mathsf W_u|-\frac1{1-\delta_{\rm p}}
\Big(4\,\mathrm{sp}_u\log\Big(1+\frac{\mathsf R}{\mathrm{sp}_u}\Big)+(\eta_u+4\sqrt{\mathsf e_u})\,\mathsf R\Big).
\end{equation}
\emph{Status.} This is \eqref{tr:err} with \eqref{tr:six}. It follows from Proposition~M4 and the
following three statements, by taking $K=L_0$, $\Lambda_{\mathsf w}=\Lambda^{\rm gl}_{\mathsf w}$,
$Q=\mathcal R^\vee$, $\delta_*=\delta_{\rm p}$, so that $s=s_u$ and $\mathrm{sp}=\mathrm{sp}_u$:
\begin{enumerate}[label=\textup{(8\alph*)},leftmargin=2.6em,itemsep=1pt,topsep=2pt]
\item (H6)(i); it is the hypothesis $\beta_{\mathsf w}(\Lambda_{\mathsf w})\subset Q$ of Proposition~M4;
\item $\mathrm{ht}(\beta_{\mathsf w})\le h_{\mathsf w}$ whenever $\beta_{\mathsf w}\ne0$ (this is what ``$h$ is
an upper bound for the height of the pairing map'' means in Part~II, \S6.7). This is not an extra
assumption of the source: it is part~(a) of Theorem~\ref{sa:thm} of \S III.7, where the map is called
$\Phi$ and $h_{\mathsf w}$ is $\mathcal H-\langle\log\varkappa\rangle$. So it has the status of (H1): it
is proved there from the inputs (S1)--(S8), (W1), (W2), (G), given the same identification of the map
and of the norms;
\item the rank bound of Proposition~M4 with
$\eta_*=5x^{-C_H}+4\alpha_{\rm ram}+4\sqrt{e_0}$, which is the conclusion \eqref{tr:final} of
Corollary~T2 with $\alpha'=\alpha_*$. (A $K$-subspace $V^\circ_{\mathsf w}$ of $U_{\mathsf w}$ gives the complex
subspace $\mathcal U_{\mathsf w}$ of $\mathcal M_{\mathsf w}$ with the same basis, the codimension of
$\sum\beta_{\mathsf w}(V^\circ_{\mathsf w})$ over $L_0$ is the complex codimension of
$\sum\beta_{\mathsf w}(\mathcal U_{\mathsf w})$, and \eqref{tr:sub} holds because
$d_{\mathsf w}=\dim\mathcal M_{\mathsf w}\le\dim\mathcal C_{\mathsf w}$. In \S III.8 the letter $d_{\mathsf w}$ is
$\dim\mathcal C_{\mathsf w}$ and our $d_{\mathsf w}$ is $d^{\rm ram}_{\mathsf w}$.)
\end{enumerate}
Indeed \eqref{as:frame} is then \eqref{as:H8} without the term $\log|\mathsf W_u|$, which is $\ge0$ by
(H0)(g), and with $\eta_*$ in place of $\eta_u+4\sqrt{\mathsf e_u}$; and for the values
$\eta_u=5x^{-C_H}+3\sqrt{\alpha_{\rm ram}}$, $\mathsf e_u=2e_0$ of \eqref{tr:frame},
$\eta_*\le\eta_u+4\sqrt{\mathsf e_u}$ as soon as $\alpha_{\rm ram}\le\frac9{16}$. The bound
$(\eta_u+4\sqrt{\mathsf e_u})x^{C_H}\le6$ is \eqref{tr:six}. Corollary~T2 is proved in \S III.8 from the
statements (S) with \eqref{tr:proviso}, (I), (P) and the side conditions \eqref{tr:side}, which are
quoted. It requires $C_H>0$, and $x^{-C_H}\le\frac14$ (the third condition of \eqref{tr:side}). So the
derivation of (H8) needs $C_H>0$; Theorem~M itself holds for $C_H\ge0$. Proposition~M4 also needs
$\mathsf W_u\ne\emptyset$ and $d_{\mathsf w}\ge1$, which are (H0)(g) and (H11). \emph{One map, three
sections.} Proposition~M4 needs one map $\beta_{\mathsf w}$ for which (8a), (8b) and (8c) hold at once.
But (8a) comes from \S III.6, for the pairing $\langle\ ,\ \rangle_\alpha$ there; (8b) from \S III.7, for
the map $\Phi$ there; and (8c) from \S III.8, for the pairing $\mathfrak B^{\rm alg}_{\mathsf w}$ there.
That the three are the map $\beta_{\mathsf w}$ of \eqref{ob:B} is Comment~(e) to O25 and the dictionary
of \S\ref{ob:sec}, \S7. It is a further assumption: \S III.8, \S2 records that the identification of
$\mathfrak B^{\rm alg}_{\mathsf w}$ with $\langle\ ,\ \rangle_\alpha$ was not checked in the source, and
Comment~(e) says the same. The
conditions of Corollary~T2 are not derived from (H0)--(H11); they are further named statements. In sum,
(H8) is proved here from named statements: (S), (I), (P), \eqref{tr:proviso}, \eqref{tr:side} with
$\alpha_{\rm ram}\le\frac9{16}$, \eqref{tr:six}, $C_H>0$, (Val), the inputs of Theorem~\ref{sa:thm}, the
identification of the three maps (Comment~(e) to O25; not checked in the source), and (C6), which is
cited.
The source does not go through Corollary~T2 and Proposition~M4; it proves \eqref{as:H8} from a theorem
on lattices of its own (\S9, Remark~(4)). When \eqref{as:H8} is taken from the source in that way, it
comes with three further conditions: $\mathsf e_u\le\frac14$, $\alpha_{\rm ram}\le\frac14$ and
$x^{-C_H}\le\frac1{20}$ (\S III.8, after \eqref{tr:frame}). They are not needed in the proofs of this
section and are not part of (H8).
\medskip
\noindent\textbf{Hypothesis (H9) (the range of the slopes).} $s_u-\mu^{\min}_{\rm CC}\le x^{C_H}\,b$.
Assumed here, from the Lean development. (The source states it as
$s_u+\mu_{\max}(\mathcal R)\le x^{C_H}b$, with $\mu_{\min}(\mathcal R^\vee)=-\mu_{\max}(\mathcal R)$.) It
is a crude bound, but it is not elementary. In the source, the statement that yields it has among its
hypotheses the bound for denominators, that is, the conclusion \eqref{gc:div} of Proposition~G2 of
\S III.9, and the statement behind (H2). We read these statements, not their proofs (\S9, Remark~(6)).
\medskip
\noindent\textbf{Hypothesis (H10).} $0\le\delta_{\rm p}\le\frac12$. This follows from Statement~(I) of
\S III.8, \eqref{tr:I}, for $x\ge\max(x_0,1)$, where $x_0$ is the threshold of that statement: then
$x^{\varepsilon_z/7}\ge1>\log2$. Statement (I) is quoted there; it holds for $x\ge x_0$ only.
\medskip
\noindent\textbf{Hypothesis (H11).} \emph{For every word, $d_{\mathsf w}\ge1$.} \emph{Status.} It follows
from statements that \S III.8 already quotes. In the notation of \S III.8 our $d_{\mathsf w}$ is
$d^{\rm ram}_{\mathsf w}=\dim\mathcal M_{\mathsf w}$, since $U_{\mathsf w}$ is spanned over $L_0$ by a
basis of $\mathcal M_{\mathsf w}$ (O25(e)). The lower bound in \eqref{tr:proviso} gives
$\dim\mathcal C_{\mathsf w}>0$, and the second condition of \eqref{tr:side}, with $\alpha_{\rm ram}<1$,
gives $d^{\rm ram}_{\mathsf w}\ge(1-\alpha_{\rm ram})\dim\mathcal C_{\mathsf w}>0$. So (H11) follows from
\eqref{tr:proviso} and \eqref{tr:side}, which the status of (H8) uses in any case. (That
$\mu(\Lambda^{\rm gl}_{\mathsf w})\le\mu_{\max}(\Lambda^{\rm gl}_{\mathsf w})$ is part of Definition~M2;
in the source it is a separate clause.)
\medskip
\noindent\emph{Remarks.} (1) The Hypotheses speak of real numbers attached to the data: slopes, heights,
logarithms of primes. The deduction of (M) from them is arithmetic of real numbers. The lattices
themselves enter only in the status of (H6)(iii) and of (H8). (2) The gain $G_{\rm top}$ occurs in (H6) and (H7) and
nowhere else; $F_0$ occurs in (H1) and (H6); $\mu_{\rm CC}$ in (H1) and (H8); $\log\Omega_E$ in (H1) only.
(3) Proposition~G2, the sets $T_2$ and $T$, Theorem~J and the Bessel identity (Statement~(P) of
\S III.8) do not occur in the list. They are used inside the Hypotheses: Proposition~G2 in (H1) and in
(H9); the sets $T_2$ and $T$ in (H0) and (H7); Theorem~J in (H6); Statement~(P) in (H8). (4) The proof
of Theorem~M uses (H0)--(H11) with one exception, (H6)(i). That statement and (8b) serve only to derive
(H8) from Proposition~M4.
\subsection*{4a.\quad The largest slope of the glued lattice}
This subsection proves the statement on which the status of (H6)(iii) rests. It is not used in the
proofs of \S5 and \S6, which take (H6)(iii) as a Hypothesis.
\medskip
\noindent\textbf{Lemma M10 (the largest slope of the glued lattice; proved here from three statements of
the source and the inclusion $\Lambda^{\rm div}_{\mathsf w}\subset\Lambda^{\rm src}_{\mathsf w}$ of O25(f)).} \emph{Fix a word $\mathsf w$; it is a member $\alpha$ in the language of \S III.6, whose
notation \textup{(\S1--2 there)} we use. Assume:}
\begin{enumerate}[label=\textup{(\alph*)},leftmargin=2.2em,itemsep=1pt,topsep=2pt]
\item \emph{the inclusion in \textup{(Lat)}: for every place $w$ of $L_0$ with
$p_w\ne\mathrm{Lv}(\mathsf w)$ the number $\tau(w)\ge0$ is an integer and
$(\Lambda^{\rm div}_{\mathsf w})_w\subset\mathfrak p_w^{e_w\tau(w)}(\Lambda^{\rm src}_{\mathsf w})_w$;}
\item \emph{$\tau(w)=0$ at the places $w$ with $p_w=\mathrm{Lv}(\mathsf w)$ \textup{(}statement
\textup{(b)} of \S III.6, \S2\textup{)};}
\item $\mu_{\max}(\Lambda^{\rm src}_{\mathsf w})\le\mu_{\max}(\Lambda^0_{\mathsf w})$.
\end{enumerate}
\emph{Then}
\begin{equation}\label{as:M10}
\mu_{\max}(\Lambda^{\rm gl}_{\mathsf w})\ \le\ \mu_{\max}(\Lambda^0_{\mathsf w})+G_{\rm top}+F_0-E_{\rm err}(\mathsf w).
\end{equation}
\emph{In particular \textup{(H6)(iii)} holds, for every $c_6\ge0$.}
\noindent Here $\Lambda^{\rm div}_{\mathsf w}\subset\Lambda^{\rm src}_{\mathsf w}$ are the lattices of
O25(f) in $U_{\mathsf w}$, with the norms of O25(f), and
$\Lambda^{\rm gl}_{\mathsf w}=I_{\mathsf w}\Lambda^{\rm div}_{\mathsf w}$ as in \eqref{lt:N}. The numbers
$\mathrm{sg}_{\mathsf w}(w)$ of \eqref{lt:sg} and $\tau(w)$ vanish outside a finite set of places.
Statement (c) compares the source lattice with the first lattice of the chain, of which it is the
preimage. It is a statement of the source (\S9), a companion of the equality for the slopes that
\S III.6, \S2(d) quotes. All three statements are assumed. The proof uses a fourth statement of the
source: the inclusion $\Lambda^{\rm div}_{\mathsf w}\subset\Lambda^{\rm src}_{\mathsf w}$, at the places
above the level. In this paper it is part of the data (O25(f); \S III.6, \S2), so it is already assumed.
In the source it is a separate clause (\S9). The lemma is the deduction. (It is numbered M10 because it
was written after Corollary~M9.)
\emph{Proof.} Two remarks on a lattice with norms $\Lambda$ in an $L_0$-vector space $V$ come first.
\emph{\textup{(1)} A sublattice.} Let $\Lambda'\subset\Lambda$ be a nonzero submodule. Every submodule
of $\Lambda'$ is a submodule of $\Lambda$, with the same norms. So
$\mu_{\max}(\Lambda')\le\mu_{\max}(\Lambda)$, by Definition~M2. Next, for a nonzero subspace
$V_1\subset V$ the module $\Lambda\cap V_1$ is a
lattice in $V_1$, and every submodule $\Lambda_1\subset\Lambda$ with span $V_1$ lies in it. Then
$\mathrm{covol}(\Lambda_1)=[\Lambda\cap V_1:\Lambda_1]\cdot\mathrm{covol}(\Lambda\cap V_1)\ge\mathrm{covol}(\Lambda\cap V_1)$,
so $\mu(\Lambda_1)\le\mu(\Lambda\cap V_1)$. Hence $\mu_{\max}(\Lambda)$ is the maximum of
$\mu(\Lambda\cap V_1)$ over the nonzero subspaces $V_1$.
\emph{\textup{(2)} Multiplication by an ideal.} Let $\nu_w$ be integers, zero for almost all places $w$,
and $\mathfrak a=\prod_w\mathfrak p_w^{-\nu_w}$. Then
\begin{equation}\label{D:410}
\mu_{\max}(\mathfrak a\Lambda)=\mu_{\max}(\Lambda)+2\sum_w\lambda_w\nu_w .
\end{equation}
Indeed $\mathfrak a\Lambda\cap V_1=\mathfrak a(\Lambda\cap V_1)$ for every subspace $V_1$: the right side
is contained in the left; and $\mathfrak a^{-1}(\mathfrak a\Lambda\cap V_1)\subset\Lambda\cap V_1$, which
gives the other inclusion after multiplication by $\mathfrak a$. By Lemma~L2(ii) of \S III.6, applied in
$V_1$, $\mu(\mathfrak a(\Lambda\cap V_1))=\mu(\Lambda\cap V_1)+2\sum_w\lambda_w\nu_w$. Now take the
maximum over $V_1$ and use the second half of (1) for $\Lambda$ and for $\mathfrak a\Lambda$.
\emph{The inclusion.} Put $\mathfrak b=\prod_w\mathfrak p_w^{e_w\tau(w)}$, the product over all places; by
(a) and (b) it is an ideal of the ring of integers, and by (b) the
places above the level do not occur in it. We claim that
$\Lambda^{\rm div}_{\mathsf w}\subset\mathfrak b\Lambda^{\rm src}_{\mathsf w}$. By Lemma~L2(i),
$(\mathfrak b\Lambda^{\rm src}_{\mathsf w})_w=\mathfrak p_w^{e_w\tau(w)}(\Lambda^{\rm src}_{\mathsf w})_w$ for every
$w$. At a place with $p_w\ne\mathrm{Lv}(\mathsf w)$ this contains $(\Lambda^{\rm div}_{\mathsf w})_w$ by
(a). At a place above the level the exponent is $0$, and
$(\Lambda^{\rm div}_{\mathsf w})_w\subset(\Lambda^{\rm src}_{\mathsf w})_w$ because
$\Lambda^{\rm div}_{\mathsf w}\subset\Lambda^{\rm src}_{\mathsf w}$. An element that lies in all
localisations of a lattice lies in the lattice (proof of Lemma~L2(i)). This proves the claim.
\emph{Conclusion.} By \eqref{lt:N} and the claim,
$\Lambda^{\rm gl}_{\mathsf w}=I_{\mathsf w}\Lambda^{\rm div}_{\mathsf w}\subset I_{\mathsf w}\mathfrak b\,\Lambda^{\rm src}_{\mathsf w}$,
and $I_{\mathsf w}\mathfrak b=\prod_w\mathfrak p_w^{-\nu_w}$ with
$\nu_w=\lfloor e_w\,\mathrm{sg}_{\mathsf w}(w)\rfloor-e_w\tau(w)$. Use the first half of (1), then (2), then
$\lfloor c\rfloor\le c$ for real $c$, $\lambda_w>0$, and the definition \eqref{lt:lam} of $\mathrm{sz}_w$:
\begin{equation}\label{D:411}
\mu_{\max}(\Lambda^{\rm gl}_{\mathsf w})\ \le\ \mu_{\max}(\Lambda^{\rm src}_{\mathsf w})+2\sum_w\lambda_w\nu_w
\ \le\ \mu_{\max}(\Lambda^{\rm src}_{\mathsf w})+\sum_w\mathrm{sz}_w\big(\mathrm{sg}_{\mathsf w}(w)-\tau(w)\big).
\end{equation}
By \eqref{lt:sgsum} the last sum is $G_{\rm top}+F_0-E_{\rm err}(\mathsf w)$. Now use (c). \qed
\noindent The lemma is the upper counterpart of Theorem~L4(iii). There the lengths \eqref{lt:L} are used
and the inclusion is not; here it is the other way round. No term for the rounding and none for the rank
occur, because $\lfloor c\rfloor\le c$ costs nothing and no index is needed. The source proves its
statement in the same way (\S9). \emph{Example} over $\Q$, where $\lambda_p=\log p$, $e_p=1$ and the
slope is $-\frac2{\mathrm{rk}}\log\mathrm{covol}$: let $\Lambda^{\rm src}=\Z^2$, $\tau(2)=1$,
$\Lambda^{\rm div}=2\Z\oplus4\Z\subset2\Z^2$ and $\mathrm{sg}(2)=3$. Then
$\Lambda^{\rm gl}=\frac18\Lambda^{\rm div}=\frac14\Z\oplus\frac12\Z$. Its largest slope is that of
$\frac14\Z$, namely $2\log4$ (the lattice itself has slope $\log8$). The bound is
$\mu_{\max}(\Z^2)+2\log2\cdot(3-1)=4\log2$: equality.
\subsection*{5.\quad The inequality for one translate}
\textbf{Lemma M5 (the cancellation; proved here).} \emph{Let $a_t\ge0$ $(t\in T)$, $A=\sum_ta_t$, let the
weights be positive, and let $\ell_g$ and $\varrho>0$ be real numbers. Put
$\log\Omega=\gamma+\log(\pi/\varrho)-c_{\chi_d}$,
$S=\sum_tm(a_t\log a_t-a_t-a_t\log\Omega)$ and
$\Lambda_{\rm c}=\sum_{j=1}^m\big(\langle\log w_{u,j}\rangle+\log(\varrho/\pi)\big)+m\,\ell_g$. Then}
\begin{equation}\label{as:cancel}
S-A\,\Lambda_{\rm c}+m\,A\,\ell_g\ =\ \sum_{t\in T}\sum_{j=1}^mM_{u,t,j}=M_u .
\end{equation}
\emph{Here $a_t\log a_t$ means $0$ for $a_t=0$.}
\emph{Proof.} $S=m\sum_ta_t(\log a_t-1-\gamma+c_{\chi_d})-mA\log(\pi/\varrho)$, and
$-A\Lambda_{\rm c}=-A\sum_j\langle\log w_{u,j}\rangle-mA\log(\varrho/\pi)-mA\ell_g$. In the sum the terms
$\mp mA\log(\pi/\varrho)$ cancel, and so do $\mp mA\ell_g$. What remains is
$\sum_j\sum_ta_t(\log a_t-1-\gamma+c_{\chi_d}-\langle\log w_{u,j}\rangle)$. \qed
\noindent The lemma is used with $\varrho=\mathrm{rd}_E/2$. It is \eqref{II:t6.6} of Part~II, summed over $t$ and
$j$. Three things cancel in the assembly. (a) \emph{The period against the count.} The number
$\log\Omega_E$ comes from the size bound (H1), with the sign $-m\,a_t\log\Omega_E$. Its part
$\log(2\pi/\mathrm{rd}_E)$ meets $+\log(\mathrm{rd}_E/2\pi)$ from the lower bound (H4) for the level, and
the two cancel. What is left of $\log\Omega_E$ is $\gamma-c_{\chi_d}$, and it gives the terms
$-\gamma+c_{\chi_d}$ of $M_{u,t,j}$. So in the assembly $\log\Omega_E$ enters once, and one part of it
cancels against the count. (Inside the proof of (H1) the periods occur with both signs, in the height and
in the slope, and cancel up to an error: see the table after Theorem~\ref{sa:thm}.) (b) \emph{The level
primes $g_0,g_1$.} The term $m\,A\,\ell_g$ of the count (H4) cancels against the main part of the level
correction $E_{\rm err}$ (H2). (c) \emph{The weights.} The term $-A\sum_j\langle\log w_{u,j}\rangle$ comes
from (H4) alone. The main term $a_t\log a_t-a_t$ comes from (H1) alone and does not cancel against
anything here: it is matched by the prime sum, through (H6) and (H7).
\textbf{Lemma M6 (proved here).} \emph{Let $0\le\mathrm{sp}\le U_{\rm sp}$, $b>0$, $X>0$ and
$0<\mathsf R\le Xb$. Then $\mathrm{sp}\log(1+\mathsf R/\mathrm{sp})\le\log(1+X)\,(U_{\rm sp}+b)$, the left side being
$0$ for $\mathrm{sp}=0$.}
\emph{Proof.} Let $\mathrm{sp}>0$. For every real $c>0$ we have $\log c\le c-1$. Apply this to
$c=(1+\mathsf R/\mathrm{sp})/(1+X)$:
\begin{equation}\label{D:413}
\mathrm{sp}\log\Big(1+\frac{\mathsf R}{\mathrm{sp}}\Big)\le\mathrm{sp}\log(1+X)+\frac{\mathrm{sp}+\mathsf R}{1+X}-\mathrm{sp}
\le\mathrm{sp}\log(1+X)+\frac{Xb}{1+X}.
\end{equation}
And $X/(1+X)=1-1/(1+X)\le\log(1+X)$, by the same inequality for $c=1/(1+X)$. \qed
\noindent The lemma converts the term $4\,\mathrm{sp}\log(1+\mathsf R/\mathrm{sp})$ of (H8) into
$\log(1+x^{C_H})$ times a bound for the spread. Without a bound for the spread one has only
$\mathrm{sp}\log(1+\mathsf R/\mathrm{sp})\le\mathsf R=x^{C_H}b$, which is too large.
\textbf{Proposition M7 (one translate; proved here from (H0)--(H11)).} \emph{Assume
\textup{(H0)}, except its part \textup{(h)}, and \textup{(H1)--(H11)} for the translate $u$. Then}
\begin{equation}\label{as:Err}
P_u-M_u\ \le\ \mathrm{Err}_u:=K_0+\log|\mathsf W_u|+\mathrm{LoP}+\mathrm{MLo}
+8\log\big(1+x^{C_H}\big)\,(U_{\rm sp}+b)+12\,b ,
\end{equation}
\emph{where $\mathrm{LoP}$ is as in \eqref{as:H7} and}
\begin{align}\label{D:415}
K_0&=c_4A\Big(L_a+\frac{m^2L_a}k\Big)+c_1|T|aL_a+c_1m(B_0+N_c)x^{C_{\rm abs}\varepsilon}+c_2mB_0+c_5|T|aL_a\Big(1+\frac mk\Big),\\
\mathrm{MLo}&=c_6\,\mathrm{LoP}+c_6c_4\,|T|\,m^2\Big(\frac ak+b'\Big)x^{\varepsilon}+c_6X''+1,\\
V_{\rm var}&=2c_2mB_0+c_3\big(|T|aL_a+mB_0\big)+c_4A\log k,\\
U_{\rm sp}&=c_5|T|aL_a\Big(2+\frac mk\Big)+V_{\rm var}+c_6mB_0+\mathrm{MLo}.
\end{align}
\emph{Proof.} Write $G=G_{\rm top}$, $\mu_{\mathsf w}=\mu(\Lambda^{\rm gl}_{\mathsf w})$,
$\mu^{\max}_{\mathsf w}=\mu_{\max}(\Lambda^{\rm gl}_{\mathsf w})$, $E_{\mathsf w}=E_{\rm err}(\mathsf w)$,
$\ell_{\mathsf w}=\log\mathrm{Lv}(\mathsf w)$, and let $\overline{\mathrm{Lo}}$ be the mean of the numbers
$\mathrm{Lo}_{\mathsf w}$ with the weights $d_{\mathsf w}$. The set $\mathsf W_u$ is not empty by (H0)(g), and the weights
$d_{\mathsf w}$ are positive by (H11); so the means over the words that occur below are defined. And
$A\ge0$ by (H0)(c).
\emph{Step 1: a lower bound for $s_u$.} Fix a word. By (H6)(ii), and by (H1) solved for $-h_{\mathsf w}$,
\begin{equation}\label{D:416}
\mu_{\mathsf w}-h_{\mathsf w}\ \ge\ \mu(\Lambda^0_{\mathsf w})+G+F_0-E_{\mathsf w}-\mathrm{Lo}_{\mathsf w}
+\mu_{\rm CC}-F_0-S+A\ell_{\mathsf w}-c_1|T|aL_a-c_1m(B_0+N_c)x^{C_{\rm abs}\varepsilon}.
\end{equation}
The two terms $F_0$ cancel. Now use the lower bound of (H5) for $\mu(\Lambda^0_{\mathsf w})$, the upper bound
$E_{\mathsf w}\le mA\ell_g+c_2mB_0$ of (H2), and the lower bound of (H4), which reads
$\ell_{\mathsf w}\ge\Lambda_{\rm c}-c_4(L_a+m^2L_a/k)$ with $\Lambda_{\rm c}$ as in Lemma~M5 for
$\varrho=\mathrm{rd}_E/2$. Since $A\ge0$,
\begin{equation}\label{D:417}
\mu_{\mathsf w}-h_{\mathsf w}\ \ge\ G+\mu_{\rm CC}-\big(S-A\Lambda_{\rm c}+mA\ell_g\big)-K_0-\mathrm{Lo}_{\mathsf w}
=G+\mu_{\rm CC}-M_u-K_0-\mathrm{Lo}_{\mathsf w},
\end{equation}
by Lemma~M5. Taking the mean over the words with the weights $d_{\mathsf w}$,
\begin{equation}\label{as:step1}
s_u\ \ge\ G+\mu_{\rm CC}-M_u-K_0-\overline{\mathrm{Lo}} .
\end{equation}
\emph{Step 2: the spread.} Let $\mathsf w,\mathsf w'$ be words. By (H6)(iii) for $\mathsf w$ and (H6)(ii) for
$\mathsf w'$, the terms $G+F_0$ cancel and
\begin{equation}\label{D:419}
(\mu^{\max}_{\mathsf w}-h_{\mathsf w})-(\mu_{\mathsf w'}-h_{\mathsf w'})\le
\big(\mu_{\max}(\Lambda^0_{\mathsf w})-\mu(\Lambda^0_{\mathsf w'})\big)+c_6mB_0+\mathrm{Lo}_{\mathsf w'}
+\big(E_{\mathsf w'}-E_{\mathsf w}\big)+\big(h_{\mathsf w'}-h_{\mathsf w}\big).
\end{equation}
By (H5) the first bracket is at most $c_5|T|aL_a(2+m/k)$. By (H2), $E_{\mathsf w'}-E_{\mathsf w}\le2c_2mB_0$.
By (H3) and (H4),
$h_{\mathsf w'}-h_{\mathsf w}\le c_3(|T|aL_a+mB_0)+A(\ell_{\mathsf w}-\ell_{\mathsf w'})\le c_3(|T|aL_a+mB_0)+c_4A\log k$.
So the left side is at most $c_5|T|aL_a(2+m/k)+V_{\rm var}+c_6mB_0+\mathrm{Lo}_{\mathsf w'}$. Take the mean
over $\mathsf w'$ with the weights $d_{\mathsf w'}$, and then the maximum over $\mathsf w$. By
\eqref{as:s},
\begin{equation}\label{as:step2}
0\le\mathrm{sp}_u\ \le\ c_5|T|aL_a\Big(2+\frac mk\Big)+V_{\rm var}+c_6mB_0+\overline{\mathrm{Lo}} .
\end{equation}
\emph{Step 3: the losses.} By the upper bound of (H4) and the second inequality of (H7),
$\mathrm{Lo}_{\mathsf w}\le c_6\mathrm{LoP}+c_6|T|m(a/k+b')\,c_4mx^{\varepsilon}+c_6X''+1=\mathrm{MLo}$ for
every word. Hence $\overline{\mathrm{Lo}}\le\mathrm{MLo}$, and $\mathrm{sp}_u\le U_{\rm sp}$ by \eqref{as:step2}.
\emph{Step 4: the mean-slope inequality.} Put $\mathsf R=x^{C_H}b>0$. By (H9), $s_u-\mu^{\min}_{\rm CC}\le\mathsf R$,
so \eqref{as:H8} holds for this $\mathsf R$. By (H10), $(1-\delta_{\rm p})^{-1}\le2$. By (H8),
$(\eta_u+4\sqrt{\mathsf e_u})\mathsf R\le6b$. By Lemma~M6 with $X=x^{C_H}$,
$\mathrm{sp}_u\log(1+\mathsf R/\mathrm{sp}_u)\le\log(1+x^{C_H})(U_{\rm sp}+b)$. So
\begin{equation}\label{D:421}
s_u\ \le\ \mu_{\rm CC}+\log|\mathsf W_u|+8\log\big(1+x^{C_H}\big)(U_{\rm sp}+b)+12\,b .
\end{equation}
With \eqref{as:step1} the terms $\mu_{\rm CC}$ cancel:
\begin{equation}\label{D:422}
G\ \le\ M_u+K_0+\overline{\mathrm{Lo}}+\log|\mathsf W_u|+8\log\big(1+x^{C_H}\big)(U_{\rm sp}+b)+12\,b .
\end{equation}
\emph{Step 5: the prime sum.} By the first inequality of (H7), $P_u\le G+\mathrm{LoP}$. With
$\overline{\mathrm{Lo}}\le\mathrm{MLo}$ this is \eqref{as:Err}. \qed
\noindent\emph{Which hypothesis was used where.} Step~1: (H1), (H2), (H4) lower bound, (H5) lower bound,
(H6)(ii). Step~2: (H2), (H3), (H4) third part, (H5), (H6)(ii) and (iii). Step~3: (H4) upper bound, (H7)
second part. Step~4: (H8), (H9), (H10). Step~5: (H7) first part. The means over the words exist by
(H0)(g) and (H11), and (H0)(c) gives the sign of $A$. So every part of (H1)--(H11) is used \emph{except}
(H6)(i): the proof never uses that $\beta_{\mathsf w}$ maps $\Lambda^{\rm gl}_{\mathsf w}$ into
$\mathcal R^\vee$. That statement, and the statement (8b) that $h_{\mathsf w}$ bounds the height of
$\beta_{\mathsf w}$, enter only through (H8): they are two of the three inputs from which Proposition~M4
gives (H8). Three smaller points. (H2) is used only in its summed form
$|E_{\rm err}(\mathsf w)-mA\ell_g|\le c_2mB_0$. That $\mathrm{sp}_u\ge0$ is part of Definition~M2
($\mu\le\mu_{\max}$), not a Hypothesis. And of (H0), besides (c) and (g), only $x\ge1$ and $b\ge1$ are
used in this proof (in Step~4). Steps~1, 4 and~5 give the inequality; Steps~2 and~3 only make its error
small.
\subsection*{6.\quad The size of the error; Theorem~M}
\textbf{Lemma M8 (the size of the error; proved here).} \emph{Assume \textup{(H0)}, except its part \textup{(h)}. Let $K\ge0$ be
a real number with $c_i\le K$ for $1\le i\le7$, and suppose}
\begin{equation}\label{as:big}
x^{\varepsilon}\ \ge\ 79\,(1+K)^2\,(1+C_H)\,(1+e_K).
\end{equation}
\emph{Then, with $\mathfrak E$ as in \eqref{as:E},}
\begin{equation}\label{as:size}
\mathrm{Err}_u\ \le\ x^{(C_{\rm abs}+e_L+3)\varepsilon}\ \mathfrak E .
\end{equation}
\emph{Proof.} Write $z=x^{\varepsilon}$, $z_D=x^{C_{\rm abs}\varepsilon}$, $z_L=x^{e_L\varepsilon}$; all are
$\ge1$. Write $\kappa_1=(1+K)^2$, $\kappa_2=1+C_H$, $\kappa_3=1+e_K$. We collect the facts that follow
from (H0). (1) $m\le x$, because $m\le x^{1/2+\varepsilon/2}\le x$; so $mb\le a$, and $m/k\le1$. (2)
$\mathfrak E\ge|T|a(1+m^2/k)\ge|T|a\ge a\ge b\ge1$, because $|T|\ge1$; and $mB_0\le\mathfrak E$,
$m(B_0+N_c)\le\mathfrak E$. (3) $A\le2|T|a$. (4) $\log k\le e_K\log x\le\kappa_3\,z$. (5)
$\log(1+x^{C_H})\le\log2+C_H\log x\le\kappa_2\,z$. (6) $\log|\mathsf W_u|\le k\le a\le\mathfrak E$. (7)
$|T|m^2(a/k+b')\le2|T|m^2a/k\le2\mathfrak E$, because $b'\le a/k$. (8) $X''\le a\le\mathfrak E$.
Now bound the terms of \eqref{as:Err}.
\begin{align}\label{D:425}
K_0&\le4Kz\,|T|a(1+m^2/k)+2Kz\,|T|a+Kz_D\,m(B_0+N_c)+K\,mB_0+4Kz\,|T|a\\
&\le(10K\,z\,z_D+K)\,\mathfrak E,\\
\mathrm{LoP}&\le K\,z_L\,|T|\,a\le Kz_L\,\mathfrak E,\\
\mathrm{MLo}&\le\big(K^2z_L+2K^2z+K+1\big)\mathfrak E,\\
U_{\rm sp}-\mathrm{MLo}&\le6Kz\,\mathfrak E+\big(2K+K(2z+1)+2K\kappa_3\,z\big)\mathfrak E+K\mathfrak E\\
&=\big(8Kz+4K+2K\kappa_3z\big)\mathfrak E .
\end{align}
Hence $K_0+\log|\mathsf W_u|+\mathrm{LoP}+\mathrm{MLo}\le(14K+3K^2+2)\,z\,z_D\,z_L\,\mathfrak E\le7\kappa_1\,z\,z_D\,z_L\,\mathfrak E$,
and $U_{\rm sp}+b\le(15K+3K^2+2)\,\kappa_3\,z\,z_L\,\mathfrak E\le7.5\,\kappa_1\,\kappa_3\,z\,z_L\,\mathfrak E$. So
\begin{equation}\label{D:426}
\mathrm{Err}_u\le\big(7\kappa_1\,z\,z_Dz_L+8\kappa_2z\cdot7.5\,\kappa_1\,\kappa_3\,z\,z_L+12\big)\mathfrak E
\le79\,\kappa_1\,\kappa_2\,\kappa_3\cdot z^2z_Dz_L\,\mathfrak E\le z^3z_Dz_L\,\mathfrak E,
\end{equation}
by \eqref{as:big}. And $z^3z_Dz_L=x^{(C_{\rm abs}+e_L+3)\varepsilon}$. \qed
\medskip
\noindent\textbf{Theorem M.} \emph{Fix $\varepsilon$, $x$ and a translate $u\in H$. Assume the Hypotheses
\textup{(H0)--(H11)} of \S4 for $u$, with constants $c_1,\dots,c_7\le K$ and $C_{\rm abs},e_L,C_H,e_K\ge0$, and
assume \eqref{as:big}. Then}
\begin{equation}\label{as:thmM}
\sum_{t\in T}\sum_{j=1}^m\big(P_{u,t,j}-M_{u,t,j}\big)\ \le\ x^{(C_{\rm abs}+e_L+3)\varepsilon}
\Big(|T|\,a\Big(1+\frac{m^2}k\Big)+m\,(B_0+N_c)\Big),
\end{equation}
\emph{and, with $B=|T|\,m\,b\,\delta/2$ and $\delta=|T_2|/n$,}
\begin{equation}\label{as:four}
\frac1B\sum_{t\in T}\sum_{j=1}^m\big(P_{u,t,j}-M_{u,t,j}\big)\ \le\
8\,x^{(C_{\rm abs}+e_L+3+\frac{17}8)\varepsilon}\Big(\frac xm+\frac{xm}k+m+\frac k{n^2}\Big).
\end{equation}
\emph{So the main inequality \textup{(M)}, in the form \eqref{as:M} for the translate $u$, follows
from \textup{(H0)--(H11)}.}
\emph{Proof.} \eqref{as:thmM} is Proposition~M7 with Lemma~M8. For \eqref{as:four}, by (H0)(f),
\begin{equation}\label{as:div}
\frac{\mathfrak E}B=\frac2\delta\Big(\frac xm+\frac{xm}k\Big)+\frac{4n}{|T|\,\delta}\,m\,x^{\varepsilon}
+\frac{2n}{|T|}\,x^{2\varepsilon}\,\frac k{n^2}:
\end{equation}
the first term is $|T|\,xb\,(1+m^2/k)$ divided by $|T|mb\delta/2$; the second is $m\cdot2nmbx^{\varepsilon}$
divided by the same; and for the third, $N_c=\delta\,k\,b\,x^{2\varepsilon}/n$. By (H0)(h),
$1/\delta\le x^{\varepsilon}$ and $n/|T|\le2x^{\varepsilon/8}$. So the three terms are at most
$2x^{\varepsilon}(x/m+xm/k)$, $8x^{17\varepsilon/8}m$ and $4x^{17\varepsilon/8}k/n^2$. \qed
\noindent The theorem will be used as the statement (M) of Parts~I and~II. It is an implication: it
reduces (M) to (H0)--(H11), and it does not prove (M). Of its hypotheses, the paper proves none
outright; the status of each is in the table of \S1. \emph{A limitation.} The theorem is a statement for
one scale $x$ and one set of data. Parts~I and~II need (M) for every $x$ in intervals $[Z,Z^{3/2}]$
with $Z$ arbitrarily large, each time with auxiliary primes $q$, $d$ for which Estimates~B and~C hold at
that $x$. That data satisfying the Hypotheses exist for these $x$, with such primes and with constants
that do not depend on $x$, is not proved here. It is Hypothesis (H12) of \S7.
\textbf{Corollary M9 (the mean over the translates).} \emph{Assume the hypotheses of Theorem~M for every
$u\in H$, with the same constants $K$, $C_{\rm abs}$, $e_L$, $C_H$, $e_K$ for all $u$. Assume also that
$\varepsilon$, $x$, $b$, $n$, $m$, $k$ and the sets $T$, $T_2$ are the same for all $u$, as the last
sentence of Hypothesis~\textup{O23} says. Then}
\begin{gather}\label{D:430}
\frac1n\sum_{u\in H}\sum_{t\in T}\sum_{j=1}^m\big(P_{u,t,j}-M_{u,t,j}\big)\le\mathcal E,\qquad
\mathcal E=x^{(C_{\rm abs}+e_L+3)\varepsilon}\,\mathfrak E,\\
\frac{\mathcal E}B\le8\,x^{(C_{\rm abs}+e_L+3+\frac{17}8)\varepsilon}\Big(\frac xm+\frac{xm}k+m+\frac k{n^2}\Big).
\end{gather}
\emph{This is the display \textup{(M)} of Part~II, \S4.3, with $C=C_{\rm abs}+e_L+6$, because
$8\le x^{7\varepsilon/8}$ by \eqref{as:big}.}
\emph{Proof.} The right side of \eqref{as:thmM} is formed from $|T|$, $a=xb$, $m$, $k$, $B_0$, $N_c$ and
the constants, which are common to all translates; so it does not depend on $u$. Take the mean of
\eqref{as:thmM} over the $n$ translates. \qed
\noindent On the route of the final theorem $e_L=0$, so that $C=C_{\rm abs}+6$ (\S2, item (3)).
\noindent\emph{On the two means.} The step from one translate to the mean uses no further hypothesis. The
mean over the \emph{words}, weighted by the ranks $d_{\mathsf w}$, is inside the proof for one translate:
it is the number $s_u$, and it is forced by Proposition~M4, where the degrees of the sources are added.
After Step~4 of Proposition~M7 no word is left. The error is the same for every translate, except for the
term $\log|\mathsf W_u|$, which is bounded by $k$ in Lemma~M8. If one wants only the mean over $u$, it is
enough to assume (H7) on average over $u$; the source contains this variant, and the final theorem does
not use it (\S9).
\textbf{The four errors.} The table says which term of $\mathrm{Err}_u$ becomes which error of (M),
which Hypothesis it comes from, and its size for the parameters of \S\ref{ob:sec}
($n=x^{2+8\varepsilon}$, $m=x^{1/2-\varepsilon/16}$, $k=x^{9/2+10\varepsilon}$, $|T|=nx^{-\varepsilon/8}$,
$\delta=x^{-\varepsilon}$, up to bounded factors). The last column is the term divided by $B$, as a power
of $x$; constants, and the factors $x^{C_{\rm abs}\varepsilon}$, $x^{e_L\varepsilon}$, $\log(1+x^{C_H})$,
are left out.
{\small\setlength{\LTleft}{0pt}\setlength{\LTright}{0pt}
\begin{longtable}{@{}p{.25\textwidth}p{.34\textwidth}p{.12\textwidth}p{.20\textwidth}@{}}
\toprule
Term of $\mathrm{Err}_u$ & Hypothesis & Error of (M) & Size divided by $B$\\
\midrule\endhead
\bottomrule\endfoot
$|T|\,a\,L_a$ & (H1) first error; (H5); (H3), through the spread; (H4), $c_4AL_a$ & $x/m$ & $x^{1/2+33\varepsilon/16}$\\
$A\log k$ & (H4) third part, through the spread & $x/m$ & $x^{1/2+17\varepsilon/16}$\\
$|T|\,a\,L_a\,m^2/k$ & (H4): the defect $c_4m^2L_a/k$ of the count & $xm/k$ & $x^{-3-129\varepsilon/16}$\\
$|T|\,m^2(a/k+b')\,x^{\varepsilon}$ & (H6)(ii): the places above the level, with (H4) upper bound & $xm/k$ & $x^{-3-129\varepsilon/16}$\\
$m\,B_0$ & (H1) second error; (H2); (H3). (The term $c_6mB_0$ of (H6)(iii) also has this form, but by Lemma~M10 it can be taken to be $0$; it is kept only to match the source) & $m$ & $x^{1/2+33\varepsilon/16}$\\
$m\,N_c$ & (H1) second error only & $k/n^2$ & $x^{1/2-31\varepsilon/8}$\\
$\mathrm{LoP}=c_7|T|mbx^{e_L\varepsilon}$ & (H7) & (absorbed in $x/m$) & $x^{\varepsilon}$\\
$b$; $X''$; $\log|\mathsf W_u|$ & (H8) with (H9); (H6)(ii), rounding; (H8) & (absorbed in $x/m$) & $\le x^{-5/2}$\\
\end{longtable}}
\noindent For comparison, the four errors themselves are $x/m=x^{1/2+\varepsilon/16}$,
$xm/k=x^{-3-161\varepsilon/16}$, $m=x^{1/2-\varepsilon/16}$ and $k/n^2=x^{1/2-6\varepsilon}$. So three of
them are of size $x^{1/2+O(\varepsilon)}$ and the fourth is negligible, as Remark~(1) of \S\ref{ob:sec}, \S3
says. \emph{Which choice of parameters produces which error.} (i) $x/m$ is a cost of order $|T|\,a$
incurred once for the whole chain; it is divided by $B$, which grows with the number $m$ of lifts. (ii)
$m$ is a cost of order $b\,x^{\varepsilon}$ for each of the $2n$ places and each of the $m$ lifts, that
is $B_0$, incurred for each lift; so it is $mB_0$, and after division it grows with $m$. The choice
$m\approx\sqrt x$ balances (i) and (ii). (iii) $xm/k$ comes from the terms with a factor $m^2/k$, in (H4) and (H6); it is made negligible
by $k\ge xm$. Why the factor has this form is not visible in this section. (iv) $k/n^2$ is the term $N_c$ of the size bound, which is proportional to $k\,|T_2|/n^2$;
it forces $k\le n^2x^{1/2}$. Since the number of words requires $k\ge8C_{\mathsf G}m^5f\,x^{\varepsilon}$
(\S III.8, after Corollary~T2) and $f=2n$, this gives $n\ge16C_{\mathsf G}m^5x^{\varepsilon-1/2}$, about
$x^2$, and then $k$ about $x^{9/2}$. This explains the sizes of $n$ and $k$; the remark is ours.
\subsection*{7.\quad The scales and the primes: Hypothesis (H12) and the Riemann hypothesis}
Theorem~M is a statement about one scale $x$ and one set of data. Parts~I and~II need more. This
subsection says what they need, states it as one further Hypothesis, (H12), and proves that (H12)
implies the Riemann hypothesis (Corollary~M11). Nothing in it is used in the proofs above.
\emph{What Parts~I and~II need.} Recall from \S I.1 the function
$G(x)=\sum_{r\le x}\Lambda(r)(x/r-1)-x\log x+(1+\gamma)x$, where $\Lambda$ is von Mangoldt's function. The
criterion of Part~II, \S1 needs a bound $G(x)\le x^\theta$ for every $x$ of intervals $[Z,Z^{3/2}]$
with $Z$ arbitrarily large. An arbitrary unbounded set of $x$ would not do. For one $x$, Part~II,
\S3--5 obtain the bound for $G(x)$ from three things at that $x$: the inequality (M); Estimate~B, for
the three characters $\chi_q$, $\chi_d$, $\chi_q\chi_d$; and Estimate~C, for the characters of the field
$E$ of the data, which is formed with $q$, $d$ and $n$. The three must be for the same primes $q$, $d$
and the same $n$. But the argument is for each $x$ separately, and nothing ties the primes used at
different $x$. So the need is this: \emph{for each $x$ of the interval, some data and some pair $q$, $d$
for which \textup{(M)} and Estimates~B and~C hold at that $x$; and constants that do not depend on $x$,
so that one exponent serves on the whole interval.} Part~II, \S3 takes one pair for the whole interval.
That is more than its argument uses. Only small $\varepsilon$ matter: the conclusion lets $\varepsilon$
tend to $0$.
\medskip
\noindent\textbf{Hypothesis (H12) (supply on windows; assumed here, from the Lean development).}
\emph{There are real numbers $C_{\rm abs}\ge0$, $e_L\ge0$ and $\varepsilon_1$ with
$0<\varepsilon_1\le\frac1{52}$, and for every $\varepsilon$ with $0<\varepsilon<\varepsilon_1$ there are
real numbers $K\ge0$, $C_H\ge0$, $e_K\ge0$ and $J\ge1$, such that the following holds. For every real
number $y$ there is a real number $Z\ge y$ such that for every real $x$ with $Z\le x\le Z^{3/2}$ there
exist}
\begin{enumerate}[label=\textup{(\alph*)},leftmargin=2.2em,itemsep=1pt,topsep=2pt]
\item \emph{a real number $Y$ with $x^{1/J}\le Y\le x$;}
\item \emph{primes $q$ and $d$ that have the properties \textup{(a), (b), (c)} and \textup{(e)} of
Theorem~\ref{thm:pair} for $M=1$, for this $\varepsilon$ and for this $Y$, and the property
\textup{(d)} of that theorem for $M=1$ at all $y'$ with $Y\le y'\le x$: for $\chi=\chi_q$, $\chi_d$ and
$\chi_q\chi_d$,}
\begin{equation}\label{D:431}
|G_\chi(y')|\le y'^{\,1/2+\varepsilon/2}\qquad\text{and}\qquad\Big|\frac{L'}{L}(1,\chi)\Big|\le4\log y'
\qquad(Y\le y'\le x);
\end{equation}
\item \emph{data of the construction of \S\ref{ob:sec} for this $\varepsilon$, this $x$ and these $q$,
$d$: an integer $n=2^e$ with $e\ge2$ and $x^{2+8\varepsilon}\le n\le2x^{2+8\varepsilon}$; the field $E$
and the group $H$ of order $n$ formed with $q$, $d$ and $n$ \textup{(\S\ref{ob:sec}, \S1)}; and for
every translate $u\in H$ the objects listed at the start of \S4. The numbers $b$, $m$, $k$, the sets $T$
and $T_2$, and the orders $a_t$ are the same for all $u$; the set $T_2$ is regarded as a set of
columns, that is, as a subset of $H$;}
\item \emph{such that \textup{(H0)--(H11)} hold for every $u\in H$, with these $C_{\rm abs}$, $e_L$,
$C_H$, $e_K$ and with constants $c_1,\dots,c_7\le K$;}
\item \emph{and such that $b=\exp(x^{\varepsilon})$; $a_t>0$ and $|a_t/b-x|\le1$ for $t\in T$;
$m\ge x^{1/2-\varepsilon}$ and $k\le n^2x^{1/2-\varepsilon}$; and, for every $u\in H$ and every lift $j$,
$b\le w_{u,j}(1,s)\le b\,(1+1/(nx^2))$ for $s\in uT_2$, and
$a_t/w_{u,j}(v,s)\ge\frac13\exp(x^{\varepsilon/3})$ for every other cell $(v,s)$ and every $t\in T$.}
\end{enumerate}
\noindent\emph{How to read the quantifiers.} The numbers $C_{\rm abs}$, $e_L$, $\varepsilon_1$ come first
and depend on nothing. The numbers $K$, $C_H$, $e_K$, $J$ may depend on $\varepsilon$. None of these
depends on $x$, on the translate or on the word. The interval $[Z,Z^{3/2}]$ depends on $\varepsilon$ and
$y$. Everything in (a)--(e) may depend on $x$: the scale $Y$, the primes, $n$, the field and all the
data. The Hypothesis does not say that two points $x$ of one interval have the same primes. It does not
say that $Y$ is the left end $Z$ of the interval.
\noindent\emph{What ``data'' means.} In (c), ``data'' means the objects listed at the start of \S4, with
the types stated there, together with the sets $T,T_2\subset H$, the numbers $b$, $m$, $k$, $a_t$
($t\in T$) and the weights $w_{u,j}$ on the $2n$ cells. Corollary~M11 uses no property of them beyond
(H0)--(H11) and (e). In the source they are the objects of \S\ref{ob:sec}, whose existence is Hypotheses
O12, O19--O21, O23--O25 there; so (H12) contains those hypotheses for the scales of its intervals, to the
extent that the dictionary of \S\ref{ob:sec}, \S7 is correct.
\noindent\emph{What each clause is for.} Clauses (c) and (d) are the hypotheses of Corollary~M9 at the
scale $x$; they give (M) at $x$. Clause (d) is for every $u\in H$; so the translates over which (M)
takes its mean form the whole group $H$, which contains $T_2$. Clause (b) gives Estimate~B at $x$ (take
$y'=x$ in (d) of Theorem~\ref{thm:pair}), and it gives the hypotheses of Theorem~\ref{thm:C}, hence
Estimate~C at $x$. Clause (a) ties the sizes of $q$ and $d$ to $x$. The proof of Corollary~M11
uses only $1\le Y\le x$ from it; the lower bound $x^{1/J}\le Y$, and with it $J$, is what makes clause (b)
available from Theorem~\ref{thm:pair} (Status, (1)), and is not used in the proof. Likewise the lower bounds
in (a), (b) of Theorem~\ref{thm:pair}, the small primes in (c) and the height of the region in (e) are not
used there. Clause (e) lists the conditions
under which Part~II, \S4--5 pass from (M) to Estimate~A: the shape of the weights (Part~II, \S4.2), and
the two inequalities that make the four errors of (M) at most $x^{1/2+\varepsilon}$.
\noindent\emph{Status.} Assumed here, from the Lean development; \S9, Remark~(7) gives the statements of
the source to which it corresponds. Three remarks say how much of it the paper supplies.
(1) \emph{The pair.} Theorem~\ref{thm:pair}, proved in \S III.1 from four cited theorems, gives for
$M=1$, $A=J$ and every large $Y$ a pair $q$, $d$ with the properties (a)--(e) there. Such a pair has the
properties of clause (b) for every $x$ with $Y\le x\le Y^J$, because then $[Y,x]\subset[Y,Y^J]$. And
$Y\le x\le Y^J$ is clause (a). So the paper proves that pairs as in (b) exist, for every large scale $Y$
and every $x$ in $[Y,Y^J]$. \S III.2 proves that Estimate~C holds for such a pair
(Theorem~\ref{thm:C}; this is used in the proof of Corollary~M11 and is not part of the Hypothesis).
(2) \emph{What is not supplied.} First, that the construction can be carried out at $x$ with such a
pair: that the primes $q$, $d$ of the data at $x$ are a pair as in (b). Hypothesis~O23 asserts data at
its admissible scales and says of their primes what (a)--(c) of Theorem~\ref{thm:pair} say, at a scale
$Y$ with $x^{1/J}\le Y\le x$; it does not say (d) or (e). The construction also asks more of the primes
than Theorem~\ref{thm:pair} gives, for instance $q,d>4t_0r+1$ (table of O23). Second, that these data
satisfy (H0)--(H11); the table of \S1 says what is known for each. Third, the uniformity: that $K$,
$C_H$, $e_K$, $C_{\rm abs}$, $e_L$ do not depend on $x$, and that the scales $x$ at which all this holds
fill intervals $[Z,Z^{3/2}]$ with $Z$ arbitrarily large. O23 speaks of an unbounded set of admissible
scales and does not say that it contains intervals.
(3) \emph{Clause \textup{(e)} is not a new assumption on data as in Hypothesis~O23.} It follows from the
conditions of the table of O23 for $x$ large in terms of $\varepsilon$. Indeed $b=\exp(x^\varepsilon)$
is in the table. From $a\le a_t\le a(1+1/(kx^{13}))$ and $a=xb$ we get $0\le a_t/b-x\le1$. From
$m\ge\sqrt{x\delta_1}=x^{1/2-\varepsilon/16}$ we get $m\ge x^{1/2-\varepsilon}$. From
$k\le2x^{9/2+10\varepsilon}$ and $n\ge x^{2+8\varepsilon}$ we get $k\le n^2x^{1/2-\varepsilon}$ as soon as
$x^{5\varepsilon}\ge2$. A thick cell has $b\le w\le b+\eta+1$ with $6f(x+1)(\eta+1)\le b/x$ and $f=2n$, so
$\eta+1\le b/(nx^2)$. A top cell has $w\le b_t+b'/x+\eta\le3b'$ and a thin cell has
$w\le w''+\eta\le b'$, for large $x$; and $a_t/(3b')\ge a/(3b')=\frac13X'=\frac13\exp(x^{\varepsilon/3})$.
\medskip
\noindent\textbf{Corollary M11 (the Riemann hypothesis from the Hypotheses; proved here from (H12),
Theorem~M, Part~II and Theorem~\ref{thm:C}).} \emph{Assume \textup{(H12)}; it contains
\textup{(H0)--(H11)} for the data at each scale. Put $C_*=C_{\rm abs}+e_L+8$. Then for every
$\varepsilon$ with $0<\varepsilon<\varepsilon_1$ and every real number $y$ there is $Z\ge y$ such that}
\begin{equation}\label{as:Gbound}
G(x)\ \le\ x^{1/2+C_*\varepsilon}\qquad\text{for all }x\text{ with }Z\le x\le Z^{3/2}.
\end{equation}
\emph{Consequently $\zeta(s)\ne0$ for $\re s>\frac12$: the Riemann hypothesis holds.}
\emph{Proof.} Fix $\varepsilon$ with $0<\varepsilon<\varepsilon_1$, and let $K$, $C_H$, $e_K$, $J$ be as
in (H12). Below, ``for large $x$'' means: for $x\ge x_1(\varepsilon)$, where $x_1(\varepsilon)$ depends
on $\varepsilon$, $K$, $C_H$, $e_K$ and on nothing else. There are finitely many such conditions. Given
$y$, apply (H12) with $\max(y,x_1(\varepsilon))$ in place of $y$. This gives $Z$. Fix $x$ with
$Z\le x\le Z^{3/2}$, and let $Y$, $q$, $d$, $n$ and the data be as in (a)--(e).
\emph{Step 1: \textup{(M)} at $x$.} By (c) and (d) the hypotheses of Corollary~M9 hold, and
\eqref{as:big} holds for large $x$. So, with $B=|T|mb\delta/2$,
\begin{equation}\label{D:433}
\frac1n\sum_{u\in H}\sum_{t\in T}\sum_{j=1}^m\big(P_{u,t,j}-M_{u,t,j}\big)\le\mathcal E,\qquad
\frac{\mathcal E}B\le x^{(C_{\rm abs}+e_L+6)\varepsilon}\Big(\frac xm+\frac{xm}k+m+\frac k{n^2}\Big).
\end{equation}
By (e), $x/m\le x^{1/2+\varepsilon}$ and $k/n^2\le x^{1/2-\varepsilon}$. By (H0)(b),
$m\le x^{1/2+\varepsilon/2}$ and $xm/k\le1$. So
\begin{equation}\label{as:EB}
\mathcal E/B\ \le\ 4\,x^{1/2+(C_{\rm abs}+e_L+7)\varepsilon}.
\end{equation}
\emph{Step 2: Estimate~B at $x$.} The primes $q\equiv3$ and $d\equiv7\bmod8$ are odd and different. So
$\chi_q$, $\chi_d$ and $\eta=\chi_q\chi_d$ are primitive characters, different from the trivial one. By
(b) with $y'=x$,
\begin{equation}\label{as:estB}
|G_\chi(x)|\le x^{1/2+\varepsilon/2}\qquad\text{and}\qquad|c_\chi|\le4\log x\qquad(\chi=\chi_q,\ \chi_d,\ \eta),
\end{equation}
where $c_\chi=\frac{L'}L(1,\chi)$. This is Estimate~B (statement 2 of Part~II, \S3) at $x$.
\emph{Step 3: Estimate~C at $x$.} Apply Theorem~\ref{thm:C} with $Q=4n$, with the bound $1$ for the odd
part of $Q$, and with $c'=1$. Its hypotheses hold. The number $Q=2^{e+2}$ is divisible by $8$ and prime
to $qd$, and its odd part is $1$. By (a), (b) of Theorem~\ref{thm:pair} and $1\le Y\le x$,
$\log q\le x^{\varepsilon/5}$ and $\log d\le x^{\varepsilon/5}(\log x)^2$; and
$\log(4n)\le\log8+(2+8\varepsilon)\log x$. So $\log(Qqd)\le2x^{\varepsilon/5}(\log x)^2$ for large $x$.
Let $\chi\ne1$ be a real primitive character whose conductor divides $Qqd$ and is divisible by $q$ or
by $d$. Then $\chi=\rho\,\chi_q^i\chi_d^j$ with $(i,j)\ne(0,0)$ and $\rho$ a real primitive character
whose conductor is a power of $2$, hence $1$, $4$ or $8$. By (e) of Theorem~\ref{thm:pair} with $M=1$,
$L(\beta,\chi)\ne0$ for real $\beta>1-\frac1{400}$. So Theorem~\ref{thm:C} applies, for large $x$: for
every primitive character $\chi$ whose conductor divides $4nqd$, the trivial one included with $G_1=G$,
\begin{equation}\label{as:estC}
|G_\chi(y')|\le y'\exp\big(-x^{\varepsilon/8}\big)\qquad\text{for all }y'\ge\tfrac13\exp\big(x^{\varepsilon/3}\big).
\end{equation}
This is \eqref{II:t5.6} of Part~II, with $\kappa=1$. The characters of the cell expansion of Part~II, \S5.2 and
\S5.4 are the primitive characters that induce $\xi\chi_q^i\chi_d^j$ with $\xi$ a character of $H$; their
conductors divide $4nqd$.
\emph{Step 4: Part~II, \S5 at $x$.} We go through \S5 of Part~II and say where each of its hypotheses
comes from. The sums $P_{u,t,j}$ and $M_{u,t,j}$ of Definition~M1 are \eqref{II:t4.1} and \eqref{II:t4.2} of Part~II.
\begin{itemize}[leftmargin=1.6em,itemsep=1pt,topsep=2pt]
\item \emph{\textup{\eqref{II:t5.1}--\eqref{II:t5.3}}} hold for any positive weights and any $a_t>0$. They use the prime
number theorem for progressions to the fixed modulus $4nqd$, which is cited in Part~II. The weights are
positive by (H0)(e), and $a_t>0$ by (e). The result is
$P_{u,t,j}-M_{u,t,j}=\sum_iw_iR_i(a_t/w_i)$, the sum over the $2n$ cells.
\item \emph{\textup{\eqref{II:t5.4}, \eqref{II:t5.5}}} need the mean over all $u\in H$, and that the distinguished cells of
the translate $u$ are the cells $(1,s)$ with $s\in uT_2$. The first is in (c) and (d). The second is
the way (e) names the cells.
\item \emph{The other cells} (Part~II, \S5.4, first part) need \eqref{as:estC} at $y'=a_t/w_i$ and
$a_t\le(x+1)b$. By (e) the argument is at least $\frac13\exp(x^{\varepsilon/3})$, and $a_t\le(x+1)b$.
Each term is then at most $2a_t\exp(-x^{\varepsilon/8})$. There are $n\,|T|\,m$ triples $(u,t,j)$ and at
most $2n$ cells. After division by $nB$ the total is at most
$8n(x+1)\delta^{-1}\exp(-x^{\varepsilon/8})$. By (c) and (H0)(h), $n\le2x^{2+8\varepsilon}$ and
$\delta^{-1}\le x^\varepsilon$. So the total is at most $1$ for large $x$.
\item \emph{The distinguished cells} (\S5.4, second part) need $w_i=b+\Delta_i$ with
$0\le\Delta_i\le b/(nx^2)$. This is in (e). Part~II uses Chebyshev's bound, and the total after division
by $nB$ is at most a constant times $1/x$.
\item \emph{The argument} (\S5.4, third part) needs $|a_t/b-x|\le1$ and $|c_\chi|\le4\log x$ for the
three characters. These are in (e) and in \eqref{as:estB}. The change is at most a constant times
$1+\log x$.
\end{itemize}
The constants in the last two items are absolute. So \eqref{II:t5.7} of Part~II holds at $x$ in the form
\begin{equation}\label{D:437}
\frac1n\sum_{u\in H}\sum_{t\in T}\sum_{j=1}^m\big(P_{u,t,j}-M_{u,t,j}\big)\ \ge\ B\,R_{q,d}(x)-C_\varepsilon\,B\,(1+\log x),
\end{equation}
where $R_{q,d}$ is the function of Part~II, \S3 and $C_\varepsilon$ depends on $\varepsilon$ only. With
Step~1 and \eqref{as:EB},
\begin{equation}\label{D:438}
R_{q,d}(x)\ \le\ 4\,x^{1/2+(C_{\rm abs}+e_L+7)\varepsilon}+C_\varepsilon(1+\log x).
\end{equation}
This is Estimate~A at $x$.
\emph{Step 5: the bound for $G(x)$.} The identity of Part~II, \S3 is
$G(x)=R_{q,d}(x)-G_{\chi_q}(x)+G_{\chi_d}(x)+G_\eta(x)$. By Step~4 and \eqref{as:estB},
\begin{equation}\label{D:439}
G(x)\ \le\ 4\,x^{1/2+(C_{\rm abs}+e_L+7)\varepsilon}+C_\varepsilon(1+\log x)+3\,x^{1/2+\varepsilon/2}
\ \le\ x^{1/2+(C_{\rm abs}+e_L+8)\varepsilon}
\end{equation}
for large $x$, because $x^\varepsilon\ge8+C_\varepsilon(1+\log x)$ for large $x$.
\emph{Step 6: one exponent on the whole interval.} Every condition ``for large $x$'' above holds for
$x\ge x_1(\varepsilon)$, and $x_1(\varepsilon)$ does not depend on $x$, $Y$, $q$, $d$, $n$ or the data:
this is where the uniformity of the constants in (H12) is used. Since $Z\ge x_1(\varepsilon)$, Step~5
holds for every $x$ of $[Z,Z^{3/2}]$. This is \eqref{as:Gbound}.
\emph{Step 7: the Riemann hypothesis.} Let $\frac12<\theta<1$. Choose $\varepsilon$ with
$0<\varepsilon<\varepsilon_1$ and $\frac12+C_*\varepsilon\le\theta$. For $x\ge1$, \eqref{as:Gbound} gives
$G(x)\le x^\theta$ on intervals $[Z,Z^{3/2}]$ with $Z$ arbitrarily large. By the Lemma of Part~II, \S1
(the one-sided criterion on intervals), $\zeta$ has no zero in $\re s>\theta$. Since $\theta>\frac12$ is
arbitrary, $\zeta$ has no zero in $\re s>\frac12$. By the functional equation the zeros in
$0<\re s<1$ are symmetric about the line $\re s=\frac12$. So all of them lie on it. \qed
\noindent\emph{What the proof uses.} (i) Hypothesis (H12). (ii) Theorem~M and Corollary~M9, proved in
this section; they do not use (C6) or Proposition~M4, which serve only the status of (H8). (iii)
Part~II: the Lemma of \S1, the identity of \S3, and \S5; they are proved there, from the prime number
theorem for progressions to a fixed modulus, Chebyshev's bound, the continuation of $\zeta$ with its
expansion at $s=1$, and quadratic reciprocity (\S4.1). (iv) Theorem~\ref{thm:C}, proved in
\S III.2 from the cited theorems (Z1)--(Z3), the functional equation of $L(s,\chi)$ and Dirichlet's theorem
$L(1,\chi)\ne0$. (v) The functional equation of $\zeta$, in Step~7. Theorem~\ref{thm:pair} itself is not used: its conclusions
for the primes of the data are clause (b) of (H12). So in Corollary~M11 Estimate~B is an assumption about
the primes of the data. What \S III.1 adds is that primes with these properties exist. We found no step
of Part~II, \S3--5 that needs more than (H12) and the cited theorems. The conditions of Part~II, \S4.2
on the data that are not among (H0)--(H11) are exactly clause (e) and the bounds for $n$ in clause (c).
\noindent\emph{The exponent.} The source states the bound with $C_{\rm abs}+e_L+7$ in the place of
$C_*$. The $8$ here is not optimised.
\emph{What the statements of the source say} (the names are in \S9, Remark~(7)). The source has a
statement of the shape of (H12), and its quantifiers are as in (H12). Two exponents, our $C_{\rm abs}$
and $e_L$, and a bound $\varepsilon_1$ come first. For every $\varepsilon<\varepsilon_1$ there is a
family of data with a set of admissible scales, and there are $K$, $C_H$, $e_K$, a fourth constant $C_L$
that (H12) does not need, and $x_0$, such that for
every admissible $x\ge x_0$ the hypotheses of the source's form of Theorem~M hold for all translates.
The family is required to have \emph{windows with exponent $\frac32$}: for every $y$ there is $Z\ge y$
such that every $x$ with $Z\le x\le Z^{3/2}$ is admissible. A scale $x$ is admissible when there are a
scale $Y$ with $x^{1/J}\le Y\le x$, primes $q$, $d$ and an exponent $e$ with four properties: the
properties (a)--(c) of Theorem~\ref{thm:pair} at the scale $Y$; the property (d) for all $y'$ with
$Y\le y'\le x$; the property (e); and $x^{2+8\varepsilon}\le2^e\le2x^{2+8\varepsilon}$, together with the
bound \eqref{II:shabound} for Galois cohomology for the field formed with $q$, $d$, $e$. The source
proves that such windows exist from two inputs: its form of Theorem~\ref{thm:pair} with $A=J$, and the
bound for Galois cohomology on windows inside $[X^{1/J},X]$ for large $X$, which is where $J$ comes from.
In that proof one pair is chosen for a whole window, at the scale $Y=X^{1/J}$, with $X$ above the window. So $Y$ is
not the left end of the window, and need not be. The source then builds the field of the data at $x$
from the primes $q$, $d$ attached to $x$, and derives the bounds \eqref{as:estB} that its passage from
(M) to $G(x)$ uses from the property (d) at $y'=x$. In the statement that passes from (M) to $G(x)$,
the bound of (M) and the character estimates are taken at the same $x$ for the same data, hence for the
same $q$, $d$. All primes at one $x$ are the same for all translates; nothing ties the primes of
different $x$. The conclusion of the source is $G(x)\le x^{1/2+(C_{\rm abs}+e_L+7)\varepsilon}$ for the
admissible $x\ge x_1$, and then the criterion on windows. We read these statements, and the proofs named
in \S9, Remark~(7). We did not read how the source obtains its form of Estimate~C from property (e), nor
the proofs behind the source's form of Part~II, \S5. That the data of the source are the objects of
\S\ref{ob:sec} is the dictionary of \S\ref{ob:sec}, \S7, with the reservations made there.
\emph{Summary.} Theorem~M reduces (M) at one sufficiently large scale to (H0)--(H11). Hypothesis (H12) says that data
satisfying (H0)--(H11) exist at every $x$ of intervals $[Z,Z^{3/2}]$ with $Z$ arbitrarily large, with
constants that do not depend on $x$ and with primes for which Estimates~B and~C hold at $x$.
Corollary~M11 deduces the Riemann hypothesis from (H12). So the Riemann hypothesis is reduced to the
Hypotheses (H0)--(H12) and the cited theorems. None of the Hypotheses is proved outright in this paper,
and (H12) is assumed; of (H12) the paper proves that primes as in its clause (b) exist.
\subsection*{8.\quad Numerical checks}
The scripts are in \texttt{outline/examples/assembly/}. They test the arithmetic of this section on
made-up numbers. They do not test the Hypotheses for the construction.
\emph{Proposition M7} (\texttt{m1\_bookkeeping.py}). Random data were drawn so that (H1)--(H11) hold: the
free numbers (sizes, constants, weights, ranks, levels) at random, and then $h_{\mathsf w}$,
$\mu(\Lambda^0_{\mathsf w})$, $E_{\rm err}(\mathsf w)$, $\mu(\Lambda^{\rm gl}_{\mathsf w})$,
$\mu_{\max}(\Lambda^{\rm gl}_{\mathsf w})$, $G_{\rm top}$ and $P_u$ from the Hypotheses. In $20000$ cases
all the inequalities of (H1), (H2), (H5)--(H8) were equalities (``the extremes''), in $20000$ they had
random slack. The conclusion \eqref{as:Err} holds in all $40000$; the smallest value of
$(M_u+\mathrm{Err}_u-P_u)/\mathrm{Err}_u$ is $0.36$. At the extremes the inequality obtained before
Lemma~M6 and Step~3 are applied, $P_u\le M_u+K_0+\log|\mathsf W_u|+\mathrm{LoP}+\overline{\mathrm{Lo}}+{}$the
error of \eqref{as:H8}, is an equality up to $10^{-15}\,\mathrm{Err}_u$. So Steps~1, 4, 5 lose nothing,
and all the loss is in the bound for the spread. \emph{Controls.} One Hypothesis was violated by a
multiple of $\mathrm{Err}_u$ and the others kept ($2000$ cases each). With a violation of
$3\,\mathrm{Err}_u$ in (H1), (H2), (H4) (lower bound), (H5), (H6), (H7) or (H8) the conclusion fails in
all cases; so it does for (H9), when $\mathsf R$ is increased by $3\,\mathrm{Err}_u/(\eta_u+4\sqrt{\mathsf e_u})$,
and for (H10) with $\delta_{\rm p}$ near $1$. For (H3) it fails in about one case in five. This is as it
should be: (H3) enters only through the spread, and by the remark after Lemma~M6 a large spread costs at
most $8x^{C_H}b$.
\emph{Lemma M8 and the division} (\texttt{m2\_error.py}). On $400000$ random data satisfying (H0), half
of them with every bound of (H0) attained and with equality in \eqref{as:big}, the ratio
$\mathrm{Err}_u/(x^{(C_{\rm abs}+e_L+3)\varepsilon}\mathfrak E)$ is at most $0.063$. With the exponent
$C_{\rm abs}+e_L+2$ in place of $C_{\rm abs}+e_L+3$ the ratio reaches $1.4\cdot10^5$. This happens on the
data in which $\log k$ and $\log(1+x^{C_H})$ have the largest values that (H0) allows,
$(1+e_K)x^{\varepsilon}$ and $(1+C_H)x^{\varepsilon}$; that is, when $\log x$ is as large as
$x^{\varepsilon}$. There $\mathrm{Err}_u$ contains the product $8\log(1+x^{C_H})\cdot c_4A\log k$, of size
$K(1+C_H)(1+e_K)\,x^{2\varepsilon}\,|T|\,a$. So the third power of $x^{\varepsilon}$ pays for these two
logarithms when $\log x$ is as large as (H0)(a) allows, and for the constants. The scripts do not test
separately the case in which $\log x$ is small compared with $x^{\varepsilon}$; there a smaller exponent
may suffice. The identity \eqref{as:div} and the bound
\eqref{as:four} were checked on $10^5$ random data; the largest ratio of the two sides of the last step found is $1.000$.
\emph{Proposition M4} (\texttt{m3\_slopes.py}). Lattices over $\Z$ in place of $\mathfrak o_K$: a target
$Q$ of rank $2$ in $\mathbb R^2$, between one and six sources of rank $1$ or $2$ with integral maps into
$Q$, heights equal to the logarithms of the squared operator norms; the filtration of $Q$ computed from
its shortest vector. In $20000$ configurations, with $5389$ levels $\vartheta>0$ at which the filtration is not
trivial: \eqref{as:count} holds in all; the images of the spaces $V^\circ_{\mathsf w}$ lie in the step of
the filtration in all; and the inequality of Step~4 holds in all. \emph{Controls.} With the heights
lowered by $2$, \eqref{as:count} fails in $4472$ configurations. With $\mu$ in place of $\mu_{\max}$ in
the spread it fails in $42$.
\emph{Lemma M10} (\texttt{m10\_check.py}). A model over $\Z$, with the primes $2,3,5,7$: a lattice
$\Lambda^{\rm src}$ of rank $2$ in $\mathbb R^2$, integers $\tau(p)\in\{0,1,2\}$, a sublattice
$\Lambda^{\rm div}$ of $\prod_pp^{\tau(p)}\Lambda^{\rm src}$, real numbers $\mathrm{sg}(p)\in[-2,4]$, and
$\Lambda^{\rm gl}=\prod_pp^{-\lfloor\mathrm{sg}(p)\rfloor}\Lambda^{\rm div}$; the largest slope is computed
from the shortest vector. In $20000$ cases the inequality
$\mu_{\max}(\Lambda^{\rm gl})\le\mu_{\max}(\Lambda^{\rm src})+\sum_p2\log p\,(\mathrm{sg}(p)-\tau(p))$ of
the proof holds in all, and it is an equality in all $5000$ cases with
$\Lambda^{\rm div}=\prod_pp^{\tau(p)}\Lambda^{\rm src}$ and integral $\mathrm{sg}(p)$. \emph{Control.}
With $2\tau(p)$ in place of $\tau(p)$ it fails in $13536$ cases.
\emph{Lemmas M5 and M6, and the sizes} (\texttt{m4\_identity.py}). The identity \eqref{as:cancel} was
verified symbolically for $m=3$, $f=4$, $|T|=2$. Over $10^6$ random data the ratio of the two sides of
Lemma~M6 is at most $0.955$. The last column of the table of \S6 is computed by this script.
\subsection*{9.\quad Correspondence with the Lean development}
{\footnotesize\sloppy Files, under \path{lean/src/}: \texttt{MB} is
\path{Formalism/RankGapBounds/MeanBoundSecondForm.lean}; \texttt{QS} is
\path{Formalism/SizeWindowBrackets/QuotientSlopeBoundsWith.lean}; \texttt{LC} is
\path{Formalism/SizeWindowBrackets/ChainSlopeWindows/LevelOfCongruence.lean}; \texttt{WM} is
\path{Formalism/RankGapBounds/RankGapProofs/WeightedMeanData.lean}; \texttt{EF} is
\path{Formalism/SizeWindowBrackets/ErrorFormsWeakWindowsFalse.lean}; \texttt{PC} is
\path{Formalism/SizeWindowBrackets/ChainSlopeWindows/PChain.lean}; \texttt{SC} is
\path{Formalism/SizeWindowBrackets/SChain.lean}; \texttt{FPNS} is
\path{Formalism/SizeWindowBrackets/FirstPrimeNeSecondPrime.lean}; \texttt{ChTop}, \texttt{ChCore} are in
\path{Development/AutomorphicArithmetic/DedekindLFunctions/LandauTheorems/}; \texttt{SI} is
\path{Development/AutomorphicArithmetic/DedekindLFunctions/SplitInertia.lean}; \texttt{CoreGm},
\texttt{CoreAtH}, \texttt{LGm} (\path{LevelGmLeOnFamilyScales.lean}) are in
\path{Development/AutomorphicArithmetic/PrimitiveCosets/}; \texttt{QLDC}, \texttt{TieGlobal}, \texttt{LSS}
(\path{LossesSmallShares.lean}) are in \path{Formalism/SharpRestriction/GlobalSchurBounds/}; \texttt{GTI} is
\path{Formalism/SharpRestriction/GlobalTheoremInputs.lean}; \texttt{DP2} is
\path{Formalism/LocalRingCardinality/DataParamsâ‚‚.lean}; \texttt{HN} is the folder
\path{Formalism/HarderNarasimhan/}.\par}
The last column: \emph{yes}, the declaration is in the lists of the dependency computation as one the
final theorem \texttt{riemannHypothesis} depends on; \emph{ref}, it is not in the lists but occurs in the
statement or in the proof term of a declaration that is: (a) \texttt{ch\_top}, (b)
\texttt{each\_unit\_bound\_statement}, (c) \texttt{linkCore}, (d) \texttt{linkGLOBAL7\_items}, (e)
\texttt{linkDIV\_at\_words}; \emph{no}, it is in the lists as not used; \emph{?}, not determined. To be
in the lists as used is necessary for a statement to be consulted by the proof of the final theorem; it
is not sufficient. The lists are by the last component of a name; where several declarations share it,
the one meant is the one in the file given.
{\footnotesize\setlength{\LTleft}{0pt}\setlength{\LTright}{0pt}
\begin{longtable}{@{}p{.30\textwidth}p{.535\textwidth}p{.10\textwidth}@{}}
\toprule
This section & Declarations in the source (file:line) & Dep.\\
\midrule\endhead
\bottomrule\endfoot
$P_{u,t,j}$, $M_{u,t,j}$ & \texttt{characterSumData.ASK}, \texttt{.MAIN} (FPNS:84, 89); the sum \texttt{ASK} is cut at a bound $N\ge a_t/w$ & yes\\
$P_u-M_u$ & \texttt{gapA} (SI:50) & yes\\
$\mathfrak E$ & \texttt{ErrText} (EF:16); \texttt{errorBracketSizeWindows} (EF:133) & ref (a); yes\\
the abstract numbers: slopes, heights, levels of one translate & \texttt{Data}, \texttt{Consts} (MB:37, 15); the fields \texttt{d}, \texttt{T}, \texttt{muN}, \texttt{muMaxN}, \texttt{h}, \texttt{muM}, \texttt{muMaxM}, \texttt{EeJ}, \texttt{muCC}, \texttt{muMinCC}, \texttt{Fo}, \texttt{Ga}, \texttt{ASK}, \texttt{IO}, \texttt{HH}, \texttt{del} are $d_{\mathsf w}$, $\mathrm{Lv}$, $\mu(\Lambda^{\rm gl})$, $\mu_{\max}(\Lambda^{\rm gl})$, $h_{\mathsf w}$, $\mu(\Lambda^0)$, $\mu_{\max}(\Lambda^0)$, $E_{{\rm err},j}$, $\mu_{\rm CC}$, $\mu^{\min}_{\rm CC}$, $F_0$, $G_{\rm top}$, $P_u$, $I_u$, $\mathsf R$, $\delta_{\rm p}$ & ref (b)\\
what the abstract numbers are for the records & \texttt{TieLocal}, \texttt{TieGlobal}, \texttt{TieArith} in \texttt{ChainTied} (TieGlobal:50--97); \texttt{Mod.data} (QLDC:464) & yes: \texttt{TieLocal}, \texttt{ChainTied}; others ref (c)\\
$s_u$, $\mathrm{sp}_u$ & \texttt{Data.s}, \texttt{Data.uF} (MB:92, 94); \texttt{sFrame}, \texttt{uFrame} (\path{DataArith.lean}:131, 134) & ref (b); yes\\
(H0) & \texttt{ErrWindows0}, \texttt{ErrWindows} (EF:28, 43); \texttt{BNBoundsU} (SI:74); \texttt{RestSize} (SC:53); \texttt{Win\_at} (QLDC:231); \texttt{HidaSetting} (MB:111) & yes; the first ref (a)\\
(H0)(g), $1\le|\mathsf W_u|$ & the instance hypothesis \texttt{Nonempty (W u0)}, for all \texttt{u0}, of \texttt{ch\_top} (ChTop:37) & ref (a)\\
(H1), (H2), (H3) & \texttt{Data.DIV} (MB:118), \texttt{EComp5} (QS:24), \texttt{Data.HComp} (MB:126); clauses 7, 8, 9 of \texttt{LinkDIV\_at} (GTI:77), supplied by \texttt{linkDIV\_at\_words} (\path{RecBridge.lean}:327); \texttt{SizeData}$_2$\texttt{.MAIN} (DP2:232) is $S-A\log\mathrm{Lv}$ & yes; \texttt{Data.DIV} ref (a)\\
the number $h_{\mathsf w}$ & \texttt{hExpl6} (\path{KernelPlaceMeanBound.lean}:25), by the hypothesis \texttt{hh} of \texttt{linkDIV\_at\_words}; (H3) is \texttt{Compl3} (\path{RecBridge.lean}:315) & ref (e)\\
(H4), (H5) & \texttt{Count5} (QS:27), \texttt{Data.Slopes} (MB:139); \texttt{Count\_at}, \texttt{SlopesM\_at} (QLDC:167, 173) & yes\\
(H6)(ii),(iii) & \texttt{QuotientSlopeBoundsWith}, \texttt{Lo5} (QS:19, 15); \texttt{SlopesN\_at}, \texttt{LoU} (QLDC:181, 177) & yes; \texttt{Lo5}, \texttt{LoU} ref (a), (c)\\
Lemma M10 & the first clause of \texttt{SlopesN\_at}, proved by \texttt{slopesN\_at\_of} (\path{TopDensityNGeSixteen.lean}:1529) from \texttt{Places\_at} (:1516) with \texttt{claimHigh\_valid} (\path{WeightedSlopeExcessDecomposition.lean}:191); its hypothesis \texttt{HypHigh} (\path{ClaimGaFree.lean}:94) is filled in \texttt{places\_at\_of} (\path{PlacesP.lean}:297) by \texttt{muMax\_le} (:171). Statement (c) is the third clause of \texttt{LocalQuadraticParts.adm26} (\path{LocalQuadraticParts.lean}:626). The inclusion $\Lambda^{\rm div}\subset\Lambda^{\rm src}$ is the fourth clause of \texttt{adm26} at the level places and a clause of \texttt{NuDef} elsewhere. In the lists as used: \texttt{places\_at\_of} and \texttt{adm26}. Ref (d): \texttt{slopesN\_at\_of}. In no list: \texttt{muMax\_le}, \texttt{claimHigh\_valid}, \texttt{Places\_at}, \texttt{HypHigh} & yes, ref or ?: see left\\
(H6)(i); (8b) & clauses 1 and 6 of \texttt{LinkDIV\_at}; (8b) and (H1) are consecutive parts of \texttt{WordFacts} (\path{RecBridge.lean}:128) & yes\\
(H7) & \texttt{LossBounds} (QS:34), \texttt{Data.LoP} (MB:105); \texttt{Loss\_at} (QLDC:203); proved by \texttt{stLoss7} & yes; \texttt{Data.LoP} ref (a)\\
(H8) & \texttt{Data.SlopeIneq} (MB:151); \texttt{Frame\_at}, \texttt{FrameF} (QLDC:188, 258); proved by \texttt{frame\_at\_of} (\path{TopDensityNGeSixteen.lean}:538) from \texttt{TheoremF} (HN, \path{StatementFrameF.lean}:26) & yes\\
(H9), (H10), (H11) & \texttt{Data.HHBound}, \texttt{Data.FParams} (MB:158, 161); clause 2 of \texttt{LinkDIV\_at}, from \texttt{FrameNumberBound} (\path{LocalQuadraticParts.lean}:363); \texttt{Lat\_at} (QLDC:185); \texttt{LinkIRR} (GTI:55) & yes; the third ref (e)\\
(H1)--(H11) together & \texttt{SizeData}$_2$ (SC:17), the conjunction of eleven clauses & yes\\
Lemma M3; (C6) & \texttt{SlopeIneq}, \texttt{MuChar}, \texttt{HNStep}, \texttt{HNSlopes} (HN, \path{Statement.lean}:91, 54, 64, 74); \texttt{htMap}, \texttt{muDef} (HN, \path{StatementPl.lean}:60, 64) & yes\\
Proposition M4 & \texttt{TheoremFSharp}, \texttt{TheoremF} (HN, \path{StatementFrameF.lean}:64, 26), with \texttt{FrameLA1} (:11) for the rank bound and \texttt{LayerCake} for Step~4 & yes\\
Lemma M5 & \texttt{key\_identity} (WM:170), \texttt{key\_identity5} (LC:105) & yes\\
Lemma M6 & \texttt{phi\_bound} (WM:81) & yes\\
Proposition M7 & \texttt{each\_unit\_bound\_statement} (LC:175), with \texttt{s\_lower5}, \texttt{Vvar\_bound5}, \texttt{u\_function\_le\_mean}, \texttt{Ga\_bound5}, \texttt{weighted\_mean\_lower\_bound\_le} (LC:50--173); the error is \texttt{ErrX5at} (QS:45) & yes\\
Lemma M8 & \texttt{errX5at\_le} (PC:613), \texttt{core\_ineq} (\path{SubThreeMulLogTwoLe.lean}:13); \texttt{CErr}, \texttt{KBig}, \texttt{LargeX} (EF:19, 21, 52) & yes; the last three ref (a)\\
Theorem M, \eqref{as:thmM} & \texttt{Deduction.ch\_top} (ChTop:37) & yes\\
\eqref{as:four} & the division is in the proof of \texttt{proposition\_size\_bound}; not read & yes\\
the use of (M): the sum over $u$ & \texttt{ch\_core} (ChCore:343), \texttt{sum\_Th} (ChCore:56); \texttt{core\_gm} (CoreGm:12); \texttt{CoreAtH} (CoreAtH:29) & yes\\
the Hypotheses hold for the records & \texttt{linkCore} (LSS:38): from fourteen statements on the family it gives \texttt{ChainTied}; then \texttt{tiedCore\_of\_chainTied} (LGm:13). The fourteen statements: \texttt{linkGLOBAL7\_items} (\path{LinkMin.lean}:693). The whole: \texttt{FamilyClassConnected} (\path{DivinNOfHypV.lean}:13) & yes\\
(H12), the constants and the windows & \texttt{FamilyClassConnected} (\path{DivinNOfHypV.lean}:13); \texttt{FamCore.Win} (\path{FamCore.lean}:78, a field of the structure at line 71); \texttt{HasWindows} (\path{Window.lean}:7); \texttt{ChebyshevInequalityAtWindowScale} (\path{TopWin.lean}:30) & yes; the second and third ref\\
(H12)(a)--(c), the scale $Y$, the primes and $n$ at one $x$ & \texttt{WinDatum} (\path{TwistForm.lean}:19) with \texttt{PairGood} (\path{PairGood.lean}:18); the windows: \texttt{winPairs} (\path{WinPairs.lean}:5); the admissible set and the field at $x$: \texttt{supplyOfAdmOf} (\path{supplyOfAdmOf.lean}:13, 56), with \texttt{fieldChi} (\path{FieldChi.lean}:20) and \texttt{boundedTw} (\path{BoundedTw.lean}:45), which occur in the proof of \texttt{supplyOfAdmOf} & yes; the last two ref\\
Theorem~\ref{thm:pair} with $A=J$ & \texttt{PairEx} (\path{PairGood.lean}:28), \texttt{QH.pairEx} & yes\\
Corollary M11, \eqref{as:Gbound} & \texttt{ChebyshevInequalityOnWindows} (\path{TopWin.lean}:26), proved by \texttt{windowInequality\_of\_artinInputs} (\path{WindowInequalityOfArtinInputs.lean}:17) from \texttt{core\_gm}; then \texttt{level\_of\_tiedWin} (\path{TopWin.lean}:68) and \texttt{zeroFreeAll\_of\_topG} (\path{ZeroFreeAllOfTopG.lean}:26) & yes\\
the variant for the mean & \texttt{weighted\_mean\_bound\_statement}, \texttt{uniform\_bound\_statement} (LC:199, 237); \texttt{MeanBoundSecondForm} (MB:187) & no\\
\end{longtable}}
\emph{Remarks.} (1) \emph{The declarations named \texttt{ASK} and \texttt{MAIN}.} There are several. On the
route of the final theorem: \texttt{characterSumData.ASK} and \texttt{.MAIN} (FPNS:84, 89) are $P_{u,t,j}$
and $M_{u,t,j}$; the end of the proof (\texttt{ch\_balance}, \texttt{ch\_core}, \texttt{ch\_top}) is stated
with them. \texttt{Data.ASK} is a field of the abstract record; the hypothesis \texttt{IdentU} (SI:67) says
that it equals $\sum_{t,j}$\texttt{characterSumData.ASK}, that \texttt{Data.gam} is Euler's constant and
that \texttt{Data.LpL} is the real part of $\frac{L'}L(1,\chi_d)$. \texttt{LocalQuadraticParts.ASK}
(\path{LocalQuadraticParts.lean}:470) is the same sum written with the numbers of one record; it is tied to
\texttt{characterSumData.ASK} by the statement \texttt{askIsF}
(\path{FrameCodeOfAdditive.lean}:546), whose proof was not read. \texttt{DeficitSplitLemmas.ASK}
(\path{SecondKindBucket.lean}:13) and \texttt{LD.ASK} (\path{WindowSettingSatisfiable.lean}:275) are
abstract forms used to split $P_u-G_{\rm top}$ by primes, in the proof of (H7). All these are in the
dependency lists as used. \texttt{SizeData}$_2$\texttt{.MAIN} (DP2:232) is not $M_u$: it is the main term
$S-A\log\mathrm{Lv}(\mathsf w)$ of (H1). Not used by the final theorem: \texttt{Deduction.BFrame.ASK},
\texttt{.MAIN}; \texttt{Arith.ASK} (\path{LocalToGlobal/GlobalTheory/IsResidueClassZero.lean}:517);
\texttt{FamRec.FieldEq.ASK}; and the identity \texttt{AskMainBalance} (FPNS:98) in that form (the proved
form is \texttt{ch\_balance}).
(2) \emph{Constants.} In the source $c_1=c_2=c_3$ (\texttt{mkC}, QLDC:839: they are the constant of
\texttt{LinkDIV}), $C_{\rm abs}$ is \texttt{eDiv}, $e_L$ is \texttt{eLoss}, $C_H$ is \texttt{cHH}. The
condition \eqref{as:big} is, in the source, $200(1+K)^2(1+C_H)(1+e_K)\le x^{\varepsilon}$ with a $K$ that is
also at least $6$ (\texttt{KBig}, \texttt{LargeX}). The source keeps $(1-\bar\delta)^{-1}$ and
$(\bar\eta+4\sqrt{\bar e})x^{C_H}b$ in the error, where \eqref{as:Err} has $2$ and $6b$; and it has a
number $L\le2x^{\varepsilon}$ where $\mathrm{MLo}$ has $x^{\varepsilon}$. With these changes $\mathrm{Err}_u$
is \texttt{ErrX5at}. Lemma~M8 was proved here directly; the proof of \texttt{core\_ineq} was not read
beyond its statement. \emph{The values of $e_L$ and $C_{\rm abs}$.} The theorem
\texttt{linkGLOBAL7\_items} (\path{LinkMin.lean}:693) ends by applying \texttt{linkCore} with the value
$0$ for \texttt{eLoss}, and its conclusion has $e_D=C_{\rm abs}$ and $e_L=0$. So $e_L=0$ on the route of
the final theorem. In that theorem $C_{\rm abs}$ is a parameter, with the hypotheses $0\le C_{\rm abs}$,
$01$ (\texttt{fieldChi};
\texttt{core\_gm} then has a weight $(3o+1)^{-1}$). They serve the Dirichlet characters.
(6) \emph{The bound for denominators.} \eqref{gc:div} is \texttt{DIVinN\_at} (GTI:59); its left side,
\texttt{etaSum}, is that of \texttt{LinkN\_at} (GTI:40). The theorem \texttt{inEta\_num}
(\path{SumLeEtaSumNum.lean}:60) turns \texttt{DIVinN\_at} into a row of the package from which the size
bound is proved. The clause that \S III.7 calls (S8) is a field of the structure \texttt{ArithAt}
(\path{ConstantGeTwentyEightAlt.lean}:15); its left side is a sum over $j$ of terms that contain
\texttt{etaSumBound} (\path{LinkDef.lean}:93), which is \texttt{bd}$_j$ plus two logarithms. That
\texttt{bd} is, on the route, the bound of \texttt{DIVinN\_at} was not followed. \texttt{divinN\_of\_hypV}
is in the lists as used. For (H9): clause 2 of \texttt{LinkDIV\_at} is supplied from
\texttt{FrameNumberBound}, and the statement that yields \texttt{FrameNumberBoundFamily} has
\texttt{DIVinN} and \texttt{ComplementTwoFamily}, the source of (H2), among its hypotheses
(\path{FinalAll.lean}:34). Statements read; proofs not read.
(7) \emph{The scales and the primes: the statements behind \textup{(H12)}.} A family
(\texttt{FamCore}) has a set \texttt{Win} of scales. \texttt{FamilyClassConnected} reads: there are
$e_D$, $e_L$, $\varepsilon_1>0$ such that for every $0<\varepsilon<\varepsilon_1$ there is a family and
there are $K$, $c_{HH}$, $e_K$, $C_L$, $x_0$ with \texttt{ChainTied}, that is, the Hypotheses, at every
$x\ge x_0$ in \texttt{Win}. So $e_D=C_{\rm abs}$, $e_L$ and $\varepsilon_1$ are chosen before
$\varepsilon$, and $K$, $C_H$, $e_K$ after it; this is the order of the quantifiers in (H12).
\texttt{ChebyshevInequalityAtWindowScale} requires in addition \texttt{HasWindows Win la}: for every $y$
there is $Z\ge y$ with $[Z,Z^{la}]\subset\texttt{Win}$; \texttt{zeroFreeAll\_of\_topG} is applied with
$la=\frac32$ (\path{EveryCharacter.lean}:10). On the route the set \texttt{Win} is
$\{x:\exists\,Y,q,d,e,\ \texttt{WinDatum}\ \psi\ \varepsilon\ J\ c\ x\ Y\ q\ d\ e\}$
(\path{supplyOfAdmOf.lean}:56). \texttt{WinDatum} has the fields $x^{1/J}\le Y$, $Y\le x$,
\texttt{good : PairGood} $\psi.N$ $\varepsilon$ $Y$ $x$ $q$ $d$, the two bounds for $c\cdot2^e$, and the
bound for Galois cohomology for the field. \texttt{PairGood} $M$ $\varepsilon$ $Y$ $X$ $q$ $d$ has four
fields: \texttt{pair} (parts (a)--(c) of Theorem~\ref{thm:pair} at $Y$), \texttt{coprime},
\texttt{bounds} (part (d) for all $y$ with $Y\le y\le X$) and \texttt{boxes} (part (e)). So the condition
on $(q,d)$ at $x$ contains Estimate~B on $[Y,x]$, in particular at $x$. \texttt{winPairs} states: there
is $J\ge1$ such that for every $y$ there is $Z\ge y$ such that for every $x\in[Z,Z^{3/2}]$ there are $Y$,
$q$, $d$, $e$ with \texttt{WinDatum}; $J$ is found after $\varepsilon$. We read its proof: the pair comes
from \texttt{PairEx} with $A=J$ at the scale $X^{1/J}$, once for the window, and $Y=X^{1/J}$ for every $x$
of the window. We read the proof of \texttt{supplyOfAdmOf} from line 56 on: the frame and the field at
$x$ are produced by \texttt{fieldChi} from the $q$, $d$ of the \texttt{WinDatum} of $x$ (its conclusions
\texttt{H.q = q}, \texttt{H.d = d}), and the character bounds required of the data (the fields
\texttt{bdG}, \texttt{bdL} of \texttt{EAtH}) are obtained by \texttt{boundedTw} from \texttt{PairGood},
by taking \texttt{bounds} at $y=x$. So the primes of the data at $x$ are the primes of the
\texttt{WinDatum} of $x$. In \texttt{windowInequality\_of\_artinInputs} (proof read) the
character estimates and the bound of (M) (\texttt{CoreAtH}) are taken for the same $x$ and the same
record, hence the same $q$, $d$. \texttt{FamCore} has fields \texttt{q\_eq}, \texttt{d\_eq}: all records
at one $x$ have the same primes; nothing ties the primes of different $x$. The conclusion is
$G(x)\le x^{1/2+(e_D+e_L+7)\varepsilon}$ for $x\ge x_1$ in \texttt{Win}
(\texttt{ChebyshevInequalityOnWindows}). \emph{Not read:} how the source's form of Estimate~C
(\texttt{ThinH}) is supplied from \texttt{boxes}; the proof of \texttt{core\_gm}, which is the source's
form of Part~II, \S5; the other parts of \texttt{EAtH}; the first 55 lines of the proof of
\texttt{supplyOfAdmOf}. \emph{Differences from \textup{(H12)}.} (H12) is stated for the objects of
\S\ref{ob:sec}; the source speaks of its records. The source has $\psi.N$ in the place of $M=1$ and
$c\cdot2^e$ in the place of $2^e$; for $\zeta$, $\psi$ is trivial and $\psi.N=1$. For $\zeta$, $c=1$: the number
$c$ comes from \texttt{ordAny} (\path{OrdAny.lean}:86), which gives $1\le c\le|\langle\psi\rangle|$, and
$|\langle\psi\rangle|=1$ for the trivial character. (The statement of \texttt{fieldChi} keeps only
$1\le c$; the bound is in its proof.) Clause (e) of (H12) is not one statement of the source; it was checked against the
table of O23 (\S7, Status, (3)).
\textbf{What remains.} (i) Proofs of the Hypotheses. The table of \S1 gives the status of each. For
(H2), (H3), (H5), (H9) and the third part of (H4) no section of this paper gives a proof or a reduction,
and the lower bound of (H4) is quoted in Part~II in shape only, the size of its allowance being
assumed. In the source (H2), (H3) and (H9) are clauses of the
statement that contains (H1). For (H12) see \S7: it is assumed, and the paper supplies only the
existence of the primes. (ii) That the abstract numbers of
\S4 are the slopes, heights and levels of the objects of \S\ref{ob:sec}: this was read from the
definitions \texttt{TieLocal} and \texttt{Mod.data} of the source, not verified further. Proposition~M4
requires, for (H8), that the slopes of $\Lambda^{\rm gl}_{\mathsf w}$ and $\mathcal R^\vee$ and the height
in (8b) are taken for the same norms. In the source this is so by definition: a lattice is a record with
a basis, a matrix at each complex place and a module, and both its slopes and the height in (8b) are
defined from these matrices (Lean: \texttt{HLat.mu}, \texttt{HLat.muDual}, \texttt{htMap} in
\path{DataArith.lean} and \texttt{HN}). We did not check that the Lean definition of the slope agrees
with \eqref{as:mu} beyond its shape, twice a slope for the Euclidean norm plus the constant
$\mathrm{cst}_K$. (iii) The value of $C_{\rm abs}$ on the route of the final theorem; and the one link
of Remark~(6). (iv) The step from \eqref{as:M} to Estimate~A of Part~I is in Part~II, \S5 and \S3. Its hypotheses
were compared one by one with (H12) in the proof of Corollary~M11; the proofs of Part~II were not
re-examined. The question whether the mean for $\zeta$ is over all translates is settled at the level of
statements (Remark~(5)). (v) (C6) is cited from memory. (vi) The identification of the pairings (Comment~(e) to O25; \S III.8, \S2)
was not checked in the source; see the status of (H8).
\section{The simplest case in full: the lemniscate}\label{el:sec}
\begin{illbox}
The whole of this section is an illustration. The Lean development does not treat the lemniscate; the
divisibility statement that the proof needs, for the theta series of the construction, is hypothesis (B),
taken from the Lean development (\S III.5). Nothing here is used in the deduction of the Riemann
hypothesis (see ``What the proof uses'' after Corollary~M11 in \S\ref{as:sec}).
\end{illbox}
Part~I used one example twice. In \S I.3 the derivatives $A_n$ of the lemniscate sine at the origin showed
what \emph{divisibility at inert primes} means, and in \S I.4.1 the theta series of the Gaussian integers
showed what \emph{size through a period} means. Several statements about this example were given there as
observations of a computation, and in \S III.5 a hypothesis \textup{(B)} was verified for an example built
from the same curve only up to a finite degree. This section proves these statements. It uses the classical
theory of elliptic functions and congruences for binomial coefficients; what is taken from books is listed
below under ``What is cited''. The reader will then have seen one complete instance of the two mechanisms of
the proof, with no hypothesis left open.
Nothing in this section is taken from the Lean development. The primes $p\equiv3\bmod4$ are called \emph{inert} and the primes
$p\equiv1\bmod4$ \emph{split}, as in \S I.3.
\emph{What was observed, and what is proved here.} The statements of Part~I and of \S III.5 that rested on
computation are these. The list serves as a table of contents. It uses some words that are defined only
later: $v_p$ is the exponent of the prime $p$ (\S5), and formal groups, their logarithms and their height
are defined in \S4.
\begin{enumerate}[label=\textup{(O\arabic*)},leftmargin=3.2em,itemsep=1pt,topsep=2pt]
\item \S I.3: the numbers $A_n$ are integers, and $A_n=0$ unless $n\equiv1\bmod4$ (cited there from
Hurwitz \cite{Hur99}). \emph{Proved here}: Lemma~Le4.
\item \S I.3: the exponent of $p$ in $A_n$ is at least $n\,p/(p^2-1)-1$ (in the first version of the paper
this was an observation, for the inert primes $3,7,11,19,23,31$ and $n\le201$). \emph{Proved here for every inert prime and every $n$}, in the form
$v_p(A_n)\ge\lfloor n\,p/(p^2-1)\rfloor$: Theorem~Le18. For the numbers $A_n$ this is the same inequality as
the one observed (see the comparison after Theorem~Le18); what is added is the range, all inert $p$ and
all $n$.
\item \S I.3: in that range the exponent exceeds $n\,p/(p^2-1)$ by at most $1.65$, and this ceiling does
not persist (the excess is $4.625$ at $n=1945$ for $p=3$). Both values are confirmed. That the excess is
unbounded is \emph{not proved}.
\item \S I.3: the split primes $5,13,17,29$ divide none of the $A_n$ with $n\le201$, $n\equiv1\bmod4$
(the other $A_n$ are zero), and $157$ divides
$A_{101}$. Confirmed, and extended to $n\le2001$. \emph{Proved here}: a split prime $p$ does not divide $A_p$
(Proposition~Le20); and $5$, $13$, $17$, $29$ divide no $A_n$ with $n\equiv1\bmod4$ at all
(Proposition~Le20a\,(iii)).
\item \S I.3: multiplication by an inert prime $p$ on the formal group is $X\mapsto X^{p^2}$ modulo $p$,
and the logarithm behaves like the model series $X+X^{p^2}/p+X^{p^4}/p^2+\cdots$ (cited there from
\cite{Deu41,Hon70,LT65}). \emph{Proved here} for this curve, with the signs determined: Theorems~Le12
and~Le13 and Corollary~Le16. The signs alternate: the model series is
$X-X^{p^2}/p+X^{p^4}/p^2-\cdots$, and multiplication by $p$ is $X\mapsto-X^{p^2}$ modulo $p$, with no
further terms (Corollary~Le16\,(ii)).
\item \S I.3, defect (D3): $|A_n|$ is about $n!/R^n$ with $R=1.854\ldots$ \emph{Proved here}, with
$R=\varpi/\sqrt2$: Theorem~Le9.
\item \S I.4.1: $T_0=\sqrt2\,\varpi/\pi$ and $T_4/T_0=\frac14(\varpi/\pi)^4$. \emph{Proved here}, from the
two-squares theorem, which is cited: Proposition~Le7.
\item \S I.4.1: the numbers $r_k=T_{4k}/(T_0(\varpi/\pi)^{4k})$ are rational with denominator $4^k$
(identified numerically for $k\le30$). \emph{Proved here}: they are rational, with denominator dividing
$4^k$ (Corollary~Le8). That the denominator is exactly $4^k$ is observed for $k\le120$ and \emph{not
proved}.
\item \S I.4.1: the identity $\Theta(z)/T_0=\sigma(u)^2\wp(u)$ with $u=\varpi z/2\pi$ (observed to $400$
digits). \emph{Proved here}: Theorem~Le6. The normalisation printed in \S I.4.1 is correct.
\item \S I.4.1: the exponent of $3$ in $r_{30}$ is $14$. Confirmed; by Corollary~Le8 the rational number
$r_{30}$ is now known exactly and not only to $250$ digits.
\item \S III.5, ``An example'': hypothesis \textup{(B4)} was checked up to total degree $84$, $72$, $144$
for $\ell=3,7,11$, and \textup{(B)} in all degrees was not proved. \emph{Proved here in all degrees}:
Proposition~Le22.
\item \S III.5, same paragraph: equality in \eqref{dv:beta} at the exceptional monomials up to degree
$800$, and the numerical checks of Theorem~J on this example. \emph{Not treated here.}
\end{enumerate}
The section has one more result, which was not stated in Part~I: a Chebyshev inequality for the inert
primes that follows from Theorems~Le9 and~Le18 (Proposition~Le19). It makes the three defects of \S I.3
precise.
\emph{What is cited.} The proofs of this section use the following published statements and no others.
\begin{enumerate}[label=\textup{(C\arabic*)},leftmargin=3.2em,itemsep=1pt,topsep=2pt]
\item The first chapter of Apostol's book on modular functions \cite{Apo90}, for elliptic functions and
the Weierstrass function $\wp$: Theorems 1.4, 1.7, 1.8 (used only through its corollary that $\wp$ takes
every value twice) and 1.10 to 1.14, with the definitions of $\wp$, $g_2$, $g_3$ that stand beside them, and
Lemma~1 of its \S1.5 on the
convergence of $\sum|\omega|^{-\alpha}$ (all read in a local copy; the numbers are given where they are
used). That chapter does not treat the Weierstrass functions $\sigma$ and $\zeta_{\rm w}$; what we need of
them is proved in \S1a.
\item The theorem that the number of representations of $n\ge1$ as a sum of two squares is
$4\sum_{d\mid n}\chi_4(d)$: Hardy and Wright \cite{HW}, Theorem~278 (read in a local copy). For $n$ odd it is
also the case $d=-4$, $w=4$ of formula~(12) in Chapter~6 of Davenport \cite{Dav00}, which is stated there,
without proof, for $n$ prime to $d$. (This was read in a local copy of the second edition, 1980, and the
page, p.~47, is that of the second edition. The entry \cite{Dav00} of the bibliography is the third edition,
2000, which was not consulted; for this reason the chapter and the formula number are given.) The theorem is
used once, in Proposition~Le7.
\item Lucas's congruence $\binom{ap+b}{cp+d}\equiv\binom ac\binom bd\pmod p$ for $0\le b,d0$ such that the
lattice $\mathcal P=\varpi'\Z[i]$ has $g_2=4$ and $g_3=0$. For this lattice $\wp(iu)=-\wp(u)$, the function
$\wp$ is real on the real axis, and}
\begin{equation}\label{el:evalues}
\wp(\tfrac12\varpi')=1,\qquad \wp(\tfrac12i\varpi')=-1,\qquad \wp(u_0)=0\quad\text{where }u_0=\tfrac12(1+i)\varpi' .
\end{equation}
\emph{On the interval $00$. Multiplication by $i$ permutes $\mathcal L$
and multiplies $\omega^{-6}$ by $-1$; so $g_3=0$. In the series for $\wp(iu)$ put $\omega=i\omega'$: each term
is multiplied by $i^{-2}=-1$, so $\wp(iu)=-\wp(u)$. Complex conjugation permutes $\mathcal L$, so
$\wp(\bar u)=\overline{\wp(u)}$ and $\wp$ is real on the real axis. Put $e_1=\wp(\lambda/2)$, a real number.
Then $\wp(i\lambda/2)=-e_1$. The sum of the roots of $4x^3-g_2x$ is $0$, so the third root is $0$; the roots
are distinct, so $e_1\ne0$; and $4x^3-g_2x=4x(x-e_1)(x+e_1)$ gives $g_2=4e_1^2>0$. Since
$g_2(\lambda\Z[i])=\lambda^{-4}g_2(\Z[i])$, exactly one $\lambda=\varpi'$ gives $g_2=4$. Then $e_1=\pm1$,
and the third half-period value is $\wp(u_0)=0$. On $01$ on this interval, $\wp'<0$, and $e_1=\wp(\varpi'/2)\ge1$. Hence
$e_1=1$. \qed
\textbf{Definition (the lemniscate sine).} By Lemma~Le1 the function $1/\wp$ has a double zero at each
point of $\mathcal P$, a double pole at each point of $u_0+\mathcal P$ (where $\wp=0=\wp'$), and no other
zero or pole, because $\wp$ takes the value $0$ only twice in a period parallelogram. A meromorphic function
$f$ on $\C$ all of whose zeros and poles have even order has a meromorphic square root: $f'/2f$ has only
simple poles with integer residues, so $\exp\int f'/2f$ is single valued. Near the origin
$1/\wp(u)=u^2(1+O(u^4))$. We define $\mathrm{sl}$ as the meromorphic function on $\C$ with
\begin{equation}\label{el:sldef}
\mathrm{sl}(u)^2=\frac1{\wp(u)},\qquad \mathrm{sl}(u)=u+O(u^5)\quad(u\to0).
\end{equation}
\textbf{Proposition Le2 (properties of $\mathrm{sl}$).} \emph{Let $\varpi=2\int_0^1dt/\sqrt{1-t^4}=2.62205\ldots$}
\begin{enumerate}[label=\textup{(\alph*)},leftmargin=2.4em,itemsep=1pt,topsep=2pt]
\item $\mathrm{sl}'^2=1-\mathrm{sl}^4$ \emph{and} $\mathrm{sl}''=-2\,\mathrm{sl}^3$.
\item \emph{$\varpi'=\varpi$, and for $0\le u\le\varpi/2$ the number $t=\mathrm{sl}(u)$ is the solution in
$[0,1]$ of $u=\int_0^tds/\sqrt{1-s^4}$. So $\mathrm{sl}$ is the lemniscate sine of \S I.3, and
$\mathrm{sl}(\varpi/2)=1$.}
\item $\mathrm{sl}(-u)=-\mathrm{sl}(u)$, $\mathrm{sl}(iu)=i\,\mathrm{sl}(u)$,
$\mathrm{sl}(u+\varpi)=\mathrm{sl}(u+i\varpi)=-\mathrm{sl}(u)$.
\item \emph{The zeros of $\mathrm{sl}$ are the points of $\mathcal P$ and the poles are the points of
$u_0+\mathcal P$; all are simple.}
\item $\mathrm{sl}(u+u_0)\,\mathrm{sl}(u)=-i$. \emph{The residue of $\mathrm{sl}$ at the pole
$u_0+(a+bi)\varpi$ is $-i(-1)^{a+b}$.}
\end{enumerate}
\emph{Proof.} (a) Differentiate \eqref{el:sldef}: $2\,\mathrm{sl}\,\mathrm{sl}'=-\wp'/\wp^2$. Square and use
$\wp'^2=4\wp^3-4\wp$: $\mathrm{sl}'^2=(\wp^2-1)/\wp^2=1-\mathrm{sl}^4$. Differentiating once more and
dividing by $2\,\mathrm{sl}'$ gives $\mathrm{sl}''=-2\,\mathrm{sl}^3$.
(b) By Lemma~Le1, on $00$, and its first positive zero is at $(1+i)x=u_0$, that is at $x=\varpi/2$. So
$\wp(u_0/2)$ is a negative multiple of $i$. Since $\wp(u_0/2)^2=\wp(-u_0/2)\wp(u_0/2)=-1$, we get $\wp(u_0/2)=-i$ and
$\mathrm{sl}(u_0/2)^2=i$. At $u=-u_0/2$ the product is $\mathrm{sl}(u_0/2)\mathrm{sl}(-u_0/2)=-i$. So
$\mathrm{sl}(u_0+x)=-i/\mathrm{sl}(x)=-i/x+O(x^3)$: the residue at $u_0$ is $-i$, and by (c) it is
multiplied by $-1$ under each of the translations $\varpi$, $i\varpi$. \qed
\noindent Numerically\footnote{Script \texttt{el1\_theta\_identity.py}. The scripts named in the footnotes of
this section are in the folder \texttt{outline/examples/elliptic/}.}: $g_2(\varpi\Z[i])=3.99988$ from the lattice sum over
$|a|,|b|\le60$; $\wp-\mathrm{sl}^{-2}$, the product in (e) plus $i$, and the residues agree with the
statements to $60$ digits or to the precision of the difference quotient used.
\textbf{Hurwitz series.} Let $R$ be a subring of a field of characteristic zero. A \emph{Hurwitz series}
over $R$ is a power series $\sum_{n\ge0}a_nx^n/n!$ with all $a_n\in R$. These are the series whose
derivatives of all orders at $0$ lie in $R$. For example $e^x-1=\sum_{n\ge1}x^n/n!$ and
$\log(1+x)=\sum_{n\ge1}(-1)^{n-1}(n-1)!\,x^n/n!$ are Hurwitz series over $\Z$, and so is every power series
with coefficients in $\Z$; but $(e^x-1)/x=\sum_{n\ge0}\frac1{n+1}\,x^n/n!$ is not.
\textbf{Lemma Le3.} \emph{The Hurwitz series over $R$ form a ring, closed under $d/dx$ and under
$\int_0^x$. If $h$ is a Hurwitz series over $R$ with $h(0)=0$, then $h^j/j!$ is a Hurwitz series over $R$ for
every $j\ge0$; hence so is $\exp(h)$.}
\emph{Proof.} The product of $\sum a_nx^n/n!$ and $\sum b_nx^n/n!$ has the coefficients
$\sum_k\binom nka_kb_{n-k}$ in the same form. Differentiation and integration shift the sequence $(a_n)$.
For the last statement use induction on $j$: $h^j/j!$ vanishes at $0$ and has the derivative
$(h^{j-1}/(j-1)!)\,h'$. The series $\exp(h)=\sum_jh^j/j!$ is a sum in which only finitely many terms
contribute to each coefficient. \qed
\textbf{Lemma Le4 (the Taylor coefficients).} \emph{Let $\mathrm{sl}(u)=\sum_{n\ge1}A_nu^n/n!$.}
\begin{enumerate}[label=\textup{(\roman*)},leftmargin=2.4em,itemsep=1pt,topsep=2pt]
\item \emph{$A_n\in\Z$, and $A_n=0$ unless $n\equiv1\bmod4$.}
\item \emph{$(-1)^kA_{4k+1}$ is a positive integer divisible by $4^k$. Equivalently
$\mathrm{sl}^\flat(x)=(1+i)\,\mathrm{sl}(x/(1+i))$ is a Hurwitz series over $\Z$, with positive coefficients
in the degrees $4k+1$.}
\item \emph{The inverse series of $\mathrm{sl}$ is}
$\ \mathrm{arcsl}(t)=\displaystyle\int_0^t\frac{ds}{\sqrt{1-s^4}}=\sum_{k\ge0}\frac{\kappa_k}{4k+1}\,t^{4k+1}$,
\emph{where} $\kappa_k=\dbinom{2k}{k}4^{-k}$.
\end{enumerate}
\emph{Proof.} (i) By Proposition~Le2\,(a) and $A_0=0$, $A_1=1$,
\begin{equation}\label{D:443}
A_{n+2}=-2\sum_{a+b+c=n}\frac{n!}{a!\,b!\,c!}\,A_aA_bA_c ,
\end{equation}
so all $A_n$ are integers. From $\mathrm{sl}(iu)=i\,\mathrm{sl}(u)$ we get $i^nA_n=iA_n$.
(ii) Since $(1+i)^4=-4$, the function $\mathrm{sl}^\flat$ satisfies $(\mathrm{sl}^\flat)''=\frac12(\mathrm{sl}^\flat)^3$.
Write $\mathrm{sl}^\flat=\sum G_nx^n/n!$; then $G_{4k+1}=(-4)^{-k}A_{4k+1}$, $G_0=0$, $G_1=1$ and
$G_{n+2}=\frac12\sum_{a+b+c=n}\frac{n!}{a!b!c!}G_aG_bG_c$, the sum over $a,b,c\ge1$. Assume $G_a\in\Z$ and $G_a\ge0$ for
$a\le n$. The ordered triples with $a,b,c$ distinct come in sets of six with equal terms. A triple
$(a,a,c)$ with $c\ne a$ comes in three orders, each with the factor $\frac{n!}{a!a!c!}=\binom nc\binom{2a}a$,
and $\binom{2a}{a}=2\binom{2a-1}{a-1}$ is even. For $(a,a,a)$ the factor is
$\binom{3a}{a}\binom{2a}{a}$, again even. So the sum is an even integer $\ge0$, and $G_{n+2}$ is an
integer $\ge0$. The triple $(1,1,4k-3)$ shows $G_{4k+1}>0$ by induction on $k$.
(iii) By Proposition~Le2\,(b), $\mathrm{arcsl}(\mathrm{sl}(u))=u$ for small real $u$, and
$(1-s^4)^{-1/2}=\sum_k\binom{-1/2}{k}(-s^4)^k=\sum_k\kappa_ks^{4k}$. \qed
\noindent So $A_1=1$, $A_5=-12$, $A_9=3024$, $A_{13}=-4390848$, $A_{17}=21224560896$, as in \S I.3, and the
exponent of $2$ in $A_n$ is at least $(n-1)/2$. (For $n\le2001$ the least value of
$v_2(A_n)-(n-1)/2$ is $0$.\footnote{Script \texttt{el4\_divisibility.py}.})
\textbf{Lemma Le5 (Euler's addition theorem).} \emph{As an identity of meromorphic functions of
$(u,u')\in\C^2$,}
\begin{equation}\label{el:add}
\mathrm{sl}(u+u')=\frac{\mathrm{sl}(u)\,\mathrm{sl}'(u')+\mathrm{sl}(u')\,\mathrm{sl}'(u)}{1+\mathrm{sl}(u)^2\,\mathrm{sl}(u')^2}.
\end{equation}
\emph{Proof.} Here $\mathrm{sl}'$ is the derivative of $\mathrm{sl}$, and $u'$ is a second variable. Write
$s_1=\mathrm{sl}(u)$, $s_2=\mathrm{sl}(u')$, $s_1'=\mathrm{sl}'(u)$, $s_2'=\mathrm{sl}'(u')$, and
let $N=s_1s_2'+s_2s_1'$, $D=1+s_1^2s_2^2$. By Proposition~Le2\,(a), $\partial_uN=s_1's_2'-2s_1^3s_2$ and
$\partial_uD=2s_1s_1's_2^2$. So $D^2\,\partial_u(N/D)$ equals
\begin{equation}\label{D:445}
(s_1's_2'-2s_1^3s_2)(1+s_1^2s_2^2)-2s_1s_1's_2^2\,(s_1s_2'+s_2s_1')
=s_1's_2'\,(1-s_1^2s_2^2)-2s_1s_2\,(s_1^2+s_2^2),
\end{equation}
where $s_1'^2=1-s_1^4$ was used once. The result is symmetric in $u$ and $u'$. So
$\partial_u(N/D)=\partial_{u'}(N/D)$, and $N/D$ is a function of $u+u'$ alone. At $u'=0$ it is
$\mathrm{sl}(u)$. \qed
\noindent This is the classical proof; compare Whittaker and Watson \cite{WW27}, \S22.2, for the Jacobi
function $\mathrm{sn}$ (cited from memory; we did not consult a copy). In that notation
$\mathrm{sl}(u)=\mathrm{sn}(u,k)$ with $k^2=-1$.
\subsection*{1a.\quad The functions $\sigma$ and $\zeta_{\rm w}$ of Weierstrass}
The identity of \S I.4.1 and the example of \S III.5 are stated with the Weierstrass function $\sigma$. The
chapter of \cite{Apo90} does not treat $\sigma$, so we define it here and prove every property that is
used later. Let $\mathcal L$ be a lattice in $\C$. One fact is taken from \cite{Apo90} (Lemma~1 of \S1.5):
the series $\sum_{\omega\in\mathcal L,\,\omega\ne0}|\omega|^{-\alpha}$ converges for $\alpha>2$. Put
\begin{equation}\label{D:446}
\zeta_{\rm w}(u)=\frac1u+\sum_{\omega\ne0}\Big(\frac1{u-\omega}+\frac1\omega+\frac u{\omega^2}\Big),\qquad
\sigma(u)=u\prod_{\omega\ne0}\Big(1-\frac u\omega\Big)\exp\Big(\frac u\omega+\frac{u^2}{2\omega^2}\Big),
\end{equation}
the sum and the product over the $\omega\ne0$ in $\mathcal L$. When the lattice has to be named we write
$\sigma(u;\mathcal L)$ and $\zeta_{\rm w}(u;\mathcal L)$.
\textbf{Lemma Le5a (the functions $\sigma$ and $\zeta_{\rm w}$).} \emph{Let $\mathcal L$ be a lattice.}
\begin{enumerate}[label=\textup{(\alph*)},leftmargin=2.4em,itemsep=1pt,topsep=2pt]
\item \emph{The product converges for every $u$, and $\sigma$ is an entire function. Its zeros are the
points of $\mathcal L$, and they are simple; $\sigma(u)/u\to1$ as $u\to0$. The series for $\zeta_{\rm w}$
converges for $u\notin\mathcal L$, and $\zeta_{\rm w}$ is meromorphic on $\C$; its poles are the points of
$\mathcal L$, they are simple with residue $1$, and $\zeta_{\rm w}(u)-1/u\to0$ as $u\to0$.}
\item $\sigma'/\sigma=\zeta_{\rm w}$ \emph{and} $\zeta_{\rm w}'=-\wp$. \emph{Hence $(\log\sigma)''=-\wp$.}
\item \emph{$\sigma$ and $\zeta_{\rm w}$ are odd. For every complex $\lambda\ne0$,
$\sigma(\lambda u;\lambda\mathcal L)=\lambda\,\sigma(u;\mathcal L)$ and
$\zeta_{\rm w}(\lambda u;\lambda\mathcal L)=\lambda^{-1}\zeta_{\rm w}(u;\mathcal L)$. In particular, if
$i\mathcal L=\mathcal L$ then $\sigma(iu)=i\,\sigma(u)$ and $\zeta_{\rm w}(iu)=-i\,\zeta_{\rm w}(u)$.}
\item \emph{For every $\omega\in\mathcal L$ there is a constant $\eta(\omega)$ with
$\zeta_{\rm w}(u+\omega)=\zeta_{\rm w}(u)+\eta(\omega)$, and}
\begin{equation}\label{el:sigmaqp}
\sigma(u+\omega)=C_\omega\,e^{\eta(\omega)u}\,\sigma(u)\qquad\text{for a constant }C_\omega\ne0 .
\end{equation}
\emph{If $\omega/2\notin\mathcal L$ then $C_\omega=-e^{\eta(\omega)\omega/2}$.}
\item \emph{(Legendre's relation.) If $\mathcal L=\Z\omega_1+\Z\omega_2$ with
$\mathrm{Im}(\omega_2/\omega_1)>0$, then $\eta(\omega_1)\,\omega_2-\eta(\omega_2)\,\omega_1=2\pi i$.}
\item \emph{For the square lattice $\mathcal P=\varpi\Z[i]$ of Lemma~Le1: $\eta(\varpi)=\pi/\varpi$,
$\eta(i\varpi)=-i\pi/\varpi$, and}
\begin{equation}\label{el:sigmasq}
\sigma(u+\varpi)=-e^{\pi/2}\,e^{\pi u/\varpi}\,\sigma(u),\qquad
\sigma(u+i\varpi)=-e^{\pi/2}\,e^{-i\pi u/\varpi}\,\sigma(u).
\end{equation}
\end{enumerate}
\emph{Proof.} (a) Fix $R>0$ and let $|u|\le R$. Only finitely many $\omega\in\mathcal L$ have $|\omega|<2R$.
For the others $|u-\omega|\ge\frac12|\omega|$, and
\begin{equation}\label{D:449}
\Big|\frac1{u-\omega}+\frac1\omega+\frac u{\omega^2}\Big|=\Big|\frac{u^2}{\omega^2(u-\omega)}\Big|\le\frac{2R^2}{|\omega|^3}.
\end{equation}
For $|x|\le\frac12$ we have $(1-x)\exp(x+\frac12x^2)=\exp\big(-\sum_{k\ge3}x^k/k\big)$, and
$\big|\sum_{k\ge3}x^k/k\big|\le\frac13|x|^3\sum_{k\ge0}2^{-k}\le|x|^3$. With $x=u/\omega$ this is at most
$R^3/|\omega|^3$. Since $\sum|\omega|^{-3}<\infty$, the sum over the $\omega$ with $|\omega|\ge2R$ of the terms
of $\zeta_{\rm w}$, and the sum of the logarithms of the factors of $\sigma$, converge absolutely and
uniformly in $|u|\le R$. A uniformly convergent series of holomorphic functions has a holomorphic sum. So
in $|u|0$. By (a) and the residue theorem the integral of
$\zeta_{\rm w}$ over the boundary is $2\pi i$. The first and the third side together give
$\int_\alpha^{\alpha+\omega_1}\big(\zeta_{\rm w}(u)-\zeta_{\rm w}(u+\omega_2)\big)du=-\eta(\omega_2)\,\omega_1$,
and the second and the fourth give
$\int_\alpha^{\alpha+\omega_2}\big(\zeta_{\rm w}(u+\omega_1)-\zeta_{\rm w}(u)\big)du=\eta(\omega_1)\,\omega_2$.
(f) By (c), $\zeta_{\rm w}(iu+i\varpi)=-i\,\zeta_{\rm w}(u+\varpi)=\zeta_{\rm w}(iu)-i\,\eta(\varpi)$. So
$\eta(i\varpi)=-i\,\eta(\varpi)$. Legendre's relation with $\omega_1=\varpi$, $\omega_2=i\varpi$ reads
$2i\varpi\,\eta(\varpi)=2\pi i$. So $\eta(\varpi)=\pi/\varpi$ and $\eta(i\varpi)=-i\pi/\varpi$. Now (d) gives
$C_\varpi=-e^{\pi/2}$ and $C_{i\varpi}=-e^{(-i\pi/\varpi)(i\varpi/2)}=-e^{\pi/2}$. \qed
\noindent \emph{Example and checks.} For $\mathcal P$ one finds $\eta(\varpi)=\pi/\varpi=1.19814\ldots$ The
truncated sum for $\zeta_{\rm w}$ over the $\omega=\varpi(a+bi)$ with $|a|,|b|\le120$ gives
$\zeta_{\rm w}(u+\varpi)-\zeta_{\rm w}(u)=1.19815$ at $u=0.37+0.21i$, and the truncated product for $\sigma$
satisfies \eqref{el:sigmasq} within $3\cdot10^{-5}$. An independent formula for $\sigma$ by a rapidly
convergent series satisfies every statement of the lemma to $38$ digits; with the sign $+$ in
\eqref{el:sigmasq}, or without the factor $e^{\pi/2}$, the test fails.\footnote{Script
\texttt{el9\_sigma\_zeta.py}.} The lemma is used as follows: (a), (b), (c) in Theorem~Le6; (a), (b), (c), (d)
in Proposition~Le21; the rule for $\lambda$ in (c) in Proposition~Le22. Parts (e) and (f) make the
factors in \eqref{el:sigmaqp} explicit; they give a check of Theorem~Le6 below.
\subsection*{2.\quad The theta series of the Gaussian integers}
Recall from \S I.4.1 the series $\Theta(z)=\sum_{\lambda\in\Z[i]}\exp(-\pi|\lambda|^2+\lambda z)$ and its
derivatives $T_n=\Theta^{(n)}(0)$. We now prove the identity stated there. From now on $\sigma$ and
$\zeta_{\rm w}$ are the functions of \S1a for the lattice $\mathcal P$.
Put $J(u)=\int_0^u\mathrm{sl}(s)^2\,ds$ and $M(u)=\int_0^uJ(s)\,ds$, power series in $u$ that begin with
$u^3/3$ and $u^4/12$.
\textbf{Theorem Le6 (the identity of \S I.4.1).} \emph{Let $\Phi=\sigma^2\wp$. It is an entire function,
because the double zeros of $\sigma^2$ are at the double poles of $\wp$ (Lemma~Le5a\,(a)). Then}
\begin{equation}\label{el:theta}
\Phi(u)=\Big(\frac{\sigma(u)}{\mathrm{sl}(u)}\Big)^2=\exp\big(2M(u)\big)\quad(\text{$u$ near }0),\qquad
\Theta(z)=T_0\,\sigma(u)^2\,\wp(u)\quad\text{with }u=\frac{\varpi z}{2\pi}\quad(z\in\C).
\end{equation}
\emph{Proof.} \emph{The function $\Phi$.} By \eqref{el:sldef}, $\Phi=(\sigma/\mathrm{sl})^2$. It is even, and
$\Phi(0)=1$, by Lemma~Le5a\,(a) and~(c). Since $(\log\sigma)''=-\wp=-\mathrm{sl}^{-2}$ by Lemma~Le5a\,(b)
and, by Proposition~Le2\,(a),
\begin{equation}\label{el:logsl}
(\log\mathrm{sl})''=\frac{\mathrm{sl}''\,\mathrm{sl}-\mathrm{sl}'^2}{\mathrm{sl}^2}
=\frac{-2\,\mathrm{sl}^4-(1-\mathrm{sl}^4)}{\mathrm{sl}^2}=-\mathrm{sl}^2-\mathrm{sl}^{-2},
\end{equation}
we get $(\log\Phi)''=2\,\mathrm{sl}^2$. With $\log\Phi(0)=0=(\log\Phi)'(0)$ this is $\log\Phi=2M$; in
particular $\Phi(u)=1+O(u^4)$.
\emph{The theta series as a product.} The double series converges absolutely, and with $\lambda=a+bi$ it
factors:
\begin{equation}\label{D:452}
\Theta(z)=\theta(z)\,\theta(iz),\qquad \theta(z)=\sum_{a\in\Z}e^{-\pi a^2+az}.
\end{equation}
Replacing $a$ by $a+1$ in the sum gives $\theta(z+2\pi)=e^{\pi+z}\theta(z)$; clearly
$\theta(z+2\pi i)=\theta(z)$. Hence
\begin{equation}\label{el:thetaqp}
\Theta(z+2\pi)=e^{\pi+z}\,\Theta(z),\qquad \Theta(z+2\pi i)=e^{\pi-iz}\,\Theta(z).
\end{equation}
\emph{The zeros of $\theta$.} Let $Q$ be a square with corners $\alpha,\alpha+2\pi,\alpha+2\pi+2\pi i,\alpha+2\pi i$
and no zero of $\theta$ on its boundary. The function $\theta'/\theta$ has the period $2\pi i$, and
$(\theta'/\theta)(z+2\pi)=(\theta'/\theta)(z)+1$. In $\frac1{2\pi i}\oint_{\partial Q}\theta'/\theta$ the
horizontal sides cancel, and the two vertical sides together give $\frac1{2\pi i}\int_\alpha^{\alpha+2\pi i}1\,dz=1$.
So $\theta$ has exactly one zero in $Q$, and it is simple. The point $z_0=\pi(-1+i)$ is a zero: in
$\theta(z_0)=\sum_a(-1)^ae^{-\pi a^2-\pi a}$ the substitution $a\mapsto-1-a$ changes the sign of each term.
So the zeros of $\theta$ are the points of $z_0+2\pi\Z[i]$. The zeros of $\theta(iz)$ are the points
$-iz_0+2\pi\Z[i]$, and $-iz_0=\pi(1+i)=z_0+2\pi$. Therefore $\Theta$ has a double zero at each point of
$\pi(1+i)+2\pi\Z[i]$ and no other zero. In the variable $u=\varpi z/2\pi$ these are the points of
$u_0+\mathcal P$: the poles of $\mathrm{sl}$.
\emph{Comparison.} Let $\Psi(u)=\Theta(2\pi u/\varpi)$. By \eqref{el:thetaqp}, $\log\Psi$ changes by a
polynomial of degree one in $u$ under $u\mapsto u+\varpi$ and under $u\mapsto u+i\varpi$. So $(\log\Psi)''$
is an elliptic function for $\mathcal P$. Its poles are at the double zeros of $\Psi$, with principal part
$-2/(u-u_0)^2$ and no term in $1/(u-u_0)$. By Proposition~Le2\,(e), $\mathrm{sl}(u_0+x)=-i/\mathrm{sl}(x)$, so
$2\,\mathrm{sl}(u_0+x)^2=-2x^{-2}+O(x^2)$: the same principal part. Also $\mathrm{sl}^2$ is elliptic for
$\mathcal P$ by Proposition~Le2\,(c). So $(\log\Psi)''-2\,\mathrm{sl}^2$ is an elliptic function without poles: a
constant. Now $\Theta$ is even, and $T_2=\sum\lambda^2e^{-\pi|\lambda|^2}=0$ because $\lambda\mapsto i\lambda$
changes its sign. So $(\log\Psi)''(0)=0=2\,\mathrm{sl}(0)^2$ and the constant is $0$. Hence
$(\log\Psi)''=(\log\Phi)''$. Both $\Psi$ and $\Phi$ are even, so $\log\Psi-\log\Phi$ is a constant near $0$;
at $u=0$ it is $\log T_0$. Thus $\Psi=T_0\Phi$ near $0$, and so everywhere, both sides being entire. \qed
\noindent The identity \eqref{el:theta} was checked at three complex points, to $60$, $52$ and $46$ digits
(the last two are limited by the truncated series used for $\sigma$ and $\wp$), with the wrong scaling
$u=\varpi z/\pi$ as a control.\footnote{Script \texttt{el1\_theta\_identity.py}.} There is also a check by
Lemma~Le5a\,(f): by \eqref{el:sigmasq} and the periodicity of $\wp$,
$\Phi(u+\varpi)=e^{\pi+2\pi u/\varpi}\Phi(u)$ and $\Phi(u+i\varpi)=e^{\pi-2\pi iu/\varpi}\Phi(u)$, and with
$z=2\pi u/\varpi$ these are the two factors of \eqref{el:thetaqp}.
The theorem gives $(\sigma/\mathrm{sl})^2$ as a product $\theta(z)\theta(iz)$. To take the square root one
needs to know how $\theta(iz)$ and $\theta(z)$ are related.
\textbf{Corollary Le6a (the functional equation of $\theta$; a square root of \eqref{el:theta}).}
\emph{For all $z\in\C$, and with $u=\varpi z/2\pi$,}
\begin{equation}\label{el:thetafe}
\theta(iz)=e^{-z^2/4\pi}\,\theta(z),\qquad\qquad
\frac{\sigma(u)}{\mathrm{sl}(u)}=e^{-z^2/8\pi}\,\frac{\theta(z)}{\theta(0)} .
\end{equation}
\emph{Proof.} In the proof of Theorem~Le6 we saw that $\theta(z)$ and $\theta(iz)$ have the same zeros, the
points of $\pi(1+i)+2\pi\Z[i]$, and that these are simple for both. So
$G(z)=e^{z^2/4\pi}\,\theta(iz)/\theta(z)$ is an entire function. We also saw that
$\theta(z+2\pi)=e^{\pi+z}\theta(z)$ and $\theta(z+2\pi i)=\theta(z)$. The first of these, applied at the
point $iz-2\pi$, gives $\theta(iz-2\pi)=e^{\pi-iz}\theta(iz)$. Since
$e^{(z+2\pi)^2/4\pi}=e^{z^2/4\pi}e^{z+\pi}$ and $e^{(z+2\pi i)^2/4\pi}=e^{z^2/4\pi}e^{iz-\pi}$, we get
\begin{equation}\label{D:455}
G(z+2\pi)=\frac{e^{z^2/4\pi}e^{z+\pi}\,\theta(iz)}{e^{\pi+z}\,\theta(z)}=G(z),\qquad
G(z+2\pi i)=\frac{e^{z^2/4\pi}e^{iz-\pi}\,e^{\pi-iz}\,\theta(iz)}{\theta(z)}=G(z).
\end{equation}
An entire function with the two periods $2\pi$ and $2\pi i$ is bounded, so it is constant by Liouville's
theorem (or by \cite{Apo90}, Theorem~1.4). Since $G(0)=1$, this is the first equation. For the second, by
\eqref{el:theta} with $\Theta(z)=\theta(z)\theta(iz)$ and $T_0=\theta(0)^2$,
\begin{equation}\label{D:456}
\Big(\frac{\sigma(u)}{\mathrm{sl}(u)}\Big)^2=\frac{\theta(z)\,\theta(iz)}{\theta(0)^2}
=\Big(e^{-z^2/8\pi}\,\frac{\theta(z)}{\theta(0)}\Big)^2 .
\end{equation}
The quotient of the two meromorphic functions $\sigma(u)/\mathrm{sl}(u)$ and
$e^{-z^2/8\pi}\theta(z)/\theta(0)$ has the square $1$, so it is a constant, $1$ or $-1$. Both functions
tend to $1$ as $z\to0$. \qed
\noindent The first equation of \eqref{el:thetafe} is a case of Jacobi's transformation formula for the
theta series. It is usually proved by Poisson summation; the proof above uses only the zeros of $\theta$.
Both equations were checked at complex points with $|z|\le6.1$, to $40$ and to $30$ digits; with $e^{+z^2/4\pi}$
in the first, or $e^{-z^2/4\pi}$ in the second, the test fails.\footnote{Script
\texttt{el9\_sigma\_zeta.py}.} The corollary is not used in the rest of the section.
\textbf{Proposition Le7 (the two values of \S I.4.1).}
\begin{equation}\label{el:T0}
T_0=\sum_{n\in\Z}\frac1{\cosh\pi n}=\frac{\sqrt2\,\varpi}{\pi}=1.18034\ldots,\qquad
\frac{T_4}{T_0}=\frac14\Big(\frac\varpi\pi\Big)^4=0.12131\ldots
\end{equation}
\emph{Proof.} \emph{The second value.} By \eqref{el:theta}, $\Phi(u)=\exp(2M(u))=1+u^4/6+O(u^8)$, so
$T_4=4!\,T_0\,(\varpi/2\pi)^4/6$.
\emph{The first equality.} $T_0=\sum_{N\ge0}r_2(N)e^{-\pi N}$, where $r_2(N)$ is the number of
$\lambda\in\Z[i]$ with $|\lambda|^2=N$. By the two-squares theorem (C2),
$r_2(N)=4\sum_{d\mid N}\chi_4(d)$ for $N\ge1$, where $\chi_4$ is the nonprincipal character modulo $4$. With
$x=e^{-\pi}$ and $\sum_{d\ge1}\chi_4(d)y^d=y/(1+y^2)$,
\begin{equation}\label{D:458}
T_0=1+4\sum_{d,m\ge1}\chi_4(d)x^{dm}=1+4\sum_{m\ge1}\frac{x^m}{1+x^{2m}}=1+2\sum_{m\ge1}\frac1{\cosh\pi m}.
\end{equation}
\emph{The second equality.} Let $S(u)=\sum_{n\in\Z}1/\cosh\big(\pi(u+n\varpi)/\varpi\big)$. The series
converges uniformly on compact sets away from its poles. It has the period $\varpi$, and
$S(u+i\varpi)=-S(u)$ because $\cosh(y+i\pi)=-\cosh y$. Its poles are the points of
$\frac12i\varpi+\mathcal P$; at $u=\frac12i\varpi+x$ the term $n=0$ is $1/(i\sinh(\pi x/\varpi))$, so the
principal part is $-i\varpi/(\pi x)$. Hence $S^2$ is elliptic for $\mathcal P$ with a double pole of
leading coefficient $-(\varpi/\pi)^2$ at $\frac12i\varpi$. An elliptic function with one pole in a period
parallelogram has residue $0$ there (\cite{Apo90}, Theorem~1.7). So $S(u)^2+(\varpi/\pi)^2\wp(u-\frac12i\varpi)$ has no poles and is a
constant $C$. Next, $S(\frac12i\varpi+x)=\sum_n1/(i\sinh(\pi(x+n\varpi)/\varpi))$ is odd in $x$ and has the
period $\varpi$ in $x$; so it vanishes at $x=\varpi/2$. At that point
$\wp(u-\frac12i\varpi)=\wp(\varpi/2)=1$, so $C=(\varpi/\pi)^2$. At $u=0$, by \eqref{el:evalues},
\begin{equation}\label{D:459}
S(0)^2=C-(\varpi/\pi)^2\,\wp(-\tfrac12i\varpi)=2\,(\varpi/\pi)^2,
\end{equation}
and $S(0)>0$. \qed
\noindent Apart from the statements of \cite{Apo90} quoted in \S1 and \S1a, the two-squares theorem (C2) is
the only cited input of \S\S1--3. Numerically, $T_0$,
$\sum_n1/\cosh\pi n$ and $\sqrt2\,\varpi/\pi$ agree to $60$ digits, as do the two sides of
$S^2=(\varpi/\pi)^2(1-\wp(u-\frac12i\varpi))$ at a complex point.\footnote{Script
\texttt{el1\_theta\_identity.py}; $\varpi$ is computed there as $\pi$ divided by the arithmetic-geometric
mean of $1$ and $\sqrt2$.}
\textbf{Corollary Le8 (the rational numbers $r_k$).} \emph{Write $\Phi(u)=\sum_{k\ge0}\phi_ku^{4k}$. Then
$(4k)!\,\phi_k$ is an integer divisible by $4^k$, and}
\begin{equation}\label{el:rk}
r_k=\frac{T_{4k}}{T_0\,(\varpi/\pi)^{4k}}=\frac{(4k)!\,\phi_k}{16^k}\in\frac1{4^k}\,\Z .
\end{equation}
\emph{Proof.} The equality is \eqref{el:theta}: $T_{4k}=(4k)!\,T_0\,\phi_k\,(\varpi/2\pi)^{4k}$. Let
$\mu=1+i$, so $\mu^4=-4$ and $\mathrm{sl}(u)=\mu^{-1}\mathrm{sl}^\flat(\mu u)$. Then
$2M(u)=E_1(\mu u)$ with $E_1(x)=-\frac12\int_0^x\!\!\int_0^y\mathrm{sl}^\flat(s)^2\,ds\,dy$. By
Lemma~Le4\,(ii) and Lemma~Le3, $\mathrm{sl}^\flat\cdot(\mathrm{sl}^\flat)'$ is a Hurwitz series over $\Z$,
so $(\mathrm{sl}^\flat)^2=2\int_0^x\mathrm{sl}^\flat(\mathrm{sl}^\flat)'$ is twice a Hurwitz series over $\Z$,
and $E_1$ is a Hurwitz series over $\Z$ with $E_1(0)=0$. By Lemma~Le3, $\exp(E_1)=\sum_ne_nx^n/n!$ with
$e_n\in\Z$. So $\Phi(u)=\exp(E_1(\mu u))$ gives $(4k)!\,\phi_k=e_{4k}\mu^{4k}=(-4)^ke_{4k}$. \qed
\noindent So $r_k=(-1)^ke_{4k}/4^k$, and the proof is a recipe for computing it. We computed $\Phi$
exactly in two ways, from $\mathrm{sl}$ as here and from the Laurent coefficients of
$\wp$ (\cite{Apo90}, Theorem~1.13, with $g_2=4$, $g_3=0$); the results agree up to
$u^{480}$.\footnote{Scripts \texttt{el2\_rk.py} and, for $r_{11}$ and $r_{12}$, \texttt{el10\_examples.py}.}
The values are
\begin{equation}\label{el:rktable}
\begin{aligned}
&r_1=\tfrac14,\quad r_2=\tfrac{17}{16},\quad r_3=-\tfrac{111}{64},\quad r_4=\tfrac{12513}{256},\quad
r_5=-\tfrac{146079}{1024},\quad r_6=\tfrac{81727857}{4096},\quad r_7=\tfrac{22284691569}{16384},\\
&r_8=-\tfrac{751645880127}{65536},\quad r_9=-\tfrac{305713085239359}{262144},\quad
r_{10}=\tfrac{274920417491193297}{1048576},\\
&r_{11}=-\tfrac{12320223978927877551}{4^{11}},\quad r_{12}=\tfrac{12397456849784472393633}{4^{12}}.
\end{aligned}
\end{equation}
The first five are the values of \S I.4.1. For $k\le10$ they agree with the lattice sums to $59$ digits.
For $k\le120$ the denominator of $r_k$ is exactly $4^k$; that it is never smaller is observed, not
proved. The exponent of $3$ in $r_{30}$ is $14$.
\subsection*{3.\quad The size of $A_n$}
\textbf{Theorem Le9 (size through a period).} \emph{Let $n=4k+1$.}
\begin{enumerate}[label=\textup{(\roman*)},leftmargin=2.4em,itemsep=1pt,topsep=2pt]
\item \emph{For every constant $10$ for $i\ge2$. So the right
side is $>-(p^2-1)$ unless $j=p^2-1$. Hence $v_p(j!)>j\,p/(p^2-1)-1$, and $v_p(j!)$ is an integer. \qed
\noindent \emph{Example.} $p=3$, so $j\,p/(p^2-1)=3j/8$. For $j=5$: $v_3(5!)=1=\lfloor15/8\rfloor$. For
$j=9$: $v_3(9!)=4\ge3=\lfloor27/8\rfloor$. For the exceptional $j=8$: $v_3(8!)=2$, and $3\cdot8/8=3$. For
$p=7$ the exception is $j=48$: $v_7(48!)=6$ and $7\cdot48/48=7$.\footnote{Script \texttt{el10\_examples.py}:
for $p<60$ and $j<20000$ the only exception is $j=p^2-1$.}
\textbf{Theorem Le18 (divisibility at inert primes).} \emph{Let $p\equiv3\bmod4$, and let
$f(t)\in\Z_{(p)}[[t]]$. For $n\ge0$ let $D_n$ be the $n$th derivative of $f(\mathrm{sl}(z))$ at $z=0$. Then}
\begin{equation}\label{el:div}
v_p(D_n)\ \ge\ \Big\lfloor\frac{n\,p}{p^2-1}\Big\rfloor\quad\text{if }(p^2-1)\nmid n,\qquad
v_p(D_n)\ \ge\ \frac{n\,p}{p^2-1}-1\quad\text{if }(p^2-1)\mid n .
\end{equation}
\emph{If $f$ is odd, the first bound holds for all $n$. In particular, for every $n\ge1$,}
\begin{equation}\label{el:divA}
v_p(A_n)\ \ge\ \Big\lfloor\frac{n\,p}{p^2-1}\Big\rfloor\ >\ n\Big(\frac1p+\frac1{p^3}+\frac1{p^5}+\cdots\Big)-1 .
\end{equation}
\emph{Proof.} By Corollary~Le16, $f(\mathrm{sl}(z))=(f\circ U_p)(g_-(z))$ and
$f\circ U_p=\sum_{j\ge0}b_jT^j$ with $b_j\in\Z_{(p)}$. With $H$ and $\mathfrak r$ as in the proof of
Proposition~Le15, $g_-(z)^j=\mathfrak r^{-j}H(\mathfrak rz)^j$. By Lemma~Le3, $H^j=j!\sum_nh_{j,n}x^n/n!$ with
integers $h_{j,n}$, and $h_{j,n}=0$ unless $n\equiv j\bmod(q-1)$ and $n\ge j$. So
\begin{equation}\label{D:489}
D_n=\sum_j b_j\;j!\;p^{\,p(n-j)/(q-1)}\,h_{j,n},
\end{equation}
the sum over the $j$ with $0\le j\le n$ and $j\equiv n\bmod(q-1)$. For $n=0$ the claim \eqref{el:div} is
trivial, because $D_0=f(0)\in\Z_{(p)}$. Let $n\ge1$. The term $j=0$ vanishes, because $H^0=1$ and so
$h_{0,n}=0$. A term with $j\ge1$ has valuation at least
$v_p(j!)+p(n-j)/(q-1)$, where $p(n-j)/(q-1)$ is an integer. If $j\ne q-1$, Lemma~Le17 gives
$v_p(j!)+p(n-j)/(q-1)\ge\lfloor jp/(q-1)\rfloor+p(n-j)/(q-1)=\lfloor np/(q-1)\rfloor$. The term $j=q-1$ occurs
only if $(q-1)\mid n$, and then its valuation is at least $np/(q-1)-1$. If $f$ is odd then $f\circ U_p$ is
odd, and $j=q-1$, an even number, does not occur. \qed
\noindent \emph{Comparison with \S I.3.} The number $x=n\,p/(p^2-1)$ is the prediction (the display after
the table of \S I.3), and \S I.3 observed that the exponent is ``at least the prediction minus $1$''. For
an integer $e$ the two statements $e\ge\lfloor x\rfloor$ and $e\ge x-1$ compare as follows. If $x$ is not
an integer they are equivalent, because $\lfloor x\rfloor$ is then the least integer that is $\ge x-1$. If
$x$ is an integer, the first says $e\ge x$ and the second $e\ge x-1$: the first is stronger by exactly
$1$. Now $x$ is an integer only if $(p^2-1)\mid n$, because $p$ is prime to $p^2-1$; then $n$ is even.
So for odd $n$ the bound \eqref{el:divA} is the same statement as the one observed in \S I.3, and for even
$n$ both are empty, because $A_n=0$. What Theorem~Le18 adds to the observation is the range: every inert
prime and every $n$. For a general $f$ the two cases are those of \eqref{el:div}, and there the loss of $1$
at the multiples of $p^2-1$ does occur. The bound \eqref{el:divA} cannot be improved in this form:
\begin{center}\small
\begin{tabular}{r|rr|rr|rr}
\toprule
$n$ & $v_3(A_n)$ & $\lfloor3n/8\rfloor$ & $v_7(A_n)$ & $\lfloor7n/48\rfloor$ & $v_{11}(A_n)$ & $\lfloor11n/120\rfloor$\\
\midrule
17 & 6 & 6 & 2 & 2 & 1 & 1\\
49 & 19 & 18 & 7 & 7 & 4 & 4\\
101 & 37 & 37 & 14 & 14 & 9 & 9\\
201 & 75 & 75 & 29 & 29 & 18 & 18\\
\bottomrule
\end{tabular}
\end{center}
\noindent We computed $A_n$ exactly for all $n\le2001$ and compared with
\eqref{el:divA} for the $24$ inert primes $p<200$:\footnote{Script \texttt{el4\_divisibility.py}.} there is
no violation, and equality holds for $418$ of
the $501$ values of $n$ when $p=3$, for $490$ when $p=7$, and for at least $465$ for each of the others.
The largest excess over $n\,p/(p^2-1)$ is $4.625$, at $p=3$, $n=1945$, as stated in \S I.3; we do not prove
that the excess is unbounded. For general $f$ the loss of $1$ in \eqref{el:div} occurs (computed with
random $f$).\footnote{Script \texttt{el6\_inverse\_log.py}.} As said after Proposition~Le15, divisibilities
of this kind at supersingular primes are in the literature (Katz \cite{Kat81}; Hurwitz \cite{Hur99} for the
numbers $A_n$; both from memory), and we have not compared the statements. Two weaker forms of \eqref{el:divA} are worth recording. First,
$\lfloor np/(p^2-1)\rfloor\ge\sum_{h\ \mathrm{odd}}\lfloor n/p^h\rfloor$: this is Legendre's formula
\eqref{leg} with the odd powers of $p$ only. Second, $v_p(A_n)\ge\lfloor n/p\rfloor$: every inert prime
$p\le n$ divides $A_n$.
\emph{The mechanism in one sentence.} In the coordinate $T$ of the height-two logarithm the function is
integral; the exponential of that logarithm is a Hurwitz series in $\mathfrak rz$ with
$v_p(\mathfrak r)=p/(p^2-1)$; so an $n$th derivative in $z$ carries the factor $\mathfrak r^n$ up to
rounding. This is the second of the three reasons for differentiating given in \S I.4.1, and it is the
one-variable case of \S III.5, \S\S2--3: there the loss is $\rho=1/(\ell^2-1)$ per degree, the factorial
gives $1/(\ell-1)$, and the difference is $\gamma=\ell/(\ell^2-1)$.
\subsection*{7.\quad The Chebyshev inequality that results, and its three defects}
\textbf{Proposition Le19.} \emph{For every $n\equiv1\bmod4$, and every constant $1n$ being
$\ge0$; then $\sum_{p\le n}\log p\le\pi(n)\log n=O(n)$ by Chebyshev's bound (C4), and
$\log n!\le n\log n$. \qed
\noindent \emph{What it gives.} The inequality \eqref{el:cheb} is true and gives nothing. By the theorem
on primes in a progression quoted in (C4) (\cite{Apo76}, Theorem~7.3, with modulus $4$) the sum
$\sum_{p\le n,\,p\equiv3(4)}(\log p)/p$ is
$\frac12\log n+O(1)$. So \eqref{el:cheb} has the constant $1$ where the truth is $\frac12$: it is off by
the factor $2$ in the leading term. Numerically,\footnote{Script \texttt{el6\_inverse\_log.py}.} with the
sums over the inert primes $p\le n$:
\begin{center}\small
\begin{tabular}{r|rrrr}
\toprule
$n$ & $\log|A_n|$ & left side of \eqref{el:cheb}, inert part & the same with the true exponents & $\frac12n\log n$\\
\midrule
101 & 306.8 & 163.6 & 167.7 & 233.1\\
201 & 745.2 & 393.4 & 393.4 & 533.0\\
1001 & 5301.8 & 2749.7 & 2753.8 & 3457.8\\
2001 & 11979.5 & 6188.3 & 6188.3 & 7605.2\\
\bottomrule
\end{tabular}
\end{center}
\noindent The values $167.7$ and $306.8$ at $n=101$ are those of \S I.3. The three defects named in
\S I.3 and \S I.4 are now visible in \eqref{el:cheb}.
\begin{enumerate}[label=\textup{(D\arabic*)},leftmargin=3em,itemsep=1pt,topsep=2pt]
\item \emph{Rounding.} The exponent is $\lfloor np/(p^2-1)\rfloor$, and by the table after Theorem~Le18
the floor is attained for most $n$. Against the smooth exponent $np/(p^2-1)$ this loses up to $\log p$ at
each inert prime $p\le n$, in total up to $\sum_{p\le n,\,p\equiv3(4)}\log p\approx n/2$. That is of the
order of the linear term $n\,(1+\log(\varpi/\sqrt2))$ of the right side.
\item \emph{Only half the primes.} A split prime $p$ does not divide $A_p$ (Proposition~Le20 below), and in
the range computed most split primes divide no $A_n$ with $n\equiv1\bmod4$ (for $5,13,17,29$ this
is proved for all such $n$: Proposition~Le20a\,(iii)).
\item \emph{Size.} The right side is $n\log n+O(n)$, because the nearest pole of $\mathrm{sl}$ is at a
finite distance; the left side is $\frac12n\log n+O(n)$. An entire function of Gaussian growth, such as
$\Theta$, has derivatives of size $\sqrt{n!}$ (\S I.4.1); but for $\Theta$ the divisibility is lost: the
exponent of $3$ in $r_{30}$ is $14$, and $\lfloor3\cdot120/8\rfloor=45$.
\end{enumerate}
In the proof both properties are obtained together, for other theta series, and this is the statement that
\S III.5 reduces to hypothesis \textup{(B)}.
\subsection*{8.\quad The split primes}
\textbf{Proposition Le20.} \emph{Let $p\equiv1\bmod4$.}
\begin{enumerate}[label=\textup{(\roman*)},leftmargin=2.4em,itemsep=1pt,topsep=2pt]
\item \emph{If $4k+1=p\,(4k'+1)$ then $\kappa_k\equiv\alpha_p\,\kappa_{k'}\pmod p$, where
$\alpha_p=\kappa_{(p-1)/4}$ is prime to $p$. So the coefficient of $t^{p^j}$ in $\mathrm{arcsl}(t)$ has the
valuation exactly $-j$, for every $j\ge0$.}
\item \emph{$p$ does not divide $A_p$. In contrast, an inert prime $p$ divides $A_n$ for every $n\ge p$.}
\end{enumerate}
\emph{Proof.} (i) Here $k=pk'+\frac{p-1}4$ and $2k=p\cdot2k'+\frac{p-1}2$, with $\frac{p-1}4$ and
$\frac{p-1}2$ less than $p$. By Lucas's congruence (C3)
$\binom{2k}{k}\equiv\binom{2k'}{k'}\binom{(p-1)/2}{(p-1)/4}\pmod p$, and
$4^k=(4^p)^{k'}4^{(p-1)/4}\equiv4^{k'}4^{(p-1)/4}$. The binomial coefficient $\binom{(p-1)/2}{(p-1)/4}$ is
prime to $p$. By induction $\kappa_{(p^j-1)/4}\equiv\alpha_p^{\,j}$, and the coefficient is
$\kappa_{(p^j-1)/4}/p^j$. (ii) Let $\mathrm{arcsl}(t)=\sum l_mt^m$ and $\mathrm{sl}(z)=\sum a_nz^n$. From
$\mathrm{arcsl}(\mathrm{sl}(z))=z$, for $n\ge2$,
\begin{equation}\label{D:491}
a_n=-\sum_{m=2}^{n}l_m\cdot\big(\text{the coefficient of $z^n$ in }\mathrm{sl}(z)^m\big).
\end{equation}
For $mv_\ell(x_n)$ implies $v_\ell(x_m)=v_\ell(x_n)$; this constant is the
value at the limit. It contains a primitive root of unity of order $q-1$: if the class of $x\in\Z[i]$
generates the cyclic group of the nonzero elements of the field $\Z[i]/\ell\Z[i]$, then
$x^{q^{k+1}}\equiv x^{q^k}$ modulo $\ell^{k+1}$ for all $k\ge0$ (by induction, since for $k\ge1$ a congruence $a\equiv b$ modulo
$\ell^k$ implies $a^\ell\equiv b^\ell$ modulo $\ell^{k+1}$), so the sequence $x^{q^k}$ converges, and its limit
$\zeta$ satisfies $\zeta^q=\zeta$ and $\zeta\equiv x$ modulo $\ell$; so $\zeta^{q-1}=1$, and
$\zeta^j\equiv x^j\not\equiv1$ modulo $\ell$ for $00$ its irreducible representations are
infinite-dimensional, and one studies them through their restriction to the compact subgroup
$K=U(p)\times U(q)$. The \emph{discrete series} are the
irreducible representations that occur as summands of $L^2$ of the group. A cusp form of weight $k$ on the
upper half-plane is a vector in a discrete series representation of $SL_2(\mathbb R)$. Harish-Chandra
classified them by a strictly decreasing sequence $\lambda$. The \emph{formal degree} replaces
the dimension, and it is given by Weyl's formula: $\prod_{a