Introduction
For a prime p p p , let τ k ( p ) \tau_k(p) τ k ( p ) be the trace of T p T_p T p on S k ( S L 2 ( Z ) ) S_k(\mathrm{SL}_2(\mathbb{Z})) S k ( SL 2 ( Z )) divided by p ( k − 1 ) / 2 p^{(k-1)/2} p ( k − 1 ) /2 . We prove that for each fixed 1 / 6 ≤ a < 1 / 2 1/6 \le a < 1/2 1/6 ≤ a < 1/2 there is a density-one set of primes on which, with K = p a K = p^a K = p a ,
∑ 4 ≤ k ≤ K k e v e n ∣ τ k ( p ) ∣ 2 ∼ K 2 48 . \sum_{\substack{4 \le k \le K \\ k\ \mathrm{even}}} |\tau_k(p)|^2 \sim\frac{K^2}{48}. 4 ≤ k ≤ K k even ∑ ∣ τ k ( p ) ∣ 2 ∼ 48 K 2 .
The sum has the same leading term as the total dimension, since dim S k ( S L 2 ( Z ) ) = k / 12 + O ( 1 ) \dim S_k(\mathrm{SL}_2(\mathbb{Z})) = k/12 + O(1) dim S k ( SL 2 ( Z )) = k /12 + O ( 1 ) at even weights. At fixed level the full and newform moments are products of local factors that can depend on the residue of p p p . Distinct squarefree newform levels have zero limiting mixed moment. At odd prime level we also separate the character components.
Jung and Sardari [18 Theorem 1.3] bound the trace square sum on newspaces of fixed squarefree level N > 1 N > 1 N > 1 at k ≍ p k \asymp\sqrt{p} k ≍ p . At that scale Bober et al. [4 Theorem 1.1] and Kuan and Lesesvre [26 Theorem 1] study signed first moments under GRH, the latter with Petersson weights. Petrow [33 Theorem 1.1] bounds individual traces for k ≥ p 3 / 10 + η k \ge p^{3/10+\eta} k ≥ p 3/10 + η at fixed level. At fixed weight, averaging over primes gives the diagonal dimension by Rankin–Selberg orthogonality [19 Theorems 2.5–2.6] . In a residue class the prime average can pair forms related by a Dirichlet twist. Our asymptotic concerns a sharp cutoff K = p a = o ( p ) K = p^a = o(\sqrt{p}) K = p a = o ( p ) at individual primes in sets of relative density one, with explicit mixed constants at every fixed level.
Binomial smoothing supplies the weight cutoff. For a uniform nonsingular short Weierstrass equation E E E over F p \mathbf{F}_p F p , toss a coin T T T times with bias f t = 1 / 2 + t / ( 4 p ) f_t = 1/2 + t/(4\sqrt{p}) f t = 1/2 + t / ( 4 p ) , where t = p + 1 − # E ( F p ) t = p + 1 - \#E(\mathbf{F}_p) t = p + 1 − # E ( F p ) . Write P T P_T P T for the count law and Q T Q_T Q T for its analogue under the Sato–Tate prior Beta ( 3 / 2 , 3 / 2 ) \operatorname{Beta}(3/2,3/2) Beta ( 3/2 , 3/2 ) . The expected extra log loss is D K L ( P T ∥ Q T ) D_{\mathrm{KL}}(P_T\mathbin{\|}Q_T) D KL ( P T ∥ Q T ) . The chi-square divergence sums squared Chebyshev moments with weights that decay past T \sqrt{T} T . Kaplan and Petrow’s formula [20 ] identifies these moments with normalized Hecke traces. Varying T T T recovers the sharp sum.
We call 1 / 2 + ( 4 p ) − 1 Z 1/2+(4\sqrt{p})^{-1}\mathbb{Z} 1/2 + ( 4 p ) − 1 Z the trace lattice. In the interior the sampling error T − 1 / 2 T^{-1/2} T − 1/2 reaches its spacing at T ≍ p T\asymp p T ≍ p , where the limiting losses reflect the residues of p p p . At shorter lengths the main term comes from squared Fourier coefficients. Averaging over primes controls the products at distinct frequencies. At a = 1 / 6 a=1/6 a = 1/6 the proof also uses the quadratic functional equation and additive reciprocity. The short-interval estimates of David, Koukoulopoulos and Smith [9 Theorem 1.3] control the likelihood ratios.
For the short-length results, put K = p a K=p^a K = p a and T = ⌊ λ K 2 ⌋ T=\lfloor\lambda K^2\rfloor T = ⌊ λ K 2 ⌋ with fixed 1 / 6 ≤ a < 1 / 2 1/6\le a<1/2 1/6 ≤ a < 1/2 and λ > 0 \lambda>0 λ > 0 .
Table 2.
§ 5 derives the Fourier profile at the threshold. § 6 uses it to prove the trace asymptotics. The supplement lists the proof dependencies.
The trace asymptotics and leading variance are unconditional. The second terms for the prime means use Alpöge’s Dirichlet theorem, released in Lean on 20 November 2026 and accepted by independent kernels. A full written proof by Alpöge has yet to appear [2 , 39 ] . Its quadratic case also gives the sharper bounds in § 7 and S1.
Prediction loss for binary mixtures
For word laws A A A and B B B , the chain rule gives the expected excess log loss of using B B B as D K L ( A ∥ B ) = E A log ( A / B ) D_{\mathrm{KL}}(A\mathbin{\|}B)=\mathbb{E}_A\log(A/B) D KL ( A ∥ B ) = E A log ( A / B ) , with natural logarithms. We also use χ 2 ( A ∥ B ) = E B [ ( A / B − 1 ) 2 ] \chi^2(A\mathbin{\|}B)=\mathbb{E}_B[(A/B-1)^2] χ 2 ( A ∥ B ) = E B [( A / B − 1 ) 2 ] . Draw θ ∈ [ 0 , π ] \theta\in[0,\pi] θ ∈ [ 0 , π ] once, then draw bits independently with bias f = ( 1 + cos θ ) / 2 f=(1+\cos\theta)/2 f = ( 1 + cos θ ) /2 . Write A ν ( T ) A_\nu^{(T)} A ν ( T ) for the word law with f ∼ ν f\sim\nu f ∼ ν . The likelihood ratio depends only on the count of ones, so either divergence can be computed from the count laws.
The reference B a , b ( T ) B_{a,b}^{(T)} B a , b ( T ) uses a Beta ( a , b ) \operatorname{Beta}(a,b) Beta ( a , b ) prior ( a , b > 0 ) (a,b>0) ( a , b > 0 ) and predicts a one with probability ( k + a ) / ( j + a + b ) (k+a)/(j+a+b) ( k + a ) / ( j + a + b ) after k k k ones in j j j bits. The choices a = b = 1 / 2 a=b=1/2 a = b = 1/2 and a = b = 3 / 2 a=b=3/2 a = b = 3/2 give the uniform and Sato–Tate angle laws, respectively. The first is the Krichevsky–Trofimov predictor [24 ] .
A coefficient formula for prediction
Proposition 2.1. Let P m P_m P m be the orthonormal polynomials for the Beta ( a , b ) \operatorname{Beta}(a,b) Beta ( a , b ) law of f f f , with P 0 = 1 P_0=1 P 0 = 1 . With
κ m ( T ) = ∏ j = 0 m − 1 T − j T + a + b + j , \kappa_m(T)=\prod_{j=0}^{m-1}\frac{T-j}{T+a+b+j}, κ m ( T ) = j = 0 ∏ m − 1 T + a + b + j T − j , one has
χ 2 ( A ν ( T ) ∥ B a , b ( T ) ) = ∑ m = 1 T κ m ( T ) ( ∫ P m d ν ) 2 . \chi^2(A_\nu^{(T)}\mathbin{\|}B_{a,b}^{(T)})=\sum_{m=1}^{T}\kappa_m(T)\left(\int P_m\,\mathrm{d}\nu\right)^2. χ 2 ( A ν ( T ) ∥ B a , b ( T ) ) = m = 1 ∑ T κ m ( T ) ( ∫ P m d ν ) 2 .
For a = b = 1 / 2 a=b=1/2 a = b = 1/2 , P m = 2 cos ( m θ ) P_m=\sqrt{2}\cos(m\theta) P m = 2 cos ( m θ ) for m ≥ 1 m\ge1 m ≥ 1 . For a = b = 3 / 2 a=b=3/2 a = b = 3/2 , P m = U m ( cos θ ) P_m=U_m(\cos\theta) P m = U m ( cos θ ) , where U m U_m U m is the Chebyshev polynomial of the second kind. In both cases κ m ( T ) ≤ e − m ( m + a + b − 1 ) / ( 2 T + 2 ) \kappa_m(T)\le e^{-m(m+a+b-1)/(2T+2)} κ m ( T ) ≤ e − m ( m + a + b − 1 ) / ( 2 T + 2 ) .
Proof. Under the beta-binomial reference, the conditional expectations from count to bias and from bias to count are adjoints. Binomial factorial moments and the Beta ( a + k , b + T − k ) \operatorname{Beta}(a+k,b+T-k) Beta ( a + k , b + T − k ) posterior moments show that both maps preserve polynomial degree. By orthogonality, each map therefore sends a degree-m m m orthonormal polynomial to a scalar multiple of its counterpart. From the leading coefficients, the composition multiplies by
T ( T − 1 ) ⋯ ( T − m + 1 ) ∏ j < m ( T + a + b + j ) = κ m ( T ) . \frac{T(T-1)\cdots(T-m+1)}{\prod_{j<m}(T+a+b+j)}=\kappa_m(T). ∏ j < m ( T + a + b + j ) T ( T − 1 ) ⋯ ( T − m + 1 ) = κ m ( T ) .
In particular, the coefficient of the actual count density relative to the reference in the degree-m m m basis is κ m ( T ) ∫ P m d ν \sqrt{\kappa_m(T)}\int P_m\,d\nu κ m ( T ) ∫ P m d ν , up to the choice of signs. Parseval gives the identity. The two special polynomial families follow by the change f = ( 1 + cos θ ) / 2 f=(1+\cos\theta)/2 f = ( 1 + cos θ ) /2 . For the bound, use
T − j T + a + b + j ≤ exp ( − 2 j + a + b 2 T + 2 ) , j < m ≤ T , \frac{T-j}{T+a+b+j}\le\exp\left(-\frac{2j+a+b}{2T+2}\right),\qquad j<m\le T, T + a + b + j T − j ≤ exp ( − 2 T + 2 2 j + a + b ) , j < m ≤ T ,
for a + b ∈ { 1 , 3 } a+b\in\{1,3\} a + b ∈ { 1 , 3 } , and multiply.
The beta-binomial diagonalization is classical [11 Propositions 4.1 and 4.2] . Its weights decay rapidly beyond degree T \sqrt{T} T . Jensen’s inequality gives D K L ≤ log ( 1 + χ 2 ) D_{\mathrm{KL}}\le\log(1+\chi^2) D KL ≤ log ( 1 + χ 2 ) .
Lemma 2.2 (Finite support). For a = b ∈ { 1 / 2 , 3 / 2 } a=b\in\{1/2,3/2\} a = b ∈ { 1/2 , 3/2 } , if ν \nu ν has at most N N N atoms, then
D K L ( A ν ( T ) ∥ B a , b ( T ) ) ≥ 1 2 log ( T + 1 ) − log N − O ( 1 ) . D_{\mathrm{KL}}(A^{(T)}_\nu\mathbin\Vert B^{(T)}_{a,b})\ge\frac{1}{2}\log(T+1)-\log N-O(1). D KL ( A ν ( T ) ∥ B a , b ( T ) ) ≥ 2 1 log ( T + 1 ) − log N − O ( 1 ) .
Proof. The divergence of the count mixture is the mean of the divergences of its individual binomial laws minus the mutual information between the count and the atom. The latter is at most log N \log N log N . For a binomial count k k k of bias f f f , put v = T f ( 1 − f ) v=Tf(1-f) v = T f ( 1 − f ) . Uniformly in f f f , its entropy H ( k ) H(k) H ( k ) is 1 2 log ( 1 + v ) + O ( 1 ) \frac{1}{2}\log(1+v)+O(1) 2 1 log ( 1 + v ) + O ( 1 ) . The upper bound follows by adding an independent uniform variable of length one and applying the Gaussian entropy bound [7 ] . For the lower bound, Fourier inversion and ∣ 1 − f + f e i t ∣ T ≤ e − 2 v sin 2 ( t / 2 ) \lvert1-f+fe^{it}\rvert^T\le e^{-2v\sin^2(t/2)} ∣ 1 − f + f e i t ∣ T ≤ e − 2 v s i n 2 ( t /2 ) give a maximum count mass O ( ( 1 + v ) − 1 / 2 ) O((1+v)^{-1/2}) O (( 1 + v ) − 1/2 ) .
Write Q T ( k ) Q_T(k) Q T ( k ) for the reference count mass. For a = b = 3 / 2 a=b=3/2 a = b = 3/2 , Q T ( k ) ≪ ( T + 1 ) − 1 Q_T(k)\ll(T+1)^{-1} Q T ( k ) ≪ ( T + 1 ) − 1 since the Beta density is bounded. For a = b = 1 / 2 a=b=1/2 a = b = 1/2 , the gamma ratio formula gives Q T ( k ) ≪ ( ( k + 1 ) ( T − k + 1 ) ) − 1 / 2 Q_T(k)\ll((k+1)(T-k+1))^{-1/2} Q T ( k ) ≪ (( k + 1 ) ( T − k + 1 ) ) − 1/2 . The identity E [ 1 / ( k + 1 ) ] = ( 1 − ( 1 − f ) T + 1 ) / ( ( T + 1 ) f ) \mathbb{E}[1/(k+1)]=(1-(1-f)^{T+1})/((T+1)f) E [ 1/ ( k + 1 )] = ( 1 − ( 1 − f ) T + 1 ) / (( T + 1 ) f ) , interpreted at f = 0 f=0 f = 0 by continuity, gives E [ 1 / ( k + 1 ) ] ≤ 2 / ( 1 + T f ) \mathbb{E}[1/(k+1)]\le2/(1+Tf) E [ 1/ ( k + 1 )] ≤ 2/ ( 1 + T f ) . Jensen’s inequality applied to k + 1 k+1 k + 1 and to its reciprocal gives E log ( k + 1 ) = log ( 1 + T f ) + O ( 1 ) \mathbb{E}\log(k+1)=\log(1+Tf)+O(1) E log ( k + 1 ) = log ( 1 + T f ) + O ( 1 ) , with the reflected estimate for T − k T-k T − k . Since ( 1 + T f ) ( 1 + T ( 1 − f ) ) = T + 1 + T v (1+Tf)(1+T(1-f))=T+1+Tv ( 1 + T f ) ( 1 + T ( 1 − f )) = T + 1 + T v , in both cases E [ − log Q T ( k ) ] − H ( k ) ≥ 1 2 log ( T + 1 ) − O ( 1 ) \mathbb{E}[-\log Q_T(k)]-H(k)\ge\frac{1}{2}\log(T+1)-O(1) E [ − log Q T ( k )] − H ( k ) ≥ 2 1 log ( T + 1 ) − O ( 1 ) .
Elliptic-curve coins
Let P T P_T P T be the count law from a uniform nonsingular equation y 2 = x 3 + a x + b y^2=x^3+ax+b y 2 = x 3 + a x + b over F p \mathbb{F}_p F p , p ≥ 5 p\ge5 p ≥ 5 , with bias f t f_t f t as in the introduction. Its Sato–Tate reference Q T Q_T Q T is beta-binomial. For 1 ≤ T ≤ X 1\le T\le X 1 ≤ T ≤ X and ε > 0 \varepsilon>0 ε > 0 put
R ε ( T , X ) = T X log 3 ( 2 X / T ) + X − 1 / 3 + ε max ( T , X ) 1 / 4 . R_\varepsilon(T,X)=\frac{T}{X}\log^3(2X/T)+X^{-1/3+\varepsilon}\max(T,\sqrt{X})^{1/4}. R ε ( T , X ) = X T log 3 ( 2 X / T ) + X − 1/3 + ε max ( T , X ) 1/4 .
Theorem 3.1. For integers 1 ≤ T ≤ p 1\le T\le p 1 ≤ T ≤ p and every ε > 0 \varepsilon>0 ε > 0 ,
D K L ( P T ∥ Q T ) ≤ χ 2 ( P T ∥ Q T ) ≪ ε R ε ( T , p ) . D_{\mathrm{KL}}(P_T\mathbin\Vert Q_T)\le\chi^2(P_T\mathbin\Vert Q_T)\ll_\varepsilon R_\varepsilon(T,p). D KL ( P T ∥ Q T ) ≤ χ 2 ( P T ∥ Q T ) ≪ ε R ε ( T , p ) .
As p → ∞ p\to\infty p → ∞ , the KL divergence tends to zero if and only if T = o ( p ) T=o(p) T = o ( p ) . For T ≥ p T\ge p T ≥ p it is 1 2 log ( T / p ) + O ( 1 ) \frac{1}{2}\log(T/p)+O(1) 2 1 log ( T / p ) + O ( 1 ) , uniformly.
The short-interval estimate of [9, Theorem 1.3 gives vanishing loss for T ≤ p 1 − η T \le p^{1-\eta} T ≤ p 1 − η with fixed η > 0 \eta> 0 η > 0 , by § 6.2 and monotonicity. For a quadratic field K K K with character χ K \chi_K χ K , the factorization ζ K ( s ) = ζ ( s ) L ( s , χ K ) \zeta_K(s) = \zeta(s)L(s,\chi_K) ζ K ( s ) = ζ ( s ) L ( s , χ K ) transfers Alpöge’s critical-line theorem [2 , 39 ] to ζ K \zeta_K ζ K . Thus Ma [29 Theorem 1.5] gives histogram convergence for trace lengths f ( p ) = o ( p ) f(p) = o(\sqrt{p}) f ( p ) = o ( p ) with f ( p ) ≥ exp ( C ( log log p ) 2 ) f(p) \ge\exp(C(\log\log p)^2) f ( p ) ≥ exp ( C ( log log p ) 2 ) eventually for every fixed C > 0 C > 0 C > 0 . To reach all T = o ( p ) T = o(p) T = o ( p ) we estimate the Fourier modes of the trace weights after binomial sampling.
Class numbers on the trace lattice
Let D t = 4 p − t 2 > 0 D_t = 4p - t^2 > 0 D t = 4 p − t 2 > 0 and Δ p = ( 4 p ) − 1 \Delta_p = (4\sqrt{p})^{-1} Δ p = ( 4 p ) − 1 . We use the Hurwitz class number H ( D ) H(D) H ( D ) with the normalization H ( 3 ) = 1 / 3 H(3) = 1/3 H ( 3 ) = 1/3 , H ( 4 ) = 1 / 2 H(4) = 1/2 H ( 4 ) = 1/2 . By Deuring’s theorem, the F p \mathbb{F}_p F p -isomorphism classes with trace t t t , each weighted by 2 / # Aut F p ( E ) 2/\#\operatorname{Aut}_{\mathbb{F}_p}(E) 2/# Aut F p ( E ) , have total weight H ( D t ) H(D_t) H ( D t ) [8 Theorem 14.18] [28 (1.5)–(1.6)] . A class contains ( p − 1 ) / # Aut F p ( E ) (p-1)/\#\operatorname{Aut}_{\mathbb{F}_p}(E) ( p − 1 ) /# Aut F p ( E ) equations, so ( p − 1 ) H ( D t ) / 2 (p-1)H(D_t)/2 ( p − 1 ) H ( D t ) /2 equations have trace t t t . Dividing by p ( p − 1 ) p(p-1) p ( p − 1 ) gives the bias mass Δ p σ ( f t ) F ( t ) \Delta_p\sigma(f_t)F(t) Δ p σ ( f t ) F ( t ) , where σ ( f ) = ( 8 / π ) f ( 1 − f ) \sigma(f) = (8/\pi)\sqrt{f(1-f)} σ ( f ) = ( 8/ π ) f ( 1 − f ) and F ( t ) = π H ( D t ) / D t F(t) = \pi H(D_t)/\sqrt{D_t} F ( t ) = π H ( D t ) / D t is the correction to the sampled Sato–Tate mass.
Write − D t = d 0 r 2 -D_t = d_0r^2 − D t = d 0 r 2 with d 0 d_0 d 0 fundamental and χ = χ d 0 \chi= \chi_{d_0} χ = χ d 0 . Let ρ t ( n ) \rho_t(n) ρ t ( n ) count roots of x 2 − t x + p x^2 - tx + p x 2 − t x + p modulo n n n and set b t = λ L ∗ ρ t b_t = \lambda_L * \rho_t b t = λ L ∗ ρ t , with λ L \lambda_L λ L the Liouville function. The change x ↦ t − 2 x x \mapsto t - 2x x ↦ t − 2 x identifies the roots modulo n n n with the classes b m o d 2 n b \bmod2n b mod 2 n satisfying b 2 ≡ − D t ( m o d 4 n ) b^2 \equiv-D_t \pmod{4n} b 2 ≡ − D t ( mod 4 n ) , including at 2. Zagier’s formula [40 Proposition 3] gives
b t = c t ∗ χ , c t ( n ) = ∑ g e 2 = n g e ∣ r μ ( g ) χ ( g ) e , F ( t ) = ∑ n ≥ 1 b t ( n ) n . b_t = c_t * \chi,\qquad c_t(n) = \sum_{\substack{ge^2=n\\ ge\mid r}} \mu(g)\chi(g)e,\qquad F(t) = \sum_{n\ge1} \frac{b_t(n)}{n}. b t = c t ∗ χ , c t ( n ) = g e 2 = n g e ∣ r ∑ μ ( g ) χ ( g ) e , F ( t ) = n ≥ 1 ∑ n b t ( n ) .
The last series converges in ordinary order because c t c_t c t has finite support and χ \chi χ is nonprincipal. Its value at s = 1 s = 1 s = 1 is the class-number formula for the orders of discriminant dividing − D t -D_t − D t by a square [8 Theorem 7.24] . We use ∑ n ∣ c t ( n ) ∣ / n ≤ ∑ m ∣ r τ ( m ) / m ≤ σ − 1 ( r ) 2 \sum_n |c_t(n)|/n \le\sum_{m\mid r} \tau(m)/m \le\sigma_{-1}(r)^2 ∑ n ∣ c t ( n ) ∣/ n ≤ ∑ m ∣ r τ ( m ) / m ≤ σ − 1 ( r ) 2 and write F N ( t ) = ∑ n ≤ N b t ( n ) / n F_N(t) = \sum_{n\le N} b_t(n)/n F N ( t ) = ∑ n ≤ N b t ( n ) / n .
Lemma 3.2 (Truncating the class-number weights). For 1 ≤ N ≤ p 13 / 30 1 \le N \le p^{13/30} 1 ≤ N ≤ p 13/30 and every ε > 0 \varepsilon> 0 ε > 0 ,
∑ ∣ t ∣ < 2 p ∣ F ( t ) − F N ( t ) ∣ 2 ≪ ε p ( log 4 ( 2 N ) N + p − 1 / 15 + ε ) . \sum_{|t|<2\sqrt{p}} |F(t)-F_N(t)|^2 \ll_\varepsilon\sqrt{p}\left(\frac{\log^4(2N)}{N}+p^{-1/15+\varepsilon}\right). ∣ t ∣ < 2 p ∑ ∣ F ( t ) − F N ( t ) ∣ 2 ≪ ε p ( N log 4 ( 2 N ) + p − 1/15 + ε ) .
Proof. Fourier coefficients of the truncated series. For $0 \le A < B < p$, expand ∑ A < n ≤ B b t ( n ) / n \sum_{A<n\le B} b_t(n)/n ∑ A < n ≤ B b t ( n ) / n into e ( a t / d ) = exp ( 2 π i a t / d ) e(at/d) = \exp(2\pi iat/d) e ( a t / d ) = exp ( 2 π ia t / d ) at reduced fractions a / d a/d a / d with d ≤ B d \le B d ≤ B . Every root modulo n < p n < p n < p is a unit. Fourier inversion of t = x + p / x m o d n t = x + p/x \bmod n t = x + p / x mod n gives the Kloosterman sum S ( a , a p ; n ) S(a,ap;n) S ( a , a p ; n ) , where
S ( m , n ; d ) = ∑ x m o d d ∗ e ( ( m x + n x − 1 ) / d ) S(m,n;d) = \sum_{x\bmod d}^{*} e((mx+nx^{-1})/d) S ( m , n ; d ) = x mod d ∑ ∗ e (( m x + n x − 1 ) / d )
and the star restricts the sum to units. Reducing the frequency to denominator d d d contributes a factor φ ( n ) / φ ( d ) \varphi(n)/\varphi(d) φ ( n ) / φ ( d ) , by the surjection of unit groups. After convolution the coefficient is
S ( a , a p ; d ) φ ( d ) ∑ A < n ≤ B h d ( n ) n , h d ( n ) = ∑ m ∣ n d ∣ m λ L ( n / m ) φ ( m ) m . \frac{S(a,ap;d)}{\varphi(d)}\sum_{A<n\le B}\frac{h_d(n)}{n},\qquad h_d(n)=\sum_{\substack{m\mid n\\d\mid m}}\lambda_L(n/m)\frac{\varphi(m)}{m}. φ ( d ) S ( a , a p ; d ) A < n ≤ B ∑ n h d ( n ) , h d ( n ) = m ∣ n d ∣ m ∑ λ L ( n / m ) m φ ( m ) .
The sign of the Fourier phase is immaterial since S ( − a , − a p ; n ) = S ( a , a p ; n ) S(-a,-ap;n)=S(a,ap;n) S ( − a , − a p ; n ) = S ( a , a p ; n ) . The coefficient at d = 1 d=1 d = 1 uses the zero frequency.
Multiplying the local factors gives the Dirichlet series φ ( d ) d − 1 − s ζ ( 2 s ) ζ ( s + 1 ) − 1 ∏ ℓ ∣ d ( 1 − ℓ − 1 − s ) − 1 \varphi(d)d^{-1-s}\zeta(2s)\zeta(s+1)^{-1}\prod_{\ell\mid d}(1-\ell^{-1-s})^{-1} φ ( d ) d − 1 − s ζ ( 2 s ) ζ ( s + 1 ) − 1 ∏ ℓ ∣ d ( 1 − ℓ − 1 − s ) − 1 for h d h_d h d . Expanding the three factors after d − 1 − s d^{-1-s} d − 1 − s into a square, a divisor m m m with weight μ ( m ) / m \mu(m)/m μ ( m ) / m , and an integer j j j supported on primes dividing d d d with weight 1 / j 1/j 1/ j gives
∑ n > A ∣ h d ( n ) ∣ n ≪ φ ( d ) d 2 min ( 1 , d / A ) . \sum_{n>A}\frac{|h_d(n)|}{n}\ll\frac{\varphi(d)}{d^2}\min(1,\sqrt{d/A}). n > A ∑ n ∣ h d ( n ) ∣ ≪ d 2 φ ( d ) min ( 1 , d / A ) .
with the minimum interpreted as 1 at A = 0 A=0 A = 0 . For the tail, sum s − 2 m − 2 j − 2 s^{-2}m^{-2}j^{-2} s − 2 m − 2 j − 2 over s 2 m j > A / d s^2mj>A/d s 2 mj > A / d , first in s s s . In particular the constant coefficient of F N F_N F N is 1 + O ( N − 1 / 2 ) 1+O(N^{-1/2}) 1 + O ( N − 1/2 ) . Writing τ ( d ) \tau(d) τ ( d ) for the divisor function, the Weil bound [16 Corollary 11.12] shows that the coefficient of e ( a t / d ) e(at/d) e ( a t / d ) is O ( τ ( d ) d − 3 / 2 min ( 1 , d / A ) ) O(\tau(d)d^{-3/2}\min(1,\sqrt{d/A})) O ( τ ( d ) d − 3/2 min ( 1 , d / A )) .
The terms with N < n ≤ p 13 / 30 N<n\le p^{13/30} N < n ≤ p 13/30 . Take A = N A=N A = N and B = p 13 / 30 B=p^{13/30} B = p 13/30 . In the mean square over the trace interval the diagonal is ≪ p log 4 ( 2 N ) / N \ll\sqrt{p}\log^4(2N)/N ≪ p log 4 ( 2 N ) / N , by summing τ ( d ) 2 d − 2 min ( 1 , d / N ) \tau(d)^2d^{-2}\min(1,d/N) τ ( d ) 2 d − 2 min ( 1 , d / N ) . For distinct reduced fractions the geometric sum costs O ( ∥ a / d − a ′ / d ′ ∥ − 1 ) O(\lVert a/d-a'/d'\rVert^{-1}) O (∥ a / d − a ′ / d ′ ∥ − 1 ) , where ∥ x ∥ \lVert x\rVert ∥ x ∥ is the distance to the nearest integer. Writing g = gcd ( d , d ′ ) g=\gcd(d,d') g = g cd( d , d ′ ) , the map ( a , a ′ ) ↦ a d ′ − a ′ d ( m o d d d ′ ) (a,a')\mapsto ad'-a'd\pmod{dd'} ( a , a ′ ) ↦ a d ′ − a ′ d ( mod d d ′ ) on all residue pairs has image the multiples of g g g and fibres of size g g g . Omitting zero, the inverse distances sum to O ( d d ′ log ( 2 d d ′ ) ) O(dd'\log(2dd')) O ( d d ′ log ( 2 d d ′ )) . Hence the off-diagonal contribution is O ( B log 3 ( 2 B ) ) O(B\log^3(2B)) O ( B log 3 ( 2 B )) , using ∑ d ≤ B τ ( d ) d − 1 / 2 ≪ B log ( 2 B ) \sum_{d\le B}\tau(d)d^{-1/2}\ll\sqrt{B}\log(2B) ∑ d ≤ B τ ( d ) d − 1/2 ≪ B log ( 2 B ) .
The tail beyond p 13 / 30 p^{13/30} p 13/30 . Partial summation in Burgess’s estimate with exponent parameter 3 [5 ] gives ∑ n > y χ ( n ) / n ≪ ε p 1 / 9 + ε y − 1 / 3 \sum_{n>y}\chi(n)/n\ll_\varepsilon p^{1/9+\varepsilon}y^{-1/3} ∑ n > y χ ( n ) / n ≪ ε p 1/9 + ε y − 1/3 . This also holds for 0 < y < 1 0<y<1 0 < y < 1 by L ( 1 , χ ) ≪ log p L(1,\chi)\ll\log p L ( 1 , χ ) ≪ log p . Apply it to each term of b t = c t ∗ χ b_t=c_t*\chi b t = c t ∗ χ at y = B / m y=B/m y = B / m . Then
∣ F ( t ) − F B ( t ) ∣ ≪ ε p 1 / 9 + ε B − 1 / 3 ∑ m ∣ c t ( m ) ∣ m − 2 / 3 ≪ ε p 1 / 9 + 2 ε B − 1 / 3 , |F(t)-F_B(t)|\ll_\varepsilon p^{1/9+\varepsilon}B^{-1/3}\sum_m|c_t(m)|m^{-2/3}\ll_\varepsilon p^{1/9+2\varepsilon}B^{-1/3}, ∣ F ( t ) − F B ( t ) ∣ ≪ ε p 1/9 + ε B − 1/3 m ∑ ∣ c t ( m ) ∣ m − 2/3 ≪ ε p 1/9 + 2 ε B − 1/3 ,
since the sum is at most ∑ g e ∣ r g − 2 / 3 e − 1 / 3 ≪ ε p ε \sum_{g e\mid r}g^{-2/3}e^{-1/3}\ll_\varepsilon p^\varepsilon ∑ g e ∣ r g − 2/3 e − 1/3 ≪ ε p ε . The square of the far-tail estimate and the normalized off-diagonal bound are both O ε ( p − 1 / 15 + ε ) O_\varepsilon(p^{-1/15+\varepsilon}) O ε ( p − 1/15 + ε ) , after decreasing ε \varepsilon ε in the intermediate estimates.
From trace weights to prediction loss
Write b T , f ( k ) b_{T,f}(k) b T , f ( k ) for the binomial mass at k k k and use K K K for the random count. For weights u t u_t u t , put P u ( k ) = ∑ t Δ p σ ( f t ) u t b T , f t ( k ) P^u(k)=\sum_t\Delta_p\sigma(f_t)u_tb_{T,f_t}(k) P u ( k ) = ∑ t Δ p σ ( f t ) u t b T , f t ( k ) and ∥ A ∥ Q 2 = ∑ k ∣ A ( k ) ∣ 2 / Q T ( k ) \|A\|_Q^2=\sum_k|A(k)|^2/Q_T(k) ∥ A ∥ Q 2 = ∑ k ∣ A ( k ) ∣ 2 / Q T ( k ) . Thus P T = P F P_T=P_F P T = P F , and P 1 P^1 P 1 is the reference prior sampled on the trace lattice before normalization. The posterior under the continuous reference is Beta ( k + 3 / 2 , T − k + 3 / 2 ) \operatorname{Beta}(k+3/2,T-k+3/2) Beta ( k + 3/2 , T − k + 3/2 ) . Write m T , k m_{T,k} m T , k for its maximum density. Stirling’s bounds at the mode give m T , k ≪ T / 1 + min ( k , T − k ) m_{T,k}\ll T/\sqrt{1+\min(k,T-k)} m T , k ≪ T / 1 + min ( k , T − k ) . The beta-binomial formula gives Q T ( k ) ≪ ( T + 1 ) − 2 ( k + 1 ) ( T − k + 1 ) Q_T(k)\ll(T+1)^{-2}\sqrt{(k+1)(T-k+1)} Q T ( k ) ≪ ( T + 1 ) − 2 ( k + 1 ) ( T − k + 1 ) , so ∑ k Q T ( k ) m T , k 2 ≪ T \sum_kQ_T(k)m_{T,k}^2\ll T ∑ k Q T ( k ) m T , k 2 ≪ T .
The grid has step Δ p \Delta_p Δ p and end gaps at most Δ p \Delta_p Δ p . The Riemann-sum error of a unimodal density is O ( Δ p ) O(\Delta_p) O ( Δ p ) times its maximum, so P 1 ( k ) / Q T ( k ) = 1 + O ( Δ p m T , k ) P^1(k)/Q_T(k)=1+O(\Delta_pm_{T,k}) P 1 ( k ) / Q T ( k ) = 1 + O ( Δ p m T , k ) and ∥ P 1 − Q T ∥ Q 2 ≪ T / p \|P^1-Q_T\|_Q^2\ll T/p ∥ P 1 − Q T ∥ Q 2 ≪ T / p . Cauchy–Schwarz at each count, followed by summing over counts, gives
∥ P u ∥ Q 2 ≪ Δ p ∑ t σ ( f t ) ∣ u t ∣ 2 ( 1 + Δ p E Bin ( T , f t ) m T , K ) . \|P^u\|_Q^2\ll\Delta_p\sum_t\sigma(f_t)|u_t|^2(1+\Delta_p\mathbb{E}_{\operatorname{Bin}(T,f_t)}m_{T,K}). ∥ P u ∥ Q 2 ≪ Δ p t ∑ σ ( f t ) ∣ u t ∣ 2 ( 1 + Δ p E Bin ( T , f t ) m T , K ) .
The binomial reciprocal moment bounds used in Lemma 2.2 give E m T , K ≪ T ( f t − 1 / 2 + ( 1 − f t ) − 1 / 2 ) \mathbb{E}m_{T,K}\ll\sqrt{T}(f_t^{-1/2}+(1-f_t)^{-1/2}) E m T , K ≪ T ( f t − 1/2 + ( 1 − f t ) − 1/2 ) . The density σ ( f t ) \sigma(f_t) σ ( f t ) cancels these singularities, giving a norm bound for errors in the trace weights.
∥ P u ∥ Q 2 ≪ Δ p ( 1 + Δ p T ) ∑ t ∣ u t ∣ 2 . (1) \|P^u\|_Q^2\ll\Delta_p(1+\Delta_p\sqrt{T})\sum_t|u_t|^2. \tag*{(1)} ∥ P u ∥ Q 2 ≪ Δ p ( 1 + Δ p T ) t ∑ ∣ u t ∣ 2 . (1)
The norm bound treats all trace modes alike. Binomial sampling gives extra decay for the nonconstant modes.
Lemma 3.3 (Binomial smoothing). Let V ( t ) = ∑ α γ α e ( α t ) V(t)=\sum_\alpha\gamma_\alpha e(\alpha t) V ( t ) = ∑ α γ α e ( α t ) , with nonzero reduced frequencies α = a / d ( m o d 1 ) \alpha=a/d\pmod1 α = a / d ( mod 1 ) , d ≤ B ≪ p d\le B\ll p d ≤ B ≪ p and ∣ γ α ∣ ≪ τ ( d ) d − 3 / 2 |\gamma_\alpha|\ll\tau(d)d^{-3/2} ∣ γ α ∣ ≪ τ ( d ) d − 3/2 . Suppose that ∣ V ( t ) ∣ ≪ ε p ε |V(t)|\ll_\varepsilon p^\varepsilon ∣ V ( t ) ∣ ≪ ε p ε on the trace lattice. Then for p ( log p ) 8 ≤ T ≤ p \sqrt{p}(\log p)^8\le T\le p p ( log p ) 8 ≤ T ≤ p ,
∥ P V ∥ Q 2 ≪ ε T p log 3 ( 2 p / T ) + p ε ( B T p + 1 T ) . (2) \|P^V\|_Q^2\ll_\varepsilon\frac{T}{p}\log^3(2p/T)+p^\varepsilon\left(\frac{B\sqrt{T}}{p}+\frac{1}{T}\right). \tag*{(2)} ∥ P V ∥ Q 2 ≪ ε p T log 3 ( 2 p / T ) + p ε ( p B T + T 1 ) . (2)
Proof. Put θ t = arccos ( t / ( 2 p ) ) \theta_t=\arccos(t/(2\sqrt{p})) θ t = arccos ( t / ( 2 p )) , h = ( 2 T + 2 ) − 1 h=(2T+2)^{-1} h = ( 2 T + 2 ) − 1 and G ( x ) = ∑ j ∈ Z e − h j 2 / 2 e i j x G(x)=\sum_{j\in\mathbb{Z}}e^{-hj^2/2}e^{ijx} G ( x ) = ∑ j ∈ Z e − h j 2 /2 e ij x . The coefficient identity in Proposition 2.1, with the degree-zero term included for signed measures, and σ ( f t ) U m ( cos θ t ) = ( 4 / π ) sin ( ( m + 1 ) θ t ) \sigma(f_t)U_m(\cos\theta_t)=(4/\pi)\sin((m+1)\theta_t) σ ( f t ) U m ( cos θ t ) = ( 4/ π ) sin (( m + 1 ) θ t ) give by Parseval
∥ P V ∥ Q 2 ≪ p − 1 ∫ − π π ∣ ∑ t V ( t ) G ( ϕ − θ t ) ∣ 2 d ϕ . \lVert P^V\rVert_Q^2\ll p^{-1}\int_{-\pi}^{\pi}\left|\sum_t V(t)G(\phi-\theta_t)\right|^2\,d\phi. ∥ P V ∥ Q 2 ≪ p − 1 ∫ − π π t ∑ V ( t ) G ( ϕ − θ t ) 2 d ϕ .
Here G G G is a Gaussian summed over translates by 2 π 2\pi 2 π . The quantity w ϕ = 2 p sin ϕ w_\phi=2\sqrt{p}\sin\phi w ϕ = 2 p sin ϕ is the absolute derivative of the trace with respect to the angle. It vanishes at the endpoints.
Near the endpoints. An angular interval of radius z z z about ϕ ∈ [ 0 , π ] \phi\in[0,\pi] ϕ ∈ [ 0 , π ] contains O ( 1 + w ϕ z + p z 2 ) O(1+w_\phi z+\sqrt{p}z^2) O ( 1 + w ϕ z + p z 2 ) traces. Thus the sum of the kernels is O ( T ) O(\sqrt{T}) O ( T ) where w ϕ < T w_\phi<\sqrt{T} w ϕ < T and outside [ 0 , π ] [0,\pi] [ 0 , π ] . Up to an exponentially small Gaussian error only traces within angular distance ( log p ) / T (\log p)/\sqrt{T} ( log p ) / T of these regions contribute. They lie in two intervals of length O ( T / p ) O(T/\sqrt{p}) O ( T / p ) . On any interval of length L L L , the geometric sum estimate used in Lemma 3.2 gives ∑ t ∣ V ( t ) ∣ 2 ≪ L + 1 + B log 3 ( 2 B ) \sum_t|V(t)|^2\ll L+1+B\log^3(2B) ∑ t ∣ V ( t ) ∣ 2 ≪ L + 1 + B log 3 ( 2 B ) , using the coefficient bound with no truncation factor. By Cauchy–Schwarz against the positive kernels and ∫ G = 2 π \int G=2\pi ∫ G = 2 π , the edge contribution is O ( ( T / p ) 3 / 2 + B T p − 1 log 3 ( 2 B ) ) O((T/p)^{3/2}+B\sqrt{T}p^{-1}\log^3(2B)) O (( T / p ) 3/2 + B T p − 1 log 3 ( 2 B )) .
Away from the endpoints. In the remaining region set s = 2 p cos ϕ s=2\sqrt{p}\cos\phi s = 2 p cos ϕ and w ( s ) = 4 p − s 2 ≥ T w(s)=\sqrt{4p-s^2}\ge\sqrt{T} w ( s ) = 4 p − s 2 ≥ T . For ∣ t − s ∣ ≤ ( log p ) w ( s ) / T |t-s|\le(\log p)w(s)/\sqrt{T} ∣ t − s ∣ ≤ ( log p ) w ( s ) / T , Taylor expansion replaces G ( ϕ − θ t ) G(\phi-\theta_t) G ( ϕ − θ t ) by ( 2 π / h ) 1 / 2 exp ( − ( t − s ) 2 / ( 2 h w ( s ) 2 ) ) (2\pi/h)^{1/2}\exp(-(t-s)^2/(2hw(s)^2)) ( 2 π / h ) 1/2 exp ( − ( t − s ) 2 / ( 2 h w ( s ) 2 )) with relative error O ( ( log p ) 3 p / ( T w ( s ) ) ) O((\log p)^3\sqrt{p}/(\sqrt{T}w(s))) O (( log p ) 3 p / ( T w ( s ))) . At the boundary of this range, ∣ θ t − ϕ ∣ ≥ ( 1 − o ( 1 ) ) ( log p ) / T |\theta_t-\phi|\ge(1-o(1))(\log p)/\sqrt{T} ∣ θ t − ϕ ∣ ≥ ( 1 − o ( 1 )) ( log p ) / T . Monotonicity of θ t \theta_t θ t makes the remaining Gaussian tails negligible, and the approximating kernels sum to O ( w ( s ) ) O(w(s)) O ( w ( s )) . With the bound for V V V on the trace lattice, the squared replacement error after division by p p p is O ε ( p ε / T ) O_\varepsilon(p^\varepsilon/T) O ε ( p ε / T ) . The trace interval ends are at distance ≫ w ( s ) 2 / p \gg w(s)^2/\sqrt{p} ≫ w ( s ) 2 / p . Using sup Z ∣ V ∣ ≤ ∑ α ∣ γ α ∣ ≪ B log ( 2 B ) \sup_{\mathbb{Z}}|V|\le\sum_\alpha|\gamma_\alpha|\ll\sqrt{B}\log(2B) sup Z ∣ V ∣ ≤ ∑ α ∣ γ α ∣ ≪ B log ( 2 B ) , extension of the approximating sum to all integers adds only Gaussian tails. Poisson summation gives
2 π w ( s ) ∑ β γ β m o d 1 e ( β s ) exp ( − 2 π 2 h w ( s ) 2 β 2 ) . 2\pi w(s)\sum_\beta\gamma_{\beta\bmod1}e(\beta s)\exp(-2\pi^2hw(s)^2\beta^2). 2 π w ( s ) β ∑ γ β mod 1 e ( β s ) exp ( − 2 π 2 h w ( s ) 2 β 2 ) .
where β \beta β runs over all integer translates of the frequencies.
Squaring the Fourier sum. Split each half of the s s s -interval into dyadic ranges w ( s ) ≍ W w(s)\asymp W w ( s ) ≍ W and put H = W / T ≥ 1 H=W/\sqrt{T}\ge1 H = W / T ≥ 1 . Such an interval has length O ( W 2 / p ) O(W^2/\sqrt{p}) O ( W 2 / p ) . Since d ϕ = ∣ d s ∣ / w ( s ) d\phi=|ds|/w(s) d ϕ = ∣ d s ∣/ w ( s ) , the diagonal contribution on it is bounded by
W 3 p 3 / 2 ∑ d ≤ B τ ( d ) 2 d 3 ∑ a ≠ 0 e − c H 2 a 2 / d 2 ≪ T W p 3 / 2 log 3 ( 2 H ) . \frac{W^3}{p^{3/2}}\sum_{d\le B}\frac{\tau(d)^2}{d^3}\sum_{a\ne0}e^{-cH^2a^2/d^2}\ll\frac{TW}{p^{3/2}}\log^3(2H). p 3/2 W 3 d ≤ B ∑ d 3 τ ( d ) 2 a = 0 ∑ e − c H 2 a 2 / d 2 ≪ p 3/2 T W log 3 ( 2 H ) .
For d ≥ H d\ge H d ≥ H the inner sum is O ( d / H ) O(d/H) O ( d / H ) and for d < H d<H d < H it is O ( ( d / H ) 3 ) O((d/H)^3) O (( d / H ) 3 ) . Summing in W W W gives the first term in (2).
For distinct β , β ′ \beta,\beta' β , β ′ , integration by parts on the interval bounds the corresponding integral, before division by p p p , by
C W ∣ β − β ′ ∣ e − c H 2 ( β 2 + β ′ 2 ) . \frac{CW}{|\beta-\beta'|}e^{-cH^2(\beta^2+\beta'^2)}. ∣ β − β ′ ∣ C W e − c H 2 ( β 2 + β ′2 ) .
The amplitude w exp ( − 2 π 2 h w 2 ( β 2 + β ′ 2 ) ) w\exp(-2\pi^2hw^2(\beta^2+\beta'^2)) w exp ( − 2 π 2 h w 2 ( β 2 + β ′2 )) has at most one turning point along the interval. Its total variation and the two endpoint values are bounded by a constant times its maximum. For dyadic denominator ranges d ≍ D d\asymp D d ≍ D , d ′ ≍ E d'\asymp E d ′ ≍ E , where by symmetry we may take D ≤ E D\le E D ≤ E , the β ′ \beta' β ′ are spaced by ≫ E − 2 \gg E^{-2} ≫ E − 2 . Their nonzero distances from a fixed β \beta β are at least ≫ ( D E ) − 1 \gg(DE)^{-1} ≫ ( D E ) − 1 . Therefore
∑ β ′ ≠ β e − c H 2 β ′ 2 ∣ β − β ′ ∣ ≪ E 2 log ( 2 E ) , ∑ β : d ≍ D e − c H 2 β 2 ≪ D 2 / H . \sum_{\beta'\ne\beta}\frac{e^{-cH^2\beta'^2}}{|\beta-\beta'|}\ll E^2\log(2E),\qquad
\sum_{\beta:\,d\asymp D}e^{-cH^2\beta^2}\ll D^2/H. β ′ = β ∑ ∣ β − β ′ ∣ e − c H 2 β ′2 ≪ E 2 log ( 2 E ) , β : d ≍ D ∑ e − c H 2 β 2 ≪ D 2 / H .
In the first sum use spacing for distances at most one and the Gaussian for larger distances. The second follows by summing over nonzero integer numerators. Including the Fourier coefficients, the mixed contribution is ≪ ε p ε W D E / ( p H ) \ll_{\varepsilon} p^{\varepsilon}W\sqrt{DE}/(pH) ≪ ε p ε W D E / ( p H ) . Summing the dyadic ranges gives O ε ( p ε B T / p ) O_{\varepsilon}(p^{\varepsilon}B\sqrt{T}/p) O ε ( p ε B T / p ) , proving (2).
Put T 0 = ⌈ p ( log p ) 8 ⌉ T_0=\lceil\sqrt{p}(\log p)^8\rceil T 0 = ⌈ p ( log p ) 8 ⌉ .
Proof of Theorem 3.1. Short observations. To balance truncation and smoothing, choose a smooth cutoff ψ \psi ψ equal to one on [ 0 , 1 ] [0,1] [ 0 , 1 ] and zero on [ 2 , ∞ ) [2,\infty) [ 2 , ∞ ) , with 0 ≤ ψ ≤ 1 0\leq\psi\leq1 0 ≤ ψ ≤ 1 , and set F B , ψ ( t ) = ∑ n b t ( n ) n − 1 ψ ( n / B ) F_{B,\psi}(t)=\sum_n b_t(n)n^{-1}\psi(n/B) F B , ψ ( t ) = ∑ n b t ( n ) n − 1 ψ ( n / B ) . Write C t ( s ) = ∑ m c t ( m ) m − s C_t(s)=\sum_m c_t(m)m^{-s} C t ( s ) = ∑ m c t ( m ) m − s and let ψ ^ \widehat{\psi} ψ be the Mellin transform. In the integral for F B , ψ F_{B,\psi} F B , ψ , shift the line in L ( 1 + z , χ ) C t ( 1 + z ) B z ψ ^ ( z ) L(1+z,\chi)C_t(1+z)B^z\widehat{\psi}(z) L ( 1 + z , χ ) C t ( 1 + z ) B z ψ ( z ) to ℜ z = − 1 / 2 \Re z=-1/2 ℜ z = − 1/2 . The formula ψ ^ ( z ) = − z − 1 ∫ 1 2 ψ ′ ( x ) x z d x \widehat{\psi}(z)=-z^{-1}\int_1^2\psi'(x)x^z\,dx ψ ( z ) = − z − 1 ∫ 1 2 ψ ′ ( x ) x z d x gives rapid decay and a simple pole at zero of residue one. The residue of the integrand is F ( t ) F(t) F ( t ) . On the new line ∣ C t ( 1 / 2 + i v ) ∣ ≤ ∑ g ∈ ∣ r ∣ g − 1 / 2 ≪ ε p ε \lvert C_t(1/2+iv)\rvert\leq\sum_{g\in\lvert r\rvert}g^{-1/2}\ll_{\varepsilon}p^{\varepsilon} ∣ C t ( 1/2 + i v )∣ ≤ ∑ g ∈ ∣ r ∣ g − 1/2 ≪ ε p ε . The hybrid Weyl bound [34 Theorem 1.1] therefore gives
∣ F ( t ) − F B , ψ ( t ) ∣ ≪ ε p 1 / 6 + ε B − 1 / 2 . \lvert F(t)-F_{B,\psi}(t)\rvert\ll_{\varepsilon}p^{1/6+\varepsilon}B^{-1/2}. ∣ F ( t ) − F B , ψ ( t )∣ ≪ ε p 1/6 + ε B − 1/2 .
By (1) the squared norm of the omitted tail is O ε ( p 1 / 3 + ε / B ) O_{\varepsilon}(p^{1/3+\varepsilon}/B) O ε ( p 1/3 + ε / B ) . The finite Fourier expansion in Lemma 3.2 applies with the cutoff inserted in the h d h_d h d sum. For 2 B < p 2B<p 2 B < p this gives the same coefficient bounds up to denominator 2 B 2B 2 B and a bounded constant term. On the trace lattice the cutoff weight is O ε ( p ε ) O_{\varepsilon}(p^{\varepsilon}) O ε ( p ε ) , since b t = c t ∗ χ b_t=c_t*\chi b t = c t ∗ χ gives ∑ n ≤ 2 B ∣ b t ( n ) ∣ / n ≪ log ( 2 B ) ∑ g ∈ ∣ r ∣ ( g e ) − 1 \sum_{n\leq2B}\lvert b_t(n)\rvert/n\ll\log(2B)\sum_{g\in\lvert r\rvert}(ge)^{-1} ∑ n ≤ 2 B ∣ b t ( n )∣ / n ≪ log ( 2 B ) ∑ g ∈ ∣ r ∣ ( g e ) − 1 . Thus its nonconstant part satisfies (2). The two errors that depend on the cutoff have sizes p 1 / 3 + ε / B p^{1/3+\varepsilon}/B p 1/3 + ε / B and p ε B T / p p^{\varepsilon}B\sqrt{T}/p p ε B T / p . Taking B = p 2 / 3 T − 1 / 4 B=p^{2/3}T^{-1/4} B = p 2/3 T − 1/4 balances them. Together with ∥ P 1 − Q T ∥ Q 2 ≪ T / p \lVert P^1-Q_T\rVert_Q^2\ll T/p ∥ P 1 − Q T ∥ Q 2 ≪ T / p this gives
χ 2 ( P T ∥ Q T ) ≪ ε T p log 3 ( 2 p / T ) + p − 1 / 3 + ε T 1 / 4 . \chi^2(P_T\mathbin\Vert Q_T)\ll_{\varepsilon}\frac{T}{p}\log^3(2p/T)+p^{-1/3+\varepsilon}T^{1/4}. χ 2 ( P T ∥ Q T ) ≪ ε p T log 3 ( 2 p / T ) + p − 1/3 + ε T 1/4 .
The squared norm is minimized by subtracting the measure’s mass times Q T Q_T Q T , so centering at Q T Q_T Q T preserves this bound.
For T < T 0 T<T_0 T < T 0 apply the bound at T 0 T_0 T 0 . Keeping T T T of the T 0 T_0 T 0 flips contracts the squared norm by conditional Cauchy–Schwarz. The bound at T 0 T_0 T 0 is O ε ( p − 5 / 24 + ε ) O_{\varepsilon}(p^{-5/24+\varepsilon}) O ε ( p − 5/24 + ε ) , absorbing powers of log p \log p log p . This covers the shorter lengths in R ε ( T , p ) R_{\varepsilon}(T,p) R ε ( T , p ) , after enlarging the constants for the finitely many primes with T 0 > p T_0>p T 0 > p .
Long observations. Since F 1 = 1 F_1=1 F 1 = 1 , Lemma 3.2 gives Δ p ∑ t F ( t ) 2 ≪ 1 \Delta_p\sum_t F(t)^2\ll1 Δ p ∑ t F ( t ) 2 ≪ 1 . Applying (1) to F F F yields ∑ k P T ( k ) 2 / Q T ( k ) ≪ 1 + T / p \sum_k P_T(k)^2/Q_T(k)\ll1+\sqrt{T/p} ∑ k P T ( k ) 2 / Q T ( k ) ≪ 1 + T / p . Jensen’s inequality gives the logarithmic upper bound for T ≥ p T\geq p T ≥ p . Its matching lower bound is Lemma 2.2, since there are at most 4 p + 1 4\sqrt{p}+1 4 p + 1 biases.
The threshold. The short-length bound tends to zero for T = o ( p ) T=o(p) T = o ( p ) . For T ≥ c p T\geq cp T ≥ c p with fixed c > 0 c>0 c > 0 , detect the lattice by testing the count N T N_T N T with cos ( ξ ( N T / T − 1 / 2 ) ) \cos(\xi(N_T/T-1/2)) cos ( ξ ( N T / T − 1/2 )) , where ξ = 2 π / Δ p \xi=2\pi/\Delta_p ξ = 2 π / Δ p . The binomial characteristic function, expanded at ξ / T \xi/T ξ / T , gives the complex expectation
e i ξ ( f − 1 / 2 ) exp ( − ξ 2 2 T f ( 1 − f ) ) + O c ( p − 1 / 2 ) . e^{i\xi(f-1/2)}\exp\left(-\frac{\xi^2}{2T}f(1-f)\right)+O_c(p^{-1/2}). e i ξ ( f − 1/2 ) exp ( − 2 T ξ 2 f ( 1 − f ) ) + O c ( p − 1/2 ) .
uniformly in f f f . Indeed T ( ξ / T ) 3 = O c ( p − 1 / 2 ) T(\xi/T)^3=O_c(p^{-1/2}) T ( ξ / T ) 3 = O c ( p − 1/2 ) . The first factor is 1 on the trace lattice, so the actual expectation of the cosine is at least e − 8 π 2 / c + o ( 1 ) e^{-8\pi^2/c}+o(1) e − 8 π 2 / c + o ( 1 ) . Against the reference, integrate the oscillation by parts. The product of σ ( f ) \sigma(f) σ ( f ) and the damping factor has variation O ( 1 ) O(1) O ( 1 ) , so the reference expectation is O ( p − 1 / 2 ) O(p^{-1/2}) O ( p − 1/2 ) . Pinsker’s inequality for the bounded test gives a positive lower limit for the KL divergence for every T ≥ c p T\geq cp T ≥ c p .
To apply the bound to restricted families, we allow omission of a fixed finite set J J J of primes. Write F ( J ) F^{(J)} F ( J ) for the series for F F F with terms divisible by any prime in J J J omitted, and F ( ℓ ) F^{(\ell)} F ( ℓ ) for J = { ℓ } J=\{\ell\} J = { ℓ } .
Lemma 3.4 (Restricted trace weights). Let A A A be a trace congruence class modulo a fixed integer M M M , and put u = F ( J ) 1 A u=F^{(J)}1_A u = F ( J ) 1 A . For 1 ≤ T ≤ p 1\le T\le p 1 ≤ T ≤ p ,
∥ P u − γ B Q T ∥ Q 2 ≪ M , J , ε R ε ( T , p ) . (3) \left\|P^u-\gamma_BQ_T\right\|_Q^2\ll_{M,J,\varepsilon}R_\varepsilon(T,p). \tag*{(3)} ∥ P u − γ B Q T ∥ Q 2 ≪ M , J , ε R ε ( T , p ) . (3) Here γ B \gamma_B γ B is the constant Fourier coefficient of the restricted weight after applying the smooth cutoff at B = p 2 / 3 max ( T , T 0 ) − 1 / 4 B=p^{2/3}\max(T,T_0)^{-1/4} B = p 2/3 max ( T , T 0 ) − 1/4 .
Proof. Write U = 1 A F B ( J ) , ψ U=1_AF_B^{(J),\psi} U = 1 A F B ( J ) , ψ for the restricted cutoff weight. In the Mellin integral, restrict C t C_t C t to integers prime to J J J and multiply L ( s , χ ) L(s,\chi) L ( s , χ ) by ∏ ℓ ∈ J ( 1 − χ ( ℓ ) ℓ − s ) \prod_{\ell\in J}(1-\chi(\ell)\ell^{-s}) ∏ ℓ ∈ J ( 1 − χ ( ℓ ) ℓ − s ) . The extra factors are bounded on ℜ s = 1 / 2 \Re s=1/2 ℜ s = 1/2 , so ∥ P u − U ∥ Q 2 ≪ J , ε p 1 / 3 + ε / B \|P^{u-U}\|_Q^2\ll_{J,\varepsilon}p^{1/3+\varepsilon}/B ∥ P u − U ∥ Q 2 ≪ J , ε p 1/3 + ε / B as before. The same bounds for the cutoff on the trace lattice hold because ∑ n ≤ 2 B ∣ b t ( n ) ∣ / n \sum_{n\le2B}|b_t(n)|/n ∑ n ≤ 2 B ∣ b t ( n ) ∣/ n also bounds the restricted sum.
In the Fourier coefficients, the omission restricts the h d h_d h d sum to integers prime to J J J . Multiplication by 1 A 1_A 1 A shifts the frequencies by j / M j/M j / M . If a reduced denominator d d d becomes d ′ d' d ′ , then d ∣ M d ′ d\mid Md' d ∣ M d ′ and d ′ ∣ M d d'\mid Md d ′ ∣ M d , so τ ( d ) d − 3 / 2 ≪ M τ ( d ′ ) d ′ − 3 / 2 \tau(d)d^{-3/2}\ll_M\tau(d')d'^{-3/2} τ ( d ) d − 3/2 ≪ M τ ( d ′ ) d ′ − 3/2 . The constant coefficient γ B \gamma_B γ B is bounded because it only uses denominators dividing M M M . Decompose the centered measure as
P u − γ B Q T = P u − U + P U − γ B + γ B ( P 1 − Q T ) . P^u-\gamma_BQ_T=P^{u-U}+P^{U-\gamma_B}+\gamma_B(P^1-Q_T). P u − γ B Q T = P u − U + P U − γ B + γ B ( P 1 − Q T ) .
Lemma 3.3 applies to the second term with denominator bound 2 M B 2MB 2 M B . The last term has squared norm O M ( T / p ) O_M(T/p) O M ( T / p ) . With the chosen B B B these estimates give (3) for T ≥ T 0 T\ge T_0 T ≥ T 0 , and for T < T 0 T<T_0 T < T 0 we keep the cutoff and contract from T 0 T_0 T 0 . As in the proof of Theorem 3.1, this costs O M , J , ε ( p − 5 / 24 + ε ) O_{M,J,\varepsilon}(p^{-5/24+\varepsilon}) O M , J , ε ( p − 5/24 + ε ) after absorbing logarithms.
Congruence classes and modular families
Smoothing gives prediction bounds under trace and torsion restrictions. The trace formula turns these into Hecke bounds.
Trace congruence classes
Fix M ≥ 1 M\ge1 M ≥ 1 and a residue t 0 t_0 t 0 modulo M M M , and condition the curve on t ≡ t 0 ( m o d M ) t\equiv t_0\pmod M t ≡ t 0 ( mod M ) . For t 0 = p + 1 t_0=p+1 t 0 = p + 1 these are the curves whose group order is divisible by M M M . Write P T M P_T^M P T M for the resulting count law. The biases now lie on a lattice of step M Δ p M\Delta_p M Δ p .
Proposition 4.1. Let p ≥ p 0 ( M ) p\ge p_0(M) p ≥ p 0 ( M ) . The class has probability C / M + o ( 1 ) C/M+o(1) C / M + o ( 1 ) as p → ∞ p\to\infty p → ∞ , where C ≥ ( 2 / 3 ) ω ( M ) C\ge(2/3)^{\omega(M)} C ≥ ( 2/3 ) ω ( M ) depends only on M M M , t 0 t_0 t 0 and p p p modulo M M M , and ω ( M ) \omega(M) ω ( M ) counts the distinct prime divisors of M M M . For 1 ≤ T ≤ p 1\le T\le p 1 ≤ T ≤ p , χ 2 ( P T M ∥ Q T ) ≪ M , ε R ε ( T , p ) \chi^2(P_T^M\|Q_T)\ll_{M,\varepsilon}R_\varepsilon(T,p) χ 2 ( P T M ∥ Q T ) ≪ M , ε R ε ( T , p ) . For T ≥ p T\ge p T ≥ p , D K L ( P T M ∥ Q T ) = 1 2 log ( T / p ) + O M ( 1 ) D_{\mathrm{KL}}(P_T^M\|Q_T)=\frac12\log(T/p)+O_M(1) D KL ( P T M ∥ Q T ) = 2 1 log ( T / p ) + O M ( 1 ) . The logarithmic loss tends to zero if and only if T = o ( p ) T=o(p) T = o ( p ) .
Proof. Let A A A be the set of traces in the class and Z = ∑ t ∈ A Δ p σ ( f t ) F ( t ) Z=\sum_{t\in A}\Delta_p\sigma(f_t)F(t) Z = ∑ t ∈ A Δ p σ ( f t ) F ( t ) its probability, so P T M = P F 1 A / Z P_T^M=P_F1_A/Z P T M = P F 1 A / Z . In (3), the constant γ B \gamma_B γ B is 1 / M 1/M 1/ M times the sum of the modes of F B , ψ F_{B,\psi} F B , ψ that are constant on A A A , evaluated there. Therefore ∣ Z − γ B ∣ 2 ≪ M , ε R ε ( T , p ) |Z-\gamma_B|^2\ll_{M,\varepsilon}R_\varepsilon(T,p) ∣ Z − γ B ∣ 2 ≪ M , ε R ε ( T , p ) . Let C / M C/M C / M be the constant obtained by completing the Fourier coefficients. Lemma 3.2 gives ∣ γ B − C / M ∣ ≪ M B − 1 / 2 |\gamma_B-C/M|\ll_M B^{-1/2} ∣ γ B − C / M ∣ ≪ M B − 1/2 . For d ∣ M d\mid M d ∣ M , the factor of h d ( n ) h_d(n) h d ( n ) at primes outside M M M is that of h 1 ( n ) h_1(n) h 1 ( n ) . Its Euler product at s = 1 s=1 s = 1 is one, by ζ ( 2 s ) / ζ ( s + 1 ) \zeta(2s)/\zeta(s+1) ζ ( 2 s ) / ζ ( s + 1 ) . The Chinese remainder theorem on the remaining moduli gives
C = ∏ ℓ ∣ M ( ( 1 + ℓ − 1 ) − 1 ∑ j ≥ 0 ρ t 0 ( ℓ min ( j , v ℓ ( M ) ) ) ℓ j ) . C=\prod_{\ell\mid M}\left((1+\ell^{-1})^{-1}\sum_{j\ge0}\frac{\rho_{t_0}(\ell^{\min(j,v_\ell(M))})}{\ell^j}\right). C = ℓ ∣ M ∏ ( ( 1 + ℓ − 1 ) − 1 j ≥ 0 ∑ ℓ j ρ t 0 ( ℓ m i n ( j , v ℓ ( M )) ) ) .
Indeed the trace class averages the local root series, whose Liouville factor is ( 1 + ℓ − 1 ) − 1 (1+\ell^{-1})^{-1} ( 1 + ℓ − 1 ) − 1 . For j > v = v ℓ ( M ) j>v=v_{\ell}(M) j > v = v ℓ ( M ) , each unit root modulo ℓ v \ell^v ℓ v has ℓ j − v \ell^{j-v} ℓ j − v lifts x x x , each requiring the single trace x + p / x x+p/x x + p / x mod ℓ j \ell^j ℓ j . The conditional mean is therefore ρ t 0 ( ℓ v ) \rho_{t_0}(\ell^v) ρ t 0 ( ℓ v ) . The j = 0 j=0 j = 0 term gives C ≥ ( 2 / 3 ) ω ( M ) C\ge(2/3)^{\omega(M)} C ≥ ( 2/3 ) ω ( M ) , and the limited moduli give the claimed dependence on p p p .
The mass Z Z Z is independent of T T T , so taking T = ⌈ p 9 / 10 ⌉ T=\lceil p^{9/10}\rceil T = ⌈ p 9/10 ⌉ gives Z = C / M + o ( 1 ) Z=C/M+o(1) Z = C / M + o ( 1 ) . For the chi-square bound, center (3) at Z Q T ZQ_T Z Q T and divide by Z 2 Z^2 Z 2 . Applying (1) to F 1 1 A F_1\mathbb{1}_A F 1 1 A gives ∑ k P T M ( k ) 2 / Q T ( k ) ≪ M 1 + T / p \sum_k P_T^M(k)^2/Q_T(k)\ll_M 1+\sqrt{T/p} ∑ k P T M ( k ) 2 / Q T ( k ) ≪ M 1 + T / p , hence the upper bound for T ≥ p T\ge p T ≥ p by Jensen’s inequality. With at most 4 p / M + 1 4\sqrt{p}/M+1 4 p / M + 1 biases, Lemma 2.2 gives 1 2 log ( T M 2 / p ) − O ( 1 ) \frac{1}{2}\log(TM^2/p)-O(1) 2 1 log ( T M 2 / p ) − O ( 1 ) for p ≥ M 2 p\ge M^2 p ≥ M 2 . Finally, for T ≥ c p T\ge cp T ≥ c p test the count with cos ( ξ ( N T / T − 1 / 2 ) − 2 π t 0 / M ) \cos(\xi(N_T/T-1/2)-2\pi t_0/M) cos ( ξ ( N T / T − 1/2 ) − 2 π t 0 / M ) and ξ = 2 π / ( M Δ p ) \xi=2\pi/(M\Delta_p) ξ = 2 π / ( M Δ p ) . On the class ξ ( f t − 1 / 2 ) = 2 π t / M \xi(f_t-1/2)=2\pi t/M ξ ( f t − 1/2 ) = 2 π t / M is constant modulo 2 π 2\pi 2 π . The cosine test in Theorem 3.1 then gives a positive lower limit for the loss. □
The modular family and Hecke traces
Fix an odd prime ℓ ≠ p \ell\ne p ℓ = p . For ℓ ≥ 5 \ell\ge5 ℓ ≥ 5 , let P T Y 1 P_T^{Y_1} P T Y 1 be the count law obtained by sampling uniformly in Y 1 ( ℓ ) ( F p ) Y_1(\ell)(\mathbb{F}_p) Y 1 ( ℓ ) ( F p ) and using the trace of the corresponding elliptic curve for the bias. Write N ℓ ( p ) = # Y 1 ( ℓ ) ( F p ) N_\ell(p)=\#Y_1(\ell)(\mathbb{F}_p) N ℓ ( p ) = # Y 1 ( ℓ ) ( F p ) . For ℓ = 3 \ell=3 ℓ = 3 give each isomorphism class of pairs ( E , P ) (E,P) ( E , P ) weight 1 / ∣ Aut ( E , P ) ∣ 1/|\operatorname{Aut}(E,P)| 1/∣ Aut ( E , P ) ∣ and let N 3 ( p ) N_3(p) N 3 ( p ) be their total weight. We use P T Y 1 P_T^{Y_1} P T Y 1 only when this family is nonempty.
Proposition 4.2 (Prediction on Y 1 ( ℓ ) Y_1(\ell) Y 1 ( ℓ ) ). For every fixed odd prime ℓ \ell ℓ and all sufficiently large p ≠ ℓ p\ne\ell p = ℓ ,
χ 2 ( P T Y 1 ∥ Q T ) ≪ ℓ , ε R ε ( T , p ) ( 1 ≤ T ≤ p ) . \chi^2(P_T^{Y_1}\mathbin\Vert Q_T)\ll_{\ell,\varepsilon} R_\varepsilon(T,p)\qquad(1\le T\le p). χ 2 ( P T Y 1 ∥ Q T ) ≪ ℓ , ε R ε ( T , p ) ( 1 ≤ T ≤ p ) . As p → ∞ p\to\infty p → ∞ , the loss on Y 1 ( ℓ ) Y_1(\ell) Y 1 ( ℓ ) tends to zero exactly when T = o ( p ) T=o(p) T = o ( p ) , and for T ≥ p T\ge p T ≥ p it is 1 2 log ( T / p ) + O ℓ ( 1 ) \frac{1}{2}\log(T/p)+O_\ell(1) 2 1 log ( T / p ) + O ℓ ( 1 ) .
Proof. Let C ℓ C_\ell C ℓ be the event ℓ ∣ # E ( F p ) \ell\mid\#E(\mathbb{F}_p) ℓ ∣ # E ( F p ) and D ℓ D_\ell D ℓ the event that all ℓ \ell ℓ -torsion is rational. The number of points of order ℓ \ell ℓ is ( ℓ − 1 ) ( 1 C ℓ + ℓ 1 D ℓ ) (\ell-1)(\mathbb{1}_{C_\ell}+\ell\mathbb{1}_{D_\ell}) ( ℓ − 1 ) ( 1 C ℓ + ℓ 1 D ℓ ) . A nontrivial automorphism α \alpha α of E E E fixes only ker ( 1 − α ) \ker(1-\alpha) ker ( 1 − α ) , of order at most four, so for ℓ ≥ 5 \ell\ge5 ℓ ≥ 5 the automorphisms act freely on the points of order ℓ \ell ℓ and every pair ( E , P ) (E,P) ( E , P ) has trivial automorphism group. For ℓ = 3 \ell=3 ℓ = 3 the law P T Y 1 P_T^{Y_1} P T Y 1 is by definition the normalized law with the weights 1 / ∣ Aut ( E , P ) ∣ 1/|\operatorname{Aut}(E,P)| 1/∣ Aut ( E , P ) ∣ . By orbit-stabilizer, the normalized Y 1 ( ℓ ) Y_1(\ell) Y 1 ( ℓ ) trace law is the Weierstrass law reweighted by 1 C ℓ + ℓ 1 D ℓ \mathbb{1}_{C_\ell}+\ell\mathbb{1}_{D_\ell} 1 C ℓ + ℓ 1 D ℓ . Indeed the weight of a Weierstrass class is 1 / ( p ∣ Aut ( E ) ∣ ) 1/(p|\operatorname{Aut}(E)|) 1/ ( p ∣ Aut ( E ) ∣ ) . If Z = Pr ( C ℓ ) + ℓ Pr ( D ℓ ) Z=\Pr(C_\ell)+\ell\Pr(D_\ell) Z = Pr ( C ℓ ) + ℓ Pr ( D ℓ ) , then N ℓ ( p ) = p ( ℓ − 1 ) Z N_\ell(p)=p(\ell-1)Z N ℓ ( p ) = p ( ℓ − 1 ) Z . Proposition 4.1 gives Z ≫ ℓ 1 Z\gg_\ell1 Z ≫ ℓ 1 , and Z ≤ 1 + ℓ Z\le1+\ell Z ≤ 1 + ℓ . When p ≢ 1 ( m o d ℓ ) p\not\equiv1\pmod{\ell} p ≡ 1 ( mod ℓ ) , the event D ℓ D_\ell D ℓ is empty and the congruence-class estimate applies directly.
When all ℓ \ell ℓ -torsion is rational. For p ≡ 1 ( m o d ℓ ) p\equiv1\pmod{\ell} p ≡ 1 ( mod ℓ ) , the group order is divisible by ℓ \ell ℓ on A = { t : t ≡ p + 1 ( m o d ℓ ) } A=\{t:t\equiv p+1\pmod{\ell}\} A = { t : t ≡ p + 1 ( mod ℓ )} . Rationality of all the ℓ \ell ℓ -torsion can occur only on B = { t : t ≡ p + 1 ( m o d ℓ 2 ) } B=\{t:t\equiv p+1\pmod{\ell^2}\} B = { t : t ≡ p + 1 ( mod ℓ 2 )} . The mass of curves with all ℓ \ell ℓ -torsion rational at trace t t t is H ( D t / ℓ 2 ) / ( 2 p ) H(D_t/\ell^2)/(2p) H ( D t / ℓ 2 ) / ( 2 p ) on B B B by [20 Lemma 4] . These traces are ordinary since t ≡ 2 ( m o d ℓ ) t\equiv2\pmod{\ell} t ≡ 2 ( mod ℓ ) and the only supersingular trace over F p \mathbb{F}_p F p is zero. For t ∈ B t\in B t ∈ B compare the root counts of x 2 − t x + p x^2-tx+p x 2 − t x + p with those of y 2 − ( ( t − 2 ) / ℓ ) y + ( p + 1 − t ) / ℓ 2 y^2-((t-2)/\ell)y+(p+1-t)/\ell^2 y 2 − (( t − 2 ) / ℓ ) y + ( p + 1 − t ) / ℓ 2 , whose discriminant is − D t / ℓ 2 -D_t/\ell^2 − D t / ℓ 2 . The substitution x = 1 + ℓ y x=1+\ell y x = 1 + ℓ y identifies the root counts at moduli prime to ℓ \ell ℓ . At ℓ \ell ℓ the old count is one, and at ℓ j + 2 \ell^{j+2} ℓ j + 2 it is ℓ \ell ℓ times the new count at ℓ j \ell^j ℓ j . The Liouville convolution multiplies each local root series at s = 1 s=1 s = 1 by ( 1 + 1 / ℓ ) − 1 (1+1/\ell)^{-1} ( 1 + 1/ ℓ ) − 1 . Hence the old and new local factors satisfy L ℓ = 1 + L ℓ ′ / ℓ L_\ell=1+L'_\ell/\ell L ℓ = 1 + L ℓ ′ / ℓ . Zagier’s identity holds for every nonzero discriminant, so F ′ ( t ) = π H ( D t / ℓ 2 ) / D t / ℓ 2 F'(t)=\pi H(D_t/\ell^2)/\sqrt{D_t/\ell^2} F ′ ( t ) = π H ( D t / ℓ 2 ) / D t / ℓ 2 is the value at s = 1 s=1 s = 1 of the series for the new quadratic. Since b t = c t ∗ χ b_t=c_t*\chi b t = c t ∗ χ with c t c_t c t multiplicative, F = L ℓ F ( ℓ ) F=L_\ell F^{(\ell)} F = L ℓ F ( ℓ ) and F ′ = L ℓ ′ F ( ℓ ) F'=L'_\ell F^{(\ell)} F ′ = L ℓ ′ F ( ℓ ) with the same F ( ℓ ) F^{(\ell)} F ( ℓ ) . Therefore F − F ( ℓ ) = F ′ / ℓ = π H ( D t / ℓ 2 ) / D t F-F^{(\ell)}=F'/\ell=\pi H(D_t/\ell^2)/\sqrt{D_t} F − F ( ℓ ) = F ′ / ℓ = π H ( D t / ℓ 2 ) / D t on B B B . The resulting unnormalized Y 1 Y_1 Y 1 weight is
U ( t ) = F ( t ) 1 A ( t ) + ℓ ( F ( t ) − F ( ℓ ) ( t ) ) 1 B ( t ) . (4) U(t)=F(t)\mathbb{1}_A(t)+\ell\bigl(F(t)-F^{(\ell)}(t)\bigr)\mathbb{1}_B(t). \tag*{(4)} U ( t ) = F ( t ) 1 A ( t ) + ℓ ( F ( t ) − F ( ℓ ) ( t ) ) 1 B ( t ) . (4)
For each of the three terms in (4), (3) bounds the squared norm of the associated count measure after subtracting its mass times Q T Q_T Q T . Combine the three bounds by the triangle inequality and normalize by Z Z Z . The local factors are positive and 0 ≤ F ( ℓ ) ≤ F 0 \le F^{(\ell)} \le F 0 ≤ F ( ℓ ) ≤ F on B B B , so 0 ≤ U ≤ ( 1 + ℓ ) F 0 \le U \le(1+\ell)F 0 ≤ U ≤ ( 1 + ℓ ) F . Equation (1) gives the upper bound for long observations. The finite-support bound and the lattice cosine test give the lower estimates just as for P T P_T P T .
For k ≥ 2 k \ge2 k ≥ 2 set
τ k = p − ( k − 1 ) / 2 tr ( T p ∣ S k ( S L 2 ( Z ) ) ) , τ k ( ℓ ) = p − ( k − 1 ) / 2 tr ( T p ∣ S k ( Γ 1 ( ℓ ) ) ) . \tau_k=p^{-(k-1)/2}\operatorname{tr}(T_p\mid S_k(\mathrm{SL}_2(\mathbb{Z}))),\qquad
\tau_k^{(\ell)}=p^{-(k-1)/2}\operatorname{tr}(T_p\mid S_k(\Gamma_1(\ell))). τ k = p − ( k − 1 ) /2 tr ( T p ∣ S k ( SL 2 ( Z ))) , τ k ( ℓ ) = p − ( k − 1 ) /2 tr ( T p ∣ S k ( Γ 1 ( ℓ ))) .
Corollary 4.3. For 1 ≤ T ≤ p 1 \le T \le p 1 ≤ T ≤ p ,
∑ 4 ≤ k ≤ T + 2 k e v e n κ k − 2 ( T ) ( τ k + p − ( k − 1 ) / 2 ) 2 = p χ 2 ( P T ∥ Q T ) ≪ ε p R ε ( T , p ) . \sum_{\substack{4\le k\le T+2\\ k\ \mathrm{even}}}\kappa_{k-2}(T)\left(\tau_k+p^{-(k-1)/2}\right)^2=p\chi^2(P_T\|Q_T)\ll_\varepsilon pR_\varepsilon(T,p). 4 ≤ k ≤ T + 2 k even ∑ κ k − 2 ( T ) ( τ k + p − ( k − 1 ) /2 ) 2 = p χ 2 ( P T ∥ Q T ) ≪ ε p R ε ( T , p ) . For every p p p with N ℓ ( p ) > 0 N_\ell(p)>0 N ℓ ( p ) > 0 and all T ≥ 1 T\ge1 T ≥ 1 , the prime-level identity is
∑ k = 3 T + 2 κ k − 2 ( T ) ( τ k ( ℓ ) + ( ℓ − 1 ) c k p − ( k − 1 ) / 2 ) 2 = N ℓ ( p ) 2 p χ 2 ( P T Y ∥ Q T ) , \sum_{k=3}^{T+2}\kappa_{k-2}(T)\left(\tau_k^{(\ell)}+(\ell-1)c_kp^{-(k-1)/2}\right)^2=\frac{N_\ell(p)^2}{p}\chi^2(P_T^Y\|Q_T), k = 3 ∑ T + 2 κ k − 2 ( T ) ( τ k ( ℓ ) + ( ℓ − 1 ) c k p − ( k − 1 ) /2 ) 2 = p N ℓ ( p ) 2 χ 2 ( P T Y ∥ Q T ) , where c k = ( 1 + 1 p ≡ 1 ( ℓ ) + ( − 1 ) k 1 p ≡ − 1 ( ℓ ) ) / 2 c_k=(1+1_{p\equiv1\;(\ell)}+(-1)^k1_{p\equiv-1\;(\ell)})/2 c k = ( 1 + 1 p ≡ 1 ( ℓ ) + ( − 1 ) k 1 p ≡ − 1 ( ℓ ) ) /2 . In particular, for 2 ≤ K ≤ p 2\le K\le\sqrt p 2 ≤ K ≤ p ,
∑ 4 ≤ k ≤ K k e v e n ∣ τ k ∣ 2 , ∑ 3 ≤ k ≤ K ∣ τ k ( ℓ ) ∣ 2 ≪ ℓ , ε K 2 log 3 ( 2 p / K 2 ) + p 2 / 3 + ε max ( K , p 1 / 4 ) 1 / 2 . (5) \sum_{\substack{4\le k\le K\\ k\ \mathrm{even}}}|\tau_k|^2,\qquad
\sum_{3\le k\le K}|\tau_k^{(\ell)}|^2
\ll_{\ell,\varepsilon}K^2\log^3(2p/K^2)+p^{2/3+\varepsilon}\max(K,p^{1/4})^{1/2}. \tag*{(5)} 4 ≤ k ≤ K k even ∑ ∣ τ k ∣ 2 , 3 ≤ k ≤ K ∑ ∣ τ k ( ℓ ) ∣ 2 ≪ ℓ , ε K 2 log 3 ( 2 p / K 2 ) + p 2/3 + ε max ( K , p 1/4 ) 1/2 . (5) The constant for the level-one sum is independent of ℓ \ell ℓ .
Proof. Level one. The Birch–Ihara formula [20 Theorems 2 and 3] gives the degree-( k − 2 ) (k-2) ( k − 2 ) Chebyshev moment − p − 1 / 2 ( τ k + p − ( k − 1 ) / 2 ) -p^{-1/2}(\tau_k+p^{-(k-1)/2}) − p − 1/2 ( τ k + p − ( k − 1 ) /2 ) for even k ≥ 4 k\ge4 k ≥ 4 . The odd moments vanish by quadratic twisting, so Proposition 2.1 gives the first identity.
The prime-level trace identity. Let C ℓ C_\ell C ℓ and D ℓ D_\ell D ℓ be the divisibility and full-torsion events in the proof of Proposition 4.2. Use [20 Theorem 3] . In its notation, when p ≡ 1 ( m o d ℓ ) p\equiv1\pmod\ell p ≡ 1 ( mod ℓ ) , multiplying the unnormalized C ℓ C_\ell C ℓ and D ℓ D_\ell D ℓ moments by p p p gives T ℓ , 1 / ( ℓ − 1 ) − ℓ T ℓ , ℓ T_{\ell,1}/(\ell-1)-\ell T_{\ell,\ell} T ℓ , 1 / ( ℓ − 1 ) − ℓ T ℓ , ℓ and T ℓ , ℓ T_{\ell,\ell} T ℓ , ℓ , respectively, with T a , b = T a , b ( p , 1 ) T_{a,b}=T_{a,b}(p,1) T a , b = T a , b ( p , 1 ) . Thus the full-level trace cancels in the moment with weight 1 C ℓ + ℓ 1 D ℓ 1_{C_\ell}+\ell1_{D_\ell} 1 C ℓ + ℓ 1 D ℓ . For p ≢ 1 ( m o d ℓ ) p\not\equiv1\pmod\ell p ≡ 1 ( mod ℓ ) the C ℓ C_\ell C ℓ moment alone gives T ℓ , 1 / ( ℓ − 1 ) T_{\ell,1}/(\ell-1) T ℓ , 1 / ( ℓ − 1 ) . In both cases, for k ≥ 3 k\ge3 k ≥ 3 , the prime-index formula for T ℓ , 1 T_{\ell,1} T ℓ , 1 is − tr ( T p ∣ S k ( Γ 1 ( ℓ ) ) ) − ( ℓ − 1 ) c k -\operatorname{tr}(T_p\mid S_k(\Gamma_1(\ell)))-(\ell-1)c_k − tr ( T p ∣ S k ( Γ 1 ( ℓ ))) − ( ℓ − 1 ) c k . Dividing by the mass and replacing U k − 2 ( t , p ) U_{k-2}(t,p) U k − 2 ( t , p ) by p ( k − 2 ) / 2 U k − 2 ( t / ( 2 p ) ) p^{(k-2)/2}U_{k-2}(t/(2\sqrt p)) p ( k − 2 ) /2 U k − 2 ( t / ( 2 p )) gives the normalized Chebyshev moment − p ( τ k ( ℓ ) + ( ℓ − 1 ) c k p − ( k − 1 ) / 2 ) / N ℓ ( p ) -\sqrt p(\tau_k^{(\ell)}+(\ell-1)c_kp^{-(k-1)/2})/N_\ell(p) − p ( τ k ( ℓ ) + ( ℓ − 1 ) c k p − ( k − 1 ) /2 ) / N ℓ ( p ) . Apply Proposition 2.1.
Bounding the sum up to weight K K K . Take T = ⌊ K 2 ⌋ T=\lfloor K^2\rfloor T = ⌊ K 2 ⌋ in the two trace identities. For the weights retained in (5) , κ k − 2 ( T ) ≫ 1 \kappa_{k-2}(T)\gg1 κ k − 2 ( T ) ≫ 1 . Apply Theorem 3.1 and Proposition 4.2 on the right sides of the identities. Removing the explicit corrections by the triangle inequality costs O ℓ ( 1 ) O_\ell(1) O ℓ ( 1 ) in the squared bound.
Corollary 4.4 (Hecke trace bounds). For K = p a K=p^a K = p a with 4 / 15 < a < 1 / 2 4/15<a<1/2 4/15 < a < 1/2 , (5) saves a power of p p p over the bounds from Deligne, Petrow and the angular large sieve. At K = p 2 / 5 K=p^{2/5} K = p 2/5 it gives O ℓ , ε ( p 13 / 15 + ε ) O_{\ell,\varepsilon}(p^{13/15+\varepsilon}) O ℓ , ε ( p 13/15 + ε ) , compared with O ℓ ( p ) O_\ell(p) O ℓ ( p ) from the large sieve, the strongest of these three benchmarks at that weight.
Proof. The dimension bound and Deligne give O ℓ ( K 3 ) O_\ell(K^3) O ℓ ( K 3 ) . For any fixed small η > 0 \eta>0 η > 0 , Petrow [33 Theorems 1.1–1.2] gives ∣ τ k ∣ , ∣ τ k ( ℓ ) ∣ ≪ ℓ , η p 1 / 44 + η k 61 / 66 |\tau_k|,|\tau_k^{(\ell)}|\ll_{\ell,\eta}p^{1/44+\eta}k^{61/66} ∣ τ k ∣ , ∣ τ k ( ℓ ) ∣ ≪ ℓ , η p 1/44 + η k 61/66 for k ≥ p 3 / 10 + η k\ge p^{3/10+\eta} k ≥ p 3/10 + η . Sum its square and use Deligne below that cutoff to obtain O ℓ , ε ( p 1 / 22 + ε K 94 / 33 ) O_{\ell,\varepsilon}(p^{1/22+\varepsilon}K^{94/33}) O ℓ , ε ( p 1/22 + ε K 94/33 ) in the range of Petrow’s estimate. The trace angles have spacing ≫ p − 1 / 2 \gg p^{-1/2} ≫ p − 1/2 and ∑ t F ( t ) 2 ≪ p \sum_t F(t)^2\ll\sqrt p ∑ t F ( t ) 2 ≪ p , so the angular large sieve gives O ℓ ( p ) O_\ell(p) O ℓ ( p ) for K ≤ p K\le\sqrt p K ≤ p . At prime level, use U U U from (4) , or F 1 A F_{1A} F 1 A if there is no full rational torsion. Comparing exponents in (5) gives the claimed range. The K 2 K^2 K 2 term with its logarithm dominates for K ≥ p 4 / 9 + η K\ge p^{4/9+\eta} K ≥ p 4/9 + η with any fixed η > 0 \eta>0 η > 0 and sufficiently small ε \varepsilon ε . At K ≍ p K\asymp\sqrt p K ≍ p both (5) and the large sieve are O ℓ ( p ) O_\ell(p) O ℓ ( p ) .
A 2-isogeny identifies the Legendre trace law with that of curves equipped with a rational point of order four, so the same smoothing bound applies.
Corollary 4.5 (Legendre family). For p ≥ 5 p \ge5 p ≥ 5 sample λ \lambda λ uniformly in F p ∖ { 0 , 1 } \mathbb{F}_p \setminus\{0,1\} F p ∖ { 0 , 1 } and use the trace of y 2 = x ( x − 1 ) ( x − λ ) y^2=x(x-1)(x-\lambda) y 2 = x ( x − 1 ) ( x − λ ) for the bias. Its count law P T L e g P_T^{\mathrm{Leg}} P T Leg satisfies χ 2 ( P T L e g ∥ Q T ) ≪ ε R ε ( T , p ) \chi^2(P_T^{\mathrm{Leg}}\|Q_T)\ll_\varepsilon R_\varepsilon(T,p) χ 2 ( P T Leg ∥ Q T ) ≪ ε R ε ( T , p ) for 1 ≤ T ≤ p 1\le T\le p 1 ≤ T ≤ p . The logarithmic loss tends to zero exactly when T = o ( p ) T=o(p) T = o ( p ) , and equals 1 2 log ( T / p ) + O ( 1 ) \frac{1}{2}\log(T/p)+O(1) 2 1 log ( T / p ) + O ( 1 ) for T ≥ p T\ge p T ≥ p .
Proof. The universal Y 1 ( 4 ) Y_1(4) Y 1 ( 4 ) curve y 2 = ( x + s ) ( x 2 + x + s ) y^2=(x+s)(x^2+x+s) y 2 = ( x + s ) ( x 2 + x + s ) has a point ( 0 , s ) (0,s) ( 0 , s ) of order four. Quotienting by the subgroup generated by its double gives the Legendre curve with λ = 1 − 4 s \lambda=1-4s λ = 1 − 4 s [22 Section 2] . The isogeny preserves the trace, and the parameters are in bijection. By the Tate normal form, s ↦ ( E s , ( 0 , s ) ) s\mapsto(E_s,(0,s)) s ↦ ( E s , ( 0 , s )) is a bijection onto the F p \mathbb{F}_p F p -isomorphism classes of pairs of a curve and a point of order four, and automorphisms act freely on such points. Thus the Legendre law is obtained by weighting each Weierstrass curve by its number of rational points of order four and dividing by the mean ( p − 2 ) / p (p-2)/p ( p − 2 ) / p . Writing n = # E ( F p ) n=\#E(\mathbb{F}_p) n = # E ( F p ) and A j = { E [ j ] ⊂ E ( F p ) } A_j=\{E[j]\subset E(\mathbb{F}_p)\} A j = { E [ j ] ⊂ E ( F p )} , this number is
2 ( 1 4 ∣ n − 1 A 2 ) + 4 1 A 2 1 8 ∣ n + 8 1 A 4 . (6) 2(1_{4\mid n}-1_{A_2})+4\,1_{A_2}1_{8\mid n}+8\,1_{A_4}. \tag*{(6)} 2 ( 1 4 ∣ n − 1 A 2 ) + 4 1 A 2 1 8 ∣ n + 8 1 A 4 . (6)
When the 2-torsion is rational, the 2-part of the group is Z / 2 a × Z / 2 b \mathbb{Z}/2^a\times\mathbb{Z}/2^b Z / 2 a × Z / 2 b with a ≥ b ≥ 1 a\ge b\ge1 a ≥ b ≥ 1 , and 8 ∣ n 8\mid n 8 ∣ n exactly when a ≥ 2 a\ge2 a ≥ 2 . Indeed, the rational 4-torsion is either cyclic, ( Z / 2 ) 2 (\mathbb{Z}/2)^2 ( Z /2 ) 2 , Z / 4 × Z / 2 \mathbb{Z}/4\times\mathbb{Z}/2 Z /4 × Z /2 , or ( Z / 4 ) 2 (\mathbb{Z}/4)^2 ( Z /4 ) 2 . At trace t t t , the mass of A 2 A_2 A 2 is H ( D t / 4 ) / ( 2 p ) H(D_t/4)/(2p) H ( D t /4 ) / ( 2 p ) when 4 ∣ p + 1 − t 4\mid p+1-t 4 ∣ p + 1 − t , and that of A 4 A_4 A 4 is H ( D t / 16 ) / ( 2 p ) H(D_t/16)/(2p) H ( D t /16 ) / ( 2 p ) when p ≡ 1 ( m o d 4 ) p\equiv1\pmod4 p ≡ 1 ( mod 4 ) and 16 ∣ p + 1 − t 16\mid p+1-t 16 ∣ p + 1 − t , with zero otherwise [20 Lemmas 3–4] . This includes t = 0 t=0 t = 0 for A 2 A_2 A 2 . It occurs only for p ≡ 3 ( m o d 4 ) p\equiv3\pmod4 p ≡ 3 ( mod 4 ) , when H ( p ) = h w ( − p ) H(p)=h_w(-p) H ( p ) = h w ( − p ) in their notation. On the first progression the substitution x = 1 + 2 y x=1+2y x = 1 + 2 y used in (4) gives the local relation L 0 = 1 + L 1 / 2 L_0=1+L_1/2 L 0 = 1 + L 1 /2 . On the second, the new quadratic is y 2 y^2 y 2 modulo 2 and one can divide again with y = 2 z y=2z y = 2 z , giving L 1 = 1 + L 2 / 2 L_1=1+L_2/2 L 1 = 1 + L 2 /2 . Hence the two masses on their respective progressions are Δ p σ ( f t ) ( F − F ( 2 ) ) ( t ) \Delta_p\sigma(f_t)(F-F^{(2)})(t) Δ p σ ( f t ) ( F − F ( 2 ) ) ( t ) and Δ p σ ( f t ) ( F − 3 2 F ( 2 ) ) ( t ) \Delta_p\sigma(f_t)(F-\frac{3}{2}F^{(2)})(t) Δ p σ ( f t ) ( F − 2 3 F ( 2 ) ) ( t ) . The bounds for the restricted weights F F F and F ( 2 ) F^{(2)} F ( 2 ) follow from Lemma 3.4, with J = ∅ J=\varnothing J = ∅ or J = { 2 } J=\{2\} J = { 2 } . Subtract the mass times Q T Q_T Q T from each of these measures and combine their bounds to obtain the short-length estimate. The order-four weight is at most twelve, so (1) gives the upper bound for long observations. The finite-support bound and the lattice test give the lower estimates.
The critical profile
We derive the limiting likelihood ratio at T / p → c > 0 T/p\to c>0 T / p → c > 0 and use it to compute both divergences. We then let c ↓ 0 c\downarrow0 c ↓ 0 and extend the fixed-c c c formulas to the restricted families.
The profile at the trace-lattice scale
At T ∼ c p T\sim cp T ∼ c p the sampling error is on the scale of the bias spacing, so neighboring traces contribute to the same count. Take a subsequence of primes on which p m o d d p\bmod d p mod d eventually stabilizes for each fixed d d d , with unit residue system A A A . For a reduced fraction a / d a/d a / d ( m o d 1 ) (\bmod\ 1) ( mod 1 ) put
γ A ( a / d ) = S ( a , a A ; d ) d 2 ∏ ℓ ∣ d ( 1 − ℓ − 2 ) − 1 , γ A ( 0 ) = 1 , \gamma_A(a/d)=\frac{S(a,aA;d)}{d^2}\prod_{\ell\mid d}(1-\ell^{-2})^{-1},\qquad\gamma_A(0)=1, γ A ( a / d ) = d 2 S ( a , a A ; d ) ℓ ∣ d ∏ ( 1 − ℓ − 2 ) − 1 , γ A ( 0 ) = 1 ,
where a A aA a A uses the residue of A A A modulo d d d . Extend γ A \gamma_A γ A to Q \mathbb{Q} Q by periodicity, and let μ A \mu_A μ A put mass ∣ γ A ( β ) ∣ 2 |\gamma_A(\beta)|^2 ∣ γ A ( β ) ∣ 2 at ∣ β ∣ |\beta| ∣ β ∣ for each nonzero rational β \beta β . Let R R R record the residues of the integer trace nearest the observed proportion of ones on the bias scale. In the limit, R R R is uniform on Z ^ = ∏ ℓ Z ℓ \widehat{\mathbb{Z}} = \prod_{\ell} \mathbb{Z}_{\ell} Z = ∏ ℓ Z ℓ . For each prime ℓ \ell ℓ let ρ A , R ( ℓ j ) \rho_{A,R}(\ell^j) ρ A , R ( ℓ j ) count the roots of x 2 − R x + A x^2-Rx+A x 2 − R x + A modulo ℓ j \ell^j ℓ j , with ρ A , R ( 1 ) = 1 \rho_{A,R}(1)=1 ρ A , R ( 1 ) = 1 . Set
L ℓ , A ( R ) = 1 1 + ℓ − 1 ∑ j ≥ 0 ρ A , R ( ℓ j ) ℓ j , F A ( R ) = ∏ ℓ L ℓ , A ( R ) . L_{\ell,A}(R)=\frac{1}{1+\ell^{-1}}\sum_{j\geq0}\frac{\rho_{A,R}(\ell^j)}{\ell^j}, \qquad F_A(R)=\prod_{\ell}L_{\ell,A}(R). L ℓ , A ( R ) = 1 + ℓ − 1 1 j ≥ 0 ∑ ℓ j ρ A , R ( ℓ j ) , F A ( R ) = ℓ ∏ L ℓ , A ( R ) .
The product converges in L 2 L^2 L 2 . Take Y Y Y with density σ \sigma σ and U U U uniform on [ − 1 / 2 , 1 / 2 ) [-1/2,1/2) [ − 1/2 , 1/2 ) , independently of each other and $R. The binomial variance of the proportion of ones in squared lattice steps tends to v = 16 Y ( 1 − Y ) / c v=16Y(1-Y)/c v = 16 Y ( 1 − Y ) / c . Let ϕ v \phi_v ϕ v be the centered normal density of variance v v v and set
B A , c ( Y , R , U ) = ∑ j ∈ Z F A ( R + j ) ϕ v ( U − j ) , v = 16 Y ( 1 − Y ) / c . B_{A,c}(Y,R,U)=\sum_{j\in\mathbb{Z}}F_A(R+j)\phi_v(U-j), \qquad v=16Y(1-Y)/c. B A , c ( Y , R , U ) = j ∈ Z ∑ F A ( R + j ) ϕ v ( U − j ) , v = 16 Y ( 1 − Y ) / c .
Theorem 5.1. Suppose T / p → c > 0 T/p\to c>0 T / p → c > 0 along a sequence of primes whose residues stabilize modulo every fixed integer, and let A A A be the resulting system of unit residues. Then the expected excess log loss satisfies
D K L ( P T ∥ Q T ) ⟶ K A ( c ) = E [ B A , c log B A , c ] . (7) D_{\mathrm{KL}}(P_T\|Q_T)\longrightarrow K_A(c)=\mathbb{E}\left[B_{A,c}\log B_{A,c}\right]. \tag*{(7)} D KL ( P T ∥ Q T ) ⟶ K A ( c ) = E [ B A , c log B A , c ] . (7) The corresponding chi-square limit is
χ 2 ( P T ∥ Q T ) ⟶ C A ( c ) = ∫ 0 1 σ ( y ) ∑ β ∈ Q β ≠ 0 ∣ γ A ( β ) ∣ 2 e − 64 π 2 y ( 1 − y ) β 2 / c d y . (8) \chi^2(P_T\|Q_T)\longrightarrow C_A(c)=\int_0^1 \sigma(y)\sum_{\substack{\beta\in\mathbb{Q}\\\beta\ne0}}|\gamma_A(\beta)|^2e^{-64\pi^2y(1-y)\beta^2/c}\,dy. \tag*{(8)} χ 2 ( P T ∥ Q T ) ⟶ C A ( c ) = ∫ 0 1 σ ( y ) β ∈ Q β = 0 ∑ ∣ γ A ( β ) ∣ 2 e − 64 π 2 y ( 1 − y ) β 2 / c d y . (8) Both limits are finite and positive. As c → ∞ c\to\infty c → ∞ the limiting logarithmic loss satisfies
K A ( c ) = 1 2 log c − 1 − 1 2 log ( 2 π ) + E [ F A log F A ] + o ( 1 ) . (9) K_A(c)=\frac{1}{2}\log c-1-\frac{1}{2}\log(2\pi)+\mathbb{E}[F_A\log F_A]+o(1). \tag*{(9)} K A ( c ) = 2 1 log c − 1 − 2 1 log ( 2 π ) + E [ F A log F A ] + o ( 1 ) . (9) If A ≡ 1 ( m o d 3 ) A\equiv1\pmod3 A ≡ 1 ( mod 3 ) and A ′ ≡ 2 ( m o d 3 ) A'\equiv2\pmod3 A ′ ≡ 2 ( mod 3 ) , then C A C_A C A and C A ′ C_{A'} C A ′ are distinct. If their components away from $3$ coincide, then K A ′ ( c ) > K A ( c ) K_{A'}(c)>K_A(c) K A ′ ( c ) > K A ( c ) for all sufficiently large $c.
Gekeler [13 ] derived the local trace weights, also described in [9 Theorem 1.1] . Ma [29, Theorem 1.3, Corollary 1.4 and Lemma 7.1] gives subsequence laws for the isogeny-class size at a uniformly sampled trace. Its local factors depend on ( p / ℓ ) (p/\ell) ( p / ℓ ) at odd ℓ \ell ℓ and on p m o d 8 p\bmod8 p mod 8 at 2 2 2 . Here binomial sampling combines the joint weights of neighboring traces. Related smoothing appears in channel capacity for equally spaced priors [1 Sections 3.1 and 4] and in Lee’s preprint for one curve across primes under symmetric-power GRH [27 Theorem 1.4] .
Proof. The limiting weights. Each local series converges uniformly by the quadratic root bound ρ A , R ( ℓ j ) ≪ ℓ j / 2 \rho_{A,R}(\ell^j)\ll\ell^{j/2} ρ A , R ( ℓ j ) ≪ ℓ j /2 . For j ≥ 1 j\geq1 j ≥ 1 the mean of ρ A , R ( ℓ j ) \rho_{A,R}(\ell^j) ρ A , R ( ℓ j ) is φ ( ℓ j ) / ℓ j \varphi(\ell^j)/\ell^j φ ( ℓ j ) / ℓ j : each unit x x x determines the single trace x + A / x x+A/x x + A / x . Thus E L ℓ , A = 1 \mathbb{E}L_{\ell,A}=1 E L ℓ , A = 1 . For a primitive frequency a / ℓ k a/\ell^k a / ℓ k , the Fourier coefficient of ρ A , R ( ℓ j ) \rho_{A,R}(\ell^j) ρ A , R ( ℓ j ) is zero when j < k j<k j < k and is ℓ − k S ( a , a A ; ℓ k ) \ell^{-k}S(a,aA;\ell^k) ℓ − k S ( a , a A ; ℓ k ) when j ≥ k j\geq k j ≥ k , by the same trace parametrization. Summing in j j j gives the coefficient ℓ − 2 k ( 1 − ℓ − 2 ) − 1 S ( a , a A ; ℓ k ) \ell^{-2k}(1-\ell^{-2})^{-1}S(a,aA;\ell^k) ℓ − 2 k ( 1 − ℓ − 2 ) − 1 S ( a , a A ; ℓ k ) . Weil’s estimate and Parseval give Var ( L ℓ , A ) ≪ ∑ k ≥ 1 ( k + 1 ) 2 ℓ − 2 k ≪ ℓ − 2 \operatorname{Var}(L_{\ell,A})\ll\sum_{k\geq1}(k+1)^2\ell^{-2k}\ll\ell^{-2} Var ( L ℓ , A ) ≪ ∑ k ≥ 1 ( k + 1 ) 2 ℓ − 2 k ≪ ℓ − 2 . The local weights are independent and nonnegative. Their finite products are Cauchy in L 2 L^2 L 2 because their second moments are products of 1 + Var ( L ℓ , A ) 1+\operatorname{Var}(L_{\ell,A}) 1 + Var ( L ℓ , A ) . For coprime moduli d 1 , d 2 d_1,d_2 d 1 , d 2 one has a / ( d 1 d 2 ) ≡ a d 2 ‾ / d 1 + a d 1 ‾ / d 2 ( m o d 1 ) a/(d_1d_2)\equiv a\overline{d_2}/d_1+a\overline{d_1}/d_2\pmod1 a / ( d 1 d 2 ) ≡ a d 2 / d 1 + a d 1 / d 2 ( mod 1 ) and the twisted multiplicativity S ( m , n ; d 1 d 2 ) = S ( m d 2 ‾ , n d 2 ‾ ; d 1 ) S ( m d 1 ‾ , n d 1 ‾ ; d 2 ) S(m,n;d_1d_2)=S(m\overline{d_2},n\overline{d_2};d_1)S(m\overline{d_1},n\overline{d_1};d_2) S ( m , n ; d 1 d 2 ) = S ( m d 2 , n d 2 ; d 1 ) S ( m d 1 , n d 1 ; d 2 ) . Hence the local coefficients multiply, and the Fourier coefficients of F A F_A F A are γ A \gamma_A γ A .
The likelihood ratio. For fixed N N N the truncated weight F N F_N F N has period M = lcm ( 1 , … , N ) M=\operatorname{lcm}(1,\ldots,N) M = lcm ( 1 , … , N ) and eventually depends on A A A alone. By Lemma 3.2 and (1) ,
∥ P F − P F N ∥ Q 2 ≪ c , ε log 4 ( 2 N ) N + p − 1 / 15 + ε . \left\|P^F-P^{F_N}\right\|_{Q}^{2}\ll_{c,\varepsilon}\frac{\log^{4}(2N)}{N}+p^{-1/15+\varepsilon}. P F − P F N Q 2 ≪ c , ε N log 4 ( 2 N ) + p − 1/15 + ε .
It therefore suffices to compute the limit for F N F_N F N , with N N N fixed, and then let N N N tend to infinity. For y = k / T y=k/T y = k / T in a fixed compact subinterval of ( 0 , 1 ) (0,1) ( 0 , 1 ) , set u = 4 p ( y − 1 2 ) u=4\sqrt{p}(y-\frac{1}{2}) u = 4 p ( y − 2 1 ) and v = 16 y ( 1 − y ) / c v=16y(1-y)/c v = 16 y ( 1 − y ) / c . Uniformly in this range,
P F N ( k ) Q T ( k ) = B N ( y , u ) + o ( 1 ) , B N ( y , u ) = ∑ m ∈ Z F N ( m ) ϕ v ( u − m ) . \frac{P^{F_N}(k)}{Q_T(k)}=B_N(y,u)+o(1),\qquad B_N(y,u)=\sum_{m\in\mathbb{Z}}F_N(m)\phi_v(u-m). Q T ( k ) P F N ( k ) = B N ( y , u ) + o ( 1 ) , B N ( y , u ) = m ∈ Z ∑ F N ( m ) ϕ v ( u − m ) .
Indeed, the exact ratio is Δ p ∑ m F N ( m ) g T , k ( f m ) \Delta_p\sum_m F_N(m)g_{T,k}(f_m) Δ p ∑ m F N ( m ) g T , k ( f m ) over the trace grid, where g T , k g_{T,k} g T , k is the beta posterior density. Stirling’s formula and a Taylor expansion at y y y give the Gaussian approximation to Δ p g T , k ( y + Δ p s ) \Delta_p g_{T,k}(y+\Delta_p s) Δ p g T , k ( y + Δ p s ) for bounded s s s , with variance 16 ( p / T ) y ( 1 − y ) 16(p/T)y(1-y) 16 ( p / T ) y ( 1 − y ) . For all s s s in the grid, the ratio g T , k ( y + Δ p s ) / g T , k ( y ) g_{T,k}(y+\Delta_p s)/g_{T,k}(y) g T , k ( y + Δ p s ) / g T , k ( y ) is bounded by a constant times exp ( − 2 T Δ p 2 s 2 ) \exp(-2T\Delta_p^2s^2) exp ( − 2 T Δ p 2 s 2 ) . This follows by writing its exponential factor as exp ( − T D ( Ber ( y ) ∥ Ber ( y + Δ p s ) ) ) \exp(-TD(\operatorname{Ber}(y)\mathbin{\|}\operatorname{Ber}(y+\Delta_p s))) exp ( − T D ( Ber ( y ) ∥ Ber ( y + Δ p s ))) and applying Pinsker’s inequality. The bound allows summation over m m m and replacement of 16 ( p / T ) 16(p/T) 16 ( p / T ) by 16 / c 16/c 16/ c .
On η ≤ y ≤ 1 − η \eta\leq y\leq1-\eta η ≤ y ≤ 1 − η , the reference count mass is Q T ( k ) = ( 1 + o ( 1 ) ) σ ( y ) / T Q_T(k)=(1+o(1))\sigma(y)/T Q T ( k ) = ( 1 + o ( 1 )) σ ( y ) / T . The Riemann sum for σ ( y ) ∣ B N ( y , u ) − 1 ∣ 2 \sigma(y)|B_N(y,u)-1|^2 σ ( y ) ∣ B N ( y , u ) − 1 ∣ 2 has error O N , c , η ( p / T ) O_{N,c,\eta}(\sqrt{p}/T) O N , c , η ( p / T ) , as d u / d y = 4 p du/dy=4\sqrt{p} d u / d y = 4 p and the summand is smooth and periodic in u u u . Partitioning the integral into periods of length M / ( 4 p ) M/(4\sqrt{p}) M / ( 4 p ) in y y y and freezing y y y within each period gives the uniform average over 0 ≤ u < M 0\leq u<M 0 ≤ u < M . The same averaging with bounded Lipschitz tests gives convergence in distribution of P F N ( K ) / Q T ( K ) P^{F_N}(K)/Q_T(K) P F N ( K ) / Q T ( K ) for K ∼ Q T K\sim Q_T K ∼ Q T . The limiting variable is B N ( Y , r N + U ) B_N(Y,r_N+U) B N ( Y , r N + U ) , where r N r_N r N is any representative of R R R modulo M M M . Periodicity makes the choice of representative immaterial. The omitted probability near the endpoints tends to zero as η → 0 \eta\to0 η → 0 . For convergence of the squared norm, use ∣ P F N ( k ) / Q T ( k ) ∣ ≪ N 1 + Δ p m T , k |P^{F_N}(k)/Q_T(k)|\ll_N1+\Delta_p m_{T,k} ∣ P F N ( k ) / Q T ( k ) ∣ ≪ N 1 + Δ p m T , k . The bounds for Q T ( k ) Q_T(k) Q T ( k ) and m T , k m_{T,k} m T , k give O N , c ( η + T − 1 / 2 ) O_{N,c}(\sqrt{\eta}+T^{-1/2}) O N , c ( η + T − 1/2 ) for the omitted part of the squared norm. The continuous end integral is O N , c ( η ) O_{N,c}(\sqrt{\eta}) O N , c ( η ) , since ∣ B N ( y , u ) ∣ ≪ N 1 + v − 1 / 2 |B_N(y,u)|\ll_N1+v^{-1/2} ∣ B N ( y , u ) ∣ ≪ N 1 + v − 1/2 . We obtain
lim p → ∞ ∥ P F N − Q T ∥ Q 2 = ∫ 0 1 σ ( y ) 1 M ∫ 0 M ∣ B N ( y , u ) − 1 ∣ 2 d u d y . \lim_{p\to\infty}\left\|P^{F_N}-Q_T\right\|_{Q}^{2}
=\int_0^1\sigma(y)\frac{1}{M}\int_0^M|B_N(y,u)-1|^2\,du\,dy. p → ∞ lim P F N − Q T Q 2 = ∫ 0 1 σ ( y ) M 1 ∫ 0 M ∣ B N ( y , u ) − 1 ∣ 2 d u d y .
Write γ N , A \gamma_{N,A} γ N , A for the Fourier coefficients of F N F_N F N on its integer period, extended periodically and set to zero off M − 1 Z M^{-1}\mathbb{Z} M − 1 Z . The Dirichlet series for h d h_d h d at s = 1 s=1 s = 1 gives γ N , A ( a / d ) → γ A ( a / d ) \gamma_{N,A}(a/d)\to\gamma_A(a/d) γ N , A ( a / d ) → γ A ( a / d ) . The bound ∣ γ N , A ( a / d ) ∣ ≪ τ ( d ) d − 3 / 2 |\gamma_{N,A}(a/d)|\ll\tau(d)d^{-3/2} ∣ γ N , A ( a / d ) ∣ ≪ τ ( d ) d − 3/2 and ∑ d φ ( d ) τ ( d ) 2 d − 3 < ∞ \sum_d\varphi(d)\tau(d)^2d^{-3}<\infty ∑ d φ ( d ) τ ( d ) 2 d − 3 < ∞ give F N → F A F_N\to F_A F N → F A in L 2 ( Z ^ ) L^2(\widehat{\mathbb{Z}}) L 2 ( Z ) . Put Z v ( u ) = ∑ j ϕ v ( u − j ) Z_v(u)=\sum_j\phi_v(u-j) Z v ( u ) = ∑ j ϕ v ( u − j ) . By Cauchy–Schwarz and Haar invariance, smoothing any weight W W W has squared L 2 L^2 L 2 norm in ( R , U ) (R,U) ( R , U ) at most ∥ W ∥ 2 2 ∫ − 1 / 2 1 / 2 Z v ( u ) 2 d u \|W\|_2^2\int_{-1/2}^{1/2}Z_v(u)^2\,du ∥ W ∥ 2 2 ∫ − 1/2 1/2 Z v ( u ) 2 d u . The latter integral is O ( 1 + v − 1 / 2 ) O(1+v^{-1/2}) O ( 1 + v − 1/2 ) , which is integrable in Y Y Y . Writing m = r N + j m=r_N+j m = r N + j in B N ( Y , r N + U ) B_N(Y,r_N+U) B N ( Y , r N + U ) gives convergence in L 2 L^2 L 2 to B A , c B_{A,c} B A , c . The initial truncation estimate then gives convergence in distribution of P T ( K ) / Q T ( K ) P_T(K)/Q_T(K) P T ( K ) / Q T ( K ) to B A , c B_{A,c} B A , c . These nonnegative variables have uniformly bounded second moment by (1) . Since x ↦ log x = O ( x 2 ) x\mapsto\log x=O(x^2) x ↦ log x = O ( x 2 ) at infinity and extends continuously at zero, expectations converge, proving (7) . The limit is finite since E B A , c 2 ≤ ∥ F A ∥ 2 2 E ∫ Z v 2 < ∞ \mathbb{E}B_{A,c}^2\leq\|F_A\|_2^2\mathbb{E}\int Z_v^2<\infty E B A , c 2 ≤ ∥ F A ∥ 2 2 E ∫ Z v 2 < ∞ . The posterior mean is ( k + 3 / 2 ) / ( T + 3 ) (k+3/2)/(T+3) ( k + 3/2 ) / ( T + 3 ) and differs from k / T k/T k / T by O ( p − 1 / 2 ) O(p^{-1/2}) O ( p − 1/2 ) lattice steps, which does not affect the limit.
The chi-square limit. Poisson summation gives the coefficient of e ( β u ) e(\beta u) e ( β u ) in B N B_N B N as γ N , A ( β ) e − 2 π 2 v β 2 \gamma_{N,A}(\beta)e^{-2\pi^2v\beta^2} γ N , A ( β ) e − 2 π 2 v β 2 . Thus Parseval gives the sum in (8) , with γ N , A \gamma_{N,A} γ N , A in place of γ A \gamma_A γ A and the additional zero-mode term ∣ γ N , A ( 0 ) − 1 ∣ 2 |\gamma_{N,A}(0)-1|^2 ∣ γ N , A ( 0 ) − 1 ∣ 2 . In particular the nonzero integer frequencies occur. The Gaussian sum over integer translates of each reduced frequency is O ( 1 + v − 1 / 2 ) O(1+v^{-1/2}) O ( 1 + v − 1/2 ) , so the same summable coefficient bound permits passage to the limit. The initial truncation bound proves (8) . Integer frequencies ensure its positivity.
The logarithmic loss for large c c c . For fixed y y y write B A , c = Z v ( U ) F ‾ v ( R , U ) B_{A,c}=Z_v(U)\overline{F}_v(R,U) B A , c = Z v ( U ) F v ( R , U ) , so F ‾ v \overline{F}_v F v is the average of F A ( R + j ) F_A(R+j) F A ( R + j ) with weights φ v ( U − j ) / Z v ( U ) \varphi_v(U-j)/Z_v(U) φ v ( U − j ) / Z v ( U ) . As E R F ‾ v = 1 \mathbb{E}_R\overline{F}_v=1 E R F v = 1 , the entropy splits into ∫ Z v log Z v \int Z_v\log Z_v ∫ Z v log Z v and ∫ Z v E R [ F ‾ v log F ‾ v ] \int Z_v\mathbb{E}_R[\overline{F}_v\log\overline{F}_v] ∫ Z v E R [ F v log F v ] . The first is positive since the wrapped Gaussian has mean one and a nonzero first Fourier coefficient. The second is nonnegative by Jensen. In particular K A ( c ) > 0 K_A(c)>0 K A ( c ) > 0 for every c > 0 c>0 c > 0 .
If G v G_v G v is a centered normal variable of variance v v v , then its reduction to [ − 1 / 2 , 1 / 2 ) [-1/2,1/2) [ − 1/2 , 1/2 ) has density Z v Z_v Z v and its nearest integer has entropy o ( 1 ) o(1) o ( 1 ) as v → 0 v\to0 v → 0 , by Gaussian tails. The entropy chain rule therefore gives ∫ Z v log Z v = − 1 2 log ( 2 π e v ) + o ( 1 ) \int Z_v\log Z_v=-\frac{1}{2}\log(2\pi e v)+o(1) ∫ Z v log Z v = − 2 1 log ( 2 π e v ) + o ( 1 ) . By Jensen and translation invariance,
∫ − 1 / 2 1 / 2 Z v ( u ) E R ∣ F ‾ v ( R , u ) − F A ( R ) ∣ 2 d u ≤ 4 ∥ F A ∥ 2 2 Pr ( ∣ G v ∣ ≥ 1 / 2 ) . \int_{-1/2}^{1/2} Z_v(u)\mathbb{E}_R\lvert\overline{F}_v(R,u)-F_A(R)\rvert^2\,du\le4\lVert F_A\rVert_2^2\Pr(\lvert G_v\rvert\ge1/2). ∫ − 1/2 1/2 Z v ( u ) E R ∣ F v ( R , u ) − F A ( R ) ∣ 2 d u ≤ 4 ∥ F A ∥ 2 2 Pr (∣ G v ∣ ≥ 1/2 ) .
By Jensen, E R F ‾ v 2 ≤ ∥ F A ∥ 2 2 \mathbb{E}_R\overline{F}_v^2\le\lVert F_A\rVert_2^2 E R F v 2 ≤ ∥ F A ∥ 2 2 for every u u u , so the variables F ‾ v \overline{F}_v F v , log F ‾ v \log\overline{F}_v log F v are uniformly integrable. With the L 2 L^2 L 2 bound just displayed, the second term tends to E [ F A log F A ] \mathbb{E}[F_A\log F_A] E [ F A log F A ] . Both errors vanish uniformly for v ≤ 4 / c v\le4/c v ≤ 4/ c as c → ∞ c\to\infty c → ∞ . The beta law gives E log ( Y ( 1 − Y ) ) = 1 − 4 log 2 \mathbb{E}\log(Y(1-Y))=1-4\log2 E log ( Y ( 1 − Y )) = 1 − 4 log 2 . Averaging proves (9).
Dependence on the prime residues. For 1 / 2 < s < 1 1/2<s<1 1/2 < s < 1 , applying the Mellin transform in x = 1 / c x=1/c x = 1/ c gives
∫ 0 ∞ c A ( 1 / x ) x s − 1 d x = Γ ( s ) ( 64 π 2 ) s ( ∫ 0 1 σ ( y ) ( y ( 1 − y ) ) s d y ) ∫ 0 ∞ r − 2 s d μ A ( r ) . \int_0^\infty c_A(1/x)x^{s-1}\,dx=\frac{\Gamma(s)}{(64\pi^2)^s}\left(\int_0^1\frac{\sigma(y)}{(y(1-y))^s}\,dy\right)\int_0^\infty r^{-2s}\,d\mu_A(r). ∫ 0 ∞ c A ( 1/ x ) x s − 1 d x = ( 64 π 2 ) s Γ ( s ) ( ∫ 0 1 ( y ( 1 − y ) ) s σ ( y ) d y ) ∫ 0 ∞ r − 2 s d μ A ( r ) .
The spectral integral converges: near zero it is bounded by a constant times ∑ d τ ( d ) 2 d 2 s − 3 \sum_d\tau(d)^2d^{2s-3} ∑ d τ ( d ) 2 d 2 s − 3 , and at infinity the integer translates are summable. Equality of two profiles would give equality of the last integrals on the whole strip, by analytic continuation. On a vertical line s = s 0 + i t s=s_0+it s = s 0 + i t , these are Fourier transforms at frequency 2 t 2t 2 t of the finite measures r − 2 s 0 d μ A ( r ) r^{-2s_0}\,d\mu_A(r) r − 2 s 0 d μ A ( r ) in the variable log r \log r log r . Uniqueness would force equality of the spectral measures. But S ( 1 , A ; 3 ) S(1,A;3) S ( 1 , A ; 3 ) is − 1 -1 − 1 for A ≡ 1 A\equiv1 A ≡ 1 and 2 2 2 for A ≡ 2 A\equiv2 A ≡ 2 , so the atom at r = 1 / 3 r=1/3 r = 1/3 has mass 1 / 32 1/32 1/32 and 1 / 8 1/8 1/8 , respectively.
For the logarithmic loss, independence gives E [ F A log F A ] = ∑ ℓ E [ L ℓ , A log L ℓ , A ] \mathbb{E}[F_A\log F_A]=\sum_\ell\mathbb{E}[L_{\ell,A}\log L_{\ell,A}] E [ F A log F A ] = ∑ ℓ E [ L ℓ , A log L ℓ , A ] , first for finite products and then by L 2 L^2 L 2 convergence. For A A A and A ′ A' A ′ agreeing away from 3, the difference is thus the difference of their local entropies at 3. For either residue system 3 / 4 ≤ L 3 ≤ 3 / 2 3/4\le L_3\le3/2 3/4 ≤ L 3 ≤ 3/2 . Indeed, if h h h is the valuation of R 2 − 4 A R^2-4A R 2 − 4 A , the number of roots modulo 3 j 3^j 3 j is 3 ⌊ j / 2 ⌋ 3^{\lfloor j/2\rfloor} 3 ⌊ j /2 ⌋ through j = h j=h j = h . Beyond h h h the counts vanish unless h = 2 e h=2e h = 2 e and the remaining unit is a square. In that case the count 2 ⋅ 3 e 2\cdot3^e 2 ⋅ 3 e gives the same weighted tail as for discriminant zero, which attains 3 / 2 3/2 3/2 .
For A ′ ≡ 2 ( m o d 3 ) A'\equiv2\pmod3 A ′ ≡ 2 ( mod 3 ) , the factor takes only the endpoints, with mean one and entropy 1 2 log ( 9 / 8 ) \frac{1}{2}\log(9/8) 2 1 log ( 9/8 ) . For A ≡ 1 ( m o d 3 ) A\equiv1\pmod3 A ≡ 1 ( mod 3 ) , the valuation equals one on 4 / 9 4/9 4/9 of the residues modulo 9, where L 3 , A = 1 L_{3,A}=1 L 3 , A = 1 . The chord of x log x x\log x x log x between 3 / 4 3/4 3/4 and 3 / 2 3/2 3/2 thus gives a gap
lim c → ∞ ( K A ′ ( c ) − K A ( c ) ) ≥ 2 9 log ( 9 / 8 ) > 0. \lim_{c\to\infty}\bigl(K_{A'}(c)-K_A(c)\bigr)\ge\frac{2}{9}\log(9/8)>0. c → ∞ lim ( K A ′ ( c ) − K A ( c ) ) ≥ 9 2 log ( 9/8 ) > 0.
Dirichlet’s theorem realizes both compatible residue systems by successively choosing primes in their residue classes modulo j ! j! j ! . □
The short-length limit of the Fourier profile
For each fixed 0 < y < 1 0<y<1 0 < y < 1 , the Gaussian in (8) suppresses frequencies larger than order c \sqrt{c} c . To obtain the leading term as c ↓ 0 c\downarrow0 c ↓ 0 we estimate the mass of μ A \mu_A μ A near zero. Choosing A ℓ A_\ell A ℓ independently and uniformly in Z ℓ × \mathbb{Z}_\ell^\times Z ℓ × gives Haar probability on Z ^ × \widehat{\mathbb{Z}}^\times Z × .
Theorem 5.2. For Haar-almost every A ∈ Z ^ × A\in\widehat{\mathbb{Z}}^\times A ∈ Z × ,
μ A ( ( 0 , x ) ) ∼ ζ ( 2 ) x 2 ( x ↓ 0 ) , C A ( c ) ∼ c 48 ( c ↓ 0 ) . \mu_A((0,x))\sim\zeta(2)x^2\quad(x\downarrow0),\qquad C_A(c)\sim\frac{c}{48}\quad(c\downarrow0). μ A (( 0 , x )) ∼ ζ ( 2 ) x 2 ( x ↓ 0 ) , C A ( c ) ∼ 48 c ( c ↓ 0 ) .
Proof. Local moments. For ( a , d ) = 1 (a,d)=1 ( a , d ) = 1 put Y a , d = d 3 ∣ γ A ( a / d ) ∣ 2 Y_{a,d}=d^3|\gamma_A(a/d)|^2 Y a , d = d 3 ∣ γ A ( a / d ) ∣ 2 . The change of variable in the Kloosterman sum gives S ( a , a A ; d ) = S ( 1 , a 2 A ; d ) S(a,aA;d)=S(1,a^2A;d) S ( a , a A ; d ) = S ( 1 , a 2 A ; d ) . The Chinese remainder theorem factors Y a , d Y_{a,d} Y a , d over the primes of d d d , with unit twists in the numerators. Its expectation is a multiplicative function g ( d ) g(d) g ( d ) independent of a a a . At a prime ℓ \ell ℓ , additive orthogonality gives
g ( ℓ ) = ( 1 − ℓ − 2 ) − 2 ( 1 − 1 ℓ ( ℓ − 1 ) ) , g ( ℓ k ) = ( 1 − ℓ − 2 ) − 2 ( k ≥ 2 ) . g(\ell)=(1-\ell^{-2})^{-2}\left(1-\frac{1}{\ell(\ell-1)}\right),\qquad g(\ell^k)=(1-\ell^{-2})^{-2}\quad(k\ge2). g ( ℓ ) = ( 1 − ℓ − 2 ) − 2 ( 1 − ℓ ( ℓ − 1 ) 1 ) , g ( ℓ k ) = ( 1 − ℓ − 2 ) − 2 ( k ≥ 2 ) .
Indeed, summing ∣ S ( 1 , b ; ℓ k ) ∣ 2 |S(1,b;\ell^k)|^2 ∣ S ( 1 , b ; ℓ k ) ∣ 2 over all b b b gives ℓ k φ ( ℓ k ) \ell^k\varphi(\ell^k) ℓ k φ ( ℓ k ) . At k = 1 k=1 k = 1 the term b = 0 b=0 b = 0 contributes one. For k ≥ 2 k\ge2 k ≥ 2 the terms with ℓ ∣ b \ell\mid b ℓ ∣ b vanish by summing over the translates of a unit u u u by multiples of ℓ k − 1 \ell^{k-1} ℓ k − 1 . Thus g g g is bounded and g ∗ μ g*\mu g ∗ μ is absolutely summable.
We also need the mean at one prime with A ℓ A_\ell A ℓ held fixed. Define w A ( d ) = d 2 ∑ a m o d d ∗ ∣ γ A ( a / d ) ∣ 2 w_A(d)=d^2\sum_{a\bmod d}^{*}|\gamma_A(a/d)|^2 w A ( d ) = d 2 ∑ a mod d ∗ ∣ γ A ( a / d ) ∣ 2 , which is multiplicative by the same factorization. Then
∑ k ≥ 1 w A ( ℓ k ) ℓ − k = ℓ ℓ 2 − 1 . (10) \sum_{k\ge1}w_A(\ell^k)\ell^{-k}=\frac{\ell}{\ell^2-1}. \tag*{(10)} k ≥ 1 ∑ w A ( ℓ k ) ℓ − k = ℓ 2 − 1 ℓ . (10)
To see this, let N k N_k N k count unit pairs ( u , v ) (u,v) ( u , v ) modulo ℓ k \ell^k ℓ k with ( u − v ) ( u v − A ℓ ) ≡ 0 ( m o d ℓ k ) (u-v)(uv-A_\ell)\equiv0\pmod{\ell^k} ( u − v ) ( uv − A ℓ ) ≡ 0 ( mod ℓ k ) . Opening the square gives ℓ k N k − ℓ k + 1 N k − 1 \ell^kN_k-\ell^{k+1}N_{k-1} ℓ k N k − ℓ k + 1 N k − 1 for the sum of ∣ S ( a , a A ; ℓ k ) ∣ 2 |S(a,aA;\ell^k)|^2 ∣ S ( a , a A ; ℓ k ) ∣ 2 over unit a a a when k ≥ 2 k\ge2 k ≥ 2 , and gives ℓ N 1 − ( ℓ − 1 ) 2 \ell N_1-(\ell-1)^2 ℓ N 1 − ( ℓ − 1 ) 2 when k = 1 k=1 k = 1 . With normalized Haar measure on Z ℓ 2 \mathbb{Z}_\ell^2 Z ℓ 2 , ∑ k ≥ 1 N k ℓ − 2 k \sum_{k\ge1}N_k\ell^{-2k} ∑ k ≥ 1 N k ℓ − 2 k is the integral of v ℓ ( u − v ) + v ℓ ( u v − A ℓ ) v_\ell(u-v)+v_\ell(uv-A_\ell) v ℓ ( u − v ) + v ℓ ( uv − A ℓ ) over the unit pairs. For each fixed unit u u u , either valuation is at least j ≥ 1 j\ge1 j ≥ 1 on a set of v v v of measure ℓ − j \ell^{-j} ℓ − j . This gives ∑ k ≥ 1 N k ℓ − 2 k = 2 / ℓ \sum_{k\ge1}N_k\ell^{-2k}=2/\ell ∑ k ≥ 1 N k ℓ − 2 k = 2/ ℓ . Summing the square identities with weight ℓ − 3 k \ell^{-3k} ℓ − 3 k and multiplying by ( 1 − ℓ − 2 ) − 2 (1-\ell^{-2})^{-2} ( 1 − ℓ − 2 ) − 2 proves (10).
The mean with small-prime residues fixed. Write
Z x = μ A ( ( 0 , x ) ) x 2 = 2 x 2 ∑ a ≥ 1 ∑ d > a / x ( a , d ) = 1 Y a , d d 3 . Z_x=\frac{\mu_A((0,x))}{x^2}=\frac{2}{x^2}\sum_{a\ge1}\sum_{\substack{d>a/x\\(a,d)=1}}\frac{Y_{a,d}}{d^3}. Z x = x 2 μ A (( 0 , x )) = x 2 2 a ≥ 1 ∑ d > a / x ( a , d ) = 1 ∑ d 3 Y a , d .
When d d d is of order 1 / x 1/x 1/ x , only a bounded number of numerators contribute. We use the mean over denominators for each such numerator. Let E L E_L E L denote conditional expectation with the coordinates at primes ℓ ≤ L \ell\le L ℓ ≤ L held fixed, and put P = ∏ ℓ ≤ L ℓ P=\prod_{\ell\le L}\ell P = ∏ ℓ ≤ L ℓ . Write d = r m d=rm d = r m , with r r r composed of primes dividing P P P and ( m , P ) = 1 (m,P)=1 ( m , P ) = 1 . For fixed a a a and r r r with ( r , a ) = 1 (r,a)=1 ( r , a ) = 1 , the conditional mean of Y a , r m Y_{a,rm} Y a , r m is g ( m ) g(m) g ( m ) times Y a m ˉ , r Y_{a\bar m,r} Y a m ˉ , r , where m ˉ \bar m m ˉ is taken modulo r r r . The function g ( m ) 1 ( m , a P ) = 1 g(m)1_{(m,aP)=1} g ( m ) 1 ( m , a P ) = 1 has mean
M ( a P ) = ∏ ℓ ∣ a P ( 1 − ℓ − 1 ) ∏ ℓ ∤ a P ( ( 1 − ℓ − 1 ) ∑ k ≥ 0 g ( ℓ k ) ℓ k ) . M(aP)=\prod_{\ell\mid aP}(1-\ell^{-1})\prod_{\ell\nmid aP}\left((1-\ell^{-1})\sum_{k\ge0}\frac{g(\ell^k)}{\ell^k}\right). M ( a P ) = ℓ ∣ a P ∏ ( 1 − ℓ − 1 ) ℓ ∤ a P ∏ ( ( 1 − ℓ − 1 ) k ≥ 0 ∑ ℓ k g ( ℓ k ) ) .
In each unit class modulo r r r , its sum up to D D D is D M ( a P ) / φ ( r ) + O ( τ ( a P ) ) DM(aP)/\varphi(r)+O(\tau(aP)) D M ( a P ) / φ ( r ) + O ( τ ( a P )) . For this estimate expand g = 1 ∗ ( g ∗ μ ) g=1*(g*\mu) g = 1 ∗ ( g ∗ μ ) , then use inclusion–exclusion at the primes dividing a P aP a P that do not divide r r r . Absolute summability of g ∗ μ g*\mu g ∗ μ controls the sum of the errors.
Partial summation above m = a / ( x r ) m=a/(xr) m = a / ( x r ) and averaging Y a m ˉ , r Y_{a\bar m,r} Y a m ˉ , r over the unit classes gives the main term M ( a P ) w A ( r ) / ( a 2 φ ( r ) ) M(aP)w_A(r)/(a^2\varphi(r)) M ( a P ) w A ( r ) / ( a 2 φ ( r )) in E L Z x E_LZ_x E L Z x . For r ≤ x − 1 / 8 r\le x^{-1/8} r ≤ x − 1/8 the sum of the errors is
≪ x τ ( P ) ∑ r ≤ x − 1 / 8 r τ ( r ) 2 ∑ a ≥ 1 τ ( a ) a 3 . \ll x\tau(P)\sum_{r\le x^{-1/8}}r\tau(r)^2\sum_{a\ge1}\frac{\tau(a)}{a^3}. ≪ xτ ( P ) r ≤ x − 1/8 ∑ r τ ( r ) 2 a ≥ 1 ∑ a 3 τ ( a ) .
Here the coefficient bound for a unit numerator is Y a , r ≪ τ ( r ) 2 Y_{a,r}\ll\tau(r)^2 Y a , r ≪ τ ( r ) 2 . For larger r r r , both the sum and its main term are bounded by a constant times ∑ r > x − 1 / 8 , r ∣ P ∞ τ ( r ) 2 / r \sum_{r>x^{-1/8},\,r\mid P^\infty}\tau(r)^2/r ∑ r > x − 1/8 , r ∣ P ∞ τ ( r ) 2 / r . This is at most x 1 / 16 exp ( O ( L ) ) x^{1/16}\exp(O(\sqrt L)) x 1/16 exp ( O ( L )) , by inserting r 1 / 2 r^{1/2} r 1/2 and summing the product over ℓ ∣ P \ell\mid P ℓ ∣ P . Taking L = 1 10 log ( 1 / x ) L = \frac{1}{10}\log(1/x) L = 10 1 log ( 1/ x ) , both errors are O ( x 1 / 32 ) O(x^{1/32}) O ( x 1/32 ) .
The main terms over a a a and r r r form an Euler product. Whether ℓ ≤ L \ell\le L ℓ ≤ L or ℓ > L \ell> L ℓ > L , its factor is
( 1 − ℓ − 1 ) ( 1 + 1 ℓ 2 − 1 ) + ℓ ℓ 2 − 1 = ( 1 − ℓ − 2 ) − 1 . (1-\ell^{-1})\left(1+\frac{1}{\ell^2-1}\right)+\frac{\ell}{\ell^2-1}=(1-\ell^{-2})^{-1}. ( 1 − ℓ − 1 ) ( 1 + ℓ 2 − 1 1 ) + ℓ 2 − 1 ℓ = ( 1 − ℓ − 2 ) − 1 .
At a prime held fixed this uses (10). At the other primes one uses its expectation. Consequently E L Z x = ζ ( 2 ) + O ( x 1 / 32 ) \mathbb{E}_L Z_x=\zeta(2)+O(x^{1/32}) E L Z x = ζ ( 2 ) + O ( x 1/32 ) uniformly in the fixed coordinates.
Fluctuations from the remaining primes. In the fourth moment of Z x − E L Z x Z_x-\mathbb{E}_L Z_x Z x − E L Z x , consider four denominators d 1 , … , d 4 d_1,\ldots,d_4 d 1 , … , d 4 . If one denominator shares no prime ℓ > L \ell>L ℓ > L with the other three, its centered factor is independent of theirs once the small-prime residues are fixed. Its conditional mean is zero, so the term vanishes. The full Haar expectation of the absolute value of the product of the four centered weights is bounded by
≪ ∏ i < j τ ( ( d i , d j ) ) 2 . \ll\prod_{i<j}\tau((d_i,d_j))^2. ≪ i < j ∏ τ (( d i , d j ) ) 2 .
To obtain this bound, expand the four differences. At each prime use the mean of the factor with greatest exponent and bound the others by Weil’s bound. The mean of ∣ S ∣ 2 / ℓ k |S|^2/\ell^k ∣ S ∣ 2 / ℓ k is at most one, and its maximum is at most ( k + 1 ) 2 (k+1)^2 ( k + 1 ) 2 . Factors already averaged by E L \mathbb{E}_L E L satisfy the same bounds. The bound is used only after the outer expectation over the small-prime residues; it need not hold conditionally on them. The normalizing factors ( 1 − ℓ − 2 ) − 2 (1-\ell^{-2})^{-2} ( 1 − ℓ − 2 ) − 2 have bounded product.
For the remaining tuples choose at most four distinct primes ℓ s > L \ell_s>L ℓ s > L and sets I s ⊂ { 1 , 2 , 3 , 4 } I_s\subset\{1,2,3,4\} I s ⊂ { 1 , 2 , 3 , 4 } such that ∣ I s ∣ ≥ 2 |I_s|\ge2 ∣ I s ∣ ≥ 2 , their union is all four indices, and ℓ s ∣ d i \ell_s\mid d_i ℓ s ∣ d i for i ∈ I s i\in I_s i ∈ I s . Expand τ ( n ) 2 = ∑ h ∣ n ( τ 2 ∗ μ ) ( h ) \tau(n)^2=\sum_{h\mid n}(\tau^2*\mu)(h) τ ( n ) 2 = ∑ h ∣ n ( τ 2 ∗ μ ) ( h ) , whose coefficients at ℓ k \ell^k ℓ k are 2 k + 1 2k+1 2 k + 1 for k ≥ 1 k\ge1 k ≥ 1 . If D i D_i D i is the least common multiple of the divisibility conditions imposed on d i d_i d i , then
∑ d i > a i / x D i ∣ d i d i − 3 ≪ x 2 D i a i 2 . \sum_{\substack{d_i>a_i/x\\D_i\mid d_i}}d_i^{-3}\ll\frac{x^2}{D_i a_i^2}. d i > a i / x D i ∣ d i ∑ d i − 3 ≪ D i a i 2 x 2 .
After dividing by x 8 x^8 x 8 and summing the a i a_i a i , the remaining divisor sums are an Euler product. At a prime let k k k be the largest exponent in the six divisors for the pairs i < j i<j i < j . If k ≥ 1 k\ge1 k ≥ 1 , the exponents in D i D_i D i sum to at least 2 k 2k 2 k . At a chosen prime with set I I I the sum is at least ∣ I ∣ + 2 ( k − 1 ) |I|+2(k-1) ∣ I ∣ + 2 ( k − 1 ) . Summing the polynomial divisor weights therefore gives 1 + O ( ℓ − 2 ) 1+O(\ell^{-2}) 1 + O ( ℓ − 2 ) at unchosen primes and O ( ℓ − ∣ I ∣ ) O(\ell^{-|I|}) O ( ℓ − ∣ I ∣ ) at chosen primes. A single chosen prime must divide all four denominators, while two or more give at least two factors ∑ ℓ > L ℓ − 2 \sum_{\ell>L}\ell^{-2} ∑ ℓ > L ℓ − 2 . Thus
E ∣ Z x − E L Z x ∣ 4 ≪ L − 2 . \mathbb{E}|Z_x-\mathbb{E}_L Z_x|^4\ll L^{-2}. E ∣ Z x − E L Z x ∣ 4 ≪ L − 2 .
At x n = exp ( − n 3 / 4 ) x_n=\exp(-n^{3/4}) x n = exp ( − n 3/4 ) the fourth-moment bounds are summable, so Markov’s inequality and Borel–Cantelli give Z x n → ζ ( 2 ) Z_{x_n}\to\zeta(2) Z x n → ζ ( 2 ) almost surely. Since x n + 1 / x n → 1 x_{n+1}/x_n\to1 x n + 1 / x n → 1 and μ A ( ( 0 , x ) ) \mu_A((0,x)) μ A (( 0 , x )) is increasing in x x x , the same limit holds as x ↓ 0 x\downarrow0 x ↓ 0 .
From the frequency mass to the profile. Put b ( y ) = 64 π 2 y ( 1 − y ) b(y)=64\pi^2y(1-y) b ( y ) = 64 π 2 y ( 1 − y ) . Integration by parts in (8), followed by z = b ( y ) x 2 / c z=b(y)x^2/c z = b ( y ) x 2 / c , gives
C A ( c ) c = ∫ 0 1 σ ( y ) b ( y ) ∫ 0 ∞ z e − z Z c z b ( y ) d z d y . \frac{C_A(c)}{c}=\int_0^1\frac{\sigma(y)}{b(y)}\int_0^\infty ze^{-z}Z\sqrt{\frac{cz}{b(y)}}\,dz\,dy. c C A ( c ) = ∫ 0 1 b ( y ) σ ( y ) ∫ 0 ∞ z e − z Z b ( y ) cz d z d y .
For a residue system satisfying the first limit, Z x Z_x Z x is bounded for all x > 0 x>0 x > 0 . For large x x x this follows from the periodicity of γ A \gamma_A γ A and its square-summable coefficients modulo one. Dominated convergence gives ζ ( 2 ) / ( 8 π 2 ) = 1 / 48 \zeta(2)/(8\pi^2)=1/48 ζ ( 2 ) / ( 8 π 2 ) = 1/48 , since ∫ 0 1 σ ( y ) / ( y ( 1 − y ) ) d y = 8 \int_0^1\sigma(y)/(y(1-y))\,dy=8 ∫ 0 1 σ ( y ) / ( y ( 1 − y )) d y = 8 . □
The preprint of Jiang and Lau [17 Corollary 4.1] gives the upper bound C A ( c ) ≪ c C_A(c) \ll c C A ( c ) ≪ c for every residue system. With z = 1 z=1 z = 1 and ν = 2 \nu=2 ν = 2 , their corollary bounds ∑ d ≤ D ∣ S ( 1 , b ; d ) ∣ 2 / d ≪ D \sum_{d\le D}|S(1,b;d)|^2/d \ll D ∑ d ≤ D ∣ S ( 1 , b ; d ) ∣ 2 / d ≪ D uniformly over all nonzero integers b b b . For each D D D , choose a nonzero representative of a 2 A a^2A a 2 A modulo lcm ( 1 , … , D ) \operatorname{lcm}(1,\ldots,D) lcm ( 1 , … , D ) . Partial summation then bounds the contribution from a fixed numerator a a a by O ( x 2 / a 2 ) O(x^2/a^2) O ( x 2 / a 2 ) . Summing over a a a gives μ A ( ( 0 , x ) ) ≪ x 2 \mu_A((0,x)) \ll x^2 μ A (( 0 , x )) ≪ x 2 , and the preceding integral gives C A ( c ) ≪ c C_A(c) \ll c C A ( c ) ≪ c . The theorems below do not use this bound.
Profiles for restricted families
For a trace class t ≡ t 0 ( m o d M ) t\equiv t_0\pmod M t ≡ t 0 ( mod M ) , replace each factor L ℓ , A L_{\ell,A} L ℓ , A for ℓ ∣ M \ell\mid M ℓ ∣ M in F A F_A F A by its restriction to R ≡ t 0 ( m o d ℓ ν ℓ ( M ) ) R\equiv t_0\pmod{\ell^{\nu_\ell(M)}} R ≡ t 0 ( mod ℓ ν ℓ ( M ) ) , divided by its mass. For Y 1 ( ℓ ) Y_1(\ell) Y 1 ( ℓ ) , replace just L ℓ , A L_{\ell,A} L ℓ , A by the normalization of
V A ( R ) = L ℓ , A ( R ) 1 R ≡ A + 1 ( m o d ℓ ) + 1 A ≡ 1 ( m o d ℓ ) ℓ ( L ℓ , A ( R ) − 1 ) 1 R ≡ A + 1 ( m o d ℓ 2 ) . (11) V_A(R)=L_{\ell,A}(R)1_{R\equiv A+1\pmod\ell}+1_{A\equiv1\pmod\ell}\ell\bigl(L_{\ell,A}(R)-1\bigr)1_{R\equiv A+1\pmod{\ell^2}}. \tag*{(11)} V A ( R ) = L ℓ , A ( R ) 1 R ≡ A + 1 ( mod ℓ ) + 1 A ≡ 1 ( mod ℓ ) ℓ ( L ℓ , A ( R ) − 1 ) 1 R ≡ A + 1 ( mod ℓ 2 ) . (11)
Write F A ♭ F_A^\flat F A ♭ for the resulting weight, γ A ♭ \gamma_A^\flat γ A ♭ for its Fourier coefficients, and B A , c ♭ B_{A,c}^\flat B A , c ♭ for the Gaussian sum B A , c B_{A,c} B A , c with F A ♭ F_A^\flat F A ♭ in place of F A F_A F A . In either case write P T ♭ P_T^\flat P T ♭ for the corresponding count law.
Proposition 5.3. Suppose T / p → c > 0 T/p\to c>0 T / p → c > 0 along a sequence of primes whose residues stabilize modulo every fixed integer, with limiting system A A A . Then
D K L ( P T ♭ ∥ Q T ) ⟶ E [ B A , c ♭ log B A , c ♭ ] , χ 2 ( P T ♭ ∥ Q T ) ⟶ ∫ 0 1 σ ( y ) ∑ β ≠ 0 ∣ γ A ♭ ( β ) ∣ 2 e − 64 π 2 y ( 1 − y ) β 2 / c d y . D_{\mathrm{KL}}(P_T^\flat\Vert Q_T)\longrightarrow\mathbb{E}\bigl[B_{A,c}^\flat\log B_{A,c}^\flat\bigr],\qquad\chi^2(P_T^\flat\Vert Q_T)\longrightarrow\int_0^1 \sigma(y)\sum_{\beta\ne0}|\gamma_A^\flat(\beta)|^2e^{-64\pi^2y(1-y)\beta^2/c}\,dy. D KL ( P T ♭ ∥ Q T ) ⟶ E [ B A , c ♭ log B A , c ♭ ] , χ 2 ( P T ♭ ∥ Q T ) ⟶ ∫ 0 1 σ ( y ) β = 0 ∑ ∣ γ A ♭ ( β ) ∣ 2 e − 64 π 2 y ( 1 − y ) β 2 / c d y . Both limits are finite and positive, and as c → ∞ c\to\infty c → ∞ the first is 1 2 log c − 1 − 1 2 log ( 2 π ) + E [ F A ♭ log F A ♭ ] + o ( 1 ) \frac12\log c-1-\frac12\log(2\pi)+\mathbb{E}[F_A^\flat\log F_A^\flat]+o(1) 2 1 log c − 1 − 2 1 log ( 2 π ) + E [ F A ♭ log F A ♭ ] + o ( 1 ) .
Proof. For P T M P_T^M P T M the weight is F 1 A / Z F1_A/Z F 1 A / Z , and for P T Y 1 P_T^{Y_1} P T Y 1 it is U / Z U/Z U / Z with U U U as in (4). Truncating F F F and F ( ℓ ) F^{(\ell)} F ( ℓ ) at N N N gives periodic weights that stabilize for fixed N N N . Their squared tail bound from Lemma 3.2 persists under fixed congruence restrictions and omission of ℓ \ell ℓ . The masses converge to the local means by Propositions 4.1 and 4.2 and the cutoff estimate (3). In the modular case (4) gives exactly (11). Thus the normalized cutoffs converge to F A ♭ F_A^\flat F A ♭ in L 2 L^2 L 2 . The likelihood-ratio and Parseval arguments of Theorem 5.1 apply to these cutoffs, with their endpoint contributions bounded by (1) and the beta-binomial estimate used there. The full ratio is nonnegative and its bounded second moment yields uniform integrability of x log x x\log x x log x . Normalization gives mean one for F A ♭ F_A^\flat F A ♭ , so the same wrapped Gaussian proves positivity and the large-c c c expansion.
Short observations and Hecke trace asymptotics
A trace weight g g g is a fixed finite real linear combination of F ( J ) 1 A F^{(J)}1_A F ( J ) 1 A as in Lemma 3.4. The coefficients may depend on a fixed residue class of p p p . Choose M M M divisible by the selector periods, the moduli specifying the coefficients, and all primes in the omitted sets J J J . Write P g P^g P g for the corresponding unnormalized count measure. The pairing B r ( g , h ) \mathcal{B}_r(g,h) B r ( g , h ) is defined in § 6.1 .
Theorem 6.1 (Short-length limits for trace weights). Fix 0 < δ ≤ 2 / 3 0<\delta\le2/3 0 < δ ≤ 2/3 , a unit class r ( m o d M ) r\pmod M r ( mod M ) , and a finite list of trace weights. Write Z g Z_g Z g for the mass of P g P^g P g and m g , p ( j ) m_{g,p}(j) m g , p ( j ) for the degree-j j j Chebyshev moment of the unnormalized bias measure with weight g g g . There is a set of relative density one among primes in the class on which, for every pair g , h g,h g , h from the list and every fixed λ > 0 \lambda>0 λ > 0 , with T = ⌊ λ p 1 − δ ⌋ T=\lfloor\lambda p^{1-\delta}\rfloor T = ⌊ λ p 1 − δ ⌋ and K = p ( 1 − δ ) / 2 K=p^{(1-\delta)/2} K = p ( 1 − δ ) /2 ,
p T ⟨ P g − Z g Q T , P h − Z h Q T ⟩ Q ⟶ B r ( g , h ) / 48 , (12) \frac{p}{T}\langle P^g-Z_gQ_T,P^h-Z_hQ_T\rangle_Q\longrightarrow\mathcal{B}_r(g,h)/48, \tag*{(12)} T p ⟨ P g − Z g Q T , P h − Z h Q T ⟩ Q ⟶ B r ( g , h ) /48 , (12) p K 2 ∑ 1 ≤ j ≤ K − 2 m g , p ( j ) m h , p ( j ) ⟶ B r ( g , h ) / 48. (13) \frac{p}{K^2}\sum_{1\le j\le K-2}m_{g,p}(j)m_{h,p}(j)\longrightarrow\mathcal{B}_r(g,h)/48. \tag*{(13)} K 2 p 1 ≤ j ≤ K − 2 ∑ m g , p ( j ) m h , p ( j ) ⟶ B r ( g , h ) /48. (13)
Here ⟨ P , R ⟩ Q = ∑ k P ( k ) R ( k ) / Q T ( k ) \langle P,R\rangle_Q=\sum_k P(k)R(k)/Q_T(k) ⟨ P , R ⟩ Q = ∑ k P ( k ) R ( k ) / Q T ( k ) . For fixed λ > 0 \lambda>0 λ > 0 and 0 < η ≤ 1 0<\eta\le1 0 < η ≤ 1 , count the primes p ≥ 5 p\ge5 p ≥ 5 in ( X , 2 X ] (X,2X] ( X , 2 X ] in the designated class with T ≥ 1 T\ge1 T ≥ 1 on which the first expression differs from its limit by more than η \eta η . Their number is
O g , h , M , δ , λ ( π ( X ) η 2 log X ) . O_{g,h,M,\delta,\lambda}\left(\frac{\pi(X)}{\eta^2\log X}\right). O g , h , M , δ , λ ( η 2 log X π ( X ) ) .
Write P δ \mathcal{P}_\delta P δ for the set with g = h = F g=h=F g = h = F and M = 1 M=1 M = 1 . The two limits are then the normalized chi-square divergence and, by Corollary 4.3 , the level-one trace sum. The common set can depend on δ \delta δ , the weights and r r r mod M M M . The dyadic bound is for each fixed λ \lambda λ and pair.
Proof of Theorem 6.1. We truncate the class-number weights and control the products at distinct frequencies. § 6.1 averages the Fourier diagonal over primes and recovers the sharp cutoff.
Truncating the class-number weights. Let g B g_B g B be the smooth cutoff at B B B . Average its error by grouping the Mellin integrals by fundamental discriminant. Each d d d with ∣ d ∣ ≍ D |d|\asymp D ∣ d ∣ ≍ D occurs for at most O ( X / D ) O(X/\sqrt{D}) O ( X / D ) pairs ( p , t ) (p,t) ( p , t ) in ( X , 2 X ] (X,2X] ( X , 2 X ] , since 4 p = t 2 + ∣ d ∣ r t 2 4p=t^2+|d|r_t^2 4 p = t 2 + ∣ d ∣ r t 2 . Heath–Brown’s fourth moment [14 Theorem 2] and Cauchy–Schwarz bound the sum of ∣ L ( 1 / 2 + i v , χ d ) ∣ 2 |L(1/2+iv,\chi_d)|^2 ∣ L ( 1/2 + i v , χ d ) ∣ 2 over these discriminants by O ε ( D 1 + ε ( 1 + ∣ v ∣ ) 2 ) O_\varepsilon(D^{1+\varepsilon}(1+|v|)^2) O ε ( D 1 + ε ( 1 + ∣ v ∣ ) 2 ) . Multiplying by the multiplicity and the grid step Δ p ≍ X − 1 / 2 \Delta_p\asymp X^{-1/2} Δ p ≍ X − 1/2 , summing in D D D and integrating with weight ( 1 + ∣ v ∣ ) − 10 (1+|v|)^{-10} ( 1 + ∣ v ∣ ) − 10 gives a total O ε ( X 1 + ε ) O_\varepsilon(X^{1+\varepsilon}) O ε ( X 1 + ε ) . On shifting the Mellin integral to ℜ s = 1 / 2 \Re s=1/2 ℜ s = 1/2 , Cauchy–Schwarz supplies B − 1 B^{-1} B − 1 in the squared error. The divisor factors cost p ε p^\varepsilon p ε and the omitted Euler factors are bounded. Markov’s inequality and (1) give
Δ p ∑ t 2 < 4 p ∣ g ( t ) − g B ( t ) ∣ 2 + ∥ P g − P g B ∥ Q 2 ≪ g , ε p ε B (14) \Delta_p\sum_{t^2<4p}|g(t)-g_B(t)|^2+\lVert P^g-P^{g_B}\rVert_Q^2\ll_{g,\varepsilon} \frac{p^\varepsilon}{B} \tag*{(14)} Δ p t 2 < 4 p ∑ ∣ g ( t ) − g B ( t ) ∣ 2 + ∥ P g − P g B ∥ Q 2 ≪ g , ε B p ε (14)
for all B ≥ 1 B\ge1 B ≥ 1 and 1 ≤ T ≤ p 1\le T\le p 1 ≤ T ≤ p on the same set of primes, outside O g , ε ( X 1 − ε / 4 ) O_{g,\varepsilon}(X^{1-\varepsilon/4}) O g , ε ( X 1 − ε /4 ) exceptions for 0 < ε < 1 0<\varepsilon<1 0 < ε < 1 . See Lemma S5.1 for the integral used in this bound.
Lemma 6.2 (Uniform approximation at short lengths). Let A p A_p A p have the residue of p p p at each prime other than p p p , and p p p -adic coordinate 1 1 1 . For a weight g g g as above, let Z p Z_p Z p be the mass of P g P^g P g . Write C A p g ( c ) C_{A_p}^g(c) C A p g ( c ) for the nonzero-frequency integral of Theorem 5.1 with the Fourier coefficients of the corresponding weight on Z ^ \widehat{\mathbb{Z}} Z . Fix 0 < δ 0 < 1 / 2 0<\delta_0<1/2 0 < δ 0 < 1/2 . Outside O g , δ 0 ( X 1 − ξ ) O_{g,\delta_0}(X^{1-\xi}) O g , δ 0 ( X 1 − ξ ) primes in each ( X , 2 X ] (X,2X] ( X , 2 X ] , uniformly for p − δ 0 ≤ c = T / p ≤ 1 / 2 p^{-\delta_0}\le c=T/p\le1/2 p − δ 0 ≤ c = T / p ≤ 1/2 ,
∥ P g − Z p Q T ∥ Q 2 = C A p g ( c ) + O g , δ 0 ( c 3 / 2 + c p − ν ) (15) \lVert P^g-Z_pQ_T\rVert_Q^2=C_{A_p}^g(c)+O_{g,\delta_0}(c^{3/2}+cp^{-\nu}) \tag*{(15)} ∥ P g − Z p Q T ∥ Q 2 = C A p g ( c ) + O g , δ 0 ( c 3/2 + c p − ν ) (15) for some ξ , ν > 0 \xi,\nu>0 ξ , ν > 0 . For fixed λ > 0 \lambda>0 λ > 0 , 1 / 6 ≤ a ≤ 1 / 4 1/6\le a\le1/4 1/6 ≤ a ≤ 1/4 , and every J > 0 J>0 J > 0 , at T = ⌊ λ p 2 a ⌋ T=\lfloor\lambda p^{2a}\rfloor T = ⌊ λ p 2 a ⌋ the same formula holds with c = λ p 2 a − 1 c=\lambda p^{2a-1} c = λ p 2 a − 1 and p − ν p^{-\nu} p − ν replaced by ( log X ) − J (\log X)^{-J} ( log X ) − J , outside O g , a , λ , J ( X ( log X ) − J ) O_{g,a,\lambda,J}(X(\log X)^{-J}) O g , a , λ , J ( X ( log X ) − J ) primes. In both cases the mass Z p Z_p Z p differs from the complete constant Fourier coefficient by a power-saving error.
Proof. From moments to an angular integral. Write U = T U=T U = T in the first range and U = λ p 2 a U=\lambda p^{2a} U = λ p 2 a at a fixed weight exponent, and put c = U / p c=U/p c = U / p . Set w = 2 p sin ϕ w=2\sqrt p\sin\phi w = 2 p sin ϕ , s = 2 p cos ϕ s=2\sqrt p\cos\phi s = 2 p cos ϕ , θ t = arccos ( t / ( 2 p ) ) \theta_t=\arccos(t/(2\sqrt p)) θ t = arccos ( t / ( 2 p )) and G ( z ) = ∑ j ∈ Z e − j 2 / ( 2 U ) e i j z G(z)=\sum_{j\in\mathbb{Z}}e^{-j^2/(2U)}e^{ijz} G ( z ) = ∑ j ∈ Z e − j 2 / ( 2 U ) e ij z . After expanding the trace selectors, the cutoff Fourier coefficients are sums of C d S ( m , m p ; d ) C_dS(m,mp;d) C d S ( m , m p ; d ) at β = m / d + α \beta=m/d+\alpha β = m / d + α , where ( m , d ) = 1 (m,d)=1 ( m , d ) = 1 , α \alpha α is a fixed rational shift and ∣ C d ∣ ≪ g d − 2 |C_d|\ll_g d^{-2} ∣ C d ∣ ≪ g d − 2 by Lemma 3.2 . With B B B fixed on ( X , 2 X ] (X,2X] ( X , 2 X ] , each C d C_d C d is constant in the given prime class. Write γ B ( β ) \gamma_B(\beta) γ B ( β ) for the combined coefficient and Z B Z_B Z B for the mass of P g B P^{g_B} P g B . The odd kernel gives the angular sum
D ( ϕ ) = ∑ t g B ( t ) ( G ( ϕ − θ t ) − G ( ϕ + θ t ) ) − 2 π γ B ( 0 ) w e − 1 / ( 2 U ) . \mathcal{D}(\phi)=\sum_t g_B(t)\bigl(G(\phi-\theta_t)-G(\phi+\theta_t)\bigr)-2\pi\gamma_B(0)we^{-1/(2U)}. D ( ϕ ) = t ∑ g B ( t ) ( G ( ϕ − θ t ) − G ( ϕ + θ t ) ) − 2 π γ B ( 0 ) w e − 1/ ( 2 U ) .
Its coefficient of sin ( ( m + 1 ) ϕ ) \sin((m+1)\phi) sin (( m + 1 ) ϕ ) is 4 π p e − ( m + 1 ) 2 / ( 2 U ) ( m g B , p ( m ) − 1 { m = 0 } γ B ( 0 ) ) 4\pi\sqrt p\,e^{-(m+1)^2/(2U)}(m g_{B,p}(m)-\mathbb{1}_{\{m=0\}}\gamma_B(0)) 4 π p e − ( m + 1 ) 2 / ( 2 U ) ( m g B , p ( m ) − 1 { m = 0 } γ B ( 0 )) . Sine Parseval gives (S2), with first-sine term e − 1 / U ∣ Z B − γ B ( 0 ) ∣ 2 e^{-1/U}|Z_B-\gamma_B(0)|^2 e − 1/ U ∣ Z B − γ B ( 0 ) ∣ 2 . In the interior, linearizing the trace-to-angle map and using Poisson summation give the mode 2 π w e ( β s ) e − 2 π 2 w 2 β 2 / U 2\pi w e(\beta s)e^{-2\pi^{2}w^{2}\beta^{2}/U} 2 π w e ( β s ) e − 2 π 2 w 2 β 2 / U . The equal-frequency terms give the truncated profile, since w 2 = 16 p y ( 1 − y ) w^{2}=16py(1-y) w 2 = 16 p y ( 1 − y ) for y = ( 1 + cos ϕ ) / 2 y=(1+\cos\phi)/2 y = ( 1 + cos ϕ ) /2 and w 2 ∣ d ϕ ∣ / ( 2 π p ) = σ ( y ) ∣ d y ∣ w^{2}|d\phi|/(2\pi p)=\sigma(y)|dy| w 2 ∣ d ϕ ∣/ ( 2 π p ) = σ ( y ) ∣ d y ∣ .
Longer observations. Take ρ = ( 1 / 2 − δ 0 ) / 2 \rho=(1/2-\delta_{0})/2 ρ = ( 1/2 − δ 0 ) /2 , B = X 1 / 2 − ρ B=X^{1/2-\rho} B = X 1/2 − ρ and split the Fourier sum at denominator X 1 / 4 X^{1/4} X 1/4 . Integration by parts bounds the low mixed terms, and the additive large sieve bounds the high squared norm on average. Their relative cost is O ( X ϵ X 1 / 4 / T ) O(X^{\epsilon}X^{1/4}/\sqrt{T}) O ( X ϵ X 1/4 / T ) , while the class-number tail costs O ( X ϵ / ( B c ) ) O(X^{\epsilon}/(Bc)) O ( X ϵ / ( B c )) . Both are O ( X − ρ + ϵ ) O(X^{-\rho+\epsilon}) O ( X − ρ + ϵ ) . The normalized squared Taylor and mass errors are O ( X ϵ ( ( T c ) − 1 + B / ( p c ) ) ) O(X^{\epsilon}((Tc)^{-1}+B/(pc))) O ( X ϵ (( T c ) − 1 + B / ( p c ))) . The edge contributes O ( c 3 / 2 + c X − ν ) O(c^{3/2}+cX^{-\nu}) O ( c 3/2 + c X − ν ) in squared norm. The uniform version and its dyadic summation are in Lemma S5.2.
Shorter observations. For 1 / 6 < a ≤ 1 / 4 1/6<a\leq1/4 1/6 < a ≤ 1/4 , use B = X 3 / 4 − a / 2 B=X^{3/4-a/2} B = X 3/4 − a /2 and D + = X 1 / 2 − a + ω D_{+}=X^{1/2-a+\omega} D + = X 1/2 − a + ω , with ω > 0 \omega>0 ω > 0 small. For μ = ( 3 a − 1 / 2 ) / 2 \mu=(3a-1/2)/2 μ = ( 3 a − 1/2 ) /2 we have B c ≍ X μ Bc\asymp X^{\mu} B c ≍ X μ and B / X 1 / 2 + a = X − μ B/X^{1/2+a}=X^{-\mu} B / X 1/2 + a = X − μ . The odd kernel gives the edge bound. On rescaling the trace by L = X 1 / 2 − 2 a L=X^{1/2-2a} L = X 1/2 − 2 a its Fourier transform decays with exponent 3 / 2 3/2 3/2 . The large sieve on moving intervals of length ≍ X L \asymp\sqrt{XL} ≍ X L gives the relative squared error X O ( ν + ϵ ) ( X − a + D / X 1 / 2 + a ) X^{O(\nu+\epsilon)}(X^{-a}+D/X^{1/2+a}) X O ( ν + ϵ ) ( X − a + D / X 1/2 + a ) at denominator scale D D D . In the interior the Taylor parameter is p / ( w U ) ≪ X − ν \sqrt{p}/(w\sqrt{U})\ll X^{-\nu} p / ( w U ) ≪ X − ν for w ≥ X 1 / 2 − a + ν w\geq X^{1/2-a+\nu} w ≥ X 1/2 − a + ν . The continuous integral 2 π w e − 1 / ( 2 U ) 2\pi w e^{-1/(2U)} 2 π w e − 1/ ( 2 U ) cancels the zero mode. These estimates give the approximation in Lemma S5.3,
χ X ( ϕ ) 2 π w ∑ β ≠ 0 γ ^ β + ( β ) e ( β s ) e − 2 π 2 w 2 β 2 / U , χ X ( ϕ ) = χ ( X ω w / X ) . \chi_{X}(\phi)2\pi w\sum_{\beta\ne0}\widehat{\gamma}_{\beta}^{+}(\beta)e(\beta s)e^{-2\pi^{2}w^{2}\beta^{2}/U},\qquad\chi_{X}(\phi)=\chi(X^{\omega}w/\sqrt{X}). χ X ( ϕ ) 2 π w β = 0 ∑ γ β + ( β ) e ( β s ) e − 2 π 2 w 2 β 2 / U , χ X ( ϕ ) = χ ( X ω w / X ) .
Here χ \chi χ is a smooth cutoff from zero to one on [ 1 , 2 ] [1,2] [ 1 , 2 ] and γ β + \gamma_{\beta}^{+} γ β + restricts the original denominators to d ≤ D + d\leq D_{+} d ≤ D + . For the first sine projection use X ∣ β ∣ ≫ X a − ω \sqrt{X}|\beta|\gg X^{a-\omega} X ∣ β ∣ ≫ X a − ω . Both squared errors are O ( c ( log X ) − J ) O(c(\log X)^{-J}) O ( c ( log X ) − J ) off O ( X ( log X ) − J ) O(X(\log X)^{-J}) O ( X ( log X ) − J ) primes.
Nearby frequencies. Oscillation in the trace removes well-separated pairs. For the rest, open the Kloosterman sums and average over integers. Put b 0 = 1 / 2 − a b_{0}=1/2-a b 0 = 1/2 − a , v = p / X v=p/X v = p / X and u = s / X u=s/\sqrt{X} u = s / X . Each pair has amplitude proportional to χ X 2 4 v − u 2 / v \chi_{X}^{2}\sqrt{4v-u^{2}/v} χ X 2 4 v − u 2 / v times a Gaussian with exponent − C λ X 2 b 0 ( 4 v − u 2 ) ( β 2 + β ′ 2 ) / v 2 a -C_{\lambda}X^{2b_{0}}(4v-u^{2})(\beta^{2}+\beta'^{2})/v^{2a} − C λ X 2 b 0 ( 4 v − u 2 ) ( β 2 + β ′ 2 ) / v 2 a . Each derivative costs O ( X 2 ω ) O(X^{2\omega}) O ( X 2 ω ) times a weaker Gaussian. Gaussian decay and integration by parts in u u u allow us to impose
∣ β ∣ , ∣ β ′ ∣ ≤ X − b 0 + ω + ϵ , 0 < ∣ β − β ′ ∣ ≤ X − 1 / 2 + 2 ω + ϵ , |\beta|,|\beta'|\leq X^{-b_{0}+\omega+\epsilon},\qquad0<|\beta-\beta'|\leq X^{-1/2+2\omega+\epsilon}, ∣ β ∣ , ∣ β ′ ∣ ≤ X − b 0 + ω + ϵ , 0 < ∣ β − β ′ ∣ ≤ X − 1/2 + 2 ω + ϵ ,
with arbitrary power savings, also for one v v v derivative. Write β = A / ( M d ) \beta=A/(Md) β = A / ( M d ) , β ′ = A ′ / ( M e ) \beta'=A'/(Me) β ′ = A ′ / ( M e ) with M M M containing the fixed shifts. Then 0 < ∣ A ∣ , ∣ A ′ ∣ ≪ g J = X 2 ω + ϵ 0<|A|,|A'|\ll_{g}J=X^{2\omega+\epsilon} 0 < ∣ A ∣ , ∣ A ′ ∣ ≪ g J = X 2 ω + ϵ , d e ≫ g P = X 2 b 0 − 2 ω − 2 ϵ de\gg_{g}P=X^{2b_{0}-2\omega-2\epsilon} d e ≫ g P = X 2 b 0 − 2 ω − 2 ϵ and 0 < ∣ h ∣ = ∣ A e − A ′ d ∣ ≪ g H = X 2 b 0 − 1 / 2 + 4 ω + ϵ 0<|h|=|Ae-A'd|\ll_{g}H=X^{2b_{0}-1/2+4\omega+\epsilon} 0 < ∣ h ∣ = ∣ A e − A ′ d ∣ ≪ g H = X 2 b 0 − 1/2 + 4 ω + ϵ . For g 1 = ( d , e ) ≍ G g_{1}=(d,e)\asymp G g 1 = ( d , e ) ≍ G there are O g ( J 2 D + H / G ) O_{g}(J^{2}D_{+}H/G) O g ( J 2 D + H / G ) pairs: g 1 ∣ h g_{1}\mid h g 1 ∣ h , and A , A ′ , d / g 1 , h / g 1 A,A',d/g_{1},h/g_{1} A , A ′ , d / g 1 , h / g 1 determine e / g 1 e/g_{1} e / g 1 .
If ( d , e ) = 1 (d,e)=1 ( d , e ) = 1 , the unshifted numerators give h 0 = m e − m ′ d h_{0}=me-m'd h 0 = m e − m ′ d and
S ( m , m n ; d ) S ( m ′ , m ′ n ; e ) ‾ = S ( h 0 2 , n ; d e ) . S(m,mn;d)\overline{S(m',m'n;e)}=S(h_{0}^{2},n;de). S ( m , mn ; d ) S ( m ′ , m ′ n ; e ) = S ( h 0 2 , n ; d e ) .
Indeed r = x e − x ′ d ( m o d d e ) r=xe-x'd\pmod{de} r = x e − x ′ d ( mod d e ) runs through the units, and its inverse phase has numerator ( m 2 e 2 + m ′ 2 d 2 ) r ‾ ≡ h 0 2 r ‾ ( m o d d e ) (m^{2}e^{2}+m'^{2}d^{2})\overline{r}\equiv h_{0}^{2}\overline{r}\pmod{de} ( m 2 e 2 + m ′ 2 d 2 ) r ≡ h 0 2 r ( mod d e ) . In general, frequencies lie on the grid of period l = [ d , e ] l=[d,e] l = [ d , e ] with at most g 1 g_{1} g 1 primefactors, so the coefficients are O g ( g 1 ( d e ) − 1 / 2 ) O_{g}(g_{1}(de)^{-1/2}) O g ( g 1 ( d e ) − 1/2 ) . Call the sum F ( n , v ) F(n,v) F ( n , v ) , with phases at n n n and amplitudes at v v v .
For fixed v v v , use a smooth nonnegative majorant of 1 [ 1 , 2 ] ( n / X ) \mathbf{1}_{[1,2]}(n/X) 1 [ 1 , 2 ] ( n / X ) . Poisson summation bounds the kernel by O A ( ( 1 + X ∥ ξ − ξ ′ ∥ ) − A ) O_{A}((1+X\lVert\xi-\xi'\rVert)^{-A}) O A (( 1 + X ∥ ξ − ξ ′ ∥ ) − A ) . Differences between grids of periods l , l ′ l,l' l , l ′ run through the grid of period [ l , l ′ ] [l,l'] [ l , l ′ ] with multiplicity ( l , l ′ ) (l,l') ( l , l ′ ) . Off zero the integral test gives O ( l l ′ / X ) O(ll'/X) O ( l l ′ / X ) . Since g 1 l = d e g_{1}l=de g 1 l = d e , the bound per two pairs is O g ( 1 / ( X d e d ′ e ′ ) ) O_{g}(1/(Xde d'e')) O g ( 1/ ( X d e d ′ e ′ )) , giving O g ( ( J 2 D + + H ) 2 / ( X P 2 ) ) O_{g}((J^{2}D_{+}+H)^{2}/(XP^{2})) O g (( J 2 D + + H ) 2 / ( X P 2 )) .
At a coincident frequency of reduced denominator q q q we have l / q ∣ g 1 l/q\mid g_{1} l / q ∣ g 1 : the numerator is a unit where the exponents of d , e d,e d , e differ. For g 1 ≍ G g_{1}\asymp G g 1 ≍ G , choosing l / q , d , e , A , A ′ l/q,d,e,A,A' l / q , d , e , A , A ′ gives at most O g , ϵ ( J 2 G X ϵ ) O_{g,\epsilon}(J^{2}GX^{\epsilon}) O g , ϵ ( J 2 G X ϵ ) pairs per frequency. Each has squared coefficient sum O g ( G P − 3 ) O_{g}(GP^{-3}) O g ( G P − 3 ) . Cauchy–Schwarz and G ≪ H G\ll H G ≪ H give O g , ϵ ( X ϵ J 2 D + + H 2 P − 3 ) O_{g,\epsilon}(X^{\epsilon}J^{2}D_{+}+H^{2}P^{-3}) O g , ϵ ( X ϵ J 2 D + + H 2 P − 3 ) after the logarithmic cost of summing the blocks.
One v v v derivative costs X 4 ω X^{4\omega} X 4 ω in these bounds. The inequality sup ∣ f ∣ 2 ≪ ∥ f ∥ 2 2 + ∥ f ∥ 2 ∥ f ′ ∥ 2 \sup|f|^2 \ll\|f\|_2^2+\|f\|_2\|f'\|_2 sup ∣ f ∣ 2 ≪ ∥ f ∥ 2 2 + ∥ f ∥ 2 ∥ f ′ ∥ 2 in v v v and Cauchy–Schwarz in n n n cost X 2 ω X^{2\omega} X 2 ω in the mean square and let us set v = p / X v=p/X v = p / X . The resulting bound is O g , λ ( X − 1 − 2 a + O ( ω + ε ) + X a − 3 / 2 + O ( ω + ε ) ) O_{g,\lambda}(X^{-1-2a+O(\omega+\varepsilon)}+X^{a-3/2+O(\omega+\varepsilon)}) O g , λ ( X − 1 − 2 a + O ( ω + ε ) + X a − 3/2 + O ( ω + ε ) ) . Relative to c 2 c^2 c 2 the exponents are − 4 μ -4\mu − 4 μ and − 2 μ -2\mu − 2 μ before losses. Choose ω , ε \omega,\varepsilon ω , ε small in terms of μ \mu μ to get O ( X − μ ) O(X^{-\mu}) O ( X − μ ) . Markov bounds the primes with a cross term above c ( log X ) − J c(\log X)^{-J} c ( log X ) − J by O ( X 1 − μ ( log X ) 2 J ) O(X^{1-\mu}(\log X)^{2J}) O ( X 1 − μ ( log X ) 2 J ) . At equal trace frequencies we add the coefficients before squaring in the profile.
The endpoint a = 1 / 6 a=1/6 a = 1/6 . Now c ≍ X − 2 / 3 c\asymp X^{-2/3} c ≍ X − 2/3 and the preceding mean-square bounds reach the scale c 2 c^2 c 2 . In Lemma S5.4 the quadratic functional equation converts the class-number remainder at B = X 2 / 3 − ρ B=X^{2/3-\rho} B = X 2/3 − ρ into a dual sum of length O ( X 1 / 3 + ρ + ε ) O(X^{1/3+\rho+\varepsilon}) O ( X 1/3 + ρ + ε ) . Removing square factors supported on the omitted primes reduces the conductor. The cutoff condition ψ ^ ( − 1 / 2 ) = 0 \widehat{\psi}(-1/2)=0 ψ ( − 1/2 ) = 0 cancels the pole in the zero mode. In squared angular norm the edge costs O ( X − 7 / 6 + 7 ν + 3 ρ + ε ) O(X^{-7/6+7\nu+3\rho+\varepsilon}) O ( X − 7/6 + 7 ν + 3 ρ + ε ) and the nonzero dual modes cost O ( X − 1 + ρ + ε ) O(X^{-1+\rho+\varepsilon}) O ( X − 1 + ρ + ε ) on average by the large sieve. Both are smaller than c c c by a power. The averaged tail estimate controls g − g B 1 g-g_{B_1} g − g B 1 for B 1 = X 2 / 3 + ρ B_1=X^{2/3+\rho} B 1 = X 2/3 + ρ . The angular estimates in the proof of S5.3 control the difference of the two cutoffs for d ≤ 2 B d\le2B d ≤ 2 B . Subtracting this part bounds the block d > 2 B d>2B d > 2 B with its original phases.
Nearby frequencies have denominators of size X 1 / 3 + O ( ω + ε ) X^{1/3+O(\omega+\varepsilon)} X 1/3 + O ( ω + ε ) and determinants ∣ h ∣ , ∣ h ′ ∣ ≪ X 1 / 6 + O ( ω + ε ) |h|,|h'|\ll X^{1/6+O(\omega+\varepsilon)} ∣ h ∣ , ∣ h ′ ∣ ≪ X 1/6 + O ( ω + ε ) . At coincident integer frequencies Parseval gives O ( X − 3 / 2 + O ( ω + ε ) ) O(X^{-3/2+O(\omega+\varepsilon)}) O ( X − 3/2 + O ( ω + ε ) ) . For nonzero Poisson modes, O ( 1 / ( X d 1 d 2 d 3 d 4 ) ) O(1/(Xd_1d_2d_3d_4)) O ( 1/ ( X d 1 d 2 d 3 d 4 )) per quadruple gives a power saving on exceptional shared factors and discarded numerators. After separating shared primes, reciprocity gives a phase proportional to h 2 P 2 / P 1 + h ′ 2 P 1 / P 2 h^2P_2/P_1+h'^2P_1/P_2 h 2 P 2 / P 1 + h ′2 P 1 / P 2 , where P 1 = d 1 d 2 P_1=d_1d_2 P 1 = d 1 d 2 and P 2 = d 3 d 4 P_2=d_3d_4 P 2 = d 3 d 4 . The modulus is a squarefree factor j 0 j_0 j 0 of the Poisson numerator, of size X 1 / 3 X^{1/3} X 1/3 up to small powers. With h , h ′ , d 3 , d 4 h,h',d_3,d_4 h , h ′ , d 3 , d 4 fixed, the phase has two simple poles in d 1 d_1 d 1 . Weil’s bound and completion cost O ε ( X ε ( 1 + D + / j 0 ) / j 0 ) O_\varepsilon(X^\varepsilon(1+D_+/j_0)/\sqrt{j_0}) O ε ( X ε ( 1 + D + / j 0 ) / j 0 ) . The determinants, second pair and numerator cost X X X , and the four coefficients supply X − 8 / 3 X^{-8/3} X − 8/3 , up to small powers. Thus X 1 + 1 / 6 − 8 / 3 X^{1+1/6-8/3} X 1 + 1/6 − 8/3 saves a power over c 2 ≍ X − 4 / 3 c^2\asymp X^{-4/3} c 2 ≍ X − 4/3 . The same bound for one v v v derivative lets us set v = p / X v=p/X v = p / X . Markov gives O ( c X − ξ ) O(cX^{-\xi}) O ( c X − ξ ) outside O ( X 1 − ξ ) O(X^{1-\xi}) O ( X 1 − ξ ) primes for some ξ > 0 \xi>0 ξ > 0 .
Recovering the profile. The truncated diagonal is O g ( c log 3 X ) O_g(c\log^3 X) O g ( c log 3 X ) . In the short range the omitted angular region costs O g ( c X − ω log 3 X + c 3 / 2 ) O_g(cX^{-\omega}\log^3 X+c^{3/2}) O g ( c X − ω log 3 X + c 3/2 ) and the diagonal above D + D_+ D + costs O g , ε ( X ε c / D + ) O_{g,\varepsilon}(X^\varepsilon\sqrt{c}/D_+) O g , ε ( X ε c / D + ) . Above the endpoint, the coefficient error in Lemma S5.2 is O g ( B − 1 log 4 B ) O_g(B^{-1}\log^4 B) O g ( B − 1 log 4 B ) in squared diagonal norm, so B c Bc B c gives a power margin. Use Cauchy–Schwarz for overlaps and approximation errors, then remove the first sine using its mass estimate. At a = 1 / 6 a=1/6 a = 1/6 , S5.4 restores the full heat norm using the dual remainder and the coefficient comparison below D + D_+ D + . For m + 1 ≤ U log X m+1\le\sqrt{U}\log X m + 1 ≤ U log X , the moment multiplier k m ( T ) k_m(T) k m ( T ) differs relatively from e − ( m + 1 ) 2 / U e^{-(m+1)^2/U} e − ( m + 1 ) 2 / U by O ( U − 1 / 2 log 3 X ) O(U^{-1/2}\log^3 X) O ( U − 1/2 log 3 X ) , including the effect of T = ∣ U ∣ T=|U| T = ∣ U ∣ . The remaining degrees are negligible by Gaussian decay as ∣ m g , p ( m ) ∣ + ∣ m g , p ( m ) ∣ ≪ X ε ( m + 1 ) |m_{g,p}(m)|+|m_{g,p}(m)|\ll X^\varepsilon(m+1) ∣ m g , p ( m ) ∣ + ∣ m g , p ( m ) ∣ ≪ X ε ( m + 1 ) . Thus Proposition 2.1 gives the centered count norm. Above the endpoint, projection and (14) replace g B g_B g B by g g g with a power saving. The same tail bound controls the change in mass at all lengths, including the endpoint, and the constant coefficient changes by O g ( B − 1 / 2 ) O_g(B^{-1/2}) O g ( B − 1/2 ) .
From the Fourier profile to sharp trace sums
By the Chinese remainder theorem a trace weight is a finite sum of products with local factors w ℓ , A = a ℓ L ℓ , A + b ℓ w_{\ell,A}=a_\ell L_{\ell,A}+b_\ell w ℓ , A = a ℓ L ℓ , A + b ℓ at finitely many primes and L ℓ , A L_{\ell,A} L ℓ , A elsewhere. Here a ℓ , b ℓ a_\ell,b_\ell a ℓ , b ℓ are real and periodic modulo ℓ ν ℓ \ell^{\nu_\ell} ℓ ν ℓ with ν ℓ ≥ 1 \nu_\ell\ge1 ν ℓ ≥ 1 at every modified prime. Conversely, expanding a product gives a combination of F 1 A ( J ) F^{(J)}_{1_A} F 1 A ( J ) : a term without L ℓ , A L_{\ell,A} L ℓ , A omits that prime from the class-number series.
Define the local pairing by
B ℓ , A ( w , z ) = ( 1 − ℓ − 2 ) ( ℓ ℓ + 1 w ^ ( 0 ) z ^ ( 0 ) ‾ + ∑ j ≥ 1 ℓ j ∑ b m o d ℓ j ∗ w ^ ( b / ℓ j ) z ^ ( b / ℓ j ) ‾ ) . (16) \mathcal{B}_{\ell,A}(w,z)=(1-\ell^{-2})\left(\frac{\ell}{\ell+1}\widehat{w}(0)\overline{\widehat{z}(0)}+\sum_{j\ge1}\ell^j\sum_{b\bmod\ell^j}^{*}\widehat{w}(b/\ell^j)\overline{\widehat{z}(b/\ell^j)}\right). \tag*{(16)} B ℓ , A ( w , z ) = ( 1 − ℓ − 2 ) ( ℓ + 1 ℓ w ( 0 ) z ( 0 ) + j ≥ 1 ∑ ℓ j b mod ℓ j ∑ ∗ w ( b / ℓ j ) z ( b / ℓ j ) ) . (16)
It is real for real weights. Equation (10) gives B ℓ , A ( L ℓ , A , L ℓ , A ) = 1 \mathcal{B}_{\ell,A}(L_{\ell,A},L_{\ell,A})=1 B ℓ , A ( L ℓ , A , L ℓ , A ) = 1 . For products take the product of the local pairings over ℓ ∣ M \ell\mid M ℓ ∣ M , and extend bilinearly to sums. This defines B r ( g , h ) \mathcal{B}_r(g,h) B r ( g , h ) for A ≡ r ( m o d M ) A\equiv r\pmod M A ≡ r ( mod M ) , since the local computation below uses only the residue of A A A modulo the common period.
Computing the local pairing. Fix ℓ \ell ℓ and write q = ℓ v q=\ell^v q = ℓ v , v ≥ 1 v\ge1 v ≥ 1 , for the common period. For j ≤ v j\le v j ≤ v the coefficients are obtained from the class means of L ℓ , A L_{\ell,A} L ℓ , A . The mean on R m o d q R\bmod q R mod q is
1 1 + ℓ − 1 ( ∑ i = 0 v − 1 ρ i ( R ) ℓ i + ρ v ( R ) q ( 1 − ℓ − 1 ) ) . \frac{1}{1+\ell^{-1}}\left(\sum_{i=0}^{v-1}\frac{\rho_i(R)}{\ell^i}+\frac{\rho_v(R)}{q(1-\ell^{-1})}\right). 1 + ℓ − 1 1 ( i = 0 ∑ v − 1 ℓ i ρ i ( R ) + q ( 1 − ℓ − 1 ) ρ v ( R ) ) .
where ρ i ( R ) \rho_i(R) ρ i ( R ) counts roots modulo ℓ i \ell^i ℓ i . Each lift of a root above level v v v determines one lift of the trace, giving this mean. For j > v j>v j > v , put f ( u ) = u + A / u f(u)=u+A/u f ( u ) = u + A / u . The root series gives
w ^ ( b / ℓ j ) = ℓ − 2 j 1 − ℓ − 2 ∑ u m o d ℓ j ∗ a ℓ ( f ( u ) ) e ( − b f ( u ) / ℓ j ) ( ℓ ∤ b ) . \widehat{w}(b/\ell^j)=\frac{\ell^{-2j}}{1-\ell^{-2}}\sum_{u\bmod\ell^j}^{*}a_\ell(f(u))e(-bf(u)/\ell^j)\qquad(\ell\nmid b). w ( b / ℓ j ) = 1 − ℓ − 2 ℓ − 2 j u mod ℓ j ∑ ∗ a ℓ ( f ( u )) e ( − b f ( u ) / ℓ j ) ( ℓ ∤ b ) .
Indeed only the terms of the root series at levels j j j and above contribute. For j ≥ 2 v j\ge2v j ≥ 2 v , split u u u modulo ℓ ⌈ j / 2 ⌉ \ell^{\lceil j/2\rceil} ℓ ⌈ j /2 ⌉ and sum the lifts. The multiplier is constant on the lifts and the phase forces u 2 ≡ A ( m o d ℓ ⌊ j / 2 ⌋ ) u^2\equiv A\pmod{\ell^{\lfloor j/2\rfloor}} u 2 ≡ A ( mod ℓ ⌊ j /2 ⌋ ) . There are at most four unit roots at this modulus, including at 2 2 2 . Thus the coefficient is O w , ℓ ( ℓ − 3 j / 2 ) O_{w,\ell}(\ell^{-3j/2}) O w , ℓ ( ℓ − 3 j /2 ) .
For z = a ℓ ′ L ℓ , A + b ℓ ′ z=a'_\ell L_{\ell,A}+b'_\ell z = a ℓ ′ L ℓ , A + b ℓ ′ , let N j N_j N j be the collision sum over unit pairs with f ( u ) ≡ f ( u ′ ) ( m o d ℓ j ) f(u)\equiv f(u')\pmod{\ell^j} f ( u ) ≡ f ( u ′ ) ( mod ℓ j ) , with weight a ℓ ( f ( u ) ) a ℓ ′ ( f ( u ′ ) ) a_\ell(f(u))a'_\ell(f(u')) a ℓ ( f ( u )) a ℓ ′ ( f ( u ′ )) . Additive orthogonality on primitive numerators gives the part above level v v v of the frequency sum inside (16) as
( 1 − ℓ − 1 ) ∑ j > v N j / ℓ 2 j − N v / ( ℓ q 2 ) ( 1 − ℓ − 2 ) 2 . (17) \frac{(1-\ell^{-1})\sum_{j>v}N_j/\ell^{2j}-N_v/(\ell q^2)}{(1-\ell^{-2})^2}. \tag*{(17)} ( 1 − ℓ − 2 ) 2 ( 1 − ℓ − 1 ) ∑ j > v N j / ℓ 2 j − N v / ( ℓ q 2 ) . (17)
The sum over j j j integrates v ℓ ( f ( u ) − f ( u ′ ) ) − v v_\ell(f(u)-f(u'))-v v ℓ ( f ( u ) − f ( u ′ )) − v over the matching classes modulo q q q , with their weights and Haar measure on Z ℓ 2 \mathbb{Z}_\ell^2 Z ℓ 2 . Since f ( u ) − f ( u ′ ) = ( u − u ′ ) ( u u ′ − A ) / ( u u ′ ) f(u)-f(u')=(u-u')(uu'-A)/(uu') f ( u ) − f ( u ′ ) = ( u − u ′ ) ( u u ′ − A ) / ( u u ′ ) , the involution u ′ ↦ A / u ′ u'\mapsto A/u' u ′ ↦ A / u ′ makes the two valuations have the same integral, preserving the classes of the traces and their weights. The sum is thus q − 2 q^{-2} q − 2 times the finite sum over matching unit pairs modulo q q q of their weight times
2 min { v , v ℓ ( u − u ′ ) } − v + 2 1 u = u ′ ( m o d q ) ℓ − 1 . (18) 2\min\{v,v_\ell(u-u')\}-v+\frac{2\,1_{u=u'\,(\mathrm{mod}\ q)}}{\ell-1}. \tag*{(18)} 2 min { v , v ℓ ( u − u ′ )} − v + ℓ − 1 2 1 u = u ′ ( mod q ) . (18)
On a diagonal pair of residue classes the extra valuation has mean 1 / ( ℓ − 1 ) 1/(\ell-1) 1/ ( ℓ − 1 ) . All these calculations use only A m o d q A\bmod q A mod q .
Proof of Theorem 6.1 . Averaging over residue systems. The short-length constant comes from the Fourier mass near zero. For two product weights, replace the squared coefficient in the proof of Theorem 5.2 by the product of the two coefficients, conjugating the second. The positive and negative frequencies combine to give a real profile. Include all modified primes among the primes ℓ ≤ L \ell\le L ℓ ≤ L held fixed. At a modified prime the term with denominator exponent zero is ( ℓ / ( ℓ + 1 ) ) w ^ ( 0 ) z ^ ( 0 ) (\ell/(\ell+1))\widehat{w}(0)\widehat{z}(0) ( ℓ / ( ℓ + 1 )) w ( 0 ) z ( 0 ) , by summing the powers of ℓ \ell ℓ in the numerator. At exponent j ≥ 1 j\ge1 j ≥ 1 the average over unit numerators gives the corresponding summand of (16). The Euler product becomes ζ ( 2 ) B r ( g , h ) \zeta(2)\mathcal{B}_r(g,h) ζ ( 2 ) B r ( g , h ) on the class A ≡ r ( m o d M ) A\equiv r\pmod M A ≡ r ( mod M ) . The uniform bounds of the local coefficients preserve the conditional mean error O g , h , M ( x 1 / 2 3 2 ) O_{g,h,M}(x^{1/2}3^2) O g , h , M ( x 1/2 3 2 ) . In the fourth moment the finitely many modified factors are uniformly bounded in their exponents, so the vanishing condition and divisor counts at the other primes give the same O g , h , M ( L − 2 ) O_{g,h,M}(L^{-2}) O g , h , M ( L − 2 ) estimate, also conditional on the designated class.
The resulting Z x Z_x Z x differs from ζ ( 2 ) B r ( g , h ) \zeta(2)B_r(g,h) ζ ( 2 ) B r ( g , h ) in conditional L 2 L^2 L 2 by O g , h , M ( ( log ( 1 / x ) ) − 1 / 2 ) O_{g,h,M}((\log(1/x))^{-1/2}) O g , h , M (( log ( 1/ x ) ) − 1/2 ) for 0 < x ≤ 1 / 2 0<x\le1/2 0 < x ≤ 1/2 . Its norm is bounded for larger x x x by periodicity and square-summability. In the Gaussian integral of Theorem 5.2 , the region b ( y ) ≥ c 1 / 4 b(y)\ge c^{1/4} b ( y ) ≥ c 1/4 and z ≤ c − 1 / 4 z\le c^{-1/4} z ≤ c − 1/4 gives c z / b ( y ) ≤ c 1 / 4 \sqrt{cz/b(y)}\le c^{1/4} cz / b ( y ) ≤ c 1/4 . Its complement has integral weight O ( c 1 / 8 ) O(c^{1/8}) O ( c 1/8 ) . Minkowski's inequality yields
E [ ∣ c A g , h ( c ) c − B r ( g , h ) 48 ∣ 2 | A ≡ r ( m o d M ) ] ≪ g , h , M 1 log ( 1 / c ) (19) \mathbb{E}\left[\left|\frac{c_A^{g,h}(c)}{c}-\frac{B_r(g,h)}{48}\right|^2\ \middle|\ A\equiv r\pmod M\right]\ll_{g,h,M}\frac{1}{\log(1/c)} \tag*{(19)} E c c A g , h ( c ) − 48 B r ( g , h ) 2 A ≡ r ( mod M ) ≪ g , h , M log ( 1/ c ) 1 (19)
for 0 < c ≤ 1 / 2 0<c\le1/2 0 < c ≤ 1/2 , with c A g , h c_A^{g,h} c A g , h the bilinear profile of Lemma 6.2. Extend by bilinearity to sums.
Averaging over primes. The transfer to primes uses Dirichlet characters. Group c A g , h ( c ) / c c_A^{g,h}(c)/c c A g , h ( c ) / c into terms H d ( A , c ) H_d(A,c) H d ( A , c ) by reduced denominator d d d . They depend on A m o d lcm ( M , d ) A\bmod\operatorname{lcm}(M,d) A mod lcm ( M , d ) . Integrating the Gaussian against σ \sigma σ gives O ( min ( 1 , c 3 / 2 / ∣ β ∣ 3 ) ) O(\min(1,c^{3/2}/|\beta|^3)) O ( min ( 1 , c 3/2 /∣ β ∣ 3 )) at β ≠ 0 \beta\ne0 β = 0 . The coefficient bounds then give
∣ H d ( A , c ) ∣ + ∣ c ∂ c H d ( A , c ) ∣ ≪ g , h , M τ ( d ) 2 min { c , ( d 2 c ) − 1 } . (20) |H_d(A,c)|+|c\partial_cH_d(A,c)|\ll_{g,h,M}\tau(d)^2\min\{\sqrt{c},(d^2\sqrt{c})^{-1}\}. \tag*{(20)} ∣ H d ( A , c ) ∣ + ∣ c ∂ c H d ( A , c ) ∣ ≪ g , h , M τ ( d ) 2 min { c , ( d 2 c ) − 1 } . (20)
Use c ( p ) = λ p − δ c(p)=\lambda p^{-\delta} c ( p ) = λ p − δ on ( X , 2 X ] (X,2X] ( X , 2 X ] and truncate at D = ⌊ X 5 / 12 ⌋ D=\lfloor X^{5/12}\rfloor D = ⌊ X 5/12 ⌋ . Since δ ≤ 2 / 3 \delta\le2/3 δ ≤ 2/3 , D c ( p ) ≫ λ X 1 / 12 D\sqrt{c(p)}\gg_\lambda X^{1/12} D c ( p ) ≫ λ X 1/12 and Q = M D 2 ≪ M X 5 / 6 Q=MD^2\ll_M X^{5/6} Q = M D 2 ≪ M X 5/6 . The tail O g , h , M ( log 3 ( 2 D ) / ( D c ( p ) ) ) O_{g,h,M}(\log^3(2D)/(D\sqrt{c(p)})) O g , h , M ( log 3 ( 2 D ) / ( D c ( p ) )) saves a power, as does the resulting error in the square since the full sum is O g , h , M ( log 3 ( 2 / c ( p ) ) ) O_{g,h,M}(\log^3(2/c(p))) O g , h , M ( log 3 ( 2/ c ( p ))) .
Expand the truncated centered square, multiply by the indicator of r m o d M r\bmod M r mod M , and group the terms by modulus b b b . For a product the modulus is lcm ( M , d , e ) \operatorname{lcm}(M,d,e) lcm ( M , d , e ) . Write V b ( a ; c ) V_b(a;c) V b ( a ; c ) for the resulting function on the units modulo b b b , with b ≤ Q = M D 2 b\le Q=MD^2 b ≤ Q = M D 2 . From (20), both H d H_d H d and c ∂ c H d c\partial_cH_d c ∂ c H d are O g , h , M ( τ ( d ) 2 / d ) O_{g,h,M}(\tau(d)^2/d) O g , h , M ( τ ( d ) 2 / d ) . There are at most τ ( b ) 2 \tau(b)^2 τ ( b ) 2 pairs and d e ≥ b / M de\ge b/M d e ≥ b / M . The linear and constant terms obey the same bound, so
∥ V b ∥ ∞ + ∥ c ∂ c V b ∥ ∞ ≪ g , h , M τ ( b ) 6 / b . \|V_b\|_\infty+\|c\partial_cV_b\|_\infty\ll_{g,h,M}\tau(b)^6/b. ∥ V b ∥ ∞ + ∥ c ∂ c V b ∥ ∞ ≪ g , h , M τ ( b ) 6 / b .
Expand on the units in Dirichlet characters. Parseval gives the same bound for the Euclidean norm of the coefficients. Since p > Q p>Q p > Q for sufficiently large X X X , each character in the expansion can be replaced on primes by the primitive character inducing it. For primitive characters of conductor f f f , the norm of the combined coefficient vector is at most
≪ g , h , M ∑ b ≤ Q f ∣ b τ ( b ) 6 b ≪ g , h , M τ ( f ) 6 f ( log X ) C . \ll_{g,h,M}\sum_{\substack{b\le Q\\ f\mid b}}\frac{\tau(b)^6}{b}\ll_{g,h,M}\frac{\tau(f)^6}{f}(\log X)^C. ≪ g , h , M b ≤ Q f ∣ b ∑ b τ ( b ) 6 ≪ g , h , M f τ ( f ) 6 ( log X ) C .
for an absolute C C C . The same estimate holds after c ∂ c c\partial_c c ∂ c .
The principal character gives the exact Haar mean of the class-weighted square. For conductors f f f in a dyadic block R ≤ f < 2 R R\le f<2R R ≤ f < 2 R , the squared coefficient norm is O g , h , M ( R − 1 ( log X ) C ′ ) O_{g,h,M}(R^{-1}(\log X)^{C'}) O g , h , M ( R − 1 ( log X ) C ′ ) by the usual mean bound for divisor powers. The multiplicative large sieve [16 §7.5] applied to the prime indicator on any subinterval of ( X , 2 X ] (X,2X] ( X , 2 X ] , followed by Cauchy–Schwarz, bounds the contribution by O g , h , M ( ( log X ) C ′ ′ ( X / R + X R ) ) O_{g,h,M}((\log X)^{C''}(X/\sqrt{R}+\sqrt{XR})) O g , h , M (( log X ) C ′′ ( X / R + X R )) . For f ≤ ( log X ) A f\le(\log X)^A f ≤ ( log X ) A , Siegel–Walfisz [16 Corollary 5.29] gives arbitrary logarithmic savings for the nonprincipal characters. Take A A A sufficiently large and sum the dyadic blocks. With Q ≪ M X 5 / 6 Q\ll_M X^{5/6} Q ≪ M X 5/6 , the total is O g , h , M , J ( X / ( log X ) J ) O_{g,h,M,J}(X/(\log X)^J) O g , h , M , J ( X / ( log X ) J ) for any J J J . This estimate also allows the variation of c ( p ) c(p) c ( p ) . Apply the fixed-parameter bound first at c ( X ) c(X) c ( X ) and then, for each X ≤ y ≤ 2 X X\le y\le2X X ≤ y ≤ 2 X , to the derivative on ( y , 2 X ] (y,2X] ( y , 2 X ] , and integrate with ∣ c ′ ( y ) ∣ / c ( y ) |c'(y)|/c(y) ∣ c ′ ( y ) ∣/ c ( y ) . Its integral is bounded. Dividing by the relevant count in the specified class, (19) gives a mean squared error O g , h , M , δ , λ ( 1 / log X ) O_{g,h,M,\delta,\lambda}(1/\log X) O g , h , M , δ , λ ( 1/ log X ) .
Apply Lemma 6.2 to g , h , g + h g,h,g+h g , h , g + h and polarize, choosing δ < δ 0 < 1 / 2 \delta<\delta_0<1/2 δ < δ 0 < 1/2 in its first range. On the retained primes the left side of (12) differs from the normalized profile at c ( p ) c(p) c ( p ) by O ( ( log X ) − 2 ) O((\log X)^{-2}) O (( log X ) − 2 ) , including the floor in T T T by (20). Chebyshev’s inequality and the exceptional sets of the lemma give the count for η > ( log X ) − 1 / 2 \eta>(\log X)^{-1/2} η > ( log X ) − 1/2 . For smaller η \eta η the count is trivial.
A common prime set. It suffices to control diagonal norms for the given weights and all their pairwise sums. Enumerate the positive rational multipliers and let B j B_j B j be the bad set for the first j j j multipliers at tolerance 1 / j 1/j 1/ j . These sets increase and have relative density zero. Choose increasing X j X_j X j so that B j B_j B j has proportion at most 1 / j 1/j 1/ j up to every X ≥ X j X\ge X_j X ≥ X j in the class, and remove B j ∩ [ X j , X j + 1 ) B_j\cap[X_j,X_{j+1}) B j ∩ [ X j , X j + 1 ) . All removals up to X X X in the j j j th interval lie in B j B_j B j . The remaining set has relative density one. The diagonal squared norm increases with T T T by contraction under thinning, including for signed weights. Bracketing by rational multipliers and then polarizing gives (12) for every λ > 0 \lambda>0 λ > 0 on this set.
The sharp cutoff. For a weight g g g , consider the positive measure
ν p = p K 2 ∑ j ≥ 1 m g , p ( j ) 2 δ j 2 / K 2 . \nu_p=\frac{p}{K^2}\sum_{j\ge1}m_{g,p}(j)^2\delta_{j^2/K^2}. ν p = K 2 p j ≥ 1 ∑ m g , p ( j ) 2 δ j 2 / K 2 .
Here δ x \delta_x δ x is unit mass at x x x . By Proposition 2.1, the sum against κ j ( T ) \kappa_j(T) κ j ( T ) is ( p / K 2 ) ∥ P g − Z g Q T ∥ Q 2 (p/K^2)\lVert P^g-Z_gQ_T\rVert_Q^2 ( p / K 2 ) ∥ P g − Z g Q T ∥ Q 2 , which tends to λ B r ( g , g ) / 48 \lambda B_r(g,g)/48 λ B r ( g , g ) /48 . For the Sato–Tate parameters the product gives, for j = O ( K ) j=O(K) j = O ( K ) ,
log κ j ( T ) = − j ( j + 2 ) / T + O ( ( j + 1 ) 3 / T 2 ) . \log\kappa_j(T)=-j(j+2)/T+O((j+1)^3/T^2). log κ j ( T ) = − j ( j + 2 ) / T + O (( j + 1 ) 3 / T 2 ) .
Thus at u = j 2 / K 2 u=j^2/K^2 u = j 2 / K 2 the weights converge uniformly on compact intervals to e − u / λ e^{-u/\lambda} e − u / λ . There they are bounded below, so the masses are bounded. For j ≤ T j\le T j ≤ T and T ≤ s ≤ 2 T T\le s\le2T T ≤ s ≤ 2 T each term of the logarithmic derivative of κ j ( s ) \kappa_j(s) κ j ( s ) is ( 2 r + 3 ) / ( ( s − r ) ( s + r + 3 ) ) ≥ ( 2 r + 3 ) / ( 12 T 2 ) (2r+3)/((s-r)(s+r+3))\ge(2r+3)/(12T^2) ( 2 r + 3 ) / (( s − r ) ( s + r + 3 )) ≥ ( 2 r + 3 ) / ( 12 T 2 ) , where 0 ≤ r < j 0\le r<j 0 ≤ r < j . Integrating gives κ j ( T ) ≤ e − j 2 / ( 12 T ) κ j ( 2 T ) \kappa_j(T)\le e^{-j^2/(12T)}\kappa_j(2T) κ j ( T ) ≤ e − j 2 / ( 12 T ) κ j ( 2 T ) . The weights vanish for j > T j>T j > T , and 2 T ≤ ⌊ 2 λ K 2 ⌋ 2T\le\lfloor2\lambda K^2\rfloor 2 T ≤ ⌊ 2 λ K 2 ⌋ . Hence the sum at 2 λ 2\lambda 2 λ bounds the weighted tail u > R u>R u > R by O ( e − R / ( 12 λ ) ) O(e^{-R/(12\lambda)}) O ( e − R / ( 12 λ ) ) .
Test along a vaguely convergent subsequence with continuous cutoffs on compact intervals, then let R R R tend to infinity using the tail bound. Each limit measure has Laplace transform λ B r ( g , g ) / 48 \lambda B_r(g,g)/48 λ B r ( g , g ) /48 . Multiplying by e − u e^{-u} e − u and mapping u u u to z = e − u z=e^{-u} z = e − u , the choices λ = 1 / ( n + 1 ) \lambda=1/(n+1) λ = 1/ ( n + 1 ) give the moments of ( B r ( g , g ) / 48 ) d z (B_r(g,g)/48)\,dz ( B r ( g , g ) /48 ) d z on [ 0 , 1 ] [0,1] [ 0 , 1 ] . Polynomials determine this measure. Hence ν p \nu_p ν p converges on compact intervals to ( B r ( g , g ) / 48 ) d u (B_r(g,g)/48)\,du ( B r ( g , g ) /48 ) d u . This measure has no atom at 1 1 1 , so the cutoff ( K − 2 ) 2 / K 2 → 1 (K-2)^2/K^2\to1 ( K − 2 ) 2 / K 2 → 1 gives the diagonal limit. Polarization proves (13).
The log loss at short lengths
To recover the log loss from the chi-square divergence, we use a quadratic expansion on counts where the likelihood ratio is close to one and bound the remaining counts separately.
Proposition 6.3. Fix 0 < η < 1 / 2 0<\eta<1/2 0 < η < 1/2 and L > 0 L>0 L > 0 . Uniformly for L p 1 / 3 ≤ T ≤ p 1 − η Lp^{1/3}\le T\le p^{1-\eta} L p 1/3 ≤ T ≤ p 1 − η , as p → ∞ p\to\infty p → ∞ ,
D K L ( P T ∥ Q T ) = ( 1 2 + o ( 1 ) ) χ 2 ( P T ∥ Q T ) + o ( T / p ) . D_{\mathrm{KL}}(P_T\Vert Q_T)=\left(\frac{1}{2}+o(1)\right)\chi^2(P_T\Vert Q_T)+o(T/p). D KL ( P T ∥ Q T ) = ( 2 1 + o ( 1 ) ) χ 2 ( P T ∥ Q T ) + o ( T / p ) .
Corollary 6.4. On the set P δ P_\delta P δ of Theorem 6.1, for every fixed λ > 0 \lambda>0 λ > 0 and T = ⌊ λ p 1 − δ ⌋ T=\lfloor\lambda p^{1-\delta}\rfloor T = ⌊ λ p 1 − δ ⌋ ,
p T D K L ( P T ∥ Q T ) ⟶ 1 96 . \frac{p}{T}D_{\mathrm{KL}}(P_T\Vert Q_T)\longrightarrow\frac{1}{96}. T p D KL ( P T ∥ Q T ) ⟶ 96 1 .
Proof of Proposition 6.3. Put u k = P T ( k ) / Q T ( k ) u_k=P_T(k)/Q_T(k) u k = P T ( k ) / Q T ( k ) and Ψ ( u ) = u log u − u + 1 \Psi(u)=u\log u-u+1 Ψ ( u ) = u log u − u + 1 , so that D K L ( P T ∥ Q T ) = ∑ k Q T ( k ) Ψ ( u k ) D_{\mathrm{KL}}(P_T\Vert Q_T)=\sum_k Q_T(k)\Psi(u_k) D KL ( P T ∥ Q T ) = ∑ k Q T ( k ) Ψ ( u k ) . One has 0 ≤ Ψ ( u ) ≤ ( u − 1 ) 2 0\le\Psi(u)\le(u-1)^2 0 ≤ Ψ ( u ) ≤ ( u − 1 ) 2 , and Ψ ( u ) = 1 2 ( u − 1 ) 2 ( 1 + O ( ∣ u − 1 ∣ ) ) \Psi(u)=\frac{1}{2}(u-1)^2(1+O(|u-1|)) Ψ ( u ) = 2 1 ( u − 1 ) 2 ( 1 + O ( ∣ u − 1∣ )) for ∣ u − 1 ∣ ≤ 1 / 2 |u-1|\le1/2 ∣ u − 1∣ ≤ 1/2 . For T ≤ p 9 / 20 T\le p^{9/20} T ≤ p 9/20 every count admits a one-sided interval of length ℓ = p − 1 / 2 + ε \ell=p^{-1/2+\varepsilon} ℓ = p − 1/2 + ε from x = k / T x=k/T x = k / T toward the farther endpoint y y y . On that interval f = ( 1 − u ) x + u y f=(1-u)x+uy f = ( 1 − u ) x + u y with u ≤ 2 ℓ u\le2\ell u ≤ 2 ℓ , so D ( x ∥ f ) ≤ − log ( 1 − u ) ≪ ℓ D(x\Vert f)\le-\log(1-u)\ll\ell D ( x ∥ f ) ≤ − log ( 1 − u ) ≪ ℓ for Bernoulli laws. The binomial likelihood is at least m exp ( − C T ℓ ) m\exp(-CT\ell) m exp ( − C T ℓ ) there, where m m m is its maximum. Integrate the masses of its superlevel intervals as below. For heights above m exp ( − C T ℓ ) m\exp(-CT\ell) m exp ( − C T ℓ ) use the mass at that height as an upper bound. The short-interval theorem then gives u k = 1 + O J ( ( log p ) − J + T ℓ ) u_k=1+O_J((\log p)^{-J}+T\ell) u k = 1 + O J (( log p ) − J + T ℓ ) uniformly in k k k . Take ε < 1 / 20 \varepsilon<1/20 ε < 1/20 and use the expansion of Ψ \Psi Ψ to finish this case. For T > p 9 / 20 T > p^{9/20} T > p 9/20 put c = T / p c = T/p c = T / p , choose ε > 0 \varepsilon> 0 ε > 0 small in terms of η \eta η , and put ϑ = p 3 ε c + p − 1 / 2 + 2 ε \vartheta= p^{3\varepsilon}c + p^{-1/2+2\varepsilon} ϑ = p 3 ε c + p − 1/2 + 2 ε . Call k k k a bulk count when k ^ ( 1 − k ^ ) ≥ ϑ \hat{k}(1-\hat{k}) \geq\vartheta k ^ ( 1 − k ^ ) ≥ ϑ for k ^ = k / T \hat{k} = k/T k ^ = k / T , and an edge count otherwise.
For a bulk count the function f ↦ b T , f ( k ) f \mapsto b_{T,f}(k) f ↦ b T , f ( k ) is unimodal with maximum m m m at k ^ \hat{k} k ^ . Its superlevel sets I s I_s I s are intervals, and P T ( k ) P_T(k) P T ( k ) and Q T ( k ) Q_T(k) Q T ( k ) are the integrals over 0 < s < m 0 < s < m 0 < s < m of the masses of I s I_s I s under the trace law and under the Sato–Tate law. Since the relative entropy of two Bernoulli laws of parameters k ^ \hat{k} k ^ and f f f is at most ( f − k ^ ) 2 / ( f ( 1 − f ) ) (f-\hat{k})^2/(f(1-f)) ( f − k ^ ) 2 / ( f ( 1 − f )) , the interval ∣ f − k ^ ∣ ≤ 1 2 p − 1 / 2 + ε |f-\hat{k}| \leq\frac{1}{2}p^{-1/2+\varepsilon} ∣ f − k ^ ∣ ≤ 2 1 p − 1/2 + ε lies in the superlevel set of height m e − C p − 1 + 2 ε T / ( k ^ ( 1 − k ^ ) ) me^{-Cp^{-1+2\varepsilon}T/(\hat{k}(1-\hat{k}))} m e − C p − 1 + 2 ε T / ( k ^ ( 1 − k ^ )) . The bulk threshold keeps the interval away from the endpoints. Let s ∗ s_* s ∗ be the largest s s s for which I s I_s I s has length at least p − 1 / 2 + ε p^{-1/2+\varepsilon} p − 1/2 + ε . Then m − s ∗ ≪ m p − 1 + 2 ε T / ( k ^ ( 1 − k ^ ) ) ≤ m p − ε m-s_* \ll mp^{-1+2\varepsilon}T/(\hat{k}(1-\hat{k})) \leq mp^{-\varepsilon} m − s ∗ ≪ m p − 1 + 2 ε T / ( k ^ ( 1 − k ^ )) ≤ m p − ε .
For s ≤ s ∗ s \leq s_* s ≤ s ∗ the two masses of I s I_s I s agree up to a factor 1 + O J ( ( log p ) − J ) 1+O_J((\log p)^{-J}) 1 + O J (( log p ) − J ) by [9 Theorem 1.3] . For s > s ∗ s > s_* s > s ∗ each is at most its value at s ∗ s_* s ∗ , and Q T ( k ) Q_T(k) Q T ( k ) is at least s ∗ s_* s ∗ times the Sato–Tate mass of I s ∗ I_{s_*} I s ∗ . Hence ∣ u k − 1 ∣ ≪ J ( log p ) − J + p − ε |u_k-1| \ll_J (\log p)^{-J}+p^{-\varepsilon} ∣ u k − 1∣ ≪ J ( log p ) − J + p − ε on the bulk.
For the edge, Ψ ( u ) ≤ ( u − 1 ) 2 ≤ 2 u 2 + 2 \Psi(u) \leq(u-1)^2 \leq2u^2+2 Ψ ( u ) ≤ ( u − 1 ) 2 ≤ 2 u 2 + 2 . So the edge counts contribute to either divergence at most twice the sum of P T ( k ) 2 / Q T ( k ) P_T(k)^2/Q_T(k) P T ( k ) 2 / Q T ( k ) plus twice the sum of Q T ( k ) Q_T(k) Q T ( k ) over the edge. The second sum is O ( ϑ 3 / 2 + T − 3 / 2 ) O(\vartheta^{3/2}+T^{-3/2}) O ( ϑ 3/2 + T − 3/2 ) , the last term accounting for the counts 0 0 0 and T T T . By Cauchy–Schwarz at each count,
P T ( k ) 2 ≤ P F ( k ) P 1 ( k ) , P 1 ( k ) ≪ Q T ( k ) ( 1 + Δ p m T , k ) . P_T(k)^2 \leq P^F(k)P^1(k), \qquad P^1(k) \ll Q_T(k)(1+\Delta_p m_{T,k}). P T ( k ) 2 ≤ P F ( k ) P 1 ( k ) , P 1 ( k ) ≪ Q T ( k ) ( 1 + Δ p m T , k ) .
One has F ( t ) ≪ log p ( log log p ) 2 F(t) \ll\log p(\log\log p)^2 F ( t ) ≪ log p ( log log p ) 2 , by L ( 1 , χ ) ≪ log p L(1,\chi) \ll\log p L ( 1 , χ ) ≪ log p and the bound σ − 1 ( r ) 2 \sigma_{-1}(r)^2 σ − 1 ( r ) 2 for the finite factor. This gives
∑ e d g e P T ( k ) 2 Q T ( k ) ≪ ( log p ) 3 ∑ e d g e Q T ( k ) ( 1 + Δ p 2 m T , k 2 ) ≪ ( log p ) 3 ( ϑ 3 / 2 + T − 3 / 2 + c ϑ + T 1 / 2 p − 1 ) , \sum_{\mathrm{edge}} \frac{P_T(k)^2}{Q_T(k)} \ll(\log p)^3 \sum_{\mathrm{edge}} Q_T(k)(1+\Delta_p^2m_{T,k}^2) \ll(\log p)^3(\vartheta^{3/2}+T^{-3/2}+c\sqrt{\vartheta}+T^{1/2}p^{-1}), edge ∑ Q T ( k ) P T ( k ) 2 ≪ ( log p ) 3 edge ∑ Q T ( k ) ( 1 + Δ p 2 m T , k 2 ) ≪ ( log p ) 3 ( ϑ 3/2 + T − 3/2 + c ϑ + T 1/2 p − 1 ) ,
by the bounds for Q T ( k ) Q_T(k) Q T ( k ) and m T , k m_{T,k} m T , k . After division by c c c the terms save powers: ϑ 3 / 2 / c ≪ L p 9 ε / 2 − η / 2 + p − 1 / 5 + 3 ε \vartheta^{3/2}/c \ll_L p^{9\varepsilon/2-\eta/2}+p^{-1/5+3\varepsilon} ϑ 3/2 / c ≪ L p 9 ε /2 − η /2 + p − 1/5 + 3 ε and p T − 5 / 2 ≪ L p − 1 / 8 pT^{-5/2}\ll_L p^{-1/8} p T − 5/2 ≪ L p − 1/8 . On the bulk, Ψ ( u k ) = 1 2 ( u k − 1 ) 2 ( 1 + o ( 1 ) ) \Psi(u_k)=\frac{1}{2}(u_k-1)^2(1+o(1)) Ψ ( u k ) = 2 1 ( u k − 1 ) 2 ( 1 + o ( 1 )) uniformly. Summing proves the proposition.
For the corollary, fix δ , λ \delta,\lambda δ , λ as in Theorem 6.1. The length ⌊ λ p 1 − δ ⌋ \lfloor\lambda p^{1-\delta}\rfloor ⌊ λ p 1 − δ ⌋ belongs to the range of the proposition with η = δ / 2 \eta=\delta/2 η = δ /2 and L = λ / 2 L=\lambda/2 L = λ /2 for large p p p . Combining the proposition with p χ 2 / T → 1 / 48 p\chi^2/T\to1/48 p χ 2 / T → 1/48 on P δ P_\delta P δ gives the stated limit.
Prime level by character
The trace-weight pairing gives both the second moment in each nebentypus and the mixed moments between characters. For a Dirichlet character χ \chi χ mod ℓ \ell ℓ , write τ χ , k ( p ) \tau_{\chi,k}(p) τ χ , k ( p ) for the trace of T p T_p T p on S k ( Γ 0 ( ℓ ) , χ ) S_k(\Gamma_0(\ell),\chi) S k ( Γ 0 ( ℓ ) , χ ) multiplied by p − ( k − 1 ) / 2 p^{-(k-1)/2} p − ( k − 1 ) /2 . Set it to zero if χ ( − 1 ) ≠ ( − 1 ) k \chi(-1)\ne(-1)^k χ ( − 1 ) = ( − 1 ) k . These are the character components of the trace on Γ 1 ( ℓ ) \Gamma_1(\ell) Γ 1 ( ℓ ) .
Theorem 6.5 (Prime-level character traces). Fix an odd prime ℓ \ell ℓ , a unit class r r r mod ℓ \ell ℓ and 0 < δ ≤ 2 / 3 0<\delta\leq2/3 0 < δ ≤ 2/3 . There is a relative-density-one set of primes p ≡ r ( m o d ℓ ) p\equiv r\pmod{\ell} p ≡ r ( mod ℓ ) on which, for K = p ( 1 − δ ) / 2 K=p^{(1-\delta)/2} K = p ( 1 − δ ) /2 and all characters χ , ψ \chi,\psi χ , ψ mod ℓ \ell ℓ ,
48 K 2 ∑ 3 ≤ k ≤ K τ χ , k ( p ) τ ψ , k ( p ) ‾ ⟶ ( ℓ + 1 ) ( 1 χ = ψ + χ ( r ) 1 ψ = χ ‾ ) − ( ℓ − 1 ) 1 χ = ψ = 1 . (21) \frac{48}{K^2}\sum_{3\leq k\leq K}\tau_{\chi,k}(p)\overline{\tau_{\psi,k}(p)}
\longrightarrow(\ell+1)(1_{\chi=\psi}+\chi(r)1_{\psi=\overline{\chi}})-(\ell-1)1_{\chi=\psi=1}. \tag*{(21)} K 2 48 3 ≤ k ≤ K ∑ τ χ , k ( p ) τ ψ , k ( p ) ⟶ ( ℓ + 1 ) ( 1 χ = ψ + χ ( r ) 1 ψ = χ ) − ( ℓ − 1 ) 1 χ = ψ = 1 . (21)
The diagonal is ℓ + 3 \ell+3 ℓ + 3 for the trivial character, ( ℓ + 1 ) ( 1 + χ ( r ) ) (\ell+1)(1+\chi(r)) ( ℓ + 1 ) ( 1 + χ ( r )) for the quadratic character, and ℓ + 1 \ell+1 ℓ + 1 for a nonreal character.
Corollary 6.6. On the set of Theorem 6.5, for every fixed λ > 0 \lambda>0 λ > 0 and T = ⌊ λ p 1 − δ ⌋ T=\lfloor\lambda p^{1-\delta}\rfloor T = ⌊ λ p 1 − δ ⌋ ,
48 K 2 ∑ 3 ≤ k ≤ K ∣ τ k ( ℓ ) ∣ 2 , 48 p T χ 2 ( P T Y 1 ∥ Q T ) ⟶ ( ℓ − 1 ) ( ℓ + ( ℓ + 1 ) 1 r = 1 ) . \frac{48}{K^2}\sum_{3\leq k\leq K}|\tau_k^{(\ell)}|^2,\qquad\frac{48p}{T}\chi^2(P_T^{Y_1}\Vert Q_T)\longrightarrow(\ell-1)(\ell+(\ell+1)1_{r=1}). K 2 48 3 ≤ k ≤ K ∑ ∣ τ k ( ℓ ) ∣ 2 , T 48 p χ 2 ( P T Y 1 ∥ Q T ) ⟶ ( ℓ − 1 ) ( ℓ + ( ℓ + 1 ) 1 r = 1 ) .
Proof of Theorem 6.5 and Corollary 6.6. We compute the pairing for fixed Frobenius eigenvalues modulo ℓ \ell ℓ , then take character sums. Put L = L ℓ , A L=L_{\ell,A} L = L ℓ , A and n = ℓ − 1 n=\ell-1 n = ℓ − 1 at determinant A A A . For a ∈ F ℓ × a\in\mathbb{F}_{\ell}^{\times} a ∈ F ℓ × choose a unit lift and put
W a ( R ) = n ( L ( R ) 1 R ≡ a + A / a ( ℓ ) + ℓ ( L ( R ) − 1 ) 1 A ≡ a 2 ( ℓ ) 1 a 2 − a R + A ≡ 0 ( ℓ 2 ) ) . W_a(R)=n\left(L(R)1_{R\equiv a+A/a\;(\ell)}+\ell(L(R)-1)1_{A\equiv a^2\;(\ell)}1_{a^2-aR+A\equiv0\;(\ell^2)}\right). W a ( R ) = n ( L ( R ) 1 R ≡ a + A / a ( ℓ ) + ℓ ( L ( R ) − 1 ) 1 A ≡ a 2 ( ℓ ) 1 a 2 − a R + A ≡ 0 ( ℓ 2 ) ) .
The last condition, on the repeated-root class, is independent of the lift. Let g χ g_\chi g χ have local factor n − 1 ∑ a χ ( a ) W a n^{-1}\sum_a\chi(a)W_a n − 1 ∑ a χ ( a ) W a at ℓ \ell ℓ and the usual factors elsewhere. By [20 Theorem 10, (43)–(44)] , an elliptic order with index prime to ℓ \ell ℓ contributes the sum of χ ( a ) \chi(a) χ ( a ) over roots modulo ℓ \ell ℓ . When ℓ \ell ℓ divides the index, the repeated root lifts modulo ℓ 2 \ell^2 ℓ 2 and receives the additional factor ℓ \ell ℓ . Restricting to these orders removes the first term of the local class-number sum, giving L − 1 L-1 L − 1 as in Supplement S6. The hyperbolic term gives, in matching parity,
τ χ , k ( p ) = − p m g χ , p ( k − 2 ) − ( 1 + χ ( p ) ) p − ( k − 1 ) / 2 . \tau_{\chi,k}(p)=-\sqrt{p}\,m g_{\chi,p}(k-2)-(1+\chi(p))p^{-(k-1)/2}. τ χ , k ( p ) = − p m g χ , p ( k − 2 ) − ( 1 + χ ( p )) p − ( k − 1 ) /2 .
In the other parity both the trace and the moment vanish, since W a ( − R ) = W − a ( R ) W_a(-R)=W_{-a}(R) W a ( − R ) = W − a ( R ) . The squared corrections sum to O ℓ ( p − 2 ) O_\ell(p^{-2}) O ℓ ( p − 2 ) .
Scaling the root variable by a a a reduces the mean and diagonal pairing of W a W_a W a to those of W 1 W_1 W 1 at determinant A / a 2 A/a^2 A / a 2 . If a 2 ≢ r ( m o d ℓ ) a^2\not\equiv r\pmod{\ell} a 2 ≡ r ( mod ℓ ) , the roots are simple and W a W_a W a is ℓ \ell ℓ times its trace-class indicator. Otherwise, on classes modulo ℓ 2 \ell^2 ℓ 2 , the mean of W a W_a W a is n n n times the indicator modulo ℓ \ell ℓ plus ℓ \ell ℓ times the indicator modulo ℓ 2 \ell^2 ℓ 2 . The root-series means of § 6.1 give mean one in both cases and, for a repeated root, coefficient magnitudes 1 1 1 and 1 / ℓ 1/\ell 1/ ℓ at denominators ℓ \ell ℓ and ℓ 2 \ell^2 ℓ 2 . In (17) the ℓ \ell ℓ lifts all give the same trace modulo ℓ 2 \ell^2 ℓ 2 , with coefficient ℓ 2 − 1 \ell^2-1 ℓ 2 − 1 for L L L . Using ∑ u , u ′ min ( 2 , v ℓ ( u − u ′ ) ) = ℓ 2 + ℓ \sum_{u,u'}\min(2,v_\ell(u-u'))=\ell^2+\ell ∑ u , u ′ min ( 2 , v ℓ ( u − u ′ )) = ℓ 2 + ℓ in (18) gives higher-denominator energy ℓ \ell ℓ . Thus B ℓ , A ( W a , W a ) B_{\ell,A}(W_a,W_a) B ℓ , A ( W a , W a ) is n ℓ n\ell n ℓ in the simple case and n ( 2 ℓ + 1 ) n(2\ell+1) n ( 2 ℓ + 1 ) in the repeated case.
The weights satisfy W r / a = W a W_{r/a}=W_a W r / a = W a . Reindexing gives g χ = χ ( r ) g χ ˉ g_\chi=\chi(r)g_{\bar{\chi}} g χ = χ ( r ) g χ ˉ , and the trace corrections satisfy the same relation. Thus τ χ , k τ χ , k ‾ = χ ( p ) ∣ τ χ , k ∣ 2 \tau_{\chi,k}\overline{\tau_{\chi,k}}=\chi(p)|\tau_{\chi,k}|^2 τ χ , k τ χ , k = χ ( p ) ∣ τ χ , k ∣ 2 exactly. If b b b is neither a a a nor r / a r/a r / a , the weights have disjoint trace classes modulo ℓ \ell ℓ . In that case the cross Fourier sum is − 1 -1 − 1 at denominator ℓ \ell ℓ and zero at ℓ j \ell^j ℓ j for j ≥ 2 j\ge2 j ≥ 2 , by the Ramanujan sum on the difference of the trace classes. Inserting these values into (16) gives the single formula
B ℓ , A ( W a , W b ) = n ( ( ℓ + 1 ) ( 1 b = a + 1 b = r / a ) − 1 ) . (22) B_{\ell,A}(W_a,W_b)=n\bigl((\ell+1)(1_{b=a}+1_{b=r/a})-1\bigr). \tag*{(22)} B ℓ , A ( W a , W b ) = n ( ( ℓ + 1 ) ( 1 b = a + 1 b = r / a ) − 1 ) . (22)
The involution term in the character sum is ∑ a χ ( a ) ψ ( r / a ) ‾ = n χ ( r ) 1 ψ = χ ˉ \sum_a\chi(a)\overline{\psi(r/a)}=n\chi(r)1_{\psi=\bar{\chi}} ∑ a χ ( a ) ψ ( r / a ) = n χ ( r ) 1 ψ = χ ˉ , which gives the phase in (21). Apply Theorem 6.1 to the real and imaginary parts of all the weights, with M = ℓ 2 M=\ell^2 M = ℓ 2 , and extend the pairing by sesquilinearity. The constants depend only on r m o d ℓ r\bmod\ell r mod ℓ , so the finitely many prime classes modulo ℓ 2 \ell^2 ℓ 2 give the asserted set.
Summing over both characters gives the trace limit in the corollary. For the prediction limit, ∑ χ g χ \sum_\chi g_\chi ∑ χ g χ has local factor W 1 W_1 W 1 by character orthogonality, so the global weight is ( ℓ − 1 ) U (\ell-1)U ( ℓ − 1 ) U from (4). Its mass tends to one. The smoothed limit in Theorem 6.1 then gives the chi-square limit. □
In these units the dimension is ℓ 2 − 1 \ell^2-1 ℓ 2 − 1 [37 Section 2] . The two level-one copies count twice in the trivial-sector dimension and four times in the second moment, adding two to the difference. The remaining correction is ( ℓ + 1 ) ∑ χ ≠ 1 χ ( r ) (\ell+1)\sum_{\chi\ne1}\chi(r) ( ℓ + 1 ) ∑ χ = 1 χ ( r ) . For nonsquare r r r the quadratic trace vanishes and the mixed terms sum to zero. For square r ≠ 1 r\ne1 r = 1 the mixed sum is − 2 ( ℓ + 1 ) -2(\ell+1) − 2 ( ℓ + 1 ) . At fixed weight a Rankin–Selberg prime average counts common automorphic constituents after twisting. Of the twists by characters modulo ℓ \ell ℓ , the only nontrivial level-preserving one is the contragredient twist by χ ˉ \bar{\chi} χ ˉ for χ ≠ 1 \chi\ne1 χ = 1 [3 Sections 1 and 3] .
Variance and exceptional primes
At level one, the variances of both statistics in Theorem 6.1 , over all primes X < p ≤ 2 X X < p \le2X X < p ≤ 2 X , are asymptotic to explicit multiples of X − δ / 2 log X X^{-\delta/2}\log X X − δ /2 log X for every fixed 0 < δ ≤ 1 / 4 0 < \delta\le1/4 0 < δ ≤ 1/4 . The arithmetic factor is the same for the two statistics. The kernel in the second factor depends on the cutoff. See S8 for p χ 2 / T p\chi^2/T p χ 2 / T and S9 for the sharp trace sum at K = p ( 1 − δ ) / 2 K = p^{(1-\delta)/2} K = p ( 1 − δ ) /2 .
Corollary 6.7. Fix 0 < δ ≤ 2 / 3 0 < \delta\le2/3 0 < δ ≤ 2/3 and λ > 0 \lambda> 0 λ > 0 , and let T = ⌊ λ p 1 − δ ⌋ T = \lfloor\lambda p^{1-\delta}\rfloor T = ⌊ λ p 1 − δ ⌋ . Uniformly for X ≥ 2 X \ge2 X ≥ 2 and 0 < η ≤ 1 0 < \eta\le1 0 < η ≤ 1 , counting only primes p ≥ 5 p \ge5 p ≥ 5 for which T ≥ 1 T \ge1 T ≥ 1 ,
# { X < p ≤ 2 X : ∣ p T χ 2 ( P T ∥ Q T ) − 1 48 ∣ > η } ≪ δ , λ π ( X ) η 2 log X . \#\left\{X < p \le2X : \left|\frac{p}{T}\chi^2(P_T\|Q_T)-\frac{1}{48}\right|>\eta\right\}\ll_{\delta,\lambda}\frac{\pi(X)}{\eta^2\log X}. # { X < p ≤ 2 X : T p χ 2 ( P T ∥ Q T ) − 48 1 > η } ≪ δ , λ η 2 log X π ( X ) .
The same bound holds for p D K L ( P T ∥ Q T ) / T pD_{\mathrm{KL}}(P_T\|Q_T)/T p D KL ( P T ∥ Q T ) / T and 1 / 96 1/96 1/96 .
Proof. Apply Theorem 6.1 with g = h = F g=h=F g = h = F . On the retained primes p χ 2 / T ≪ log 3 ( 2 p ) p\chi^2/T\ll\log^3(2p) p χ 2 / T ≪ log 3 ( 2 p ) by the profile estimates in its proof. In Proposition 6.3 the bulk Taylor error can be taken as O ( ( log p ) − 4 ) O((\log p)^{-4}) O (( log p ) − 4 ) relative to χ 2 \chi^2 χ 2 , and the edge error is O ( ( T / p ) p − κ ) O((T/p)p^{-\kappa}) O (( T / p ) p − κ ) for some κ > 0 \kappa>0 κ > 0 , by its proof. Thus p D K L / T = 1 2 p χ 2 / T + O ( 1 / log p ) pD_{\mathrm{KL}}/T=\frac{1}{2}p\chi^2/T+O(1/\log p) p D KL / T = 2 1 p χ 2 / T + O ( 1/ log p ) there. The profile estimates remove at most O ( X ( log X ) − 3 ) O(X(\log X)^{-3}) O ( X ( log X ) − 3 ) primes, giving the same bound for log loss.
Short intervals and log loss for restricted families
Lemma 6.8 (Sato–Tate on short intervals). Let g g g be a weight from Theorem 6.1 , with g ( t ) ≥ 0 g(t)\ge0 g ( t ) ≥ 0 on the trace grid for the primes in the designated class. Assume its complete constant coefficient Z r Z_r Z r is positive. The normalized bias measure μ p g \mu_p^g μ p g satisfies
μ p g ( I ) = ( 1 + O g , M , ε , J ( ( log p ) − J ) ) ∫ I σ ( f ) d f \mu_p^g(I)=\left(1+O_{g,M,\varepsilon,J}((\log p)^{-J})\right)\int_I \sigma(f)\,df μ p g ( I ) = ( 1 + O g , M , ε , J (( log p ) − J ) ) ∫ I σ ( f ) df for every ε > 0 \varepsilon>0 ε > 0 , J ≥ 1 J\ge1 J ≥ 1 , and I ⊂ [ 0 , 1 ] I\subset[0,1] I ⊂ [ 0 , 1 ] of length at least p − 1 / 2 + ε p^{-1/2+\varepsilon} p − 1/2 + ε .
Proof. Expand the weight into terms F ( J 0 ) 1 A F^{(J_0)}1_A F ( J 0 ) 1 A and treat each trace progression t = t 0 + N a t=t_0+Na t = t 0 + N a as a separate Euler product average. In the local formula of [9 ] , Theorem 3.2 and Corollary 3.3 use trace t t t and determinant p p p . The mass is Δ p σ ( f t ) ∏ s f s ( t , p , 1 ) \Delta_p\sigma(f_t)\prod_s f_s(t,p,1) Δ p σ ( f t ) ∏ s f s ( t , p , 1 ) with the primes in J 0 J_0 J 0 omitted. The factor at p p p is 1 + O ( p − 1 ) 1+O(p^{-1}) 1 + O ( p − 1 ) uniformly and may be dropped at that relative cost.
Apply [9 ] , Theorem 4.2 to the single integer variable a a a , with d = k = 1 d=k=1 d = k = 1 , analytic scale ≍ p \asymp\sqrt p ≍ p , and polynomial ( t 0 + N a ) 2 − 4 p (t_0+Na)^2-4p ( t 0 + N a ) 2 − 4 p . Its content is bounded by N 2 N^2 N 2 . Its discriminant is nonzero and its values are negative and congruent to 0 or 1 modulo 4. At retained primes s ≠ p s\ne p s = p take the normalized matrix counts of trace t t t and determinant p p p as periodic approximants. At omitted primes both the factor and its approximants are one. Theorem 3.2 of that paper supplies the local bounds. The retained local means are at least ( 1 + s − 1 ) − 1 (1+s^{-1})^{-1} ( 1 + s − 1 ) − 1 by the root series, and outside N N N the means are one, since t t t runs through all residue classes. The primes dividing 2 p N ∏ s ∈ J 0 s 2pN\prod_{s\in J_0}s 2 pN ∏ s ∈ J 0 s may be included in its exceptional integer. The product of the means together with the progression factor 1 / N 1/N 1/ N is the complete constant coefficient of the term.
For s I = ∣ I ∣ s_I=|I| s I = ∣ I ∣ and H = sup I σ H=\sup_I\sigma H = sup I σ , concavity gives ∫ I σ ≥ s I H / 2 \int_I\sigma\ge s_IH/2 ∫ I σ ≥ s I H /2 . On every class of a m o d b a\bmod b a mod b the Riemann sum of the weights differs from ( N b ) − 1 ∫ I σ (Nb)^{-1}\int_I\sigma ( N b ) − 1 ∫ I σ by O N ( H / p ) O_N(H/\sqrt p) O N ( H / p ) , by bounded variation. Thus the total weight is ≍ N s I H \asymp_N s_IH ≍ N s I H , and condition (4.6) of that theorem holds with this weight as W ~ \widetilde W W . The sum of discrepancies is O N ( Q H / p ) O_N(QH/\sqrt p) O N ( Q H / p ) for Q = exp ( ( log log ( 2 p ) ) 2 ) Q=\exp((\log\log(2p))^2) Q = exp (( log log ( 2 p ) ) 2 ) . The square-class error is O N ( H / p ) O_N(H/\sqrt p) O N ( H / p ) : a fixed square class gives a fixed imaginary quadratic field containing ( t + t 2 − 4 p ) / 2 (t+\sqrt{t^2-4p})/2 ( t + t 2 − 4 p ) /2 , an algebraic integer of norm p p p . There are at most two ideals of norm p p p , each with at most six generators. Dividing
these errors by the total weight saves a power and gives an error O ( ( log p ) − J ) ∫ I σ O((\log p)^{-J})\int_I \sigma O (( log p ) − J ) ∫ I σ for the term. Summing the finitely many terms gives main mass Z r ∫ I σ Z_r\int_I \sigma Z r ∫ I σ . Evaluating at I = [ 0 , 1 ] I=[0,1] I = [ 0 , 1 ] and dividing by the actual mass gives the result.
Proposition 6.9. For g g g as in Lemma 6.8 let P T g = P g / Z g P_T^g=P^g/Z_g P T g = P g / Z g . Fix 0 < η < 1 / 2 0<\eta<1/2 0 < η < 1/2 , L > 0 L>0 L > 0 and J ≥ 1 J\ge1 J ≥ 1 . For some κ = κ ( η ) > 0 \kappa=\kappa(\eta)>0 κ = κ ( η ) > 0 , uniformly for L p 1 / 3 ≤ T ≤ p 1 − η L p^{1/3}\le T\le p^{1-\eta} L p 1/3 ≤ T ≤ p 1 − η ,
D K L ( P T g ∥ Q T ) = 1 2 χ 2 ( P T g ∥ Q T ) + O g , M , η , J , L ( ( log p ) − J χ 2 ( P T g ∥ Q T ) + T p p − κ ) . D_{\mathrm{KL}}(P_T^g\|Q_T)=\frac{1}{2}\chi^2(P_T^g\|Q_T)+O_{g,M,\eta,J,L}\left((\log p)^{-J}\chi^2(P_T^g\|Q_T)+\frac{T}{p}p^{-\kappa}\right). D KL ( P T g ∥ Q T ) = 2 1 χ 2 ( P T g ∥ Q T ) + O g , M , η , J , L ( ( log p ) − J χ 2 ( P T g ∥ Q T ) + p T p − κ ) . In particular, on the sets in Theorem 6.1 , the limit of p D K L ( P T g ∥ Q T ) / T pD_{\mathrm{KL}}(P_T^g\|Q_T)/T p D KL ( P T g ∥ Q T ) / T is B r ( g , g ) / ( 96 Z r 2 ) B_r(g,g)/(96Z_r^2) B r ( g , g ) / ( 96 Z r 2 ) .
Proof. Lemma 6.8 and the same superlevel argument give likelihood ratios 1 + O J ( ( log p ) − J ) 1+O_J((\log p)^{-J}) 1 + O J (( log p ) − J ) on every count for T ≤ p 9 / 20 T\le p^{9/20} T ≤ p 9/20 , and on the bulk for larger T T T . For larger T T T the edge estimate follows from P T g ≪ g , M P T P_T^g\ll_{g,M}P_T P T g ≪ g , M P T . Indeed L ℓ , p ≥ ( 1 + ℓ − 1 ) − 1 L_{\ell,p}\ge(1+\ell^{-1})^{-1} L ℓ , p ≥ ( 1 + ℓ − 1 ) − 1 by its root series, so ∣ F ( J 0 ) ∣ ≪ J 0 F \lvert F^{(J_0)}\rvert\ll_{J_0}F ∣ F ( J 0 ) ∣ ≪ J 0 F . The same ϑ \vartheta ϑ therefore gives a power saving after division by c = T / p c=T/p c = T / p . The bulk Taylor expansion of u log u − u + 1 u\log u-u+1 u log u − u + 1 gives the factor 1 / 2 1/2 1/2 with relative error O J ( ( log p ) − J ) O_J((\log p)^{-J}) O J (( log p ) − J ) . For the limit, take η = δ / 2 \eta=\delta/2 η = δ /2 and L = λ / 2 L=\lambda/2 L = λ /2 and use (12) on the diagonal divided by Z g 2 Z_g^2 Z g 2 , where Z g → Z r Z_g\to Z_r Z g → Z r by Lemma 6.2.
Corollary 6.10. On the sets of primes in Corollary 6.6, for every fixed λ > 0 \lambda>0 λ > 0 and T = ⌊ λ p 1 − δ ⌋ T=\lfloor\lambda p^{1-\delta}\rfloor T = ⌊ λ p 1 − δ ⌋ ,
p T D K L ( P T γ ∥ Q T ) ⟶ { ℓ ( ℓ − 1 ) / 96 , p ≢ 0 , 1 ( m o d ℓ ) , ( 2 ℓ + 1 ) ( ℓ − 1 ) / 96 , p ≡ 1 ( m o d ℓ ) . \frac{p}{T}D_{\mathrm{KL}}(P_T^\gamma\|Q_T)\longrightarrow
\begin{cases}
\ell(\ell-1)/96, & p\not\equiv0,1\pmod{\ell},\\
(2\ell+1)(\ell-1)/96, & p\equiv1\pmod{\ell}.
\end{cases} T p D KL ( P T γ ∥ Q T ) ⟶ { ℓ ( ℓ − 1 ) /96 , ( 2 ℓ + 1 ) ( ℓ − 1 ) /96 , p ≡ 0 , 1 ( mod ℓ ) , p ≡ 1 ( mod ℓ ) . Proof. The length T T T lies in the range of Proposition 6.9 with η = δ / 2 \eta=\delta/2 η = δ /2 and L = λ / 2 L=\lambda/2 L = λ /2 for large p p p . Combine it with the chi-square limits of Corollary 6.6.
The constants for arbitrary trace classes
For a fixed modulus M ≥ 2 M\ge2 M ≥ 2 , take p ≡ r ( m o d M ) p\equiv r\pmod M p ≡ r ( mod M ) with r r r a unit and restrict the trace to t ≡ t 0 ( m o d M ) t\equiv t_0\pmod M t ≡ t 0 ( mod M ) . The pairing reduces to counting pairs of roots at each q = ℓ v ∥ M q=\ell^v\Vert M q = ℓ v ∥ M . Let R ℓ \mathcal{R}_\ell R ℓ be the roots of u 2 − t 0 u + r u^2-t_0u+r u 2 − t 0 u + r modulo q q q , let h = ∣ R ℓ ∣ h=\lvert\mathcal{R}_\ell\rvert h = ∣ R ℓ ∣ , and let ρ i \rho_i ρ i count the roots modulo ℓ i \ell^i ℓ i , with ρ 0 = 1 \rho_0=1 ρ 0 = 1 . Set
B ℓ = 1 q ( 1 + ℓ − 1 ) ( ∑ i = 0 v − 1 ρ i ℓ i + h q ( 1 − ℓ − 1 ) ) , S ℓ = ∑ u , w ∈ R ℓ min { v , v ℓ ( u − w ) } . B_\ell=\frac{1}{q(1+\ell^{-1})}\left(\sum_{i=0}^{v-1}\frac{\rho_i}{\ell^i}+\frac{h}{q(1-\ell^{-1})}\right),\qquad S_\ell=\sum_{u,w\in\mathcal{R}_\ell}\min\{v,v_\ell(u-w)\}. B ℓ = q ( 1 + ℓ − 1 ) 1 ( i = 0 ∑ v − 1 ℓ i ρ i + q ( 1 − ℓ − 1 ) h ) , S ℓ = u , w ∈ R ℓ ∑ min { v , v ℓ ( u − w )} .
Here the summand for u = w u=w u = w is v v v . The local factor is
A ℓ = q φ ( q ) + ( 1 − ℓ − 1 ) ( 2 S ℓ − v h 2 ) + ( 2 h − h 2 ) / ℓ ( 1 − ℓ − 2 ) q 2 B ℓ 2 . (23) A_\ell=q\varphi(q)+\frac{(1-\ell^{-1})(2S_\ell-vh^2)+(2h-h^2)/\ell}{(1-\ell^{-2})q^2B_\ell^2}. \tag*{(23)} A ℓ = q φ ( q ) + ( 1 − ℓ − 2 ) q 2 B ℓ 2 ( 1 − ℓ − 1 ) ( 2 S ℓ − v h 2 ) + ( 2 h − h 2 ) / ℓ . (23)
Theorem 6.11. Fix M M M , r r r , t 0 t_0 t 0 as above and 0 < δ ≤ 2 / 3 0<\delta\le2/3 0 < δ ≤ 2/3 . There is a relative-density-one set of primes in the class r r r on which every fixed λ > 0 \lambda>0 λ > 0 and T = ⌊ λ p 1 − δ ⌋ T=\lfloor\lambda p^{1-\delta}\rfloor T = ⌊ λ p 1 − δ ⌋ give
p T χ 2 ( P T M ∥ Q T ) ⟶ 1 48 ∏ ℓ ∣ M A ℓ , \frac{p}{T}\chi^2(P_T^M\|Q_T)\longrightarrow\frac{1}{48}\prod_{\ell\mid M}A_\ell, T p χ 2 ( P T M ∥ Q T ) ⟶ 48 1 ℓ ∣ M ∏ A ℓ , p T D K L ( P T M ∥ Q T ) ⟶ 1 96 ∏ ℓ ∣ M A ℓ . \frac{p}{T}D_{\mathrm{KL}}(P_T^M\|Q_T)\longrightarrow\frac{1}{96}\prod_{\ell\mid M}A_\ell. T p D KL ( P T M ∥ Q T ) ⟶ 96 1 ℓ ∣ M ∏ A ℓ .
If each local weight is constant on its trace class, the product is M φ ( M ) M\varphi(M) M φ ( M ) . This includes odd ℓ \ell ℓ with v ℓ ( t 0 2 − 4 r ) < v v_\ell(t_0^2-4r)<v v ℓ ( t 0 2 − 4 r ) < v and ℓ = 2 \ell=2 ℓ = 2 with odd t 0 t_0 t 0 . At v = 1 v=1 v = 1 with a repeated root, (23) gives ℓ ( ℓ − 1 ) + 1 − ℓ − 2 \ell(\ell-1)+1-\ell^{-2} ℓ ( ℓ − 1 ) + 1 − ℓ − 2 , including 11 / 4 11/4 11/4 for even traces modulo 2. For example, t 0 ≡ 2 t_0\equiv2 t 0 ≡ 2 and r ≡ 1 ( m o d 9 ) r\equiv1\pmod9 r ≡ 1 ( mod 9 ) give A 3 = 54 + 216 / 121 A_3=54+216/121 A 3 = 54 + 216/121 .
Proof. In (16) use W = L ℓ , A 1 R ≡ t 0 ( m o d q ) / B ℓ W=L_{\ell,A1R\equiv t_0\pmod q}/B_\ell W = L ℓ , A 1 R ≡ t 0 ( mod q ) / B ℓ . The class mean formula gives the stated B ℓ > 0 B_\ell>0 B ℓ > 0 . Because W W W has mass one on a single class, every coefficient of denominator at most q q q has modulus one. Those terms, including the constant term, contribute q φ ( q ) q\varphi(q) q φ ( q ) after multiplication by 1 − ℓ − 2 1-\ell^{-2} 1 − ℓ − 2 . For the higher terms the unit pairs in (18) range over R ℓ 2 R_\ell^2 R ℓ 2 . Their sum is 2 S ℓ − v h 2 + 2 h / ( ℓ − 1 ) 2S_\ell-vh^2+2h/(\ell-1) 2 S ℓ − v h 2 + 2 h / ( ℓ − 1 ) , and N v = h 2 / B ℓ 2 N_v=h^2/B_\ell^2 N v = h 2 / B ℓ 2 . Formula (17) gives the correction in (23). The product of the local pairings gives the normalized chi-square limit by Theorem 6.1 , and Proposition 6.9 gives the KL limit.
Traces on Γ 0 ( N ) \Gamma_0(N) Γ 0 ( N )
The local pairing also gives the full and new trace moments at arbitrary fixed levels. For p ∤ N p\nmid N p ∤ N and even k ≥ 4 k\ge4 k ≥ 4 , let τ N , k 0 ( p ) \tau^0_{N,k}(p) τ N , k 0 ( p ) and τ N , k n e w ( p ) \tau^{\mathrm{new}}_{N,k}(p) τ N , k new ( p ) be the full and new T p T_p T p traces at level N N N , multiplied by p − ( k − 1 ) / 2 p^{-(k-1)/2} p − ( k − 1 ) /2 . For a prime ℓ \ell ℓ , write F ℓ ( ℓ , r ) F_\ell(\ell,r) F ℓ ( ℓ , r ) and B ℓ n e w ( ℓ , r ) B^{\mathrm{new}}_\ell(\ell,r) B ℓ new ( ℓ , r ) for the full diagonal and new mixed factors computed in S6. Let G N G_N G N be the full trace weight defined there and P T N = P G N / Z G N P^N_T=P G_N/ZG_N P T N = P G N / Z G N .
Theorem 6.12 (Mixed Hecke traces at fixed levels). Fix 1 / 6 ≤ a < 1 / 2 1/6\le a<1/2 1/6 ≤ a < 1/2 and a finite list of levels with least common multiple M M M . In every unit class r ( m o d M ) r\pmod M r ( mod M ) there is a common relative-density-one prime set on which, with K = p a K=p^a K = p a ,
48 K 2 ∑ 4 ≤ k ≤ K k e v e n ∣ τ N , k 0 ( p ) ∣ 2 ⟶ ∏ ℓ ∣ M F v ℓ ( N ) ( ℓ , r ) , \frac{48}{K^2}\sum_{\substack{4\le k\le K\\ k\ \mathrm{even}}} \lvert\tau^0_{N,k}(p)\rvert^2 \longrightarrow\prod_{\ell\mid M}F_{v_\ell(N)}(\ell,r), K 2 48 4 ≤ k ≤ K k even ∑ ∣ τ N , k 0 ( p ) ∣ 2 ⟶ ℓ ∣ M ∏ F v ℓ ( N ) ( ℓ , r ) , 48 K 2 ∑ 4 ≤ k ≤ K k e v e n τ D , k n e w ( p ) τ E , k n e w ( p ) ‾ ⟶ ∏ ℓ ∣ M B v ℓ ( D ) , v ℓ ( E ) ( ℓ , r ) \frac{48}{K^2}\sum_{\substack{4\le k\le K\\ k\ \mathrm{even}}}\tau^{\mathrm{new}}_{D,k}(p)\overline{\tau^{\mathrm{new}}_{E,k}(p)} \longrightarrow\prod_{\ell\mid M}B_{v_\ell(D),v_\ell(E)}(\ell,r) K 2 48 4 ≤ k ≤ K k even ∑ τ D , k new ( p ) τ E , k new ( p ) ⟶ ℓ ∣ M ∏ B v ℓ ( D ) , v ℓ ( E ) ( ℓ , r ) for levels N , D , E N,D,E N , D , E in the list. At odd primes only the Legendre symbols matter. At 2 at most the residue of p p p mod 8 is needed. For each fixed λ > 0 \lambda>0 λ > 0 and T = ⌊ λ K 2 ⌋ T=\lfloor\lambda K^2\rfloor T = ⌊ λ K 2 ⌋ , p D K L ( P T N ∥ Q T ) / T pD_{\mathrm{KL}}(P^N_T\mathbin\Vert Q_T)/T p D KL ( P T N ∥ Q T ) / T tends to the full product divided by 96.
Proof. Section S6 uses the lifted-root trace formula to express G N G_N G N and the new weight as products of local factors a L ℓ , p + b aL_{\ell,p}+b a L ℓ , p + b with fixed periods dividing M M M . The errors in the normalized traces have total square O M ( p − 3 ) O_M(p^{-3}) O M ( p − 3 ) and can be removed by Cauchy–Schwarz. (13) with δ = 1 − 2 a \delta=1-2a δ = 1 − 2 a gives both products, throughout 1 / 6 ≤ a < 1 / 2 1/6\le a<1/2 1/6 ≤ a < 1/2 . The full weight is nonnegative with limiting mass one, so Proposition 6.9 gives the log loss.
Section S6 classifies the vanishing local factors in the mixed product. For squarefree levels the products are 1 D = E φ ( D ) 1_{D=E}\varphi(D) 1 D = E φ ( D ) for the newspaces and ∏ ℓ ∣ N ( ℓ + 3 ) \prod_{\ell\mid N}(\ell+3) ∏ ℓ ∣ N ( ℓ + 3 ) for the full space in every class. The new diagonal then agrees with the leading total dimension over even weights [30 Theorem 1] .
Corollary 6.13. For each fixed $\lambda>0, Corollary 6.7 applies to the laws and limits in Corollary 6.6 and Theorem 6.11 within each fixed prime class. The implied constant may also depend on ℓ \ell ℓ or M M M .
Proof. Apply Theorem 6.1 and normalize using the mass bound of Lemma 6.2. The lemma gives p X 2 / T ≪ log 3 p p\mathcal{X}^2/T\ll\log^3p p X 2 / T ≪ log 3 p , so Proposition 6.9 with J = 4 J=4 J = 4 gives the KL rate, including the removed primes as in Corollary 6.7.
Corollary 6.14 (Prime-square level). In the units of Theorem 6.12 , the full and new second moments at level ℓ 2 \ell^2 ℓ 2 have constants
ℓ + 3 + s ( ℓ + 1 ) 2 , ℓ + s ( ℓ 2 − 2 ℓ − 1 ) , s = # { u m o d ℓ : u 2 ≡ p ( m o d ℓ ) } . \ell+3+s(\ell+1)^2,\qquad\ell+s(\ell^2-2\ell-1),\qquad s=\#\{u\bmod\ell:u^2\equiv p\pmod\ell\}. ℓ + 3 + s ( ℓ + 1 ) 2 , ℓ + s ( ℓ 2 − 2 ℓ − 1 ) , s = # { u mod ℓ : u 2 ≡ p ( mod ℓ )} . For odd ℓ \ell ℓ , s = 2 s=2 s = 2 in the square class and s = 0 s=0 s = 0 in the nonsquare class. At level 4 the constants are 14 and 1 for all odd primes in the set of the theorem.
Estimates from the Dirichlet critical-line theorem
The trace asymptotics and leading variance use unconditional estimates. The quadratic case of Alpöge’s Dirichlet critical-line theorem [2 , 39 ] improves the Mellin truncation bound for quadratic characters of conductor at most 4 p 4p 4 p . For 1 ≤ T ≤ X 1 \le T \le X 1 ≤ T ≤ X put
R ε ∗ ( T , X ) = T X log 3 ( 2 X / T ) + X − 1 / 2 + ε max ( T , X ) 1 / 4 . R_{\varepsilon}^{*}(T,X)=\frac{T}{X}\log^{3}(2X/T)+X^{-1/2+\varepsilon}\max(T,\sqrt{X})^{1/4}. R ε ∗ ( T , X ) = X T log 3 ( 2 X / T ) + X − 1/2 + ε max ( T , X ) 1/4 .
Proposition 7.1. Let p ≥ 5 p \ge5 p ≥ 5 be prime.
Theorem 3.1, Propositions 4.1 and 4.2 , and Corollaries 4.3 and 4.5 hold with R ε ∗ R_{\varepsilon}^{*} R ε ∗ in place of R ε R_{\varepsilon} R ε .
For 2 ≤ K ≤ p 2 \le K \le\sqrt{p} 2 ≤ K ≤ p the two sums in (5) are O ℓ , ε ( K 2 log 3 ( 2 p / K 2 ) + p 1 / 2 + ε max ( K , p 1 / 4 ) 1 / 2 ) O_{\ell,\varepsilon}(K^{2}\log^{3}(2p/K^{2})+p^{1/2+\varepsilon}\max(K,p^{1/4})^{1/2}) O ℓ , ε ( K 2 log 3 ( 2 p / K 2 ) + p 1/2 + ε max ( K , p 1/4 ) 1/2 ) . For K = p a K=p^{a} K = p a this saves a power of p p p over Deligne’s bound, Petrow’s bound and the angular large sieve when 5 / 24 < a < 1 / 2 5/24<a<1/2 5/24 < a < 1/2 , and the term K 2 log 3 K^{2}\log^{3} K 2 log 3 dominates for a > 1 / 3 a>1/3 a > 1/3 .
Proof. Alpöge’s theorem and [16 Corollary 5.20] give L ( 1 / 2 + i v , χ ) ≪ ε ( p ( 1 + ∣ v ∣ ) ) ε L(1/2+iv,\chi)\ll_{\varepsilon}(p(1+|v|))^{\varepsilon} L ( 1/2 + i v , χ ) ≪ ε ( p ( 1 + ∣ v ∣ ) ) ε . The Mellin shift of Theorem 3.1 gives squared error p ε / B p^{\varepsilon}/B p ε / B , also with bounded omitted factors. Balance it with p ε B T / p p^{\varepsilon}B\sqrt{T}/p p ε B T / p from Lemma 3.3 at B = p 1 / 2 T − 1 / 4 B=p^{1/2}T^{-1/4} B = p 1/2 T − 1/4 and thin from T 0 T_{0} T 0 . Corollary 4.3 gives the trace remainder. It saves a power over K 3 K^{3} K 3 for a > 5 / 24 a>5/24 a > 5/24 , over Petrow’s bound in its range, and over K 2 K^{2} K 2 for a > 1 / 3 a>1/3 a > 1/3 . □
Corollary S9.2 uses the full Dirichlet theorem to average the nonprincipal character terms over primes. It gives second terms for the sharp trace mean at 0 < δ < 1 / 6 0<\delta<1/6 0 < δ < 1/6 and the count mean at 0 < δ < 1 / 5 0<\delta<1/5 0 < δ < 1/5 .
Open questions
Do the short-length limits hold for every prime sequence, and does C A ( c ) / c → 1 / 48 C_A(c)/c\to1/48 C A ( c ) / c → 1/48 as c ↓ 0 c\downarrow0 c ↓ 0 for every fixed A A A ? How far can the trace asymptotic, variance and mean formulas extend?
AI Declaration. OpenAI Codex and Anthropic Claude assisted with parts of the mathematical argument, including the derivation and checking of estimates in S5.4 and S8–S9. They also assisted with numerical checks and with drafting and revising the text. The author is responsible for the proofs and results.
Supplementary material
Main trace theorem S5 gives the analytic estimates. S7 lists their inputs.
Fixed-level traces S6 computes the local constants.
Variance and mean S8 proves the variance for smooth cutoffs. S9 handles sharp cutoffs and second terms for the mean.
Related results S1 treats extension fields. S2 studies other angle laws. S3 lists open questions and S4 gives numerical checks.
Section, result and equation numbers with the prefix S refer to the supplementary material. We use the article’s notation Q T Q_T Q T for the beta-binomial law, ∥ ⋅ ∥ Q \lVert\cdot\rVert_Q ∥ ⋅ ∥ Q for the weighted norm, and P P P for the unnormalized count measure. For a field of size q q q we use the same bias grid with step Δ q = ( 4 q ) − 1 \Delta_q=(4\sqrt{q})^{-1} Δ q = ( 4 q ) − 1 and write
R ε ( T , q ) = T q log 3 ( 2 q / T ) + q − 1 / 3 + ε max ( T , q ) 1 / 4 . R_\varepsilon(T,q)=\frac{T}{q}\log^3(2q/T)+q^{-1/3+\varepsilon}\max(T,\sqrt{q})^{1/4}. R ε ( T , q ) = q T log 3 ( 2 q / T ) + q − 1/3 + ε max ( T , q ) 1/4 .
Prediction over prime-power fields
Let q = p n q=p^n q = p n with p ≥ 5 p\ge5 p ≥ 5 and n ≥ 2 n\ge2 n ≥ 2 . Choose a nonsingular short Weierstrass equation uniformly over F q \mathbb{F}_q F q . The isomorphism classes then have weights proportional to 1 / # Aut F q ( E ) 1/\#\operatorname{Aut}_{\mathbb{F}_q}(E) 1/# Aut F q ( E ) . Let P T P_T P T be the count law for bias f t = 1 / 2 + t / ( 4 q ) f_t=1/2+t/(4\sqrt{q}) f t = 1/2 + t / ( 4 q ) , where t = q + 1 − # E ( F q ) t=q+1-\#E(\mathbb{F}_q) t = q + 1 − # E ( F q ) , and P T ∘ P_T^\circ P T ∘ its restriction to ordinary curves (p ∤ t p\nmid t p ∤ t ), normalized to have mass one.
Lemma S1.1. (Restricted trace weights in fixed characteristic). Let q = p n q=p^n q = p n with fixed p p p , let J J J be a fixed finite set of primes containing p p p , and let A A A be a fixed trace class modulo M M M . For u = F ( J ) 1 A u=F^{(J)}1_A u = F ( J ) 1 A on ∣ t ∣ < 2 q |t|<2\sqrt{q} ∣ t ∣ < 2 q and 1 ≤ T ≤ q 1\le T\le q 1 ≤ T ≤ q ,
∥ P u − γ B Q T ∥ Q 2 ≪ M , J , ε R ε ( T , q ) . \lVert P^u-\gamma_B Q_T\rVert_Q^2\ll_{M,J,\varepsilon}R_\varepsilon(T,q). ∥ P u − γ B Q T ∥ Q 2 ≪ M , J , ε R ε ( T , q ) . Here F ( J ) F^{(J)} F ( J ) omits terms divisible by any prime of J J J , B = q 2 / 3 max ( T , [ q ( log q ) 8 ] ) − 1 / 4 B=q^{2/3}\max(T,[\sqrt{q}(\log q)^8])^{-1/4} B = q 2/3 max ( T , [ q ( log q ) 8 ] ) − 1/4 and γ B \gamma_B γ B is the constant Fourier coefficient of the restricted smooth cutoff.
Proof. Apply Lemma 3.4 with grid step Δ q \Delta_q Δ q . Omitting the factors at J J J leaves moduli prime to q q q , so all the roots used in the expansion are units. The Fourier shifts from 1 A 1_A 1 A change denominators by factors bounded in terms of M M M . The conductor in the Mellin shift is at most 4 q 4q 4 q , and the grid and smoothing estimates apply to the interior lattice, whether or not 2 q 2\sqrt{q} 2 q is integral.
Theorem S1.2. With absolute implied constants, for 1 ≤ T ≤ q 1\le T\le q 1 ≤ T ≤ q ,
D K L ( P T ∥ Q T ) ≪ T / q log 4 ( 2 q / T ) + q − 1 / 100 log 7 q . D_{\mathrm{KL}}(P_T\Vert Q_T)\ll\sqrt{T/q}\log^4(2q/T)+q^{-1/100}\log^7q. D KL ( P T ∥ Q T ) ≪ T / q log 4 ( 2 q / T ) + q − 1/100 log 7 q . and for T ≥ q T\ge q T ≥ q ,
D K L ( P T ∥ Q T ) = 1 2 log ( T / q ) + O ( 1 + p q log T ) . D_{\mathrm{KL}}(P_T\Vert Q_T)=\frac{1}{2}\log(T/q)+O\left(1+\frac{p}{q}\log T\right). D KL ( P T ∥ Q T ) = 2 1 log ( T / q ) + O ( 1 + q p log T ) . As q → ∞ q\to\infty q → ∞ through such prime powers, the divergence tends to zero if and only if T = o ( q ) T=o(q) T = o ( q ) . Moreover, for 1 ≤ T ≤ q 1\le T\le q 1 ≤ T ≤ q and every ε > 0 \varepsilon>0 ε > 0 ,
χ 2 ( P T ∘ ∥ Q T ) ≪ ε R ε ( T , q ) + q ε / p . \chi^2(P_T^\circ\Vert Q_T)\ll_\varepsilon R_\varepsilon(T,q)+q^\varepsilon/p. χ 2 ( P T ∘ ∥ Q T ) ≪ ε R ε ( T , q ) + q ε / p . For each fixed p p p the term q ε / p q^\varepsilon/p q ε / p can be omitted, with an implied constant depending on p p p and ε \varepsilon ε . In both cases D K L ( P T ∥ Q T ) D_{\mathrm{KL}}(P_T\Vert Q_T) D KL ( P T ∥ Q T ) satisfies the same bound with an additional O ( q − 1 / 2 log ( q + 1 ) ) O(q^{-1/2}\log(q+1)) O ( q − 1/2 log ( q + 1 )) .
Proof. For ordinary t t t , the number of equations is ( q − 1 ) H ( 4 q − t 2 ) / 2 (q-1)H(4q-t^2)/2 ( q − 1 ) H ( 4 q − t 2 ) /2 [20 Lemma 2] . The supersingular probability η \eta η is at most ( p + 23 ) / ( 12 q ) (p+23)/(12q) ( p + 23 ) / ( 12 q ) , since there are at most ( p − 1 ) / 12 + 2 (p-1)/12+2 ( p − 1 ) /12 + 2 supersingular j j j -invariants [38 Theorem V.4.1] and q − 1 q-1 q − 1 equations per j j j [20 Lemma 2] . The beta-binomial bound Q T ( k ) ≫ ( T + 1 ) − 3 / 2 Q_T(k)\gg(T+1)^{-3/2} Q T ( k ) ≫ ( T + 1 ) − 3/2 and convexity give
D K L ( P T ∥ Q T ) ≤ log ( 1 + χ 2 ( P T ∘ ∥ Q T ) ) + η ( 3 2 log ( T + 1 ) + O ( 1 ) ) . D_{\mathrm{KL}}(P_T\mathbin\Vert Q_T) \le\log(1+\chi^2(P_T^\circ\mathbin\Vert Q_T))+\eta\left(\frac{3}{2}\log(T+1)+O(1)\right). D KL ( P T ∥ Q T ) ≤ log ( 1 + χ 2 ( P T ∘ ∥ Q T )) + η ( 2 3 log ( T + 1 ) + O ( 1 ) ) .
Short observations. Set F ( t ) = π H ( 4 q − t 2 ) / 4 q − t 2 F(t)=\pi H(4q-t^2)/\sqrt{4q-t^2} F ( t ) = π H ( 4 q − t 2 ) / 4 q − t 2 and take the coefficients of Lemma 3.2 with q q q in place of p p p . The ordinary masses are Δ q σ ( f t ) F ( t ) / ( 1 − η ) \Delta_{q\sigma}(f_t)F(t)/(1-\eta) Δ q σ ( f t ) F ( t ) / ( 1 − η ) . For p ∤ t p\nmid t p ∤ t , the two simple roots modulo p p p of x 2 − t x + q x^2-tx+q x 2 − t x + q lift to all powers of p p p , so b t ( p j ) = 1 b_t(p^j)=1 b t ( p j ) = 1 . Define b ~ t ( n ) = b t ( n 0 ) \widetilde b_t(n)=b_t(n_0) b t ( n ) = b t ( n 0 ) for all traces, where n 0 n_0 n 0 is the prime-to-p p p part of n n n , and let F ~ N ( t ) = ∑ n ≤ N b ~ t ( n ) / n \widetilde F_N(t)=\sum_{n\le N}\widetilde b_t(n)/n F N ( t ) = ∑ n ≤ N b t ( n ) / n . For a reduced a / d a/d a / d with p ∤ d p\nmid d p ∤ d , the coefficient of e ( a t / d ) e(at/d) e ( a t / d ) in ∑ A < n ≤ B b ~ t ( n ) / n \sum_{A<n\le B}\widetilde b_t(n)/n ∑ A < n ≤ B b t ( n ) / n is
S ( a , a q ; d ) φ ( d ) ∑ j ≥ 0 p − j ∑ A / p j < m ≤ B / p j p ∤ m h d ( m ) m ≪ τ ( d ) d − 3 / 2 min ( 1 , d / A ) . \frac{S(a,aq;d)}{\varphi(d)}\sum_{j\ge0}p^{-j}\sum_{\substack{A/p^j<m\le B/p^j\\p\nmid m}}\frac{h_d(m)}{m}\ll\tau(d)d^{-3/2}\min(1,\sqrt{d/A}). φ ( d ) S ( a , a q ; d ) j ≥ 0 ∑ p − j A / p j < m ≤ B / p j p ∤ m ∑ m h d ( m ) ≪ τ ( d ) d − 3/2 min ( 1 , d / A ) .
Here the minimum is 1 1 1 for A = 0 A=0 A = 0 . The estimate uses the coefficient tail of Lemma 3.2 and ∑ j p − j / 2 ≪ 1 \sum_jp^{-j/2}\ll1 ∑ j p − j /2 ≪ 1 . The constant coefficient of F ~ N \widetilde F_N F N is ( 1 − 1 / p ) − 1 + O ( N − 1 / 2 ) (1-1/p)^{-1}+O(N^{-1/2}) ( 1 − 1/ p ) − 1 + O ( N − 1/2 ) . In the proof of Lemma 3.2 the middle range may be summed over all traces, and the Burgess estimate on ordinary traces has conductor at most 4 q 4q 4 q . This gives, for 1 ≤ N ≤ q 1 / 100 1\le N\le q^{1/100} 1 ≤ N ≤ q 1/100 ,
∑ ∣ t ∣ < 2 q p ∤ t ∣ F ( t ) − F ~ N ( t ) ∣ 2 ≪ q ( log 4 ( 2 N ) N + q − 1 / 100 log 7 q ) . \sum_{\substack{|t|<2\sqrt q\\p\nmid t}}|F(t)-\widetilde F_N(t)|^2\ll\sqrt q\left(\frac{\log^4(2N)}{N}+q^{-1/100}\log^7q\right). ∣ t ∣ < 2 q p ∤ t ∑ ∣ F ( t ) − F N ( t ) ∣ 2 ≪ q ( N log 4 ( 2 N ) + q − 1/100 log 7 q ) .
For either the ordinary cutoff U = F ~ N U=\widetilde F_N U = F N or a smooth cutoff used below, separate the terms by writing
F 1 p ∤ t = ( F − U ) 1 p ∤ t + U − U 1 p ∣ t . F1_{p\nmid t}=(F-U)1_{p\nmid t}+U-U1_{p\mid t}. F 1 p ∤ t = ( F − U ) 1 p ∤ t + U − U 1 p ∣ t .
For U = F ~ N U=\widetilde F_N U = F N , (1) bounds the first term. On the full grid and on the subgrid p Z p\mathbb Z p Z , unimodal Riemann sums give the constant terms in the proportions 1 1 1 and 1 / p 1/p 1/ p , with errors bounded by O ( Δ q ) O(\Delta_q) O ( Δ q ) times the posterior maximum. Their difference gives Q T + O ( N − 1 / 2 ) Q T Q_T+O(N^{-1/2})Q_T Q T + O ( N − 1/2 ) Q T up to these grid errors. Abel summation bounds a nonzero mode’s contribution to count k k k by O ( Δ q Q T ( k ) m T , k / ∥ a / d ∥ ) O(\Delta_qQ_T(k)m_{T,k}/\lVert a/d\rVert) O ( Δ q Q T ( k ) m T , k / ∥ a / d ∥) , with a p / d ap/d a p / d in place of a / d a/d a / d on p Z p\mathbb Z p Z . Multiplication by p p p permutes the reduced numerators. Summing the coefficient bound and ∑ a m o d d ∗ ∥ a / d ∥ − 1 ≪ d log ( 2 d ) \sum_{a\bmod d}^{*}\lVert a/d\rVert^{-1}\ll d\log(2d) ∑ a mod d ∗ ∥ a / d ∥ − 1 ≪ d log ( 2 d ) therefore costs O ( ( T / q ) N log 4 ( 2 N ) ) O((T/q)N\log^4(2N)) O (( T / q ) N log 4 ( 2 N )) in squared norm on both grids. Take N = ⌊ min ( q / T , q 1 / 100 ) ⌋ N=\lfloor\min(\sqrt{q/T},q^{1/100})\rfloor N = ⌊ min ( q / T , q 1/100 )⌋ and center at ( 1 − η ) Q T (1-\eta)Q_T ( 1 − η ) Q T before normalizing. This gives the claimed short-length bound for χ 2 ( P T ∘ ∥ Q T ) \chi^2(P_T^\circ\mathbin\Vert Q_T) χ 2 ( P T ∘ ∥ Q T ) , and p / q ≤ q − 1 / 2 p/q\le q^{-1/2} p / q ≤ q − 1/2 makes the supersingular contribution O ( q − 1 / 2 log ( q + 1 ) ) O(q^{-1/2}\log(q+1)) O ( q − 1/2 log ( q + 1 )) for T ≤ q T\le q T ≤ q .
Long observations. For T ≥ q T\ge q T ≥ q , (1) gives 1 + χ 2 ( P T ∘ ∥ Q T ) ≪ 1 + T / q 1+\chi^2(P_T^\circ\mathbin\Vert Q_T)\ll1+\sqrt{T/q} 1 + χ 2 ( P T ∘ ∥ Q T ) ≪ 1 + T / q , while Lemma 2.2 uses at most 4 q + 1 4\sqrt q+1 4 q + 1 biases for the lower bound. When n n n is even, the two endpoints have combined mass ( p − 1 ) / ( 12 q ) (p-1)/(12q) ( p − 1 ) / ( 12 q ) [20 Lemma 2] . Their biases are 0 0 0 and 1 1 1 , with KL divergence 3 2 log ( T + 1 ) + O ( 1 ) \frac{3}{2}\log(T+1)+O(1) 2 3 log ( T + 1 ) + O ( 1 ) from Q T Q_T Q T . The mixture argument of Lemma 2.2 then strengthens the lower bound to 1 2 log ( T / q ) + p − 1 12 q log T − O ( 1 ) \frac{1}{2}\log(T/q)+\frac{p-1}{12q}\log T-O(1) 2 1 log ( T / q ) + 12 q p − 1 log T − O ( 1 ) . The endpoints also contribute to the squared norm at order ( p / q ) 2 T 3 / 2 (p/q)^2T^{3/2} ( p / q ) 2 T 3/2 . For any fixed c > 0 c>0 c > 0 , the cosine test of Theorem 3.1 detects the integer trace grid when T ≥ c q T\ge cq T ≥ c q , proving necessity of T = o ( q ) T=o(q) T = o ( q ) .
Sharper estimates for ordinary curves. Now use U = ∑ n b ~ t ( n ) n − 1 ψ ( n / B ) U=\sum_n\widetilde b_t(n)n^{-1}\psi(n/B) U = ∑ n b t ( n ) n − 1 ψ ( n / B ) with the smooth cutoff of Theorem 3.1. On ordinary traces b ~ t = b t = c t ∗ χ \widetilde b_t=b_t=c_t*\chi b t = b t = c t ∗ χ , with χ \chi χ of conductor at most 4 q 4q 4 q . The Mellin shift and hybrid Weyl bound give ∣ F − U ∣ ≪ ε q 1 / 6 + ε B − 1 / 2 |F-U|\ll_\varepsilon q^{1/6+\varepsilon}B^{-1/2} ∣ F − U ∣ ≪ ε q 1/6 + ε B − 1/2 , which costs O ε ( q 1 / 3 + ε / B ) O_\varepsilon(q^{1/3+\varepsilon}/B) O ε ( q 1/3 + ε / B ) in squared norm. The Fourier formula with the cutoff inserted gives coefficients O ( τ ( d ) d − 3 / 2 ) O(\tau(d)d^{-3/2}) O ( τ ( d ) d − 3/2 ) for p ∤ d ≤ 2 B p\nmid d\le2B p ∤ d ≤ 2 B . On the interior grid U = O ε ( q ε ) U = O_{\varepsilon}(q^{\varepsilon}) U = O ε ( q ε ) , since 4 q − t 2 ≠ 0 4q - t^2 \ne0 4 q − t 2 = 0 and the sum of ∣ b t ( m ) ∣ / m |b_t(m)|/m ∣ b t ( m ) ∣/ m over m ≤ 2 B m \le2B m ≤ 2 B prime to p p p has that bound. Thus (2) applies with q q q in place of p p p , and (1) bounds the term U 1 p ∣ t U_{1p\mid t} U 1 p ∣ t in squared norm by O ε ( q ε Δ q ( q / p + 1 ) ) O_{\varepsilon}(q^{\varepsilon}\Delta_q(\sqrt{q}/p + 1)) O ε ( q ε Δ q ( q / p + 1 )) . Take B = q 2 / 3 T − 1 / 4 B = q^{2/3}T^{-1/4} B = q 2/3 T − 1/4 , center at the mass of the ordinary law, and normalize by 1 − η 1-\eta 1 − η . Below the range of (2), contract by keeping only T T T flips as in Theorem 3.1.
For fixed p p p , apply Lemma S1.1 with J = { p } J = \{p\} J = { p } to the nonzero trace classes modulo p p p , since F 1 p ∤ t = ( 1 − 1 / p ) − 1 F ( p ) 1 p ∤ t F_{1p\nmid t} = (1 - 1/p)^{-1}F^{(p)}1_{p\nmid t} F 1 p ∤ t = ( 1 − 1/ p ) − 1 F ( p ) 1 p ∤ t . Convexity then gives the two asserted KL bounds.
Corollary S1.3 (Legendre family over F q \mathbb{F}_q F q ). Fix a prime p ≥ 5 p \ge5 p ≥ 5 . For q = p n q = p^n q = p n sample λ \lambda λ uniformly in F q ∖ { 0 , 1 } \mathbb{F}_q \setminus\{0,1\} F q ∖ { 0 , 1 } and use the trace of y 2 = x ( x − 1 ) ( x − λ ) y^2 = x(x-1)(x-\lambda) y 2 = x ( x − 1 ) ( x − λ ) over F q \mathbb{F}_q F q for the bias 1 / 2 + t / ( 4 q ) 1/2 + t/(4\sqrt{q}) 1/2 + t / ( 4 q ) . The count law of the ordinary parameters has chi-square divergence O p , ε ( R ε ( T , q ) ) O_{p,\varepsilon}(R_{\varepsilon}(T,q)) O p , ε ( R ε ( T , q )) from Q T Q_T Q T for 1 ≤ T ≤ q 1 \le T \le q 1 ≤ T ≤ q . As n → ∞ n \to\infty n → ∞ the logarithmic loss of the family tends to zero if and only if T = o ( q ) T = o(q) T = o ( q ) , and for T ≥ q T \ge q T ≥ q it is 1 2 log ( T / q ) + O p ( 1 + ( p / q ) log T ) \frac{1}{2}\log(T/q) + O_p(1 + (p/q)\log T) 2 1 log ( T / q ) + O p ( 1 + ( p / q ) log T ) .
Proof. The prime-field case is Corollary 4.5. The Y 1 ( 4 ) Y_1(4) Y 1 ( 4 ) isogeny remains defined over F q \mathbb{F}_q F q , so (6) counts rational points of order four there. At ordinary traces the formulas for full rational 2- and 4-torsion [20 Lemmas 2–4] and the local identities at 2 express the weights in terms of F F F and F ( 2 ) F^{(2)} F ( 2 ) . Remove the factor at p p p as in Theorem S1.2, then apply Lemma S1.1 with J = { p } J = \{p\} J = { p } or { 2 , p } \{2,p\} { 2 , p } and moduli dividing 16 p 16p 16 p . The supersingular parameters are roots of a polynomial of degree ( p − 1 ) / 2 (p-1)/2 ( p − 1 ) /2 [38 Theorem V.4.1] , so the ordinary probability is bounded below and the additional KL cost is O ( ( p / q ) log ( T + 1 ) ) O((p/q)\log(T+1)) O (( p / q ) log ( T + 1 )) . This yields the short-length result.
Each curve has at most twelve points of order four, so the ordinary Legendre count law is bounded by a fixed multiple of the full ordinary law. Its squared norm for T ≥ q T \ge q T ≥ q is O p ( 1 + T / q ) O_p(1+\sqrt{T/q}) O p ( 1 + T / q ) . For the lower bounds, all traces lie in one class modulo 4. The support has at most q + 1 \sqrt{q}+1 q + 1 points and the cosine test at frequency 2 π q 2\pi\sqrt{q} 2 π q detects the lattice for T ≥ c q T \ge cq T ≥ c q .
Bounds from the Dirichlet critical-line theorem
The quadratic case of Alpöge’s theorem [2 , 39 ] allows us to replace R ε ( T , q ) R_{\varepsilon}(T,q) R ε ( T , q ) in Theorem S1.2 and Corollary S1.3 by
R ε ∗ ( T , q ) = T q log 3 ( 2 q / T ) + q − 1 / 2 + ε max ( T , q ) 1 / 4 . R_{\varepsilon}^{*}(T,q) = \frac{T}{q}\log^3(2q/T) + q^{-1/2+\varepsilon}\max(T,\sqrt{q})^{1/4}. R ε ∗ ( T , q ) = q T log 3 ( 2 q / T ) + q − 1/2 + ε max ( T , q ) 1/4 .
Apply the balance and thinning in Proposition 7.1 with q q q in place of p p p . The Mellin shift gives the same squared tail O ε ( q ε / B ) O_{\varepsilon}(q^{\varepsilon}/B) O ε ( q ε / B ) with fixed Euler factors omitted. Add the varying-characteristic and supersingular terms of Theorem S1.2.
Hecke angles, Kloosterman angles and general families
Proposition 2.1 bounds loss using moments up to order T \sqrt{T} T , and Lemma 2.2 gives lower bounds from the support size.
Gaussian Hecke angles
Let ξ ( ( α ) ) = ( α / ∣ α ∣ ) 4 \xi((\alpha)) = (\alpha/|\alpha|)^4 ξ (( α )) = ( α /∣ α ∣ ) 4 over Q ( i ) \mathbb{Q}(i) Q ( i ) , and draw a prime ideal of norm at most X X X with weight w p = log N p / ϑ ( X ) w_{\mathfrak p} = \log N\mathfrak p/\vartheta(X) w p = log N p / ϑ ( X ) , where ϑ ( X ) = ∑ N p ≤ X log N p \vartheta(X) = \sum_{N\mathfrak p \le X}\log N\mathfrak p ϑ ( X ) = ∑ N p ≤ X log N p . Use the bias ( 1 + 3 ℜ ξ ( p ) ) / 2 (1 + 3\Re\xi(\mathfrak p))/2 ( 1 + 3ℜ ξ ( p )) /2 . Write A X ( T ) A_X^{(T)} A X ( T ) for this word law. The reference is B K T ( T ) = B 1 / 2 , 1 / 2 ( T ) B_{\mathrm{KT}}^{(T)} = B_{1/2,1/2}^{(T)} B KT ( T ) = B 1/2 , 1/2 ( T ) . The moments of the Hecke-angle law in Proposition 2.1 are 2 ℜ M m ( X ) \sqrt{2}\Re M_m(X) 2 ℜ M m ( X ) , where M m ( X ) = ∑ p w p ξ ( p ) m M_m(X) = \sum_{\mathfrak p}w_{\mathfrak p}\xi(\mathfrak p)^m M m ( X ) = ∑ p w p ξ ( p ) m . Write log + x = max ( 0 , log x ) \log^+x = \max(0,\log x) log + x = max ( 0 , log x ) .
Theorem S2.1. For sufficiently large X X X , unconditionally,
1 2 log + ( T ( log X ) 2 / X 2 ) − O ( 1 ) ≤ D K L ( A X ( T ) ∥ B K T ( T ) ) ≤ 1 2 log + ( T / X 2 ) + log log X + O ( 1 ) . \frac{1}{2}\log^{+}\left(T(\log X)^2/X^2\right)-O(1)\le D_{\mathrm{KL}}\left(A_X^{(T)}\mathbin\Vert B_{\mathrm{KT}}^{(T)}\right)\le\frac{1}{2}\log^{+}\left(T/X^2\right)+\log\log X+O(1). 2 1 log + ( T ( log X ) 2 / X 2 ) − O ( 1 ) ≤ D KL ( A X ( T ) ∥ B KT ( T ) ) ≤ 2 1 log + ( T / X 2 ) + log log X + O ( 1 ) . Thus for T ≥ X 2 T\ge X^2 T ≥ X 2 the loss is 1 2 log ( T ( log X ) 2 / X 2 ) + O ( 1 ) \frac{1}{2}\log\left(T(\log X)^2/X^2\right)+O(1) 2 1 log ( T ( log X ) 2 / X 2 ) + O ( 1 ) . If 1 / 2 < β < 1 1/2<\beta<1 1/2 < β < 1 and all L ( s , ξ m ) L(s,\xi^m) L ( s , ξ m ) , m ≥ 1 m\ge1 m ≥ 1 , are zero-free in R e s > β \mathop{\mathrm{Re}}s>\beta Re s > β , then
D K L ( A X ( T ) ∥ B K T ( T ) ) ≪ β T X 2 β − 2 log 4 ( X ( 2 + T ) ) . D_{\mathrm{KL}}\left(A_X^{(T)}\mathbin\Vert B_{\mathrm{KT}}^{(T)}\right)\ll_{\beta}\sqrt{T}X^{2\beta-2}\log^4\left(X(2+T)\right). D KL ( A X ( T ) ∥ B KT ( T ) ) ≪ β T X 2 β − 2 log 4 ( X ( 2 + T ) ) . In particular the loss tends to zero for T ≤ X 4 ( 1 − β ) − ε T\le X^{4(1-\beta)-\varepsilon} T ≤ X 4 ( 1 − β ) − ε with fixed ε > 0 \varepsilon>0 ε > 0 .
Proof. Inert and ramified prime ideals have total weight O ( X − 1 / 2 ) O(X^{-1/2}) O ( X − 1/2 ) . For distinct split prime ideals, unique factorization prevents their generators from having α γ ‾ \alpha\overline{\gamma} α γ equal to a unit times a rational integer. After rotation by a unit, its argument lies in [ − π / 4 , π / 4 ] [-\pi/4,\pi/4] [ − π /4 , π /4 ] and ∣ Im ( α γ ‾ ) ∣ ≥ 1 |\operatorname{Im}(\alpha\overline{\gamma})|\ge1 ∣ Im ( α γ ) ∣ ≥ 1 . Since ∣ α γ ‾ ∣ ≤ X |\alpha\overline{\gamma}|\le X ∣ α γ ∣ ≤ X , the angles 4 arg α 4\arg\alpha 4 arg α are spaced ≫ 1 / X \gg1/X ≫ 1/ X . The dual large sieve [31 ] bounds the squared moment sum over an interval of L L L modes by ( L + X ) ∑ p w p 2 ≪ ( L + X ) log X / X (L+X)\sum_p w_p^2\ll(L+X)\log X/X ( L + X ) ∑ p w p 2 ≪ ( L + X ) log X / X . Apply this on blocks of length ⌈ T + 1 ⌉ \lceil\sqrt{T+1}\rceil ⌈ T + 1 ⌉ in Proposition 2.1 . Including the inert and ramified ideals gives χ 2 ≪ log X ( 1 + T / X ) \chi^2\ll\log X(1+\sqrt{T}/X) χ 2 ≪ log X ( 1 + T / X ) . Take D K L ≤ log ( 1 + χ 2 ) D_{\mathrm{KL}}\le\log(1+\chi^2) D KL ≤ log ( 1 + χ 2 ) . The support bound uses O ( X / log X ) O(X/\log X) O ( X / log X ) prime ideals.
For the zero-free estimate the finite conductor is fixed and the archimedean parameter is O ( m ) O(m) O ( m ) , giving O ( log ( 2 + m + ∣ t ∣ ) ) O(\log(2+m+|t|)) O ( log ( 2 + m + ∣ t ∣ )) zeros per unit height interval. In the explicit formula [36 pp. 282–285] use a half-integer cutoff and height H ≍ X H\asymp X H ≍ X at distance ≫ 1 / log ( X + m + 2 ) \gg1/\log(X+m+2) ≫ 1/ log ( X + m + 2 ) from the zero ordinates. Moving to ( 1 − β ) / 2 (1-\beta)/2 ( 1 − β ) /2 costs O β ( ( X ( 1 − β ) / 2 + X / H ) log 2 ( X + m + 2 ) ) O_{\beta}((X^{(1-\beta)/2}+X/H)\log^2(X+m+2)) O β (( X ( 1 − β ) /2 + X / H ) log 2 ( X + m + 2 )) on the vertical and horizontal contours. The zeros contribute O β ( X β log 2 ( X + m + 2 ) ) O_{\beta}(X^\beta\log^2(X+m+2)) O β ( X β log 2 ( X + m + 2 )) and the prime powers O ( X log 2 X ) O(\sqrt{X}\log^2X) O ( X log 2 X ) . Thus M m ( X ) ≪ β X β − 1 log 2 ( X ( 2 + m ) ) M_m(X)\ll_{\beta}X^{\beta-1}\log^2(X(2+m)) M m ( X ) ≪ β X β − 1 log 2 ( X ( 2 + m )) . Sum the squares with the weights of Proposition 2.1 .
Proposition S2.2. For every ε > 0 \varepsilon>0 ε > 0 , the Gaussian Hecke loss tends to zero unconditionally and uniformly for 1 ≤ T ≤ X 6 / 5 − ε 1\le T\le X^{6/5-\varepsilon} 1 ≤ T ≤ X 6/5 − ε .
Proof. Choose 0 < τ < 3 / 5 0<\tau<3/5 0 < τ < 3/5 and 0 < c < 1 0<c<1 0 < c < 1 with 2 c τ > 6 / 5 − ε 2c\tau>6/5-\varepsilon 2 c τ > 6/5 − ε . Add a nonnegative smooth compactly supported radial weight Φ ( N p / Y ) \Phi(N\mathfrak{p}/Y) Φ ( N p / Y ) to the moment, denoting the normalized result by M m Φ ( Y ) M_m^\Phi(Y) M m Φ ( Y ) . For a fixed smooth even angular test g g g of compact support with g ^ ( 0 ) > 0 \widehat{g}(0)>0 g ( 0 ) > 0 , Parseval and the sector variance bound [15 Corollary 5] give ∑ m ≠ 0 ∣ g ^ ( m / Y τ ) ∣ 2 ∣ M m Φ ( Y ) ∣ 2 = o ( 1 ) \sum_{m\ne0}|\widehat{g}(m/Y^\tau)|^2|M_m^\Phi(Y)|^2=o(1) ∑ m = 0 ∣ g ( m / Y τ ) ∣ 2 ∣ M m Φ ( Y ) ∣ 2 = o ( 1 ) . Thus the unweighted square sum up to δ Y τ \delta Y^\tau δ Y τ is o ( 1 ) o(1) o ( 1 ) for some fixed δ > 0 \delta>0 δ > 0 . In Proposition 2.1 the remaining modes cost O ( T exp ( − C Y 2 τ / T ) ) O(T\exp(-CY^{2\tau}/T)) O ( T exp ( − C Y 2 τ / T )) for some C > 0 C>0 C > 0 , using ∣ M m Φ ∣ ≤ 1 |M_m^\Phi|\le1 ∣ M m Φ ∣ ≤ 1 . The smoothed divergence is o ( 1 ) o(1) o ( 1 ) uniformly for Y ≥ X c Y\ge X^c Y ≥ X c .
For the interval ( Y / 2 , Y ] (Y/2,Y] ( Y /2 , Y ] take Φ ≥ 1 \Phi\ge1 Φ ≥ 1 on [ 1 / 2 , 1 ] [1/2,1] [ 1/2 , 1 ] and ∫ Φ ≤ ( 1 + η ) / 2 \int\Phi\le(1+\eta)/2 ∫ Φ ≤ ( 1 + η ) /2 . The prime ideal theorem bounds the smooth to sharp mass ratio by 1 + η + o ( 1 ) 1+\eta+o(1) 1 + η + o ( 1 ) . This also bounds the ratio of the sharp likelihood to the smooth likelihood, so the squared norm of the sharp likelihood has upper limit at most ( 1 + η ) 2 (1+\eta)^2 ( 1 + η ) 2 . Let η → 0 \eta\to0 η → 0 and combine the intervals down to Y 0 ≍ X c Y_0\asymp X^c Y 0 ≍ X c by convexity. The primes below Y 0 Y_0 Y 0 have mass O ( X c − 1 ) O(X^{c-1}) O ( X c − 1 ) and divergence O ( log X ) O(\log X) O ( log X ) by the large sieve bound since T = o ( Y 0 ) \sqrt{T}=o(Y_0) T = o ( Y 0 ) .
Kloosterman angles
For an odd prime p p p , choose c c c uniformly in F p × \mathbb{F}_p^\times F p × , and let θ c ∈ [ 0 , π ] \theta_c\in[0,\pi] θ c ∈ [ 0 , π ] satisfy
∑ x ∈ F p × e p ( x + c / x ) = 2 p cos θ c . \sum_{x\in\mathbb{F}_p^\times}e_p(x+c/x)=2\sqrt{p}\cos\theta_c. x ∈ F p × ∑ e p ( x + c / x ) = 2 p cos θ c .
Here e p ( t ) = exp ( 2 π i t / p ) e_p(t)=\exp(2\pi\mathrm{i}t/p) e p ( t ) = exp ( 2 π i t / p ) for an integer representative of t ∈ F p t\in\mathbb{F}_p t ∈ F p . Use bias ( 1 + cos θ c ) / 2 (1+\cos\theta_c)/2 ( 1 + cos θ c ) /2 and write A p ( T ) A_p^{(T)} A p ( T ) for its word law. The reference is B S T ( T ) = B 3 / 2 , 3 / 2 ( T ) B_{\mathrm{ST}}^{(T)}=B_{3/2,3/2}^{(T)} B ST ( T ) = B 3/2 , 3/2 ( T ) .
Lemma S2.3 (One bias against the Sato–Tate reference). If D T ( f ) D_T(f) D T ( f ) is the KL divergence of T T T flips of bias f f f from B S T ( T ) B_{\mathrm{ST}}^{(T)} B ST ( T ) , then uniformly for f ∈ [ 0 , 1 ] f \in[0,1] f ∈ [ 0 , 1 ] ,
D T ( f ) = 5 2 log ( T + 1 ) − log ( ( 1 + T f ) ( 1 + T ( 1 − f ) ) ) + O ( 1 ) . D_T(f)=\frac{5}{2}\log(T+1)-\log\bigl((1+Tf)(1+T(1-f))\bigr)+O(1). D T ( f ) = 2 5 log ( T + 1 ) − log ( ( 1 + T f ) ( 1 + T ( 1 − f )) ) + O ( 1 ) . Proof. For the reference count law, the gamma ratios give
Q T ( k ) ≍ ( T + 1 ) − 2 ( k + 1 ) ( T − k + 1 ) . Q_T(k)\asymp(T+1)^{-2}\sqrt{(k+1)(T-k+1)}. Q T ( k ) ≍ ( T + 1 ) − 2 ( k + 1 ) ( T − k + 1 ) . Apply the two expected logarithm estimates and the entropy estimate in the proof of Lemma 2.2. The identity ( 1 + T f ) ( 1 + T ( 1 − f ) ) = T + 1 + T v (1+Tf)(1+T(1-f))=T+1+Tv ( 1 + T f ) ( 1 + T ( 1 − f )) = T + 1 + T v , where v = T f ( 1 − f ) v=Tf(1-f) v = T f ( 1 − f ) , gives the stated form. □
Theorem S2.4. For T ≥ 1 T\ge1 T ≥ 1 , with absolute constants,
D K L ( A p ( T ) ∥ B S T ( T ) ) ≤ χ 2 ( A p ( T ) ∥ B S T ( T ) ) ≪ ( T + 1 ) 3 / 2 / p , D_{\mathrm{KL}}(A_p^{(T)}\mathbin{\|}B_{\mathrm{ST}}^{(T)})\le\chi^2(A_p^{(T)}\mathbin{\|}B_{\mathrm{ST}}^{(T)})\ll(T+1)^{3/2}/p, D KL ( A p ( T ) ∥ B ST ( T ) ) ≤ χ 2 ( A p ( T ) ∥ B ST ( T ) ) ≪ ( T + 1 ) 3/2 / p , D K L ( A p ( T ) ∥ B S T ( T ) ) ≥ 1 2 log ( T + 1 ) − log ( p − 1 ) − O ( 1 ) . D_{\mathrm{KL}}(A_p^{(T)}\mathbin{\|}B_{\mathrm{ST}}^{(T)})\ge\frac{1}{2}\log(T+1)-\log(p-1)-O(1). D KL ( A p ( T ) ∥ B ST ( T ) ) ≥ 2 1 log ( T + 1 ) − log ( p − 1 ) − O ( 1 ) . For p 2 / 3 ≤ T ≤ e p p^{2/3}\le T\le e^{\sqrt p} p 2/3 ≤ T ≤ e p ,
D K L ( A p ( T ) ∥ B S T ( T ) ) ≤ 1 2 log ( T / p 2 / 3 ) + O ( 1 ) . D_{\mathrm{KL}}(A_p^{(T)}\mathbin{\|}B_{\mathrm{ST}}^{(T)})\le\frac{1}{2}\log(T/p^{2/3})+O(1). D KL ( A p ( T ) ∥ B ST ( T ) ) ≤ 2 1 log ( T / p 2/3 ) + O ( 1 ) . In particular, the loss tends to zero for T = o ( p 2 / 3 ) T=o(p^{2/3}) T = o ( p 2/3 ) and diverges if T / p 2 → ∞ T/p^2\to\infty T / p 2 → ∞ .
Proof. The m m m th moment is ( p − 1 ) − 1 ∑ c U m ( cos θ c ) (p-1)^{-1}\sum_c U_m(\cos\theta_c) ( p − 1 ) − 1 ∑ c U m ( cos θ c ) . Katz bounds the sum by ( m + 1 ) p / 2 (m+1)\sqrt p/2 ( m + 1 ) p /2 [21 Example 13.6] . Indeed, it is, up to the factor ± p − m / 2 \pm p^{-m/2} ± p − m /2 , the trace sum of Sym m Kl 2 \operatorname{Sym}^m\operatorname{Kl}_2 Sym m Kl 2 on G m \mathbb{G}_m G m . For m ≥ 1 m\ge1 m ≥ 1 , the SL 2 \operatorname{SL}_2 SL 2 monodromy gives H c 2 = 0 H_c^2=0 H c 2 = 0 [21 Theorem 11.1] . The space H c 1 H_c^1 H c 1 has dimension at most ( m + 1 ) / 2 (m+1)/2 ( m + 1 ) /2 [12 Theorem 0.2] and weights at most m + 1 m+1 m + 1 [10 ] . Proposition 2.1 sums the squared moment bound, and Lemma 2.2 gives the lower bound since the support has at most p − 1 p-1 p − 1 points.
For the intermediate range put S = ⌊ p 2 / 3 ⌋ S=\lfloor p^{2/3}\rfloor S = ⌊ p 2/3 ⌋ . The divergence χ 2 \chi^2 χ 2 at length S S S is bounded, so the true count mass a S ( k ) a_S(k) a S ( k ) satisfies a S ( k ) ≤ b S ( k ) + b S ( k ) χ 2 a_S(k)\le b_S(k)+\sqrt{b_S(k)}\chi^2 a S ( k ) ≤ b S ( k ) + b S ( k ) χ 2 for the reference mass b S ( k ) b_S(k) b S ( k ) . At 0 0 0 and S S S , b S ( k ) = O ( S − 3 / 2 ) b_S(k)=O(S^{-3/2}) b S ( k ) = O ( S − 3/2 ) . Therefore a S ( k ) = O ( p − 1 / 2 ) a_S(k)=O(p^{-1/2}) a S ( k ) = O ( p − 1/2 ) at these counts, and ( 1 − 1 / S ) S ≥ 1 / 4 (1-1/S)^S\ge1/4 ( 1 − 1/ S ) S ≥ 1/4 bounds the bias mass of min ( f , 1 − f ) < 1 / S \min(f,1-f)<1/S min ( f , 1 − f ) < 1/ S by η = O ( p − 1 / 2 ) \eta=O(p^{-1/2}) η = O ( p − 1/2 ) . Outside this set both ratios ( 1 + T f ) / ( 1 + S f ) (1+Tf)/(1+Sf) ( 1 + T f ) / ( 1 + S f ) and ( 1 + T ( 1 − f ) ) / ( 1 + S ( 1 − f ) ) (1+T(1-f))/(1+S(1-f)) ( 1 + T ( 1 − f )) / ( 1 + S ( 1 − f )) are at least T / ( 2 S ) T/(2S) T / ( 2 S ) . Everywhere they are at least one. Lemma S2.3 now gives E ( D T ( f ) − D S ( f ) ) ≤ 1 2 log ( T / S ) + O ( 1 ) + 2 η log ( T / S ) \mathbb{E}(D_T(f)-D_S(f))\le\frac{1}{2}\log(T/S)+O(1)+2\eta\log(T/S) E ( D T ( f ) − D S ( f )) ≤ 2 1 log ( T / S ) + O ( 1 ) + 2 η log ( T / S ) . The mixture loss at T T T is E D T ( f ) − I ( f ; W T ) \mathbb{E}D_T(f)-I(f;W_T) E D T ( f ) − I ( f ; W T ) , where W T W_T W T is the length-T T T word. Since the information is nondecreasing in T T T and the loss at S S S is bounded, the same upper bound holds for the loss at T T T . Its last term is bounded for T ≤ e p T\le e^{\sqrt p} T ≤ e p . □
The normalized Gauss sums of nontrivial characters give the same vanishing-loss range T = o ( p 2 / 3 ) T=o(p^{2/3}) T = o ( p 2/3 ) against the uniform-angle reference. Orthogonality gives hyper-Kloosterman sums with moments O ( m / p ) O(m/\sqrt p) O ( m / p ) [21 Scholium 4.0.1 and Theorem 4.1.1] . The Wasserstein estimates of Kowalski–Untrau and Rahimi [25 , 35 ] also imply total-variation convergence in this range, using affinity cos T ( ( θ − ϕ ) / 2 ) \cos^T((\theta-\phi)/2) cos T (( θ − ϕ ) /2 ) for the product laws at angles θ , ϕ \theta,\phi θ , ϕ . Proposition 2.1 controls logarithmic loss.
One-parameter families of elliptic curves
Let F q \mathbb{F}_q F q have characteristic at least 5 5 5 . Let U U U be an open subset of P 1 \mathbb{P}^1 P 1 over F q \mathbb{F}_q F q whose complement has r r r geometric points. Let E → U E\to U E → U be an elliptic curve with nonconstant j j j -invariant. For n ≥ 1 n\ge1 n ≥ 1 choose x x x uniformly in U ( F q n ) U(\mathbb{F}_{q^n}) U ( F q n ) , put a x = q n + 1 − # E x ( F q n ) a_x=q^n+1-\#E_x(\mathbb{F}_{q^n}) a x = q n + 1 − # E x ( F q n ) , and use the bias 1 / 2 + a x / ( 4 q n / 2 ) 1/2+a_x/(4q^{n/2}) 1/2 + a x / ( 4 q n /2 ) . Write A E , n ( T ) A_{E,n}^{(T)} A E , n ( T ) for the word law.
Proposition S2.5. If q n ≥ 2 r q^n \ge2r q n ≥ 2 r then, with absolute constants,
χ 2 ( A E , n ( T ) ∥ B S T ( T ) ) ≪ ( r − 2 ) 2 ( T + 1 ) 3 / 2 q − n , \chi^2\left(A^{(T)}_{E,n}\mathbin\Vert B^{(T)}_{\mathrm{ST}}\right) \ll(r-2)^2(T+1)^{3/2}q^{-n}, χ 2 ( A E , n ( T ) ∥ B ST ( T ) ) ≪ ( r − 2 ) 2 ( T + 1 ) 3/2 q − n , D K L ( A E , n ( T ) ∥ B S T ( T ) ) ≥ 1 2 log ( T + 1 ) − n 2 log q − O ( 1 ) . D_{\mathrm{KL}}\left(A^{(T)}_{E,n}\mathbin\Vert B^{(T)}_{\mathrm{ST}}\right) \ge\frac{1}{2}\log(T+1)-\frac{n}{2}\log q-O(1). D KL ( A E , n ( T ) ∥ B ST ( T ) ) ≥ 2 1 log ( T + 1 ) − 2 n log q − O ( 1 ) .
For fixed r r r , the moment bound gives vanishing loss at T = o ( q 2 n / 3 ) T=o(q^{2n/3}) T = o ( q 2 n /3 ) , and the trace lattice gives divergence when T / q n → ∞ T/q^n\to\infty T / q n → ∞ . For Legendre, the class-number calculation in Corollary S1.3 closes the gap in fixed characteristic.
Proof. The fibre cohomology sheaf F \mathcal{F} F has rank two and weight one. Nonconstant j j j gives an affine base and geometric monodromy S L 2 \mathrm{SL}_2 SL 2 [10 Lemme 3.5.5] . Semistable reduction after an extension of degree dividing 24 gives tameness at the r r r missing points. In particular r ≥ 3 r\ge3 r ≥ 3 , since the tame fundamental group of the affine line is trivial and that of G m \mathbb{G}_m G m is abelian. For m ≥ 1 m\ge1 m ≥ 1 , Sym m F \operatorname{Sym}^m\mathcal{F} Sym m F is geometrically nontrivial and irreducible. The Euler–Poincaré formula [21 2.3.1] gives dim H c 1 = ( m + 1 ) ( r − 2 ) \dim H^1_c=(m+1)(r-2) dim H c 1 = ( m + 1 ) ( r − 2 ) , with the other compactly supported cohomology zero. Its weights are at most m + 1 m+1 m + 1 [10 Théorème 3.3.1] , so the trace formula gives
∣ ∑ x ∈ U ( F q n ) U m ( α x 2 q n / 2 ) ∣ ≤ ( m + 1 ) ( r − 2 ) q n / 2 . \left|\sum_{x\in U(\mathbb{F}_{q^n})}U_m\left(\frac{\alpha_x}{2q^{n/2}}\right)\right|\le(m+1)(r-2)q^{n/2}. x ∈ U ( F q n ) ∑ U m ( 2 q n /2 α x ) ≤ ( m + 1 ) ( r − 2 ) q n /2 .
Divide by ∣ U ( F q n ) ∣ ≥ q n / 2 |U(\mathbb{F}_{q^n})|\ge q^{n}/2 ∣ U ( F q n ) ∣ ≥ q n /2 and apply Proposition 2.1 . The lower bound follows from Lemma 2.2 because there are at most 4 q n / 2 + 1 4q^{n/2}+1 4 q n /2 + 1 integer traces.
Open questions for the supplementary families
The short-length constant for ordinary curves over F p n \mathbb{F}_{p^n} F p n , n ≥ 3 n\ge3 n ≥ 3 , and its dependence on p p p and n n n remain open. Stronger sector variance bounds could improve the Gaussian Hecke range. For Kloosterman angles and one-parameter families, weighted square sums of Frobenius moments through degree T \sqrt{T} T could narrow the unresolved intervals [ p 2 / 3 , p 2 ] [p^{2/3},p^2] [ p 2/3 , p 2 ] and [ q 2 n / 3 , q n ] [q^{2n/3},q^n] [ q 2 n /3 , q n ] , respectively.
Numerical checks
The ancillary file paper_checks.json records prediction losses and checks of local constants. The variance samples are in variance_check.json. The shortest run has cutoffs 7, 9, 12 and therefore reaches at most the first nonzero level-one cusp-form space. In samples near 10 5 10^5 1 0 5 and 10 6 10^6 1 0 6 , comparable lengths T T T give comparable variances even when T / p T/p T / p differs by a factor of ten, leaving the leading term in Theorem S8.1 unresolved at these sizes.
Estimates for the short-length profile
We use the notation of Lemma 6.2. Let g g g be a trace weight and g B g_B g B its smooth cutoff. Write γ B \gamma_B γ B for the cutoff Fourier coefficients, extended with period one, and Z p , Z B Z_p,Z_B Z p , Z B for the masses of P g , P g B P_g,P_{g_B} P g , P g B .
Lemma S5.1 (The averaged class-number tail). For 0 < ε < 1 0<\varepsilon<1 0 < ε < 1 , outside O g , ε ( X 1 − ε / 4 ) O_{g,\varepsilon}(X^{1-\varepsilon/4}) O g , ε ( X 1 − ε /4 ) primes in ( X , 2 X ] (X,2X] ( X , 2 X ] , the bound
Δ p ∑ t 2 < 4 p ∣ g ( t ) − g B ( t ) ∣ 2 + ∥ P g − P g B ∥ Q 2 ≪ g , ε p ε B (24) \Delta_p\sum_{t^2<4p}|g(t)-g_B(t)|^2+\lVert P^g-P^{g_B}\rVert_Q^2\ll_{g,\varepsilon}\frac{p^\varepsilon}{B} \tag*{(24)} Δ p t 2 < 4 p ∑ ∣ g ( t ) − g B ( t ) ∣ 2 + ∥ P g − P g B ∥ Q 2 ≪ g , ε B p ε (24) holds for all B ≥ 1 B\ge1 B ≥ 1 and 1 ≤ T ≤ p 1\le T\le p 1 ≤ T ≤ p .
Proof. With − D t = d t r t 2 -D_t=d_tr_t^2 − D t = d t r t 2 , the discriminant count and Heath–Brown bound in Section 6 of the article give ∑ X < p ≤ 2 X A ( p ) ≪ ε X 1 + ε \sum_{X<p\le2X} A(p) \ll_{\varepsilon} X^{1+\varepsilon} ∑ X < p ≤ 2 X A ( p ) ≪ ε X 1 + ε for
A ( p ) = Δ p ∑ t 2 < 4 p ∫ R ∣ L ( 1 / 2 + i v , χ d t ) ∣ 2 ( 1 + ∣ v ∣ ) − 10 d v . A(p)=\Delta_p\sum_{t^2<4p}\int_{\mathbb{R}}|L(1/2+iv,\chi_{dt})|^2(1+|v|)^{-10}\,dv. A ( p ) = Δ p t 2 < 4 p ∑ ∫ R ∣ L ( 1/2 + i v , χ d t ) ∣ 2 ( 1 + ∣ v ∣ ) − 10 d v .
Using exponent ε / 4 \varepsilon/4 ε /4 and Markov gives A ( p ) ≤ p ε / 2 A(p)\le p^{\varepsilon/2} A ( p ) ≤ p ε /2 outside O ε ( X 1 − ε / 4 ) O_{\varepsilon}(X^{1-\varepsilon/4}) O ε ( X 1 − ε /4 ) primes. Shift the cutoff integral to R e s = 1 / 2 \mathop{\rm Re}s=1/2 Re s = 1/2 as in Section 3, crossing the full weight at s = 1 s=1 s = 1 . On the new line the finite divisor factor is ≪ ε ∑ i j ∣ r t i − 1 / 2 ≪ ε p ε / 4 \ll_{\varepsilon}\sum_{ij\mid r_t}i^{-1/2}\ll_{\varepsilon}p^{\varepsilon/4} ≪ ε ∑ ij ∣ r t i − 1/2 ≪ ε p ε /4 , and the fixed omitted factors are bounded. The rapid Mellin decay and Cauchy–Schwarz give squared grid error O g , ε ( B − 1 p ε / 2 A ( p ) ) O_{g,\varepsilon}(B^{-1}p^{\varepsilon/2}A(p)) O g , ε ( B − 1 p ε /2 A ( p )) . The grid inequality of Section 3.2 transfers it to the count norm, since 1 + Δ p T = O ( 1 ) 1+\Delta_p\sqrt{T}=O(1) 1 + Δ p T = O ( 1 ) for T ≤ p T\le p T ≤ p .
The angular integral. Set h = 1 / U h=1/U h = 1/ U , G h ( z ) = ∑ j e − h j 2 / 2 e i j z G_h(z)=\sum_j e^{-hj^2/2}e^{ijz} G h ( z ) = ∑ j e − h j 2 /2 e ij z , θ t = arccos ( t / ( 2 p ) ) \theta_t=\arccos(t/(2\sqrt{p})) θ t = arccos ( t / ( 2 p )) and w ϕ = 2 p sin ϕ w_\phi=2\sqrt{p}\sin\phi w ϕ = 2 p sin ϕ . For the angular sum D \mathcal{D} D in the proof of Lemma 6.2, use the norm ∥ f ∥ a n g 2 = ( 8 π 3 p ) − 1 ∫ 0 π ∣ f ( ϕ ) ∣ 2 d ϕ \|f\|_{\mathrm{ang}}^2=(8\pi^3p)^{-1}\int_0^\pi|f(\phi)|^2\,d\phi ∥ f ∥ ang 2 = ( 8 π 3 p ) − 1 ∫ 0 π ∣ f ( ϕ ) ∣ 2 d ϕ . The sine coefficient calculation there gives
∥ D ∥ a n g 2 = ∑ m ≥ 1 e − h ( m + 1 ) 2 m g B , p ( m ) 2 + e − h ∣ Z B − γ B ( 0 ) ∣ 2 . (25) \|\mathcal{D}\|_{\mathrm{ang}}^2=\sum_{m\ge1}e^{-h(m+1)^2}m g_{B,p}(m)^2+e^{-h}|Z_B-\gamma_B(0)|^2. \tag*{(25)} ∥ D ∥ ang 2 = m ≥ 1 ∑ e − h ( m + 1 ) 2 m g B , p ( m ) 2 + e − h ∣ Z B − γ B ( 0 ) ∣ 2 . (25)
Lemma S5.2 (Lengths above the endpoint). Fix 0 < δ 0 < 1 / 2 0<\delta_0<1/2 0 < δ 0 < 1/2 . For some ξ , ν > 0 \xi,\nu>0 ξ , ν > 0 , outside O g , δ 0 ( X 1 − ξ ) O_{g,\delta_0}(X^{1-\xi}) O g , δ 0 ( X 1 − ξ ) primes in ( X , 2 X ] (X,2X] ( X , 2 X ] , uniformly for p − δ 0 ≤ c = T / p ≤ 1 / 2 p^{-\delta_0}\le c=T/p\le1/2 p − δ 0 ≤ c = T / p ≤ 1/2 ,
∥ P g − Z p Q T ∥ Q 2 = C A p g ( c ) + O g , δ 0 ( c 3 / 2 + c p − ν ) . \|P^g-Z_pQ_T\|_Q^2=C^g_{A_p}(c)+O_{g,\delta_0}(c^{3/2}+cp^{-\nu}). ∥ P g − Z p Q T ∥ Q 2 = C A p g ( c ) + O g , δ 0 ( c 3/2 + c p − ν ) . On these primes Z p Z_p Z p differs from the complete constant Fourier coefficient by O g , δ 0 ( p − ν ) O_{g,\delta_0}(p^{-\nu}) O g , δ 0 ( p − ν ) .
Proof. On X < p ≤ 2 X X<p\le2X X < p ≤ 2 X , put
D 0 = X 1 / 4 , B = X ( 1 / 2 + δ 0 ) / 2 , ρ = ( 1 / 2 − δ 0 ) / 2 > 0. D_0=X^{1/4},\qquad B=X^{(1/2+\delta_0)/2},\qquad\rho=(1/2-\delta_0)/2>0. D 0 = X 1/4 , B = X ( 1/2 + δ 0 ) /2 , ρ = ( 1/2 − δ 0 ) /2 > 0.
Take ε \varepsilon ε small relative to ρ \rho ρ . The squared tail (S1) divided by c c c is O ( X − ρ + ε ) O(X^{-\rho+\varepsilon}) O ( X − ρ + ε ) . For the mass, sum the Abel bound O ( ( p ∥ β ∥ ) − 1 ) O((\sqrt{p}\|\beta\|)^{-1}) O (( p ∥ β ∥ ) − 1 ) at nonintegral frequencies against γ B \gamma_B γ B , and add the O g ( p − 1 / 2 ) O_g(p^{-1/2}) O g ( p − 1/2 ) Riemann-sum error at zero. This gives ∣ Z B − γ B ( 0 ) ∣ ≪ g , ε p − 1 / 2 B 1 / 2 + ε |Z_B-\gamma_B(0)|\ll_{g,\varepsilon}p^{-1/2}B^{1/2+\varepsilon} ∣ Z B − γ B ( 0 ) ∣ ≪ g , ε p − 1/2 B 1/2 + ε , whose square saves a power since B / ( p c ) ≪ X − 3 ρ B/(pc)\ll X^{-3\rho} B / ( p c ) ≪ X − 3 ρ . Only fixed denominators shift to zero, where the coefficient tail is O g ( B − 1 / 2 ) O_g(B^{-1/2}) O g ( B − 1/2 ) . Equation (S1) gives the claim for Z p Z_p Z p .
Use h = 1 / T h=1/T h = 1/ T . On w ϕ < T w_\phi<\sqrt{T} w ϕ < T only traces in two intervals of length O ( T / p ) O(T/\sqrt{p}) O ( T / p ) contribute appreciably, since T 2 / p T^2/p T 2 / p grows by a power. The edge argument of Lemma 3.3 bounds the squared norm by O ( T / p ) O(\sqrt{T}/p) O ( T / p ) times the local sum of ∣ g B ( t ) ∣ 2 |g_B(t)|^2 ∣ g B ( t ) ∣ 2 ; the subtracted sine costs O g ( c 3 / 2 ) O_g(c^{3/2}) O g ( c 3/2 ) . For c ≥ p − ρ c\ge p^{-\rho} c ≥ p − ρ , Lemma 3.3 with the constant included gives O g , ε ( c 3 / 2 + p ε B T / p ) O_{g,\varepsilon}(c^{3/2}+p^\varepsilon B\sqrt{T}/p) O g , ε ( c 3/2 + p ε B T / p ) , with B / T ≪ X − ρ / 2 B/\sqrt{T}\ll X^{-\rho/2} B / T ≪ X − ρ /2 . For c < p − ρ c<p^{-\rho} c < p − ρ , use ∣ g B ( t ) ∣ ≪ g , ε p ε |g_B(t)|\ll_{g,\varepsilon}p^\varepsilon ∣ g B ( t ) ∣ ≪ g , ε p ε to get O g , ε ( p ε ( c 3 / 2 + T / p ) ) O_{g,\varepsilon}(p^\varepsilon(c^{3/2}+\sqrt{T}/p)) O g , ε ( p ε ( c 3/2 + T / p )) . Thus the edge costs O g , δ 0 ( c 3 / 2 + c p − ν ) O_{g,\delta_0}(c^{3/2}+cp^{-\nu}) O g , δ 0 ( c 3/2 + c p − ν ) .
On w = w ϕ ≥ T w=w_\phi\ge\sqrt{T} w = w ϕ ≥ T , the Taylor and Poisson calculation in the article gives, with s = 2 p cos ϕ s=2\sqrt{p}\cos\phi s = 2 p cos ϕ ,
D ( ϕ ) = 2 π w ∑ β ≠ 0 γ B ( β ) e ( β s ) e − 2 π 2 w 2 β 2 / T + E ( ϕ ) , p − 1 ∫ ∣ E ∣ 2 ≪ g , ε p ε / T . \mathcal{D}(\phi)=2\pi w\sum_{\beta\ne0}\gamma_B(\beta)e(\beta s)e^{-2\pi^2w^2\beta^2/T}+E(\phi),\qquad p^{-1}\int|E|^2\ll_{g,\varepsilon}p^\varepsilon/T. D ( ϕ ) = 2 π w β = 0 ∑ γ B ( β ) e ( β s ) e − 2 π 2 w 2 β 2 / T + E ( ϕ ) , p − 1 ∫ ∣ E ∣ 2 ≪ g , ε p ε / T .
The reflection is exponentially small and the zero mode cancels up to O g ( w / T ) O_g(w/T) O g ( w / T ) . The squared error saves a power relative to c c c since ( T c ) − 1 ≤ p 2 δ 0 − 1 (Tc)^{-1}\le p^{2\delta_0-1} ( T c ) − 1 ≤ p 2 δ 0 − 1 .
Averaging the large denominators. Expand the selectors into fixed rational shifts α \alpha α . Lemma 3.2 gives the coefficients C d S ( a , a p ; d ) C_dS(a,ap;d) C d S ( a , a p ; d ) of β = a / d + α \beta=a/d+\alpha β = a / d + α , ( a , d ) = 1 (a,d)=1 ( a , d ) = 1 , with ∣ C d ∣ ≪ g d − 2 |C_d|\ll_g d^{-2} ∣ C d ∣ ≪ g d − 2 and d ≤ 2 B d\le2B d ≤ 2 B . The scalars C d C_d C d are fixed on the prime block. Split by d d d before shifting. The low frequencies have reduced denominators O g ( D 0 ) O_g(D_0) O g ( D 0 ) , and Lemma 3.3 bounds their mixed term by O g , ε ( p ε D 0 T / p ) O_{g,\varepsilon}(p^{\varepsilon}D_0\sqrt{T}/p) O g , ε ( p ε D 0 T / p ) , with D 0 / T ≪ X − ρ D_0/\sqrt{T}\ll X^{-\rho} D 0 / T ≪ X − ρ .
Fix dyadic bands T ≍ U T\asymp U T ≍ U and w ≍ W w\asymp W w ≍ W meeting w ≥ T w\ge\sqrt{T} w ≥ T . Put H = W / U H=W/\sqrt{U} H = W / U , so 1 / 2 ≤ H ≪ X δ 0 / 2 1/2\le H\ll X^{\delta_0/2} 1/2 ≤ H ≪ X δ 0 /2 and d / H ≫ 1 d/H\gg1 d / H ≫ 1 for d > D 0 d>D_0 d > D 0 . Write the Gaussian as e − v H 2 β 2 e^{-vH^2\beta^2} e − v H 2 β 2 with v v v in a fixed compact positive interval. Open S ( a , a n ; d ) = ∑ b m o d d ∗ e ( ( a 2 b ‾ + b n ) / d ) S(a,an;d)=\sum_{b\ \mathrm{mod}\ d}^{*}e((a\overline{2b}+bn)/d) S ( a , an ; d ) = ∑ b mod d ∗ e (( a 2 b + bn ) / d ) . The coefficient at frequency b / d b/d b / d in n n n is
C d e ( α s ) ∑ a ∈ Z , ( a , d ) = 1 a / d + α ≠ 0 e ( a 2 2 b ‾ / d ) e ( a s / d ) e − v H 2 ( a / d + α ) 2 . C_de(\alpha s)\sum_{\substack{a\in\mathbb{Z},\ (a,d)=1\\a/d+\alpha\ne0}}e(a^2\overline{2b}/d)e(as/d)e^{-vH^2(a/d+\alpha)^2}. C d e ( α s ) a ∈ Z , ( a , d ) = 1 a / d + α = 0 ∑ e ( a 2 2 b / d ) e ( a s / d ) e − v H 2 ( a / d + α ) 2 .
After removing C d e ( α s ) C_de(\alpha s) C d e ( α s ) , Parseval bounds the square mean over a period by O ( d / H ) O(d/H) O ( d / H ) , also for the v v v derivative. Since d ≤ 2 B ≪ X d\le2B\ll\sqrt{X} d ≤ 2 B ≪ X , the additive large sieve [32 Theorem 1] and integration over ∣ s ∣ ≤ 3 X |s|\le3\sqrt{X} ∣ s ∣ ≤ 3 X bound the integer sum of the high squared integrals by
≪ g , ε ( X + B 2 ) X ∑ d > D 0 d − 4 d d H ≪ g , ε X 3 / 2 H D 0 . \ll_{g,\varepsilon}(X+B^2)\sqrt{X}\sum_{d>D_0}d^{-4}d\frac{d}{H}\ll_{g,\varepsilon}\frac{X^{3/2}}{HD_0}. ≪ g , ε ( X + B 2 ) X d > D 0 ∑ d − 4 d H d ≪ g , ε H D 0 X 3/2 .
The derivative bound and the fundamental theorem of calculus allow the supremum over v v v . The angular factor is O ( W / X ) O(W/X) O ( W / X ) since w 2 d ϕ = w ∣ d s ∣ w^2d\phi=w|ds| w 2 d ϕ = w ∣ d s ∣ . Restricting to the target prime class, summing the W W W bands and dividing by X ( U / X ) X(U/X) X ( U / X ) gives O g , ε ( X − ρ + ε ) O_{g,\varepsilon}(X^{-\rho+\varepsilon}) O g , ε ( X − ρ + ε ) . Sum over shifts by the triangle inequality. Markov over the O ( log X ) O(\log X) O ( log X ) length bands gives O g , δ 0 ( c p − ν ) O_{g,\delta_0}(cp^{-\nu}) O g , δ 0 ( c p − ν ) outside a power-saving exceptional set.
Comparison with the diagonal. For d > D 0 d>D_0 d > D 0 , the shifted Gaussian sum is O ( d T / w ) O(d\sqrt{T}/w) O ( d T / w ) since w / T ≪ X δ 0 / 2 w/\sqrt{T}\ll X^{\delta_0/2} w / T ≪ X δ 0 /2 . Weil’s bound gives high diagonal O g , ε ( p ε c / D 0 ) O_{g,\varepsilon}(p^{\varepsilon}\sqrt{c}/D_0) O g , ε ( p ε c / D 0 ) after integration. Cauchy–Schwarz also controls coincidences between low and high modes of different shifts. The low diagonal is O g ( c log 3 ( 2 / c ) ) O_g(c\log^3(2/c)) O g ( c log 3 ( 2/ c )) by Lemma 3.3. Combining the bounds identifies the bulk heat norm with the diagonal up to O ( c p − ν ) O(cp^{-\nu}) O ( c p − ν ) . The coefficient square sum modulo one is bounded, so the translate sum O ( 1 + c / ( y ( 1 − y ) ) ) O(1+\sqrt{c/(y(1-y))}) O ( 1 + c / ( y ( 1 − y )) ) at y = ( 1 + cos ϕ ) / 2 y=(1+\cos\phi)/2 y = ( 1 + cos ϕ ) /2 bounds the diagonal edge by O g ( c 3 / 2 ) O_g(c^{3/2}) O g ( c 3/2 ) . The cutoff-to-complete squared coefficient error is O g ( B − 1 log 4 ( 2 B ) ) O_g(B^{-1}\log^4(2B)) O g ( B − 1 log 4 ( 2 B )) by Weil and the h d h_d h d tail. The same bound holds with fixed shifts and after angular integration, so Cauchy–Schwarz saves a power since ( B c ) − 1 ≪ X − ρ (Bc)^{-1}\ll X^{-\rho} ( B c ) − 1 ≪ X − ρ . Here w 2 = 16 p y ( 1 − y ) w^2=16py(1-y) w 2 = 16 p y ( 1 − y ) and w 2 ∣ d ϕ ∣ / ( 2 π p ) = σ ( y ) ∣ d y ∣ w^2|d\phi|/(2\pi p)=\sigma(y)|dy| w 2 ∣ d ϕ ∣/ ( 2 π p ) = σ ( y ) ∣ d y ∣ give the diagonal C p g ( c ) C_p^g(c) C p g ( c ) .
The multiplier comparison in the proof of Lemma 6.2 has relative error O ( T − 1 / 2 log 3 p ) O(T^{-1/2}\log^3p) O ( T − 1/2 log 3 p ) against the heat bound O g ( c log 3 ( 2 p ) ) O_g(c\log^3(2p)) O g ( c log 3 ( 2 p )) . The remaining terms are negligible by Gaussian decay and ∣ m g B , p ( m ) ∣ ≪ g , ε p ε ( m + 1 ) |m_{g_B,p}(m)|\ll_{g,\varepsilon}p^\varepsilon(m+1) ∣ m g B , p ( m ) ∣ ≪ g , ε p ε ( m + 1 ) . Project off the first sine in (S2) and use (S1) and Cauchy–Schwarz to restore the full centered count measure.
Lemma S5.3 (Reduction at short weight cutoffs). Fix λ > 0 \lambda>0 λ > 0 , 1 / 6 < a ≤ 1 / 4 1/6<a\le1/4 1/6 < a ≤ 1/4 and a sufficiently small ω > 0 \omega>0 ω > 0 . Put U = λ p 2 a U=\lambda p^{2a} U = λ p 2 a , c = U / p c=U/p c = U / p , B = X 3 / 4 − a / 2 B=X^{3/4-a/2} B = X 3/4 − a /2 and D + = X 1 / 2 − a + ω D_+=X^{1/2-a+\omega} D + = X 1/2 − a + ω . In (S2) use h = 1 / U h=1/U h = 1/ U . Write V + V_+ V + for the nonzero-frequency Gaussian sum
V + ( ϕ ) = 2 π w ∑ β ≠ 0 γ B + ( β ) e ( β s ) e − 2 π 2 w 2 β 2 / U , w = 2 p sin ϕ , s = 2 p cos ϕ . V_+(\phi)=2\pi w\sum_{\beta\ne0}\gamma_B^+(\beta)e(\beta s)e^{-2\pi^2w^2\beta^2/U},\qquad w=2\sqrt{p}\sin\phi,\quad s=2\sqrt{p}\cos\phi. V + ( ϕ ) = 2 π w β = 0 ∑ γ B + ( β ) e ( β s ) e − 2 π 2 w 2 β 2 / U , w = 2 p sin ϕ , s = 2 p cos ϕ . Here γ B + \gamma_B^+ γ B + includes only the terms with original denominator d ≤ D + d\le D_+ d ≤ D + before the shifts by the trace selectors. Let χ X ( ϕ ) = χ ( X ω w / X ) \chi_X(\phi)=\chi(X^\omega w/\sqrt{X}) χ X ( ϕ ) = χ ( X ω w / X ) , where χ \chi χ is smooth with 0 ≤ χ ≤ 1 0\le\chi\le1 0 ≤ χ ≤ 1 , equal to zero up to one and to one from two onwards. For every fixed J > 0 J>0 J > 0 , outside O g , λ , a , ω , J ( X ( log X ) − J ) O_{g,\lambda,a,\omega,J}(X(\log X)^{-J}) O g , λ , a , ω , J ( X ( log X ) − J ) primes in ( X , 2 X ] (X,2X] ( X , 2 X ] ,
∥ D − χ X V + ∥ a n g 2 + ∣ Z B − γ B ( 0 ) ∣ 2 ≪ g , λ , a , ω , J c ( log X ) − J . \|\mathcal{D}-\chi_XV_+\|_{\mathrm{ang}}^2+|Z_B-\gamma_B(0)|^2\ll_{g,\lambda,a,\omega,J}c(\log X)^{-J}. ∥ D − χ X V + ∥ ang 2 + ∣ Z B − γ B ( 0 ) ∣ 2 ≪ g , λ , a , ω , J c ( log X ) − J . The same assertion holds at a = 1 / 6 a=1/6 a = 1/6 with B = X 2 / 3 − ρ B=X^{2/3-\rho} B = X 2/3 − ρ for any sufficiently small fixed $\rho>0.
Proof. The angular endpoints. Take W 0 = X 1 / 2 − a + ν W_0=X^{1/2-a+\nu} W 0 = X 1/2 − a + ν with small ν > 0 \nu>0 ν > 0 , and use the finitely many shifted components β = m / d + α \beta=m/d+\alpha β = m / d + α of S5.2. Near ϕ = 0 \phi=0 ϕ = 0 with w < W 0 w<W_0 w < W 0 , put z = 2 p z=2\sqrt{p} z = 2 p , L p = p / U L_p=\sqrt{p}/U L p = p / U , η = U ϕ ≪ X ν \eta=\sqrt{U}\phi\ll X^\nu η = U ϕ ≪ X ν and y = ( z − t ) / L p y=(z-t)/L_p y = ( z − t ) / L p . The odd kernel equals 2 π U F η , U ( y ) \sqrt{2\pi}U F_{\eta,U}(y) 2 π U F η , U ( y ) up to exponentially small tails, where
F η , U ( y ) = ζ ( y / U ) ( e − ( Q U ( y ) − η ) 2 / 2 − e − ( Q U ( y ) + η ) 2 / 2 ) , Q U ( y ) = U arccos ( 1 − y / ( 2 U ) ) . F_{\eta,U}(y)=\zeta(y/U)\left(e^{-(Q_U(y)-\eta)^2/2}-e^{-(Q_U(y)+\eta)^2/2}\right),\qquad Q_U(y)=\sqrt{U}\arccos(1-y/(2U)). F η , U ( y ) = ζ ( y / U ) ( e − ( Q U ( y ) − η ) 2 /2 − e − ( Q U ( y ) + η ) 2 /2 ) , Q U ( y ) = U arccos ( 1 − y / ( 2 U )) .
Extend by zero off [ 0 , U / 2 ] [0,U/2] [ 0 , U /2 ] and use a smooth ζ \zeta ζ equal to one up to 1 / 4 1/4 1/4 and zero from 1 / 2 1/2 1/2 onwards. Then Q U ( y ) = y q ( y / U ) Q_U(y)=\sqrt{y}\,q(y/U) Q U ( y ) = y q ( y / U ) with q q q smooth and positive there. The other edge uses − t -t − t and π − ϕ \pi-\phi π − ϕ .
The Fourier transforms of y r ( U ∂ U ) i F η , U y^r(U\partial_U)^iF_{\eta,U} y r ( U ∂ U ) i F η , U for r , i ∈ { 0 , 1 } r,i\in\{0,1\} r , i ∈ { 0 , 1 } are O ( ( 1 + η ) C ( 1 + ∣ ξ ∣ ) − 3 / 2 ) O((1+\eta)^C(1+|\xi|)^{-3/2}) O (( 1 + η ) C ( 1 + ∣ ξ ∣ ) − 3/2 ) . Oddness in Q U Q_U Q U makes the derivatives of orders j ≤ 2 j\leq2 j ≤ 2 on 0 < y ≤ 1 0<y\leq1 0 < y ≤ 1 of size O ( ( 1 + η ) C y 1 / 2 − j ) O((1+\eta)^Cy^{1/2-j}) O (( 1 + η ) C y 1/2 − j ) . For y ≥ 1 y\geq1 y ≥ 1 their L 1 L^1 L 1 norms grow polynomially in 1 + η 1+\eta 1 + η by Gaussian decay. Split at ∣ ξ ∣ − 1 |\xi|^{-1} ∣ ξ ∣ − 1 and integrate twice by parts beyond it. Poisson summation therefore gives the multiplier 2 π U L p e ( β z ) F ^ η , U ( L p β ) \sqrt{2\pi}UL_p e(\beta z)\widehat{F}_{\eta,U}(L_p\beta) 2 π U L p e ( β z ) F η , U ( L p β ) . The continuous integral at β = 0 \beta=0 β = 0 is 2 π w e − 1 / ( 2 U ) 2\pi w e^{-1/(2U)} 2 π w e − 1/ ( 2 U ) up to the omitted exponential tails, so the zero mode cancels.
Put L = X 1 / 2 − 2 a L=X^{1/2-2a} L = X 1/2 − 2 a and N ≍ X L N\asymp\sqrt{X}L N ≍ X L . An interval z = z 0 + v L z=z_0+vL z = z 0 + v L , 0 ≤ v ≤ 1 0\leq v\leq1 0 ≤ v ≤ 1 , corresponds to O ( N ) O(N) O ( N ) consecutive integers, and there are O ( X / N ) O(X/N) O ( X / N ) such intervals. Hold v v v and η \eta η fixed in the kernel and vary the integer n n n in S ( m , m n ; d ) S(m,mn;d) S ( m , mn ; d ) . For D ≤ d < 2 D D\leq d<2D D ≤ d < 2 D and R ≤ 1 + L ∣ β ∣ < 2 R R\leq1+L|\beta|<2R R ≤ 1 + L ∣ β ∣ < 2 R with R R R dyadic, write A m = e ( β z ) F ^ η , U ( L p β ) A_m=e(\beta z)\widehat{F}_{\eta,U}(L_p\beta) A m = e ( β z ) F η , U ( L p β ) . Its bound is O ( ( 1 + η ) C R − 3 / 2 ) O((1+\eta)^CR^{-3/2}) O (( 1 + η ) C R − 3/2 ) , and differentiation in v v v costs at most O ( R ) O(R) O ( R ) , since U U U and L p L_p L p have logarithmic derivatives O ( X − 2 a ) O(X^{-2a}) O ( X − 2 a ) in v v v .
On a nonempty band the numerators lie in two intervals of total length O g ( M 0 ) O_g(M_0) O g ( M 0 ) , M 0 = d R / L ≫ g 1 M_0=dR/L\gg_g1 M 0 = d R / L ≫ g 1 , since ∣ β ∣ ≫ g 1 / d |\beta|\gg_g1/d ∣ β ∣ ≫ g 1/ d . Open the sum in the integer n n n . Ramanujan summation gives
∑ u m o d d ∗ ∣ ∑ m A m e ( m 2 u ‾ d ) ∣ 2 ≪ ϵ d ϵ ( d M 0 + M 0 2 ) max m ∣ A m ∣ 2 . \sum_{u\bmod d}^{*}\left|\sum_m A_m e\left(\frac{m^2\overline{u}}{d}\right)\right|^2\ll_\epsilon d^\epsilon(dM_0+M_0^2)\max_m|A_m|^2. u mod d ∑ ∗ m ∑ A m e ( d m 2 u ) 2 ≪ ϵ d ϵ ( d M 0 + M 0 2 ) m max ∣ A m ∣ 2 .
Indeed ∣ c d ( k ) ∣ ≤ ∑ r ∣ ( d , k ) r |c_d(k)|\leq\sum_{r\mid(d,k)}r ∣ c d ( k ) ∣ ≤ ∑ r ∣ ( d , k ) r , and for each r ∣ d r\mid d r ∣ d the unit congruence m ′ 2 = m 2 m o d r m'^2=m^2\bmod r m ′2 = m 2 mod r has O ϵ ( d ϵ ) O_\epsilon(d^\epsilon) O ϵ ( d ϵ ) classes, each with O g ( 1 + M 0 / r ) O_g(1+M_0/r) O g ( 1 + M 0 / r ) terms. The additive large sieve for u / d u/d u / d costs O ( N + D 2 ) O(N+D^2) O ( N + D 2 ) . The supremum in v v v costs a single R R R by sup ∣ f ∣ 2 ≪ ∥ f ∥ 2 2 + ∥ f ∥ 2 ∥ f ′ ∥ 2 \sup|f|^2\ll\|f\|_2^2+\|f\|_2\|f'\|_2 sup ∣ f ∣ 2 ≪ ∥ f ∥ 2 2 + ∥ f ∥ 2 ∥ f ′ ∥ 2 . Including ∣ C d ∣ 2 |C_d|^2 ∣ C d ∣ 2 , the squared sum on the integer interval is
≪ ( N + D 2 ) ( 1 + η ) C D − 1 + ϵ ( ( L R ) − 1 + L − 2 ) . \ll(N+D^2)(1+\eta)^C D^{-1+\epsilon}\left((LR)^{-1}+L^{-2}\right). ≪ ( N + D 2 ) ( 1 + η ) C D − 1 + ϵ ( ( L R ) − 1 + L − 2 ) .
For R ≤ X C 1 R\leq X^{C_1} R ≤ X C 1 , sum the brackets using R ≫ g max ( 1 , L / D ) R\gg_g\max(1,L/D) R ≫ g max ( 1 , L / D ) to get O g ( L − 1 min ( 1 , D / L ) log X ) O_g(L^{-1}\min(1,D/L)\log X) O g ( L − 1 min ( 1 , D / L ) log X ) , with logarithmic cost by Cauchy–Schwarz. The R − 3 / 2 R^{-3/2} R − 3/2 decay and the trivial Kloosterman bound handle R > X C 1 R>X^{C_1} R > X C 1 for large C 1 C_1 C 1 .
Enlarge the angular integral to a common interval 0 ≤ η ≤ C 2 X ν 0\leq\eta\leq C_2X^\nu 0 ≤ η ≤ C 2 X ν before averaging the integers. The squared prefactor in the angular norm, including d ϕ = d η / U d\phi=d\eta/\sqrt{U} d ϕ = d η / U , is O ( U − 3 / 2 ) O(U^{-3/2}) O ( U − 3/2 ) . Thus the mean squared edge norm of a denominator block divided by c c c is
≪ X 1 − 5 a + O ( ν + ϵ ) ( 1 + D 2 / N ) min ( 1 , D / L ) D L ≪ X O ( ν + ϵ ) ( X − a + D X 1 / 2 + a ) . \ll X^{1-5a+O(\nu+\epsilon)}\frac{(1+D^2/N)\min(1,D/L)}{DL}\ll X^{O(\nu+\epsilon)}\left(X^{-a}+\frac{D}{X^{1/2+a}}\right). ≪ X 1 − 5 a + O ( ν + ϵ ) D L ( 1 + D 2 / N ) min ( 1 , D / L ) ≪ X O ( ν + ϵ ) ( X − a + X 1/2 + a D ) .
This saves a power on summing D ≤ 2 B D\leq2B D ≤ 2 B , since the exponent of B B B is strictly below 1 / 2 + a 1/2+a 1/2 + a , with gap ρ \rho ρ at a = 1 / 6 a=1/6 a = 1/6 . We may restrict the sum to the primes in the designated class. Markov’s inequality gives a power-saving exceptional count. The cutoff χ X \chi_X χ X is zero on w < W 0 w<W_0 w < W 0 for ω + ν < a \omega+\nu<a ω + ν < a .
The interior kernel. For w ≥ W 0 w\geq W_0 w ≥ W 0 , put x = ( t − s ) U / w x=(t-s)\sqrt{U}/w x = ( t − s ) U / w and r = p / ( w U ) r=\sqrt{p}/(w\sqrt{U}) r = p / ( w U ) . On ∣ x ∣ ≤ log X |x|\leq\log X ∣ x ∣ ≤ log X the distance to the edge changes relatively by O ( r log X ) O(r\log X) O ( r log X ) and θ ( j ) ( t ) = O j ( p ( j − 1 ) / 2 w 1 − 2 j ) \theta^{(j)}(t)=O_j(p^{(j-1)/2}w^{1-2j}) θ ( j ) ( t ) = O j ( p ( j − 1 ) /2 w 1 − 2 j ) . The scaled angle is − x -x − x to first order, with degree-j j j coefficient O j ( r j − 1 ) O_j(r^{j-1}) O j ( r j − 1 ) . Taylor-expanding the Gaussian in these orders gives polynomial corrections of size O A ( r i ) O_A(r^i) O A ( r i ) for 1 ≤ i < A 1 \le i < A 1 ≤ i < A and remainder O A ( r A ( 1 + ∣ x ∣ ) C A e − x 2 / 4 ) O_A(r^A(1+|x|)^{C_A}e^{-x^2/4}) O A ( r A ( 1 + ∣ x ∣ ) C A e − x 2 /4 ) . The reflection and off-window tails are negligible. Since r ≪ X − ν r \ll X^{-\nu} r ≪ X − ν and w / U w/\sqrt{U} w / U grows by a power, the summed remainder is O A ( w X − A ν ( log X ) C ) O_A(wX^{-A\nu}(\log X)^C) O A ( w X − A ν ( log X ) C ) , using the logarithmic bound for g B g_B g B on the grid and its polynomial bound on the Fourier extension. The continuous integral cancels the zero modes. Poisson summation at the other frequencies turns the corrections into polynomials in w β / U w\beta/\sqrt{U} w β / U times the Gaussian, with relative prefactors O A ( X − ν ) O_A(X^{-\nu}) O A ( X − ν ) .
Averaging the denominator blocks. Put H = W / X a H = W/X^a H = W / X a on W ≤ w < 2 W W \le w < 2W W ≤ w < 2 W . At fixed s s s , open the Kloosterman sum with n n n in the interval W 2 ≤ 4 n − s 2 < 4 W 2 W^2 \le4n-s^2 < 4W^2 W 2 ≤ 4 n − s 2 < 4 W 2 of length N ≪ W 2 N \ll W^2 N ≪ W 2 , or use the full interval N = X N=X N = X . For D ≤ X D \le\sqrt{X} D ≤ X the S5.2 large-sieve argument bounds the normalized average by
≪ g ( N + D 2 ) X X 1 + a D min ( 1 , ( D / H ) 2 ) . \ll_g \frac{(N+D^2)\sqrt{X}}{X^{1+a}D}\min(1,(D/H)^2). ≪ g X 1 + a D ( N + D 2 ) X min ( 1 , ( D / H ) 2 ) .
The Gaussian sum over numerators is O g ( ( d / H ) min ( 1 , ( d / H ) 2 ) ) O_g((d/H)\min(1,(d/H)^2)) O g (( d / H ) min ( 1 , ( d / H ) 2 )) . This holds with a polynomial factor or parameter derivative, since ∣ β ∣ ≫ g 1 / d |\beta| \gg_g 1/d ∣ β ∣ ≫ g 1/ d for β ≠ 0 \beta\ne0 β = 0 . The squared periodic integral in s s s costs at most O ( X ) O(\sqrt{X}) O ( X ) times its mean. For D > X D > \sqrt{X} D > X , replace the period estimate by the preceding Ramanujan argument. At each s s s , summing over the square congruence classes gives O g , ε ( d 2 + ε / H ) O_{g,\varepsilon}(d^{2+\varepsilon}/H) O g , ε ( d 2 + ε / H ) since 1 ≤ d / H ≤ d 1 \le d/H \le d 1 ≤ d / H ≤ d . The same bound applies to the polynomial and derivative weights. Integration over O ( X ) O(\sqrt{X}) O ( X ) and the large sieve now give O g , ε ( D 1 + ε / X 1 / 2 + a ) O_{g,\varepsilon}(D^{1+\varepsilon}/X^{1/2+a}) O g , ε ( D 1 + ε / X 1/2 + a ) after normalization. The angular factor is O ( W / X ) O(W/X) O ( W / X ) in both estimates. Taking a supremum over the Gaussian parameter leaves the integer interval fixed.
Take N = X N=X N = X for d > D + d>D_+ d > D + . The bound up to X \sqrt{X} X is O ( X 1 / 2 − a / D ) O(X^{1/2-a}/D) O ( X 1/2 − a / D ) , and above X \sqrt{X} X the new bound saves a power since D ≤ 2 B D \le2B D ≤ 2 B . With N ≪ W 2 N \ll W^2 N ≪ W 2 , the bounds on D ≤ W D \le W D ≤ W , W < D ≤ X W<D\le\sqrt{X} W < D ≤ X and D > X D>\sqrt{X} D > X are respectively O ( W / X ) O(W/\sqrt{X}) O ( W / X ) , O ( X − a ) O(X^{-a}) O ( X − a ) and O ( B 1 + ε / X 1 / 2 + a ) O(B^{1+\varepsilon}/X^{1/2+a}) O ( B 1 + ε / X 1/2 + a ) . This removes the bands W ≪ X 1 / 2 − ω W \ll X^{1/2-\omega} W ≪ X 1/2 − ω and also bounds the polynomial corrections by their squared prefactors O A ( X − 2 ν ) O_A(X^{-2\nu}) O A ( X − 2 ν ) times powers of log X \log X log X after normalization by c c c . These bounds apply to the full sum and to d ≤ D + d \le D_+ d ≤ D + . Markov’s inequality gives the asserted precision and exceptional count.
The first sine coefficient of D D D is a constant multiple of p e − 1 / ( 2 U ) ( Z B − γ B ( 0 ) ) \sqrt{p}\,e^{-1/(2U)}(Z_B-\gamma_B(0)) p e − 1/ ( 2 U ) ( Z B − γ B ( 0 )) . Projecting onto sin ϕ \sin\phi sin ϕ therefore gives the mass assertion once the projection of χ X V + \chi_XV_+ χ X V + is power-small. Set v = p / X v=p/X v = p / X and u = s / X u=s/\sqrt{X} u = s / X . After division by p \sqrt{p} p , the projection of each frequency is an integral in u u u with phase e ( X β u ) e(\sqrt{X}\beta u) e ( X β u ) and smooth amplitude proportional to χ ( X ω 4 v − u 2 ) 4 v − u 2 / v \chi(X^\omega\sqrt{4v-u^2})\sqrt{4v-u^2}/v χ ( X ω 4 v − u 2 ) 4 v − u 2 / v times the Gaussian. It extends by zero and each differentiation in u u u costs only O ( X 2 ω ) O(X^{2\omega}) O ( X 2 ω ) times a weaker Gaussian. Since each nonzero X ∣ β ∣ ≫ g X a − ω \sqrt{X}|\beta| \gg_g X^{a-\omega} X ∣ β ∣ ≫ g X a − ω , repeated integration by parts gives arbitrary power savings, also after summing the frequencies. This proves the lemma. □
Lemma S5.4 (The endpoint for fixed trace weights). Fix a trace weight g g g , a unit class p p p mod M M M as in Section 6 of the article, and λ > 0 \lambda>0 λ > 0 . Put U = λ p 1 / 3 U=\lambda p^{1/3} U = λ p 1/3 and c = U / p c=U/p c = U / p . For some ξ > 0 \xi>0 ξ > 0 , outside O g , M , λ ( X 1 − ξ ) O_{g,M,\lambda}(X^{1-\xi}) O g , M , λ ( X 1 − ξ ) primes in ( X , 2 X ] (X,2X] ( X , 2 X ] ,
∑ m ≥ 1 e − ( m + 1 ) 2 / U m g , p ( m ) 2 = C A p g ( c ) + O g , M , λ ( c X − ξ ) . \sum_{m\ge1} e^{-(m+1)^2/U}m_{g,p}(m)^2=C_{A_p}^g(c)+O_{g,M,\lambda}(cX^{-\xi}). m ≥ 1 ∑ e − ( m + 1 ) 2 / U m g , p ( m ) 2 = C A p g ( c ) + O g , M , λ ( c X − ξ ) . On the same primes the mass differs from its complete constant Fourier coefficient by O g , M , λ ( X − ξ ) O_{g,M,\lambda}(X^{-\xi}) O g , M , λ ( X − ξ ) .
Proof. The class-number remainder with omitted factors. Take B = X 2 / 3 − ρ B=X^{2/3-\rho} B = X 2/3 − ρ for a small fixed ρ > 0 \rho>0 ρ > 0 . Add a bump supported on ( 1 , 2 ) (1,2) ( 1 , 2 ) to the smooth cutoff ψ \psi ψ to impose ψ ′ ( − 1 / 2 ) = 0 \psi'(-1/2)=0 ψ ′ ( − 1/2 ) = 0 . By linearity take g = 1 A F ( J ) g=1_A F^{(J)} g = 1 A F ( J ) and put P J = ∏ ℓ ∈ J ℓ P_J=\prod_{\ell\in J}\ell P J = ∏ ℓ ∈ J ℓ . For D t ≍ ∣ α t ∣ r t 2 D_t \asymp|\alpha_t|r_t^2 D t ≍ ∣ α t ∣ r t 2 let k ℓ = v ℓ ( r t ) k_\ell=v_\ell(r_t) k ℓ = v ℓ ( r t ) , ϵ ℓ = χ d t ( ℓ ) \epsilon_\ell=\chi_{d_t}(\ell) ϵ ℓ = χ d t ( ℓ ) and R 0 = ∏ ℓ ∈ J ℓ 2 k ℓ R_0=\prod_{\ell\in J}\ell^{2k_\ell} R 0 = ∏ ℓ ∈ J ℓ 2 k ℓ . Dropping the factors at J J J from C t C_t C t leaves C t ∗ C_t^* C t ∗ with C t ∗ ( s ) = ( r t / R 0 ) 1 − 2 s C t ∗ ( 1 − s ) C_t^*(s)=(r_t/\sqrt{R_0})^{1-2s}C_t^*(1-s) C t ∗ ( s ) = ( r t / R 0 ) 1 − 2 s C t ∗ ( 1 − s ) by divisor substitution. Thus L t ∗ = L ( s , χ d t ) C t ∗ ( s ) L_t^* = L(s,\chi_{d_t})C_t^*(s) L t ∗ = L ( s , χ d t ) C t ∗ ( s ) obeys the odd functional equation at conductor D t ′ = D t / R 0 D'_t = D_t/R_0 D t ′ = D t / R 0 ,
( D t ′ / π ) ( s + 1 ) / 2 Γ ( ( s + 1 ) / 2 ) L t ∗ ( s ) = ( D t ′ / π ) ( 2 − s ) / 2 Γ ( ( 2 − s ) / 2 ) L t ∗ ( 1 − s ) . (D'_t/\pi)^{(s+1)/2}\Gamma((s+1)/2)L_t^*(s)=(D'_t/\pi)^{(2-s)/2}\Gamma((2-s)/2)L_t^*(1-s). ( D t ′ / π ) ( s + 1 ) /2 Γ (( s + 1 ) /2 ) L t ∗ ( s ) = ( D t ′ / π ) ( 2 − s ) /2 Γ (( 2 − s ) /2 ) L t ∗ ( 1 − s ) .
The original omitted series is L t ∗ ( s ) ∏ ℓ ∈ J ( 1 − ϵ ℓ ℓ − s ) L_t^*(s)\prod_{\ell\in J}(1-\epsilon_\ell\ell^{-s}) L t ∗ ( s ) ∏ ℓ ∈ J ( 1 − ϵ ℓ ℓ − s ) . Shifting its cutoff integral past the residue F ( J ) ( t ) F^{(J)}(t) F ( J ) ( t ) and applying the equation gives
F ( J ) ( t ) − F B ( J ) ( t ) = ( D t ′ / π ) − 1 / 2 ∑ ( n , P J ) = 1 ∑ v b t ( n ) a ϵ ( v ) J ( π n v B / D t ′ ) . F^{(J)}(t)-F_B^{(J)}(t)=(D'_t/\pi)^{-1/2}\sum_{\substack{(n,P_J)=1}}\sum_v b_t(n)a_\epsilon(v)\mathcal{J}(\pi nvB/D'_t). F ( J ) ( t ) − F B ( J ) ( t ) = ( D t ′ / π ) − 1/2 ( n , P J ) = 1 ∑ v ∑ b t ( n ) a ϵ ( v ) J ( π n v B / D t ′ ) .
where J ( s ) = − ψ ( − s ) Γ ( ( 1 + s ) / 2 ) / Γ ( 1 − s / 2 ) \mathcal{J}(s)=-\psi(-s)\Gamma((1+s)/2)/\Gamma(1-s/2) J ( s ) = − ψ ( − s ) Γ (( 1 + s ) /2 ) /Γ ( 1 − s /2 ) and the coefficients in v v v are given by the absolutely convergent expansion
∑ v a ϵ ( v ) v − s = ∏ ℓ ∈ J 1 − ϵ ℓ ℓ s − 1 1 − ϵ ℓ ℓ − s ( ℜ s > 0 ) . \sum_v a_\epsilon(v)v^{-s}=\prod_{\ell\in J}\frac{1-\epsilon_\ell\ell^{s-1}}{1-\epsilon_\ell\ell^{-s}}\qquad(\Re s>0). v ∑ a ϵ ( v ) v − s = ℓ ∈ J ∏ 1 − ϵ ℓ ℓ − s 1 − ϵ ℓ ℓ s − 1 ( ℜ s > 0 ) .
Only primes in J J J occur in v v v , with exponents at least − 1 -1 − 1 . The absolute Dirichlet series is bounded for each ℜ s = σ > 0 \Re s=\sigma>0 ℜ s = σ > 0 . Mellin shifts make J \mathcal{J} J and its logarithmic derivatives rapidly decreasing at infinity and bounded at zero, so n ≪ J X ϵ D t ′ / B < p n\ll_J X^\epsilon D'_t/B<p n ≪ J X ϵ D t ′ / B < p suffices with arbitrary power savings. On w < W 0 = X 1 / 3 + ν w<W_0=X^{1/3+\nu} w < W 0 = X 1/3 + ν , with ν \nu ν small relative to ρ \rho ρ , only D t ≪ W 0 2 D_t\ll W_0^2 D t ≪ W 0 2 contribute appreciably. The quadratic root bound and Liouville convolution give ∣ b t ( n ) ∣ ≪ ϵ n 1 / 2 + ϵ |b_t(n)|\ll_\epsilon n^{1/2+\epsilon} ∣ b t ( n ) ∣ ≪ ϵ n 1/2 + ϵ . Summing the kernel gives remainder O J , ϵ ( X ϵ D t ′ / B 3 / 2 ) O_{J,\epsilon}(X^\epsilon D'_t/B^{3/2}) O J , ϵ ( X ϵ D t ′ / B 3/2 ) , hence O J , ϵ ( X ϵ W 0 2 / B 3 / 2 ) O_{J,\epsilon}(X^\epsilon W_0^2/B^{3/2}) O J , ϵ ( X ϵ W 0 2 / B 3/2 ) there. Since the heat kernels sum to O ( W 0 ) O(W_0) O ( W 0 ) and the angle length is O ( W 0 / X ) O(W_0/\sqrt{X}) O ( W 0 / X ) , the squared edge norm is O ϵ ( X ϵ W 0 7 / ( B 3 X 3 / 2 ) ) = O ( c X − ξ ) O_\epsilon(X^\epsilon W_0^7/(B^3X^{3/2}))=O(cX^{-\xi}) O ϵ ( X ϵ W 0 7 / ( B 3 X 3/2 )) = O ( c X − ξ ) .
In the interior, fix a pattern ( k ℓ , ϵ ℓ ) ℓ ∈ J (k_\ell,\epsilon_\ell)_{\ell\in J} ( k ℓ , ϵ ℓ ) ℓ ∈ J . For a given p p p the pattern and A A A select O M , J ( 1 ) O_{M,J}(1) O M , J ( 1 ) trace classes modulo R ≍ M , J R 0 R\asymp_{M,J}R_0 R ≍ M , J R 0 . At odd ℓ \ell ℓ the test uses t 2 − 4 p t^2-4p t 2 − 4 p modulo ℓ 2 k ℓ + 2 \ell^{2k_\ell+2} ℓ 2 k ℓ + 2 and, for k ℓ ≥ 1 k_\ell\ge1 k ℓ ≥ 1 , the at most two roots of t 2 ≡ 4 p ( m o d ℓ 2 k ℓ ) t^2\equiv4p\pmod{\ell^{2k_\ell}} t 2 ≡ 4 p ( mod ℓ 2 k ℓ ) . At 2 2 2 the fundamental discriminant has valuation 0 0 0 , 2 2 2 or 3 3 3 , and the valuation and odd unit part modulo 8 8 8 are determined modulo 2 2 k 2 + 6 2^{2k_2+6} 2 2 k 2 + 6 . For k 2 ≥ 2 k_2\ge2 k 2 ≥ 2 , there are at most four roots of ( t / 2 ) 2 ≡ p ( m o d 2 2 k 2 − 2 ) (t/2)^2\equiv p\pmod{2^{2k_2-2}} ( t /2 ) 2 ≡ p ( mod 2 2 k 2 − 2 ) . Taking the least common multiple with the fixed selector period retains O M , J ( 1 ) O_{M,J}(1) O M , J ( 1 ) classes.
Before this selector is applied, expand b t ( n ) b_t(n) b t ( n ) by Lemma 3.2 of the article with D t ′ D'_t D t ′ fixed. The coefficient at m / d m/d m / d , for d d d prime to J J J , is S ( m , m p ; d ) S(m,mp;d) S ( m , m p ; d ) times
( D t ′ / π ) − 1 / 2 φ ( d ) ∑ ( n , P J ) = 1 ∑ v h d ( n ) a ϵ ( v ) J ( π n v B / D t ′ ) . \frac{(D'_t/\pi)^{-1/2}}{\varphi(d)}
\sum_{\substack{(n,P_J)=1}}\sum_v h_d(n)a_\epsilon(v)\mathcal{J}(\pi nvB/D'_t). φ ( d ) ( D t ′ / π ) − 1/2 ( n , P J ) = 1 ∑ v ∑ h d ( n ) a ϵ ( v ) J ( π n v B / D t ′ ) .
Extend the truncated h d h_d h d sum back to infinity with negligible error. Summing its square and divisor expansion first in the square variable, and using ∑ v ∣ a ϵ ( v ) ∣ v − 1 / 2 ≪ J 1 \sum_v|a_\epsilon(v)|v^{-1/2}\ll_J1 ∑ v ∣ a ϵ ( v ) ∣ v − 1/2 ≪ J 1 , bounds the factor and its derivatives in log D t ′ \log D'_t log D t ′ by O A , J ( B − 1 / 2 d − 3 / 2 ( 1 + d B / D t ′ ) − A ) O_{A,J}(B^{-1/2}d^{-3/2}(1+dB/D'_t)^{-A}) O A , J ( B − 1/2 d − 3/2 ( 1 + d B / D t ′ ) − A ) . The growing part of R R R is supported on J J J . A zero frequency after shifting by j / R j/R j / R therefore requires d ∣ M d\mid M d ∣ M . For each such fixed d d d , shift the coefficient’s Mellin integral to ℜ s = ϵ \Re s=\epsilon ℜ s = ϵ . The series for h d h_d h d has the factor ζ ( 2 s ) / ζ ( 1 + s ) \zeta(2s)/\zeta(1+s) ζ ( 2 s ) / ζ ( 1 + s ) . Omitting J J J and inserting the factors in v v v leave the other factors regular on ℜ s > 0 \Re s>0 ℜ s > 0 . The pole at 1 / 2 1/2 1/2 is canceled by J ( 1 / 2 ) = 0 \mathcal{J}(1/2)=0 J ( 1/2 ) = 0 . The resulting bound is O M , J , ϵ ( ( D t ′ ) − 1 / 2 X ϵ ) O_{M,J,\epsilon}((D'_t)^{-1/2}X^\epsilon) O M , J , ϵ (( D t ′ ) − 1/2 X ϵ ) . Each selector coefficient is O M , J ( 1 / R ) O_{M,J}(1/R) O M , J ( 1/ R ) , so the zero frequency together with its Taylor corrections costs O M , J , ϵ ( X − 1 + ϵ ) O_{M,J,\epsilon}(X^{-1+\epsilon}) O M , J , ϵ ( X − 1 + ϵ ) in squared norm.
On a band w ≍ W ≥ W 0 w\asymp W\ge W_0 w ≍ W ≥ W 0 , Taylor expand the smooth conductor factor at t = s = 2 p cos ϕ t=s=2\sqrt{p}\cos\phi t = s = 2 p cos ϕ along with the heat kernel. Here D t / w 2 = 1 + O ( r log X ) D_t/w^2=1+O(r\log X) D t / w 2 = 1 + O ( r log X ) on the Gaussian window and r = p / ( w U ) ≪ X − ν r=\sqrt{p}/(w\sqrt{U})\ll X^{-\nu} r = p / ( w U ) ≪ X − ν . The logarithmic derivative bounds give the polynomial Gaussian terms and negligible remainder of S5.3. For the other modes d ≪ X ϵ W 2 / ( R 0 B ) ≪ X d\ll X^\epsilon W^2/(R_0B)\ll\sqrt{X} d ≪ X ϵ W 2 / ( R 0 B ) ≪ X , first apply weighted Cauchy–Schwarz over the shifts. The square is bounded by O M , J ( 1 / R ) O_{M,J}(1/R) O M , J ( 1/ R ) times the sum of the squares at each shift, so the p p p -dependent selector coefficients have dropped out. At each fixed shift and smooth parameters w / W w/W w / W , p / X p/X p / X , open the Kloosterman sums and use the additive large sieve with cost O ( X ) O(X) O ( X ) in the integer replacing p p p . The s s s integral of the squared numerator sum costs O ( X ) O(\sqrt{X}) O ( X ) times its period mean, since the shift is common to its terms and d ≤ X d \le\sqrt{X} d ≤ X . For H = W / U H = W/\sqrt{U} H = W / U , the averaged Gaussian count is
1 R ∑ j m o d R ∑ m / d + j / R ≠ 0 e − C H 2 ( m / d + j / R ) 2 ≪ d / H . \frac{1}{R}\sum_{j\mathrel{\mathrm{mod}}R}\ \sum_{\substack{m/d+j/R\ne0}} e^{-CH^2(m/d+j/R)^2} \ll d/H. R 1 j mod R ∑ m / d + j / R = 0 ∑ e − C H 2 ( m / d + j / R ) 2 ≪ d / H .
Indeed the shifted grid is lcm ( d , R ) − 1 Z \operatorname{lcm}(d,R)^{-1}\mathbb{Z} lcm ( d , R ) − 1 Z with multiplicity ( d , R ) (d,R) ( d , R ) , and the zero term is excluded. Polynomial Gaussian corrections obey the same bound with a smaller C > 0 C>0 C > 0 . Taking suprema in the two smooth parameters uses the same bounds for their first and mixed derivatives. The angular factor W / X W/X W / X , the prime normalization, and summation in d d d give squared norm O ε ( X ε B − 1 W / ( H X ) ) = O λ ( c X − ξ ) O_{\varepsilon}(X^{\varepsilon}B^{-1}W/(H\sqrt{X}))=O_{\lambda}(cX^{-\xi}) O ε ( X ε B − 1 W / ( H X )) = O λ ( c X − ξ ) on average. This also bounds the Taylor corrections. Sum over the O ( J ( ( log X ) ∣ J ∣ ) ) O(J((\log X)^{|J|})) O ( J (( log X ) ∣ J ∣ )) patterns and the fixed components of g g g . Markov’s inequality restores the full weight with a power saving off a power-saving exceptional set.
This also controls the larger denominators with their original phases. Take B 1 = X 2 / 3 + ρ B_1=X^{2/3+\rho} B 1 = X 2/3 + ρ . The positive kernel G ( ϕ − θ t ) + G ( ϕ + θ t ) G(\phi-\theta_t)+G(\phi+\theta_t) G ( ϕ − θ t ) + G ( ϕ + θ t ) has bounded integral and sum O ( X ) O(\sqrt{X}) O ( X ) over t t t , by angle spacing. Cauchy–Schwarz and S5.1 give squared angular error O ( c X − ξ ) O(cX^{-\xi}) O ( c X − ξ ) at B 1 B_1 B 1 , and thus the same bound for the difference of cutoffs. In its part with d ≤ 2 B d\le2B d ≤ 2 B , the coefficient difference is O ( d − 2 min ( 1 , d / B ) ) O(d^{-2}\min(1,\sqrt{d/B})) O ( d − 2 min ( 1 , d / B )) before the Kloosterman sum. The edge estimate in the proof of S5.3 bounds these blocks, as does its interior estimate for d > D + d>D_+ d > D + . For d ≤ D + d\le D_+ d ≤ D + the latter costs X 1 / 3 / d X^{1/3}/d X 1/3 / d after normalization, with an extra factor d / B d/B d / B from the squared coefficient difference. The constant mode leaves only its nonzero integer translates after first-sine projection, as in S5.3. Subtracting this low-denominator part bounds the full block d > 2 B d>2B d > 2 B of g B 1 g_{B_1} g B 1 by O ( c X − ξ ) O(cX^{-\xi}) O ( c X − ξ ) in squared angular norm off a power-saving exceptional set. This comparison applies to each fixed shifted component, using its original denominator before the shift.
Products at nearby trace frequencies. Use the reduction S5.3 with D + = X 1 / 3 + ω D_+=X^{1/3+\omega} D + = X 1/3 + ω . Let A ( n , v ) A(n,v) A ( n , v ) be the signed off-diagonal with p p p replaced by n n n in the phases and p / X p/X p / X by v v v in the weights. For each fixed choice of four shifts, the restrictions in Lemma 6.2 give β i = m i / d i + κ i / M = A i / ( M d i ) \beta_i=m_i/d_i+\kappa_i/M=A_i/(Md_i) β i = m i / d i + κ i / M = A i / ( M d i ) with A i = M m i + κ i d i A_i=Mm_i+\kappa_i d_i A i = M m i + κ i d i , d i = X 1 / 3 + O ( ω + ε ) d_i=X^{1/3+O(\omega+\varepsilon)} d i = X 1/3 + O ( ω + ε ) , 0 < ∣ A i ∣ ≪ M X O ( ω + ε ) 0<|A_i|\ll_M X^{O(\omega+\varepsilon)} 0 < ∣ A i ∣ ≪ M X O ( ω + ε ) , and
0 < ∣ h ∣ , ∣ h ′ ∣ ≤ X 1 / 6 + O ( ω + ε ) , h = A 1 d 2 − A 2 d 1 , h ′ = A 3 d 4 − A 4 d 3 . 0<|h|,|h'|\le X^{1/6+O(\omega+\varepsilon)},\qquad h=A_1d_2-A_2d_1,\qquad h'=A_3d_4-A_4d_3. 0 < ∣ h ∣ , ∣ h ′ ∣ ≤ X 1/6 + O ( ω + ε ) , h = A 1 d 2 − A 2 d 1 , h ′ = A 3 d 4 − A 4 d 3 .
Use denominators prime to the omitted sets. Their scalar coefficients are d − 2 ∏ ℓ ∣ d ( 1 − ℓ − 2 ) − 1 d^{-2}\prod_{\ell\mid d}(1-\ell^{-2})^{-1} d − 2 ∏ ℓ ∣ d ( 1 − ℓ − 2 ) − 1 up to relative O ( d / B ) O(\sqrt{d/B}) O ( d / B ) by Lemma 3.2 , since an omitted h d h_d h d factor at s = 1 s=1 s = 1 equals one. The unsigned bound of Lemma 6.2, O ( X − 4 / 3 + O ( ω + ε ) ) O(X^{-4/3+O(\omega+\varepsilon)}) O ( X − 4/3 + O ( ω + ε ) ) , absorbs this error, including one v v v derivative.
At coincident frequencies in n n n , Parseval on [ d 1 , d 2 ] [d_1,d_2] [ d 1 , d 2 ] and Weil’s bound give squared coefficient mass O ( X ε ( d 1 d 2 ) − 3 ) O(X^{\varepsilon}(d_1d_2)^{-3}) O ( X ε ( d 1 d 2 ) − 3 ) per pair. At ( d 1 , d 2 ) ≍ G (d_1,d_2)\asymp G ( d 1 , d 2 ) ≍ G there are O ( X 1 / 2 + O ( ω + ε ) / G ) O(X^{1/2+O(\omega+\varepsilon)}/G) O ( X 1/2 + O ( ω + ε ) / G ) pairs and at most O ( G X O ( ω + ε ) ) O(GX^{O(\omega+\varepsilon)}) O ( G X O ( ω + ε ) ) contribute at one frequency, by the count in Lemma 6.2. Cauchy–Schwarz over these pairs gives O ( X − 3 / 2 + O ( ω + ε ) ) O(X^{-3/2+O(\omega+\varepsilon)}) O ( X − 3/2 + O ( ω + ε ) ) .
For distinct frequencies, open the four Kloosterman sums, with signs + , − , − , + +,-,-,+ + , − , − , + , then sum against a smooth majorant of the prime interval by Poisson summation over integers. Let P = ∏ i d i P=\prod_i d_i P = ∏ i d i and Q = [ d 1 , d 2 , d 3 , d 4 ] Q=[d_1,d_2,d_3,d_4] Q = [ d 1 , d 2 , d 3 , d 4 ] . The nonzero Poisson numerator j j j has weight φ ^ ( X j / Q ) \widehat{\varphi}(Xj/Q) φ ( X j / Q ) . Each numerator has at most P / Q P/Q P / Q preimages. In particular, the absolute bound per quadruple is O ( 1 / ( X P ) ) O(1/(XP)) O ( 1/ ( X P )) , including the four Fourier coefficients, since ∑ j ≠ 0 ∣ φ ^ ( X j / Q ) ∣ ≪ Q / X \sum_{j\ne0}|\widehat{\varphi}(Xj/Q)|\ll Q/X ∑ j = 0 ∣ φ ( X j / Q ) ∣ ≪ Q / X .
Choose small 0 < ω , ε ≪ η ≪ ν ≪ 1 0<\omega,\varepsilon\ll\eta\ll\nu\ll1 0 < ω , ε ≪ η ≪ ν ≪ 1 , with ω , ε \omega,\varepsilon ω , ε small also in terms of ρ , ν \rho,\nu ρ , ν . Write d i = b i u i d_i=b_i u_i d i = b i u i , taking b i b_i b i to be the full part on primes dividing M M M or shared by at least two denominators. Discard tuples with any gcd exceeding X η X^\eta X η or any b i > X 5 η b_i>X^{5\eta} b i > X 5 η . An internal gcd divides the determinant. For a gcd across pairs, choose the two denominators involved and sum O ( D 2 / f 2 ) O(D^2/f^2) O ( D 2 / f 2 ) over common divisors f > X η f > X^\eta f > X η . In both counts the partner of a denominator is fixed by its shifted numerators and determinant. The first powers of primes dividing M M M cost a fixed factor. With all gcds small, b i > X 5 η b_i > X^{5\eta} b i > X 5 η forces a squarefull part greater than X η X^\eta X η and hence a square divisor b 2 b^2 b 2 with b > X η / 3 b > X^{\eta/3} b > X η /3 . This costs O ( D + X − η / 3 ) O(D_+X^{-\eta/3}) O ( D + X − η /3 ) choices for that denominator. The absolute bound for these quadruples thus saves a power. We can impose just b i ≤ X 5 η b_i \leq X^{5\eta} b i ≤ X 5 η in the completed sums: any reintroduced tuples with a large gcd are bounded by the same count.
In the fixed b i b_i b i tuples every prime outside M M M occurs at least twice. The u i u_i u i are pairwise coprime and prime to M C MC M C , where C = ∏ b i C = \prod b_i C = ∏ b i . Put L = [ b 1 , b 2 , b 3 , b 4 ] L = [b_1,b_2,b_3,b_4] L = [ b 1 , b 2 , b 3 , b 4 ] , V = ∏ u i V = \prod u_i V = ∏ u i , so Q = L V Q = LV Q = L V . The weight restricts ∣ j ∣ ≤ X 1 / 3 + O ( ω + ε ) |j| \leq X^{1/3+O(\omega+\varepsilon)} ∣ j ∣ ≤ X 1/3 + O ( ω + ε ) with negligible error. Discard also ∣ j ∣ < X 1 / 3 − ϑ |j| < X^{1/3-\vartheta} ∣ j ∣ < X 1/3 − ϑ , and j j j having squarefull part or part supported on the primes of 2 M C h h ′ u 3 u 4 ∏ i A i 2MC h h' u_3u_4 \prod_i A_i 2 M C h h ′ u 3 u 4 ∏ i A i greater than X ϑ X^\vartheta X ϑ in absolute value. For fixed quadruple the square-divisor count costs a factor X − ϑ / 3 X^{-\vartheta/3} X − ϑ /3 in the count of j j j . For a fixed integer A = X O ( 1 ) A = X^{O(1)} A = X O ( 1 ) , ∑ v ∣ A ∞ , v > Z v − 1 ≪ ε Z − 1 / 2 X ε \sum_{v\mid A^\infty,\ v>Z} v^{-1} \ll_\varepsilon Z^{-1/2}X^\varepsilon ∑ v ∣ A ∞ , v > Z v − 1 ≪ ε Z − 1/2 X ε , by the Euler product at 1 / 2 1/2 1/2 . Together with Q ≥ X 4 / 3 − O ( η + ω + ε ) Q \geq X^{4/3-O(\eta+\omega+\varepsilon)} Q ≥ X 4/3 − O ( η + ω + ε ) , these bounds give a power saving by the same absolute estimate. Write ∣ j ∣ = j 0 j 1 |j| = j_0j_1 ∣ j ∣ = j 0 j 1 on the retained terms, where j 0 j_0 j 0 is squarefree and prime to that fixed integer, j 1 ≤ X 2 ϑ j_1 \leq X^{2\vartheta} j 1 ≤ X 2 ϑ and j 0 ≥ X 1 / 3 − 3 ϑ j_0 \geq X^{1/3-3\vartheta} j 0 ≥ X 1/3 − 3 ϑ .
Write P 1 = d 1 d 2 P_1 = d_1d_2 P 1 = d 1 d 2 , P 2 = d 3 d 4 P_2 = d_3d_4 P 2 = d 3 d 4 . Fix the opened numerators x i x_i x i modulo b i b_i b i . Their phases there and the frequency condition modulo L L L are fixed by u i u_i u i mod M L ML M L , since m i = ( A i − κ i d i ) / M m_i = (A_i-\kappa_i d_i)/M m i = ( A i − κ i d i ) / M . On u i u_i u i , the congruence ± x i Q / d i ≡ j ( m o d u i ) \pm x_iQ/d_i \equiv j \pmod{u_i} ± x i Q / d i ≡ j ( mod u i ) fixes x i x_i x i , with ( j , V ) = 1 (j,V)=1 ( j , V ) = 1 , and m i ≡ A i M ‾ ( m o d u i ) m_i \equiv A_i\overline{M} \pmod{u_i} m i ≡ A i M ( mod u i ) . Thus the inverse phase on V V V is
e V ( L ( h 2 P 2 2 + h ′ 2 P 1 2 ) j C 2 M 2 ‾ ) , e q ( x ) = e ( x / q ) . e_V\left(L(h^2P_2^2+h'^2P_1^2)\overline{jC^2M^2}\right),\qquad e_q(x)=e(x/q). e V ( L ( h 2 P 2 2 + h ′2 P 1 2 ) j C 2 M 2 ) , e q ( x ) = e ( x / q ) .
Indeed the lifted i i i th inverse contribution is L A i 2 ( P / d i ) 2 j C 2 M 2 ‾ LA_i^2(P/d_i)^2\overline{jC^2M^2} L A i 2 ( P / d i ) 2 j C 2 M 2 modulo V V V . Completing each determinant square adds a multiple of V V V . Reciprocity transfers the inverse to modulus ∣ j ∣ C 2 M 2 |j|C^2M^2 ∣ j ∣ C 2 M 2 and leaves the smooth phase e ( ( L / ( j C M 2 ) ) ( h 2 P 2 / P 1 + h ′ 2 P 1 / P 2 ) ) e((L/(jCM^2))(h^2P_2/P_1+h'^2P_1/P_2)) e (( L / ( j C M 2 )) ( h 2 P 2 / P 1 + h ′2 P 1 / P 2 )) .
Fix A i A_i A i , h h h , h ′ h' h ′ , d 3 d_3 d 3 (hence d 4 d_4 d 4 ), the b i b_i b i , and j j j . Then d 2 = ( h + A 2 d 1 ) / A 1 d_2=(h+A_2d_1)/A_1 d 2 = ( h + A 2 d 1 ) / A 1 . Fix u 1 , u 2 u_1,u_2 u 1 , u 2 modulo j 1 C 2 M 2 j_1C^2M^2 j 1 C 2 M 2 for the small part of the reciprocal phase and the preceding conditions, including ( u i , M C ) = 1 (u_i,MC)=1 ( u i , M C ) = 1 . Expand the Euler products into divisor sums with squarefree coefficients ∏ ℓ ∣ r ( ℓ 2 − 1 ) − 1 \prod_{\ell\mid r}(\ell^2-1)^{-1} ∏ ℓ ∣ r ( ℓ 2 − 1 ) − 1 . Truncating at r ≤ X η r\leq X^\eta r ≤ X η costs O ( X − η + ε ) O(X^{-\eta+\varepsilon}) O ( X − η + ε ) in the unsigned bound. The divisor conditions and integrality restrict d 1 d_1 d 1 to progressions. The condition ( m i , b i ) = 1 (m_i,b_i)=1 ( m i , b i ) = 1 is fixed. Impose ( A i , u i ) = 1 (A_i,u_i)=1 ( A i , u i ) = 1 , ( u 1 , u 2 ) = 1 (u_1,u_2)=1 ( u 1 , u 2 ) = 1 , and ( u i , u 3 u 4 ) = 1 (u_i,u_3u_4)=1 ( u i , u 3 u 4 ) = 1 for i = 1 , 2 i=1,2 i = 1 , 2 by Möbius inversion over divisors of A i A_i A i , h h h and u 3 u 4 u_3u_4 u 3 u 4 , respectively. All steps are prime to j 0 j_0 j 0 : a divisor condition involving a prime of j 0 j_0 j 0 would force a nonunit u i u_i u i and contributes zero. The remaining unit conditions at j 0 j_0 j 0 are included in the complete sums.
Modulo each prime of j 0 j_0 j 0 the reciprocal phase is a unit times h 2 P 2 / P 1 + h ′ 2 P 1 / P 2 h^2P_2/P_1+h'^2P_1/P_2 h 2 P 2 / P 1 + h ′2 P 1 / P 2 . As a function of d 1 d_1 d 1 it has simple poles at the two distinct roots of P 1 = d 1 ( h + A 2 d 1 ) / A 1 P_1=d_1(h+A_2d_1)/A_1 P 1 = d 1 ( h + A 2 d 1 ) / A 1 . The rational-function Weil bound, also after an additive linear twist, and completion give O ε ( X ε ( 1 + D + / j 0 ) j 0 ) O_\varepsilon(X^\varepsilon(1+D_+/j_0)\sqrt{j_0}) O ε ( X ε ( 1 + D + / j 0 ) j 0 ) per progression by [6 Theorem 1.1] and the Chinese remainder theorem. Partial summation costs X O ( ϑ + ω + ε ) X^{O(\vartheta+\omega+\varepsilon)} X O ( ϑ + ω + ε ) : the Gaussian and angular weights depend on the ratios A i / d i A_i/d_i A i / d i and X h / P 1 \sqrt{X}h/P_1 X h / P 1 , the Poisson weight has bounded variation, and the smooth reciprocal phase has variation O ( X O ( ω + ε ) X 1 / 3 / ∣ j ∣ ) O(X^{O(\omega+\varepsilon)}X^{1/3}/|j|) O ( X O ( ω + ε ) X 1/3 /∣ j ∣ ) . The frequency inequalities cut out a bounded number of intervals along the progression.
The fixed choices of h , h ′ , d 3 , j h,h',d_3,j h , h ′ , d 3 , j cost X 1 + O ( ω + ε ) X^{1+O(\omega+\varepsilon)} X 1 + O ( ω + ε ) . The remaining small moduli and residues cost X O ( η + ϑ + ω + ε ) X^{O(\eta+\vartheta+\omega+\varepsilon)} X O ( η + ϑ + ω + ε ) . Including the factor X − 8 / 3 + O ( ω + ε ) X^{-8/3+O(\omega+\varepsilon)} X − 8/3 + O ( ω + ε ) from the four coefficients, the completed sum is O ( X − 3 / 2 + O ( η + ϑ + ω + ε ) ) O(X^{-3/2+O(\eta+\vartheta+\omega+\varepsilon)}) O ( X − 3/2 + O ( η + ϑ + ω + ε ) ) . Since c 2 ≍ X − 4 / 3 c^2\asymp X^{-4/3} c 2 ≍ X − 4/3 , the exponent margin here is $1/6 before the small losses. With the indicated parameter order, the completed and discarded contributions are O ( c 2 X − ξ ) O(c^2X^{-\xi}) O ( c 2 X − ξ ) . The same holds for one ν \nu ν derivative after decreasing ξ \xi ξ . The one-variable Sobolev bound in Lemma 6.2 thus allows ν = p / X \nu=p/X ν = p / X and gives a power saving for the signed off-diagonal outside O ( X 1 − ξ ) O(X^{1-\xi}) O ( X 1 − ξ ) primes.
The diagonal and the full angular norm. Group equal shifted frequencies before squaring. Lemma 6.2 bounds each component’s diagonal, and Cauchy–Schwarz controls their overlaps. The angle and denominator truncations cost O ( c X − ξ ) O(cX^{-\xi}) O ( c X − ξ ) , while the relative error O ( D + / B ) O(\sqrt{D_+/B}) O ( D + / B ) below D + D_+ D + saves a power against O ( c log 3 X ) O(c\log^3 X) O ( c log 3 X ) . S5.3 and the remainder comparison restore the full norm after first-sine projection. The cross term with d > 2 B d>2B d > 2 B also costs O ( c X − ξ ) O(cX^{-\xi}) O ( c X − ξ ) after decreasing ξ \xi ξ . Now (S2) gives the result. S5.1 and S5.3 bound Z g − Z B Z_g-Z_B Z g − Z B and Z B − γ B ( 0 ) Z_B-\gamma_B(0) Z B − γ B ( 0 ) . The remaining constant coefficient tail is O g , M ( B − 1 / 2 ) O_{g,M}(B^{-1/2}) O g , M ( B − 1/2 ) since its denominators are fixed.
Local trace weights at arbitrary fixed level
The factors of Theorem 6.12 come from a single prime ℓ \ell ℓ at a time. For trace R R R and unit determinant A A A , let ρ i \rho_i ρ i be the root count of x 2 − R x + A x^2-Rx+A x 2 − R x + A modulo ℓ i \ell^i ℓ i . Set ρ 0 = 1 \rho_0=1 ρ 0 = 1 and L = ( 1 + ℓ − 1 ) − 1 ∑ i ≥ 0 ℓ − i ρ i L=(1+\ell^{-1})^{-1}\sum_{i\geq0}\ell^{-i}\rho_i L = ( 1 + ℓ − 1 ) − 1 ∑ i ≥ 0 ℓ − i ρ i .
Full and new trace weights
At level ℓ e \ell^e ℓ e the full local trace weight is
G 0 = L , G e = ∑ j ≥ 0 ℓ − j ρ e + j = ℓ e ( ( 1 + ℓ − 1 ) L − ∑ i < e ℓ − i ρ i ) ( e ≥ 1 ) . (26) G_0=L,\qquad G_e=\sum_{j\geq0}\ell^{-j}\rho_{e+j}=\ell^e\left((1+\ell^{-1})L-\sum_{i<e}\ell^{-i}\rho_i\right)\qquad(e\geq1). \tag*{(26)} G 0 = L , G e = j ≥ 0 ∑ ℓ − j ρ e + j = ℓ e ( ( 1 + ℓ − 1 ) L − i < e ∑ ℓ − i ρ i ) ( e ≥ 1 ) . (26)
G e G_e G e is nonnegative and has form a L + b aL+b a L + b with b b b of period ℓ e − 1 \ell^{e-1} ℓ e − 1 for e ≥ 1 e\geq1 e ≥ 1 . Its mean is one since each unit x m o d ℓ i x\bmod\ell^i x mod ℓ i (i ≥ 1 i\geq1 i ≥ 1 ) specifies one trace R = x + A / x R=x+A/x R = x + A / x , so E ρ i = 1 − ℓ − 1 \mathbb{E}\rho_i=1-\ell^{-1} E ρ i = 1 − ℓ − 1 .
For the trace formula take A = p A=p A = p and R = t R=t R = t . In [20 Theorem 10, (43)–(44)] , write t 2 − 4 p = d f 2 t^2-4p=df^2 t 2 − 4 p = d f 2 with d d d fundamental and ν = v ℓ ( f ) \nu=v_\ell(f) ν = v ℓ ( f ) . In an integral basis 1 , ω ℓ 1,\omega_\ell 1 , ω ℓ we have π = ( t + t 2 − 4 p ) / 2 = b + f ω ℓ \pi=(t+\sqrt{t^2-4p})/2=b+f\omega_\ell π = ( t + t 2 − 4 p ) /2 = b + f ω ℓ . The local class-number weight for the orders indexed by m ∣ f m\mid f m ∣ f is ℓ − j \ell^{-j} ℓ − j when j = v ℓ ( m ) < ν j=v_\ell(m)<\nu j = v ℓ ( m ) < ν and ( 1 − χ d ( ℓ ) / ℓ ) − 1 (1-\chi_d(\ell)/\ell)^{-1} ( 1 − χ d ( ℓ ) / ℓ ) − 1 when j = ν j=\nu j = ν .
For j < e j<e j < e , j ≤ ν j\leq\nu j ≤ ν , the multiplier is ℓ j \ell^j ℓ j times the number of classes modulo ℓ e \ell^e ℓ e lifting to roots modulo ℓ e + j \ell^{e+j} ℓ e + j . The polynomial at b + y b+y b + y is y 2 − f Tr ( ω ℓ ) y + f 2 N ( ω ℓ ) y^2-f\operatorname{Tr}(\omega_\ell)y+f^2N(\omega_\ell) y 2 − f Tr ( ω ℓ ) y + f 2 N ( ω ℓ ) , so valuations force ℓ j ∣ y \ell^j\mid y ℓ j ∣ y . After division by ℓ 2 j \ell^{2j} ℓ 2 j , the congruence is modulo ℓ e − j \ell^{e-j} ℓ e − j . Each class has ℓ j \ell^j ℓ j lifts, giving multiplier ρ e + j \rho_{e+j} ρ e + j .
If ν < e \nu<e ν < e , the last order accounts for ∑ j ≥ ν ℓ − j ρ e + j \sum_{j\geq\nu}\ell^{-j}\rho_{e+j} ∑ j ≥ ν ℓ − j ρ e + j . For j ≥ ν j\geq\nu j ≥ ν , divide the root count by ℓ ν \ell^\nu ℓ ν and use the polynomial of the maximal-order generator ( π − b ) / ℓ ν (\pi-b)/\ell^\nu ( π − b ) / ℓ ν modulo ℓ e + j − 2 ν \ell^{e+j-2\nu} ℓ e + j − 2 ν . The counts are two at each modulus in the split case, zero in the inert case, and one at ℓ \ell ℓ followed by zero in the ramified case. In the last case a lift x x x modulo ℓ 2 \ell^2 ℓ 2 would make the generator minus x x x divisible by ℓ \ell ℓ in the maximal order, by the integral trace and norm criterion. This contradicts generation, also at 2 2 2 . The resulting geometric sum gives the last weight with factor ( 1 − χ d ( ℓ ) / ℓ ) − 1 (1-\chi_d(\ell)/\ell)^{-1} ( 1 − χ d ( ℓ ) / ℓ ) − 1 .
If ν ≥ e \nu\geq e ν ≥ e , only b m o d ℓ e b\bmod\ell^e b mod ℓ e lifts modulo ℓ 2 e \ell^{2e} ℓ 2 e , so all orders with j ≥ e j\geq e j ≥ e have multiplier ℓ e − 1 ( ℓ + 1 ) \ell^{e-1}(\ell+1) ℓ e − 1 ( ℓ + 1 ) . The same valuation comparison gives ρ i = ℓ ⌊ i / 2 ⌋ \rho_i=\ell^{\lfloor i/2\rfloor} ρ i = ℓ ⌊ i /2 ⌋ for i < 2 e i<2e i < 2 e . Hence these orders contribute ℓ e − 1 ( ℓ + 1 ) ( L − ∑ j < e ℓ − j ) = ∑ j ≥ e ℓ − j ρ e + j \ell^{e-1}(\ell+1)(L-\sum_{j<e}\ell^{-j})=\sum_{j\geq e}\ell^{-j}\rho_{e+j} ℓ e − 1 ( ℓ + 1 ) ( L − ∑ j < e ℓ − j ) = ∑ j ≥ e ℓ − j ρ e + j . This proves (S3).
The Chinese remainder theorem multiplies these factors at level N N N . For p ∤ N p\nmid N p ∤ N and even k ≥ 4 k\geq4 k ≥ 4 , the normalized trace is − p -\sqrt p − p times the degree-( k − 2 ) (k-2) ( k − 2 ) moment plus the hyperbolic term O N ( p − ( k − 1 ) / 2 ) O_N(p^{-(k-1)/2}) O N ( p − ( k − 1 ) /2 ) . The oldform multiplicity is the divisor count of N / D N/D N / D at level D ∣ N D\mid N D ∣ N . Inverting this count by second differences gives
W e = G e − 2 G e − 1 + G e − 2 , G j = 0 for j < 0. (27) W_e=G_e-2G_{e-1}+G_{e-2},\qquad G_j=0\ \text{for }j<0. \tag*{(27)} W e = G e − 2 G e − 1 + G e − 2 , G j = 0 for j < 0. (27)
The same hyperbolic bound holds for the new trace. All the weights are even in t t t .
Fourier energies
At denominator ℓ j \ell^j ℓ j with j ≥ 1 j\geq1 j ≥ 1 , (S3) multiplies the Fourier coefficient of L L L by
v 0 ( j ) = 1 , v e ( j ) = ( ℓ + 1 ) ℓ min ( j , e ) − 1 ( e ≥ 1 ) . v_0(j)=1,\qquad v_e(j)=(\ell+1)\ell^{\min(j,e)-1}\qquad(e\geq1). v 0 ( j ) = 1 , v e ( j ) = ( ℓ + 1 ) ℓ m i n ( j , e ) − 1 ( e ≥ 1 ) .
For i < j i<j i < j the root count ρ i \rho_i ρ i has zero coefficient there. For i ≥ j i\ge j i ≥ j the coefficient at numerator c c c is
ℓ − j ∑ u m o d ℓ j u m o d ℓ j ∗ exp ( − 2 π i c ( u + A / u ) / ℓ j ) \ell^{-j}\sum_{\substack{u \bmod\ell^j\\ u\ \mathrm{mod}\ \ell^j}}^{*}\exp\left(-2\pi i c(u+A/u)/\ell^j\right) ℓ − j u mod ℓ j u mod ℓ j ∑ ∗ exp ( − 2 π i c ( u + A / u ) / ℓ j )
independently of i i i . Summing the geometric series gives the multiplier. At the constant coefficient v e ( 0 ) = 1 v_e(0)=1 v e ( 0 ) = 1 for e ≥ 0 e\ge0 e ≥ 0 .
Let c j c_j c j be the contribution of denominator ℓ j \ell^j ℓ j to B ℓ , A ( L , L ) B_{\ell,A}(L,L) B ℓ , A ( L , L ) in Section 6, with c 0 = 1 − ℓ − 1 c_0=1-\ell^{-1} c 0 = 1 − ℓ − 1 , and put C j = ∑ i ≥ j c i C_j=\sum_{i\ge j}c_i C j = ∑ i ≥ j c i for j ≥ 1 j\ge1 j ≥ 1 . Define s h = # { u m o d ℓ h : u 2 ≡ A m o d ℓ h } s_h=\#\{u\bmod\ell^h:u^2\equiv A\bmod\ell^h\} s h = # { u mod ℓ h : u 2 ≡ A mod ℓ h } and s 0 = 1 s_0=1 s 0 = 1 . Then
C 1 = ℓ − 1 , C j = ℓ − j s ⌊ j / 2 ⌋ 1 − ℓ − 2 ( j ≥ 2 ) . (28) C_1=\ell^{-1},\qquad C_j=\frac{\ell^{-j}s_{\lfloor j/2\rfloor}}{1-\ell^{-2}}\quad(j\ge2). \tag*{(28)} C 1 = ℓ − 1 , C j = 1 − ℓ − 2 ℓ − j s ⌊ j /2 ⌋ ( j ≥ 2 ) . (28)
Indeed, let D j D_j D j be the Haar measure in Z ℓ 2 \mathbb{Z}_\ell^2 Z ℓ 2 of unit pairs ( u , v ) (u,v) ( u , v ) with ( u − v ) ( u v − A ) ≡ 0 m o d ℓ j (u-v)(uv-A)\equiv0\bmod\ell^j ( u − v ) ( uv − A ) ≡ 0 mod ℓ j . Primitive additive orthogonality gives c j = ( D j − ℓ − 1 D j − 1 ) / ( 1 − ℓ − 2 ) c_j=(D_j-\ell^{-1}D_{j-1})/(1-\ell^{-2}) c j = ( D j − ℓ − 1 D j − 1 ) / ( 1 − ℓ − 2 ) . For fixed unit u u u put d = v ℓ ( u 2 − A ) d=v_\ell(u^2-A) d = v ℓ ( u 2 − A ) . If j ≤ 2 d j\le2d j ≤ 2 d , the eligible v v v lie in one class modulo ℓ ⌈ j / 2 ⌉ \ell^{\lceil j/2\rceil} ℓ ⌈ j /2 ⌉ . If j > 2 d j>2d j > 2 d , there are two disjoint classes modulo ℓ j − d \ell^{j-d} ℓ j − d , centered at u u u and A / u A/u A / u . With P h = ℓ − h s h P_h=\ell^{-h}s_h P h = ℓ − h s h for h ≥ 1 h\ge1 h ≥ 1 , subtracting the adjacent measures gives, for h ≥ 1 h\ge1 h ≥ 1 ,
( 1 − ℓ − 2 ) c 2 h = ( 1 − ℓ − 1 ) ℓ − h P h , ( 1 − ℓ − 2 ) c 2 h + 1 = ℓ − h − 1 ( P h − P h + 1 ) . (1-\ell^{-2})c_{2h}=(1-\ell^{-1})\ell^{-h}P_h,\qquad
(1-\ell^{-2})c_{2h+1}=\ell^{-h-1}(P_h-P_{h+1}). ( 1 − ℓ − 2 ) c 2 h = ( 1 − ℓ − 1 ) ℓ − h P h , ( 1 − ℓ − 2 ) c 2 h + 1 = ℓ − h − 1 ( P h − P h + 1 ) .
These identities telescope to give C j C_j C j for j ≥ 2 j\ge2 j ≥ 2 . The value C 1 = 1 / ℓ C_1=1/\ell C 1 = 1/ ℓ follows from B ℓ , A ( L , L ) = 1 B_{\ell,A}(L,L)=1 B ℓ , A ( L , L ) = 1 . In particular c 1 = ℓ − 1 − s 1 / ( ℓ 2 − 1 ) c_1=\ell^{-1}-s_1/(\ell^2-1) c 1 = ℓ − 1 − s 1 / ( ℓ 2 − 1 ) .
Pairings and orthogonality
Write F e = B ℓ , A ( G e , G e ) F_e=B_{\ell,A}(G_e,G_e) F e = B ℓ , A ( G e , G e ) and B m n = B ℓ , A ( W m , W n ) B_{mn}=B_{\ell,A}(W_m,W_n) B mn = B ℓ , A ( W m , W n ) . Summation by parts of c 0 + ∑ j ≥ 1 c j v e ( j ) 2 c_0+\sum_{j\ge1}c_jv_e(j)^2 c 0 + ∑ j ≥ 1 c j v e ( j ) 2 gives
F 0 = 1 , F e = ℓ + 3 + ( ℓ + 1 ) 2 ∑ j = 2 e ℓ j − 2 s ⌊ j / 2 ⌋ ( e ≥ 1 ) . (29) F_0=1,\qquad F_e=\ell+3+(\ell+1)^2\sum_{j=2}^{e}\ell^{j-2}s_{\lfloor j/2\rfloor}\quad(e\ge1). \tag*{(29)} F 0 = 1 , F e = ℓ + 3 + ( ℓ + 1 ) 2 j = 2 ∑ e ℓ j − 2 s ⌊ j /2 ⌋ ( e ≥ 1 ) . (29)
For the new pairings set b n = ( ℓ 2 − 1 ) ℓ n − 3 b_n=(\ell^2-1)\ell^{n-3} b n = ( ℓ 2 − 1 ) ℓ n − 3 for n ≥ 3 n\ge3 n ≥ 3 , and
d 0 = 1 , d 1 = ℓ − 1 , d 2 = ℓ 2 − ℓ − 1 , d n = ( ℓ − 1 ) b n ( n ≥ 3 ) . d_0=1,\qquad d_1=\ell-1,\qquad d_2=\ell^2-\ell-1,\qquad d_n=(\ell-1)b_n\quad(n\ge3). d 0 = 1 , d 1 = ℓ − 1 , d 2 = ℓ 2 − ℓ − 1 , d n = ( ℓ − 1 ) b n ( n ≥ 3 ) .
The diagonal is
B 00 = 1 , B 11 = ℓ − 1 , B 22 = ℓ + s 1 ( ℓ 2 − 2 ℓ − 1 ) , B_{00}=1,\qquad B_{11}=\ell-1,\qquad B_{22}=\ell+s_1(\ell^2-2\ell-1), B 00 = 1 , B 11 = ℓ − 1 , B 22 = ℓ + s 1 ( ℓ 2 − 2 ℓ − 1 ) ,
B n n = b n ( s ⌊ ( n − 1 ) / 2 ⌋ + ( ℓ − 2 ) s ⌊ n / 2 ⌋ ) ( n ≥ 3 ) . (30) B_{nn}=b_n\left(s_{\lfloor(n-1)/2\rfloor}+(\ell-2)s_{\lfloor n/2\rfloor}\right)\quad(n\ge3). \tag*{(30)} B nn = b n ( s ⌊( n − 1 ) /2 ⌋ + ( ℓ − 2 ) s ⌊ n /2 ⌋ ) ( n ≥ 3 ) . (30)
The mixed entries for m < n m<n m < n are
B m n = { d m ( s h − s h − 1 ) , n = 2 h , h ≥ 1 , 0 , n odd . (31) B_{mn}=
\begin{cases}
d_m(s_h-s_{h-1}), & n=2h,\ h\ge1,\\
0, & n\ \text{odd}.
\end{cases} \tag*{(31)} B mn = { d m ( s h − s h − 1 ) , 0 , n = 2 h , h ≥ 1 , n odd . (31)
For W m W_m W m the multiplier at all positive denominator exponents j ≥ m j\ge m j ≥ m is d m d_m d m . If n ≥ 3 n\ge3 n ≥ 3 , the multiplier of W n W_n W n vanishes below n − 1 n-1 n − 1 , is − b n -b_n − b n at n − 1 n-1 n − 1 , and is ( ℓ − 1 ) b n (\ell-1)b_n ( ℓ − 1 ) b n above. Thus for m < n m<n m < n the pairing is d m b n ( ℓ C n − C n − 1 ) d_mb_n(\ell C_n-C_{n-1}) d m b n ( ℓ C n − C n − 1 ) . The squared norm of W n W_n W n is b n 2 ( C n − 1 + ( ℓ 2 − 2 ℓ ) C n ) b_n^2(C_{n-1}+(\ell^2-2\ell)C_n) b n 2 ( C n − 1 + ( ℓ 2 − 2 ℓ ) C n ) . Now use (S5) in both expressions. The constant coefficients of W 0 , W 1 , W 2 W_0,W_1,W_2 W 0 , W 1 , W 2 are $1,-1,0. A t p o s i t i v e e x p o n e n t s . At positive exponents . A tp os i t i v ee x p o n e n t s W_0,W_1 have constant multipliers 1 1 1 , ℓ − 1 \ell- 1 ℓ − 1 . The multiplier of W 2 W_2 W 2 is − ℓ -\ell − ℓ at exponent one and d 2 d_2 d 2 thereafter. Inserting c 0 c_0 c 0 , c 1 c_1 c 1 , C 1 C_1 C 1 , C 2 C_2 C 2 gives the remaining entries.
By character orthogonality, s h − s h − 1 s_h-s_{h-1} s h − s h − 1 sums the quadratic characters of exact conductor ℓ h \ell^h ℓ h at A A A . For odd ℓ \ell ℓ , all s h s_h s h with h ≥ 1 h \ge1 h ≥ 1 equal 1 + ( A ℓ ) 1+\left(\frac{A}{\ell}\right) 1 + ( ℓ A ) . The unequal pairs { 0 , 2 } \{0,2\} { 0 , 2 } , { 1 , 2 } \{1,2\} { 1 , 2 } are the only nonzero ones, in both square classes. The diagonal vanishes exactly for n ≥ 3 n \ge3 n ≥ 3 in the nonsquare class. At 2 2 2 the counts are
s 1 = 1 , s 2 = 21 A ≡ 1 ( 4 ) , s h = 41 A ≡ 1 ( 8 ) ( h ≥ 3 ) . s_1=1,\qquad s_2=2\mathbf{1}_{A\equiv1\ (4)},\qquad s_h=4\mathbf{1}_{A\equiv1\ (8)}\quad(h\ge3). s 1 = 1 , s 2 = 2 1 A ≡ 1 ( 4 ) , s h = 4 1 A ≡ 1 ( 8 ) ( h ≥ 3 ) .
Thus a mixed entry between unequal exponents vanishes except at n = 4 n=4 n = 4 or 6 6 6 for n > m n>m n > m . At n = 4 n=4 n = 4 the factor s 2 − s 1 s_2-s_1 s 2 − s 1 is 1 1 1 or − 1 -1 − 1 according to A m o d 4 A\bmod4 A mod 4 . At n = 6 n=6 n = 6 the factor s 3 − s 2 s_3-s_2 s 3 − s 2 is 2 2 2 at A ≡ 1 m o d 8 A\equiv1\bmod8 A ≡ 1 mod 8 , − 2 -2 − 2 at 5 5 5 , and zero at 3 , 7 3,7 3 , 7 . An equal-exponent entry at 2 2 2 is positive through n = 4 n=4 n = 4 , is positive at n = 5 , 6 n=5,6 n = 5 , 6 exactly for A ≡ 1 m o d 4 A\equiv1\bmod4 A ≡ 1 mod 4 , and at n ≥ 7 n\ge7 n ≥ 7 exactly for A ≡ 1 m o d 8 A\equiv1\bmod8 A ≡ 1 mod 8 . These are all the possible zeros of a factor in the product.
For a fixed list of levels, the constants are independent of A A A at odd primes occurring only to the first power. They depend only on the Legendre symbol at the other odd primes. At 2 2 2 they are independent of A A A when the largest exponent is at most 3 3 3 , are determined by A m o d 4 A\bmod4 A mod 4 when it is 4 4 4 or 5 5 5 , and by A m o d 8 A\bmod8 A mod 8 for larger exponents. The relative-density-one sets in finer classes can be combined into sets in these coarser classes, since the number of finer classes is finite.
Dependencies of the main proof
Main trace theorem. § 6 of the article gives the proof order. The count identity uses Diaconis–Khare–Saloff-Coste, Propositions 4.1–4.2. Lemmas 3.2 –3.4 use the Deuring, Gekeler and Zagier formulas, Burgess with parameter 3, and Petrow–Young, Theorem 1.1. S5.1–S5.3 use Heath–Brown’s fourth moment [14 Theorem 2] and the additive large sieve [32 Theorem 1 and Lemma 1] . S5.4 adds the discriminant functional equation and the rational-function Weil bound. Theorem 6.1 uses Siegel–Walfisz and the multiplicative large sieve.
Applications. Proposition 6.3 uses the short-interval bound of David–Koukoulopoulos–Smith [9 Theorem 1.3] . Lemma 6.8 adapts their progression argument for Proposition 6.9 [9 Theorems 3.2 and 4.2, Corollary 3.3, §5.2] . Theorems 6.5, 6.11 and 6.12 use local factors and oldform inversion, with Kaplan–Petrow [20 Theorem 10, (43)–(44)] . Their Lemmas 2–4 and Theorems 2–3 give the weights in § 4 .
Variance and prime means. Theorem S8.1 and Corollary S9.1 use the same fourth moment and sieves, plus the zero-density bound [23 (1.2)] . Corollary S9.2 uses Alpgø’s Dirichlet critical-line theorem [2 , 39 ] . Proposition 7.1 and the strengthened S1 bounds use its quadratic case.
Variance across primes at level one
Choose the local unit residues independently and uniformly in the Haar model. We compute its variance by character completion and transfer it to the primes using bounds grouped by conductor divisibility. Put x χ = λ X − δ / 2 x\chi=\sqrt{\lambda}X^{-\delta/2} x χ = λ X − δ /2 .
For B B B uniform on the units modulo ℓ k \ell^k ℓ k set Y ℓ , k ( B ) = ( 1 − ℓ − 2 ) − 2 ∣ S ( 1 , B ; ℓ k ) ∣ 2 / ℓ k Y_{\ell,k}(B)=(1-\ell^{-2})^{-2}|S(1,B;\ell^k)|^2/\ell^k Y ℓ , k ( B ) = ( 1 − ℓ − 2 ) − 2 ∣ S ( 1 , B ; ℓ k ) ∣ 2 / ℓ k . Define the common arithmetic factor and the kernel integral by
A = ∏ ℓ ( 1 − ℓ − 1 ) 2 ( 1 1 − ℓ − 5 + ∑ k ≥ 1 ℓ − k E B [ Y ℓ , k ( B ) 2 ] ) , I ( H ) = ∫ 0 ∞ v 4 H ( v ) 2 d v . (32) \mathcal{A}=\prod_{\ell}(1-\ell^{-1})^2\left(\frac{1}{1-\ell^{-5}}+\sum_{k\ge1}\ell^{-k}\mathbb{E}_B[Y_{\ell,k}(B)^2]\right),\qquad I(H)=\int_0^\infty v^4H(v)^2\,dv. \tag*{(32)} A = ℓ ∏ ( 1 − ℓ − 1 ) 2 ( 1 − ℓ − 5 1 + k ≥ 1 ∑ ℓ − k E B [ Y ℓ , k ( B ) 2 ] ) , I ( H ) = ∫ 0 ∞ v 4 H ( v ) 2 d v . (32)
Let W ( v ) = 2 ∫ 0 1 σ ( y ) e − 64 π 2 y ( 1 − y ) v 2 d y W(v)=2\int_0^1\sigma(y)e^{-64\pi^2y(1-y)v^2}\,dy W ( v ) = 2 ∫ 0 1 σ ( y ) e − 64 π 2 y ( 1 − y ) v 2 d y and put J δ = ∫ 1 2 v − δ / 2 d v J_\delta=\int_1^2v^{-\delta/2}\,dv J δ = ∫ 1 2 v − δ /2 d v .
Theorem S8.1. Fix λ > 0 \lambda> 0 λ > 0 and 0 < δ ≤ 1 / 4 0 < \delta\le1/4 0 < δ ≤ 1/4 . Put T p = ⌊ λ p 1 − δ ⌋ T_p = \lfloor\lambda p^{1-\delta} \rfloor T p = ⌊ λ p 1 − δ ⌋ , c p = λ p − δ c_p = \lambda p^{-\delta} c p = λ p − δ and x p = c p x_p = \sqrt{c_p} x p = c p , and write E X \mathbb{E}_X E X for the uniform average over primes X < p ≤ 2 X X < p \le2X X < p ≤ 2 X . For Y p = p χ 2 ( P T p ∥ Q T p ) / T p Y_p = p\chi^2(P_{T_p}\|Q_{T_p})/T_p Y p = p χ 2 ( P T p ∥ Q T p ) / T p and F x ( A ) = x − 2 C A ( x 2 ) F_x(A) = x^{-2}C_A(x^2) F x ( A ) = x − 2 C A ( x 2 ) one has
Var X ( Y p ) = E X Var A ( F x p ) + o ( x X log ( 2 / x X ) ) ∼ δ λ 4 J δ I ( W ) X − δ / 2 log X . \operatorname{Var}_X(Y_p) = \mathbb{E}_X\operatorname{Var}_A(F_{x_p}) + o(x_X\log(2/x_X)) \sim\frac{\delta\sqrt{\lambda}}{4}J_\delta\mathcal{I}(W)X^{-\delta/2}\log X. Var X ( Y p ) = E X Var A ( F x p ) + o ( x X log ( 2/ x X )) ∼ 4 δ λ J δ I ( W ) X − δ /2 log X . The same holds for T p − 1 ∑ k ≥ 4 2 ∣ k e − ( k − 1 ) 2 / T p ∣ τ k ( p ) ∣ 2 T_p^{-1}\sum_{\substack{k\ge4\\2\mid k}}e^{-(k-1)^2/T_p}|\tau_k(p)|^2 T p − 1 ∑ k ≥ 4 2 ∣ k e − ( k − 1 ) 2 / T p ∣ τ k ( p ) ∣ 2 .
Fourier coefficients in the determinant
The profile of Theorem 5.1 gives
F x ( A ) = x − 2 ∑ a ≥ 1 ( d , a ) = 1 ∑ d − 3 W ( a x d ) Y a , d ( A ) , Y a , d = d 3 ∣ γ A ( a / d ) ∣ 2 . F_x(A) = x^{-2}\sum_{\substack{a\ge1\\(d,a)=1}}\sum d^{-3}W\left(\frac{a}{xd}\right)Y_{a,d}(A),\qquad Y_{a,d}=d^3|\gamma_A(a/d)|^2. F x ( A ) = x − 2 a ≥ 1 ( d , a ) = 1 ∑ ∑ d − 3 W ( x d a ) Y a , d ( A ) , Y a , d = d 3 ∣ γ A ( a / d ) ∣ 2 .
The sum converges uniformly in A A A by Weil’s bound and ∑ a W ( a / ( x d ) ) ≪ x d \sum_a W(a/(xd)) \ll xd ∑ a W ( a / ( x d )) ≪ x d . The dyadic supremum and variation of ( z ∂ z ) j W (z\partial_z)^jW ( z ∂ z ) j W are O j ( min ( 1 , z − 3 ) ) O_j(\min(1,z^{-3})) O j ( min ( 1 , z − 3 )) : each derivative is bounded by the integral of a weaker Gaussian against σ ( y ) \sigma(y) σ ( y ) . At ℓ k \ell^k ℓ k write the local factor as h ℓ U k ( B ) h_\ell U_k(B) h ℓ U k ( B ) , where h ℓ = ( 1 − ℓ − 2 ) − 2 h_\ell=(1-\ell^{-2})^{-2} h ℓ = ( 1 − ℓ − 2 ) − 2 and U k ( B ) = ∣ S ( 1 , B ; ℓ k ) ∣ 2 / ℓ k U_k(B)=|S(1,B;\ell^k)|^2/\ell^k U k ( B ) = ∣ S ( 1 , B ; ℓ k ) ∣ 2 / ℓ k . Its principal coefficient g ( ℓ k ) g(\ell^k) g ( ℓ k ) is the one in Theorem 5.2 . Thus g g g is bounded above and below by positive constants and g = 1 ∗ h g=1*h g = 1 ∗ h with ∑ m ∣ h ( m ) ∣ < ∞ \sum_m|h(m)|<\infty ∑ m ∣ h ( m ) ∣ < ∞ .
For a nontrivial character χ \chi χ of conductor ℓ j \ell^j ℓ j , j ≤ k j\le k j ≤ k , put A ℓ , k ( χ ) = E B [ h ℓ U k ( B ) χ ( B ) ‾ ] A_{\ell,k}(\chi)=\mathbb{E}_B[h_\ell U_k(B)\overline{\chi(B)}] A ℓ , k ( χ ) = E B [ h ℓ U k ( B ) χ ( B ) ] . On opening the square, the B B B -sum requires x 1 − x 2 = ℓ k − j v x_1-x_2=\ell^{k-j}v x 1 − x 2 = ℓ k − j v with v v v a unit modulo ℓ j \ell^j ℓ j and contributes ℓ k − j χ ( − v / ( x 1 x 2 ) ) τ ( χ ‾ ) \ell^{k-j}\chi(-v/(x_1x_2))\tau(\overline{\chi}) ℓ k − j χ ( − v / ( x 1 x 2 )) τ ( χ ) . Set x 1 = v u x_1=vu x 1 = v u , x 2 = v ( u − ℓ k − j ) x_2=v(u-\ell^{k-j}) x 2 = v ( u − ℓ k − j ) . There are ℓ k − j \ell^{k-j} ℓ k − j lifts of u u u , and the v v v -sum gives a second Gauss sum:
A ℓ , k ( χ ) h ℓ = χ ( − 1 ) τ ( χ ‾ ) 2 ℓ j φ ( ℓ j ) ∑ u m o d ℓ j u , u − r u n i t s χ ‾ ( u ( u − r ) ) , r = ℓ k − j . \frac{A_{\ell,k}(\chi)}{h_\ell}
=
\frac{\chi(-1)\tau(\overline{\chi})^2}{\ell^j\varphi(\ell^j)}
\sum_{\substack{u\bmod\ell^j\\u,\ u-r\ {\rm units}}}\overline{\chi}(u(u-r)),\qquad r=\ell^{k-j}. h ℓ A ℓ , k ( χ ) = ℓ j φ ( ℓ j ) χ ( − 1 ) τ ( χ ) 2 u mod ℓ j u , u − r units ∑ χ ( u ( u − r )) , r = ℓ k − j .
For j = k j=k j = k the sum is χ ‾ ( − 1 ) J ( χ , χ ‾ ) \overline{\chi}(-1)J(\chi,\overline{\chi}) χ ( − 1 ) J ( χ , χ ) . At odd ℓ \ell ℓ , a nonquadratic primitive character has primitive square, so the Jacobi identity gives ∣ A ℓ , j ( χ ) ∣ = h ℓ ℓ j / 2 / φ ( ℓ j ) |A_{\ell,j}(\chi)|=h_\ell\ell^{j/2}/\varphi(\ell^j) ∣ A ℓ , j ( χ ) ∣ = h ℓ ℓ j /2 / φ ( ℓ j ) . For k > j ≥ 2 k>j\ge2 k > j ≥ 2 the lifts modulo ℓ j − 1 \ell^{j-1} ℓ j − 1 cancel since 2 u − r 2u-r 2 u − r is a unit. For j = 1 < k j=1<k j = 1 < k the sum ∑ u χ ‾ 2 ( u ) \sum_u\overline{\chi}^2(u) ∑ u χ 2 ( u ) vanishes unless χ \chi χ is quadratic. The quadratic coefficient is − h ℓ / ( ℓ − 1 ) -h_\ell/(\ell-1) − h ℓ / ( ℓ − 1 ) at k = 1 k=1 k = 1 and h ℓ h_\ell h ℓ at k ≥ 2 k\ge2 k ≥ 2 .
At 2 2 2 a nonquadratic primitive character has j ≥ 4 j\ge4 j ≥ 4 . There are no units u , u − r u,u-r u , u − r for r = 1 r=1 r = 1 . For 4 ∣ r 4\mid r 4 ∣ r , translating by 2 j − 2 2^{j-2} 2 j − 2 multiplies the summand by χ ‾ ( 1 + 2 j − 1 ) = − 1 \overline{\chi}(1+2^{j-1})=-1 χ ( 1 + 2 j − 1 ) = − 1 . For r = 2 r=2 r = 2 , put b = ⌊ j / 2 ⌋ b=\lfloor j/2\rfloor b = ⌊ j /2 ⌋ and split into classes modulo 2 b 2^b 2 b . The quadratic term in the lift parameter vanishes modulo 2 j 2^j 2 j ; primitivity leaves at most four classes, determined by 2 u − 2 ≡ 0 ( m o d 2 b ) 2u-2\equiv0\pmod{2^b} 2 u − 2 ≡ 0 ( mod 2 b ) . Their 2 b 2^b 2 b lifts give A 2 , k ( χ ) = O ( 2 − j / 2 ) A_{2,k}(\chi)=O(2^{-j/2}) A 2 , k ( χ ) = O ( 2 − j /2 ) at k = j + 1 k=j+1 k = j + 1 . For real dyadic characters use O ( ( k + 1 ) 2 ) O((k+1)^2) O (( k + 1 ) 2 ) and conductors dividing 8 8 8 . In fact ∑ k ≥ 1 A ℓ , k ( χ ) ℓ − k = 0 \sum_{k\ge1}A_{\ell,k}(\chi)\ell^{-k}=0 ∑ k ≥ 1 A ℓ , k ( χ ) ℓ − k = 0 for each real nontrivial local character. The unit-numerator average in Theorem 5.2 is constant in the determinant and unit-square twists fix real characters.
Bounds for the Fourier energy
Write F x , ≤ D F_{x,\le D} F x , ≤ D for the denominator cutoff in the profile and G x , D = F x , ≤ D − E A F x , ≤ D G_{x,D}=F_{x,\le D}-\mathbb{E}_AF_{x,\le D} G x , D = F x , ≤ D − E A F x , ≤ D . Set V ( x ) = x log ( 2 / x ) V(x)=x\log(2/x) V ( x ) = x log ( 2/ x ) , the scale of the variance. We take x ≍ x X x\asymp x_X x ≍ x X and D ≤ X 1 / 4 D\le X^{1/4} D ≤ X 1/4 , holding cutoffs fixed under differentiation. For every integer w ≥ 1 w\ge1 w ≥ 1 , every fixed j ≥ 0 j\ge0 j ≥ 0 and every ε > 0 \varepsilon>0 ε > 0 ,
∑ w ∣ f χ f χ φ ( f χ ) ∣ ( x ∂ x ) j G ^ x , D ( χ ) ∣ 2 ≪ j , ε , λ , δ V ( x ) w − 1 + ε . (33) \sum_{w\mid f_\chi}\frac{f_\chi}{\varphi(f_\chi)}\left| (x\partial_x)^j\widehat{G}_{x,D}(\chi)\right|^2\ll_{j,\varepsilon,\lambda,\delta}V(x)w^{-1+\varepsilon}. \tag*{(33)} w ∣ f χ ∑ φ ( f χ ) f χ ( x ∂ x ) j G x , D ( χ ) 2 ≪ j , ε , λ , δ V ( x ) w − 1 + ε . (33)
Here f χ f_\chi f χ is the primitive conductor. For the centered difference of two cutoffs, if D ≥ B D \ge B D ≥ B and Z = x B ≥ 2 Z = xB \ge2 Z = x B ≥ 2 , then
∑ χ f χ φ ( f χ ) ∣ ( x ∂ x ) j ( G ^ x , D − G x , B ) ( χ ) ∣ 2 ≪ j , λ , δ V ( x ) / Z . (34) \sum_{\chi} \frac{f_\chi}{\varphi(f_\chi)} \left|(x\partial_x)^j(\widehat{G}_{x,D}-G_{x,B})(\chi)\right|^2 \ll_{j,\lambda,\delta} V(x)/Z. \tag*{(34)} χ ∑ φ ( f χ ) f χ ( x ∂ x ) j ( G x , D − G x , B ) ( χ ) 2 ≪ j , λ , δ V ( x ) / Z . (34)
Split the conductor into q q q from non-real local characters and s s s from real nontrivial ones, with at most three choices at 2 and one at each odd prime. The local support gives d = r m d=rm d = r m , ( m , r ) = 1 (m,r)=1 ( m , r ) = 1 , where r = κ q t r=\kappa qt r = κ q t , with κ = 1 \kappa=1 κ = 1 for odd q q q and 2 otherwise. The integer t t t has the prime support of s s s and is divisible by s s s . The Chinese remainder theorem gives the cofactor twist χ q 2 ‾ ( m ) \overline{\chi_q^2}(m) χ q 2 ( m ) , with unit phases for fixed a , r a,r a , r . The non-real coefficients cost O ( q − 1 / 2 a q ) O(q^{-1/2}a_q) O ( q − 1/2 a q ) with a q = q / φ ( q ) a_q=q/\varphi(q) a q = q / φ ( q ) . The product α t \alpha_t α t of the real local bounds satisfies
∑ t α t t ≪ ϵ s − 1 + ϵ . \sum_t \frac{\alpha_t}{\sqrt{t}} \ll_\epsilon s^{-1+\epsilon}. t ∑ t α t ≪ ϵ s − 1 + ϵ .
The local sum is O ( ℓ − 1 ( 1 + O ( ℓ − 1 / 2 ) ) ) O(\ell^{-1}(1+O(\ell^{-1/2}))) O ( ℓ − 1 ( 1 + O ( ℓ − 1/2 ))) at each odd prime and bounded at 2.
For a weight of supremum and variation at most W 0 W_0 W 0 on [ N , 2 N ) [N,2N) [ N , 2 N ) , the vector of sums against χ q 2 ‾ \overline{\chi_q^2} χ q 2 , weighted by the non-real coefficients, has norm
≪ a q W 0 [ N + 2 ω ( q ) / 2 min ( N / q , q ) ] . \ll\sqrt{a_q}W_0\left[\sqrt{N}+2^{\omega(q)/2}\min(N/\sqrt{q},\sqrt{q})\right]. ≪ a q W 0 [ N + 2 ω ( q ) /2 min ( N / q , q ) ] .
For short sums count n 2 = n ′ 2 ( m o d q ) n^2=n'^2\pmod q n 2 = n ′2 ( mod q ) . Besides the O ( N ) O(N) O ( N ) diagonal pairs, assign every odd prime power to n − n ′ n-n' n − n ′ or n + n ′ n+n' n + n ′ and, at 2, assign 2 v 2 ( q ) − 1 2^{v_2(q)-1} 2 v 2 ( q ) − 1 to the factor with larger valuation. The assigned moduli have product at least q / 2 q/2 q /2 , giving O ( N 2 / q ) O(N^2/q) O ( N 2 / q ) pairs per assignment. For long sums each unit class gives the same integral divided by q q q up to O ( W 0 ) O(W_0) O ( W 0 ) . The integral cancels since χ q 2 \chi_q^2 χ q 2 is nonprincipal. Apply Parseval to the errors, with at most 2 ω ( q ) + 1 2^{\omega(q)+1} 2 ω ( q ) + 1 preimages of a square. Multiplying the orthogonality factor φ ( q ) \sqrt{\varphi(q)} φ ( q ) by q − 1 / 2 a q q^{-1/2}a_q q − 1/2 a q gives the norm for N ≥ 1 / 2 N\ge1/2 N ≥ 1/2 .
For m ≍ M m\asymp M m ≍ M , the weight m − 3 W ( a / ( x r m ) ) m^{-3}W(a/(xrm)) m − 3 W ( a / ( x r m )) and its variation are O ( M − 3 min ( 1 , ( x r M / a ) 3 ) ) O(M^{-3}\min(1,(xrM/a)^3)) O ( M − 3 min ( 1 , ( x r M / a ) 3 )) . Expand g = 1 ∗ h g=1*h g = 1 ∗ h and impose coprimality to a s as a s by Möbius inversion. The character imposes coprimality to q q q . Writing m = u n m=un m = u n gives N ≍ M / u N\asymp M/u N ≍ M / u at total cost τ ( a s ) ∑ m ∣ h ( m ) ∣ \tau(as)\sum_m|h(m)| τ ( a s ) ∑ m ∣ h ( m ) ∣ . Apply the vector bound and use
S ( z ) = ∑ a ≥ 1 τ ( a ) min ( 1 , ( z / a ) 3 ) ≪ { z 3 z ≤ 1 , z log ( 2 z ) z ≥ 1. S(z)=\sum_{a\ge1}\tau(a)\min(1,(z/a)^3)\ll
\begin{cases}
z^3 & z\le1,\\
z\log(2z) & z\ge1.
\end{cases} S ( z ) = a ≥ 1 ∑ τ ( a ) min ( 1 , ( z / a ) 3 ) ≪ { z 3 z log ( 2 z ) z ≤ 1 , z ≥ 1.
Write v = x r v=xr v = x r . The first row term, without a q α t τ ( s ) \sqrt{a_q}\alpha_t\tau(s) a q α t τ ( s ) , is bounded by
x − 2 r − 3 ∑ M M − 5 / 2 S ( v M ) ≪ x / r { 1 v ≤ 1 , v − 3 / 2 log ( 2 v ) v > 1. x^{-2}r^{-3}\sum_M M^{-5/2}S(vM)\ll\sqrt{x/r}
\begin{cases}
1 & v\le1,\\
v^{-3/2}\log(2v) & v>1.
\end{cases} x − 2 r − 3 M ∑ M − 5/2 S ( v M ) ≪ x / r { 1 v − 3/2 log ( 2 v ) v ≤ 1 , v > 1.
The second term, also with 2 ω ( q ) / 2 2^{\omega(q)/2} 2 ω ( q ) /2 omitted, is
x − 2 r − 3 ∑ M M − 3 S ( v M ) min ( M / q , q ) ≪ ( r q ) − 1 . x^{-2}r^{-3}\sum_M M^{-3}S(vM)\min(M/\sqrt{q},\sqrt{q})\ll(r\sqrt{q})^{-1}. x − 2 r − 3 M ∑ M − 3 S ( v M ) min ( M / q , q ) ≪ ( r q ) − 1 .
All M M M -sums are dyadic from 1. For the last bound, use M / q M/\sqrt{q} M / q and split at 1 / v 1/v 1/ v . If v q ≤ 1 vq\le1 v q ≤ 1 , splitting at both q q q and 1 / v 1/v 1/ v gives the alternative bound ≪ x q ( 1 + log ( 1 / ( v q ) ) ) \ll x\sqrt{q}(1+\log(1/(vq))) ≪ x q ( 1 + log ( 1/ ( v q ))) .
Assign the prime powers of w w w to w q ∣ q w_q\mid q w q ∣ q or w s ∣ s w_s\mid s w s ∣ s . For q ≍ U q\asymp U q ≍ U restricted by w q ∣ q w_q\mid q w q ∣ q , use
∑ q ≍ U w q ∣ q a q 2 ≪ ϵ U w q − 1 + ϵ , ∑ q ≍ U w q ∣ q 2 ω ( q ) a q 2 ≪ ϵ U w q − 1 + ϵ log ( 2 U ) . \sum_{q\asymp U\atop w_q\mid q}a_q^2\ll_\epsilon Uw_q^{-1+\epsilon},\qquad
\sum_{q\asymp U\atop w_q\mid q}2^{\omega(q)}a_q^2\ll_\epsilon Uw_q^{-1+\epsilon}\log(2U). w q ∣ q q ≍ U ∑ a q 2 ≪ ϵ U w q − 1 + ϵ , w q ∣ q q ≍ U ∑ 2 ω ( q ) a q 2 ≪ ϵ U w q − 1 + ϵ log ( 2 U ) .
Write q = w q v q=w_qv q = w q v , use submultiplicativity and expand a v 2 a_v^2 a v 2 over squarefree divisors with local coefficients O ( 1 / ℓ ) O(1/\ell) O ( 1/ ℓ ) . For the second bound use 2 ω ( v ) ≤ τ ( v ) 2^{\omega(v)}\le\tau(v) 2 ω ( v ) ≤ τ ( v ) and sum over multiples of each divisor. The first squared row contributes O ( ( x / t ) log ( 2 D ) ) O((x/t)\log(2D)) O (( x / t ) log ( 2 D )) . Split the second at q = ( x t ) − 1 / 2 q=(xt)^{-1/2} q = ( x t ) − 1/2 to obtain O ( ( x / t ) log ( 2 / x ) ) O((x/t)\log(2/x)) O (( x / t ) log ( 2/ x )) . Both retain w q − 1 + ε w_q^{-1+\varepsilon} w q − 1 + ε . Taking the triangle inequality in t t t before squaring over s s s bounds the remaining summands by τ ( s ) 2 ( s / ϕ ( s ) ) s − 2 + ε \tau(s)^2(s/\phi(s))s^{-2+\varepsilon} τ ( s ) 2 ( s / ϕ ( s )) s − 2 + ε . Thus w s ∣ s w_s\mid s w s ∣ s gives w s − 2 + ε w_s^{-2+\varepsilon} w s − 2 + ε , and smaller intermediate exponents absorb the 2 ω ( w ) 2^{\omega(w)} 2 ω ( w ) assignments.
For the band B < r m ≤ D B<rm\le D B < r m ≤ D , put v = x r v=xr v = x r and z 0 = v max ( 1 , B / ( 2 r ) ) z_0=v\max(1,B/(2r)) z 0 = v max ( 1 , B / ( 2 r )) . Nonempty dyadic m m m -bands have v M ≫ z 0 ≫ Z vM\gg z_0\gg Z v M ≫ z 0 ≫ Z . The numerator sum is S ( v M ) ≪ v M log ( 2 v M ) S(vM)\ll vM\log(2vM) S ( v M ) ≪ v M log ( 2 v M ) . In the first row the sum improves by O ( z 0 − 3 / 2 log ( 2 z 0 ) ) O(z_0^{-3/2}\log(2z_0)) O ( z 0 − 3/2 log ( 2 z 0 )) . In the second, using each side of min ( M / q , q ) \min(M/\sqrt q,\sqrt q) min ( M / q , q ) separately gives, before 2 ω ( q ) / 2 2^{\omega(q)/2} 2 ω ( q ) /2 ,
≪ log ( 2 z 0 ) min ( ( r q z 0 ) − 1 , x q / z 0 2 ) ≪ Z − 1 / 2 min ( ( r q ) − 1 , x q ) . \ll\log(2z_0)\min\left((r\sqrt q\,z_0)^{-1},x\sqrt q/z_0^2\right)\ll Z^{-1/2}\min\left((r\sqrt q)^{-1},x\sqrt q\right). ≪ log ( 2 z 0 ) min ( ( r q z 0 ) − 1 , x q / z 0 2 ) ≪ Z − 1/2 min ( ( r q ) − 1 , x q ) .
Sum the squares over q q q , then use the real-support sum as above. This gives (S11) for q > 1 q>1 q > 1 .
For a nonprincipal real character, g = 1 ∗ h g=1*h g = 1 ∗ h and Möbius inversion give a linear summatory term for g ( m ) 1 ( m , a s ) = 1 g(m)1_{(m,as)=1} g ( m ) 1 ( m , a s ) = 1 with error O ( τ ( a s ) ) O(\tau(as)) O ( τ ( a s )) . After d = r m d=rm d = r m the integral cutoff is independent of r r r , so
∑ k A ℓ , k ( χ ℓ ) ℓ − k = 0 \sum_k A_{\ell,k}(\chi_\ell)\ell^{-k}=0 k ∑ A ℓ , k ( χ ℓ ) ℓ − k = 0
cancels the integrals, including those with r > D r>D r > D . For r m ≤ D rm\le D r m ≤ D , the better of the partial summation error O ( τ ( s ) x log ( 2 + 1 / ( x r ) ) ) O(\tau(s)x\log(2+1/(xr))) O ( τ ( s ) x log ( 2 + 1/ ( x r ))) and the bound O ( 1 / r ) O(1/r) O ( 1/ r ) on the sum and integral gives O ( τ ( s ) x / r ) O(\tau(s)\sqrt{x/r}) O ( τ ( s ) x / r ) . On a band with r ≤ B r\le B r ≤ B , partial summation costs O ( τ ( s ) x Z − 2 log ( 2 Z ) ) O(\tau(s)xZ^{-2}\log(2Z)) O ( τ ( s ) x Z − 2 log ( 2 Z )) , summing the variation over m ≫ B / r m\gg B/r m ≫ B / r . For r > B r>B r > B , use ∑ a ∣ W ( a / ( x d ) ) ∣ ≪ x d \sum_a|W(a/(xd))|\ll xd ∑ a ∣ W ( a / ( x d )) ∣ ≪ x d and integrate m − 2 m^{-2} m − 2 over m > B / r m>B/r m > B / r to bound the sum and integral by O ( ( Z r ) − 1 ) O((Zr)^{-1}) O (( Z r ) − 1 ) . Both cases give O ( τ ( s ) x / r Z − 1 / 2 ) O(\tau(s)\sqrt{x/r}\,Z^{-1/2}) O ( τ ( s ) x / r Z − 1/2 ) , also for derivative weights. The same real-support sum proves (S10) and (S11).
The leading Haar variance
Write F H , x F_{H,x} F H , x for the profile with kernel H H H in place of W W W . For the Gaussian and sharp kernels we prove
Var A F H , x ∼ 1 2 I ( H ) x log ( 1 / x ) . (35) \operatorname{Var}_{A} F_{H,x}\sim\frac{1}{2}\mathfrak{I}(H)x\log(1/x). \tag*{(35)} Var A F H , x ∼ 2 1 I ( H ) x log ( 1/ x ) . (35)
First take H H H smooth with compact support in ( 0 , ∞ ) (0,\infty) ( 0 , ∞ ) and put L = 1 / x L=1/x L = 1/ x . Haar Parseval expresses the variance as a sum over nonprincipal characters. The purely real characters contribute O H ( x ) O_H(x) O H ( x ) by the cancellation of the full local sums above.
Completing the cofactor sums. For q > 1 q>1 q > 1 , χ q 2 \chi_q^2 χ q 2 is primitive of conductor q ′ = q q'=q q ′ = q if q q q is odd and q / 2 q/2 q /2 otherwise: squaring preserves the odd exponents and lowers the dyadic exponent j ≥ 4 j\ge4 j ≥ 4 by one. For a smooth weight at scale N N N with scaled derivatives O ( W 0 ) O(W_0) O ( W 0 ) , Poisson summation has dual length q ′ / N q'/N q ′ / N , prefactor of modulus N / q ′ N/\sqrt{q'} N / q ′ , and zero constant term. Apply the same square-congruence count to both sums. For N ≪ q N\ll q N ≪ q this gives
( ∑ χ q ∣ C q ( χ q ) ∑ n w ( n ) χ q 2 ( n ) ∣ 2 ) 1 / 2 ≪ q q W 0 ( N + 2 ω ( q ) / 2 min ( N / q , 1 ) ) . \left(\sum_{\chi_q}\left|C_q(\chi_q)\sum_n w(n)\chi_q^2(n)\right|^2\right)^{1/2}
\ll\sqrt{q_q}W_0\left(\sqrt N+2^{\omega(q)/2}\min\left(N/\sqrt q,1\right)\right). χ q ∑ C q ( χ q ) n ∑ w ( n ) χ q 2 ( n ) 2 1/2 ≪ q q W 0 ( N + 2 ω ( q ) /2 min ( N / q , 1 ) ) .
Here C q ( χ q ) C_q(\chi_q) C q ( χ q ) is the product of the non-real coefficients. The dual characters χ q 2 ‾ \overline{\chi_q^2} χ q 2 use the count modulo q q q after separating signs and summing rapidly decaying dyadic tails. Since 2 ω ( q ) / 2 ≪ q 1 / 4 2^{\omega(q)/2}\ll q^{1/4} 2 ω ( q ) /2 ≪ q 1/4 , the norm is O ( q q W 0 N ) O(\sqrt{q_q}W_0\sqrt N) O ( q q W 0 N ) , with an extra ( q / N ) 4 (q/N)^4 ( q / N ) 4 for N ≥ q N\ge q N ≥ q by rapid decay.
With d = κ q t m d=\kappa qtm d = κ q t m as above, let α s ( t ) \alpha_s(t) α s ( t ) be the product of the actual real local coefficients. Up to a phase independent of a , t , m a,t,m a , t , m , the full Fourier coefficient is
C q ( χ q ) x − 2 ∑ a , t , m ( a , q t m ) = 1 , ( m , q s ) = 1 α s ( t ) g ( m ) ( q κ t m ) 3 H ( a x κ q t m ) χ q 2 ( a t m ) . C_q(\chi_q)x^{-2}
\sum_{\substack{a,t,m\\(a,qtm)=1,\ (m,qs)=1}}
\frac{\alpha_s(t)g(m)}{(q\kappa tm)^3}
H\left(\frac{a}{x\kappa qtm}\right)\chi_q^2\left(\frac{a}{tm}\right). C q ( χ q ) x − 2 a , t , m ( a , q t m ) = 1 , ( m , q s ) = 1 ∑ ( q κ t m ) 3 α s ( t ) g ( m ) H ( x κ q t m a ) χ q 2 ( t m a ) .
Here ( q , s ) = 1 (q,s)=1 ( q , s ) = 1 , and the unit-square phases are as in the cofactor bound above. For fixed a , t a,t a , t , its divisor expansion again costs τ ( a s ) ∑ ∣ h ∣ \tau(as)\sum|h| τ ( a s ) ∑ ∣ h ∣ , with row lengths at most M ≪ L a / ( κ q t ) M\ll La/(\kappa qt) M ≪ L a / ( κ q t ) . The smooth row bound gives a norm
≪ H a q ∣ α s ( t ) ∣ τ ( a s ) x / ( κ q t ) a − 5 / 2 . \ll_H \sqrt{aq}\,|\alpha_s(t)|\tau(as)\sqrt{x/(\kappa qt)}\,a^{-5/2}. ≪ H a q ∣ α s ( t ) ∣ τ ( a s ) x / ( κ q t ) a − 5/2 .
Since q ≪ H L a / t q\ll_H La/t q ≪ H L a / t and ∑ q ≍ Y a q / q ≪ 1 \sum_{q\asymp Y}a_q/q\ll1 ∑ q ≍ Y a q / q ≪ 1 , the real-support bound and ∑ a τ ( a ) a − 5 / 2 log ( 2 a ) < ∞ \sum_a\tau(a)a^{-5/2}\sqrt{\log(2a)}<\infty ∑ a τ ( a ) a − 5/2 log ( 2 a ) < ∞ allow fixed truncations of a , s , t a,s,t a , s , t at arbitrarily small cost in units of x log L \sqrt{x}\log L x log L . The same estimate on multiples of 2 j 2^j 2 j bounds their contribution by O H ( 2 − J / 2 x log L ) O_H(2^{-J/2}\sqrt{x}\log L) O H ( 2 − J /2 x log L ) . The ranges L 1 / 2 − η < q < L 1 / 2 + η L^{1/2-\eta}<q<L^{1/2+\eta} L 1/2 − η < q < L 1/2 + η and L 1 − η < q ≪ L L^{1-\eta}<q\ll L L 1 − η < q ≪ L then have squared norm O H ( η x log L + x ) O_H(\eta x\log L+x) O H ( η x log L + x ) , with constants depending on the truncations. For q ≤ L 1 / 2 − η q\le L^{1/2-\eta} q ≤ L 1/2 − η , truncate the absolutely summable divisor coefficients in the same norm. The remaining rows have N / q ′ ≫ L 2 η N/q'\gg L^{2\eta} N / q ′ ≫ L 2 η , giving o ( x ) o(x) o ( x ) in squared norm by completion.
The diagonal in the remaining range. Take L 1 / 2 + η < q < L 1 − η L^{1/2+\eta}<q<L^{1-\eta} L 1/2 + η < q < L 1 − η and keep each dyadic local character fixed. Put Q = q / 2 v 2 ( q ) Q=q/2^{v_2(q)} Q = q / 2 v 2 ( q ) and n = t m n=tm n = t m . Equal ratios a / n = a ′ / n ′ a/n=a'/n' a / n = a ′ / n ′ give a = a ′ a=a' a = a ′ and n = n ′ n=n' n = n ′ by coprimality. Then t = t ′ t=t' t = t ′ since its exponents are exactly those of n n n at the primes of s s s .
For distinct ratios, average the squared-character phase over the odd components with the normalization 1 / φ ( Q ) 1/\varphi(Q) 1/ φ ( Q ) . At ℓ j ∥ Q \ell^j\Vert Q ℓ j ∥ Q the factor at a unit ratio z z z is
{ 1 { z 2 = 1 m o d ℓ } − 2 / ( ℓ − 1 ) , j = 1 , 1 { z 2 = 1 m o d ℓ j } − ℓ − 1 1 { z 2 = 1 m o d ℓ j − 1 } , j ≥ 2. \begin{cases}
1_{\{z^2=1\mathbin{\mathrm{mod}}\ell\}}-2/(\ell-1), & j=1,\\
1_{\{z^2=1\mathbin{\mathrm{mod}}\ell^j\}}-\ell^{-1}1_{\{z^2=1\mathbin{\mathrm{mod}}\ell^{j-1}\}}, & j\ge2.
\end{cases} { 1 { z 2 = 1 mod ℓ } − 2/ ( ℓ − 1 ) , 1 { z 2 = 1 mod ℓ j } − ℓ − 1 1 { z 2 = 1 mod ℓ j − 1 } , j = 1 , j ≥ 2.
The non-real coefficient magnitudes are independent of the odd characters. Expanding the product gives divisors D ∣ rad ( Q ) D\mid\operatorname{rad}(Q) D ∣ rad ( Q ) with coefficients O ϵ ( Q ϵ / D ) O_\epsilon(Q^\epsilon/D) O ϵ ( Q ϵ / D ) and congruence Q / D ∣ ( a n ′ − a ′ n ) ( a n ′ + a ′ n ) Q/D\mid(an'-a'n)(an'+a'n) Q / D ∣ ( a n ′ − a ′ n ) ( a n ′ + a ′ n ) . For fixed a , a ′ a,a' a , a ′ , both forms are nonzero of size O ( M ) O(M) O ( M ) , M = L / q M=L/q M = L / q . Each prime power of Q / D Q/D Q / D divides exactly one of them because the entries are units there and the prime is odd. Each assignment counts O ( M 2 D / Q ) O(M^2D/Q) O ( M 2 D / Q ) pairs by counting the nonzero multiples in the two forms, which determine n , n ′ n,n' n , n ′ . Including the assignments and divisors gives O ϵ ( M 2 Q − 1 + ϵ ) O_\epsilon(M^2Q^{-1+\epsilon}) O ϵ ( M 2 Q − 1 + ϵ ) . The cofactor weights before x − 2 ( κ q ) − 3 x^{-2}(\kappa q)^{-3} x − 2 ( κ q ) − 3 are O ( M − 3 ) O(M^{-3}) O ( M − 3 ) . The sum of the squared coefficient magnitudes over all characters modulo Q Q Q , using the common magnitude of the admissible ones, is O ϵ ( Q ϵ ) O_\epsilon(Q^\epsilon) O ϵ ( Q ϵ ) . Consequently the off-diagonal sum is bounded by O ϵ ( ∑ q ≥ L 1 / 2 + η q − 3 + ϵ ) = o ( x ) O_\epsilon(\sum_{q\ge L^{1/2+\eta}}q^{-3+\epsilon})=o(x) O ϵ ( ∑ q ≥ L 1/2 + η q − 3 + ϵ ) = o ( x ) for sufficiently small ϵ \epsilon ϵ .
The constant. Put D ℓ = ∑ k ≥ 0 q ( ℓ k ) 2 / ℓ k D_\ell=\sum_{k\ge0}q(\ell^k)^2/\ell^k D ℓ = ∑ k ≥ 0 q ( ℓ k ) 2 / ℓ k and ρ = ∏ ℓ ( 1 − ℓ − 1 ) D ℓ \rho=\prod_\ell(1-\ell^{-1})D_\ell ρ = ∏ ℓ ( 1 − ℓ − 1 ) D ℓ . The mean of g ( m ) 2 1 ( m , P ) = 1 g(m)^2 1_{(m,P)=1} g ( m ) 2 1 ( m , P ) = 1 is m ( P ) = ρ ∏ ℓ ∣ P D ℓ − 1 m(P)=\rho\prod_{\ell\mid P}D_\ell^{-1} m ( P ) = ρ ∏ ℓ ∣ P D ℓ − 1 with summatory error O ( τ ( P ) ) O(\tau(P)) O ( τ ( P )) . Expand g 2 g^2 g 2 as the convolution of 1 1 1 with an absolutely summable function and impose coprimality. For each fixed a , s , t a,s,t a , s , t in the diagonal,
∫ 0 ∞ m − 6 H ( a x κ q t m ) 2 d m = ( x κ q t / a ) 5 I ( H ) . \int_0^\infty m^{-6}H\left(\frac{a}{x\kappa qtm}\right)^2\,dm
=(x\kappa qt/a)^5I(H). ∫ 0 ∞ m − 6 H ( x κ q t m a ) 2 d m = ( x κ q t / a ) 5 I ( H ) .
Partial summation gives an error of O ϵ ( x 2 q ϵ ) O_\epsilon(x^2q^\epsilon) O ϵ ( x 2 q ϵ ) per q q q after normalization, hence o ( x ) o(x) o ( x ) in this range. With C ( q ) = ∑ χ q ∣ C q ( χ q ) ∣ 2 C(q)=\sum_{\chi_q}|C_q(\chi_q)|^2 C ( q ) = ∑ χ q ∣ C q ( χ q ) ∣ 2 , the main term is
x I ( H ) a 5 t C ( q ) κ q ∣ α s ( t ) ∣ 2 m ( a q s ) 1 { ( a , q s ) = ( q , s ) = 1 } . \frac{xI(H)}{a^5t}\frac{C(q)}{\kappa q}|\alpha_s(t)|^2m(aqs)1_{\{(a,qs)=(q,s)=1\}}. a 5 t x I ( H ) κ q C ( q ) ∣ α s ( t ) ∣ 2 m ( a q s ) 1 {( a , q s ) = ( q , s ) = 1 } .
For fixed a , s , t a,s,t a , s , t and fixed real character, the coefficient of 1 / q 1/q 1/ q has a mean in q q q . Its multiplicative part is 1 + O ( 1 / ℓ ) 1+O(1/\ell) 1 + O ( 1/ ℓ ) at large primes and bounded at their powers, so its convolution with μ \mu μ is absolutely summable with weight 1 / q 1/q 1/ q . Summation against 1 / q 1/q 1/ q gives this mean times ( 1 / 2 − 2 η ) log L + o ( log L ) (1/2-2\eta)\log L+o(\log L) ( 1/2 − 2 η ) log L + o ( log L ) . Send η \eta η to zero and remove the fixed truncations. The cofactor mean and the mean in q q q give ( 1 − ℓ − 1 ) 2 (1-\ell^{-1})^2 ( 1 − ℓ − 1 ) 2 at each prime. At denominator exponent zero the numerator powers sum to ( 1 − ℓ − 5 ) − 1 (1-\ell^{-5})^{-1} ( 1 − ℓ − 5 ) − 1 . At exponent k ≥ 1 k \ge1 k ≥ 1 the numerator is a unit. The cofactor, real support and non-real conductor supply the principal, real nontrivial and non-real coefficients, respectively. Their squared moduli sum to E B [ Y ℓ , k ( B ) 2 ] \mathbb{E}_{B}[Y_{\ell,k}(B)^2] E B [ Y ℓ , k ( B ) 2 ] by local Parseval, with weight ℓ − k \ell^{-k} ℓ − k in each case. For a non-real conductor 2 k 2^k 2 k , k = j + 1 k=j+1 k = j + 1 and 1 / κ = 1 / 2 1/\kappa=1/2 1/ κ = 1/2 adjusts the weight accordingly. This gives (S9). At odd primes the local formulas give E B [ Y ℓ , 1 2 ] = 2 + O ( ℓ − 1 ) \mathbb{E}_{B}[Y_{\ell,1}^2]=2+O(\ell^{-1}) E B [ Y ℓ , 1 2 ] = 2 + O ( ℓ − 1 ) , and Weil’s bound controls k ≥ 2 k\ge2 k ≥ 2 by O ( ( k + 1 ) 4 ) O((k+1)^4) O (( k + 1 ) 4 ) . The factors are therefore 1 + O ( ℓ − 2 ) 1+O(\ell^{-2}) 1 + O ( ℓ − 2 ) , and the product is positive.
For W W W and W # W_{\#} W # , the upper bound for the Fourier energy with w = 1 w=1 w = 1 applies uniformly to each rescaled compact piece with bounded supremum and variation, by a polynomial denominator cutoff and the uniform tail bound. The identity F H ( ⋅ / b ) , x = b 2 F H , b x F_{H(\cdot/b),x}=b^2F_{H,bx} F H ( ⋅ / b ) , x = b 2 F H , b x gives bounds O ( b 2 ) O(b^2) O ( b 2 ) for b ≤ 1 b\le1 b ≤ 1 and O ( b − 1 / 2 ) O(b^{-1/2}) O ( b − 1/2 ) for b ≥ 1 b\ge1 b ≥ 1 on the dyadic pieces at v ≍ b v\asymp b v ≍ b , in units of x log ( 1 / x ) \sqrt{x\log(1/x)} x log ( 1/ x ) . For b x ≥ 1 bx\ge1 b x ≥ 1 , use the absolute bound F H , b x = O ( ( b x ) − 1 ) F_{H,bx}=O((bx)^{-1}) F H , b x = O (( b x ) − 1 ) for a rescaled compact piece. Cut off both tails and smooth the remaining kernel in log v \log v log v . For W # W_{\#} W # the variation estimate in S9 makes the smoothing error arbitrarily small in the same norm. The integrals I ( H ) I(H) I ( H ) converge in these approximations, proving (S12).
The mean of the Haar profile
For transfer to primes, the uniform bound O ( x − 1 D − 1 log 3 ( 2 D ) ) O(x^{-1}D^{-1}\log^3(2D)) O ( x − 1 D − 1 log 3 ( 2 D )) above denominator D D D follows from Weil’s bound and ∑ a W ( a / ( x d ) ) ≪ x d \sum_a W(a/(xd))\ll xd ∑ a W ( a / ( x d )) ≪ x d . For D = X 1 / 4 D=X^{1/4} D = X 1/4 it is o ( V ( x ) ) o(\sqrt{V(x)}) o ( V ( x ) ) .
We also need a mean accurate to o ( V ( x ) ) o(\sqrt{V(x)}) o ( V ( x ) ) for centering the prime statistic. The Haar mean has the expansion
E A F x = 1 48 − π 2304 x + O η ( x 1 + 2 η ) ( 0 < η < 1 / 4 ) . \mathbb{E}_{A}F_x=\frac{1}{48}-\frac{\sqrt{\pi}}{2304}x+O_\eta(x^{1+2\eta})\qquad(0<\eta<1/4). E A F x = 48 1 − 2304 π x + O η ( x 1 + 2 η ) ( 0 < η < 1/4 ) .
For 1 < ℜ s < 2 1<\Re s<2 1 < ℜ s < 2 take the Mellin transform
W ^ ( s ) = 8 π Γ ( s / 2 ) ( 64 π 2 ) − s / 2 B ( ( 3 − s ) / 2 , ( 3 − s ) / 2 ) . \widehat{W}(s)=\frac{8}{\pi}\Gamma(s/2)(64\pi^2)^{-s/2}B((3-s)/2,(3-s)/2). W ( s ) = π 8 Γ ( s /2 ) ( 64 π 2 ) − s /2 B (( 3 − s ) /2 , ( 3 − s ) /2 ) .
By Mellin inversion and absolute convergence, the mean is the integral of x s − 2 W ^ ( s ) ζ ( s ) ζ ( 3 − s ) G ( s ) x^{s-2}\widehat{W}(s)\zeta(s)\zeta(3-s)G(s) x s − 2 W ( s ) ζ ( s ) ζ ( 3 − s ) G ( s ) on this line. The coprimality of numerator and denominator gives the Euler factor
G ℓ ( s ) = ( 1 − A ) ( 1 − B ) ( ( 1 − A ) − 1 + g ( ℓ ) B + g ( ℓ 2 ) B 2 / ( 1 − B ) ) , A = ℓ − s , B = ℓ s − 3 . G_\ell(s)=(1-A)(1-B)\left((1-A)^{-1}+g(\ell)B+g(\ell^2)B^2/(1-B)\right),\qquad A=\ell^{-s},\quad B=\ell^{s-3}. G ℓ ( s ) = ( 1 − A ) ( 1 − B ) ( ( 1 − A ) − 1 + g ( ℓ ) B + g ( ℓ 2 ) B 2 / ( 1 − B ) ) , A = ℓ − s , B = ℓ s − 3 .
Expanding the factor gives
1 + ( g ( ℓ ) − 1 ) B − g ( ℓ ) A B + ( g ( ℓ 2 ) − g ( ℓ ) ) ( 1 − A ) B 2 . 1+(g(\ell)-1)B-g(\ell)AB+(g(\ell^2)-g(\ell))(1-A)B^2. 1 + ( g ( ℓ ) − 1 ) B − g ( ℓ ) A B + ( g ( ℓ 2 ) − g ( ℓ )) ( 1 − A ) B 2 .
Both differences of g g g are O ( ℓ − 2 ) O(\ell^{-2}) O ( ℓ − 2 ) . The Euler product is absolutely convergent and bounded on closed vertical substrips of 1 < ℜ s < 7 / 2 1<\Re s<7/2 1 < ℜ s < 7/2 . The local mean identity at s = 2 s=2 s = 2 ( 1 − ℓ − 1 ) ∑ k ≥ 1 g ( ℓ k ) ℓ − k = ℓ / ( ℓ 2 − 1 ) (1-\ell^{-1})\sum_{k\ge1}g(\ell^k)\ell^{-k}=\ell/(\ell^2-1) ( 1 − ℓ − 1 ) ∑ k ≥ 1 g ( ℓ k ) ℓ − k = ℓ / ( ℓ 2 − 1 ) gives G ℓ ( 2 ) = 1 G_\ell(2)=1 G ℓ ( 2 ) = 1 . At s = 3 s=3 s = 3 , G ℓ ( 3 ) = ( 1 − ℓ − 3 ) ( 1 − ℓ − 2 ) − 2 G_\ell(3)=(1-\ell^{-3})(1-\ell^{-2})^{-2} G ℓ ( 3 ) = ( 1 − ℓ − 3 ) ( 1 − ℓ − 2 ) − 2 . Stirling’s formula gives exponential vertical decay of the continued Mellin factor.
Shift to 3 + 2 η 3+2\eta 3 + 2 η , subtracting the residues at 2 2 2 and 3 3 3 . At 2 2 2 use W ^ ( 2 ) = 1 / ( 8 π 2 ) \widehat{W}(2)=1/(8\pi^2) W ( 2 ) = 1/ ( 8 π 2 ) and the residue − 1 -1 − 1 of ζ ( 3 − s ) \zeta(3-s) ζ ( 3 − s ) . At 3 3 3 the principal part of W ^ ( s ) \widehat{W}(s) W ( s ) is 1 / ( 32 π 7 / 2 ( 3 − s ) ) 1/(32\pi^{7/2}(3-s)) 1/ ( 32 π 7/2 ( 3 − s )) . Together with ζ ( 0 ) = − 1 / 2 \zeta(0)=-1/2 ζ ( 0 ) = − 1/2 and G ( 3 ) = ζ ( 2 ) 2 / ζ ( 3 ) G(3)=\zeta(2)^2/\zeta(3) G ( 3 ) = ζ ( 2 ) 2 / ζ ( 3 ) , this gives the negative term. The shifted integral is O η ( x 1 + 2 η ) O_\eta(x^{1+2\eta}) O η ( x 1 + 2 η ) .
A heat estimate for both cutoffs
Put T = λ p 1 − δ T=\lambda p^{1-\delta} T = λ p 1 − δ , c p = T / p c_p=T/p c p = T / p , h = z / T h=z/T h = z / T and R = ∣ z ∣ R=|z| R = ∣ z ∣ on ℜ z = 1 \Re z=1 ℜ z = 1 . We seek o ( X − γ ) o(X^{-\gamma}) o ( X − γ ) , with γ = δ / 4 \gamma=\delta/4 γ = δ /4 for the variance and γ = δ / 2 \gamma=\delta/2 γ = δ /2 for the second mean term. For small η 1 > 0 \eta_1>0 η 1 > 0 set κ = γ + η 1 \kappa=\gamma+\eta_1 κ = γ + η 1 , d ∗ = δ / 2 + 2 γ + η 1 d_*=\delta/2+2\gamma+\eta_1 d ∗ = δ /2 + 2 γ + η 1 , β ∗ = δ + 2 γ + 2 η 1 \beta_*=\delta+2\gamma+2\eta_1 β ∗ = δ + 2 γ + 2 η 1 and ω ∗ = δ / 2 + 2 κ + η 1 \omega_*=\delta/2+2\kappa+\eta_1 ω ∗ = δ /2 + 2 κ + η 1 . Use the class-number cutoff B = X β ∗ B=X^{\beta_*} B = X β ∗ , denominator split D 0 = X d ∗ D_0=X^{d_*} D 0 = X d ∗ and angular cutoff W 0 = X ω ∗ W_0=X^{\omega_*} W 0 = X ω ∗ , with R ≤ 2 X σ R\le2X^\sigma R ≤ 2 X σ . Choose η 1 \eta_1 η 1 to preserve the strict margins at η 1 = 0 \eta_1=0 η 1 = 0 and ε \varepsilon ε still smaller. At δ = 1 / 4 \delta=1/4 δ = 1/4 take γ = 1 / 16 \gamma=1/16 γ = 1/16 , u = η 1 = 1 / 1024 u=\eta_1=1/1024 u = η 1 = 1/1024 and ϑ = 1 / 128 \vartheta=1/128 ϑ = 1/128 . On each band w ≍ W w\asymp W w ≍ W , use D 0 = X 1 / 4 − ϑ D_0=X^{1/4-\vartheta} D 0 = X 1/4 − ϑ if W ≤ X 1 / 2 − ϑ W\le X^{1/2-\vartheta} W ≤ X 1/2 − ϑ and D 0 = X 1 / 4 + ϑ D_0=X^{1/4+\vartheta} D 0 = X 1/4 + ϑ otherwise. The remaining parameters stay as above.
With w = 2 p sin ϕ w=2\sqrt{p}\sin\phi w = 2 p sin ϕ and s = 2 p cos ϕ s=2\sqrt{p}\cos\phi s = 2 p cos ϕ , use D h D_h D h from (S2) with complex h h h . The bilinear square retains e − h ( m + 1 ) 2 e^{-h(m+1)^2} e − h ( m + 1 ) 2 and the first-sine term e − h ( Z B − γ B ( 0 ) ) 2 e^{-h(Z_B-\gamma_B(0))^2} e − h ( Z B − γ B ( 0 ) ) 2 . The absolute square uses ℜ h \Re h ℜ h . The two transforms to compare are
M p ( z ) = T − 1 ∑ k ≥ 4 k e v e n ∣ τ k ( p ) ∣ 2 e − z ( k − 1 ) 2 / T , M p d i a g ( z ) = c p − 1 ∫ 0 1 σ ( y ) ∑ β ≠ 0 ∣ γ A p ( β ) ∣ 2 e − z b ( y ) β 2 / c p d y . (36) M_p(z)=T^{-1}\sum_{\substack{k\ge4\\ k\ \mathrm{even}}}|\tau_k(p)|^2e^{-z(k-1)^2/T},\qquad M_p^{\mathrm{diag}}(z)=c_p^{-1}\int_0^1\sigma(y)\sum_{\beta\ne0}|\gamma_{A_p}(\beta)|^2e^{-zb(y)\beta^2/c_p}\,dy. \tag*{(36)} M p ( z ) = T − 1 k ≥ 4 k even ∑ ∣ τ k ( p ) ∣ 2 e − z ( k − 1 ) 2 / T , M p diag ( z ) = c p − 1 ∫ 0 1 σ ( y ) β = 0 ∑ ∣ γ A p ( β ) ∣ 2 e − z b ( y ) β 2 / c p d y . (36)
Here b ( y ) = 64 π 2 y ( 1 − y ) b(y)=64\pi^2y(1-y) b ( y ) = 64 π 2 y ( 1 − y ) , so M p d i a g ( 1 ) = F x p ( A p ) M_p^{\mathrm{diag}}(1)=F_{x_p}(A_p) M p diag ( 1 ) = F x p ( A p ) . At T = K 2 T=K^2 T = K 2 this transform defines the sharp model in S9.
Edge Poisson summation for the complex Gaussian gives
∣ G h ( θ ) ∣ ≤ R 1 / 2 G R 2 / T ( θ ) |G_h(\theta)|\le R^{1/2}G_{R^2/T}(\theta) ∣ G h ( θ ) ∣ ≤ R 1/2 G R 2 / T ( θ )
with a positive real Gaussian on the right. For w < W 0 w<W_0 w < W 0 the effective trace angles lie within O ( W 0 / X ) O(W_0/\sqrt{X}) O ( W 0 / X ) of the ends since R log X / T ≪ W 0 / X R\log X/\sqrt{T}\ll W_0/\sqrt{X} R log X / T ≪ W 0 / X with a power saving. This gives O ( 1 + W 0 2 / X ) O(1+W_0^2/\sqrt{X}) O ( 1 + W 0 2 / X ) points. The angular count O ( 1 + w ω + X ω 2 ) O(1+w\omega+\sqrt{X}\omega^2) O ( 1 + w ω + X ω 2 ) within distance ω \omega ω of ϕ \phi ϕ bounds ∑ t ∣ G h ( ϕ ± θ t ) ∣ \sum_t|G_h(\phi\pm\theta_t)| ∑ t ∣ G h ( ϕ ± θ t ) ∣ by
O ( T R − 1 / 2 ( 1 + W 0 R T + X R 2 T ) ) . O\left(\sqrt{T}R^{-1/2}\left(1+\frac{W_0R}{\sqrt{T}}+\frac{\sqrt{X}R^2}{T}\right)\right). O ( T R − 1/2 ( 1 + T W 0 R + T X R 2 ) ) .
The last two terms in parentheses have negative exponents δ + 3 γ − 1 / 2 \delta+3\gamma-1/2 δ + 3 γ − 1/2 and δ + 2 γ − 1 / 2 \delta+2\gamma-1/2 δ + 2 γ − 1/2 at η 1 = 0 \eta_1=0 η 1 = 0 . Cauchy–Schwarz with F B ( t ) ≪ ε X ε F_B(t)\ll_\varepsilon X^\varepsilon F B ( t ) ≪ ε X ε and angular L 1 L^1 L 1 kernel norm O ( R 1 / 2 ) O(R^{1/2}) O ( R 1/2 ) gives normalized squared edge norm O ( X ε ( T − 1 / 2 + W 0 2 / p T ) ) O(X^\varepsilon(T^{-1/2}+W_0^2/\sqrt{pT})) O ( X ε ( T − 1/2 + W 0 2 / pT )) . The first-sine subtraction O ( w ) O(w) O ( w ) adds O ( W 0 3 / ( c p X 3 / 2 ) ) O(W_0^3/(c_pX^{3/2})) O ( W 0 3 / ( c p X 3/2 )) .
Taylor replacement On w ≥ W 0 w\ge W_0 w ≥ W 0 , set q = ( t t r − s ) T / w q=(t_{\mathrm{tr}}-s)\sqrt{T}/w q = ( t tr − s ) T / w and ρ = p / ( w T ) \rho=\sqrt{p}/(w\sqrt{T}) ρ = p / ( w T ) . The window ∣ q ∣ ≤ R log X |q|\le R\log X ∣ q ∣ ≤ R log X stays inside the trace range since ρ R 2 log 3 X = o ( 1 ) \rho R^2\log^3X=o(1) ρ R 2 log 3 X = o ( 1 ) . There the angle expansion gives T ( θ t t r − ϕ ) = − q + O ( ρ q 2 ) \sqrt{T}(\theta_{t_{\mathrm{tr}}}-\phi)=-q+O(\rho q^2) T ( θ t tr − ϕ ) = − q + O ( ρ q 2 ) uniformly. The change in the exponent is O ( ρ ∣ q ∣ 3 / R ) O(\rho|q|^3/R) O ( ρ ∣ q ∣ 3 / R ) , so the Gaussian error is bounded by
O ( T R − 1 / 2 ρ ∣ q ∣ 3 R − 1 e − q 2 / ( 4 R 2 ) ) . O\left(\sqrt{T}R^{-1/2}\rho|q|^3R^{-1}e^{-q^2/(4R^2)}\right). O ( T R − 1/2 ρ ∣ q ∣ 3 R − 1 e − q 2 / ( 4 R 2 ) ) .
Monotonicity and the Poisson bound discard the reflected kernel and the angular tails. The width w R / T wR/\sqrt{T} w R / T is power-smaller than the distance to the trace ends, so the polynomial bound for F B F_B F B allows extension to integer traces.
Summing the displayed error with lattice spacing T / w \sqrt{T}/w T / w costs
O ε ( X ε ( ρ T R 3 / 2 + w ρ R 5 / 2 ) ) . O_\varepsilon\left(X^\varepsilon\left(\rho\sqrt{T}R^{3/2}+w\rho R^{5/2}\right)\right). O ε ( X ε ( ρ T R 3/2 + w ρ R 5/2 ) ) .
The first term covers w < T w<\sqrt{T} w < T . Angle bands w ≍ W w\asymp W w ≍ W have length O ( W / p ) O(W/\sqrt{p}) O ( W / p ) , also when W ≍ p W\asymp\sqrt{p} W ≍ p . Their total squared error before dividing by c p c_p c p is O ε ( X ε ( R 3 / ( W 0 X ) + R 5 / T ) ) O_\varepsilon(X^\varepsilon(R^3/(W_0\sqrt{X})+R^5/T)) O ε ( X ε ( R 3 / ( W 0 X ) + R 5 / T )) . Poisson summation gives
2 π w ∑ β γ B ( β ) e ( β s ) e − 2 π 2 z w 2 β 2 / T . 2\pi w\sum_\beta\gamma_B(\beta)e(\beta s)e^{-2\pi^2zw^2\beta^2/T}. 2 π w β ∑ γ B ( β ) e ( β s ) e − 2 π 2 z w 2 β 2 / T .
The zero-mode error is O ( w R / T ) O(wR/T) O ( w R / T ) . Its normalized square integrates to O ( R 2 / ( T 2 c p ) ) O(R^2/(T^2c_p)) O ( R 2 / ( T 2 c p )) .
Denominator comparison On a band w ≍ W w \asymp W w ≍ W and T ≍ U T \asymp U T ≍ U with fixed U U U , put H = W / U H = W/\sqrt{U} H = W / U . The multiplier has real Gaussian absolute value, and the integration by parts of Lemma 3.3 of the article costs a factor O ( R ) O(R) O ( R ) on mixed terms. The amplitude has variation O ( R W e − C H 2 ( β 2 + β ′ 2 ) ) O(RW e^{-CH^2(\beta^2+\beta'^2)}) O ( R W e − C H 2 ( β 2 + β ′2 ) ) . The reciprocal-distance sum at denominator scale E E E is O ( E 2 log X ) O(E^2 \log X) O ( E 2 log X ) with the Gaussian weight. For distances through max ( 1 , H − 1 ) \max(1,H^{-1}) max ( 1 , H − 1 ) use the spacing ≫ E − 2 \gg E^{-2} ≫ E − 2 (and the minimum nonzero distance ≫ ( D E ) − 1 \gg(DE)^{-1} ≫ ( D E ) − 1 for D ≤ E D \le E D ≤ E ). Beyond that distance use the Gaussian mass O ( E 2 ( 1 + H − 1 ) ) O(E^2(1+H^{-1})) O ( E 2 ( 1 + H − 1 )) . The other frequency count at scale D D D is O ( D 2 / H ) O(D^2/H) O ( D 2 / H ) . As in Lemma 3.3, this bounds the normalized mixed terms by O ( X ϵ R B / T ) O(X^\epsilon RB/\sqrt{T}) O ( X ϵ R B / T ) , or O ( X ϵ R D 0 / T ) O(X^\epsilon RD_0/\sqrt{T}) O ( X ϵ R D 0 / T ) for two low denominators. For real weights the opposite frequencies give the diagonal of (S13).
For a better bilinear bound, replace β ′ \beta' β ′ by − β ′ -\beta' − β ′ and put Q = β 2 + β ′ 2 Q = \beta^2+\beta'^2 Q = β 2 + β ′2 , Δ = β − β ′ ≠ 0 \Delta= \beta-\beta' \ne0 Δ = β − β ′ = 0 . Since w 2 = 4 p − s 2 w^2=4p-s^2 w 2 = 4 p − s 2 , the phase is 2 π Δ s + A s 2 2\pi\Delta s+As^2 2 π Δ s + A s 2 up to a constant, with A = 2 π ( ℑ z ) Q / T A=2\pi(\Im z)Q/T A = 2 π ( ℑ z ) Q / T . On each monotone band the real amplitude has maximum and variation O ( W e − C H 2 Q ) O(We^{-CH^2Q}) O ( W e − C H 2 Q ) . If ∣ Δ ∣ |\Delta| ∣Δ∣ exceeds a sufficiently large constant times ∣ A ∣ X |A|\sqrt{X} ∣ A ∣ X , the first derivative gives O ( 1 / ∣ Δ ∣ ) O(1/|\Delta|) O ( 1/∣Δ∣ ) . Otherwise the quadratic integral is O ( ∣ A ∣ − 1 / 2 ) O(|A|^{-1/2}) O ( ∣ A ∣ − 1/2 ) , by splitting where the first derivative is smaller than ∣ A ∣ \sqrt{|A|} ∣ A ∣ . Use ∣ Δ ∣ / ∣ A ∣ ≪ ∣ A ∣ X |\Delta|/\sqrt{|A|}\ll\sqrt{|A|X} ∣Δ∣/ ∣ A ∣ ≪ ∣ A ∣ X and absorb H Q H\sqrt{Q} H Q into a weaker Gaussian. Thus the mixed bound also holds with R R R replaced by 1 + R X / W 1+\sqrt{R}\sqrt{X}/W 1 + R X / W for the bilinear integral.
The normalized diagonal is O ( X ϵ ) O(X^\epsilon) O ( X ϵ ) . Use Lemma 3.3 for H ≥ 1 H \ge1 H ≥ 1 , and for H < 1 H<1 H < 1 sum the integer translates to bound the diagonal by O ( H − 1 ) O(H^{-1}) O ( H − 1 ) times the squared coefficients modulo one, integrated against w 2 d φ / p w^2\,d\varphi/p w 2 d φ / p . This also bounds the normalized diagonal lost at w < W 0 w<W_0 w < W 0 by O ( X ϵ W 0 2 / p T ) O(X^\epsilon W_0^2/\sqrt{pT}) O ( X ϵ W 0 2 / pT ) . Put L B = 1 + B / T L_B=1+B/\sqrt{T} L B = 1 + B / T . The real Gaussian has normalized squared norm O ( X ϵ L B ) O(X^\epsilon L_B) O ( X ϵ L B ) by the diagonal and mixed bounds. The edge, Taylor and zero-mode bounds give the same for D 1 / T D_1/T D 1 / T , hence for D h D_h D h by sine Parseval. They also give this bound for the full complex Gaussian on w ≥ W 0 w\ge W_0 w ≥ W 0 . In particular the Taylor and zero-mode cross terms cost O ( X ϵ L B 1 / 2 ) O(X^\epsilon L_B^{1/2}) O ( X ϵ L B 1/2 ) times the normalized error norms. The low Gaussian has normalized squared norm O ( X ϵ ) O(X^\epsilon) O ( X ϵ ) , since R D 0 / T = o ( 1 ) RD_0/\sqrt{T}=o(1) R D 0 / T = o ( 1 ) . Subtraction bounds the high part pointwise by O ( X ϵ L B ) O(X^\epsilon L_B) O ( X ϵ L B ) in normalized squared norm.
To use the dual sieve of Lemma S5.2 on the high denominators, hold W , U , s W,U,s W , U , s fixed. In the weight e − 2 π 2 z v H 2 β 2 e^{-2\pi^2zvH^2\beta^2} e − 2 π 2 z v H 2 β 2 , the variable v = ( w / W ) 2 U / T v=(w/W)^2U/T v = ( w / W ) 2 U / T lies in a fixed compact positive interval. For T = λ p 1 − δ T=\lambda p^{1-\delta} T = λ p 1 − δ , extend it to integers n ≍ X n\asymp X n ≍ X by
v ( n , s ) = U λ W 2 ( 4 n − s 2 ) n δ − 1 . v(n,s)=\frac{U}{\lambda W^2}(4n-s^2)n^{\delta-1}. v ( n , s ) = λ W 2 U ( 4 n − s 2 ) n δ − 1 .
For ∣ s ∣ ≤ 3 X |s|\le3\sqrt{X} ∣ s ∣ ≤ 3 X the derivative U ( λ W 2 ) − 1 ( 4 δ n δ − 1 + ( 1 − δ ) s 2 n δ − 2 ) U(\lambda W^2)^{-1}(4\delta n^{\delta-1}+(1-\delta)s^2n^{\delta-2}) U ( λ W 2 ) − 1 ( 4 δ n δ − 1 + ( 1 − δ ) s 2 n δ − 2 ) is positive and comparable to W − 2 W^{-2} W − 2 with constants depending on δ \delta δ . Split the v v v interval into O ( R ) O(R) O ( R ) pieces of length O ( 1 / R ) O(1/R) O ( 1/ R ) . Each restricts the integers to an interval of length O δ ( 1 + W 2 / R ) O_\delta(1+W^2/R) O δ ( 1 + W 2 / R ) at fixed s s s . Apply the additive large sieve at a fixed v v v on each piece. In the parameter rescaled to length one, differentiating the weight costs a polynomial in H ∣ β ∣ H|\beta| H ∣ β ∣ absorbed by a weaker real Gaussian. The fundamental theorem of calculus and Cauchy–Schwarz give the same bound for the supremum over the piece.
Integrate over ∣ s ∣ ≤ 3 X |s|\le3\sqrt{X} ∣ s ∣ ≤ 3 X . Since 2 B ≪ X 2B\ll\sqrt{X} 2 B ≪ X and d > D 0 ≫ H d>D_0\gg H d > D 0 ≫ H , Parseval as in Lemma S5.2 costs O ( d / H ) O(d/H) O ( d / H ) per denominator, including H < 1 H<1 H < 1 . The lengths in the large sieve sum to O δ ( W 2 + R ( 1 + B 2 ) ) O_\delta(W^2+R(1+B^2)) O δ ( W 2 + R ( 1 + B 2 )) . The angular factor W / p W/p W / p and the prime average therefore give for the normalized high squared norm
E X ∥ h i g h ∥ a n g , b a n d 2 c p ≪ X ϵ W 2 + R ( 1 + B 2 ) X D 0 c p . \mathbb{E}_X\frac{\lVert\mathrm{high}\rVert_{\mathrm{ang},\ \mathrm{band}}^2}{c_p}
\ll X^\epsilon\frac{W^2+R(1+B^2)}{XD_0\sqrt{c_p}}. E X c p ∥ high ∥ ang , band 2 ≪ X ϵ X D 0 c p W 2 + R ( 1 + B 2 ) .
The low–high product in prime L 2 L^2 L 2 costs the square root of this bound times O ( X ϵ ) O(X^\epsilon) O ( X ϵ ) . For the high square add L B 1 / 2 L_B^{1/2} L B 1/2 using its pointwise bound. The high diagonal costs O ( X ϵ / ( D 0 c p ) ) O(X^\epsilon/(D_0\sqrt{c_p})) O ( X ϵ / ( D 0 c p )) .
At δ = 1 / 4 \delta=1/4 δ = 1/4 the high mean is O ( X − 1 / 8 − δ / 2 + ϵ ) O(X^{-1/8-\delta/2+\epsilon}) O ( X − 1/8 − δ /2 + ϵ ) in both ranges of W W W . In the lower range use R ( 1 + B 2 ) / X ≪ X − 3 / 16 + 5 u ≪ X − 2 v R(1+B^2)/X\ll X^{-3/16+5u}\ll X^{-2v} R ( 1 + B 2 ) / X ≪ X − 3/16 + 5 u ≪ X − 2 v . Since L B ≪ X 2 v L_B\ll X^{2v} L B ≪ X 2 v , the high terms cost O ( X − 1 / 16 − v / 2 + u + ϵ ) O(X^{-1/16-v/2+u+\epsilon}) O ( X − 1/16 − v /2 + u + ϵ ) in prime L 2 L^2 L 2 . For the low mixed terms, use R R R in the lower range and 1 + R X / W 1+\sqrt{R}\sqrt{X}/W 1 + R X / W in the upper range. The exponents are − 1 / 16 − ϑ + u -1/16-\vartheta+u − 1/16 − ϑ + u and at most − 3 / 32 + 2 ϑ + u / 2 -3/32+2\vartheta+u/2 − 3/32 + 2 ϑ + u /2 , respectively. Both are strictly below − 1 / 16 -1/16 − 1/16 . Summing the low norms, high norms and angular errors bounds the normalized squared norm of D h D_h D h in prime L 2 L^2 L 2 by O ( X ε ) O(X^\varepsilon) O ( X ε ) . In the open ranges this follows from the pointwise bound.
Tail, normalization and the final error For u ≥ 0 u \ge0 u ≥ 0 , ∣ e − z u ∣ = e − u |e^{-zu}|=e^{-u} ∣ e − z u ∣ = e − u on ℜ z = 1 \Re z=1 ℜ z = 1 . Thus the squared diagonal error O ( B − 1 log 4 X ) O(B^{-1}\log^4 X) O ( B − 1 log 4 X ) and first-sine squared error O ( X ε B / p ) O(X^\varepsilon B/p) O ( X ε B / p ) from Lemma S5.2 apply. After removing the first sine, the real heat kernel bound O ( X ) O(\sqrt{X}) O ( X ) for the trace sum gives normalized squared tail O ( X − 1 / 2 ∑ t ∣ F ( t ) − F B ( t ) ∣ 2 / c p ) O(X^{-1/2}\sum_t |F(t)-F_B(t)|^2/c_p) O ( X − 1/2 ∑ t ∣ F ( t ) − F B ( t ) ∣ 2 / c p ) by Cauchy–Schwarz. The Mellin estimate in Lemma S5.1 gives O ε ( X ε A ( p ) / ( B c p ) ) O_\varepsilon(X^\varepsilon A(p)/(Bc_p)) O ε ( X ε A ( p ) / ( B c p )) . Jensen and the same discriminant multiplicity and fourth moment give E X A ( p ) 2 ≪ ε X ε \mathbb{E}_X A(p)^2\ll_\varepsilon X^\varepsilon E X A ( p ) 2 ≪ ε X ε . With the L 2 L^2 L 2 bound for the truncated squared norm, the tail cross term costs O ε ( X ε ( B c p ) − 1 / 2 ) O_\varepsilon(X^\varepsilon(Bc_p)^{-1/2}) O ε ( X ε ( B c p ) − 1/2 ) . Corollary 4.3 and ∣ τ k ( p ) ∣ ≪ k |\tau_k(p)|\ll k ∣ τ k ( p ) ∣ ≪ k give M p ( z ) M_p(z) M p ( z ) with hyperbolic error O ( p − 3 / 2 / T ) O(p^{-3/2}/T) O ( p − 3/2 / T ) .
The table bounds the exponents in the L 2 L^2 L 2 error at η 1 = 0 \eta_1=0 η 1 = 0 , apart from X ε X^\varepsilon X ε .
Table 1.
The positive increments in d ∗ d_* d ∗ and β ∗ \beta_* β ∗ make the first and third rows strictly smaller than − γ -\gamma − γ . Every other row has a strict margin for γ = δ / 4 \gamma=\delta/4 γ = δ /4 at δ < 1 / 4 \delta<1/4 δ < 1/4 , and for γ = δ / 2 \gamma=\delta/2 γ = δ /2 at δ < 1 / 6 \delta<1/6 δ < 1/6 . In both cases the limiting inequality is δ + 4 γ < 1 / 2 \delta+4\gamma<1/2 δ + 4 γ < 1/2 from the low mixed term. At δ = 1 / 4 \delta=1/4 δ = 1/4 the band estimates above replace the first two rows. There ( B c p ) − 1 / 2 ≍ X − 1 / 16 − u (Bc_p)^{-1/2}\asymp X^{-1/16-u} ( B c p ) − 1/2 ≍ X − 1/16 − u , and the remaining angular and mass errors retain strict margins even with the factor L B 1 / 2 L_B^{1/2} L B 1/2 . Indeed, their exponents at u = 0 u=0 u = 0 are at most − 3 / 32 -3/32 − 3/32 , and they increase by at most 10 u 10u 10 u . Thus in all these ranges, for some ξ > 0 \xi>0 ξ > 0 ,
sup ∣ ℑ z ∣ ≤ X κ ℜ z = 1 ∥ M p ( z ) − M p d i a g ( z ) ∥ 2 ≪ δ , λ X − γ − ξ . (37) \sup_{\substack{| \Im z|\le X^\kappa\\ \Re z=1}}\|M_p(z)-M_p^{\mathrm{diag}}(z)\|_2\ll_{\delta,\lambda}X^{-\gamma-\xi}. \tag*{(37)} ∣ℑ z ∣ ≤ X κ ℜ z = 1 sup ∥ M p ( z ) − M p diag ( z ) ∥ 2 ≪ δ , λ X − γ − ξ . (37)
For the estimate at z = 1 z=1 z = 1 set R = 1 R=1 R = 1 and κ = 0 \kappa=0 κ = 0 throughout. With γ = δ / 2 \gamma=\delta/2 γ = δ /2 , the low mixed term has exponent − 1 / 2 + 2 δ -1/2+2\delta − 1/2 + 2 δ before the small increments, and B / T = o ( 1 ) B/\sqrt{T}=o(1) B / T = o ( 1 ) . Both requirements and the other strict margins hold for 0 < δ < 1 / 5 0<\delta<1/5 0 < δ < 1/5 .
Comparison with the count statistic
For 0 < δ < 1 / 4 0<\delta<1/4 0 < δ < 1/4 the same real-parameter bounds also give
∥ Y p − F X p ( A p ) ∥ L 2 ( E X ) ≪ δ , λ , ε X ε ( X − δ / 2 + X − 1 / 8 + δ / 4 + X − 3 / 16 + δ / 2 ) . (38) \|Y_p-F_{X_p}(A_p)\|_{L^2(\mathbb{E}_X)}\ll_{\delta,\lambda,\varepsilon}X^\varepsilon\left(X^{-\delta/2}+X^{-1/8+\delta/4}+X^{-3/16+\delta/2}\right). \tag*{(38)} ∥ Y p − F X p ( A p ) ∥ L 2 ( E X ) ≪ δ , λ , ε X ε ( X − δ /2 + X − 1/8 + δ /4 + X − 3/16 + δ /2 ) . (38)
Set R = 1 R=1 R = 1 , W 0 = T W_0=\sqrt{T} W 0 = T , D 0 = X 1 / 4 D_0=X^{1/4} D 0 = X 1/4 and B = X 3 / 8 B=X^{3/8} B = X 3/8 in the heat estimates. The edge contributes the first term, and the high denominators and the tail contribute ( D 0 c p ) − 1 / 2 (D_0\sqrt{c_p})^{-1/2} ( D 0 c p ) − 1/2 and ( B c p ) − 1 / 2 (Bc_p)^{-1/2} ( B c p ) − 1/2 , up to X ε X^\varepsilon X ε . The low mixed term D 0 / T D_0/\sqrt{T} D 0 / T , the Taylor error after Cauchy–Schwarz and normalization, and the first-sine and zero-mode errors are smaller.
Corollary 4.3 and Lemma S5.2 give relative error O ( T − 1 / 2 log 9 X ) O(T^{-1/2}\log^9 X) O ( T − 1/2 log 9 X ) between the binomial and heat multipliers up to degree T log X \sqrt{T}\log X T log X . Rounding T T T costs less, and ∣ τ k ( p ) ∣ ≪ k |\tau_k(p)|\ll k ∣ τ k ( p ) ∣ ≪ k controls the remaining tail. The same comparison works for the Gaussian trace sum with T p T_p T p in place of T T T . Both L 2 L^2 L 2 errors are O ε ( X ε T − 1 / 2 ) O_\varepsilon(X^\varepsilon T^{-1/2}) O ε ( X ε T − 1/2 ) : (S14) bounds ∥ M p ( 1 ) ∥ 2 \|M_p(1)\|_2 ∥ M p ( 1 ) ∥ 2 by O ε ( X ε ) O_\varepsilon(X^\varepsilon) O ε ( X ε ) since Weil’s inequality gives F x p ( A p ) ≪ log 3 ( 2 / x p ) F_{x_p}(A_p)\ll\log^3(2/x_p) F x p ( A p ) ≪ log 3 ( 2/ x p ) , splitting at d = 1 / x p d=1/x_p d = 1/ x p with numerator weight sum O ( min ( ( x p d ) 3 , x p d ) ) O(\min((x_p d)^3,x_p d)) O ( min (( x p d ) 3 , x p d )) . Thus the count error is o ( X − δ / 4 ) o(X^{-\delta/4}) o ( X − δ /4 ) for δ < 1 / 4 \delta<1/4 δ < 1/4 by (S15), and at δ = 1 / 4 \delta=1/4 δ = 1/4 by (S14) at z = 1 z=1 z = 1 . For δ < 1 / 5 \delta<1/5 δ < 1/5 the real estimate with γ = δ / 2 \gamma=\delta/2 γ = δ /2 gives o ( X − δ / 2 ) o(X^{-\delta/2}) o ( X − δ /2 ) .
A prime mean-square bound
For primitive characters of conductor f ≤ X θ f\le X^\theta f ≤ X θ with fixed 0 < θ < 1 / 2 0<\theta<1/2 0 < θ < 1/2 , put D = X θ D=X^\theta D = X θ . Then
E X ∣ ∑ χ a χ χ ( p ) ∣ 2 ≪ ε ∑ χ f χ φ ( f χ ) ∣ a χ ∣ 2 . (39) \mathbb{E}_X\left|\sum_\chi a_\chi\chi(p)\right|^2\ll_\varepsilon\sum_\chi\frac{f_\chi}{\varphi(f_\chi)}|a_\chi|^2. \tag*{(39)} E X χ ∑ a χ χ ( p ) 2 ≪ ε χ ∑ φ ( f χ ) f χ ∣ a χ ∣ 2 . (39)
Take R = X β R=X^\beta R = X β with 0 < 2 β < 1 − 2 θ 0<2\beta<1-2\theta 0 < 2 β < 1 − 2 θ and majorize the prime indicator on ( X , 2 X ] (X,2X] ( X , 2 X ] by ( ∑ d ∣ n λ d ) 2 (\sum_{d\mid n}\lambda_d)^2 ( ∑ d ∣ n λ d ) 2 , with λ d = μ ( d ) log ( R / d ) / log R \lambda_d=\mu(d)\log(R/d)/\log R λ d = μ ( d ) log ( R / d ) / log R for d ≤ R d\le R d ≤ R and zero otherwise. Set n = [ d , e ] n ′ n=[d,e]n' n = [ d , e ] n ′ in the expansion. For r = [ d , e ] r=[d,e] r = [ d , e ] , characters with ( r , f ) > 1 (r,f)>1 ( r , f ) > 1 vanish and the others acquire phases χ ( r ) \chi(r) χ ( r ) . Gauss expansion gives additive frequencies spaced at least D − 2 D^{-2} D − 2 apart and diagonal ( φ ( f ) / f ) ∑ χ m o d f ∣ a χ ∣ 2 (\varphi(f)/f)\sum_{\chi\bmod f}|a_\chi|^2 ( φ ( f ) / f ) ∑ χ mod f ∣ a χ ∣ 2 by orthogonality. The Montgomery–Vaughan mean-square estimate gives X / r X/r X / r times the diagonal with absolute error O ( D 2 ∑ χ ∣ a χ ∣ 2 ) O(D^2\sum_\chi|a_\chi|^2) O ( D 2 ∑ χ ∣ a χ ∣ 2 ) , allowing signed sieve coefficients at total error O ( D 2 R 2 ∑ χ ∣ a χ ∣ 2 ) O(D^2R^2\sum_\chi|a_\chi|^2) O ( D 2 R 2 ∑ χ ∣ a χ ∣ 2 ) .
For each fixed f f f , the diagonal sieve factor is
∑ ( d e , f ) = 1 λ d λ e [ d , e ] = ∑ ( ℓ , f ) = 1 φ ( ℓ ) ( ∑ ℓ ∣ d ( d , f ) = 1 λ d d ) 2 ≪ ( f φ ( f ) ) 2 1 log R . \sum_{\substack{(de,f)=1}}\frac{\lambda_d\lambda_e}{[d,e]}
=
\sum_{\substack{(\ell,f)=1}}\varphi(\ell)
\left(\sum_{\substack{\ell\mid d\\(d,f)=1}}\frac{\lambda_d}{d}\right)^2
\ll\left(\frac{f}{\varphi(f)}\right)^2\frac{1}{\log R}. ( d e , f ) = 1 ∑ [ d , e ] λ d λ e = ( ℓ , f ) = 1 ∑ φ ( ℓ ) ℓ ∣ d ( d , f ) = 1 ∑ d λ d 2 ≪ ( φ ( f ) f ) 2 log R 1 .
Only squarefree ℓ \ell ℓ contribute. With d = ℓ u d=\ell u d = ℓ u and m = ℓ f m=\ell f m = ℓ f , use
∑ u ≤ Y ( u , m ) = 1 μ ( u ) u log ( Y / u ) ≪ m φ ( m ) . \sum_{\substack{u\le Y\\(u,m)=1}}\frac{\mu(u)}{u}\log(Y/u)\ll\frac{m}{\varphi(m)}. u ≤ Y ( u , m ) = 1 ∑ u μ ( u ) log ( Y / u ) ≪ φ ( m ) m .
For m = 1 m=1 m = 1 , use the harmonic convolution ∑ u ≤ Y μ ( u ) H ⌊ Y / u ⌋ / u = 1 \sum_{u\le Y}\mu(u)H_{\lfloor Y/u\rfloor}/u=1 ∑ u ≤ Y μ ( u ) H ⌊ Y / u ⌋ / u = 1 . Replacing the logarithm by H ⌊ Y / u ⌋ − γ H_{\lfloor Y/u\rfloor}-\gamma H ⌊ Y / u ⌋ − γ costs O ( 1 ) O(1) O ( 1 ) . The identity ∑ u ≤ Y μ ( u ) ⌊ Y / u ⌋ = 1 \sum_{u\le Y}\mu(u)\lfloor Y/u\rfloor=1 ∑ u ≤ Y μ ( u ) ⌊ Y / u ⌋ = 1 also gives ∑ u ≤ Y μ ( u ) / u = O ( 1 ) \sum_{u\le Y}\mu(u)/u=O(1) ∑ u ≤ Y μ ( u ) / u = O ( 1 ) . Convolve with the indicator of integers supported on primes of m m m for the coprime version. Hence the inner sum is O ( ( f / φ ( f ) ) / ( φ ( ℓ ) log R ) ) O((f/\varphi(f))/(\varphi(\ell)\log R)) O (( f / φ ( f )) / ( φ ( ℓ ) log R )) . Sum φ ( ℓ ) − 1 \varphi(\ell)^{-1} φ ( ℓ ) − 1 to get O ( log ( 2 R ) ) O(\log(2R)) O ( log ( 2 R )) , multiply by the diagonal factor φ ( f ) / f \varphi(f)/f φ ( f ) / f and divide by the prime count. Since D 2 R 2 ≤ X 1 − ξ D^2R^2\le X^{1-\xi} D 2 R 2 ≤ X 1 − ξ for some ξ > 0 \xi>0 ξ > 0 , the sieve error saves a power, proving (S16).
Averaging the centered moments over primes
Put B = X δ / 2 + 1 / 1000 B=X^{\delta/2+1/1000} B = X δ /2 + 1/1000 , D = X 1 / 4 D=X^{1/4} D = X 1/4 and G x = G x , B G_x=G_{x,B} G x = G x , B . Equations (S16) and (S11) bound the centered band B < d ≤ D B<d\le D B < d ≤ D and its first logarithmic derivative by O ( V ( x X ) / ( x X B ) ) O(\sqrt{V(x_X)}/(x_XB)) O ( V ( x X ) / ( x X B )) in prime L 2 L^2 L 2 . For x = x p x=x_p x = x p , apply Sobolev on x = x X y − δ / 2 x=x_Xy^{-\delta/2} x = x X y − δ /2 with 1 ≤ y ≤ 2 1\le y\le2 1 ≤ y ≤ 2 before averaging. The Weil tail above D D D is uniformly o ( V ( x X ) ) o(\sqrt{V(x_X)}) o ( V ( x X ) ) . The count comparison in S8.6 and the Haar mean give
∥ Y p − 1 / 48 − G x p ( A p ) ∥ L 2 ( E X ) = o ( V ( x X ) ) . (40) \|Y_p-1/48-G_{x_p}(A_p)\|_{L^2(E_X)}=o(\sqrt{V(x_X)}). \tag*{(40)} ∥ Y p − 1/48 − G x p ( A p ) ∥ L 2 ( E X ) = o ( V ( x X ) ) . (40)
The same tail bounds in Haar L 2 L^2 L 2 give E A G x 2 = Var A F x + o ( V ( x X ) ) \mathbb{E}_A G_x^2=\operatorname{Var}_A F_x+o(V(x_X)) E A G x 2 = Var A F x + o ( V ( x X )) uniformly for x ≍ x X x\asymp x_X x ≍ x X . The conductor-f f f Fourier coefficients of G x G_x G x and G x 2 G_x^2 G x 2 , and each fixed logarithmic derivative, are at most
O ε ( V ∗ f − 1 / 2 + ε ) , V ∗ = V ( x X ) or V ( x X ) , (41) O_\varepsilon(V_*f^{-1/2+\varepsilon}),\qquad V_*=\sqrt{V(x_X)}\ \text{or}\ V(x_X), \tag*{(41)} O ε ( V ∗ f − 1/2 + ε ) , V ∗ = V ( x X ) or V ( x X ) , (41)
respectively. For G x G_x G x this is (S10). For the square, a pair with product ψ \psi ψ has conductors whose least common multiple is divisible by f f f . Assign each exact prime power of f f f to an input conductor it divides. One character determines the other. Cauchy–Schwarz and (S10) bound the convolution for each assignment, with a smaller intermediate ε \varepsilon ε absorbing the 2 ω ( f ) 2^{\omega(f)} 2 ω ( f ) choices. Derivatives follow by the product rule. All output conductors satisfy f ≤ B 2 ≤ X 0.252 f \le B^2 \le X^{0.252} f ≤ B 2 ≤ X 0.252 .
For each nonprincipal coefficient C ψ C_\psi C ψ , apply the explicit formula to Λ ( n ) ψ ( n ) \Lambda(n)\psi(n) Λ ( n ) ψ ( n ) with weight w 0 ( n / X ) C ψ ( x X ( n / X ) − δ / 2 ) w_0(n/X)C_\psi(xX(n/X)^{-\delta/2}) w 0 ( n / X ) C ψ ( x X ( n / X ) − δ /2 ) , where w 0 w_0 w 0 is smooth and compactly supported in ( 0 , ∞ ) (0,\infty) ( 0 , ∞ ) . By (S18) its Mellin transform is O w 0 , N , ε ( V ∗ f − 1 / 2 + ε ( 1 + ∣ ℑ s ∣ ) − N ) O_{w_0,N,\varepsilon}(V_*f^{-1/2+\varepsilon}(1+|\Im s|)^{-N}) O w 0 , N , ε ( V ∗ f − 1/2 + ε ( 1 + ∣ℑ s ∣ ) − N ) . After division by X X X and summation over characters, prime powers cost O ε ( V ∗ X − 1 / 2 ( B 2 ) 3 / 2 + ε log C X ) = o ( V ∗ ) O_\varepsilon(V_*X^{-1/2}(B^2)^{3/2+\varepsilon}\log^C X)=o(V_*) O ε ( V ∗ X − 1/2 ( B 2 ) 3/2 + ε log C X ) = o ( V ∗ ) . The ordinary zero count gives the same bound for ℜ s < 1 / 2 \Re s<1/2 ℜ s < 1/2 . The trivial zero at zero and the integral at ℜ s = − 1 / 2 \Re s=-1/2 ℜ s = − 1/2 cost less by the functional equation’s bound O ( log ( f ( 2 + ∣ ℑ s ∣ ) ) ) O(\log(f(2+|\Im s|))) O ( log ( f ( 2 + ∣ℑ s ∣ ))) for the logarithmic derivative on the shifted contour.
For the remaining zeros, the hybrid density bound with exponent 5 / 2 5/2 5/2 , recorded by Koukoulopoulos [23 (1.2)] , and the ordinary zero count give
≪ H O ( 1 ) log C ( 2 Q H ) min ( Q 2 , Q 5 u ) \ll H^{O(1)}\log^C(2QH)\min(Q^2,Q^{5u}) ≪ H O ( 1 ) log C ( 2 Q H ) min ( Q 2 , Q 5 u )
zeros in total for f ≍ Q = X h f\asymp Q=X^h f ≍ Q = X h , height at most H ≥ 2 H\ge2 H ≥ 2 , and real part at least 1 − u ≥ 1 / 2 1-u\ge1/2 1 − u ≥ 1/2 . Weighting by f − 1 / 2 + ε X − u f^{-1/2+\varepsilon}X^{-u} f − 1/2 + ε X − u gives the exponent, apart from ε h \varepsilon h ε h ,
− h / 2 + min ( 2 h , 5 h u ) − u ≤ max ( − h / 2 , 3 h / 2 − 2 / 5 ) ≤ − h / 12 ( 0 < h ≤ 0.252 ) . -h/2+\min(2h,5hu)-u\le\max(-h/2,3h/2-2/5)\le-h/12 \qquad(0<h\le0.252). − h /2 + min ( 2 h , 5 h u ) − u ≤ max ( − h /2 , 3 h /2 − 2/5 ) ≤ − h /12 ( 0 < h ≤ 0.252 ) .
Partition u u u into intervals of length 1 / log X 1/\log X 1/ log X . The factors Q 5 u Q^{5u} Q 5 u and X − u X^{-u} X − u vary by bounded factors on each interval. The rapid height decay sums the height bands. For Q ≥ ( log X ) C Q\ge(\log X)^C Q ≥ ( log X ) C with C C C large this bound, summed over Q Q Q , is o ( V ∗ ) o(V_*) o ( V ∗ ) , taking ε < 1 / 24 \varepsilon<1/24 ε < 1/24 . For the smaller conductors the Siegel–Walfisz theorem and partial summation, with the coefficient and derivative bounds (S18), give o ( V ∗ ) o(V_*) o ( V ∗ ) after summation. Thus the nonprincipal terms in both moments have size o ( V ∗ ) o(V_*) o ( V ∗ ) . The conductor decay covers even a real zero close to 1.
With weights w 0 ( p / X ) log p / X w_0(p/X)\log p/X w 0 ( p / X ) log p / X , the first moment is o ( V ( x X ) ) o(\sqrt{V}(x_X)) o ( V ( x X )) and the second agrees with the weighted Haar variance to o ( V ( x X ) ) o(V(x_X)) o ( V ( x X )) . Bracket the dyadic indicator by fixed nonnegative smooth weights whose integrals differ by at most ϵ \epsilon ϵ . The uniform Haar bound and the prime number theorem bound the second moment on their difference by O ( ϵ V ( x X ) ) + o ( V ( x X ) ) O(\epsilon V(x_X))+o(V(x_X)) O ( ϵ V ( x X )) + o ( V ( x X )) . Cauchy–Schwarz bounds the first moment there by O ( ϵ V ( x X ) ) + o ( V ( x X ) ) O(\epsilon\sqrt{V}(x_X))+o(\sqrt{V}(x_X)) O ( ϵ V ( x X )) + o ( V ( x X )) . Let X → ∞ X\to\infty X → ∞ and then ϵ → 0 \epsilon\to0 ϵ → 0 . The prime number theorem replaces log p / X \log p/X log p / X uniformly by the mass of a prime in E X E_X E X , with the second moment controlling the first. (40) then transfers the variance to Y p Y_p Y p by Cauchy–Schwarz. Since E X [ x p log ( 1 / x p ) ] ∼ ( δ λ / 2 ) J δ X − δ / 2 log X \mathbb{E}_X[x_p\log(1/x_p)]\sim(\delta\sqrt{\lambda}/2)J_\delta X^{-\delta/2}\log X E X [ x p log ( 1/ x p )] ∼ ( δ λ /2 ) J δ X − δ /2 log X , the constant follows from (S12). The Gaussian trace sum differs from Y p Y_p Y p by o ( V ( x X ) ) o(\sqrt{V}(x_X)) o ( V ( x X )) in prime L 2 L^2 L 2 and therefore has the same variance asymptotic.
Sharp-cutoff variance and second terms for the mean
Fix 0 < δ ≤ 1 / 4 0<\delta\le1/4 0 < δ ≤ 1/4 and set K = p ( 1 − δ ) / 2 K=p^{(1-\delta)/2} K = p ( 1 − δ ) /2 , c p = K 2 / p c_p=K^2/p c p = K 2 / p , x p = c p x_p=\sqrt{c_p} x p = c p and x X = X − δ / 2 x_X=X^{-\delta/2} x X = X − δ /2 . For the normalized level-one traces put
S p = 1 K 2 ∑ 4 ≤ k ≤ K k e v e n ∣ τ k ( p ) ∣ 2 . S_p=\frac{1}{K^2}\sum_{\substack{4\le k\le K\\ k\ \mathrm{even}}}|\tau_k(p)|^2. S p = K 2 1 4 ≤ k ≤ K k even ∑ ∣ τ k ( p ) ∣ 2 .
With b ( y ) b(y) b ( y ) from (S13), set W # ( v ) = 2 ∫ 0 1 σ ( y ) 1 { b ( y ) v 2 ≤ 1 } d y W_\#(v)=2\int_0^1\sigma(y)\mathbf{1}_{\{b(y)v^2\le1\}}\,dy W # ( v ) = 2 ∫ 0 1 σ ( y ) 1 { b ( y ) v 2 ≤ 1 } d y and F w # = F W # , x F^\#_{w}=F_{W_\#,x} F w # = F W # , x in the notation of S8. The heat estimate from Section S8.5 and Fourier inversion recover the sharp cutoff.
Corollary S9.1. For every fixed 0 < δ ≤ 1 / 4 0 < \delta\le1/4 0 < δ ≤ 1/4 and some ξ δ > 0 \xi_\delta> 0 ξ δ > 0 ,
∥ S p − F x p # ( A p ) ∥ L 2 ( E X ) ≪ δ X − δ / 4 − ξ δ . (42) \lVert S_p-F^\#_{x_p}(A_p)\rVert_{L^2(\mathbb{E}_X)}\ll_\delta X^{-\delta/4-\xi_\delta}. \tag*{(42)} ∥ S p − F x p # ( A p ) ∥ L 2 ( E X ) ≪ δ X − δ /4 − ξ δ . (42)
Consequently
Var X S p = E X Var A F x p # ( A ) + o ( x X log ( 2 / x X ) ) ∼ δ 4 I δ A I ( W # ) X − δ / 2 log X . (43) \operatorname{Var}_X S_p=\mathbb{E}_X\operatorname{Var}_A F^\#_{x_p}(A)+o(x_X\log(2/x_X))\sim\frac{\delta}{4}\mathcal{I}_\delta A\mathcal{I}(W_\#)X^{-\delta/2}\log X. \tag*{(43)} Var X S p = E X Var A F x p # ( A ) + o ( x X log ( 2/ x X )) ∼ 4 δ I δ A I ( W # ) X − δ /2 log X . (43)
Recovering the sharp weight cutoff
Let ν p \nu_p ν p put mass ∣ τ k ( p ) ∣ 2 / K 2 \lvert\tau_k(p)\rvert^2/K^2 ∣ τ k ( p ) ∣ 2 / K 2 at u = ( k − 1 ) 2 / K 2 u=(k-1)^2/K^2 u = ( k − 1 ) 2 / K 2 and let μ p \mu_p μ p have Laplace transform M p d i a g ( z ) M_p^{\mathrm{diag}}(z) M p diag ( z ) at T = K 2 T=K^2 T = K 2 . The real heat bound controls the masses of the positive tilted measures e − u d ν p e^{-u}\,d\nu_p e − u d ν p and e − u d μ p e^{-u}\,d\mu_p e − u d μ p in prime L 2 L^2 L 2 by O ε ( X ε ) O_\varepsilon(X^\varepsilon) O ε ( X ε ) , and hence their Fourier transforms.
For 0 < η < 1 / 4 0<\eta<1/4 0 < η < 1/4 , the boundary kernel is W # ( v / 1 + η ) − W # ( v / 1 − η ) W_\#(v/\sqrt{1+\eta})-W_\#(v/\sqrt{1-\eta}) W # ( v / 1 + η ) − W # ( v / 1 − η ) . Solving the quadratic inequality in y y y shows that the kernel vanishes below v 0 1 − η v_0\sqrt{1-\eta} v 0 1 − η , where v 0 = 1 / ( 4 π ) v_0=1/(4\pi) v 0 = 1/ ( 4 π ) . It is O ( η ) O(\sqrt{\eta}) O ( η ) for ∣ v − v 0 ∣ ≪ η \lvert v-v_0\rvert\ll\eta ∣ v − v 0 ∣ ≪ η and O ( η / h ) O(\eta/\sqrt{h}) O ( η / h ) at bounded v v v with ∣ v − v 0 ∣ ≍ h ≫ η \lvert v-v_0\rvert\asymp h\gg\eta ∣ v − v 0 ∣ ≍ h ≫ η . At large v v v , the intervals have length O ( η / v 2 ) O(\eta/v^2) O ( η / v 2 ) and density O ( 1 / v ) O(1/v) O ( 1/ v ) .
For fixed numerator a a a and x = x p x=x_p x = x p , a bounded band of width h h h in v = a / ( x d ) v=a/(xd) v = a / ( x d ) contains O ( ( a / x ) h + 1 ) O((a/x)h+1) O (( a / x ) h + 1 ) denominators d ≍ a / x d\asymp a/x d ≍ a / x . The dyadic bands contribute O ( η a / x + η ) O(\eta a/x+\sqrt{\eta}) O ( η a / x + η ) . Weight by x − 2 d − 3 + ε x^{-2}d^{-3+\varepsilon} x − 2 d − 3 + ε and sum over a a a to obtain O ε ( x − ε ( η + x η ) ) O_\varepsilon(x^{-\varepsilon}(\eta+x\sqrt{\eta})) O ε ( x − ε ( η + x η )) . The large-v v v sum with kernel O ( η ( x d / a ) 3 ) O(\eta(xd/a)^3) O ( η ( x d / a ) 3 ) over d ≪ a / x d\ll a/x d ≪ a / x and a a a is O ε ( x − ε η ) O_\varepsilon(x^{-\varepsilon}\eta) O ε ( x − ε η ) . Thus μ p ( [ 1 − η , 1 + η ] ) ≪ ε X ε ( η + x p η ) \mu_p([1-\eta,1+\eta])\ll_\varepsilon X^\varepsilon(\eta+x_p\sqrt{\eta}) μ p ([ 1 − η , 1 + η ]) ≪ ε X ε ( η + x p η ) .
Choose γ < b ∗ < κ \gamma<b_*<\kappa γ < b ∗ < κ and η = X − b ∗ \eta=X^{-b_*} η = X − b ∗ . The displacement between the threshold ( 1 − 1 / K ) 2 (1-1/K)^2 ( 1 − 1/ K ) 2 and 1 1 1 is o ( η ) o(\eta) o ( η ) . Bracket both indicators on u ≥ 0 u\ge0 u ≥ 0 by smooth φ ± \varphi_\pm φ ± agreeing with them off [ 1 − 2 η , 1 + 2 η ] [1-2\eta,1+2\eta] [ 1 − 2 η , 1 + 2 η ] and extend smoothly to uniformly compact support. Test the e − u e^{-u} e − u -tilted measures against e u φ ± ( u ) e^u\varphi_\pm(u) e u φ ± ( u ) . Bounded supremum and first derivative L 1 L^1 L 1 norms, and higher derivative norms O j ( η 1 − j ) O_j(\eta^{1-j}) O j ( η 1 − j ) , give Fourier L 1 L^1 L 1 norm O ( log ( 2 / η ) ) O(\log(2/\eta)) O ( log ( 2/ η )) and tail norm O j ( ( η X κ ) 1 − j ) O_j((\eta X^\kappa)^{1-j}) O j (( η X κ ) 1 − j ) beyond X κ X^\kappa X κ . Fourier inversion and Minkowski use (S14) inside that range and the mass bound outside, giving a power saving over X − γ X^{-\gamma} X − γ . The model boundary mass has the same power margin. Positivity and the brackets give ∥ S p − F x p # ( A p ) ∥ 2 ≪ X − γ − ξ ′ \lVert S_p-F^\#_{x_p}(A_p)\rVert_2\ll X^{-\gamma-\xi'} ∥ S p − F x p # ( A p ) ∥ 2 ≪ X − γ − ξ ′ for some ξ ′ > 0 \xi'>0 ξ ′ > 0 . Taking γ = δ / 4 \gamma=\delta/4 γ = δ /4 proves (S19).
Variance of the sharp profile
The sharp kernel is nonincreasing and O ( min ( 1 , v − 3 ) ) O(\min(1,v^{-3})) O ( min ( 1 , v − 3 )) . Its dyadic supremum and variation bounds give (S12) with H = W # H=W_\# H = W # . Its integral can also be evaluated. Under σ ( y ) d y \sigma(y)\,dy σ ( y ) d y the variable q = 2 y ( 1 − y ) q=2\sqrt{y(1-y)} q = 2 y ( 1 − y ) has density 4 q 2 / ( π 1 − q 2 ) 4q^2/(\pi\sqrt{1-q^2}) 4 q 2 / ( π 1 − q 2 ) . Integrate v 4 v^4 v 4 up to 1 / ( 4 π max ( q , q ′ ) ) 1/(4\pi\max(q,q')) 1/ ( 4 π max ( q , q ′ )) for two independent copies, and set q = sin θ q=\sin\theta q = sin θ on the larger variable. This gives
I ( W # ) = 1 80 π 7 ∫ 0 π / 2 ( θ − sin θ cos θ ) csc 3 θ d θ = G + 1 / 2 80 π 7 , (44) I(W_\#)=\frac{1}{80\pi^7}\int_0^{\pi/2}(\theta-\sin\theta\cos\theta)\csc^3\theta\,d\theta=\frac{G+1/2}{80\pi^7}, \tag*{(44)} I ( W # ) = 80 π 7 1 ∫ 0 π /2 ( θ − sin θ cos θ ) csc 3 θ d θ = 80 π 7 G + 1/2 , (44)
where G G G is Catalan's constant. For the last equality, integration by parts reduces the integral to 1 − ∫ 0 π / 2 sin 2 θ log tan ( θ / 2 ) d θ 1-\int_0^{\pi/2}\sin^2\theta\log\tan(\theta/2)\,d\theta 1 − ∫ 0 π /2 sin 2 θ log tan ( θ /2 ) d θ . The integral of log tan ( θ / 2 ) \log\tan(\theta/2) log tan ( θ /2 ) is − 2 G -2G − 2 G , and its integral against cos 2 θ \cos2\theta cos 2 θ is − 1 -1 − 1 by integration by parts. The Mellin transform of the sharp kernel is W ^ # ( s ) = s 2 ∫ 0 1 σ ( y ) b ( y ) − s / 2 d y \widehat W_\#(s)=\frac{s}{2}\int_0^1\sigma(y)b(y)^{-s/2}\,dy W # ( s ) = 2 s ∫ 0 1 σ ( y ) b ( y ) − s /2 d y for 0 < ℜ s < 3 0<\Re s<3 0 < ℜ s < 3 . In particular W ^ # ( 2 ) = 1 / ( 8 π 2 ) \widehat W_\#(2)=1/(8\pi^2) W # ( 2 ) = 1/ ( 8 π 2 ) , as for W W W . The mean calculation below gives E A F x # = 1 / 48 + O ( x ) \mathbb{E}_A F^\#_x=1/48+O(x) E A F x # = 1/48 + O ( x ) .
The prime moment proof uses logarithmic derivatives. To obtain them, smooth W # W_\# W # in log v \log v log v . Its only derivative singularity is at v 0 = 1 / ( 4 π ) v_0=1/(4\pi) v 0 = 1/ ( 4 π ) . For u = log ( v / v 0 ) > 0 u=\log(v/v_0)>0 u = log ( v / v 0 ) > 0 ,
d d u W # ( v 0 e u ) = − 8 π e − 3 u 1 − e − 2 u \frac{d}{du}W_\#(v_0e^u)=-\frac{8}{\pi}\frac{e^{-3u}}{\sqrt{1-e^{-2u}}} d u d W # ( v 0 e u ) = − π 8 1 − e − 2 u e − 3 u
and the derivative vanishes for u < 0 u<0 u < 0 . For ∣ h ∣ < 1 / 4 |h|<1/4 ∣ h ∣ < 1/4 , the supremum and dyadic variation of W # ( v e h ) − W # ( v ) W_{\#}(ve^h)-W_{\#}(v) W # ( v e h ) − W # ( v ) are O ( ∣ h ∣ min ( 1 , v − 3 ) ) O\left(\sqrt{|h|}\min(1,v^{-3})\right) O ( ∣ h ∣ min ( 1 , v − 3 ) ) . Integrate the O ( u − 1 / 2 ) O(u^{-1/2}) O ( u − 1/2 ) derivative up to 2 ∣ h ∣ 2|h| 2∣ h ∣ , and use O ( ∣ h ∣ u − 3 / 2 ) O(|h|u^{-3/2}) O ( ∣ h ∣ u − 3/2 ) for its difference beyond that point. Away from the singularity the derivatives decay exponentially at infinity.
Let ρ η 0 \rho_{\eta_0} ρ η 0 be a positive smooth bump of mass one supported on ∣ h ∣ ≤ η 0 = ( log X ) − C 0 |h|\leq\eta_0=(\log X)^{-C_0} ∣ h ∣ ≤ η 0 = ( log X ) − C 0 . Set
W η 0 ( v ) = ∫ W # ( v e h ) ρ η 0 ( h ) d h ∫ e − 2 h ρ η 0 ( h ) d h . W_{\eta_0}(v)=\frac{\int W_{\#}(ve^h)\rho_{\eta_0}(h)\,dh}{\int e^{-2h}\rho_{\eta_0}(h)\,dh}. W η 0 ( v ) = ∫ e − 2 h ρ η 0 ( h ) d h ∫ W # ( v e h ) ρ η 0 ( h ) d h .
This preserves the Mellin value at 2 2 2 . The dyadic supremum and variation of the difference are O ( η 0 min ( 1 , v − 3 ) ) O\left(\sqrt{\eta_0}\min(1,v^{-3})\right) O ( η 0 min ( 1 , v − 3 ) ) . Differentiation of the bump costs a fixed power of log X \log X log X .
The estimates (S10) and (S11) use only the supremum and variation bounds. The centered prime-moment comparison of S8 therefore applies for the same B , D B,D B , D : the tail estimates save powers, the conductor decay absorbs any logarithmic derivative loss above a sufficiently large power of log X \log X log X , and Siegel–Walfisz absorbs it below that cutoff. The smoothed Haar mean is 1 / 48 + O ( x ) 1/48+O(x) 1/48 + O ( x ) as it averages the Haar means at x e − h xe^{-h} x e − h with normalized weights e − 2 h ρ η 0 ( h ) e^{-2h}\rho_{\eta_0}(h) e − 2 h ρ η 0 ( h ) .
The translation and Fourier energy bounds give Haar squared norm O ( η 0 x log ( 2 / x ) ) O(\eta_0x\log(2/x)) O ( η 0 x log ( 2/ x )) for the centered difference. In both profiles the supremum of the tail above D = X 1 / 4 D=X^{1/4} D = X 1/4 is O ( x − 1 D − 1 log 3 X ) = o ( V ( x X ) ) O(x^{-1}D^{-1}\log^3 X)=o(\sqrt{V(xX)}) O ( x − 1 D − 1 log 3 X ) = o ( V ( x X ) ) . Freeze x x x at the left endpoint of each interval of length ≍ X 1 − b ∗ \asymp X^{1-b_*} ≍ X 1 − b ∗ , with δ / 2 < b ∗ < 1 / 2 \delta/2<b_*<1/2 δ /2 < b ∗ < 1/2 . The translation bound and the factor x − 2 x^{-2} x − 2 give error O ( X − b ∗ / 2 log C X ) = o ( V ( x X ) ) O(X^{-b_*/2}\log^{C}X)=o(\sqrt{V(xX)}) O ( X − b ∗ /2 log C X ) = o ( V ( x X ) ) . Haar Parseval bounds the truncated coefficient square sum by O ( η 0 x X log ( 2 / x X ) + X − ϵ 1 x X ) O(\eta_0xX\log(2/xX)+X^{-\epsilon_1}xX) O ( η 0 x X log ( 2/ x X ) + X − ϵ 1 x X ) for some ϵ 1 > 0 \epsilon_1>0 ϵ 1 > 0 , using the power saving in the tail. The dual multiplicative large sieve costs O ( X 1 − b ∗ + D 2 ) O(X^{1-b_*}+D^2) O ( X 1 − b ∗ + D 2 ) per interval. Since D 2 < X 1 − b ∗ D^2<X^{1-b_*} D 2 < X 1 − b ∗ , restricting the result to primes costs O ( log X ) O(\log X) O ( log X ) relative to the Haar square sum. With C 0 > 3 C_0>3 C 0 > 3 , the centered difference is o ( V ( x X ) ) o(\sqrt{V(xX)}) o ( V ( x X ) ) in prime L 2 L^2 L 2 . The mean difference is O ( x ) = o ( V ( x X ) ) O(x)=o(\sqrt{V(xX)}) O ( x ) = o ( V ( x X ) ) . The variance comparison passes to the sharp profile and then to S p S_p S p by (S19), proving (S20).
Second terms for the mean
The sharp Haar mean has the expansion
E A x F x # ( A ) = 1 48 − x 1728 + o ( x ) . (45) \mathbb{E}A_xF_x^{\#}(A)=\frac{1}{48}-\frac{x}{1728}+o(x). \tag*{(45)} E A x F x # ( A ) = 48 1 − 1728 x + o ( x ) . (45)
Put P ( z ) = z − 3 W # ( 1 / z ) P(z)=z^{-3}W_{\#}(1/z) P ( z ) = z − 3 W # ( 1/ z ) , so P ( 0 ) = 1 / ( 24 π 4 ) P(0)=1/(24\pi^4) P ( 0 ) = 1/ ( 24 π 4 ) by the density calculation. The square-root cusp leaves P P P absolutely continuous with integrable derivative. As j ↓ 0 j\downarrow0 j ↓ 0 ,
∑ d ≥ 1 P ( j d ) = j − 1 ∫ 0 ∞ P ( z ) d z − 1 2 P ( 0 ) + o ( 1 ) . \sum_{d\geq1}P(jd)=j^{-1}\int_0^\infty P(z)\,dz-\frac{1}{2}P(0)+o(1). d ≥ 1 ∑ P ( j d ) = j − 1 ∫ 0 ∞ P ( z ) d z − 2 1 P ( 0 ) + o ( 1 ) .
The remainder is the integral of P ′ P' P ′ against a bounded, mean-zero sawtooth of period j j j . It is uniformly bounded and tends to zero by L 1 L^1 L 1 approximation by step functions. Dropping coprimality and replacing Y a , d Y_{a,d} Y a , d by 1 1 1 gives
F 0 ( x ) = ∑ a ≥ 1 x a 3 ∑ d ≥ 1 P ( x d / a ) = ζ ( 2 ) ∫ 0 ∞ P ( z ) d z − 1 2 x ζ ( 3 ) P ( 0 ) + o ( x ) . F^0(x)=\sum_{a\geq1}\frac{x}{a^3}\sum_{d\geq1}P(xd/a)=\zeta(2)\int_0^\infty P(z)\,dz-\frac{1}{2}x\zeta(3)P(0)+o(x). F 0 ( x ) = a ≥ 1 ∑ a 3 x d ≥ 1 ∑ P ( x d / a ) = ζ ( 2 ) ∫ 0 ∞ P ( z ) d z − 2 1 x ζ ( 3 ) P ( 0 ) + o ( x ) .
The residual after subtracting the constant is O ( x ) O(x) O ( x ) for all x > 0 x>0 x > 0 .
To restore coprimality and g ( d ) g(d) g ( d ) , expand the Euler product of the Gaussian mean as G ( s ) = ∑ u , v c u , v u − s v − s − 3 \mathcal{G}(s)=\sum_{u,v}c_{u,v}u^{-s}v^{-s-3} G ( s ) = ∑ u , v c u , v u − s v − s − 3 . The local expansion there converges absolutely with the weights at s = 2 s=2 s = 2 and s = 3 s = 3 s = 3 . Multiplying the numerator and denominator series gives E A F X # = ∑ u , v c u c v u − 2 v − 1 F 0 ( x v / u ) \mathbb{E}_A F^{\#}_X = \sum_{u,v} c_u c_v u^{-2}v^{-1}F^0(xv/u) E A F X # = ∑ u , v c u c v u − 2 v − 1 F 0 ( xv / u ) . Dominated convergence at the linear term uses the convergence at s = 3 s = 3 s = 3 . The two coefficients are therefore multiplied by G ( 2 ) = 1 \mathcal{G}(2) = 1 G ( 2 ) = 1 and G ( 3 ) = ζ ( 2 ) 2 / ζ ( 3 ) \mathcal{G}(3) = \zeta(2)^2/\zeta(3) G ( 3 ) = ζ ( 2 ) 2 / ζ ( 3 ) , respectively. Since ∫ P = W ^ # ( 2 ) = 1 / ( 8 π 2 ) \int P = \widehat{W}_{\#}(2) = 1/(8\pi^2) ∫ P = W # ( 2 ) = 1/ ( 8 π 2 ) , this gives (S22).
Corollary S9.2 (Second terms for the prime means). With the normalization of Corollary S9.1 , for 0 < δ < 1 / 6 0 < \delta< 1/6 0 < δ < 1/6 ,
E X S p = 1 48 − J δ 1728 X − δ / 2 + o ( X − δ / 2 ) . \mathbb{E}_X S_p = \frac{1}{48} - \frac{J_\delta}{1728}X^{-\delta/2} + o(X^{-\delta/2}). E X S p = 48 1 − 1728 J δ X − δ /2 + o ( X − δ /2 ) . With the normalization of Theorem S8.1 , for 0 < δ < 1 / 5 0 < \delta< 1/5 0 < δ < 1/5 and fixed λ > 0 \lambda> 0 λ > 0 ,
E X Y p = 1 48 − π λ J δ 2304 X − δ / 2 + o ( X − δ / 2 ) . \mathbb{E}_X Y_p = \frac{1}{48} - \frac{\sqrt{\pi}\lambda J_\delta}{2304}X^{-\delta/2} + o(X^{-\delta/2}). E X Y p = 48 1 − 2304 π λ J δ X − δ /2 + o ( X − δ /2 ) .
Proof. Take γ = δ / 2 \gamma= \delta/2 γ = δ /2 in the sharp cutoff recovery and the real heat comparison. Both errors are o ( x X ) o(x_X) o ( x X ) in prime L 2 L^2 L 2 in the stated ranges. Truncate at D = X θ D = X^\theta D = X θ with δ < θ < 1 / 4 \delta< \theta< 1/4 δ < θ < 1/4 , at cost O ( x X − 1 D − 1 log 3 X ) = o ( x X ) O(x_X^{-1}D^{-1}\log^3 X) = o(x_X) O ( x X − 1 D − 1 log 3 X ) = o ( x X ) . At denominator d d d the nonprincipal coefficients have ℓ 1 \ell^1 ℓ 1 norm and total variation as x x x ranges over the prime interval bounded by
≪ τ ( d ) 2 d min ( x X , ( d 2 x X ) − 1 ) . \ll\tau(d)^2\sqrt{d}\min(x_X,(d^2x_X)^{-1}). ≪ τ ( d ) 2 d min ( x X , ( d 2 x X ) − 1 ) .
Indeed the local product Y a , d Y_{a,d} Y a , d is O ( τ ( d ) 2 ) O(\tau(d)^2) O ( τ ( d ) 2 ) by Weil’s bound, so Parseval bounds its absolute character sum by O ( d τ ( d ) 2 ) O(\sqrt{d}\tau(d)^2) O ( d τ ( d ) 2 ) . For each a a a , the kernel is monotone in x x x , with supremum O ( min ( 1 , ( x d / a ) 3 ) ) O(\min(1,(xd/a)^3)) O ( min ( 1 , ( x d / a ) 3 )) . Summing these bounds with the factor x − 2 d − 3 x^{-2}d^{-3} x − 2 d − 3 gives the assertion, also for variation. Summing over d d d costs O ( x X − 1 / 2 log C X ) O(x_X^{-1/2}\log^C X) O ( x X − 1/2 log C X ) .
For p > X > D p > X > D p > X > D , a character modulo d ≤ D d \le D d ≤ D agrees at p p p with its primitive inducing character of conductor f ∣ d f \mid d f ∣ d . Alpöge’s Dirichlet theorem [2 , 39 ] puts the zeros in the explicit formula for a nonprincipal primitive character on ℜ s = 1 / 2 \Re s = 1/2 ℜ s = 1/2 . The zero count gives ∑ n ≤ u Λ ( n ) χ ( n ) ≪ X 1 / 2 log 2 ( f X ) \sum_{n\leq u}\Lambda(n)\chi(n) \ll X^{1/2}\log^2(fX) ∑ n ≤ u Λ ( n ) χ ( n ) ≪ X 1/2 log 2 ( f X ) for X ≤ u ≤ 2 X X \leq u \leq2X X ≤ u ≤ 2 X . Remove prime powers and use partial summation to bound unweighted prime sums on subintervals by O ( X 1 / 2 log C X ) O(X^{1/2}\log^C X) O ( X 1/2 log C X ) . With the coefficient variation above the prime average error is O ( X − 1 / 2 x X − 1 / 2 log C X ) = o ( x X ) O(X^{-1/2}x_X^{-1/2}\log^C X) = o(x_X) O ( X − 1/2 x X − 1/2 log C X ) = o ( x X ) for δ < 2 / 3 \delta< 2/3 δ < 2/3 . The principal coefficients give the Haar means. The prime number theorem averages p − δ / 2 p^{-\delta/2} p − δ /2 to J δ X − δ / 2 ( 1 + o ( 1 ) ) J_\delta X^{-\delta/2}(1+o(1)) J δ X − δ /2 ( 1 + o ( 1 )) . □
Nonprincipal coefficients can have the size of the second term. For an odd prime ℓ \ell ℓ and fixed t > 0 t > 0 t > 0 , the quadratic character χ ℓ \chi_\ell χ ℓ satisfies ℓ 2 E F H , t / ℓ 2 ( χ ℓ ) → E A F H , t ( A ) − 1 / 48 \ell^2\mathbb{E}F_{H,t/\ell^2}(\chi_\ell) \to\mathbb{E}_A F_{H,t}(A) - 1/48 ℓ 2 E F H , t / ℓ 2 ( χ ℓ ) → E A F H , t ( A ) − 1/48 . Indeed the local exponents 1 1 1 and 2 2 2 give the means at scales t / ℓ t/\ell t / ℓ and t t t , multiplied by − h ℓ / ( ℓ ( ℓ − 1 ) ) -h_\ell/(\ell(\ell-1)) − h ℓ / ( ℓ ( ℓ − 1 )) and h ℓ / ℓ 2 h_\ell/\ell^2 h ℓ / ℓ 2 , respectively, with ℓ \ell ℓ omitted from the numerator and cofactor. At scale y = t / ℓ y = t/\ell y = t / ℓ the omissions cost O ( y − 1 ℓ − 2 + ℓ − 2 ) O(y^{-1}\ell^{-2}+\ell^{-2}) O ( y − 1 ℓ − 2 + ℓ − 2 ) , and at scale t t t they tend to zero by dominated convergence. The higher exponents k ≥ 3 k \geq3 k ≥ 3 contribute O t ( ℓ − 4 ) O_t(\ell^{-4}) O t ( ℓ − 4 ) by the bound O ( 1 / y ) O(1/y) O ( 1/ y ) for the mean at scale y = t ℓ k − 2 y = t\ell^{k-2} y = t ℓ k − 2 .
The article’s AI Declaration covers the arguments, numerical checks and writing in this supplement.