The theorem of this page chooses the two auxiliary primes $q$ and $d$ that the proof of (Weighted prime-sum boundTheorem ANT.1.0102) uses; from that estimate, (Riemann hypothesis for Dirichlet L-functionsTheorem ANT.1.0001) is deduced by means of (Landau theorem on intervalsTheorem ANT.1.0127). Given an integer $M\ge1$ and a large real number $U$, the theorem produces primes $q$ and $d$, of sizes prescribed in terms of $U$ and in prescribed residue classes, with the following property. Multiply a Dirichlet character $\xi$ modulo $M$ by the Legendre symbol of $q$, by that of $d$, or by both, and pass to the primitive character that induces the product. For every $\xi$, the three characters obtained satisfy two bounds at every point of an interval $[U,U^A]$: one for a smoothed sum over prime powers, one for the logarithmic derivative of the $L$-function at $1$. A second assertion gives rectangles free of zeros for the $L$-functions of the characters obtained in the same way from the real primitive characters of conductor dividing $8M$. We first define these characters and the smoothed sum.
Fix an integer $M\ge1$ and odd primes $q$ and $d$, and write $(n/q)$ and $(n/d)$ for the Legendre symbols. Let $\xi$ be a Dirichlet character whose modulus $k$ divides $8M$, and let $(i,j)\in\{0,1\}^2$. The twist $\xi_{i,j}$ of $\xi$ by $q$ and $d$ is the primitive Dirichlet character $\chi$ such that
$$\chi(n)=\xi(n)\left(\frac nq\right)^i\left(\frac nd\right)^j\qquad\text{for all positive integers }n\text{ with }(n,2Mqd)=1.$$
There is exactly one such character. The function $n\mapsto\xi(n)(n/q)^i(n/d)^j$ is a Dirichlet character modulo $kq^id^j$, and the primitive character that induces it satisfies the displayed condition, because an integer coprime to $2Mqd$ is coprime to $kq^id^j$. Two primitive Dirichlet characters that agree at all positive integers coprime to a fixed positive integer are equal. The definition covers the two kinds of characters that occur in the theorem: the characters modulo $M$, primitive or not, and the primitive characters whose conductor divides $8M$. If $q\ne d$ and neither prime divides $M$, the conductor of $\xi_{i,j}$ is the conductor of $\xi$ multiplied by $q^id^j$; when $(i,j)\ne(0,0)$ the twist is then nonprincipal, and $L(1,\xi_{i,j})\ne0$. The primes of the theorem satisfy both conditions, since $q\equiv3$ and $d\equiv7$ modulo $8$ and $(M,qd)=1$.
For a nonprincipal Dirichlet character $\chi$ and a real number $y>0$, the function $g_\chi$ of (Regularized smoothed character sumsDefinition ANT.D088) is
$$g_\chi(y)=\sum_{1\le n\le y}\Lambda(n)\chi(n)\left(\frac yn-1\right)+y\,\frac{L'}{L}(1,\chi),$$
where $\Lambda$ is the von Mangoldt function and $L'/L$ is the logarithmic derivative of the Dirichlet $L$-function $L(s,\chi)$.
The bounds are needed in the proof of (Weighted prime-sum boundTheorem ANT.1.0102). Let $\psi$ be a primitive Dirichlet character, of conductor $f_\psi$. That result concerns a combination $G_\psi(x)$, with positive coefficients, of the real parts of the functions $g_\chi(x)$ for the primitive characters $\chi$ that induce the powers of $\psi$; for the character of modulus $1$ the function $g$ has a different main term, given in (Regularized smoothed character sumsDefinition ANT.D088). The result provides a constant $b$ such that, for every sufficiently small $\varepsilon>0$, there are arbitrarily large real numbers $Y$ with $G_\psi(x)\le x^{1/2+b\varepsilon}$ for every $x\in[Y,Y^{3/2}]$.
The proof of this bound works at each point $x$ with an abelian number field $E$ formed with two auxiliary primes $q\equiv3\pmod8$ and $d\equiv7\pmod{16}$ that do not divide $f_\psi$:
$$E=\mathbb Q(\zeta_{2^{\nu+2}})^+\,K_\psi\,\mathbb Q(\sqrt{-q},\sqrt{-d}),$$
where $\nu\ge0$ is an integer for which $2^\nu$ is of the order of $x^{2+8\varepsilon}$. Here $\mathbb Q(\zeta_{2^{\nu+2}})^+$ is the maximal real subfield of the field of $2^{\nu+2}$-th roots of unity, and $K_\psi$ is the subfield of the field of $f_\psi$-th roots of unity fixed by the automorphisms that raise these roots to a power $a$ with $\psi(a)=1$. If $\zeta$ is a root of unity whose order is divisible by $2^{\nu+2}$, $f_\psi$, $q$ and $d$, then $E$ is the fixed field of the automorphisms $\zeta\mapsto\zeta^a$ of $\mathbb Q(\zeta)$ for which $a\equiv\pm1\pmod{2^{\nu+2}}$, $\psi(a)=1$ and $(a/q)=(a/d)=1$. The characters of $\operatorname{Gal}(E/\mathbb Q)$ are therefore the Dirichlet characters modulo the order of $\zeta$ that take the value $1$ at these integers $a$. Among them are the characters $n\mapsto\xi(n)(n/q)^i(n/d)^j$, where $\xi$ is a power of $\psi$ and $(i,j)\in\{0,1\}^2$. They are the characters of $\operatorname{Gal}(E/\mathbb Q)$ that are trivial on the subgroup $\operatorname{Gal}(E/F)$, where $F=K_\psi(\sqrt{-q},\sqrt{-d})$, and the primitive characters that induce them are the twists $\xi_{i,j}$ formed with $M=f_\psi$. The twists with $(i,j)=(0,0)$ are the characters of $G_\psi$.
The twists with $(i,j)\ne(0,0)$ are the characters that the proof must control. It bounds $G_\psi(x)$ by $x^{1/2+b_1\varepsilon}$, with a constant $b_1$, plus the sum of $|g_\chi(x)|$ over the twists $\chi=\xi_{i,j}$ of the powers $\xi$ of $\psi$ with $(i,j)\ne(0,0)$. For this it requires of every such twist $\chi$, at the point $x$, that
$$|g_\chi(x)|\le x^{1/2+\varepsilon},\qquad\left|\frac{L'}{L}(1,\chi)\right|\le C\log x,$$
with a constant $C$ that does not depend on $x$. The second bound is a condition under which the inequality for $G_\psi(x)$ is proved, and the first bounds the terms of the sum.
The theorem supplies primes for which these bounds hold, for one value of $U$ at a time. It is stated for an arbitrary integer $M\ge1$ and for all Dirichlet characters $\xi$ modulo $M$; the powers of $\psi$ are among them when $M=f_\psi$. Given real numbers $0<\varepsilon<1/52$ and $A\ge1$, for every sufficiently large $U$ the theorem produces primes $q$ and $d$ with
$$z/2<\log q\le z,\qquad z'/2<\log d\le z',\qquad\text{where }z=U^{\varepsilon/5},\quad z'=z(\log U)^2,$$
such that every twist $\chi=\xi_{i,j}$ with $(i,j)\ne(0,0)$ satisfies
$$|g_\chi(y)|\le y^{1/2+\varepsilon/2},\qquad\left|\frac{L'}{L}(1,\chi)\right|\le4\log y\qquad(U\le y\le U^A).$$
The exponent $1/2+\varepsilon/2$ is smaller than the exponent $1/2+\varepsilon$ that is required, and the constant $C$ is $4$.
One pair of primes serves all characters $\xi$ modulo $M$ and the whole interval $[U,U^A]$, but the pair depends on $U$, and the twists change with it. The characters of $G_\psi$ are fixed, and it is to $G_\psi$ that (Landau theorem on intervalsTheorem ANT.1.0127) is applied. That result takes a bound $G(y)\le By^{\theta}$ on intervals $[Y,Y^{\lambda}]$ with $Y$ arbitrarily large, where $G$ is a combination, with positive coefficients, of the functions $\Re g_\chi$ of finitely many fixed Dirichlet characters, each nonprincipal or of modulus $1$, and where $B$, $0<\theta<1$ and $\lambda>1$ are fixed; it concludes that none of the functions $L(s,\chi)$ has a zero with $\Re s>\theta$. (Weighted prime-sum boundTheorem ANT.1.0102) supplies this bound for $G=G_\psi$, and the twists enter its proof through the two bounds at the point $x$.
The exponent $A$ is arbitrary because the same primes must also satisfy (Bound for localization kernelsTheorem GC.1.0105). That result, which is proved under the assertion of (Galois representations of polarized cusp formsTheorem AGR.1.0011), bounds a weighted sum of the lengths of the localization kernels of the field $E$, which are kernels of restriction maps in the Galois cohomology of $E$. It provides a real number $J\ge1$ with the following property. For every sufficiently large $U$ and all primes $q$ and $d$ that satisfy the congruence, size and divisibility conditions of the theorem at $U$, there is a real number $W$ with $U\le W$ and $W^2\le U^J$ such that, for every $x\in[W,W^2]$, the bound holds for the field $E$ formed with $q$, $d$ and an integer $\nu$ of the size above. (Simultaneous auxiliary-prime and cohomological windowsTheorem ANT.1564) combines the two results. It applies the theorem with $M=f_\psi$ and $A=J$, so that the bounds for the twists hold on $[U,U^J]$, which contains these points $x$.
The remaining conclusions of the theorem are conditions under which the rest of the proof can use the pair $q$, $d$. The congruences $q\equiv3\pmod8$ and $d\equiv7\pmod{16}$, the two inequalities for $\log q$ and $\log d$, and the divisibility conditions $q\mid d+1$ and $p\mid d+1$ for every odd prime $p\le z$ are the conditions on pairs of primes in (Bound for localization kernelsTheorem GC.1.0105). The divisibility conditions give $-d\equiv1$ modulo $q$ and modulo every odd prime $p\le z$, so $-d$ is a quadratic residue modulo each of these primes. These residue conditions and the coprimality $(f_\psi,qd)=1$ are among the hypotheses on $q$ and $d$ under which the proof of "Arithmetic interval realization for a primitive character" constructs the field $E$ and identifies the characters of its Galois group as above. The second assertion of the theorem is used for those characters of $\operatorname{Gal}(E/\mathbb Q)$ whose primitive Dirichlet character is real-valued and has conductor divisible by $q$ or by $d$. For each of them it gives the rectangle $\Re s>399/400$, $|\Im s|\le8f_\psi e^{z+jz'}$ free of zeros of its $L$-function, with $j=1$ if $d$ divides the conductor and $j=0$ otherwise. These rectangles contain the ones that (Covolume of integral cusp formsDefinition ARAK.D001) requires to be free of zeros for these characters.
The bound for the logarithmic derivative is weaker than the bound that the generalized Riemann hypothesis would give for the same characters, and it is obtained without that hypothesis. Assuming the generalized Riemann hypothesis, Chirre, Valås Hagen and Simonič prove that every primitive Dirichlet character $\chi$ of modulus $f\ge10^{30}$ satisfies
$$\left|\frac{L'}{L}(1,\chi)\right|\le2\log\log f-0.4989+5.91\,\frac{(\log\log f)^2}{\log f}$$
[CHS24, Theorem 1]. Let $\chi=\xi_{i,j}$ be a twist of the theorem, with $(i,j)\ne(0,0)$, and let $f$ be its conductor. Then $f$ is divisible by $q$ or by $d$, so $f>e^{z/2}$, which exceeds $10^{30}$ when $U$ is large; and $f$ divides $Mqd$, so $\log f\le\log M+z+z'$. The right-hand side of the displayed inequality is then at most $(2\varepsilon/5+o(1))\log U$ as $U\to\infty$, whereas the theorem gives $4\log y$ with $y\ge U$.
The theorem is deduced from (Auxiliary prime pairs with uniform character estimatesTheorem ANT.0365). That result is applied with the modulus $8M$, the exponent $1/2+\varepsilon/2$, the interval $[U,U^A]$ and $z'=z(\log U)^2$. A character modulo $M$ and a primitive character of conductor dividing $8M$ both induce characters modulo $8M$, with the same twists, so the result covers both assertions of the theorem. It gives primes $q$ and $d$ larger than $8M$ with the required sizes, congruences and divisibility conditions. For every twist $\chi$ with $(i,j)\ne(0,0)$ it gives the bound for $g_\chi$ on $[U,U^A]$, the zero-free rectangle, the bound $8Me^{z+jz'}$ for the conductor of $\chi$, and a bound for $|(L'/L)(1,\chi)|$ by a multiple of $\log U$ whose constant is not specified. (Logarithmic derivative from a fixed zero-free rectangleTheorem ANT.0166) deduces $|(L'/L)(1,\chi)|\le4\log U$ from the zero-free rectangle and the bound for the conductor, and $\log U\le\log y$ for $y\ge U$.
The proof of (Auxiliary prime pairs with uniform character estimatesTheorem ANT.0365) finds the primes by counting. It takes $q$ in the family of primes $q\equiv3\pmod8$ with $e^{z/2}<q\le e^{z}$, and then $d$ in the family of primes $d\equiv7\pmod{16}$ with $e^{z'/2}<d\le e^{z'}$ that are congruent to $-1$ modulo $q$ and modulo every odd prime $p\le z$. In each family, the primes that fail a required property make up at most half of the family, so a prime with all the required properties exists. Let $V$ be the upper bound of the family, $e^{z}$ or $e^{z'}$. The characters that the argument must control for a prime $\ell$ of the family are the primitive characters $\chi$ with $\chi(n)=\kappa(n)(n/\ell)$ for all $n$, where $\kappa$ runs over a finite set of primitive characters that does not depend on $\ell$. A prime $\ell$ can fail in two ways.
In the first, $L(s,\chi)$ has a zero with $\Re s>399/400$ and $|\Im s|\le Q$ for one of these characters $\chi$, where $Q=8Me^{z}$ for the first family and $Q=8Me^{z+z'}$ for the second. These are the rectangles of the second assertion of the theorem; the characters $\chi$ have conductor at most $Q$, and $Q\le V^{3/2}$ when $U$ is large. Such primes are counted by a zero-density estimate, a separate theorem of the proof: there is a constant $C_1$ such that, for every $Q\ge3$, at most $C_1Q^{1/4}$ primitive Dirichlet characters of conductor at most $Q$ have an $L$-function with a zero in the rectangle $\Re s>399/400$, $|\Im s|\le Q$. Hence at most $C_1V^{3/8}$ primes of the family fail in this way, while the family has at least $V^{9/10}$ members. The same estimate follows from the bound for the total multiplicity of these zeros in (Zeros near one and exceptional zerosTheorem ANT.1747), because each character counted contributes at least $1$ to that multiplicity.
The zero-density estimate can be compared with Gallagher's density estimate [Gal70, Theorem 6],
$$\sum_{r\le T}\ \mathop{{\sum}^{*}}_{\chi\bmod r}N(\alpha,T,\chi)\ll T^{c(1-\alpha)}\qquad(T\ge1),$$
where the inner sum is over the primitive characters modulo $r$, $N(\alpha,T,\chi)$ is the number of zeros of $L(s,\chi)$ in the rectangle $\alpha\le\Re s\le1$, $|\Im s|\le T$, and $c$ is a positive constant. Gallagher does not give a value of $c$. If his estimate holds with some $c\le100$, then it implies the estimate used in the proof: at $\alpha=399/400$ and $T=Q$ its left-hand side is at least the number of characters counted above, and its right-hand side is $Q^{c/400}\le Q^{1/4}$.
In the second way of failing, a finite sum formed with $\ell$ is too large. Put $Z=U^{400A}$. For a function $\kappa$ on the positive integers, a prime $\ell$ and a real number $y$ with $U\le y\le U^A$, let
$$S(y;\kappa,\ell)=\sum_{1\le n\le Z}\Lambda(n)\min(1,y/n)\,\kappa(n)\left(\frac n\ell\right).$$
When $\chi(n)=\kappa(n)(n/\ell)$ for all $n$, this is the sum $S_\chi(y)=\sum_{1\le n\le Z}\Lambda(n)\min(1,y/n)\chi(n)$. The prime $\ell$ fails if $|S_\chi(y)|>\tfrac12y^{1/2+\varepsilon/2}$ for one of the characters $\chi$ formed with it and some $y\in[U,U^A]$. (Mean square over auxiliary quadratic twistsTheorem ANT.0055) gives a constant $C_2$ such that, for all sufficiently large $U$, every $y\in[U,U^A]$ and every $\kappa$ with $|\kappa(n)|\le1$ for all $n$, the sum of $|S(y;\kappa,\ell)|^2$ over the primes $\ell$ of the family is at most $C_2\,y\log y$ times the number of these primes. From this the proof deduces that at most a quarter of the primes of the family fail in the second way; the primes failing in the first way are also at most a quarter of the family.
The mean-square estimate can be compared with Heath-Brown's large sieve for real characters [HB95, Theorem 1]: for positive integers $D$ and $X$, arbitrary complex numbers $a_n$ and every $\delta>0$,
$$\mathop{{\sum}^{*}}_{m\le D}\Bigl|\,\mathop{{\sum}^{*}}_{n\le X}a_n\Bigl(\frac nm\Bigr)\Bigr|^2\ll_\delta(DX)^{\delta}(D+X)\mathop{{\sum}^{*}}_{n\le X}|a_n|^2,$$
where the starred sums are over positive odd squarefree integers and $(n/m)$ is the Jacobi symbol. Heath-Brown's inequality holds for all odd squarefree moduli and arbitrary coefficients, whereas the estimate used concerns the primes of one residue class, the class from which the family is drawn, and the coefficients $\Lambda(n)\min(1,y/n)\kappa(n)$ with $|\kappa(n)|\le1$. In the range of the proof, Heath-Brown's inequality gives a larger bound than the estimate used. With $D$ and $X$ the integer parts of $V$ and $Z$ and with $a_n=\Lambda(n)\min(1,y/n)$, its right-hand side is of the order of $(VZ)^{\delta}(V+Z)\,y\log y$, whereas the estimate used has $C_2\,y\log y$ times the number of primes of the family, which is at most $V$; and $V^{\delta}$ exceeds every fixed power of $y$ when $U$ is large, because $\log V\ge U^{\varepsilon/5}$ and $y\le U^A$.
For a prime $\ell$ that fails in neither way, every character $\chi$ formed with it has no zero in its rectangle and satisfies $|S_\chi(y)|\le\tfrac12y^{1/2+\varepsilon/2}$ on $[U,U^A]$. The sum $S_\chi$ is related to $g_\chi$ by the identity
$$g_\chi(y)=-S_\chi(y)+y\left(\frac{L'}{L}(1,\chi)+\sum_{1\le n\le Z}\frac{\Lambda(n)\chi(n)}{n}\right)\qquad(0<y\le Z).$$
The absence of zeros in the rectangle makes the last term small enough for the bound on $S_\chi(y)$ to imply $|g_\chi(y)|\le y^{1/2+\varepsilon/2}$ for $U\le y\le U^A$.