Introduction
By the prime number theorem, the number of primes up to x x x is asymptotic to x / log x x/\log x x / log x , so that an interval ( n , n + y ] (n,n+y] ( n , n + y ] with n ≤ x n \le x n ≤ x and y = λ log x y=\lambda\log x y = λ log x contains λ \lambda λ primes on average. In 1976 Gallagher [8 ] showed that, assuming a uniform version of the Hardy–Littlewood prime k k k -tuple conjecture, the number of primes in such an interval is asymptotically Poisson distributed with parameter λ \lambda λ , as n n n ranges over the integers up to x x x . In other words, at the scale of their average spacing the primes behave like independent random points of density 1 / log x 1/\log x 1/ log x . Gallagher’s proof is by the method of moments: the k k k -th moment of the number of primes in the interval is a sum over k k k -tuples of shifts, the hypothesis replaces the count of each prime k k k -tuple by its singular series, and the heart of the argument is an estimate showing that the singular series equals 1 on average over k k k -tuples of shifts in a box. Ford [7 ] later found a much simpler proof of this estimate.
For the sums of two squares, the role of the prime number theorem is played by a theorem of Landau [9 ] from 1908: the number of integers up to x x x that are sums of two squares is asymptotic to K x / log x Kx/\sqrt{\log x} K x / log x , where K = 0.7642 … K=0.7642\ldots K = 0.7642 … is the Landau–Ramanujan constant. These integers thus have average spacing about log x / K \sqrt{\log x}/K log x / K near x x x , and the natural windows are ( n , n + y ] (n,n+y] ( n , n + y ] with y = λ log x / K y=\lambda\sqrt{\log x}/K y = λ log x / K . Freiberg, Kurlberg, and Rosenzweig [6 ] , motivated by the level spacings of toral point scatterers, proved the analogue of Gallagher’s theorem in this setting, assuming an analogous Hardy–Littlewood-type hypothesis for sums of two squares. Their work built on earlier results on the pair correlation of sums of two squares: Connors and Keating [4 ] conjectured a formula for it and found numerical evidence for Poisson spacings, and Smilansky [11 ] expressed the singular series for pairs as a product of p p p -adic densities and showed that, assuming (a reformulation of) their conjecture, the second moment of the number of sums of two squares in short intervals is consistent with Poisson statistics. Smilansky also went beyond sums of two squares: for each of the forms x 2 + d y 2 x^2+dy^2 x 2 + d y 2 with d = 1 , 2 , 3 , 4 , 7 d=1,2,3,4,7 d = 1 , 2 , 3 , 4 , 7 , which have class number one, Smilansky formulated an analogous pair correlation conjecture and showed that, assuming it, the second moment is again consistent with Poisson statistics [11 §6] . These results involve only pair correlation and the second moment, whereas the theorem of Freiberg, Kurlberg, and Rosenzweig establishes convergence of all moments. As in Gallagher’s work, the analytic heart of their argument is an estimate for the average of a singular series, and they point out that Ford’s simplification applies there as well.
In this article we extend the theorem of Freiberg, Kurlberg, and Rosenzweig from sums of two squares to the integers represented by an arbitrary primitive positive definite binary quadratic form, or more precisely by a class or a genus of such forms of a fixed discriminant d < 0 d<0 d < 0 . Here the role of the prime number theorem is played by the dissertation of Bernays [1 ] from 1912, written under Landau, which extends Landau’s theorem to all such forms: for each class C C C of discriminant d d d , the number N C ( x ) N_C(x) N C ( x ) of integers up to x x x represented by C C C satisfies:
N C ( x ) ∼ b ( d ) x log x ( x → ∞ ) , (1) N_C(x)\sim b(d)\frac{x}{\sqrt{\log x}}\qquad(x\to\infty), \tag*{(1)} N C ( x ) ∼ b ( d ) log x x ( x → ∞ ) , (1)
for a constant b ( d ) > 0 b(d)>0 b ( d ) > 0 that depends only on d d d , and not on C C C . The precise statement, together with a second result of Bernays comparing a class with its genus, is given in § 2 . The integers represented by C C C therefore have average spacing about log x / b ( d ) \sqrt{\log x}/b(d) log x / b ( d ) near x x x , and we take windows of exactly this length: for fixed τ > 0 \tau>0 τ > 0 we choose y y y so that y N C ( x ) / x → τ yN_C(x)/x\to\tau y N C ( x ) / x → τ , that is, y ∼ τ log x / b ( d ) y\sim\tau\sqrt{\log x}/b(d) y ∼ τ log x / b ( d ) , so that a window ( n , n + y ] (n,n+y] ( n , n + y ] with n ≤ x n\le x n ≤ x contains τ \tau τ represented integers on average in the limit. We will show that, conditionally on a uniform Hardy–Littlewood-type hypothesis, the number of represented integers in such a window is Poisson distributed with parameter τ \tau τ . In particular, for the five forms considered by Smilansky [11 §6] , this passes from the second moment to the full distribution, under a hypothesis on correlations of every order.
Notation and main results
Throughout, d < 0 d<0 d < 0 is a discriminant (not assumed fundamental), C ( d ) C(d) C ( d ) denotes the form class group of order h ( d ) h(d) h ( d ) , and there are g ( d ) g(d) g ( d ) genera, each containing h ( d ) / g ( d ) h(d)/g(d) h ( d ) / g ( d ) classes; see [5 Theorem 3.9 and Corollary 3.14] and [3 ] . For a positive definite form f f f of discriminant d d d we write E f : = f ( Z 2 ) E_f:=f(\mathbb{Z}^2) E f := f ( Z 2 ) for the set of integers it represents. This depends only on the class C C C of f f f , so we write E C : = E f E_C:=E_f E C := E f , and for a genus R R R we set E R : = ⋃ C ⊂ R E C E_R:=\bigcup_{C\subset R}E_C E R := ⋃ C ⊂ R E C . Their counting functions are:
N C ( x ) : = # ( E C ∩ [ 1 , x ] ) , N R ( x ) : = # ( E R ∩ [ 1 , x ] ) . (2) N_C(x):=\#(E_C\cap[1,x]),\qquad N_R(x):=\#(E_R\cap[1,x]). \tag*{(2)} N C ( x ) := # ( E C ∩ [ 1 , x ]) , N R ( x ) := # ( E R ∩ [ 1 , x ]) . (2)
Further, p p p denotes a rational prime, v p v_p v p the p p p -adic valuation, Z p \mathbb{Z}_p Z p the p p p -adic integers, μ p \mu_p μ p normalized Haar measure on Z p \mathbb{Z}_p Z p (μ p ( Z p ) = 1 \mu_p(\mathbb{Z}_p)=1 μ p ( Z p ) = 1 ), and χ d ( p ) = ( d p ) \chi_d(p)=\left(\frac{d}{p}\right) χ d ( p ) = ( p d ) the Kronecker symbol, so that for p ∤ d p\nmid d p ∤ d , p p p is split if χ d ( p ) = 1 \chi_d(p)=1 χ d ( p ) = 1 and inert if χ d ( p ) = − 1 \chi_d(p)=-1 χ d ( p ) = − 1 .
Our main results are the following, in which Hypothesis U ( k ) U(k) U ( k ) is stated precisely in § 4 .
Theorem 1.1 (Class-level Poisson distribution, conditional on Hypothesis U ( k ) U(k) U ( k ) ). Fix a discriminant d < 0 d<0 d < 0 , a class C ∈ C ( d ) C\in C(d) C ∈ C ( d ) , and τ > 0 \tau>0 τ > 0 , and assume that Hypothesis U ( k ) U(k) U ( k ) holds for every k ≥ 1 k\geq1 k ≥ 1 for the genus containing C C C . Let x x x and y y y be real parameters tending to infinity in such a way that y N C ( x ) / x → τ yN_C(x)/x\to\tau y N C ( x ) / x → τ . Then for every fixed integer m ≥ 0 m\geq0 m ≥ 0 :
1 x # { 1 ≤ n ≤ x : N C ( n + y ) − N C ( n ) = m } ⟶ e − τ τ m m ! ( x → ∞ ) . (3) \frac{1}{x}\#\{1\leq n\leq x:N_C(n+y)-N_C(n)=m\}\longrightarrow e^{-\tau}\frac{\tau^m}{m!}\qquad(x\to\infty). \tag*{(3)} x 1 # { 1 ≤ n ≤ x : N C ( n + y ) − N C ( n ) = m } ⟶ e − τ m ! τ m ( x → ∞ ) . (3)
Theorem 1.2 (Genus-level Poisson distribution, conditional on Hypothesis U ( k ) U(k) U ( k ) ). Fix a discriminant d < 0 d<0 d < 0 , a genus R R R of discriminant d d d , and τ > 0 \tau>0 τ > 0 , and assume that Hypothesis U ( k ) U(k) U ( k ) holds for every k ≥ 1 k\geq1 k ≥ 1 for R R R . Let x x x and y y y be real parameters tending to infinity in such a way that y N R ( x ) / x → τ yN_R(x)/x\to\tau y N R ( x ) / x → τ . Then for every fixed integer m ≥ 0 m\geq0 m ≥ 0 :
1 x # { 1 ≤ n ≤ x : N R ( n + y ) − N R ( n ) = m } ⟶ e − τ τ m m ! ( x → ∞ ) . (4) \frac{1}{x}\#\{1\leq n\leq x:N_R(n+y)-N_R(n)=m\}\longrightarrow e^{-\tau}\frac{\tau^m}{m!}\qquad(x\to\infty). \tag*{(4)} x 1 # { 1 ≤ n ≤ x : N R ( n + y ) − N R ( n ) = m } ⟶ e − τ m ! τ m ( x → ∞ ) . (4)
Since N R ( x ) = N C ( x ) ( 1 + o ( 1 ) ) N_R(x)=N_C(x)(1+o(1)) N R ( x ) = N C ( x ) ( 1 + o ( 1 )) for every class C ⊂ R C\subset R C ⊂ R (§ 2 , Inputs A and B), the conditions y N C ( x ) / x → τ yN_C(x)/x\to\tau y N C ( x ) / x → τ and y N R ( x ) / x → τ yN_R(x)/x\to\tau y N R ( x ) / x → τ are equivalent, so Theorems 1.1 and 1.2 apply to the same windows and no separate calibration is needed. For d = − 4 d=-4 d = − 4 there is a single class, that of x 2 + y 2 x^2+y^2 x 2 + y 2 , and b ( − 4 ) = K b(-4)=K b ( − 4 ) = K ; in this case Theorem 1.1 recovers part (b) of [6 Theorem 1.2] , on the number of values in a window, but not part (a), on nearest-neighbor spacings. Our Hypothesis U ( k ) U(k) U ( k ) is also stronger than the one assumed there: Freiberg, Kurlberg, and Rosenzweig only ask that the analogous estimate hold on average over dilates of bounded convex sets, whereas we ask that it hold uniformly. We do this mainly to simplify the argument, and an averaged hypothesis should also suffice, since the proof of Theorem 8.1 only uses Hypothesis U ( k ) U(k) U ( k ) after summing over the shifts.
Outline of the proof and organization
The idea is to split the work into an analytic part and an arithmetic reduction. Essentially all of the analytic work is concentrated in Theorem 1.2: local densities, a singular series, and a moment computation. Theorem 1.1 is then deduced from it in §3, via a classical equidistribution theorem of Bernays [1 ] showing that a class and its genus represent the same integers with an error negligible at the scale the Poisson statistics live at. We prove this reduction first, so that the rest of the article can focus exclusively on Theorem 1.2.
For the average of the singular series in § 7 we do not use the more involved arguments of Gallagher [8 ] and of Freiberg, Kurlberg, and Rosenzweig [6 ] . Instead we adapt Ford’s simplified approach [7 ] to binary quadratic forms: we truncate the Euler product of the singular series at a small multiple of log H \log H log H , replace the remaining finite product by a periodic function, and average it over complete periods using the Chinese remainder theorem. The price is a worse error term, a relative saving of only 1 / log log H 1/\log\log H 1/ log log H (Theorem 7.3), but this is more than enough for the method of moments.
The article is organized as follows. In § 2 we state the two inputs from Bernays’ dissertation, which we use without proof, and in §3 we deduce Theorem 1.1 from Theorem 1.2 . In § 4 we state Hypothesis U ( k ) U(k) U ( k ) . We compute the local densities in § 5 and § 6 , study the singular series and its average in § 7 , and prove Theorem 1.2 by the method of moments in §8. Finally, § 9 contains numerical evidence for Hypothesis U ( k ) U(k) U ( k ) .
Acknowledgments
I would like to thank my supervisors, Professor Francesco Cellarosi and Professor Brad Rodgers, for their guidance and support while working on this article. I would also like to thank Professor M. Ram Murty and Dr Nic Fellini for their many helpful comments during talks at the Queen’s University Number Theory Seminar.
Use of Large Language Models
Claude Sonnet 5.5 was used to transcribe and format this article from a set of handwritten notes and was also used to help with the numerical analysis in § 9 . Claude Opus 5.5 was used to review the article. Claude Opus 4.8 was used to compute the values of δ { 0 } ( 2 ) \delta_{\{0\}}(2) δ { 0 } ( 2 ) in § 6 . Its derivation relied on results from class field theory, with which the author is not familiar, so it is not included here. The derivation of δ { 0 } ( 2 ) \delta_{\{0\}}(2) δ { 0 } ( 2 ) presented in this article, and all other proofs, were produced without the use of large language models.
Two inputs from Bernays’ dissertation
The reduction of Theorem 1.1 to Theorem 1.2 requires two classical facts due to P. Bernays [1 ] . Their proofs are omitted as they are beyond the scope of the present article; a detailed treatment can be found in [1 ] .
Input A (Per-class asymptotic). For any class C C C of discriminant d d d ,
N C ( x ) ∼ b ( d ) x log x ( x → ∞ ) , (5) N_C(x) \sim b(d) \frac{x}{\sqrt{\log x}} \qquad(x \to\infty), \tag*{(5)} N C ( x ) ∼ b ( d ) log x x ( x → ∞ ) , (5)
for a constant b ( d ) > 0 b(d) > 0 b ( d ) > 0 depending only on d d d — the same constant for every class of that discriminant, regardless of which genus it lies in.
Input B (Class-genus equidistribution). Let h = h ( d ) h = h(d) h = h ( d ) denote the class number. There is an exponent θ = θ ( d ) > 0 \theta= \theta(d) > 0 θ = θ ( d ) > 0 such that for a class C C C inside a genus R R R , the difference Δ : = E R ∖ E C \Delta:= E_R \setminus E_C Δ := E R ∖ E C (which is also the symmetric difference, since E C ⊆ E R E_C \subseteq E_R E C ⊆ E R ) satisfies
# ( Δ ∩ [ 1 , x ] ) = O d ( x ( log x ) 1 / 2 + θ ) . (6) \#(\Delta\cap[1,x]) = O_d\left(\frac{x}{(\log x)^{1/2+\theta}}\right). \tag*{(6)} # ( Δ ∩ [ 1 , x ]) = O d ( ( log x ) 1/2 + θ x ) . (6)
Any θ \theta θ with 0 < θ < 1 / h 0 < \theta< 1/h 0 < θ < 1/ h and θ ≤ 1 / 4 \theta\le1/4 θ ≤ 1/4 is admissible. If h ≤ 2 h \le2 h ≤ 2 , then every class is its own genus and Δ = ∅ \Delta= \varnothing Δ = ∅ .
Input A is the asymptotic for a single class together with the equal-density statement of [1 p. 92] . Input B is not stated in exactly this form in [1 ] ; it follows from [1 p. 102] (an integer represented by a genus but not by every class in it is an exceptional number for some fundamental class) and [1 §3, p. 117] (for each fundamental class, the exceptional numbers up to x x x number O ( x / ( log x ( log x ) ϑ ′ / h ) ) O(x/(\sqrt{\log x}(\log x)^{\vartheta'/h})) O ( x / ( log x ( log x ) ϑ ′ / h )) for every ϑ ′ \vartheta' ϑ ′ with 0 ≤ ϑ ′ < 1 0 \le\vartheta' < 1 0 ≤ ϑ ′ < 1 and ϑ ′ ≤ h / 4 \vartheta' \le h/4 ϑ ′ ≤ h /4 ), by taking θ = ϑ ′ / h \theta= \vartheta'/h θ = ϑ ′ / h .
Combining the two inputs, we obtain essentially for free that for any genus R R R of discriminant d d d and any class C ⊂ R C \subset R C ⊂ R , N R ( x ) = N C ( x ) ( 1 + o ( 1 ) ) ∼ b ( d ) x / log x N_R(x) = N_C(x)(1+o(1)) \sim b(d)x/\sqrt{\log x} N R ( x ) = N C ( x ) ( 1 + o ( 1 )) ∼ b ( d ) x / log x . Thus the identical constant b ( d ) b(d) b ( d ) governs every genus and every class of the fixed discriminant $d at once, which is exactly what makes a separate window calibration unnecessary for Theorem 1.1 versus Theorem 1.2 (§3). More precisely, Input B says that a class and its genus differ by a set whose counting function is smaller than N R ( x ) N_R(x) N R ( x ) by a factor ( log x ) θ (\log x)^\theta ( log x ) θ , so that it is invisible at the scale of Input A.
Class-level from genus-level Poisson distribution
In this section we deduce Theorem 1.1 from Theorem 1.2, using the two inputs of §2. The idea is to couple the window counts of E C E_C E C and E R E_R E R : the two sets differ only by a very sparse set, so their window counts coincide exactly on an event whose probability tends to 1.
Proof (of Theorem 1.1 from Theorem 1.2). Fix the genus R R R and a class C ⊂ R C \subset R C ⊂ R , and fix τ > 0 \tau> 0 τ > 0 . By Input A (combined with Input B, as shown in §2), ρ 1 ( x ) : = N R ( x ) / x → 0 \rho_1(x) := N_R(x)/x \to0 ρ 1 ( x ) := N R ( x ) / x → 0 like b ( d ) / log x b(d)/\sqrt{\log x} b ( d ) / log x , and N R ( x ) = N C ( x ) ( 1 + o ( 1 ) ) N_R(x) = N_C(x)(1 + o(1)) N R ( x ) = N C ( x ) ( 1 + o ( 1 )) . Hence the hypothesis y N C ( x ) / x → τ yN_C(x)/x \to\tau y N C ( x ) / x → τ of Theorem 1.1 is equivalent to:
y ⋅ ρ 1 ( x ) → τ (so y ∼ τ log x / b ( d ) ) . (7) y \cdot\rho_1(x) \to\tau\qquad\text{(so } y \sim\tau\sqrt{\log x}/b(d)\text{)}. \tag*{(7)} y ⋅ ρ 1 ( x ) → τ (so y ∼ τ log x / b ( d ) ) . (7)
This matches the calibration used for Theorem 1.2 in §8.
Let Δ : = E R ∖ E C \Delta:= E_R \setminus E_C Δ := E R ∖ E C . Then E C ⊆ E R E_C \subseteq E_R E C ⊆ E R , since a class is contained in its genus, and Δ \Delta Δ is exactly the set on which the two counts could differ. For n n n drawn uniformly from the integers 1 ≤ n ≤ x 1 \le n \le x 1 ≤ n ≤ x , let Y x R Y_x^R Y x R and Y x C Y_x^C Y x C denote the counts of E R E_R E R , respectively E C E_C E C , in the window ( n , n + y ] (n,n+y] ( n , n + y ] . We split the proof into two claims.
Claim 1: We have Y x C = Y x R Y_x^C = Y_x^R Y x C = Y x R exactly, on the event that the window ( n , n + y ] (n,n+y] ( n , n + y ] contains no point of Δ \Delta Δ at all.
Proof of Claim 1: Since E C ⊆ E R E_C \subseteq E_R E C ⊆ E R and the two sets differ only by Δ \Delta Δ , we get:
Y x R − Y x C = # ( Δ ∩ ( n , n + y ] ) ≥ 0. (8) Y_x^R-Y_x^C=\#(\Delta\cap(n,n+y])\ge0. \tag*{(8)} Y x R − Y x C = # ( Δ ∩ ( n , n + y ]) ≥ 0. (8)
Hence the two counts agree precisely when Δ ∩ ( n , n + y ] = ∅ \Delta\cap(n,n+y] = \varnothing Δ ∩ ( n , n + y ] = ∅ . This proves Claim 1.
Claim 2: The event in Claim 1 has probability → 1 \to1 → 1 as x → ∞ x \to\infty x → ∞ .
Proof of Claim 2: By Input B, we have # ( Δ ∩ [ 1 , 2 x ] ) = O d ( x / ( log x ) 1 / 2 + θ ) \#(\Delta\cap[1,2x]) = O_d\left(x/(\log x)^{1/2+\theta}\right) # ( Δ ∩ [ 1 , 2 x ]) = O d ( x / ( log x ) 1/2 + θ ) for some fixed θ = θ ( d ) > 0 \theta=\theta(d)>0 θ = θ ( d ) > 0 . This range suffices, since y = o ( x ) y=o(x) y = o ( x ) , so that for x x x large every window ( n , n + y ] (n,n+y] ( n , n + y ] with n ≤ x n\le x n ≤ x lies in [ 1 , 2 x ] [1,2x] [ 1 , 2 x ] . Only the positivity of θ \theta θ will be needed.
Now average over the random starting point n ∈ ( 0 , x ] n \in(0,x] n ∈ ( 0 , x ] . Writing # ( Δ ∩ ( n , n + y ] ) = ∑ m ∈ Δ 1 [ n < m ≤ n + y ] \#(\Delta\cap(n,n+y])=\sum_{m\in\Delta}1[n<m\le n+y] # ( Δ ∩ ( n , n + y ]) = ∑ m ∈ Δ 1 [ n < m ≤ n + y ] and swapping the order of summation, we find:
∑ n = 1 x # ( Δ ∩ ( n , n + y ] ) = ∑ m ∈ Δ # { n ∈ [ 1 , x ] : m − y ≤ n < m } . (9) \sum_{n=1}^{x}\#(\Delta\cap(n,n+y])=\sum_{m\in\Delta}\#\{n\in[1,x]:m-y\le n<m\}. \tag*{(9)} n = 1 ∑ x # ( Δ ∩ ( n , n + y ]) = m ∈ Δ ∑ # { n ∈ [ 1 , x ] : m − y ≤ n < m } . (9)
For each fixed m m m , the inner count is at most y y y regardless of m m m : it counts integers in [ m − y , m − 1 ] ∩ [ 1 , x ] [m-y,m-1]\cap[1,x] [ m − y , m − 1 ] ∩ [ 1 , x ] , and since m m m is an integer, the full interval [ m − y , m − 1 ] [m-y,m-1] [ m − y , m − 1 ] contains exactly ⌊ y ⌋ ≤ y \lfloor y\rfloor\le y ⌊ y ⌋ ≤ y integers. Moreover, the inner count is zero once m > x + y m>x+y m > x + y . So the right-hand side is at most y ⋅ # ( Δ ∩ [ 1 , x + y ] ) ≤ y ⋅ # ( Δ ∩ [ 1 , 2 x ] ) y\cdot\#(\Delta\cap[1,x+y])\le y\cdot\#(\Delta\cap[1,2x]) y ⋅ # ( Δ ∩ [ 1 , x + y ]) ≤ y ⋅ # ( Δ ∩ [ 1 , 2 x ]) . Since n n n is uniform on the ⌊ x ⌋ \lfloor x\rfloor ⌊ x ⌋ integers 1 ≤ n ≤ x 1\le n\le x 1 ≤ n ≤ x , dividing by ⌊ x ⌋ ≥ x / 2 \lfloor x\rfloor\ge x/2 ⌊ x ⌋ ≥ x /2 we obtain:
E [ # ( Δ ∩ ( n , n + y ] ) ] ≤ y ⌊ x ⌋ ⋅ # ( Δ ∩ [ 1 , 2 x ] ) ≤ 2 y x ⋅ # ( Δ ∩ [ 1 , 2 x ] ) (10) \mathbb{E}\left[\#(\Delta\cap(n,n+y])\right]\le\frac{y}{\lfloor x\rfloor}\cdot\#(\Delta\cap[1,2x])\le\frac{2y}{x}\cdot\#(\Delta\cap[1,2x]) \tag*{(10)} E [ # ( Δ ∩ ( n , n + y ]) ] ≤ ⌊ x ⌋ y ⋅ # ( Δ ∩ [ 1 , 2 x ]) ≤ x 2 y ⋅ # ( Δ ∩ [ 1 , 2 x ]) (10)
= O d ( y ( log x ) 1 / 2 + θ ) = ( ∗ ) O d ( 1 ( log x ) θ ) ⟶ 0 , (11) =O_d\left(\frac{y}{(\log x)^{1/2+\theta}}\right)\mathrel{\overset{(*)}{=} }O_d\left(\frac{1}{(\log x)^\theta}\right)\longrightarrow0, \tag*{(11)} = O d ( ( log x ) 1/2 + θ y ) = ( ∗ ) O d ( ( log x ) θ 1 ) ⟶ 0 , (11)
where ( ∗ ) (*) ( ∗ ) holds because y = O ( log x ) y=O(\sqrt{\log x}) y = O ( log x ) . By Markov’s inequality it follows that P ( # ( Δ ∩ ( n , n + y ] ) ≥ 1 ) → 0 \mathbb{P}(\#(\Delta\cap(n,n+y])\ge1)\to0 P ( # ( Δ ∩ ( n , n + y ]) ≥ 1 ) → 0 as x → ∞ x\to\infty x → ∞ . This proves Claim 2.
We now put our two claims to work. By Claim 2, with probability tending to 1 the window contains no point of Δ \Delta Δ , so by Claim 1 we have Y x C = Y x R Y_x^C=Y_x^R Y x C = Y x R exactly on an event of probability → 1 \to1 → 1 . Since Y x R → Poisson ( τ ) Y_x^R\to\operatorname{Poisson}(\tau) Y x R → Poisson ( τ ) in distribution by Theorem 1.2, the same must be true of Y x C Y_x^C Y x C . Since Y x C = N C ( n + y ) − N C ( n ) Y_x^C=N_C(n+y)-N_C(n) Y x C = N C ( n + y ) − N C ( n ) takes integer values, this means precisely that P ( Y x C = m ) = 1 ⌊ x ⌋ # { 1 ≤ n ≤ x : N C ( n + y ) − N C ( n ) = m } → e − τ τ m / m ! \mathbb{P}(Y_x^C=m)=\frac{1}{\lfloor x\rfloor}\#\{1\le n\le x:N_C(n+y)-N_C(n)=m\}\to e^{-\tau}\tau^m/m! P ( Y x C = m ) = ⌊ x ⌋ 1 # { 1 ≤ n ≤ x : N C ( n + y ) − N C ( n ) = m } → e − τ τ m / m ! for every fixed m ≥ 0 m\ge0 m ≥ 0 . Since ⌊ x ⌋ / x → 1 \lfloor x\rfloor/x\to1 ⌊ x ⌋ / x → 1 , the same limit holds with ⌊ x ⌋ \lfloor x\rfloor ⌊ x ⌋ replaced by x x x . This completes the proof of Theorem 1.1, granted Theorem 1.2. □ \square □
Remark 3.1. This coupling argument is why no separate class level hypothesis is necessary. To see why the coupling is needed, consider the naive alternative of running the method of moments for Y x R Y_x^R Y x R directly, comparing it with Y x R Y_x^R Y x R tuple by tuple. Write ρ k C ( h ; x ) \rho_k^C(h;x) ρ k C ( h ; x ) and ρ k R ( h ; x ) \rho_k^R(h;x) ρ k R ( h ; x ) for the k k k -point correlations (Definition 4.1) of E C E_C E C and E R E_R E R . Since E C ⊆ E R E_C \subseteq E_R E C ⊆ E R , an integer n n n counted by ρ k R \rho_k^R ρ k R but not by ρ k C \rho_k^C ρ k C must have n + h i ∈ Δ n+h_i \in\Delta n + h i ∈ Δ for some i i i , so the only bound that Input B provides is:
0 ≤ ρ k R ( h ; x ) − ρ k C ( h ; x ) ≤ 1 x ∑ i = 1 k # { 1 ≤ n ≤ x : n + h i ∈ Δ } ≤ k x # ( Δ ∩ [ 1 , 2 x ] ) ≪ k , d 1 ( log x ) 1 / 2 + θ . (12) 0 \le\rho_k^R(\mathbf{h};x)-\rho_k^C(\mathbf{h};x) \le\frac{1}{x}\sum_{i=1}^k \#\{1 \le n \le x : n+h_i \in\Delta\} \le\frac{k}{x}\#(\Delta\cap[1,2x]) \ll_{k,d} \frac{1}{(\log x)^{1/2+\theta}}. \tag*{(12)} 0 ≤ ρ k R ( h ; x ) − ρ k C ( h ; x ) ≤ x 1 i = 1 ∑ k # { 1 ≤ n ≤ x : n + h i ∈ Δ } ≤ x k # ( Δ ∩ [ 1 , 2 x ]) ≪ k , d ( log x ) 1/2 + θ 1 . (12)
The k k k -th factorial moment is a sum of k k k -point correlations over the ≍ y k \asymp y^k ≍ y k tuples of shifts in the window, so summing this bound over all of them gives a total error of size:
y k ( log x ) 1 / 2 + θ ≍ k , d , τ ( log x ) ( k − 1 ) / 2 − θ , (13) \frac{y^k}{(\log x)^{1/2+\theta}} \asymp_{k,d,\tau} (\log x)^{(k-1)/2-\theta}, \tag*{(13)} ( log x ) 1/2 + θ y k ≍ k , d , τ ( log x ) ( k − 1 ) /2 − θ , (13)
to be compared with a main term of size τ k \tau^k τ k . For k = 1 k=1 k = 1 this error is ( log x ) − θ → 0 (\log x)^{-\theta}\to0 ( log x ) − θ → 0 , which is exactly the estimate used in the proof of Claim 2. For every k ≥ 2 k\ge2 k ≥ 2 , however, the exponent is ( k − 1 ) / 2 − θ ≥ 1 / 2 − θ > 0 (k-1)/2-\theta\ge1/2-\theta>0 ( k − 1 ) /2 − θ ≥ 1/2 − θ > 0 , since θ ≤ 1 / 4 \theta\le1/4 θ ≤ 1/4 by Input B, so the error bound tends to infinity and the naive comparison fails already for the second moment, whatever the value of τ \tau τ . To make it work one would need to know how Δ \Delta Δ correlates with E R E_R E R , that is, a version of Hypothesis U ( k ) U(k) U ( k ) for each class separately. The coupling argument avoids this altogether: it only uses the first moment of # ( Δ ∩ ( n , n + y ] ) \#(\Delta\cap(n,n+y]) # ( Δ ∩ ( n , n + y ]) , and since the event Y x C = Y x R Y_x^C=Y_x^R Y x C = Y x R has probability tending to 1, the full Poisson distribution transfers for free.
With this reduction in hand, we turn to Theorem 1.2. Henceforth we will always drop the subscript R R R and write E : = E R E:=E_R E := E R , N ( x ) : = N R ( x ) N(x):=N_R(x) N ( x ) := N R ( x ) , and so on, for the fixed genus under discussion.
k-point correlations and the singular series
In this section we state Hypothesis U ( k ) U(k) U ( k ) , the input on which Theorem 1.2 is conditional. It asserts that the k k k -point correlations of E E E are governed by a singular series built from local densities, in the spirit of the Hardy–Littlewood prime k k k -tuple conjecture. Throughout this section, unless otherwise stated, R R R is a fixed genus of discriminant d < 0 d<0 d < 0 , and E = E R E=E_R E = E R and N ( x ) = N R ( x ) N(x)=N_R(x) N ( x ) = N R ( x ) as at the end of §3.
To measure how likely it is that several integers n + h 1 , … , n + h k n+h_1,\ldots,n+h_k n + h 1 , … , n + h k are simultaneously represented, we count the corresponding values of n n n . This motivates the following definition.
Definition 4.1 (k k k -point correlation). For k ≥ 1 k\ge1 k ≥ 1 and a finite set h = { h 1 , … , h k } ⊂ Z \mathbf{h}=\{h_1,\ldots,h_k\}\subset\mathbb{Z} h = { h 1 , … , h k } ⊂ Z of distinct integers, the k k k -point correlation is:
ρ k ( h ; x ) : = 1 x ∑ 1 ≤ n ≤ x 1 E ( n + h 1 ) ⋯ 1 E ( n + h k ) , ρ 1 ( x ) : = ρ 1 ( { 0 } ; x ) = N ( x ) x . (14) \rho_k(\mathbf{h};x):=\frac{1}{x}\sum_{1\le n\le x}1_E(n+h_1)\cdots1_E(n+h_k),\qquad\rho_1(x):=\rho_1(\{0\};x)=\frac{N(x)}{x}. \tag*{(14)} ρ k ( h ; x ) := x 1 1 ≤ n ≤ x ∑ 1 E ( n + h 1 ) ⋯ 1 E ( n + h k ) , ρ 1 ( x ) := ρ 1 ({ 0 } ; x ) = x N ( x ) . (14)
Remark 4.2. Our terminology follows [6 ] , where the analogous quantity R k ( h ; x ) R_k(\mathbf{h};x) R k ( h ; x ) is called the correlation function. This terminology comes from statistical mechanics and the study of spectral statistics, which is the setting of [6 ] : there the sums of two squares arise as the energy levels of the square billiard.
For a prime p p p , let S p : = S p ( R ) ⊂ Z p S_p:=S_p^{(R)}\subset\mathbb{Z}_p S p := S p ( R ) ⊂ Z p denote the set of values represented, over Z p \mathbb{Z}_p Z p , by (any form in) R R R ; this is well defined since forms in the same genus are Z p \mathbb{Z}_p Z p -equivalent at every p p p . As the continuous image of the compact set Z p 2 \mathbb{Z}_p^2 Z p 2 under a polynomial map, S p S_p S p is compact, hence closed and Haar-measurable. This motivates the following definition.
Definition 4.3 (Local density). For a prime p p p and a finite set h ⊂ Z \mathbf{h}\subset\mathbb{Z} h ⊂ Z of distinct integers, the local density is:
δ h ( p ) : = μ p ( ⋂ i ( S p − h i ) ) . (15) \delta_{\mathbf{h}}(p):=\mu_p\left(\bigcap_i(S_p-h_i)\right). \tag*{(15)} δ h ( p ) := μ p ( i ⋂ ( S p − h i ) ) . (15)
For h = { 0 } \mathbf{h}=\{0\} h = { 0 } this is μ p ( S p ) \mu_p(S_p) μ p ( S p ) . For instance, if d = − 3 d=-3 d = − 3 and R R R is the genus of x 2 + x y + y 2 x^2+xy+y^2 x 2 + x y + y 2 , then S 3 S_3 S 3 contains no element congruent to 2 modulo 3, so the translates S 3 S_3 S 3 , S 3 − 1 S_3-1 S 3 − 1 , S 3 − 2 S_3-2 S 3 − 2 have empty intersection and δ { 0 , 1 , 2 } ( 3 ) = 0 \delta_{\{0,1,2\}}(3)=0 δ { 0 , 1 , 2 } ( 3 ) = 0 . We will compute S p S_p S p exactly, at every prime, in §5–§6; knowing S p S_p S p explicitly then immediately shows how a truncated approximation to δ h ( p ) \delta_{\mathbf{h}}(p) δ h ( p ) converges to it.
In §7 we will average the singular series over h \mathbf{h} h by approximating it with a finite Euler product, truncated at primes p ≤ Y p\le Y p ≤ Y , whose factors are periodic in h \mathbf{h} h . For this we need a finite-level version of the local densities. This motivates the following definition.
Definition 4.4 (Truncated density). For α ≥ 1 \alpha\ge1 α ≥ 1 and a tuple h = ( h 1 , … , h k ) ∈ Z k \mathbf{h}=(h_1,\ldots,h_k)\in\mathbb{Z}^k h = ( h 1 , … , h k ) ∈ Z k , whose entries need not be distinct, the truncated density is:
δ h ( α ) ( p ) : = p − α # { 0 ≤ a < p α : a + h i ∈ S p ( m o d p α ) ∀ i } . (16) \delta_{\mathbf{h}}^{(\alpha)}(p):=p^{-\alpha}\#\left\{0\le a<p^\alpha:\ a+h_i\in S_p\pmod{p^\alpha}\ \forall i\right\}. \tag*{(16)} δ h ( α ) ( p ) := p − α # { 0 ≤ a < p α : a + h i ∈ S p ( mod p α ) ∀ i } . (16)
Thus δ h ( α ) ( p ) \delta_{\mathbf{h}}^{(\alpha)}(p) δ h ( α ) ( p ) asks that the reduction of a + h i a+h_i a + h i modulo p α p^\alpha p α lie in the reduction of S p S_p S p modulo p α p^\alpha p α , for each i i i separately. Repeated entries are allowed because in § 7 we average over all of ( Z / p α Z ) k (\mathbb{Z}/p^\alpha\mathbb{Z})^k ( Z / p α Z ) k ; when the entries are distinct we identify h \mathbf{h} h with the underlying set, which is harmless since the definition does not depend on their order. We now assemble the local densities into the singular series.
:::
Definition 4.5 (Singular series). For a finite set h ⊂ Z \mathbf{h}\subset\mathbb{Z} h ⊂ Z of k k k distinct integers, the singular series is:
S h : = ∏ p λ h ( p ) , λ h ( p ) : = δ h ( p ) δ { 0 } ( p ) k . (17) \mathfrak{S}_{\mathbf{h}}:=\prod_p\lambda_{\mathbf{h}}(p),\qquad\lambda_{\mathbf{h}}(p):=\frac{\delta_{\mathbf{h}}(p)}{\delta_{\{0\}}(p)^k}. \tag*{(17)} S h := p ∏ λ h ( p ) , λ h ( p ) := δ { 0 } ( p ) k δ h ( p ) . (17)
By § 5 , we have δ { 0 } ( p ) = 1 \delta_{\{0\}}(p)=1 δ { 0 } ( p ) = 1 for every odd split prime p ∤ d p\nmid d p ∤ d , so λ h ( p ) = 1 \lambda_{\mathbf{h}}(p)=1 λ h ( p ) = 1 there for every h \mathbf{h} h (§ 5 also shows δ h ( p ) = 1 \delta_{\mathbf{h}}(p)=1 δ h ( p ) = 1 identically at split primes). Thus the only primes contributing a factor other than 1 are the odd inert primes (χ d ( p ) = − 1 \chi_d(p)=-1 χ d ( p ) = − 1 , automatically p ∤ d p\nmid d p ∤ d by definition of χ d \chi_d χ d ) together with the (finitely many, for fixed d d d ) primes dividing d d d and p = 2 p=2 p = 2 . Convergence of the infinite product defining S h \mathfrak{S}_{\mathbf{h}} S h is established in § 7 . For instance, for the tuple h = { 0 , 1 , 2 } \mathbf{h}=\{0,1,2\} h = { 0 , 1 , 2 } and d = − 3 d=-3 d = − 3 considered above we have δ h ( 3 ) = 0 \delta_{\mathbf{h}}(3)=0 δ h ( 3 ) = 0 , so the factor at p = 3 p=3 p = 3 vanishes and S h = 0 \mathfrak{S}_{\mathbf{h}}=0 S h = 0 . We call h \mathbf{h} h inadmissible if S h = 0 \mathfrak{S}_{\mathbf{h}}=0 S h = 0 . For an inadmissible h \mathbf{h} h , no n n n has n + h 1 , … , n + h k n+h_1,\ldots,n+h_k n + h 1 , … , n + h k all in E E E .
We are now in a position to state the hypothesis.
Hypothesis U(k). Fix k ≥ 1 k\ge1 k ≥ 1 . For every fixed C > 0 C>0 C > 0 :
max h ∣ ρ k ( h ; x ) ρ 1 ( x ) k − S h ∣ ⟶ 0 ( x → ∞ ) , (18) \max_{\mathbf{h}}\left|\frac{\rho_k(\mathbf{h};x)}{\rho_1(x)^k}-\mathfrak{S}_{\mathbf{h}}\right|\longrightarrow0\qquad(x\to\infty), \tag*{(18)} h max ρ 1 ( x ) k ρ k ( h ; x ) − S h ⟶ 0 ( x → ∞ ) , (18) the maximum being over all sets h ⊂ ( 0 , C log x ] ∩ Z \mathbf{h}\subset(0,C\sqrt{\log x}]\cap\mathbb{Z} h ⊂ ( 0 , C log x ] ∩ Z of k k k distinct integers.
This is the uniform Hardy–Littlewood-type hypothesis on which Theorem 1.2 is conditional. It asserts that simultaneous representation of n + h 1 , … , n + h k n+h_1,\ldots,n+h_k n + h 1 , … , n + h k behaves, to leading order, like k k k independent events each of probability ρ 1 ( x ) \rho_1(x) ρ 1 ( x ) , corrected by the local singular series, and that this holds not just for a fixed tuple but uniformly as the tuple ranges over an interval growing with x x x .
Local densities at odd primes
In this section we compute S p S_p S p and δ { 0 } ( p ) \delta_{\{0\}}(p) δ { 0 } ( p ) exactly at every odd prime p p p , together with the bounds on δ h ( p ) \delta_{\mathbf{h}}(p) δ h ( p ) needed in § 7 ; apart from two standard facts quoted from [5 ] and [10 ] , the treatment is self-contained. Fix an odd prime p p p . By Lemma 5.1 below, completing the square identifies S p S_p S p , up to a measure-preserving unit rescaling, with the image of the single quadratic map Q ( X , Y ) = X 2 − d Y 2 Q(X,Y)=X^2-dY^2 Q ( X , Y ) = X 2 − d Y 2 . The type of p p p — split, inert, or dividing d d d — corresponds to whether Q Q Q , reduced mod p p p , is isotropic, anisotropic, or degenerate, and this trichotomy is all that is needed to compute S p S_p S p exactly via one recursive mechanism.
Setup: completing the square
Lemma 5.1 (Leading coefficient; see [5 Lemmas 2.3 and 2.25] ). Every primitive form of discriminant d d d is properly equivalent to one with leading coefficient prime to any given prime p p p .
Fix such a representative f = a x 2 + b x y + c y 2 ∈ R f=ax^2+bxy+cy^2\in R f = a x 2 + b x y + c y 2 ∈ R , p ∤ a p\nmid a p ∤ a . Since p p p is odd, 2 a 2a 2 a is a unit, and completing the square gives:
4 a ⋅ f ( x , y ) = ( 2 a x + b y ) 2 − d y 2 . (19) 4a\cdot f(x,y)=(2ax+by)^2-dy^2. \tag*{(19)} 4 a ⋅ f ( x , y ) = ( 2 a x + b y ) 2 − d y 2 . (19)
Notice that the map ( x , y ) ↦ ( X , Y ) = ( 2 a x + b y , y ) (x,y)\mapsto(X,Y)=(2ax+by,y) ( x , y ) ↦ ( X , Y ) = ( 2 a x + b y , y ) is a bijection Z p 2 → Z p 2 \mathbb{Z}_p^2\to\mathbb{Z}_p^2 Z p 2 → Z p 2 (invert via y = Y y=Y y = Y , x = ( X − b Y ) / ( 2 a ) x=(X-bY)/(2a) x = ( X − bY ) / ( 2 a ) ), so that:
4 a ⋅ S p = T p : = { X 2 − d Y 2 : X , Y ∈ Z p } . (20) 4a\cdot S_p=T_p:=\{X^2-dY^2:X,Y\in\mathbb{Z}_p\}. \tag*{(20)} 4 a ⋅ S p = T p := { X 2 − d Y 2 : X , Y ∈ Z p } . (20)
Since 4 a 4a 4 a is a unit, this rescaling preserves Haar measure exactly at every finite level: for any α \alpha α , the map n ↦ 4 a n m o d p α n \mapsto4an \bmod p^\alpha n ↦ 4 an mod p α is a bijection of Z / p α Z \mathbb{Z}/p^\alpha\mathbb{Z} Z / p α Z , so # ( A m o d p α ) = # ( 4 a A m o d p α ) \#(A \bmod p^\alpha) = \#(4aA \bmod p^\alpha) # ( A mod p α ) = # ( 4 a A mod p α ) for any set A A A , and taking α → ∞ \alpha\to\infty α → ∞ we get μ p ( S p ) = μ p ( T p ) \mu_p(S_p) = \mu_p(T_p) μ p ( S p ) = μ p ( T p ) . It therefore suffices to compute T p T_p T p .
We will repeatedly need the following classical description of the squares of p p p -adic units, which is where the prime 2 first differs from the odd primes.
Lemma 5.2 (Squares of units; see [10 Ch. II, §3.3, Theorems 3 and 4] ). Let u ∈ Z p × u \in\mathbb{Z}_p^\times u ∈ Z p × . If p p p is odd, then u u u is a square in Z p \mathbb{Z}_p Z p if and only if it is a square modulo p p p , so that ( Z p × ) 2 (\mathbb{Z}_p^\times)^2 ( Z p × ) 2 has index 2 in Z p × \mathbb{Z}_p^\times Z p × . If p = 2 p = 2 p = 2 , then u u u is a square if and only if u ≡ 1 ( m o d 8 ) u \equiv1 \pmod{8} u ≡ 1 ( mod 8 ) , so that ( Z 2 × ) 2 = 1 + 8 Z 2 (\mathbb{Z}_2^\times)^2 = 1 + 8\mathbb{Z}_2 ( Z 2 × ) 2 = 1 + 8 Z 2 has index 4 in Z 2 × \mathbb{Z}_2^\times Z 2 × .
We will not prove this here; a detailed treatment can be found in [10 Ch. II, §3.3] . For odd p p p it follows directly from Hensel’s lemma, and the case p = 2 p = 2 p = 2 will only be needed in §6.
The nonsingular case
Lemma 5.3 (Nonsingular resolution). Let ( X 0 , Y 0 ) ∈ Z p 2 (X_0, Y_0) \in\mathbb{Z}_p^2 ( X 0 , Y 0 ) ∈ Z p 2 with ∇ Q ( X 0 , Y 0 ) = ( 2 X 0 , − 2 d Y 0 ) ≢ ( 0 , 0 ) ( m o d p ) \nabla Q(X_0, Y_0) = (2X_0, -2dY_0) \not\equiv(0, 0) \pmod{p} ∇ Q ( X 0 , Y 0 ) = ( 2 X 0 , − 2 d Y 0 ) ≡ ( 0 , 0 ) ( mod p ) , and set m : = Q ( X 0 , Y 0 ) ∈ Z p m := Q(X_0, Y_0) \in\mathbb{Z}_p m := Q ( X 0 , Y 0 ) ∈ Z p . Then for every m ′ ∈ m + p Z p m' \in m + p\mathbb{Z}_p m ′ ∈ m + p Z p the following holds. If 2 X 0 ≢ 0 ( m o d p ) 2X_0 \not\equiv0 \pmod{p} 2 X 0 ≡ 0 ( mod p ) , there is a unique X ≡ X 0 ( m o d p ) X \equiv X_0 \pmod{p} X ≡ X 0 ( mod p ) with Q ( X , Y 0 ) = m ′ Q(X, Y_0) = m' Q ( X , Y 0 ) = m ′ . Similarly, if 2 d Y 0 ≢ 0 ( m o d p ) 2dY_0 \not\equiv0 \pmod{p} 2 d Y 0 ≡ 0 ( mod p ) , there is a unique Y ≡ Y 0 ( m o d p ) Y \equiv Y_0 \pmod{p} Y ≡ Y 0 ( mod p ) with Q ( X 0 , Y ) = m ′ Q(X_0, Y) = m' Q ( X 0 , Y ) = m ′ .
In other words, if m m m is represented by Q Q Q at a nonsingular point, then the whole residue class m + p Z p m + p\mathbb{Z}_p m + p Z p is contained in T p T_p T p .
The experienced reader will recognize Lemma 5.3 as nothing more than Hensel’s lemma [10 Ch. II, §2.2] , applied to the one-variable polynomial Q ( X , Y 0 ) − m ′ Q(X, Y_0) - m' Q ( X , Y 0 ) − m ′ obtained by fixing Y = Y 0 Y = Y_0 Y = Y 0 (respectively to Q ( X 0 , Y ) − m ′ Q(X_0, Y) - m' Q ( X 0 , Y ) − m ′ , fixing X = X 0 X = X_0 X = X 0 ). We nevertheless include a proof, since in this case it is particularly transparent: we run Newton’s method for the quadratic polynomial g ( X ) = Q ( X , Y 0 ) g(X) = Q(X, Y_0) g ( X ) = Q ( X , Y 0 ) , starting from X 0 X_0 X 0 , and observe that, since g g g is quadratic, its Taylor expansion is exact, so that the precision doubles at every step.
Proof. Say 2 X 0 ≢ 0 ( m o d p ) 2X_0 \not\equiv0 \pmod{p} 2 X 0 ≡ 0 ( mod p ) (the case 2 d Y 0 ≢ 0 2dY_0 \not\equiv0 2 d Y 0 ≡ 0 is similar, with − d -d − d in place of the leading coefficient 1). Fix Y = Y 0 Y = Y_0 Y = Y 0 and set g ( X ) : = Q ( X , Y 0 ) g(X) := Q(X, Y_0) g ( X ) := Q ( X , Y 0 ) , so that g ′ ( X 0 ) = 2 X 0 ∈ Z p × g'(X_0) = 2X_0 \in\mathbb{Z}_p^\times g ′ ( X 0 ) = 2 X 0 ∈ Z p × . Given m ′ ∈ m + p Z p m' \in m + p\mathbb{Z}_p m ′ ∈ m + p Z p , define a sequence by:
X 0 (given) , X n + 1 : = X n − g ( X n ) − m ′ g ′ ( X n ) . (21) X_0\text{ (given)},\qquad X_{n+1} := X_n - \frac{g(X_n)-m'}{g'(X_n)}. \tag*{(21)} X 0 (given) , X n + 1 := X n − g ′ ( X n ) g ( X n ) − m ′ . (21)
Since g g g is quadratic with leading coefficient 1, its Taylor expansion around any point terminates exactly at the quadratic term, with no remainder: g ( X n + 1 ) = g ( X n ) + g ′ ( X n ) ( X n + 1 − X n ) + ( X n + 1 − X n ) 2 g(X_{n+1}) = g(X_n) + g'(X_n)(X_{n+1} - X_n) + (X_{n+1} - X_n)^2 g ( X n + 1 ) = g ( X n ) + g ′ ( X n ) ( X n + 1 − X n ) + ( X n + 1 − X n ) 2 . By definition of X n + 1 X_{n+1} X n + 1 , the first two terms on the right cancel − ( g ( X n ) − m ′ ) -(g(X_n) - m') − ( g ( X n ) − m ′ ) , leaving the exact identity:
g ( X n + 1 ) − m ′ = ( X n + 1 − X n ) 2 . (22) g(X_{n+1}) - m' = (X_{n+1} - X_n)^2. \tag*{(22)} g ( X n + 1 ) − m ′ = ( X n + 1 − X n ) 2 . (22)
Claim 1: We have X n ≡ X 0 ( m o d p ) X_n \equiv X_0 \pmod{p} X n ≡ X 0 ( mod p ) and β n : = v p ( g ( X n ) − m ′ ) ≥ 2 n \beta_n := v_p(g(X_n) - m') \ge2^n β n := v p ( g ( X n ) − m ′ ) ≥ 2 n , for every n ≥ 0 n \ge0 n ≥ 0 .
Proof of Claim 1: We argue by induction on n n n . For the base case, X 0 X_0 X 0 is given, and β 0 = v p ( Q ( X 0 , Y 0 ) − m ′ ) = v p ( m − m ′ ) ≥ 1 \beta_0 = v_p(Q(X_0, Y_0) - m') = v_p(m - m') \ge1 β 0 = v p ( Q ( X 0 , Y 0 ) − m ′ ) = v p ( m − m ′ ) ≥ 1 since m ′ ∈ m + p Z p m' \in m + p\mathbb{Z}_p m ′ ∈ m + p Z p . For the inductive step, assume the claim at n n n . Then g ′ ( X n ) = 2 X n g'(X_n) = 2X_n g ′ ( X n ) = 2 X n is a unit (as p p p is odd and X n ≡ X 0 ( m o d p ) X_n \equiv X_0 \pmod{p} X n ≡ X 0 ( mod p ) ), so v p ( X n + 1 − X n ) = β n − v p ( g ′ ( X n ) ) = β n ≥ 2 n ≥ 1 v_p(X_{n+1} - X_n) = \beta_n - v_p(g'(X_n)) = \beta_n \ge2^n \ge1 v p ( X n + 1 − X n ) = β n − v p ( g ′ ( X n )) = β n ≥ 2 n ≥ 1 . This gives X n + 1 ≡ X n ≡ X 0 ( m o d p ) X_{n+1} \equiv X_n \equiv X_0 \pmod{p} X n + 1 ≡ X n ≡ X 0 ( mod p ) . Moreover, the exact identity above gives β n + 1 = 2 v p ( X n + 1 − X n ) = 2 β n ≥ 2 n + 1 \beta_{n+1} = 2v_p(X_{n+1} - X_n) = 2\beta_n \ge2^{n+1} β n + 1 = 2 v p ( X n + 1 − X n ) = 2 β n ≥ 2 n + 1 , which closes the induction. This proves Claim 1.
We now put Claim 1 to work. It gives β n → ∞ \beta_n \to\infty β n → ∞ , that is, v p ( X n + 1 − X n ) → ∞ v_p(X_{n+1} - X_n) \to\infty v p ( X n + 1 − X n ) → ∞ , so the sequence is Cauchy and converges to some X ∈ Z p X \in\mathbb{Z}_p X ∈ Z p , with X ≡ X 0 ( m o d p ) X \equiv X_0 \pmod{p} X ≡ X 0 ( mod p ) since this holds for every X n X_n X n . Continuity then gives:
g ( X ) − m ′ = lim n ( g ( X n ) − m ′ ) = 0. (23) g(X) - m' = \lim_{n} (g(X_n) - m') = 0. \tag*{(23)} g ( X ) − m ′ = n lim ( g ( X n ) − m ′ ) = 0. (23)
This proves existence.
Claim 2: The solution X X X is unique among the elements X ≡ X 0 ( m o d p ) X \equiv X_0 \pmod{p} X ≡ X 0 ( mod p ) .
Proof of Claim 2: Suppose X ′ ≡ X 0 ( m o d p ) X' \equiv X_0 \pmod{p} X ′ ≡ X 0 ( mod p ) also satisfies g ( X ′ ) = m ′ g(X') = m' g ( X ′ ) = m ′ . Then:
0 = g ( X ) − g ( X ′ ) = X 2 − X ′ 2 = ( X − X ′ ) ( X + X ′ ) . (24) 0 = g(X) - g(X') = X^2 - X'^2 = (X - X')(X + X'). \tag*{(24)} 0 = g ( X ) − g ( X ′ ) = X 2 − X ′2 = ( X − X ′ ) ( X + X ′ ) . (24)
Since X + X ′ ≡ 2 X 0 ( m o d p ) X + X' \equiv2X_0 \pmod{p} X + X ′ ≡ 2 X 0 ( mod p ) is a unit (the nonsingularity hypothesis), hence nonzero, it must be the case that X = X ′ X = X' X = X ′ . This proves Claim 2 and completes the proof of the lemma.
Remark 5.4 (Higher precision). The lemma can be sharpened: if m ′ ∈ m + p α Z p m' \in m + p^{\alpha}\mathbb{Z}_p m ′ ∈ m + p α Z p for some α ≥ 1 \alpha\ge1 α ≥ 1 , then the same argument, with the bound β n ≥ α ⋅ 2 n \beta_n \ge\alpha\cdot2^n β n ≥ α ⋅ 2 n in Claim 1 above, shows that the solution satisfies X ≡ X 0 ( m o d p α ) X \equiv X_0 \pmod{p^\alpha} X ≡ X 0 ( mod p α ) (respectively Y ≡ Y 0 ( m o d p α ) Y \equiv Y_0 \pmod{p^\alpha} Y ≡ Y 0 ( mod p α ) ). In other words, values close to m m m are represented at points close to ( X 0 , Y 0 ) (X_0,Y_0) ( X 0 , Y 0 ) . We will not need this improved precision, since only the representation of the class m + p Z p m + p\mathbb{Z}_p m + p Z p is used below.
The trichotomy mod p p p
The form Q ( X , Y ) = X 2 − d Y 2 ( m o d p ) Q(X,Y) = X^2 - dY^2 \pmod p Q ( X , Y ) = X 2 − d Y 2 ( mod p ) is a binary quadratic form over F p \mathbb{F}_p F p , and its type is read off directly from χ d ( p ) \chi_d(p) χ d ( p ) :
χ d ( p ) = 1 \chi_d(p) = 1 χ d ( p ) = 1 (split): d d d is a nonzero square mod p p p , hence a square in Z p × \mathbb{Z}_p^\times Z p × by Lemma 5.2: d = s 2 d = s^2 d = s 2 . Then Q ( X , Y ) = ( X − s Y ) ( X + s Y ) = U V Q(X,Y) = (X - sY)(X + sY) = UV Q ( X , Y ) = ( X − s Y ) ( X + s Y ) = U V under the bijection ( X , Y ) ↦ ( U , V ) = ( X − s Y , X + s Y ) (X,Y) \mapsto(U,V) = (X - sY,X + sY) ( X , Y ) ↦ ( U , V ) = ( X − s Y , X + s Y ) (invertible over Z p \mathbb{Z}_p Z p since 2 , s 2,s 2 , s are units).
χ d ( p ) = − 1 \chi_d(p) = -1 χ d ( p ) = − 1 (inert): d d d is a non-square unit, and Q Q Q is anisotropic: Q ( X , Y ) ≡ 0 ( m o d p ) Q(X,Y) \equiv0 \pmod p Q ( X , Y ) ≡ 0 ( mod p ) forces X ≡ Y ≡ 0 ( m o d p ) X \equiv Y \equiv0 \pmod p X ≡ Y ≡ 0 ( mod p ) (else ( X / Y ) 2 ≡ d (X/Y)^2 \equiv d ( X / Y ) 2 ≡ d , contradicting that d d d is a non-square).
χ d ( p ) = 0 \chi_d(p) = 0 χ d ( p ) = 0 (p ∣ d p \mid d p ∣ d ): writing d = p e d 0 d = p^e d_0 d = p e d 0 (e = v p ( d ) ≥ 1 e = v_p(d) \ge1 e = v p ( d ) ≥ 1 , d 0 ∈ Z p × d_0 \in\mathbb{Z}_p^\times d 0 ∈ Z p × ), we have Q ( X , Y ) ≡ X 2 ( m o d p ) Q(X,Y) \equiv X^2 \pmod p Q ( X , Y ) ≡ X 2 ( mod p ) — degenerate, rank 1: the gradient’s second component − 2 d Y -2dY − 2 d Y vanishes mod p p p identically, for every Y Y Y , since p ∣ d p \mid d p ∣ d .
Split primes
Proposition 5.5 (Split primes). If χ d ( p ) = 1 \chi_d(p) = 1 χ d ( p ) = 1 , then T p = Z p T_p = \mathbb{Z}_p T p = Z p , so δ { 0 } ( p ) = 1 \delta_{\{0\}}(p) = 1 δ { 0 } ( p ) = 1 .
Proof. We have T p = { U V : U , V ∈ Z p } T_p = \{UV : U,V \in\mathbb{Z}_p\} T p = { U V : U , V ∈ Z p } . For any target m m m , take U = 1 U = 1 U = 1 and V = m V = m V = m .
Since S p = Z p S_p = \mathbb{Z}_p S p = Z p outright (Proposition 5.5), translating by any h i h_i h i leaves it unchanged: S p − h i = Z p S_p - h_i = \mathbb{Z}_p S p − h i = Z p . It follows that δ h ( p ) = 1 \delta_h(p) = 1 δ h ( p ) = 1 identically at split primes, for every h h h , not merely for h = { 0 } h = \{0\} h = { 0 } . There is nothing left to compute, and split primes never enter the singular series (§ 4 ) at all.
Inert primes
Proposition 5.6 (Inert primes). If χ d ( p ) = − 1 \chi_d(p) = -1 χ d ( p ) = − 1 , then T p = { 0 } ∪ { m : v p ( m ) even } T_p = \{0\} \cup\{m : v_p(m)\text{ even}\} T p = { 0 } ∪ { m : v p ( m ) even } , and δ { 0 } ( p ) = p / ( p + 1 ) \delta_{\{0\}}(p) = p/(p+1) δ { 0 } ( p ) = p / ( p + 1 ) .
Proof. Since Q Q Q is anisotropic mod p p p , Q ( X , Y ) ≡ 0 ( m o d p ) Q(X,Y) \equiv0 \pmod p Q ( X , Y ) ≡ 0 ( mod p ) forces X ≡ Y ≡ 0 ( m o d p ) X \equiv Y \equiv0 \pmod p X ≡ Y ≡ 0 ( mod p ) . Moreover, every representative of a target m ≢ 0 ( m o d p ) m \not\equiv0 \pmod p m ≡ 0 ( mod p ) is automatically nonsingular: if X ≡ Y ≡ 0 ( m o d p ) X \equiv Y \equiv0 \pmod p X ≡ Y ≡ 0 ( mod p ) then Q ( X , Y ) ≡ 0 ( m o d p ) Q(X,Y) \equiv0 \pmod p Q ( X , Y ) ≡ 0 ( mod p ) , so a representative of a unit target has ( X , Y ) ≢ ( 0 , 0 ) ( m o d p ) (X,Y) \not\equiv(0,0) \pmod p ( X , Y ) ≡ ( 0 , 0 ) ( mod p ) , and hence ∇ Q = ( 2 X , − 2 d Y ) ≢ 0 ( m o d p ) \nabla Q = (2X,-2dY) \not\equiv0 \pmod p ∇ Q = ( 2 X , − 2 d Y ) ≡ 0 ( mod p ) since p ∤ 2 d p \nmid2d p ∤ 2 d . A nondegenerate binary quadratic form over F p \mathbb{F}_p F p represents every element of F p \mathbb{F}_p F p (a classical counting fact), so for every unit u u u there is a point ( X 0 , Y 0 ) (X_0,Y_0) ( X 0 , Y 0 ) with Q ( X 0 , Y 0 ) ≡ u ( m o d p ) Q(X_0,Y_0) \equiv u \pmod p Q ( X 0 , Y 0 ) ≡ u ( mod p ) , which is nonsingular by what we just showed. Lemma 5.3 then shows that the whole class Q ( X 0 , Y 0 ) + p Z p = u + p Z p Q(X_0,Y_0) + p\mathbb{Z}_p = u + p\mathbb{Z}_p Q ( X 0 , Y 0 ) + p Z p = u + p Z p is contained in T p T_p T p . Thus T p ⊇ Z p × T_p \supseteq\mathbb{Z}_p^\times T p ⊇ Z p × , with v p ( m ) = 0 v_p(m) = 0 v p ( m ) = 0 fully represented.
Now let v p ( m ) ≥ 1 v_p(m) \ge1 v p ( m ) ≥ 1 . Only singular representatives are possible (shown above), that is, X ≡ Y ≡ 0 ( m o d p ) X \equiv Y \equiv0 \pmod p X ≡ Y ≡ 0 ( mod p ) . Writing X = p X 1 X = pX_1 X = p X 1 and Y = p Y 1 Y = pY_1 Y = p Y 1 we get:
m = p 2 ( X 1 2 − d Y 1 2 ) = p 2 Q ( X 1 , Y 1 ) . (25) m = p^2(X_1^2-dY_1^2) = p^2 Q(X_1,Y_1). \tag*{(25)} m = p 2 ( X 1 2 − d Y 1 2 ) = p 2 Q ( X 1 , Y 1 ) . (25)
This is the identical problem, with X 1 , Y 1 X_1,Y_1 X 1 , Y 1 ranging freely over Z p \mathbb{Z}_p Z p , and it gives the exact recursive identity:
T p = Z p × ∪ p 2 T p . (26) T_p = \mathbb{Z}_p^\times\cup p^2T_p. \tag*{(26)} T p = Z p × ∪ p 2 T p . (26)
Unrolling, we find T p = Z p × ∪ p 2 Z p × ∪ p 4 Z p × ∪ ⋯ ∪ { 0 } = { 0 } ∪ { v p even } T_p = \mathbb{Z}_p^\times\cup p^2\mathbb{Z}_p^\times\cup p^4\mathbb{Z}_p^\times\cup\cdots\cup\{0\} = \{0\} \cup\{v_p\text{ even}\} T p = Z p × ∪ p 2 Z p × ∪ p 4 Z p × ∪ ⋯ ∪ { 0 } = { 0 } ∪ { v p even } , which proves the set identity. Taking measures, μ : = μ p ( T p ) \mu:= \mu_p(T_p) μ := μ p ( T p ) satisfies μ = ( 1 − 1 / p ) + p − 2 μ \mu= (1 - 1/p) + p^{-2}\mu μ = ( 1 − 1/ p ) + p − 2 μ (using μ p ( p 2 T p ) = p − 2 μ p ( T p ) \mu_p(p^2T_p) = p^{-2}\mu_p(T_p) μ p ( p 2 T p ) = p − 2 μ p ( T p ) ), so that:
μ = 1 − 1 / p 1 − 1 / p 2 = 1 1 + 1 / p = p p + 1 . (27) \mu= \frac{1 - 1/p}{1 - 1/p^2} = \frac{1}{1 + 1/p} = \frac{p}{p+1}. \tag*{(27)} μ = 1 − 1/ p 2 1 − 1/ p = 1 + 1/ p 1 = p + 1 p . (27)
This completes the proof.
Primes dividing d d d
Write d = p e d 0 d = p^{e}d_0 d = p e d 0 , e = v p ( d ) ≥ 1 e = v_p(d) \ge1 e = v p ( d ) ≥ 1 , d 0 ∈ Z p × d_0 \in\mathbb{Z}_p^{\times} d 0 ∈ Z p × . The idea is again to separate the nonsingular representatives from the singular ones, which give back the same type of problem with the exponent e e e lowered by 2. This produces a recursion in e e e , whose base cases are e = 0 e = 0 e = 0 , already treated in §5.4 and §5.5, and e = 1 e = 1 e = 1 , which we treat directly.
For notational convenience we keep d 0 d_0 d 0 fixed and introduce, for every integer e ′ ≥ 0 e' \ge0 e ′ ≥ 0 , the set:
T p ( e ′ ) : = { X 2 − p e ′ d 0 Y 2 : X , Y ∈ Z p } , (28) T_p^{(e')} := \{X^2-p^{e'}d_0Y^2 : X,Y\in\mathbb{Z}_p\}, \tag*{(28)} T p ( e ′ ) := { X 2 − p e ′ d 0 Y 2 : X , Y ∈ Z p } , (28)
so that T p = T p ( e ) T_p=T_p^{(e)} T p = T p ( e ) . The set T p ( 0 ) T_p^{(0)} T p ( 0 ) is the value set of the form X 2 − d 0 Y 2 X^2-d_0Y^2 X 2 − d 0 Y 2 with p ∤ d 0 p\nmid d_0 p ∤ d 0 , which is described by Proposition 5.5 if ( d 0 p ) = 1 \left(\frac{d_0}{p}\right)=1 ( p d 0 ) = 1 and by Proposition 5.6 if ( d 0 p ) = − 1 \left(\frac{d_0}{p}\right)=-1 ( p d 0 ) = − 1 .
We start with the nonsingular representatives. Since p ∣ p e ′ d 0 p\mid p^{e'}d_0 p ∣ p e ′ d 0 for e ′ ≥ 1 e'\ge1 e ′ ≥ 1 , the second component of the gradient vanishes modulo p p p for every Y Y Y , so nonsingularity reduces to X ≢ 0 ( m o d p ) X\not\equiv0\pmod p X ≡ 0 ( mod p ) , with Y Y Y entirely unconstrained.
Lemma 5.7 (Nonsingular values). Let e ′ ≥ 1 e'\ge1 e ′ ≥ 1 . The values X 2 − p e ′ d 0 Y 2 X^2-p^{e'}d_0Y^2 X 2 − p e ′ d 0 Y 2 with X ∈ Z p × X\in\mathbb{Z}_p^{\times} X ∈ Z p × and Y ∈ Z p Y\in\mathbb{Z}_p Y ∈ Z p are exactly the units that are squares modulo p p p . In particular, they form a set of measure 1 2 ( 1 − 1 p ) \frac{1}{2}\left(1-\frac{1}{p}\right) 2 1 ( 1 − p 1 ) .
Proof. If X X X is a unit, then v p ( p e ′ d 0 Y 2 ) ≥ e ′ ≥ 1 v_p(p^{e'}d_0Y^2)\ge e'\ge1 v p ( p e ′ d 0 Y 2 ) ≥ e ′ ≥ 1 , so X 2 − p e ′ d 0 Y 2 ≡ X 2 ( m o d p ) X^2-p^{e'}d_0Y^2\equiv X^2\pmod p X 2 − p e ′ d 0 Y 2 ≡ X 2 ( mod p ) is a unit that is a square modulo p p p . Conversely, if u u u is a unit that is a square modulo p p p , then it is a square in Z p \mathbb{Z}_p Z p by Lemma 5.2, and u = ( u ) 2 − p e ′ d 0 ⋅ 0 2 u=(\sqrt{u})^2-p^{e'}d_0\cdot0^2 u = ( u ) 2 − p e ′ d 0 ⋅ 0 2 with u \sqrt{u} u a unit. Finally, the units that are squares modulo p p p make up ( p − 1 ) / 2 (p-1)/2 ( p − 1 ) /2 of the p p p residue classes modulo p p p , which gives the measure.
Note that the set in Lemma 5.7 depends neither on e ′ e' e ′ nor on d 0 d_0 d 0 . We now treat the base case e = 1 e=1 e = 1 , where the singular representatives can be handled directly. The core idea is that the valuations of the two terms X 2 X^2 X 2 and p d 0 Y 2 pd_0Y^2 p d 0 Y 2 never coincide, so that no cancellation can occur.
Lemma 5.8 (The case e = 1 e=1 e = 1 ). Let m = p j u m=p^ju m = p j u with j ≥ 0 j\ge0 j ≥ 0 and u ∈ Z p × u\in\mathbb{Z}_p^{\times} u ∈ Z p × . Then m ∈ T p ( 1 ) m\in T_p^{(1)} m ∈ T p ( 1 ) if and only if either j j j is even and u u u is a square modulo p p p , or j j j is odd and − u / d 0 -u/d_0 − u / d 0 is a square modulo p p p . In particular, whether m m m lies in T p ( 1 ) T_p^{(1)} T p ( 1 ) depends only on j j j and on u u u mod p p p , and μ p ( T p ( 1 ) ) = 1 2 \mu_p(T_p^{(1)})=\frac12 μ p ( T p ( 1 ) ) = 2 1 .
Proof. Write Q ( X , Y ) : = X 2 − p d 0 Y 2 Q(X,Y):=X^2-pd_0Y^2 Q ( X , Y ) := X 2 − p d 0 Y 2 . Since v p ( X 2 ) v_p(X^2) v p ( X 2 ) is always even and v p ( p d 0 Y 2 ) = 1 + 2 v p ( Y ) v_p(pd_0Y^2)=1+2v_p(Y) v p ( p d 0 Y 2 ) = 1 + 2 v p ( Y ) is always odd, these valuations can never coincide, and hence:
v p ( Q ( X , Y ) ) = min ( 2 v p ( X ) , 1 + 2 v p ( Y ) ) ( ( X , Y ) ≠ ( 0 , 0 ) ) . (29) v_p(Q(X,Y))=\min\left(2v_p(X),1+2v_p(Y)\right)\qquad((X,Y)\ne(0,0)). \tag*{(29)} v p ( Q ( X , Y )) = min ( 2 v p ( X ) , 1 + 2 v p ( Y ) ) (( X , Y ) = ( 0 , 0 )) . (29)
Assume first that j = 2 s j=2s j = 2 s is even. A representation Q ( X , Y ) = m Q(X,Y)=m Q ( X , Y ) = m forces v p ( X ) = s v_p(X)=s v p ( X ) = s and v p ( Y ) ≥ s v_p(Y)\ge s v p ( Y ) ≥ s , so that u = X 0 2 − p d 0 Y 1 2 ≡ X 0 2 ( m o d p ) u=X_0^2-pd_0Y_1^2\equiv X_0^2\pmod p u = X 0 2 − p d 0 Y 1 2 ≡ X 0 2 ( mod p ) with X 0 : = X / p s X_0:=X/p^s X 0 := X / p s and Y 1 : = Y / p s Y_1:=Y/p^s Y 1 := Y / p s . Hence u u u is a square modulo p p p . Conversely, if u u u is a square modulo p p p , then it is a square in Z p \mathbb{Z}_p Z p by Lemma 5.2, and ( X , Y ) = ( p s u , 0 ) (X,Y)=(p^s\sqrt{u},0) ( X , Y ) = ( p s u , 0 ) represents m m m .
Now assume that j = 2 s + 1 j=2s+1 j = 2 s + 1 is odd. A representation forces v p ( Y ) = s v_p(Y)=s v p ( Y ) = s and v p ( X ) > s + 1 v_p(X)>s+1 v p ( X ) > s + 1 , so that u = p X 1 2 − d 0 Y 0 2 ≡ − d 0 Y 0 2 ( m o d p ) u=pX_1^2-d_0Y_0^2\equiv-d_0Y_0^2\pmod p u = p X 1 2 − d 0 Y 0 2 ≡ − d 0 Y 0 2 ( mod p ) with X 1 : = X / p s + 1 X_1:=X/p^{s+1} X 1 := X / p s + 1 and Y 0 : = Y / p s Y_0:=Y/p^s Y 0 := Y / p s , and hence − u / d 0 -u/d_0 − u / d 0 is a square modulo p p p . Conversely, if − u / d 0 -u/d_0 − u / d 0 is a square modulo p p p , then it is a square in Z p \mathbb{Z}_p Z p , again by Lemma 5.2, and ( X , Y ) = ( 0 , p s − u / d 0 ) (X,Y)=(0,p^s\sqrt{-u/d_0}) ( X , Y ) = ( 0 , p s − u / d 0 ) represents m m m .
For the measure, note that for each j j j the admissible units u u u form half of the units: the squares modulo p p p if j j j is even, and their image under multiplication by the unit − d 0 -d_0 − d 0 if j j j is odd. Since the elements of valuation exactly j j j form a set of measure ( 1 − 1 p ) p − j \left(1-\frac1p\right)p^{-j} ( 1 − p 1 ) p − j , we obtain:
μ p ( T p ( 1 ) ) = ∑ j ≥ 0 1 2 ( 1 − 1 p ) p − j = 1 2 . (30) \mu_p(T_p^{(1)})=\sum_{j\ge0}\frac12\left(1-\frac1p\right)p^{-j}=\frac12. \tag*{(30)} μ p ( T p ( 1 ) ) = j ≥ 0 ∑ 2 1 ( 1 − p 1 ) p − j = 2 1 . (30)
which completes the proof.
For e ≥ 2 e\ge2 e ≥ 2 the singular representatives lead back to a problem of the same type.
Lemma 5.9 (Recursion). For every e ′ ≥ 2 e' \ge2 e ′ ≥ 2 we have:
T p ( e ′ ) = { u ∈ Z p × : u is a square modulo p } ∪ p 2 T p ( e ′ − 2 ) , (31) T_p^{(e')} = \{u \in\mathbb{Z}_p^\times: u\text{ is a square modulo }p\} \cup p^2 T_p^{(e'-2)}, \tag*{(31)} T p ( e ′ ) = { u ∈ Z p × : u is a square modulo p } ∪ p 2 T p ( e ′ − 2 ) , (31) and the two sets on the right are disjoint.
Proof. By Lemma 5.7 , the values at points with p ∤ X p \nmid X p ∤ X form the first set. If p ∣ X p \mid X p ∣ X , write X = p X 1 X=pX_1 X = p X 1 . Then:
X 2 − p e ′ d 0 Y 2 = p 2 ( X 1 2 − p e ′ − 2 d 0 Y 2 ) , (32) X^2-p^{e'}d_0Y^2=p^2\left(X_1^2-p^{e'-2}d_0Y^2\right), \tag*{(32)} X 2 − p e ′ d 0 Y 2 = p 2 ( X 1 2 − p e ′ − 2 d 0 Y 2 ) , (32)
and as X 1 X_1 X 1 and Y Y Y range freely over Z p \mathbb{Z}_p Z p , these values form exactly p 2 T p ( e ′ − 2 ) p^2T_p^{(e'-2)} p 2 T p ( e ′ − 2 ) . The first set consists of units and the second of elements divisible by p 2 p^2 p 2 , so they are disjoint. This completes the proof.
Applying Lemma 5.9 ⌊ e / 2 ⌋ \lfloor e/2\rfloor ⌊ e /2 ⌋ times reduces T p ( e ) T_p^{(e)} T p ( e ) to T p ( 1 ) T_p^{(1)} T p ( 1 ) (Lemma 5.8 ) if e e e is odd, and to T p ( 0 ) T_p^{(0)} T p ( 0 ) (Proposition 5.5 or Proposition 5.6 ) if e e e is even. Writing μ ( e ′ ) : = μ p ( T p ( e ′ ) ) \mu(e'):=\mu_p(T_p^{(e')}) μ ( e ′ ) := μ p ( T p ( e ′ ) ) , Lemmas 5.7 and 5.9 give, for e ′ ≥ 2 e'\ge2 e ′ ≥ 2 :
μ ( e ′ ) = 1 2 ( 1 − 1 p ) + p − 2 μ ( e ′ − 2 ) . (33) \mu(e')=\frac{1}{2}\left(1-\frac{1}{p}\right)+p^{-2}\mu(e'-2). \tag*{(33)} μ ( e ′ ) = 2 1 ( 1 − p 1 ) + p − 2 μ ( e ′ − 2 ) . (33)
This recursion has fixed point L = p 2 ( p + 1 ) L=\frac{p}{2(p+1)} L = 2 ( p + 1 ) p , obtained by solving L = 1 2 ( 1 − 1 p ) + p − 2 L L=\frac{1}{2}\left(1-\frac{1}{p}\right)+p^{-2}L L = 2 1 ( 1 − p 1 ) + p − 2 L . Since μ ( e ′ ) − L = p − 2 ( μ ( e ′ − 2 ) − L ) \mu(e')-L=p^{-2}(\mu(e'-2)-L) μ ( e ′ ) − L = p − 2 ( μ ( e ′ − 2 ) − L ) , iterating gives:
μ ( e ) − L = p − 2 ⌊ e / 2 ⌋ ( μ ( e 0 ) − L ) , (34) \mu(e)-L=p^{-2\lfloor e/2\rfloor}(\mu(e_0)-L), \tag*{(34)} μ ( e ) − L = p − 2 ⌊ e /2 ⌋ ( μ ( e 0 ) − L ) , (34)
where e 0 ∈ { 0 , 1 } e_0\in\{0,1\} e 0 ∈ { 0 , 1 } is the parity-matched base exponent. Computing μ ( e 0 ) − L \mu(e_0)-L μ ( e 0 ) − L in each of the three cases yields the following three propositions.
Proposition 5.10 (Odd e e e ). If e ≥ 1 e\ge1 e ≥ 1 is odd, then:
δ { 0 } ( p ) = p 2 ( p + 1 ) + 1 2 ( p + 1 ) p − ( e − 1 ) . (35) \delta_{\{0\}}(p)=\frac{p}{2(p+1)}+\frac{1}{2(p+1)}p^{-(e-1)}. \tag*{(35)} δ { 0 } ( p ) = 2 ( p + 1 ) p + 2 ( p + 1 ) 1 p − ( e − 1 ) . (35)
Proposition 5.11 (Even e e e , split base: ( d 0 p ) = 1 \left(\frac{d_0}{p}\right)=1 ( p d 0 ) = 1 ). If e ≥ 2 e\ge2 e ≥ 2 is even and d 0 d_0 d 0 is a square mod p p p , then:
δ { 0 } ( p ) = p 2 ( p + 1 ) + p + 2 2 ( p + 1 ) p − e . (36) \delta_{\{0\}}(p)=\frac{p}{2(p+1)}+\frac{p+2}{2(p+1)}p^{-e}. \tag*{(36)} δ { 0 } ( p ) = 2 ( p + 1 ) p + 2 ( p + 1 ) p + 2 p − e . (36)
Proposition 5.12 (Even e e e , inert base: ( d 0 p ) = − 1 \left(\frac{d_0}{p}\right)=-1 ( p d 0 ) = − 1 ). If e ≥ 2 e\ge2 e ≥ 2 is even and d 0 d_0 d 0 is not a square mod p p p , then:
δ { 0 } ( p ) = p 2 ( p + 1 ) ( 1 + p − e ) . (37) \delta_{\{0\}}(p)=\frac{p}{2(p+1)}\left(1+p^{-e}\right). \tag*{(37)} δ { 0 } ( p ) = 2 ( p + 1 ) p ( 1 + p − e ) . (37)
Proof (of Propositions 5.10, 5.11, and 5.12). For e e e odd, Lemma 5.8 gives μ ( 1 ) − L = 1 2 − p 2 ( p + 1 ) = 1 2 ( p + 1 ) \mu(1)-L=\frac{1}{2}-\frac{p}{2(p+1)}=\frac{1}{2(p+1)} μ ( 1 ) − L = 2 1 − 2 ( p + 1 ) p = 2 ( p + 1 ) 1 , which gives Proposition 5.10 directly from μ ( e ) = L + p − ( e − 1 ) ( μ ( 1 ) − L ) \mu(e)=L+p^{-(e-1)}(\mu(1)-L) μ ( e ) = L + p − ( e − 1 ) ( μ ( 1 ) − L ) . For e e e even, we have μ ( 0 ) − L = 1 2 − p 2 ( p + 1 ) = p + 2 2 ( p + 1 ) \mu(0)-L=\frac{1}{2}-\frac{p}{2(p+1)}=\frac{p+2}{2(p+1)} μ ( 0 ) − L = 2 1 − 2 ( p + 1 ) p = 2 ( p + 1 ) p + 2 in the split case (Proposition 5.5 ), and μ ( 0 ) − L = p p + 1 − p 2 ( p + 1 ) = p 2 ( p + 1 ) \mu(0)-L=\frac{p}{p+1}-\frac{p}{2(p+1)}=\frac{p}{2(p+1)} μ ( 0 ) − L = p + 1 p − 2 ( p + 1 ) p = 2 ( p + 1 ) p in the inert case (Proposition 5.6 ). Using μ ( e ) = L + p − e ( μ ( 0 ) − L ) \mu(e)=L+p^{-e}(\mu(0)-L) μ ( e ) = L + p − e ( μ ( 0 ) − L ) , this gives Propositions 5.11 and 5.12 . This completes the proof.
Remark 5.13. All three formulas converge to the same limit p / ( 2 ( p + 1 ) ) p/(2(p+1)) p / ( 2 ( p + 1 )) as e → ∞ e\to\infty e → ∞ — exactly the density of squares in Z p \mathbb{Z}_p Z p . This is not a coincidence: the recursion’s fixed point is forced by the nonsingular piece alone (which never depends on d 0 d_0 d 0 or the split/inert distinction), and as e → ∞ e\to\infty e → ∞ the recursive piece p − 2 ⌊ e / 2 ⌋ ( μ ( e 0 ) − L ) p^{-2\lfloor e/2\rfloor}(\mu(e_0)-L) p − 2 ⌊ e /2 ⌋ ( μ ( e 0 ) − L ) — the only place the base type enters — decays to 0, leaving only the type-independent fixed point.
Regularity at odd primes
The regularity lemmas below control how fast the truncated densities δ h ( α ) ( p ) \delta_h^{(\alpha)}(p) δ h ( α ) ( p ) approach δ h ( p ) \delta_h(p) δ h ( p ) . They rest on a simple structural feature shared by the exact descriptions of S p S_p S p above: every nonzero element n n n of S p S_p S p comes with a whole residue class around it, whose modulus is only slightly larger than p v p ( n ) p^{v_p(n)} p v p ( n ) . At a split or inert prime, for instance, S p S_p S p contains every element of the same valuation as n n n . This motivates the following definition.
Definition 5.14 (c c c -stable set). Let p p p be a prime and c ≥ 1 c \ge1 c ≥ 1 . A set A ⊆ Z p A \subseteq\mathbb{Z}_p A ⊆ Z p is c c c -stable if for every n ∈ A ∖ { 0 } n \in A \setminus\{0\} n ∈ A ∖ { 0 } the whole residue class n + p v p ( n ) + c Z p n+p^{v_p(n)+c}\mathbb{Z}_p n + p v p ( n ) + c Z p is contained in A A A . In other words, away from 0 0 0 , the set A A A is a union of residue classes of the form n + p v p ( n ) + c Z p n+p^{v_p(n)+c}\mathbb{Z}_p n + p v p ( n ) + c Z p .
The value 0 0 0 plays no role in this definition. Examples of 1-stable sets are Z p \mathbb{Z}_p Z p , { 0 } \{0\} { 0 } , and any set defined by a condition on the valuation alone, such as { n : v p ( n ) even } \{n:v_p(n)\text{ even}\} { n : v p ( n ) even } . A simple non-example is given by the coset 1 + p s Z p 1+p^s\mathbb{Z}_p 1 + p s Z p with s ≥ 2 s \ge2 s ≥ 2 , which is not 1-stable: it contains 1 but not the class 1 + p Z p 1+p\mathbb{Z}_p 1 + p Z p . It is, however, s s s -stable.
Lemma 5.15 (Closure properties of c c c -stable sets). Let c ≥ 1 c \ge1 c ≥ 1 .
(a) Any union of c c c -stable subsets of Z p \mathbb{Z}_p Z p is c c c -stable, and a c c c -stable set is c ′ c' c ′ -stable for every c ′ ≥ c c' \ge c c ′ ≥ c .
(b) If A A A is c c c -stable, then so is p 2 A p^2A p 2 A .
(c) If A A A is c c c -stable and λ ∈ Z p ∖ { 0 } \lambda\in\mathbb{Z}_p \setminus\{0\} λ ∈ Z p ∖ { 0 } , then { n ∈ Z p : λ n ∈ A } \{n \in\mathbb{Z}_p:\lambda n \in A\} { n ∈ Z p : λn ∈ A } is c c c -stable.
(d) If r ∈ Z p r \in\mathbb{Z}_p r ∈ Z p and s ≥ 1 s \ge1 s ≥ 1 satisfy s ≤ v p ( r ) + c s \le v_p(r)+c s ≤ v p ( r ) + c (where v p ( 0 ) = ∞ v_p(0)=\infty v p ( 0 ) = ∞ ), then the coset r + p s Z p r+p^s\mathbb{Z}_p r + p s Z p is c c c -stable.
Proof. For (a), let n ∈ ⋃ i A i n \in\bigcup_i A_i n ∈ ⋃ i A i be nonzero. Then n ∈ A i n \in A_i n ∈ A i for some i i i , and by c c c -stability of A i A_i A i we get n + p v p ( n ) + c Z p ⊆ A i ⊆ ⋃ i A i n+p^{v_p(n)+c}\mathbb{Z}_p \subseteq A_i \subseteq\bigcup_i A_i n + p v p ( n ) + c Z p ⊆ A i ⊆ ⋃ i A i . For the second assertion, observe that n + p v p ( n ) + c ′ Z p ⊆ n + p v p ( n ) + c Z p n+p^{v_p(n)+c'}\mathbb{Z}_p \subseteq n+p^{v_p(n)+c}\mathbb{Z}_p n + p v p ( n ) + c ′ Z p ⊆ n + p v p ( n ) + c Z p when c ′ ≥ c c' \ge c c ′ ≥ c .
For (b), let n ∈ p 2 A n \in p^2A n ∈ p 2 A be nonzero, and write n = p 2 m n=p^2m n = p 2 m with m ∈ A ∖ { 0 } m \in A\setminus\{0\} m ∈ A ∖ { 0 } . Then v p ( n ) = v p ( m ) + 2 v_p(n)=v_p(m)+2 v p ( n ) = v p ( m ) + 2 , and so:
n + p v p ( n ) + c Z p = p 2 ( m + p v p ( m ) + c Z p ) ⊆ p 2 A , (38) n+p^{v_p(n)+c}\mathbb{Z}_p=p^2\left(m+p^{v_p(m)+c}\mathbb{Z}_p\right)\subseteq p^2A, \tag*{(38)} n + p v p ( n ) + c Z p = p 2 ( m + p v p ( m ) + c Z p ) ⊆ p 2 A , (38)
by c c c -stability of A A A .
For (c), put B : = { n ∈ Z p : λ n ∈ A } B:=\{n\in\mathbb{Z}_p:\lambda n\in A\} B := { n ∈ Z p : λn ∈ A } and let n ∈ B n\in B n ∈ B be nonzero, so that λ n ∈ A ∖ { 0 } \lambda n\in A\setminus\{0\} λn ∈ A ∖ { 0 } . If n ′ ∈ n + p v p ( n ) + c Z p n'\in n+p^{v_p(n)+c}\mathbb{Z}_p n ′ ∈ n + p v p ( n ) + c Z p , then λ n ′ ∈ λ n + p v p ( λ n ) + c Z p ⊆ A \lambda n'\in\lambda n+p^{v_p(\lambda n)+c}\mathbb{Z}_p\subseteq A λ n ′ ∈ λn + p v p ( λn ) + c Z p ⊆ A by c c c -stability of A A A , so that n ′ ∈ B n'\in B n ′ ∈ B .
For (d), write C : = r + p s Z p C:=r+p^s\mathbb{Z}_p C := r + p s Z p and let n ∈ C n\in C n ∈ C be nonzero. If v p ( r ) < s v_p(r)<s v p ( r ) < s , then v p ( n ) = v p ( r ) v_p(n)=v_p(r) v p ( n ) = v p ( r ) , so that s ≤ v p ( n ) + c s\le v_p(n)+c s ≤ v p ( n ) + c and hence n + p v p ( n ) + c Z p ⊆ n + p s Z p = C n+p^{v_p(n)+c}\mathbb{Z}_p\subseteq n+p^s\mathbb{Z}_p=C n + p v p ( n ) + c Z p ⊆ n + p s Z p = C . If v p ( r ) ≥ s v_p(r)\ge s v p ( r ) ≥ s , then C = p s Z p C=p^s\mathbb{Z}_p C = p s Z p and v p ( n ) ≥ s v_p(n)\ge s v p ( n ) ≥ s , and every element of n + p v p ( n ) + c Z p n+p^{v_p(n)+c}\mathbb{Z}_p n + p v p ( n ) + c Z p has valuation v p ( n ) ≥ s v_p(n)\ge s v p ( n ) ≥ s , hence lies in C C C . This completes the proof.
Lemma 5.16 (Stability of S p S_p S p at odd primes). For every odd prime p p p , the set S p S_p S p is 1-stable.
Proof. By §5.1 we have S p = { m : 4 a m ∈ T p } S_p=\{m:4am\in T_p\} S p = { m : 4 am ∈ T p } with a a a a unit, so by Lemma 5.15(c) it is enough to show that T p T_p T p is 1-stable. If χ d ( p ) = 1 \chi_d(p)=1 χ d ( p ) = 1 then T p = Z p T_p=\mathbb{Z}_p T p = Z p (Proposition 5.5), and if χ d ( p ) = − 1 \chi_d(p)=-1 χ d ( p ) = − 1 then T p = { 0 } ∪ { v p even } T_p=\{0\}\cup\{v_p\text{ even}\} T p = { 0 } ∪ { v p even } (Proposition 5.6). In both cases, if m ∈ T p m\in T_p m ∈ T p is nonzero, then T p T_p T p contains every element of valuation v p ( m ) v_p(m) v p ( m ) , and in particular the class m + p v p ( m ) + 1 Z p m+p^{v_p(m)+1}\mathbb{Z}_p m + p v p ( m ) + 1 Z p , all of whose elements have valuation v p ( m ) v_p(m) v p ( m ) . Hence T p T_p T p is 1-stable.
Suppose now that p ∤ d p\nmid d p ∤ d , write d = p e ′ d 0 d=p^{e'}d_0 d = p e ′ d 0 , and let T p ( e ′ ) T_p^{(e')} T p ( e ′ ) be as in §5.6, so that T p = T p ( e ) T_p=T_p^{(e)} T p = T p ( e ) . We show by induction on e ′ e' e ′ that T p ( e ′ ) T_p^{(e')} T p ( e ′ ) is 1-stable for every e ′ ≥ 0 e'\ge0 e ′ ≥ 0 . The base cases are e ′ = 0 e'=0 e ′ = 0 , which is the case just treated (with d 0 d_0 d 0 in place of d d d ), and e ′ = 1 e'=1 e ′ = 1 . For e ′ ≥ 2 e'\ge2 e ′ ≥ 2 , Lemma 5.9 writes T p ( e ′ ) T_p^{(e')} T p ( e ′ ) as the union of the units that are squares modulo p p p and of p 2 T p ( e ′ − 2 ) p^2T_p^{(e'-2)} p 2 T p ( e ′ − 2 ) . The first set is a union of cosets r + p Z p r+p\mathbb{Z}_p r + p Z p with r r r a unit, hence 1-stable by Lemma 5.15(d), and the second is 1-stable by Lemma 5.15(b) and the induction hypothesis. By Lemma 5.15(a) the union is 1-stable.
It remains to treat e ′ = 1 e'=1 e ′ = 1 . Let m = p j u ∈ T p ( 1 ) m=p^ju\in T_p^{(1)} m = p j u ∈ T p ( 1 ) with u ∈ Z p × u\in\mathbb{Z}_p^\times u ∈ Z p × . Every element of m + p j + 1 Z p m+p^{j+1}\mathbb{Z}_p m + p j + 1 Z p has valuation j j j and unit part congruent to u u u modulo p p p , so it lies in T p ( 1 ) T_p^{(1)} T p ( 1 ) by Lemma 5.8. Hence m + p j + 1 Z p ⊆ T p ( 1 ) m+p^{j+1}\mathbb{Z}_p\subseteq T_p^{(1)} m + p j + 1 Z p ⊆ T p ( 1 ) , which shows that T p ( 1 ) T_p^{(1)} T p ( 1 ) is 1-stable and completes the proof.
The next lemma turns stability into a bound on the truncation error for a single index.
Lemma 5.17 (Single-index truncation). Let S ⊆ Z p S \subseteq\mathbb{Z}_p S ⊆ Z p be a closed c c c -stable set, and put δ : = μ p ( S ) \delta:= \mu_p(S) δ := μ p ( S ) and δ ( α ) : = p − α # ( S m o d p α ) \delta^{(\alpha)} := p^{-\alpha}\#(S \bmod p^\alpha) δ ( α ) := p − α # ( S mod p α ) . Then for every α ≥ 1 \alpha\ge1 α ≥ 1 :
0 ≤ δ ( α ) − δ ≤ p c − 1 p α . (39) 0 \le\delta^{(\alpha)}-\delta\le\frac{p^{c-1}}{p^\alpha}. \tag*{(39)} 0 ≤ δ ( α ) − δ ≤ p α p c − 1 . (39)
Proof. Fix β ≥ 1 \beta\ge1 β ≥ 1 and let a a a be a residue class modulo p β p^\beta p β that meets S S S , so that it is counted in δ ( β ) \delta^{(\beta)} δ ( β ) . Suppose first that a ≢ 0 ( m o d p β ) a \not\equiv0 \pmod{p^\beta} a ≡ 0 ( mod p β ) and v p ( a ) ≤ β − c v_p(a) \le\beta-c v p ( a ) ≤ β − c , where v p ( a ) < β v_p(a)<\beta v p ( a ) < β denotes the valuation of any representative. Every m ∈ a + p β Z p m \in a+p^\beta\mathbb{Z}_p m ∈ a + p β Z p then satisfies v p ( m ) = v p ( a ) v_p(m)=v_p(a) v p ( m ) = v p ( a ) , and a + p β Z p ⊆ m + p v p ( m ) + c Z p a+p^\beta\mathbb{Z}_p \subseteq m+p^{v_p(m)+c}\mathbb{Z}_p a + p β Z p ⊆ m + p v p ( m ) + c Z p . Applying this to an element m m m of the class that lies in S S S , we see by c c c -stability that the whole class a + p β Z p a+p^\beta\mathbb{Z}_p a + p β Z p is contained in S S S . Consequently all p p p of its refinements modulo p β + 1 p^{\beta+1} p β + 1 are counted in δ ( β + 1 ) \delta^{(\beta+1)} δ ( β + 1 ) .
The remaining classes modulo p β p^\beta p β are those with a ≡ 0 a\equiv0 a ≡ 0 or v p ( a ) ≥ β − c + 1 v_p(a)\ge\beta-c+1 v p ( a ) ≥ β − c + 1 , and there are at most p c − 1 p^{c-1} p c − 1 of them. Each of these classes meets S S S , so at least one of its p p p refinements modulo p β + 1 p^{\beta+1} p β + 1 is counted in δ ( β + 1 ) \delta^{(\beta+1)} δ ( β + 1 ) , and at most p − 1 p-1 p − 1 refinements are lost, each of measure p − ( β + 1 ) p^{-(\beta+1)} p − ( β + 1 ) . Therefore:
0 ≤ δ ( β ) − δ ( β + 1 ) ≤ ( p − 1 ) p c − 1 p β + 1 . (40) 0 \le\delta^{(\beta)}-\delta^{(\beta+1)} \le\frac{(p-1)p^{c-1}}{p^{\beta+1}}. \tag*{(40)} 0 ≤ δ ( β ) − δ ( β + 1 ) ≤ p β + 1 ( p − 1 ) p c − 1 . (40)
Since S S S is closed, S = ⋂ β ( S + p β Z p ) S=\bigcap_\beta(S+p^\beta\mathbb{Z}_p) S = ⋂ β ( S + p β Z p ) , and δ ( β ) = μ p ( S + p β Z p ) \delta^{(\beta)}=\mu_p(S+p^\beta\mathbb{Z}_p) δ ( β ) = μ p ( S + p β Z p ) decreases to δ \delta δ . Telescoping over β ≥ α \beta\ge\alpha β ≥ α gives:
δ ( α ) − δ ≤ p c − 1 ∑ β ≥ α p − 1 p β + 1 = p c − 1 p α , (41) \delta^{(\alpha)}-\delta\le p^{c-1}\sum_{\beta\ge\alpha}\frac{p-1}{p^{\beta+1}}=\frac{p^{c-1}}{p^\alpha}, \tag*{(41)} δ ( α ) − δ ≤ p c − 1 β ≥ α ∑ p β + 1 p − 1 = p α p c − 1 , (41)
and the lower bound holds because δ ( β ) \delta^{(\beta)} δ ( β ) is decreasing in β \beta β . This completes the proof.
With these two lemmas in hand, the regularity of the multi-index densities follows from a union bound.
Lemma 5.18 (Regularity at odd primes). For every finite h ⊂ Z h\subset\mathbb{Z} h ⊂ Z with # h = k ≥ 1 \#h=k\ge1 # h = k ≥ 1 , every odd prime p p p , and every α ≥ 1 \alpha\ge1 α ≥ 1 :
0 ≤ δ h ( α ) ( p ) − δ h ( p ) ≤ k p α . (42) 0 \le\delta_h^{(\alpha)}(p)-\delta_h(p)\le\frac{k}{p^\alpha}. \tag*{(42)} 0 ≤ δ h ( α ) ( p ) − δ h ( p ) ≤ p α k . (42)
The core idea of the proof is to compare the truncated density with the true density through the union bound over the k k k shifts, which reduces the problem to the single-index discrepancy controlled by Lemma 5.17.
Proof. Throughout, δ h ( α ) ( p ) ≥ δ h ( p ) \delta_h^{(\alpha)}(p)\ge\delta_h(p) δ h ( α ) ( p ) ≥ δ h ( p ) : truncation only ever gains residues, never loses them, as the construction below makes precise. This gives the lower bound 0 ≤ δ h ( α ) ( p ) − δ h ( p ) 0\le\delta_h^{(\alpha)}(p)-\delta_h(p) 0 ≤ δ h ( α ) ( p ) − δ h ( p ) directly, so it is enough to prove the upper bound.
For C ⊆ Z p C\subseteq\mathbb{Z}_p C ⊆ Z p , write C ^ α \widehat{C}_\alpha C α for its coset-completion at level α \alpha α , the union of residue classes mod p α p^\alpha p α meeting C C C . Write A : = ⋂ i B i A:=\bigcap_i B_i A := ⋂ i B i for B i : = S p − h i B_i:=S_p-h_i B i := S p − h i , so that δ h ( p ) = μ p ( A ) \delta_h(p)=\mu_p(A) δ h ( p ) = μ p ( A ) , and write A ~ α : = ⋂ i B ^ i α \widetilde{A}_\alpha:=\bigcap_i\widehat{B}_{i\alpha} A α := ⋂ i B i α for the intersection of the individual completions.
Claim 1: We have δ h ( α ) ( p ) = μ p ( A ~ α ) \delta_h^{(\alpha)}(p)=\mu_p(\widetilde{A}_\alpha) δ h ( α ) ( p ) = μ p ( A α ) .
Proof of Claim 1: By Definition 4.4, the element a a a contributes to δ h ( α ) ( p ) \delta_h^{(\alpha)}(p) δ h ( α ) ( p ) exactly when a + h i a+h_i a + h i lies in S p S_p S p mod p α p^\alpha p α for each i i i separately, that is, when a ∈ B ^ i α a\in\widehat{B}_{i\alpha} a ∈ B i α for every i i i . This proves Claim 1.
Observe that A ~ α \widetilde{A}_\alpha A α need not equal A ^ α \widehat{A}_\alpha A α , the completion of the intersection, which can be genuinely smaller. For instance, at α = 1 \alpha=1 α = 1 with several h i h_i h i coinciding mod p p p , a residue can pass every individual check while admitting no single consistent witness, so the distinction is not merely formal.
Claim 2: We have A ~ α ∖ A ⊆ ⋃ i = 1 k ( B ^ i α ∖ B i ) \widetilde{A}_\alpha\setminus A\subseteq\bigcup_{i=1}^k(\widehat{B}_{i\alpha}\setminus B_i) A α ∖ A ⊆ ⋃ i = 1 k ( B i α ∖ B i ) .
Proof of Claim 2: Let a ∈ A ~ α ∖ A a\in\widetilde{A}_\alpha\setminus A a ∈ A α ∖ A . Since a ∉ A = ⋂ i B i a\notin A=\bigcap_iB_i a ∈ / A = ⋂ i B i , it must be the case that a ∉ B i 0 a\notin B_{i_0} a ∈ / B i 0 for some specific index i 0 i_0 i 0 . On the other hand, a ∈ A ~ α a\in\widetilde{A}_\alpha a ∈ A α means directly that a ∈ B ^ i 0 α a\in\widehat{B}_{i_0\alpha} a ∈ B i 0 α , by definition of A ~ α \widetilde{A}_\alpha A α as the intersection over every index. Hence a ∈ B ^ i 0 α ∖ B i 0 a\in\widehat{B}_{i_0\alpha}\setminus B_{i_0} a ∈ B i 0 α ∖ B i 0 , which proves Claim 2.
We now put our claims to work. Since A ⊆ A ~ α A\subseteq\widetilde{A}_\alpha A ⊆ A α always (each B i ⊆ B ^ i α B_i\subseteq\widehat{B}_{i\alpha} B i ⊆ B i α ), it suffices to bound μ p ( A ~ α ∖ A ) \mu_p(\widetilde{A}_\alpha\setminus A) μ p ( A α ∖ A ) . By Claim 2 and subadditivity of μ p \mu_p μ p (the union bound, applied here to a union of complements, not to the B i B_i B i 's themselves), we get:
μ p ( A ~ α ∖ A ) ≤ ∑ i = 1 k μ p ( B ^ i α ∖ B i ) . (43) \mu_p(\widetilde{A}_\alpha\setminus A)\le\sum_{i=1}^k\mu_p(\widehat{B}_{i\alpha}\setminus B_i). \tag*{(43)} μ p ( A α ∖ A ) ≤ i = 1 ∑ k μ p ( B i α ∖ B i ) . (43)
Each B i = S p − h i B_i=S_p-h_i B i = S p − h i is a translate of S p S_p S p , so translation invariance of μ p \mu_p μ p identifies μ p ( B ^ i α ∖ B i ) \mu_p(\widehat{B}_{i\alpha}\setminus B_i) μ p ( B i α ∖ B i ) with the single-index discrepancy δ { 0 } ( α ) ( p ) − δ { 0 } ( p ) \delta_{\{0\}}^{(\alpha)}(p)-\delta_{\{0\}}(p) δ { 0 } ( α ) ( p ) − δ { 0 } ( p ) . The set S p S_p S p is closed (it is compact, as noted before Definition 4.3), and it is 1-stable by Lemma 5.16. Lemma 5.17 with c = 1 c=1 c = 1 therefore bounds this discrepancy by 1 / p α 1/p^\alpha 1/ p α , regardless of h i h_i h i . Summing the k k k terms we find:
δ h ( α ) ( p ) − δ h ( p ) = μ p ( A ~ α ∖ A ) ≤ ∑ i = 1 k 1 p α = k p α . (44) \delta_h^{(\alpha)}(p)-\delta_h(p)=\mu_p(\widetilde{A}_\alpha\setminus A)\leq\sum_{i=1}^{k}\frac{1}{p^\alpha}=\frac{k}{p^\alpha}. \tag*{(44)} δ h ( α ) ( p ) − δ h ( p ) = μ p ( A α ∖ A ) ≤ i = 1 ∑ k p α 1 = p α k . (44)
This completes the proof.
Multi-point densities: near 1 away from det h \det\mathbf{h} det h
We begin with an elementary bound, which we will use repeatedly, both here and in §7.
Lemma 5.19 (Monotonicity). Let p p p be a prime, α ≥ 1 \alpha\geq1 α ≥ 1 , and h \mathbf{h} h a tuple of length k ≥ 1 k\geq1 k ≥ 1 . Then δ h ( α ) ( p ) ≤ δ { 0 } ( α ) ( p ) \delta_h^{(\alpha)}(p)\leq\delta_{\{0\}}^{(\alpha)}(p) δ h ( α ) ( p ) ≤ δ { 0 } ( α ) ( p ) , and therefore λ h ( α ) ( p ) ≤ δ { 0 } ( α ) ( p ) 1 − k \lambda_h^{(\alpha)}(p)\leq\delta_{\{0\}}^{(\alpha)}(p)^{1-k} λ h ( α ) ( p ) ≤ δ { 0 } ( α ) ( p ) 1 − k , where:
λ h ( α ) ( p ) : = δ h ( α ) ( p ) δ { 0 } ( α ) ( p ) k . (45) \lambda_h^{(\alpha)}(p):=\frac{\delta_h^{(\alpha)}(p)}{\delta_{\{0\}}^{(\alpha)}(p)^k}. \tag*{(45)} λ h ( α ) ( p ) := δ { 0 } ( α ) ( p ) k δ h ( α ) ( p ) . (45) If the entries of h \mathbf{h} h are distinct, then likewise δ h ( p ) ≤ δ { 0 } ( p ) \delta_h(p)\leq\delta_{\{0\}}(p) δ h ( p ) ≤ δ { 0 } ( p ) and λ h ( p ) ≤ δ { 0 } ( p ) 1 − k \lambda_h(p)\leq\delta_{\{0\}}(p)^{1-k} λ h ( p ) ≤ δ { 0 } ( p ) 1 − k .
Proof. The set ⋂ i ( S p − h i ) \bigcap_i(S_p-h_i) ⋂ i ( S p − h i ) is contained in S p − h 1 S_p-h_1 S p − h 1 , which has measure δ { 0 } ( p ) \delta_{\{0\}}(p) δ { 0 } ( p ) by translation invariance of μ p \mu_p μ p . Similarly, every a a a counted in δ h ( α ) ( p ) \delta_h^{(\alpha)}(p) δ h ( α ) ( p ) satisfies a + h 1 ∈ S p ( m o d p α ) a+h_1\in S_p\pmod{p^\alpha} a + h 1 ∈ S p ( mod p α ) , and a ↦ a + h 1 a\mapsto a+h_1 a ↦ a + h 1 is a bijection of Z / p α Z \mathbb{Z}/p^\alpha\mathbb{Z} Z / p α Z . The bounds for λ \lambda λ follow on dividing by δ { 0 } ( α ) ( p ) k \delta_{\{0\}}^{(\alpha)}(p)^k δ { 0 } ( α ) ( p ) k , respectively δ { 0 } ( p ) k \delta_{\{0\}}(p)^k δ { 0 } ( p ) k , which completes the proof.
For the singular series to converge (§7), we need λ h ( p ) = δ h ( p ) / δ { 0 } ( p ) k \lambda_h(p)=\delta_h(p)/\delta_{\{0\}}(p)^k λ h ( p ) = δ h ( p ) / δ { 0 } ( p ) k to be close to 1 for all but finitely many primes; the next two lemmas show this at the odd inert primes.
Lemma 5.20 (Generic inert primes). Write det ( h ) : = ∏ i < j ( h j − h i ) \det(\mathbf{h}):=\prod_{i<j}(h_j-h_i) det ( h ) := ∏ i < j ( h j − h i ) . If p p p is odd with χ d ( p ) = − 1 \chi_d(p)=-1 χ d ( p ) = − 1 and p ∤ det ( h ) p\nmid\det(\mathbf{h}) p ∤ det ( h ) — that is, h 1 , … , h k h_1,\ldots,h_k h 1 , … , h k are pairwise distinct mod p p p — then:
δ h ( p ) = 1 − k p + 1 , so λ h ( p ) = 1 + O k ( p − 2 ) . (46) \delta_h(p)=1-\frac{k}{p+1},\qquad\text{so}\qquad\lambda_h(p)=1+O_k(p^{-2}). \tag*{(46)} δ h ( p ) = 1 − p + 1 k , so λ h ( p ) = 1 + O k ( p − 2 ) . (46) Proof. Since h 1 , … , h k h_1,\ldots,h_k h 1 , … , h k are pairwise distinct mod p p p , for any a a a at most one index i 0 i_0 i 0 can have a + h i 0 ≡ 0 ( m o d p ) a+h_{i_0}\equiv0\pmod p a + h i 0 ≡ 0 ( mod p ) . The k k k events { a ≡ − h i ( m o d p ) } \{a\equiv-h_i\pmod p\} { a ≡ − h i ( mod p )} are therefore pairwise disjoint, each of measure 1 / p 1/p 1/ p . We split into two cases according to whether a a a lies in one of these events.
Case 1: The element a a a lies off these events, which has measure 1 − k / p 1-k/p 1 − k / p . Then every a + h i a+h_i a + h i is a unit, hence automatically in S p S_p S p (Proposition 5.6: v p = 0 v_p=0 v p = 0 is even). This gives a full contribution of ( 1 − k / p ) × 1 (1-k/p)\times1 ( 1 − k / p ) × 1 .
Case 2: The element a a a lies on the event a ≡ − h i 0 ( m o d p ) a\equiv-h_{i_0}\pmod p a ≡ − h i 0 ( mod p ) , which has measure 1 / p 1/p 1/ p , for each of the k k k choices of i 0 i_0 i 0 . Then every a + h j a+h_j a + h j with j ≠ i 0 j\ne i_0 j = i 0 remains a unit (as h j ≢ h i 0 ( m o d p ) h_j\not\equiv h_{i_0}\pmod p h j ≡ h i 0 ( mod p ) ), so those are automatically fine, and only a + h i 0 a+h_{i_0} a + h i 0 , now known to be ≡ 0 ( m o d p ) \equiv0\pmod p ≡ 0 ( mod p ) , needs checking. Write a + h i 0 = p c a+h_{i_0}=pc a + h i 0 = p c : we need v p ( a + h i 0 ) = 1 + v p ( c ) v_p(a+h_{i_0})=1+v_p(c) v p ( a + h i 0 ) = 1 + v p ( c ) to be even, that is, v p ( c ) v_p(c) v p ( c ) odd, and by Proposition 5.6 odd valuations have density exactly 1 − p / ( p + 1 ) = 1 / ( p + 1 ) 1-p/(p+1)=1/(p+1) 1 − p / ( p + 1 ) = 1/ ( p + 1 ) . So this event contributes 1 p ⋅ 1 p + 1 \frac{1}{p}\cdot\frac{1}{p+1} p 1 ⋅ p + 1 1 , for each of the k k k choices of i 0 i_0 i 0 .
Summing the two cases we obtain:
δ h ( p ) = ( 1 − k p ) + k ⋅ 1 p ⋅ 1 p + 1 = 1 − k p ( 1 − 1 p + 1 ) = 1 − k p ⋅ p p + 1 = 1 − k p + 1 . (47) \delta_h(p)=\left(1-\frac{k}{p}\right)+k\cdot\frac{1}{p}\cdot\frac{1}{p+1}=1-\frac{k}{p}\left(1-\frac{1}{p+1}\right)=1-\frac{k}{p}\cdot\frac{p}{p+1}=1-\frac{k}{p+1}. \tag*{(47)} δ h ( p ) = ( 1 − p k ) + k ⋅ p 1 ⋅ p + 1 1 = 1 − p k ( 1 − p + 1 1 ) = 1 − p k ⋅ p + 1 p = 1 − p + 1 k . (47) This completes the proof.
Lemma 5.21 (Upper bound at inert primes). If p p p is odd with χ d ( p ) = − 1 \chi_d(p)=-1 χ d ( p ) = − 1 , then for every h h h (not just those with p ∤ det h p\nmid\det h p ∤ det h ):
λ h ( p ) ≤ ( 1 + 1 / p ) k − 1 . (48) \lambda_h(p) \le(1+1/p)^{k-1}. \tag*{(48)} λ h ( p ) ≤ ( 1 + 1/ p ) k − 1 . (48) Proof. By Lemma 5.19 and Proposition 5.6, λ h ( p ) ≤ δ { 0 } ( p ) 1 − k = ( 1 + 1 / p ) k − 1 \lambda_h(p)\le\delta_{\{0\}}(p)^{1-k}=(1+1/p)^{k-1} λ h ( p ) ≤ δ { 0 } ( p ) 1 − k = ( 1 + 1/ p ) k − 1 , as required.
Together, Lemmas 5.20 and 5.21 control every odd inert factor of the singular series: λ h ( p ) = 1 + O k ( p − 2 ) \lambda_h(p)=1+O_k(p^{-2}) λ h ( p ) = 1 + O k ( p − 2 ) at all but the at most ω ( det h ) \omega(\det h) ω ( det h ) inert primes dividing det ( h ) \det(h) det ( h ) , where Lemma 5.21 applies. Since λ h ( p ) = 1 \lambda_h(p)=1 λ h ( p ) = 1 at odd split primes, only the finitely many primes dividing 2 d 2d 2 d remain. Absolute convergence of the full product S ~ h = ∏ p λ h ( p ) \widetilde{\mathcal{S}}_h=\prod_p\lambda_h(p) S h = ∏ p λ h ( p ) also needs λ h ( p ) \lambda_h(p) λ h ( p ) to be bounded above at these primes (it is nonnegative by definition), which comes from the lower bounds on δ { 0 } ( p ) \delta_{\{0\}}(p) δ { 0 } ( p ) in §5.6 and §6; these are combined in Corollary 7.2.
Local densities at p = 2 p=2 p = 2
In this section we compute S 2 S_2 S 2 and δ { 0 } ( 2 ) \delta_{\{0\}}(2) δ { 0 } ( 2 ) , running parallel to §5; apart from the case p = 2 p=2 p = 2 of Lemma 5.2, quoted from [10 ] , the treatment is self-contained. At p = 2 p=2 p = 2 the gradient ( 2 X , − 2 d Y ) (2X,-2dY) ( 2 X , − 2 d Y ) of Q ( X , Y ) = X 2 − d Y 2 Q(X,Y)=X^2-dY^2 Q ( X , Y ) = X 2 − d Y 2 vanishes mod 2 2 2 identically, so there is no analogue of “nonsingular mod p p p ”. The recursion survives, but is built instead around the parity of X X X and Y Y Y , reflecting that squares in Z 2 × \mathbb{Z}_2^\times Z 2 × have index 4, not 2 (Lemma 5.2). We will use the description ( Z 2 × ) 2 = 1 + 8 Z 2 (\mathbb{Z}_2^\times)^2=1+8\mathbb{Z}_2 ( Z 2 × ) 2 = 1 + 8 Z 2 repeatedly below.
Setup: two completing-the-square regimes
By Lemma 5.1, we may fix f = a x 2 + b x y + c y 2 ∈ R f=ax^2+bxy+cy^2\in R f = a x 2 + b x y + c y 2 ∈ R with a a a odd.
Suppose first that 2 ∤ d 2\nmid d 2 ∤ d . Then necessarily d ≡ 1 ( m o d 4 ) d\equiv1\pmod4 d ≡ 1 ( mod 4 ) , and b b b is odd since d = b 2 − 4 a c d=b^2-4ac d = b 2 − 4 a c . The substitution X = 2 a x + b y X=2ax+by X = 2 a x + b y , Y = y Y=y Y = y satisfies X ≡ Y ( m o d 2 ) X\equiv Y\pmod2 X ≡ Y ( mod 2 ) always (as b b b is odd), and it is only injective on Z 2 2 \mathbb{Z}_2^2 Z 2 2 , not surjective: its image is exactly { ( X , Y ) : X ≡ Y ( m o d 2 ) } \{(X,Y):X\equiv Y\pmod2\} {( X , Y ) : X ≡ Y ( mod 2 )} (given such ( X , Y ) (X,Y) ( X , Y ) , recover y = Y y=Y y = Y , x = ( X − b Y ) / ( 2 a ) ∈ Z 2 x=(X-bY)/(2a)\in\mathbb{Z}_2 x = ( X − bY ) / ( 2 a ) ∈ Z 2 , since the numerator is even and 2 a 2a 2 a has valuation exactly 1). So we get:
4 a ⋅ S 2 = T 2 : = { X 2 − d Y 2 : X ≡ Y ( m o d 2 ) } . (49) 4a\cdot S_2=T_2:=\{X^2-dY^2:X\equiv Y\pmod2\}. \tag*{(49)} 4 a ⋅ S 2 = T 2 := { X 2 − d Y 2 : X ≡ Y ( mod 2 )} . (49)
Here 4 a 4a 4 a has valuation 2, so it is not a unit, and this is a genuine × 4 \times4 × 4 measure scaling rather than a preserving one. Since a a a itself is already a unit, we find:
μ 2 ( T 2 ) = μ 2 ( 4 a ⋅ S 2 ) = 1 4 μ 2 ( a ⋅ S 2 ) = 1 4 μ 2 ( S 2 ) , (50) \mu_2(T_2)=\mu_2(4a\cdot S_2)=\frac14\mu_2(a\cdot S_2)=\frac14\mu_2(S_2), \tag*{(50)} μ 2 ( T 2 ) = μ 2 ( 4 a ⋅ S 2 ) = 4 1 μ 2 ( a ⋅ S 2 ) = 4 1 μ 2 ( S 2 ) , (50)
that is, μ 2 ( S 2 ) = 4 μ 2 ( T 2 ) \mu_2(S_2)=4\mu_2(T_2) μ 2 ( S 2 ) = 4 μ 2 ( T 2 ) .
Suppose now that 4 ∣ d 4\mid d 4 ∣ d (forced whenever 2 ∣ d 2\mid d 2 ∣ d , since d ≡ 0 , 1 ( m o d 4 ) d\equiv0,1\pmod4 d ≡ 0 , 1 ( mod 4 ) ). Write d = 4 m d=4m d = 4 m . Then b = 2 b ′ b=2b' b = 2 b ′ is forced, and a ⋅ f ( x , y ) = ( a x + b ′ y ) 2 − m y 2 a\cdot f(x,y)=(ax+b'y)^2-my^2 a ⋅ f ( x , y ) = ( a x + b ′ y ) 2 − m y 2 (expand, using m = b ′ 2 − a c m=b'{}^2-ac m = b ′ 2 − a c ) gives a genuine bijection Z 2 2 → Z 2 2 \mathbb{Z}_2^2\to\mathbb{Z}_2^2 Z 2 2 → Z 2 2 . There is no parity obstruction this time, since only the unit a a a , not 2 a 2a 2 a , is used, and we obtain:
a ⋅ S 2 = T 2 : = { X 2 − m Y 2 : X , Y ∈ Z 2 unconstrained } , μ 2 ( S 2 ) = μ 2 ( T 2 ) . (51) a\cdot S_2=T_2:=\{X^2-mY^2:X,Y\in\mathbb{Z}_2\text{ unconstrained}\},\qquad\mu_2(S_2)=\mu_2(T_2). \tag*{(51)} a ⋅ S 2 = T 2 := { X 2 − m Y 2 : X , Y ∈ Z 2 unconstrained } , μ 2 ( S 2 ) = μ 2 ( T 2 ) . (51)
This is a genuine unit rescaling here, since a a a itself is odd.
The values of X 2 − m 0 Y 2 X^2-m_0Y^2 X 2 − m 0 Y 2 with v 2 ( m 0 ) ∈ { 0 , 1 } v_2(m_0)\in\{0,1\} v 2 ( m 0 ) ∈ { 0 , 1 } will be needed repeatedly below, so we record their structure once. Call ( X , Y ) ∈ Z 2 2 (X,Y)\in\mathbb{Z}_2^2 ( X , Y ) ∈ Z 2 2 primitive if X , Y X,Y X , Y are not both even.
Lemma 6.1 (Primitive values). Let m 0 ∈ Z 2 m_0\in\mathbb{Z}_2 m 0 ∈ Z 2 with v 2 ( m 0 ) ∈ { 0 , 1 } v_2(m_0)\in\{0,1\} v 2 ( m 0 ) ∈ { 0 , 1 } , let N 0 N_0 N 0 be the set of values X 2 − m 0 Y 2 X^2-m_0Y^2 X 2 − m 0 Y 2 at primitive ( X , Y ) (X,Y) ( X , Y ) , and let N o o , N o e , N e o N_{oo},N_{oe},N_{eo} N oo , N oe , N eo be the subsets of values at primitive pairs with ( X , Y ) (X,Y) ( X , Y ) both odd, X X X odd and Y Y Y even, and Y Y Y odd, respectively. Then:
(a) { X 2 − m 0 Y 2 : X , Y ∈ Z 2 } = { 0 } ∪ ⋃ j ≥ 0 4 j N 0 \{X^2-m_0Y^2:X,Y\in\mathbb{Z}_2\}=\{0\}\cup\bigcup_{j\ge0}4^jN_0 { X 2 − m 0 Y 2 : X , Y ∈ Z 2 } = { 0 } ∪ ⋃ j ≥ 0 4 j N 0 , and N 0 = N o o ∪ N o e ∪ N e o N_0=N_{oo}\cup N_{oe}\cup N_{eo} N 0 = N oo ∪ N oe ∪ N eo .
(b) N o o = ( 1 − m 0 ) + 8 Z 2 N_{oo}=(1-m_0)+8\mathbb{Z}_2 N oo = ( 1 − m 0 ) + 8 Z 2 .
(c) If v 2 ( m 0 ) = 0 v_2(m_0)=0 v 2 ( m 0 ) = 0 , then N o e = 1 + 4 Z 2 N_{oe}=1+4\mathbb{Z}_2 N oe = 1 + 4 Z 2 and N e o = − m 0 + 4 Z 2 N_{eo}=-m_0+4\mathbb{Z}_2 N eo = − m 0 + 4 Z 2 .
(d) If v 2 ( m 0 ) = 1 v_2(m_0)=1 v 2 ( m 0 ) = 1 , then N o e = 1 + 8 Z 2 N_{oe}=1+8\mathbb{Z}_2 N oe = 1 + 8 Z 2 and N e o = ( − m 0 + 16 Z 2 ) ∪ ( 4 − m 0 + 16 Z 2 ) N_{eo}=(-m_0+16\mathbb{Z}_2)\cup(4-m_0+16\mathbb{Z}_2) N eo = ( − m 0 + 16 Z 2 ) ∪ ( 4 − m 0 + 16 Z 2 ) .
Proof. For part (a), a pair ( X , Y ) ≠ ( 0 , 0 ) (X,Y)\ne(0,0) ( X , Y ) = ( 0 , 0 ) can be written uniquely as 2 j ( X 0 , Y 0 ) 2^j(X_0,Y_0) 2 j ( X 0 , Y 0 ) with j = min ( v 2 ( X ) , v 2 ( Y ) ) j=\min(v_2(X),v_2(Y)) j = min ( v 2 ( X ) , v 2 ( Y )) and ( X 0 , Y 0 ) (X_0,Y_0) ( X 0 , Y 0 ) primitive, and then X 2 − m 0 Y 2 = 4 j ( X 0 2 − m 0 Y 0 2 ) X^2-m_0Y^2=4^j(X_0^2-m_0Y_0^2) X 2 − m 0 Y 2 = 4 j ( X 0 2 − m 0 Y 0 2 ) . Conversely, every 4 j n 0 4^jn_0 4 j n 0 with n 0 ∈ N 0 n_0\in N_0 n 0 ∈ N 0 arises this way. The value 0 0 0 arises at ( 0 , 0 ) (0,0) ( 0 , 0 ) . The second assertion is the definition of the three subsets.
For parts (b)–(d) recall from Lemma 5.2 that the squares of odd elements of Z 2 \mathbb{Z}_2 Z 2 are exactly the elements of 1 + 8 Z 2 1+8\mathbb{Z}_2 1 + 8 Z 2 .
For part (b), if X , Y X,Y X , Y are both odd, then X 2 , Y 2 X^2,Y^2 X 2 , Y 2 range independently over 1 + 8 Z 2 1+8\mathbb{Z}_2 1 + 8 Z 2 , so X 2 − m 0 Y 2 X^2-m_0Y^2 X 2 − m 0 Y 2 lies in:
( 1 + 8 Z 2 ) − m 0 ( 1 + 8 Z 2 ) = ( 1 − m 0 ) + 8 Z 2 , (52) (1+8\mathbb{Z}_2)-m_0(1+8\mathbb{Z}_2)=(1-m_0)+8\mathbb{Z}_2, \tag*{(52)} ( 1 + 8 Z 2 ) − m 0 ( 1 + 8 Z 2 ) = ( 1 − m 0 ) + 8 Z 2 , (52)
because 8 m 0 Z 2 ⊆ 8 Z 2 8m_0\mathbb{Z}_2\subseteq8\mathbb{Z}_2 8 m 0 Z 2 ⊆ 8 Z 2 . Every element of this coset occurs already with Y = 1 Y=1 Y = 1 and X 2 X^2 X 2 varying.
For part (c), let m 0 m_0 m 0 be odd. If X X X is odd and Y = 2 w Y=2w Y = 2 w is even, then X 2 − m 0 Y 2 = X 2 − 4 m 0 w 2 X^2-m_0Y^2=X^2-4m_0w^2 X 2 − m 0 Y 2 = X 2 − 4 m 0 w 2 , and 4 m 0 w 2 ≡ 0 ( m o d 8 ) 4m_0w^2\equiv0\pmod8 4 m 0 w 2 ≡ 0 ( mod 8 ) for w w w even while 4 m 0 w 2 ≡ 4 ( m o d 8 ) 4m_0w^2\equiv4\pmod8 4 m 0 w 2 ≡ 4 ( mod 8 ) for w w w odd. Hence this value lies in ( 1 + 8 Z 2 ) ∪ ( 5 + 8 Z 2 ) = 1 + 4 Z 2 (1+8\mathbb{Z}_2)\cup(5+8\mathbb{Z}_2)=1+4\mathbb{Z}_2 ( 1 + 8 Z 2 ) ∪ ( 5 + 8 Z 2 ) = 1 + 4 Z 2 , and both cosets occur (take w = 0 w=0 w = 0 , respectively w = 1 w=1 w = 1 with X 2 X^2 X 2 varying). If X = 2 w X=2w X = 2 w is even and Y Y Y is odd, then X 2 − m 0 Y 2 = 4 w 2 − m 0 Y 2 X^2-m_0Y^2=4w^2-m_0Y^2 X 2 − m 0 Y 2 = 4 w 2 − m 0 Y 2 , where m 0 Y 2 m_0Y^2 m 0 Y 2 ranges over m 0 + 8 Z 2 m_0+8\mathbb{Z}_2 m 0 + 8 Z 2 , and 4 w 2 ≡ 0 ( m o d 8 ) 4w^2\equiv0\pmod8 4 w 2 ≡ 0 ( mod 8 ) for w w w even while 4 w 2 ≡ 4 ( m o d 8 ) 4w^2\equiv4\pmod8 4 w 2 ≡ 4 ( mod 8 ) for w w w odd. Hence the value lies in ( − m 0 + 8 Z 2 ) ∪ ( 4 − m 0 + 8 Z 2 ) = − m 0 + 4 Z 2 (-m_0+8\mathbb{Z}_2)\cup(4-m_0+8\mathbb{Z}_2)=-m_0+4\mathbb{Z}_2 ( − m 0 + 8 Z 2 ) ∪ ( 4 − m 0 + 8 Z 2 ) = − m 0 + 4 Z 2 , and both cosets occur (take w = 0 w=0 w = 0 , respectively w = 1 w=1 w = 1 , with Y 2 Y^2 Y 2 varying).
For part (d), let v 2 ( m 0 ) = 1 v_2(m_0)=1 v 2 ( m 0 ) = 1 . If X X X is odd and Y = 2 w Y=2w Y = 2 w is even, then X 2 − m 0 Y 2 = X 2 − 4 m 0 w 2 X^2-m_0Y^2=X^2-4m_0w^2 X 2 − m 0 Y 2 = X 2 − 4 m 0 w 2 with 4 m 0 w 2 ≡ 0 ( m o d 8 ) 4m_0w^2\equiv0\pmod8 4 m 0 w 2 ≡ 0 ( mod 8 ) , so this value lies in 1 + 8 Z 2 1+8\mathbb{Z}_2 1 + 8 Z 2 , and all of 1 + 8 Z 2 1+8\mathbb{Z}_2 1 + 8 Z 2 occurs with w = 0 w=0 w = 0 . If X = 2 w X=2w X = 2 w is even and Y Y Y is odd, then X 2 − m 0 Y 2 = 4 w 2 − m 0 Y 2 X^2-m_0Y^2=4w^2-m_0Y^2 X 2 − m 0 Y 2 = 4 w 2 − m 0 Y 2 . Here Y 2 Y^2 Y 2 ranges over 1 + 8 Z 2 1+8\mathbb{Z}_2 1 + 8 Z 2 by Lemma 5.2, so m 0 Y 2 m_0Y^2 m 0 Y 2 ranges over m 0 + 8 m 0 Z 2 = m 0 + 16 Z 2 m_0+8m_0\mathbb{Z}_2=m_0+16\mathbb{Z}_2 m 0 + 8 m 0 Z 2 = m 0 + 16 Z 2 , and 4 w 2 ≡ 0 ( m o d 16 ) 4w^2\equiv0\pmod{16} 4 w 2 ≡ 0 ( mod 16 ) for w w w even while 4 w 2 ≡ 4 ( m o d 16 ) 4w^2\equiv4\pmod{16} 4 w 2 ≡ 4 ( mod 16 ) for w w w odd. Hence the value lies in ( − m 0 + 16 Z 2 ) ∪ ( 4 − m 0 + 16 Z 2 ) (-m_0+16\mathbb{Z}_2)\cup(4-m_0+16\mathbb{Z}_2) ( − m 0 + 16 Z 2 ) ∪ ( 4 − m 0 + 16 Z 2 ) , and both cosets occur (take w = 0 w=0 w = 0 , respectively w = 1 w=1 w = 1 , with Y 2 Y^2 Y 2 varying). This completes the proof.
The case 2 does not divide d
Suppose first that d ≡ 1 ( m o d 8 ) d\equiv1\pmod8 d ≡ 1 ( mod 8 ) (split). By Lemma 5.2, d = s 2 d=s^2 d = s 2 for a unit s s s , so Q Q Q factors as X 2 − d Y 2 = ( X − s Y ) ( X + s Y ) X^2-dY^2=(X-sY)(X+sY) X 2 − d Y 2 = ( X − s Y ) ( X + s Y ) . This substitution has determinant 2 s 2s 2 s (valuation exactly 1, not a unit), so it is injective but not surjective on Z 2 \mathbb{Z}_2 Z 2 . Tracing parities directly, we see that X ≡ Y ( m o d 2 ) X\equiv Y\pmod2 X ≡ Y ( mod 2 ) corresponds exactly to U , V U,V U , V both even.
Proposition 6.2 (Split at 2). T 2 = 4 Z 2 T_2=4\mathbb{Z}_2 T 2 = 4 Z 2 , so μ 2 ( S 2 ) = 1 \mu_2(S_2)=1 μ 2 ( S 2 ) = 1 .
Proof. By the parity correspondence above, T 2 = { U V : U , V both even } T_2=\{UV: U,V\text{ both even}\} T 2 = { U V : U , V both even } . Writing U = 2 U ′ U=2U' U = 2 U ′ and V = 2 V ′ V=2V' V = 2 V ′ , with U ′ , V ′ U',V' U ′ , V ′ free since “both even” is the only constraint, we get U V = 4 U ′ V ′ UV=4U'V' U V = 4 U ′ V ′ . As U ′ , V ′ U',V' U ′ , V ′ range unconstrained over Z 2 \mathbb{Z}_2 Z 2 , the product U ′ V ′ U'V' U ′ V ′ hits every target directly (for example, U ′ = 1 U'=1 U ′ = 1 , V ′ = n V'=n V ′ = n gives n n n ), so T 2 = 4 Z 2 T_2=4\mathbb{Z}_2 T 2 = 4 Z 2 exactly. This gives μ 2 ( T 2 ) = 1 / 4 \mu_2(T_2)=1/4 μ 2 ( T 2 ) = 1/4 , and by the scaling of §6.1 we conclude that μ 2 ( S 2 ) = 4 ⋅ 1 4 = 1 \mu_2(S_2)=4\cdot\frac14=1 μ 2 ( S 2 ) = 4 ⋅ 4 1 = 1 .
Suppose now that d ≡ 5 ( m o d 8 ) d\equiv5\pmod8 d ≡ 5 ( mod 8 ) (inert). Then d d d is not a square (Lemma 5.2), so the factorization trick is unavailable, and we argue by valuation directly.
Proposition 6.3 (Inert at 2). If d ≡ 5 ( m o d 8 ) d\equiv5\pmod8 d ≡ 5 ( mod 8 ) , then T 2 = { 0 } ∪ { n : v 2 ( n ) even , v 2 ( n ) ≥ 2 } T_2=\{0\}\cup\{n:v_2(n)\text{ even},\ v_2(n)\ge2\} T 2 = { 0 } ∪ { n : v 2 ( n ) even , v 2 ( n ) ≥ 2 } , so μ 2 ( S 2 ) = 2 / 3 \mu_2(S_2)=2/3 μ 2 ( S 2 ) = 2/3 .
Proof. Let ( X , Y ) ≠ ( 0 , 0 ) (X,Y)\ne(0,0) ( X , Y ) = ( 0 , 0 ) with X ≡ Y ( m o d 2 ) X\equiv Y\pmod2 X ≡ Y ( mod 2 ) , and let j = min ( v 2 ( X ) , v 2 ( Y ) ) j=\min(v_2(X),v_2(Y)) j = min ( v 2 ( X ) , v 2 ( Y )) . We consider the cases j = 0 j=0 j = 0 and j ≥ 1 j\ge1 j ≥ 1 separately.
If j = 0 j=0 j = 0 , then X , Y X,Y X , Y are both odd, and by Lemma 6.1(b) the values X 2 − d Y 2 X^2-dY^2 X 2 − d Y 2 fill exactly the coset ( 1 − d ) + 8 Z 2 = 4 + 8 Z 2 (1-d)+8\mathbb{Z}_2=4+8\mathbb{Z}_2 ( 1 − d ) + 8 Z 2 = 4 + 8 Z 2 , which is the set of elements of valuation exactly 2 2 2 .
If j ≥ 1 j\ge1 j ≥ 1 , then X , Y X,Y X , Y are both even and the parity condition is automatic: ( X , Y ) = 2 j ( X 0 , Y 0 ) (X,Y)=2^j(X_0,Y_0) ( X , Y ) = 2 j ( X 0 , Y 0 ) with ( X 0 , Y 0 ) (X_0,Y_0) ( X 0 , Y 0 ) an arbitrary primitive pair, and X 2 − d Y 2 = 4 j n 0 X^2-dY^2=4^jn_0 X 2 − d Y 2 = 4 j n 0 with n 0 ∈ N 0 n_0\in N_0 n 0 ∈ N 0 , where N 0 N_0 N 0 is the set of Lemma 6.1 for m 0 = d m_0=d m 0 = d . Since d ≡ 5 ( m o d 8 ) d\equiv5\pmod8 d ≡ 5 ( mod 8 ) is odd, parts (b) and (c) of that lemma give:
N o o = 4 + 8 Z 2 , N o e = 1 + 4 Z 2 , N e o = − d + 4 Z 2 = 3 + 4 Z 2 , (53) N_{oo}=4+8\mathbb{Z}_2,\qquad N_{oe}=1+4\mathbb{Z}_2,\qquad N_{eo}=-d+4\mathbb{Z}_2=3+4\mathbb{Z}_2, \tag*{(53)} N oo = 4 + 8 Z 2 , N oe = 1 + 4 Z 2 , N eo = − d + 4 Z 2 = 3 + 4 Z 2 , (53)
so that N 0 = Z 2 × ∪ ( 4 + 8 Z 2 ) N_0=\mathbb{Z}_2^\times\cup(4+8\mathbb{Z}_2) N 0 = Z 2 × ∪ ( 4 + 8 Z 2 ) , the union of the set of elements of valuation 0 0 0 and the set of elements of valuation 2 2 2 . Therefore 4 j N 0 4^jN_0 4 j N 0 is the union of the elements of valuation 2 j 2j 2 j and those of valuation 2 j + 2 2j+2 2 j + 2 .
Putting the two cases together we find:
T 2 = { 0 } ∪ { v 2 = 2 } ∪ ⋃ j ≥ 1 ( { v 2 = 2 j } ∪ { v 2 = 2 j + 2 } ) = { 0 } ∪ { n : v 2 ( n ) even , v 2 ( n ) ≥ 2 } . (54) T_2=\{0\}\cup\{v_2=2\}\cup\bigcup_{j\ge1}\left(\{v_2=2j\}\cup\{v_2=2j+2\}\right)=\{0\}\cup\{n:v_2(n)\text{ even},\ v_2(n)\ge2\}. \tag*{(54)} T 2 = { 0 } ∪ { v 2 = 2 } ∪ j ≥ 1 ⋃ ( { v 2 = 2 j } ∪ { v 2 = 2 j + 2 } ) = { 0 } ∪ { n : v 2 ( n ) even , v 2 ( n ) ≥ 2 } . (54)
The set { v 2 = 2 j } \{v_2=2j\} { v 2 = 2 j } has measure 1 2 ⋅ 4 − j \frac{1}{2}\cdot4^{-j} 2 1 ⋅ 4 − j , so μ 2 ( T 2 ) = ∑ j ≥ 1 1 2 ⋅ 4 − j = 1 6 \mu_2(T_2)=\sum_{j\ge1}\frac{1}{2}\cdot4^{-j}=\frac{1}{6} μ 2 ( T 2 ) = ∑ j ≥ 1 2 1 ⋅ 4 − j = 6 1 and μ 2 ( S 2 ) = 4 ⋅ 1 6 = 2 3 \mu_2(S_2)=4\cdot\frac{1}{6}=\frac{2}{3} μ 2 ( S 2 ) = 4 ⋅ 6 1 = 3 2 . This completes the proof.
Thus, for 2 ∤ d 2\nmid d 2 ∤ d , the prime 2 behaves like a split or an inert prime in disguise: for d ≡ 1 ( m o d 8 ) d\equiv1\pmod8 d ≡ 1 ( mod 8 ) we have δ { 0 } ( 2 ) = 1 \delta_{\{0\}}(2)=1 δ { 0 } ( 2 ) = 1 and 2 contributes nothing to the singular series, while for d ≡ 5 ( m o d 8 ) d\equiv5\pmod8 d ≡ 5 ( mod 8 ) we have δ { 0 } ( 2 ) = 2 / 3 \delta_{\{0\}}(2)=2/3 δ { 0 } ( 2 ) = 2/3 , matching the shape p / ( p + 1 ) p/(p+1) p / ( p + 1 ) at “p = 2 p=2 p = 2 ” although it is obtained by mod-8 bookkeeping.
The case 4 ∣ d 4\mid d 4 ∣ d
Write d = 4 m d=4m d = 4 m . By §6.1, μ 2 ( S 2 ) = μ 2 ( T 2 ) \mu_2(S_2)=\mu_2(T_2) μ 2 ( S 2 ) = μ 2 ( T 2 ) for T 2 = { X 2 − m Y 2 : X , Y ∈ Z 2 } T_2=\{X^2-mY^2:X,Y\in\mathbb{Z}_2\} T 2 = { X 2 − m Y 2 : X , Y ∈ Z 2 } , unconstrained. Write m = 4 κ m 0 m=4^\kappa m_0 m = 4 κ m 0 with κ ≥ 0 \kappa\ge0 κ ≥ 0 and v 2 ( m 0 ) ∈ { 0 , 1 } v_2(m_0)\in\{0,1\} v 2 ( m 0 ) ∈ { 0 , 1 } , and set T 2 ( κ ) : = { X 2 − 4 κ m 0 Y 2 } T_2^{(\kappa)}:=\{X^2-4^\kappa m_0Y^2\} T 2 ( κ ) := { X 2 − 4 κ m 0 Y 2 } , so that T 2 = T 2 ( κ ) T_2=T_2^{(\kappa)} T 2 = T 2 ( κ ) .
We first treat the four base types (κ = 0 \kappa=0 κ = 0 ), that is, T 2 ( 0 ) = { X 2 − m 0 Y 2 : X , Y ∈ Z 2 } T_2^{(0)}=\{X^2-m_0Y^2:X,Y\in\mathbb{Z}_2\} T 2 ( 0 ) = { X 2 − m 0 Y 2 : X , Y ∈ Z 2 } with v 2 ( m 0 ) ∈ { 0 , 1 } v_2(m_0)\in\{0,1\} v 2 ( m 0 ) ∈ { 0 , 1 } . By Lemma 6.1(a), T 2 ( 0 ) = { 0 } ∪ ⋃ j ≥ 0 4 j N 0 T_2^{(0)}=\{0\}\cup\bigcup_{j\ge0}4^jN_0 T 2 ( 0 ) = { 0 } ∪ ⋃ j ≥ 0 4 j N 0 , so it suffices to determine N 0 N_0 N 0 in each case. We write μ 2 ( S 2 ) = μ 2 ( T 2 ( 0 ) ) \mu_2(S_2)=\mu_2(T_2^{(0)}) μ 2 ( S 2 ) = μ 2 ( T 2 ( 0 ) ) throughout (§6.1).
Proposition 6.4 (Base type m 0 ≡ 1 ( m o d 8 ) m_0\equiv1\pmod8 m 0 ≡ 1 ( mod 8 ) ). For m 0 ≡ 1 ( m o d 8 ) m_0\equiv1\pmod8 m 0 ≡ 1 ( mod 8 ) : T 2 ( 0 ) = Z 2 ∖ { v 2 = 1 } T_2^{(0)}=\mathbb{Z}_2\setminus\{v_2=1\} T 2 ( 0 ) = Z 2 ∖ { v 2 = 1 } , μ 2 ( S 2 ) = 3 / 4 \mu_2(S_2)=3/4 μ 2 ( S 2 ) = 3/4 .
Proof. Since 1 − m 0 ≡ 0 ( m o d 8 ) 1-m_0\equiv0\pmod8 1 − m 0 ≡ 0 ( mod 8 ) , Lemma 6.1(b) gives N o o = 8 Z 2 N_{oo}=8\mathbb{Z}_2 N oo = 8 Z 2 , and part (c) gives N o e = 1 + 4 Z 2 N_{oe}=1+4\mathbb{Z}_2 N oe = 1 + 4 Z 2 and N e o = − m 0 + 4 Z 2 = 3 + 4 Z 2 N_{eo}=-m_0+4\mathbb{Z}_2=3+4\mathbb{Z}_2 N eo = − m 0 + 4 Z 2 = 3 + 4 Z 2 . Thus N 0 = Z 2 × ∪ 8 Z 2 N_0=\mathbb{Z}_2^\times\cup8\mathbb{Z}_2 N 0 = Z 2 × ∪ 8 Z 2 : all units, together with all elements of valuation at least 3, and 0. Then j = 0 j=0 j = 0 contributes every unit and every element of valuation ≥ 3 \ge3 ≥ 3 , and j = 1 j=1 j = 1 contributes 4 Z 2 = { v 2 = 2 } 4\mathbb{Z}_2=\{v_2=2\} 4 Z 2 = { v 2 = 2 } . Together these (and 0) exhaust Z 2 ∖ { v 2 = 1 } \mathbb{Z}_2\setminus\{v_2=1\} Z 2 ∖ { v 2 = 1 } . Conversely, an element of 4 j N 0 4^jN_0 4 j N 0 has valuation 2 j 2j 2 j or at least 2 j + 3 2j+3 2 j + 3 , which is never 1. Hence T 2 ( 0 ) = Z 2 ∖ { v 2 = 1 } T_2^{(0)}=\mathbb{Z}_2\setminus\{v_2=1\} T 2 ( 0 ) = Z 2 ∖ { v 2 = 1 } , and μ 2 ( { v 2 = 1 } ) = 1 2 ⋅ 1 2 = 1 4 \mu_2(\{v_2=1\})=\frac{1}{2}\cdot\frac{1}{2}=\frac{1}{4} μ 2 ({ v 2 = 1 }) = 2 1 ⋅ 2 1 = 4 1 gives μ 2 ( S 2 ) = 3 4 \mu_2(S_2)=\frac{3}{4} μ 2 ( S 2 ) = 4 3 .
Proposition 6.5 (Base type m 0 ≡ 5 ( m o d 8 ) m_0\equiv5\pmod8 m 0 ≡ 5 ( mod 8 ) ). For m 0 ≡ 5 ( m o d 8 ) m_0\equiv5\pmod8 m 0 ≡ 5 ( mod 8 ) : T 2 ( 0 ) = { 0 } ∪ { n : v 2 ( n ) even } T_2^{(0)}=\{0\}\cup\{n:v_2(n)\text{ even}\} T 2 ( 0 ) = { 0 } ∪ { n : v 2 ( n ) even } , μ 2 ( S 2 ) = 2 / 3 \mu_2(S_2)=2/3 μ 2 ( S 2 ) = 2/3 .
Proof. Since 1 − m 0 ≡ 4 ( m o d 8 ) 1-m_0\equiv4\pmod8 1 − m 0 ≡ 4 ( mod 8 ) , Lemma 6.1 gives N o o = 4 + 8 Z 2 N_{oo}=4+8\mathbb{Z}_2 N oo = 4 + 8 Z 2 , N o e = 1 + 4 Z 2 N_{oe}=1+4\mathbb{Z}_2 N oe = 1 + 4 Z 2 , and N e o = − m 0 + 4 Z 2 = 3 + 4 Z 2 N_{eo}=-m_0+4\mathbb{Z}_2=3+4\mathbb{Z}_2 N eo = − m 0 + 4 Z 2 = 3 + 4 Z 2 , so N 0 = Z 2 × ∪ ( 4 + 8 Z 2 ) N_0=\mathbb{Z}_2^\times\cup(4+8\mathbb{Z}_2) N 0 = Z 2 × ∪ ( 4 + 8 Z 2 ) , the elements of valuation 0 and those of valuation 2. As in the proof of Proposition 6.3, 4 j N 0 4^jN_0 4 j N 0 consists of the elements of valuation 2 j 2j 2 j and 2 j + 2 2j+2 2 j + 2 , so T 2 ( 0 ) = { 0 } ∪ { v 2 even } T_2^{(0)}=\{0\}\cup\{v_2\text{ even}\} T 2 ( 0 ) = { 0 } ∪ { v 2 even } and μ 2 ( T 2 ( 0 ) ) = ∑ j ≥ 0 1 2 ⋅ 4 − j = 2 3 \mu_2(T_2^{(0)})=\sum_{j\ge0}\frac{1}{2}\cdot4^{-j}=\frac{2}{3} μ 2 ( T 2 ( 0 ) ) = ∑ j ≥ 0 2 1 ⋅ 4 − j = 3 2 .
Proposition 6.6 (Base type m 0 ≡ 3 ( m o d 4 ) m_0\equiv3\pmod4 m 0 ≡ 3 ( mod 4 ) ). For m 0 ≡ 3 , 7 ( m o d 8 ) m_0\equiv3,7\pmod8 m 0 ≡ 3 , 7 ( mod 8 ) (i.e. m 0 m_0 m 0 odd, m 0 ≡ 3 ( m o d 4 ) m_0\equiv3\pmod4 m 0 ≡ 3 ( mod 4 ) ):
T 2 ( 0 ) ∖ { 0 } = ⋃ j ≥ 0 4 j ( ( 1 + 4 Z 2 ) ∪ ( ( 1 − m 0 ) + 8 Z 2 ) ) , (55) T_2^{(0)}\setminus\{0\}=\bigcup_{j\ge0}4^j\left((1+4\mathbb{Z}_2)\cup((1-m_0)+8\mathbb{Z}_2)\right), \tag*{(55)} T 2 ( 0 ) ∖ { 0 } = j ≥ 0 ⋃ 4 j ( ( 1 + 4 Z 2 ) ∪ (( 1 − m 0 ) + 8 Z 2 ) ) , (55) where the second coset consists of elements of valuation exactly 1, and μ 2 ( S 2 ) = 1 / 2 \mu_2(S_2)=1/2 μ 2 ( S 2 ) = 1/2 .
Proof. Here − m 0 ≡ 1 ( m o d 4 ) -m_0\equiv1\pmod4 − m 0 ≡ 1 ( mod 4 ) , so Lemma 6.1(c) gives N o e = N e o = 1 + 4 Z 2 N_{oe}=N_{eo}=1+4\mathbb{Z}_2 N oe = N eo = 1 + 4 Z 2 , and part (b) gives N o o = ( 1 − m 0 ) + 8 Z 2 N_{oo}=(1-m_0)+8\mathbb{Z}_2 N oo = ( 1 − m 0 ) + 8 Z 2 , a single coset mod 8 of elements of valuation exactly 1 (as 1 − m 0 ≡ 2 ( m o d 4 ) 1-m_0\equiv2\pmod4 1 − m 0 ≡ 2 ( mod 4 ) ). So N 0 N_0 N 0 is the disjoint union of 1 + 4 Z 2 1+4\mathbb{Z}_2 1 + 4 Z 2 , of measure 1 4 \frac{1}{4} 4 1 and consisting of units, and ( 1 − m 0 ) + 8 Z 2 (1-m_0)+8\mathbb{Z}_2 ( 1 − m 0 ) + 8 Z 2 , of measure 1 8 \frac{1}{8} 8 1 and consisting of elements of valuation 1. By Lemma 6.1(a), this gives the stated description of T 2 ( 0 ) T_2^{(0)} T 2 ( 0 ) . Moreover 4 j N 0 4^jN_0 4 j N 0 consists of elements of valuations 2 j 2j 2 j and 2 j + 1 2j+1 2 j + 1 only, the sets 4 j N 0 4^jN_0 4 j N 0 for different j j j are pairwise disjoint, and μ 2 ( 4 j N 0 ) = 4 − j ⋅ 3 8 \mu_2(4^jN_0)=4^{-j}\cdot\frac{3}{8} μ 2 ( 4 j N 0 ) = 4 − j ⋅ 8 3 . Therefore μ 2 ( T 2 ( 0 ) ) = ∑ j ≥ 0 4 − j ⋅ 3 8 = 3 8 ⋅ 4 3 = 1 2 \mu_2(T_2^{(0)})=\sum_{j\ge0}4^{-j}\cdot\frac{3}{8}=\frac{3}{8}\cdot\frac{4}{3}=\frac{1}{2} μ 2 ( T 2 ( 0 ) ) = ∑ j ≥ 0 4 − j ⋅ 8 3 = 8 3 ⋅ 3 4 = 2 1 .
Proposition 6.7 (Base type v 2 ( m 0 ) = 1 v_2(m_0)=1 v 2 ( m 0 ) = 1 ). For v 2 ( m 0 ) = 1 v_2(m_0)=1 v 2 ( m 0 ) = 1 :
T 2 ( 0 ) ∖ { 0 } = ⋃ j ≥ 0 4 j ( ( { 1 , 1 − m 0 } + 8 Z 2 ) ∪ ( { − m 0 , 4 − m 0 } + 16 Z 2 ) ) , (56) T_2^{(0)}\setminus\{0\}=\bigcup_{j\ge0}4^j\left((\{1,1-m_0\}+8\mathbb{Z}_2)\cup(\{-m_0,4-m_0\}+16\mathbb{Z}_2)\right), \tag*{(56)} T 2 ( 0 ) ∖ { 0 } = j ≥ 0 ⋃ 4 j ( ({ 1 , 1 − m 0 } + 8 Z 2 ) ∪ ({ − m 0 , 4 − m 0 } + 16 Z 2 ) ) , (56) where the first two cosets consist of units and the last two of elements of valuation exactly 1, and μ 2 ( S 2 ) = 1 / 2 \mu_2(S_2)=1/2 μ 2 ( S 2 ) = 1/2 .
Proof. By Lemma 6.1(b) and (d), N 0 N_0 N 0 is the union of the two sets ( 1 + 8 Z 2 ) ∪ ( ( 1 − m 0 ) + 8 Z 2 ) (1+8\mathbb{Z}_2)\cup((1-m_0)+8\mathbb{Z}_2) ( 1 + 8 Z 2 ) ∪ (( 1 − m 0 ) + 8 Z 2 ) and ( − m 0 + 16 Z 2 ) ∪ ( 4 − m 0 + 16 Z 2 ) (-m_0+16\mathbb{Z}_2)\cup(4-m_0+16\mathbb{Z}_2) ( − m 0 + 16 Z 2 ) ∪ ( 4 − m 0 + 16 Z 2 ) , which gives the stated description of T 2 ( 0 ) T_2^{(0)} T 2 ( 0 ) by part (a) of that lemma. The first set consists of units, and its two cosets are distinct because 1 − m 0 ≡ 3 ( m o d 4 ) 1-m_0\equiv3\pmod{4} 1 − m 0 ≡ 3 ( mod 4 ) ; it has measure 1 8 + 1 8 = 1 4 \frac{1}{8}+\frac{1}{8}=\frac{1}{4} 8 1 + 8 1 = 4 1 . The second consists of elements of valuation exactly 1 1 1 , and its two cosets mod 16 16 16 are distinct (they differ by 4 4 4 ); it has measure 1 16 + 1 16 = 1 8 \frac{1}{16}+\frac{1}{16}=\frac{1}{8} 16 1 + 16 1 = 8 1 . As in the previous proof, the sets 4 j N 0 4^jN_0 4 j N 0 are pairwise disjoint, with μ 2 ( 4 j N 0 ) = 4 − j ⋅ 3 8 \mu_2(4^jN_0)=4^{-j}\cdot\frac{3}{8} μ 2 ( 4 j N 0 ) = 4 − j ⋅ 8 3 , so μ 2 ( T 2 ( 0 ) ) = 3 8 ⋅ 4 3 = 1 2 \mu_2(T_2^{(0)})=\frac{3}{8}\cdot\frac{4}{3}=\frac{1}{2} μ 2 ( T 2 ( 0 ) ) = 8 3 ⋅ 3 4 = 2 1 .
With the four base types in hand, we now turn to κ ≥ 1 \kappa\ge1 κ ≥ 1 , where we split on the parity of X X X alone. If X X X is even, then X = 2 X 1 X=2X_1 X = 2 X 1 , and we find:
X 2 − 4 κ m 0 Y 2 = 4 ( X 1 2 − 4 κ − 1 m 0 Y 2 ) . (57) X^2-4^\kappa m_0Y^2=4(X_1^2-4^{\kappa-1}m_0Y^2). \tag*{(57)} X 2 − 4 κ m 0 Y 2 = 4 ( X 1 2 − 4 κ − 1 m 0 Y 2 ) . (57)
which is the same problem one level down in κ \kappa κ , with X 1 , Y X_1,Y X 1 , Y free. This motivates the following description.
Proposition 6.8 (The recursion at 2). Let κ ≥ 1 \kappa\ge1 κ ≥ 1 , and let B κ B_\kappa B κ be the set of values of X 2 − 4 κ m 0 Y 2 X^2-4^\kappa m_0Y^2 X 2 − 4 κ m 0 Y 2 at pairs ( X , Y ) (X,Y) ( X , Y ) with X X X odd. Then:
T 2 ( κ ) = B κ ∪ 4 T 2 ( κ − 1 ) , B κ = { 1 + 4 Z 2 if κ = 1 and m 0 is odd , 1 + 8 Z 2 otherwise . (58) T_2^{(\kappa)}=B_\kappa\cup4T_2^{(\kappa-1)},\qquad
B_\kappa=
\begin{cases}
1+4\mathbb{Z}_2 & \text{if }\kappa=1\text{ and }m_0\text{ is odd},\\
1+8\mathbb{Z}_2 & \text{otherwise}.
\end{cases} \tag*{(58)} T 2 ( κ ) = B κ ∪ 4 T 2 ( κ − 1 ) , B κ = { 1 + 4 Z 2 1 + 8 Z 2 if κ = 1 and m 0 is odd , otherwise . (58) and the two sets in the union are disjoint.
Proof. The values at pairs with X X X even form 4 T 2 ( κ − 1 ) 4T_2^{(\kappa-1)} 4 T 2 ( κ − 1 ) , by the computation above. If X X X is odd (any Y Y Y ), then v 2 ( 4 κ m 0 Y 2 ) = 2 κ + v 2 ( m 0 ) + 2 v 2 ( Y ) ≥ 2 κ ≥ 2 v_2(4^\kappa m_0Y^2)=2\kappa+v_2(m_0)+2v_2(Y)\ge2\kappa\ge2 v 2 ( 4 κ m 0 Y 2 ) = 2 κ + v 2 ( m 0 ) + 2 v 2 ( Y ) ≥ 2 κ ≥ 2 , while v 2 ( X 2 ) = 0 v_2(X^2)=0 v 2 ( X 2 ) = 0 . These can never coincide, so every such value is a unit. For κ ≥ 2 \kappa\ge2 κ ≥ 2 , we have 4 κ m 0 Y 2 ≡ 0 ( m o d 8 ) 4^\kappa m_0Y^2\equiv0\pmod{8} 4 κ m 0 Y 2 ≡ 0 ( mod 8 ) regardless of Y Y Y (as 2 κ ≥ 4 2\kappa\ge4 2 κ ≥ 4 ), so X 2 − 4 κ m 0 Y 2 ≡ X 2 ≡ 1 ( m o d 8 ) X^2-4^\kappa m_0Y^2\equiv X^2\equiv1\pmod{8} X 2 − 4 κ m 0 Y 2 ≡ X 2 ≡ 1 ( mod 8 ) , and every element of 1 + 8 Z 2 1+8\mathbb{Z}_2 1 + 8 Z 2 is attained already with Y = 0 Y=0 Y = 0 , since it is a square by Lemma 5.2. For κ = 1 \kappa=1 κ = 1 , an identical computation splits on the parity of Y Y Y , giving 1 + 8 Z 2 1+8\mathbb{Z}_2 1 + 8 Z 2 if Y Y Y is even and ( 1 − 4 m 0 ) + 8 Z 2 (1-4m_0)+8\mathbb{Z}_2 ( 1 − 4 m 0 ) + 8 Z 2 if Y Y Y is odd. For m 0 m_0 m 0 odd we have 4 m 0 ≡ 4 ( m o d 8 ) 4m_0\equiv4\pmod{8} 4 m 0 ≡ 4 ( mod 8 ) , so the union is ( 1 + 8 Z 2 ) ∪ ( 5 + 8 Z 2 ) = 1 + 4 Z 2 (1+8\mathbb{Z}_2)\cup(5+8\mathbb{Z}_2)=1+4\mathbb{Z}_2 ( 1 + 8 Z 2 ) ∪ ( 5 + 8 Z 2 ) = 1 + 4 Z 2 , while for v 2 ( m 0 ) = 1 v_2(m_0)=1 v 2 ( m 0 ) = 1 we have 4 m 0 ≡ 0 ( m o d 8 ) 4m_0\equiv0\pmod{8} 4 m 0 ≡ 0 ( mod 8 ) , so both parities give 1 + 8 Z 2 1+8\mathbb{Z}_2 1 + 8 Z 2 . Finally, B κ B_\kappa B κ consists of units and 4 T 2 ( κ − 1 ) 4T_2^{(\kappa-1)} 4 T 2 ( κ − 1 ) of elements divisible by 4 4 4 , so the two sets are disjoint. This completes the proof.
Proposition 6.9 (The local density at 2 when 4 ∣ d 4\mid d 4 ∣ d ). Write ν ( κ ) : = μ 2 ( T 2 ( κ ) ) . \nu(\kappa):=\mu_2(T_2^{(\kappa)}). ν ( κ ) := μ 2 ( T 2 ( κ ) ) . By Proposition 6.8 , the recursion ν ( κ ) = μ 2 ( B κ ) + 1 4 ν ( κ − 1 ) \nu(\kappa)=\mu_2(B_\kappa)+\frac{1}{4}\nu(\kappa-1) ν ( κ ) = μ 2 ( B κ ) + 4 1 ν ( κ − 1 ) holds for κ ≥ 1 \kappa\ge1 κ ≥ 1 , with μ 2 ( B κ ) = 1 / 8 \mu_2(B_\kappa)=1/8 μ 2 ( B κ ) = 1/8 for κ ≥ 2 \kappa\ge2 κ ≥ 2 and μ 2 ( B 1 ) = 1 / 4 \mu_2(B_1)=1/4 μ 2 ( B 1 ) = 1/4 (odd m 0 m_0 m 0 ) or 1 / 8 1/8 1/8 (even m 0 m_0 m 0 ). Solving: the fixed point of the κ ≥ 2 \kappa\ge2 κ ≥ 2 recursion is L = 1 / 6 L=1/6 L = 1/6 , and:
ν ( κ ) = 1 6 + β ⋅ 4 − κ , β = 4 ( ν ( 1 ) − 1 6 ) , κ ≥ 1 , (59) \nu(\kappa)=\frac{1}{6}+\beta\cdot4^{-\kappa},\qquad\beta=4\left(\nu(1)-\frac{1}{6}\right),\qquad\kappa\ge1, \tag*{(59)} ν ( κ ) = 6 1 + β ⋅ 4 − κ , β = 4 ( ν ( 1 ) − 6 1 ) , κ ≥ 1 , (59) with ν ( 1 ) = μ 2 ( B 1 ) + 1 4 ν ( 0 ) \nu(1)=\mu_2(B_1)+\frac{1}{4}\nu(0) ν ( 1 ) = μ 2 ( B 1 ) + 4 1 ν ( 0 ) computed from Propositions 6.4 –6.7 , giving:
β = { 13 / 12 m 0 ≡ 1 ( m o d 8 ) (split base) , 1 m 0 ≡ 5 ( m o d 8 ) (inert base) , 5 / 6 m 0 ≡ 3 , 7 ( m o d 8 ) (ramified-odd base) , 1 / 3 v 2 ( m 0 ) = 1 (even- m 0 base) . (60) \beta=
\begin{cases}
13/12 & m_0\equiv1\pmod{8}\quad\text{(split base)},\\
1 & m_0\equiv5\pmod{8}\quad\text{(inert base)},\\
5/6 & m_0\equiv3,7\pmod{8}\quad\text{(ramified-odd base)},\\
1/3 & v_2(m_0)=1\quad\text{(even-}m_0\text{ base)}.
\end{cases} \tag*{(60)} β = ⎩ ⎨ ⎧ 13/12 1 5/6 1/3 m 0 ≡ 1 ( mod 8 ) (split base) , m 0 ≡ 5 ( mod 8 ) (inert base) , m 0 ≡ 3 , 7 ( mod 8 ) (ramified-odd base) , v 2 ( m 0 ) = 1 (even- m 0 base) . (60)
Proof. We first treat κ ≥ 2 \kappa\ge2 κ ≥ 2 . Substituting μ 2 ( B κ ) = 1 / 8 = 1 6 ⋅ 3 4 \mu_2(B_\kappa)=1/8=\frac{1}{6}\cdot\frac{3}{4} μ 2 ( B κ ) = 1/8 = 6 1 ⋅ 4 3 and solving, we get ν ( κ ) − 1 6 = 1 4 ( ν ( κ − 1 ) − 1 6 ) \nu(\kappa)-\frac{1}{6}=\frac{1}{4}\left(\nu(\kappa-1)-\frac{1}{6}\right) ν ( κ ) − 6 1 = 4 1 ( ν ( κ − 1 ) − 6 1 ) , so that ν ( κ ) − 1 6 = 4 − ( κ − 1 ) ( ν ( 1 ) − 1 6 ) \nu(\kappa)-\frac{1}{6}=4^{-(\kappa-1)}\left(\nu(1)-\frac{1}{6}\right) ν ( κ ) − 6 1 = 4 − ( κ − 1 ) ( ν ( 1 ) − 6 1 ) , that is, ν ( κ ) = 1 6 + β ⋅ 4 − κ \nu(\kappa)=\frac{1}{6}+\beta\cdot4^{-\kappa} ν ( κ ) = 6 1 + β ⋅ 4 − κ with β = 4 ( ν ( 1 ) − 1 6 ) \beta=4\left(\nu(1)-\frac{1}{6}\right) β = 4 ( ν ( 1 ) − 6 1 ) , for every κ ≥ 1 \kappa\ge1 κ ≥ 1 (the formula for κ = 1 \kappa=1 κ = 1 recovers itself trivially). It remains to compute ν ( 1 ) \nu(1) ν ( 1 ) in each of the four cases.
Case 1: Split base. We have ν ( 1 ) = 1 4 + 1 4 ⋅ 3 4 = 7 16 \nu(1)=\frac{1}{4}+\frac{1}{4}\cdot\frac{3}{4}=\frac{7}{16} ν ( 1 ) = 4 1 + 4 1 ⋅ 4 3 = 16 7 , hence β = 4 ( 7 16 − 1 6 ) = 4 ⋅ 13 48 = 13 12 \beta=4\left(\frac{7}{16}-\frac{1}{6}\right)=4\cdot\frac{13}{48}=\frac{13}{12} β = 4 ( 16 7 − 6 1 ) = 4 ⋅ 48 13 = 12 13 .
Case 2: Inert base. We have ν ( 1 ) = 1 4 + 1 4 ⋅ 2 3 = 5 12 \nu(1)=\frac{1}{4}+\frac{1}{4}\cdot\frac{2}{3}=\frac{5}{12} ν ( 1 ) = 4 1 + 4 1 ⋅ 3 2 = 12 5 , hence β = 4 ( 5 12 − 1 6 ) = 4 ⋅ 1 4 = 1 \beta=4\left(\frac{5}{12}-\frac{1}{6}\right)=4\cdot\frac{1}{4}=1 β = 4 ( 12 5 − 6 1 ) = 4 ⋅ 4 1 = 1 .
Case 3: Ramified-odd base. We have ν ( 1 ) = 1 4 + 1 4 ⋅ 1 2 = 3 8 \nu(1)=\frac{1}{4}+\frac{1}{4}\cdot\frac{1}{2}=\frac{3}{8} ν ( 1 ) = 4 1 + 4 1 ⋅ 2 1 = 8 3 , hence β = 4 ( 3 8 − 1 6 ) = 4 ⋅ 5 24 = 5 6 \beta=4\left(\frac{3}{8}-\frac{1}{6}\right)=4\cdot\frac{5}{24}=\frac{5}{6} β = 4 ( 8 3 − 6 1 ) = 4 ⋅ 24 5 = 6 5 . Case 4: Even-m 0 m_0 m 0 base. We have ν ( 1 ) = 1 8 + 1 4 ⋅ 1 2 = 1 4 \nu(1)=\frac{1}{8}+\frac{1}{4}\cdot\frac{1}{2}=\frac{1}{4} ν ( 1 ) = 8 1 + 4 1 ⋅ 2 1 = 4 1 , hence β = 4 ( 1 4 − 1 6 ) = 4 ⋅ 1 12 = 1 3 \beta=4\left(\frac{1}{4}-\frac{1}{6}\right)=4\cdot\frac{1}{12}=\frac{1}{3} β = 4 ( 4 1 − 6 1 ) = 4 ⋅ 12 1 = 3 1 .
This completes the proof.
Since μ 2 ( S 2 ) = μ 2 ( T 2 ) \mu_2(S_2)=\mu_2(T_2) μ 2 ( S 2 ) = μ 2 ( T 2 ) in this regime (§ 6.1 , genuine unit rescaling), Proposition 6.9 gives δ { 0 } ( 2 ) = ν ( κ ) = 1 6 + β ⋅ 4 − κ \delta_{\{0\}}(2)=\nu(\kappa)=\frac{1}{6}+\beta\cdot4^{-\kappa} δ { 0 } ( 2 ) = ν ( κ ) = 6 1 + β ⋅ 4 − κ directly, for every conductor depth κ ≥ 1 \kappa\ge1 κ ≥ 1 . This completes the exact computation of δ { 0 } ( 2 ) \delta_{\{0\}}(2) δ { 0 } ( 2 ) in every case.
Regularity at $p=2`
At p = 2 p=2 p = 2 the set S 2 S_2 S 2 need no longer contain, together with each nonzero element m m m , the whole class m + 2 v 2 ( m ) + 1 Z 2 m+2^{v_2(m)+1}\mathbb{Z}_2 m + 2 v 2 ( m ) + 1 Z 2 , since squares of units are detected modulo 8 8 8 and not modulo 2 2 2 . It does, however, contain the class m + 2 v 2 ( m ) + 3 Z 2 m+2^{v_2(m)+3}\mathbb{Z}_2 m + 2 v 2 ( m ) + 3 Z 2 ; that is, S 2 S_2 S 2 is 3-stable in the sense of Definition 5.14.
Lemma 6.10 (Stability of S 2 S_2 S 2 ). The set S 2 S_2 S 2 is 3-stable, and it is 1-stable if d d d is odd.
Proof. By § 6.1 we have S 2 = { m : λ m ∈ T 2 } S_2=\{m:\lambda m\in T_2\} S 2 = { m : λm ∈ T 2 } with λ = 4 a \lambda=4a λ = 4 a if 2 ∤ d 2\nmid d 2 ∤ d and λ = a \lambda=a λ = a if 4 ∣ d 4\mid d 4 ∣ d , so by Lemma 5.15(c) it is enough to show that T 2 T_2 T 2 is 3-stable, and 1-stable if d d d is odd.
Suppose first that 2 ∤ d 2\nmid d 2 ∤ d . By Propositions 6.2 and 6.3, T 2 T_2 T 2 is either 4 Z 2 4\mathbb{Z}_2 4 Z 2 or { 0 } ∪ { n : v 2 ( n ) even , v 2 ( n ) ≥ 2 } \{0\}\cup\{n:v_2(n)\text{ even},\ v_2(n)\ge2\} { 0 } ∪ { n : v 2 ( n ) even , v 2 ( n ) ≥ 2 } . In both cases, if n ∈ T 2 n\in T_2 n ∈ T 2 is nonzero, then T 2 T_2 T 2 contains every element of valuation v 2 ( n ) v_2(n) v 2 ( n ) , and in particular the class n + 2 v 2 ( n ) + 1 Z 2 n+2^{v_2(n)+1}\mathbb{Z}_2 n + 2 v 2 ( n ) + 1 Z 2 . Hence T 2 T_2 T 2 is 1-stable, and so also 3-stable by Lemma 5.15(a).
Suppose now that 4 ∣ d 4\mid d 4 ∣ d , and write T 2 = T 2 ( κ ) T_2=T_2^{(\kappa)} T 2 = T 2 ( κ ) as in § 6.3 . We argue by induction on κ \kappa κ . Let κ = 0 \kappa=0 κ = 0 . By Lemma 6.1(a), T 2 ( 0 ) = { 0 } ∪ ⋃ j ≥ 0 4 j N 0 T_2^{(0)}=\{0\}\cup\bigcup_{j\ge0}4^jN_0 T 2 ( 0 ) = { 0 } ∪ ⋃ j ≥ 0 4 j N 0 and N 0 = N o o ∪ N o e ∪ N e o N_0=N_{oo}\cup N_{oe}\cup N_{eo} N 0 = N oo ∪ N oe ∪ N eo . By parts (b)–(d) of that lemma, each of N o o N_{oo} N oo , N o e N_{oe} N oe , and N e o N_{eo} N eo is a union of cosets r + 2 s Z 2 r+2^s\mathbb{Z}_2 r + 2 s Z 2 of one of the following kinds:
cosets of 8 Z 2 8\mathbb{Z}_2 8 Z 2 or 4 Z 2 4\mathbb{Z}_2 4 Z 2 with r r r a unit, so that s ≤ 3 = v 2 ( r ) + 3 s\le3=v_2(r)+3 s ≤ 3 = v 2 ( r ) + 3 ;
the coset ( 1 − m 0 ) + 8 Z 2 (1-m_0)+8\mathbb{Z}_2 ( 1 − m 0 ) + 8 Z 2 when v 2 ( m 0 ) = 0 v_2(m_0)=0 v 2 ( m 0 ) = 0 , where v 2 ( 1 − m 0 ) ≥ 1 v_2(1-m_0)\ge1 v 2 ( 1 − m 0 ) ≥ 1 , so that s = 3 ≤ v 2 ( 1 − m 0 ) + 3 s=3\le v_2(1-m_0)+3 s = 3 ≤ v 2 ( 1 − m 0 ) + 3 ;
the cosets − m 0 + 16 Z 2 -m_0+16\mathbb{Z}_2 − m 0 + 16 Z 2 and 4 − m 0 + 16 Z 2 4-m_0+16\mathbb{Z}_2 4 − m 0 + 16 Z 2 when v 2 ( m 0 ) = 1 v_2(m_0)=1 v 2 ( m 0 ) = 1 , both of whose representatives have valuation exactly 1, so that s = 4 = 1 + 3 s=4=1+3 s = 4 = 1 + 3 .
Each of these is 3-stable by Lemma 5.15(d), so N 0 N_0 N 0 is 3-stable by Lemma 5.15(a). Applying Lemma 5.15(b) j j j times, each 4 j N 0 4^jN_0 4 j N 0 is 3-stable, and so is their union. This proves the case κ = 0 \kappa=0 κ = 0 .
Let κ ≥ 1 \kappa\ge1 κ ≥ 1 . By Proposition 6.8, T 2 ( κ ) = B κ ∪ 4 T 2 ( κ − 1 ) T_2^{(\kappa)}=B_\kappa\cup4T_2^{(\kappa-1)} T 2 ( κ ) = B κ ∪ 4 T 2 ( κ − 1 ) , where B κ B_\kappa B κ is either 1 + 4 Z 2 1+4\mathbb{Z}_2 1 + 4 Z 2 or 1 + 8 Z 2 1+8\mathbb{Z}_2 1 + 8 Z 2 . In both cases B κ B_\kappa B κ is a coset 1 + 2 s Z 2 1+2^s\mathbb{Z}_2 1 + 2 s Z 2 with s ≤ 3 = v 2 ( 1 ) + 3 s\le3=v_2(1)+3 s ≤ 3 = v 2 ( 1 ) + 3 , hence 3-stable by Lemma 5.15(d), and 4 T 2 ( κ − 1 ) 4T_2^{(\kappa-1)} 4 T 2 ( κ − 1 ) is 3-stable by Lemma 5.15(b) and the induction hypothesis. By Lemma 5.15(a) their union is 3-stable. This completes the proof.
Lemma 6.11 (Regularity at p = 2 p=2 p = 2 ). For every finite h ⊂ Z \mathbf{h}\subset\mathbb{Z} h ⊂ Z with # h = k ≥ 1 \#\mathbf{h}=k\ge1 # h = k ≥ 1 and every α ≥ 1 \alpha\ge1 α ≥ 1 :
0 ≤ δ h ( α ) ( 2 ) − δ h ( 2 ) ≤ 4 k 2 α . (61) 0\le\delta_{\mathbf{h}}^{(\alpha)}(2)-\delta_{\mathbf{h}}(2)\le\frac{4k}{2^\alpha}. \tag*{(61)} 0 ≤ δ h ( α ) ( 2 ) − δ h ( 2 ) ≤ 2 α 4 k . (61)
Proof. The proof is identical to that of Lemma 5.18, with Lemma 6.10 in place of Lemma 5.16. The set S 2 S_2 S 2 is closed and 3-stable, so Lemma 5.17 with p = 2 p=2 p = 2 and c = 3 c=3 c = 3 bounds the single-index discrepancy δ { 0 } ( α ) ( 2 ) − δ { 0 } ( 2 ) \delta_{\{0\}}^{(\alpha)}(2)-\delta_{\{0\}}(2) δ { 0 } ( α ) ( 2 ) − δ { 0 } ( 2 ) by 2 c − 1 / 2 α = 4 / 2 α 2^{c-1}/2^\alpha=4/2^\alpha 2 c − 1 / 2 α = 4/ 2 α . The reduction to the single-index discrepancy by the union bound over the k k k shifts (Claims 1 and 2 in the proof of Lemma 5.18) does not use the parity of p p p , and gives the stated bound.
Summary
Table 1 collects the results of §5 and §6. In it, S p S_p S p is described up to multiplication by a unit, which changes neither the measure nor the stability (Lemma 5.15(c)).
Table 1. The value sets S p S_p S p , their measures, and the constant c c c for which they are c c c -stable (Lemmas 5.16 and 6.10 ).
The singular series and its average
In this section we show that the product S h = ∏ p λ h ( p ) \mathfrak{S}_{\mathbf h}=\prod_p\lambda_{\mathbf h}(p) S h = ∏ p λ h ( p ) converges, and that S h \mathfrak{S}_{\mathbf h} S h has the correct average over a window of shifts. For the latter we adapt to our setting the simplified argument of Ford [7 ] , which replaces Gallagher’s original proof [8 ] for the primes; the exact local densities and regularity lemmas of § 5 and § 6 replace the corresponding facts for the primes.
A Fubini/CRT averaging identity
Lemma 7.1 (Averaging identity). Let G G G be a finite abelian group, T ⊆ G T\subseteq G T ⊆ G any subset, μ ( T ) = # T / # G \mu(T)=\#T/\#G μ ( T ) = # T /# G . For k ≥ 1 k\geq1 k ≥ 1 ,
1 # G k ∑ h ∈ G k μ ( ⋂ i ( T − h i ) ) = μ ( T ) k . (62) \frac{1}{\#G^k}\sum_{\mathbf h\in G^k}\mu\left(\bigcap_i(T-h_i)\right)=\mu(T)^k. \tag*{(62)} # G k 1 h ∈ G k ∑ μ ( i ⋂ ( T − h i ) ) = μ ( T ) k . (62) Proof. We expand the left-hand side:
1 # G k ∑ h 1 # G # { a ∈ G : a + h i ∈ T ∀ i } = 1 # G k + 1 ∑ h ∑ a ∏ i 1 T ( a + h i ) . (63) \frac{1}{\#G^k}\sum_{\mathbf h}\frac{1}{\#G}\#\{a\in G:a+h_i\in T\ \forall i\}=\frac{1}{\#G^{k+1}}\sum_{\mathbf h}\sum_a\prod_i1_T(a+h_i). \tag*{(63)} # G k 1 h ∑ # G 1 # { a ∈ G : a + h i ∈ T ∀ i } = # G k + 1 1 h ∑ a ∑ i ∏ 1 T ( a + h i ) . (63) Now swap the order of summation. For fixed a a a , we have:
∑ h ∈ G k ∏ i 1 T ( a + h i ) = ∏ i ( ∑ h i ∈ G 1 T ( a + h i ) ) = ( # T ) k , (64) \sum_{\mathbf h\in G^k}\prod_i1_T(a+h_i)=\prod_i\left(\sum_{h_i\in G}1_T(a+h_i)\right)=(\#T)^k, \tag*{(64)} h ∈ G k ∑ i ∏ 1 T ( a + h i ) = i ∏ ( h i ∈ G ∑ 1 T ( a + h i ) ) = ( # T ) k , (64) since each factor sums to # T \#T # T independently, as h i ↦ a + h i h_i\mapsto a+h_i h i ↦ a + h i is a bijection of G G G . So the total is:
1 # G k + 1 ∑ a ( # T ) k = # G ⋅ ( # T ) k # G k + 1 = μ ( T ) k , (65) \frac{1}{\#G^{k+1}}\sum_a(\#T)^k=\frac{\#G\cdot(\#T)^k}{\#G^{k+1}}=\mu(T)^k, \tag*{(65)} # G k + 1 1 a ∑ ( # T ) k = # G k + 1 # G ⋅ ( # T ) k = μ ( T ) k , (65) which is exactly what we wanted to show.
Apply this with G = Z / p α Z G=\mathbb{Z}/p^\alpha\mathbb{Z} G = Z / p α Z and T T T the set defining δ h ( α ) ( p ) \delta_{\mathbf h}^{(\alpha)}(p) δ h ( α ) ( p ) at each prime (Definition 4.4 ). Since Lemma 7.1 holds for any subset T T T , it applies verbatim, and gives:
1 p k α ∑ h m o d p α λ h ( α ) ( p ) = 1 , (66) \frac{1}{p^{k\alpha}}\sum_{\mathbf h\bmod p^\alpha}\lambda_{\mathbf h}^{(\alpha)}(p)=1, \tag*{(66)} p k α 1 h mod p α ∑ λ h ( α ) ( p ) = 1 , (66)
where λ h ( α ) ( p ) \lambda_{\mathbf h}^{(\alpha)}(p) λ h ( α ) ( p ) is the truncated local factor of Lemma 5.19, and k k k is the length of the tuple h \mathbf h h , even when its entries repeat. Thus the truncated local factor averages to exactly 1, at every prime and every level, regardless of what S p S_p S p actually is.
Convergence of the singular series
Corollary 7.2 (Convergence of the singular series). For every finite h ⊂ Z \mathbf{h} \subset\mathbb{Z} h ⊂ Z with # h = k \#\mathbf{h}=k # h = k , the product S h = ∏ p λ h ( p ) \mathfrak{S}_{\mathbf{h}}=\prod_p\lambda_{\mathbf{h}}(p) S h = ∏ p λ h ( p ) converges absolutely, and:
S h ≪ k , d ( log log ( ∣ det h ∣ + 3 ) ) k − 1 . (67) \mathfrak{S}_{\mathbf{h}}\ll_{k,d}\left(\log\log\left(\lvert\det\mathbf{h}\rvert+3\right)\right)^{k-1}. \tag*{(67)} S h ≪ k , d ( log log ( ∣ det h ∣ + 3 ) ) k − 1 . (67)
If λ h ( p ) = 0 \lambda_{\mathbf{h}}(p)=0 λ h ( p ) = 0 for some p p p , then we set S h = 0 \mathfrak{S}_{\mathbf{h}}=0 S h = 0 , and absolute convergence refers to the remaining factors.
Proof. At an odd split prime we have S p = Z p S_p=\mathbb{Z}_p S p = Z p (Proposition 5.5), so λ h ( p ) = 1 \lambda_{\mathbf{h}}(p)=1 λ h ( p ) = 1 and these primes may be ignored. We split the rest of the product into four kinds of primes, which are clearly disjoint (by parity, and by the trichotomy of §5.3): p = 2 p=2 p = 2 , the odd primes dividing d d d , the odd inert primes dividing det ( h ) \det(\mathbf{h}) det ( h ) (at most ω ( det h ) \omega(\det\mathbf{h}) ω ( det h ) of them), and the remaining odd inert primes. The first two kinds together are exactly the primes dividing 2 d 2d 2 d , so there are r : = ω ( 2 d ) r:=\omega(2d) r := ω ( 2 d ) of them. We treat three cases.
Case 1: The first two kinds, that is, p = 2 p=2 p = 2 and the odd primes dividing d d d . Here δ { 0 } ( p ) ≥ 1 / 6 \delta_{\{0\}}(p)\ge1/6 δ { 0 } ( p ) ≥ 1/6 uniformly. Indeed, Propositions 5.10–5.12 give δ { 0 } ( p ) > p / ( 2 ( p + 1 ) ) ≥ 3 / 8 \delta_{\{0\}}(p)>p/(2(p+1))\ge3/8 δ { 0 } ( p ) > p / ( 2 ( p + 1 )) ≥ 3/8 for odd p ∣ d p\mid d p ∣ d , while for p = 2 p=2 p = 2 Propositions 6.2, 6.3, and 6.4–6.7 give δ { 0 } ( 2 ) ≥ 1 / 2 \delta_{\{0\}}(2)\ge1/2 δ { 0 } ( 2 ) ≥ 1/2 when 2 ∤ d 2\nmid d 2 ∤ d or 4 ∣ d 4\mid d 4 ∣ d with conductor depth κ = 0 \kappa=0 κ = 0 , and Proposition 6.9 gives δ { 0 } ( 2 ) > 1 / 6 \delta_{\{0\}}(2)>1/6 δ { 0 } ( 2 ) > 1/6 for every conductor depth κ ≥ 1 \kappa\ge1 κ ≥ 1 . Lemma 5.19 therefore gives
λ h ( p ) ≤ δ { 0 } ( p ) 1 − k ≤ 6 k − 1 . \lambda_{\mathbf{h}}(p)\le\delta_{\{0\}}(p)^{1-k}\le6^{k-1}. λ h ( p ) ≤ δ { 0 } ( p ) 1 − k ≤ 6 k − 1 .
Case 2: The odd inert primes dividing det ( h ) \det(\mathbf{h}) det ( h ) . Here Lemma 5.21 gives λ h ( p ) ≤ ( 1 + 1 / p ) k − 1 \lambda_{\mathbf{h}}(p)\le(1+1/p)^{k-1} λ h ( p ) ≤ ( 1 + 1/ p ) k − 1 . The number of such primes is at most ω ( n ) \omega(n) ω ( n ) , where n : = ∣ det h ∣ n:=\lvert\det\mathbf{h}\rvert n := ∣ det h ∣ , and is not bounded in terms of k k k alone, so we must bound the product of these factors with some care. A product ∏ p ∈ P ( 1 + 1 / p ) \prod_{p\in P}(1+1/p) ∏ p ∈ P ( 1 + 1/ p ) over a set P P P of ω ( n ) \omega(n) ω ( n ) primes is largest when P P P consists of the first ω ( n ) \omega(n) ω ( n ) primes. Since ω ( n ) ≪ log n / log log n \omega(n)\ll\log n/\log\log n ω ( n ) ≪ log n / log log n , the ω ( n ) \omega(n) ω ( n ) -th prime is ≪ log n \ll\log n ≪ log n , and Mertens’ second theorem gives:
∏ p ∣ det h p o d d i n e r t λ h ( p ) ≤ ∏ p ≪ log n ( 1 + 1 p ) k − 1 ≪ k ( log log ( n + 3 ) ) k − 1 . (68) \prod_{\substack{p\mid\det\mathbf{h}\\p\ \mathrm{odd\ inert}}}\lambda_{\mathbf{h}}(p)
\le\prod_{p\ll\log n}\left(1+\frac{1}{p}\right)^{k-1}
\ll_k\left(\log\log(n+3)\right)^{k-1}. \tag*{(68)} p ∣ d e t h p odd inert ∏ λ h ( p ) ≤ p ≪ l o g n ∏ ( 1 + p 1 ) k − 1 ≪ k ( log log ( n + 3 ) ) k − 1 . (68)
Case 3: The remaining odd inert primes. Here Lemma 5.20 gives λ h ( p ) = 1 + O k ( p − 2 ) \lambda_{\mathbf{h}}(p)=1+O_k(p^{-2}) λ h ( p ) = 1 + O k ( p − 2 ) , and ∑ p p − 2 < ∞ \sum_p p^{-2}<\infty ∑ p p − 2 < ∞ closes the argument.
Putting these together, the first two kinds contribute at most 6 ( k − 1 ) r 6^{(k-1)r} 6 ( k − 1 ) r , a constant depending only on k k k and d d d ; the third kind contributes ≪ k ( log log ( ∣ det h ∣ + 3 ) ) k − 1 \ll_k(\log\log(\lvert\det\mathbf{h}\rvert+3))^{k-1} ≪ k ( log log (∣ det h ∣ + 3 ) ) k − 1 , a finite product for each fixed h \mathbf{h} h ; and the last kind converges absolutely to a quantity ≪ k 1 \ll_k 1 ≪ k 1 . This completes the proof. □
The Ford-style average
Theorem 7.3 (Average of the singular series). Fix k ≥ 1 k\ge1 k ≥ 1 . As H → ∞ H\to\infty H → ∞ , with the sum running over integer tuples:
∑ 0 < h 1 < ⋯ < h k < H S h = H k k ! ( 1 + O k , d ( 1 log log H ) ) . (69) \sum_{0<h_1<\cdots<h_k<H}\mathfrak{S}_{\mathbf{h}}
=\frac{H^k}{k!}\left(1+O_{k,d}\left(\frac{1}{\log\log H}\right)\right). \tag*{(69)} 0 < h 1 < ⋯ < h k < H ∑ S h = k ! H k ( 1 + O k , d ( log log H 1 ) ) . (69)
The core idea of the proof, following [7 ] , is to truncate the Euler product at a cutoff Y = c log H Y=c\log H Y = c log H , where 0 < c < 1 / 2 0<c<1/2 0 < c < 1/2 is fixed. The primes above Y Y Y contribute a factor 1 + o ( 1 ) 1+o(1) 1 + o ( 1 ) , uniformly in h \mathbf{h} h , while the primes up to Y Y Y are replaced by a periodic function Φ \Phi Φ whose period Q Q Q is at most H 2 c + o ( 1 ) H^{2c+o(1)} H 2 c + o ( 1 ) , a power of H H H strictly smaller than H H H , and whose sum over a full period is computed exactly from Lemma 7.1 via the Chinese remainder theorem.
Proof. Recall from the proof of Corollary 7.2 that p = 2 p=2 p = 2 together with the odd primes dividing d d d , that is, the r = ω ( 2 d ) r=\omega(2d) r = ω ( 2 d ) primes dividing 2 d 2d 2 d , satisfy δ { 0 } ( p ) ≥ 1 / 6 \delta_{\{0\}}(p)\ge1/6 δ { 0 } ( p ) ≥ 1/6 uniformly. We call these the r r r exceptional primes below. Fix 0 < c < 1 / 2 0<c<1/2 0 < c < 1/2 , and set Y : = c log H Y:=c\log H Y := c log H ; for H H H large enough (depending only on d d d ), Y Y Y exceeds all r r r exceptional primes, so that only odd inert primes contribute to p > Y p>Y p > Y . Set L : = log H ( log log H ) r L:=\log H(\log\log H)^r L := log H ( log log H ) r , and for each p ≤ Y p\le Y p ≤ Y set α p : = ⌊ log L / log p ⌋ \alpha_p:=\lfloor\log L/\log p\rfloor α p := ⌊ log L / log p ⌋ , so that:
L ≤ p α p < p L . (70) L\le p^{\alpha_p}<pL. \tag*{(70)} L ≤ p α p < p L . (70)
Let Q : = ∏ p ≤ Y p α p Q := \prod_{p \le Y} p^{\alpha_p} Q := ∏ p ≤ Y p α p , and define the Q Q Q -periodic function Φ ( h ) : = ∏ p ≤ Y λ h ( α p ) ( p ) \Phi(\mathbf{h}) := \prod_{p \le Y} \lambda_{\mathbf{h}}^{(\alpha_p)}(p) Φ ( h ) := ∏ p ≤ Y λ h ( α p ) ( p ) . Throughout, implied constants may depend on k k k and d d d . Let:
D : = { h ∈ [ 0 , H ] k ∩ Z k : h 1 , … , h k pairwise distinct } . (71) D := \{\mathbf{h} \in[0,H]^k \cap\mathbb{Z}^k : h_1,\ldots,h_k \text{ pairwise distinct}\}. \tag*{(71)} D := { h ∈ [ 0 , H ] k ∩ Z k : h 1 , … , h k pairwise distinct } . (71)
The singular series S h \mathfrak{S}_{\mathbf{h}} S h is only defined for h ∈ D \mathbf{h} \in D h ∈ D (Definition 4.5), and indeed det h = 0 \det\mathbf{h} = 0 det h = 0 for every tuple with a repeated coordinate, whereas the finite product Φ ( h ) \Phi(\mathbf{h}) Φ ( h ) is defined for every h ∈ Z k \mathbf{h} \in\mathbb{Z}^k h ∈ Z k . We split the proof into five claims; Claims 1 and 4 concern only tuples in D D D , while Claim 5 is a statement about the full box.
Claim 1: We have, uniformly in h ∈ D \mathbf{h} \in D h ∈ D :
∏ p > Y χ d ( p ) = − 1 λ h ( p ) = 1 + O k ( 1 log log H ) . (72) \prod_{\substack{p>Y\\ \chi_d(p)=-1}} \lambda_{\mathbf{h}}(p) = 1 + O_k\left(\frac{1}{\log\log H}\right). \tag*{(72)} p > Y χ d ( p ) = − 1 ∏ λ h ( p ) = 1 + O k ( log log H 1 ) . (72)
Proof of Claim 1: We split by whether p ∣ det ( h ) p \mid\det(\mathbf{h}) p ∣ det ( h ) . For p ∤ det ( h ) p \nmid\det(\mathbf{h}) p ∤ det ( h ) , Lemma 5.20 gives λ h ( p ) = 1 + O k ( p − 2 ) \lambda_{\mathbf{h}}(p) = 1 + O_k(p^{-2}) λ h ( p ) = 1 + O k ( p − 2 ) , and ∑ p > Y p − 2 = O ( 1 / Y ) \sum_{p>Y} p^{-2} = O(1/Y) ∑ p > Y p − 2 = O ( 1/ Y ) . For p ∣ det ( h ) p \mid\det(\mathbf{h}) p ∣ det ( h ) , Lemma 5.21 gives the upper bound λ h ( p ) ≤ ( 1 + 1 / p ) k − 1 = 1 + O k ( 1 / p ) \lambda_{\mathbf{h}}(p) \le(1+1/p)^{k-1} = 1 + O_k(1/p) λ h ( p ) ≤ ( 1 + 1/ p ) k − 1 = 1 + O k ( 1/ p ) . For the lower bound, observe that every unit lies in S p S_p S p (Proposition 5.6), so δ h ( p ) \delta_{\mathbf{h}}(p) δ h ( p ) is at least the measure of the set of a ∈ Z p a \in\mathbb{Z}_p a ∈ Z p for which every a + h i a+h_i a + h i is a unit. This set is the complement of at most k k k residue classes modulo p p p , so δ h ( p ) ≥ 1 − k / p \delta_{\mathbf{h}}(p) \ge1-k/p δ h ( p ) ≥ 1 − k / p . Since δ { 0 } ( p ) ≤ 1 \delta_{\{0\}}(p) \le1 δ { 0 } ( p ) ≤ 1 , we get λ h ( p ) ≥ 1 − k / p \lambda_{\mathbf{h}}(p) \ge1-k/p λ h ( p ) ≥ 1 − k / p . Together these give λ h ( p ) = 1 + O k ( 1 / p ) = 1 + O k ( 1 / Y ) \lambda_{\mathbf{h}}(p) = 1+O_k(1/p)=1+O_k(1/Y) λ h ( p ) = 1 + O k ( 1/ p ) = 1 + O k ( 1/ Y ) , and there are at most ω ( det h ) = O k ( log H / log log H ) \omega(\det\mathbf{h})=O_k(\log H/\log\log H) ω ( det h ) = O k ( log H / log log H ) such primes, since h ∈ D \mathbf{h}\in D h ∈ D gives 0 < ∣ det h ∣ ≤ H ( k 2 ) 0<|\det\mathbf{h}|\le H^{\binom{k}{2}} 0 < ∣ det h ∣ ≤ H ( 2 k ) and the number of distinct prime factors of an integer n ≥ 1 n\ge1 n ≥ 1 is O ( log n / log log n ) O(\log n/\log\log n) O ( log n / log log n ) . So we obtain:
∏ p > Y χ d ( p ) = − 1 λ h ( p ) = ( 1 + O k ( 1 / Y ) ) ( 1 + O k ( 1 / Y ) ) O k ( log H / log log H ) (73) \prod_{\substack{p>Y\\ \chi_d(p)=-1}} \lambda_{\mathbf{h}}(p) = \left(1+O_k(1/Y)\right)\left(1+O_k(1/Y)\right)^{O_k(\log H/\log\log H)} \tag*{(73)} p > Y χ d ( p ) = − 1 ∏ λ h ( p ) = ( 1 + O k ( 1/ Y ) ) ( 1 + O k ( 1/ Y ) ) O k ( l o g H / l o g l o g H ) (73)
= 1 + O k ( log H Y log log H ) , (74) =1+O_k\left(\frac{\log H}{Y\log\log H}\right), \tag*{(74)} = 1 + O k ( Y log log H log H ) , (74)
uniformly in h ∈ D \mathbf{h}\in D h ∈ D . Substituting Y = c log H Y=c\log H Y = c log H , the last expression is 1 + O k ( 1 / log log H ) 1+O_k(1/\log\log H) 1 + O k ( 1/ log log H ) . This proves Claim 1.
Claim 2: We have Q ≤ H 2 c + o ( 1 ) Q\le H^{2c+o(1)} Q ≤ H 2 c + o ( 1 ) . In particular, setting η : = ( 1 − 2 c ) / 2 > 0 \eta:=(1-2c)/2>0 η := ( 1 − 2 c ) /2 > 0 , we have Q ≤ H 1 − η Q\le H^{1-\eta} Q ≤ H 1 − η for all sufficiently large H H H .
Proof of Claim 2: Since p α p < p L p^{\alpha_p}<pL p α p < p L for every p ≤ Y p\le Y p ≤ Y , we have:
log Q = ∑ p ≤ Y α p log p < ∑ p ≤ Y ( log L + log p ) = π ( Y ) log L + ϑ ( Y ) , (75) \log Q=\sum_{p\le Y}\alpha_p\log p<\sum_{p\le Y}(\log L+\log p)=\pi(Y)\log L+\vartheta(Y), \tag*{(75)} log Q = p ≤ Y ∑ α p log p < p ≤ Y ∑ ( log L + log p ) = π ( Y ) log L + ϑ ( Y ) , (75)
where ϑ ( Y ) : = ∑ p ≤ Y log p \vartheta(Y):=\sum_{p\le Y}\log p ϑ ( Y ) := ∑ p ≤ Y log p . By the prime number theorem, π ( Y ) ∼ Y / log Y \pi(Y)\sim Y/\log Y π ( Y ) ∼ Y / log Y and ϑ ( Y ) ∼ Y \vartheta(Y)\sim Y ϑ ( Y ) ∼ Y . Moreover log L = log log H + k log log log H ∼ log log H ∼ log Y \log L=\log\log H+k\log\log\log H\sim\log\log H\sim\log Y log L = log log H + k log log log H ∼ log log H ∼ log Y , so π ( Y ) log L ∼ Y \pi(Y)\log L\sim Y π ( Y ) log L ∼ Y . Putting these together we get:
log Q < ( 2 + o ( 1 ) ) Y = ( 2 c + o ( 1 ) ) log H , (76) \log Q<(2+o(1))Y=(2c+o(1))\log H, \tag*{(76)} log Q < ( 2 + o ( 1 )) Y = ( 2 c + o ( 1 )) log H , (76)
that is, Q ≤ H 2 c + o ( 1 ) Q\le H^{2c+o(1)} Q ≤ H 2 c + o ( 1 ) . Since 2 c < 1 − η 2c<1-\eta 2 c < 1 − η , the second statement follows. This proves Claim 2.
Claim 3: We have ∥ Φ ∥ ∞ ≪ k , d ( log log H ) k − 1 \|\Phi\|_\infty\ll_{k,d}(\log\log H)^{k-1} ∥Φ ∥ ∞ ≪ k , d ( log log H ) k − 1 , and the identical bound holds for ∏ p ≤ Y λ h ( p ) \prod_{p\le Y}\lambda_{\mathbf{h}}(p) ∏ p ≤ Y λ h ( p ) , uniformly in h ∈ D \mathbf{h}\in D h ∈ D .
Proof of Claim 3: At an odd split prime we have S p = Z p S_p=\mathbb{Z}_p S p = Z p (Proposition 5.5), so every factor at p p p , whether truncated or exact, equals 1. We split the remaining primes p ≤ Y p\le Y p ≤ Y into the r r r exceptional primes and the odd inert primes < Y <Y < Y . For the exceptional primes, the lower bound in Lemma 5.18 (respectively Lemma 6.11 at p = 2 p=2 p = 2 ) gives δ { 0 } ( α p ) ( p ) ≥ δ { 0 } ( p ) ≥ 1 / 6 \delta_{\{0\}}^{(\alpha_p)}(p)\ge\delta_{\{0\}}(p)\ge1/6 δ { 0 } ( α p ) ( p ) ≥ δ { 0 } ( p ) ≥ 1/6 , so λ h ( α p ) ( p ) ≤ δ { 0 } ( α p ) ( p ) 1 − k ≤ 6 k − 1 \lambda_{\mathbf{h}}^{(\alpha_p)}(p)\le\delta_{\{0\}}^{(\alpha_p)}(p)^{1-k}\le6^{k-1} λ h ( α p ) ( p ) ≤ δ { 0 } ( α p ) ( p ) 1 − k ≤ 6 k − 1 by Lemma 5.19, and these r r r primes contribute at most 6 ( k − 1 ) r 6^{(k-1)r} 6 ( k − 1 ) r to Φ \Phi Φ , a constant depending only on k , d k,d k , d .
For the odd inert primes ≤ Y \le Y ≤ Y , Proposition 5.6 gives δ { 0 } ( p ) = p / ( p + 1 ) \delta_{\{0\}}(p)=p/(p+1) δ { 0 } ( p ) = p / ( p + 1 ) exactly, and the same lower bound in Lemma 5.18 gives δ { 0 } ( α p ) ( p ) ≥ p / ( p + 1 ) \delta_{\{0\}}^{(\alpha_p)}(p)\ge p/(p+1) δ { 0 } ( α p ) ( p ) ≥ p / ( p + 1 ) . So Lemma 5.19 gives λ h ( α p ) ( p ) ≤ ( 1 + 1 / p ) k − 1 \lambda_{\mathbf{h}}^{(\alpha_p)}(p)\le(1+1/p)^{k-1} λ h ( α p ) ( p ) ≤ ( 1 + 1/ p ) k − 1 , which identical to the untruncated bound of Lemma 5.21. We find:
∏ p ≤ Y p o d d i n e r t λ h ( α p ) ( p ) ≤ ∏ p ≤ Y ( 1 + 1 p ) k − 1 ≪ k exp ( ( k − 1 ) ∑ p ≤ Y 1 p ) (77) \prod_{\substack{p\le Y\\p\ \mathrm{odd\ inert}}}\lambda_h^{(\alpha_p)}(p)\le\prod_{p\le Y}\left(1+\frac{1}{p}\right)^{k-1}\ll_k\exp\left((k-1)\sum_{p\le Y}\frac{1}{p}\right) \tag*{(77)} p ≤ Y p odd inert ∏ λ h ( α p ) ( p ) ≤ p ≤ Y ∏ ( 1 + p 1 ) k − 1 ≪ k exp ( k − 1 ) p ≤ Y ∑ p 1 (77)
≪ k ( log Y ) k − 1 ≪ k ( log log H ) k − 1 , (78) \ll_k (\log Y)^{k-1}\ll_k(\log\log H)^{k-1}, \tag*{(78)} ≪ k ( log Y ) k − 1 ≪ k ( log log H ) k − 1 , (78)
where ( ∗ ) (*) ( ∗ ) is Mertens’ second theorem, and the last step uses log Y ∼ log log H \log Y\sim\log\log H log Y ∼ log log H . Combining the two kinds of primes we get ∥ Φ ∥ ∞ ≪ k , d ( log log H ) k − 1 \|\Phi\|_\infty\ll_{k,d}(\log\log H)^{k-1} ∥Φ ∥ ∞ ≪ k , d ( log log H ) k − 1 , and the identical bound holds for ∏ p ≤ Y λ h ( p ) \prod_{p\le Y}\lambda_h(p) ∏ p ≤ Y λ h ( p ) by the same computation with α p \alpha_p α p dropped. This proves Claim 3.
Claim 4. We have ∣ ∏ p ≤ Y λ h ( p ) − Φ ( h ) ∣ ≪ ( log log H ) − 2 \left|\prod_{p\le Y}\lambda_h(p)-\Phi(h)\right|\ll(\log\log H)^{-2} ∏ p ≤ Y λ h ( p ) − Φ ( h ) ≪ ( log log H ) − 2 , uniformly in h ∈ D \mathbf h\in D h ∈ D .
Proof of Claim 4: For p ≤ Y p\le Y p ≤ Y , write a : = δ h ( p ) a:=\delta_{\mathbf h}(p) a := δ h ( p ) , a ′ : = δ h ( α p ) ( p ) a':=\delta_{\mathbf h}^{(\alpha_p)}(p) a ′ := δ h ( α p ) ( p ) , b : = δ { 0 } ( p ) b:=\delta_{\{0\}}(p) b := δ { 0 } ( p ) , and b ′ : = δ { 0 } ( α p ) ( p ) b':=\delta_{\{0\}}^{(\alpha_p)}(p) b ′ := δ { 0 } ( α p ) ( p ) . By Lemma 5.18 (or Lemma 6.11 at p = 2 p=2 p = 2 ), we have 0 ≤ a ′ − a ≤ 4 k / p α p 0\le a'-a\le4k/p^{\alpha_p} 0 ≤ a ′ − a ≤ 4 k / p α p and 0 ≤ b ′ − b ≤ 4 / p α p 0\le b'-b\le4/p^{\alpha_p} 0 ≤ b ′ − b ≤ 4/ p α p (the constant 4 is needed only at p = 2 p=2 p = 2 ), and b , b ′ ≥ 1 / 6 b,b'\ge1/6 b , b ′ ≥ 1/6 throughout, by the proof of Claim 3. Moreover a ′ ≤ b ′ ≤ 1 a'\le b'\le1 a ′ ≤ b ′ ≤ 1 (Lemma 5.19 ), and ∣ 1 / b k − 1 / b ′ k ∣ ≤ k max ( 1 / b , 1 / b ′ ) k + 1 ( b ′ − b ) |1/b^k-1/b'^k|\le k\max(1/b,1/b')^{k+1}(b'-b) ∣1/ b k − 1/ b ′ k ∣ ≤ k max ( 1/ b , 1/ b ′ ) k + 1 ( b ′ − b ) by the mean value bound. This gives:
∣ λ h ( p ) − λ h ( α p ) ( p ) ∣ = ∣ a b k − a ′ b ′ k ∣ (79) \left|\lambda_{\mathbf h}(p)-\lambda_{\mathbf h}^{(\alpha_p)}(p)\right|=\left|\frac{a}{b^k}-\frac{a'}{b'^k}\right| \tag*{(79)} λ h ( p ) − λ h ( α p ) ( p ) = b k a − b ′ k a ′ (79)
≤ ( ∗ ) a ′ − a b k + a ′ ∣ 1 b k − 1 b ′ k ∣ (80) \underset{(*)}{\le}\frac{a'-a}{b^k}+a'\left|\frac{1}{b^k}-\frac{1}{b'^k}\right| \tag*{(80)} ( ∗ ) ≤ b k a ′ − a + a ′ b k 1 − b ′ k 1 (80)
≤ ( ∗ ∗ ) 4 k ⋅ 6 k p α p + 4 k ⋅ 6 k + 1 p α p = C k p α p , (81) \underset{(**)}{\le}\frac{4k\cdot6^k}{p^{\alpha_p}}+\frac{4k\cdot6^{k+1}}{p^{\alpha_p}}=\frac{C_k}{p^{\alpha_p}}, \tag*{(81)} ( ∗∗ ) ≤ p α p 4 k ⋅ 6 k + p α p 4 k ⋅ 6 k + 1 = p α p C k , (81)
for a constant C k C_k C k depending only on k k k . Here ( ∗ ) (*) ( ∗ ) follows from the triangle inequality after adding and subtracting a ′ / b k a'/b^k a ′ / b k , and ( ∗ ∗ ) (**) ( ∗ ∗ ) from the bounds on a ′ − a a'-a a ′ − a , b , b ′ b,b' b , b ′ , and a ′ a' a ′ just recorded, together with the mean value bound.
To pass from this per-prime bound to a bound on the difference of the two full products, write p 1 < ⋯ < p M p_1<\cdots<p_M p 1 < ⋯ < p M for the primes ≤ Y \le Y ≤ Y (M = π ( Y ) M=\pi(Y) M = π ( Y ) ), and for 0 ≤ j ≤ M 0\le j\le M 0 ≤ j ≤ M define the hybrid product with the first j j j factors truncated and the rest exact:
Π j : = λ h ( α p 1 ) ( p 1 ) ⋯ λ h ( α p j ) ( p j ) ⋅ λ h ( p j + 1 ) ⋯ λ h ( p M ) . (82) \Pi_j:=\lambda_{\mathbf h}^{(\alpha_{p_1})}(p_1)\cdots\lambda_{\mathbf h}^{(\alpha_{p_j})}(p_j)\cdot\lambda_{\mathbf h}(p_{j+1})\cdots\lambda_{\mathbf h}(p_M). \tag*{(82)} Π j := λ h ( α p 1 ) ( p 1 ) ⋯ λ h ( α p j ) ( p j ) ⋅ λ h ( p j + 1 ) ⋯ λ h ( p M ) . (82)
Then Π 0 = ∏ p ≤ Y λ h ( p ) \Pi_0=\prod_{p\le Y}\lambda_{\mathbf h}(p) Π 0 = ∏ p ≤ Y λ h ( p ) and Π M = Φ ( h ) \Pi_M=\Phi(\mathbf h) Π M = Φ ( h ) , so telescoping gives:
∏ p ≤ Y λ h ( p ) − Φ ( h ) = Π 0 − Π M = ∑ j = 1 M ( Π j − 1 − Π j ) . (83) \prod_{p\le Y}\lambda_{\mathbf h}(p)-\Phi(\mathbf h)=\Pi_0-\Pi_M=\sum_{j=1}^{M}(\Pi_{j-1}-\Pi_j). \tag*{(83)} p ≤ Y ∏ λ h ( p ) − Φ ( h ) = Π 0 − Π M = j = 1 ∑ M ( Π j − 1 − Π j ) . (83)
Since Π j − 1 , Π j \Pi_{j-1},\Pi_j Π j − 1 , Π j share every factor except the j j j -th (exact in Π j − 1 \Pi_{j-1} Π j − 1 , truncated in Π j \Pi_j Π j ), we have:
Π j − 1 − Π j = ( ∏ i < j λ h ( α p i ) ( p i ) ⋅ ∏ i > j λ h ( p i ) ) ⋅ ( λ h ( p j ) − λ h ( α p j ) ( p j ) ) . (84) \Pi_{j-1}-\Pi_j=\left(\prod_{i<j}\lambda_{\mathbf h}^{(\alpha_{p_i})}(p_i)\cdot\prod_{i>j}\lambda_{\mathbf h}(p_i)\right)\cdot\left(\lambda_{\mathbf h}(p_j)-\lambda_{\mathbf h}^{(\alpha_{p_j})}(p_j)\right). \tag*{(84)} Π j − 1 − Π j = ( i < j ∏ λ h ( α p i ) ( p i ) ⋅ i > j ∏ λ h ( p i ) ) ⋅ ( λ h ( p j ) − λ h ( α p j ) ( p j ) ) . (84)
To bound the product of the M − 1 M-1 M − 1 surrounding factors, set c p : = 6 k − 1 c_p:=6^{k-1} c p := 6 k − 1 if p p p is one of the r r r exceptional primes, c p : = ( 1 + 1 / p ) k − 1 c_p:=(1+1/p)^{k-1} c p := ( 1 + 1/ p ) k − 1 if p p p is odd inert, and c p : = 1 c_p:=1 c p := 1 if p p p is odd split. By the proof of Claim 3, every factor at p p p , whether truncated or exact, satisfies 0 ≤ λ h ( p ) ≤ c p 0\le\lambda_{\mathbf h}(p)\le c_p 0 ≤ λ h ( p ) ≤ c p and 0 ≤ λ h ( α p ) ( p ) ≤ c p 0\le\lambda_{\mathbf h}^{(\alpha_p)}(p)\le c_p 0 ≤ λ h ( α p ) ( p ) ≤ c p , the lower bound holding because each factor is a ratio of densities. Hence the product of the surrounding factors is at most ∏ i ≠ j c p i \prod_{i\ne j}c_{p_i} ∏ i = j c p i , and since c p j ≥ 1 c_{p_j}\ge1 c p j ≥ 1 we get:
∏ i < j λ h ( α p i ) ( p i ) ⋅ ∏ i > j λ h ( p i ) ≤ ∏ i ≠ j c p i ≤ ∏ p ≤ Y c p ≪ k , d ( log log H ) k − 1 , (85) \prod_{i<j}\lambda_{\mathbf h}^{(\alpha_{p_i})}(p_i)\cdot\prod_{i>j}\lambda_{\mathbf h}(p_i)\le\prod_{i\ne j}c_{p_i}\le\prod_{p\le Y}c_p\ll_{k,d}(\log\log H)^{k-1}, \tag*{(85)} i < j ∏ λ h ( α p i ) ( p i ) ⋅ i > j ∏ λ h ( p i ) ≤ i = j ∏ c p i ≤ p ≤ Y ∏ c p ≪ k , d ( log log H ) k − 1 , (85)
where the last bound is the computation in the proof of Claim 3. Combined with the per-prime bound above, ∣ Π j − 1 − Π j ∣ ≪ k , d ( log log H ) k − 1 ⋅ C k / p j α p j |\Pi_{j-1}-\Pi_j| \ll_{k,d} (\log\log H)^{k-1}\cdot C_k/p_j^{\alpha_{p_j}} ∣ Π j − 1 − Π j ∣ ≪ k , d ( log log H ) k − 1 ⋅ C k / p j α p j , and summing over j = 1 , … , M j=1,\ldots,M j = 1 , … , M we find:
∣ ∏ p ≤ Y λ h ( p ) − Φ ( h ) ∣ ≤ ∑ j = 1 M ∣ Π j − 1 − Π j ∣ ≪ k , d ( log log H ) k − 1 ∑ p ≤ Y p − α p (86) \left|\prod_{p\le Y}\lambda_h(p)-\Phi(\mathbf{h})\right|
\le\sum_{j=1}^{M}|\Pi_{j-1}-\Pi_j|
\ll_{k,d}(\log\log H)^{k-1}\sum_{p\le Y}p^{-\alpha_p} \tag*{(86)} p ≤ Y ∏ λ h ( p ) − Φ ( h ) ≤ j = 1 ∑ M ∣ Π j − 1 − Π j ∣ ≪ k , d ( log log H ) k − 1 p ≤ Y ∑ p − α p (86)
≤ ( log log H ) k − 1 ⋅ π ( Y ) L ≪ ( log log H ) k − 1 ( log log H ) k + 1 = 1 ( log log H ) 2 , (87) \le(\log\log H)^{k-1}\cdot\frac{\pi(Y)}{L}
\ll\frac{(\log\log H)^{k-1}}{(\log\log H)^{k+1}}
=\frac{1}{(\log\log H)^2}, \tag*{(87)} ≤ ( log log H ) k − 1 ⋅ L π ( Y ) ≪ ( log log H ) k + 1 ( log log H ) k − 1 = ( log log H ) 2 1 , (87)
uniformly in h ∈ D \mathbf{h}\in D h ∈ D , using p α p ≥ L p^{\alpha_p}\ge L p α p ≥ L and π ( Y ) ≪ log H / log log H \pi(Y)\ll\log H/\log\log H π ( Y ) ≪ log H / log log H (by the prime number theorem, as in the proof of Claim 2). This proves Claim 4.
Claim 5: We have ∑ h ∈ [ 0 , H ] k ∩ Z k Φ ( h ) = H k + O ( H k − η ( log log H ) k − 1 ) \sum_{\mathbf{h}\in[0,H]^k\cap\mathbb{Z}^k}\Phi(\mathbf{h})=H^k+O(H^{k-\eta}(\log\log H)^{k-1}) ∑ h ∈ [ 0 , H ] k ∩ Z k Φ ( h ) = H k + O ( H k − η ( log log H ) k − 1 ) .
Proof of Claim 5: Since Φ \Phi Φ is Q Q Q -periodic and Q ≤ H 1 − η Q\le H^{1-\eta} Q ≤ H 1 − η by Claim 2, we may group [ 0 , H ] k ∩ Z k [0,H]^k\cap\mathbb{Z}^k [ 0 , H ] k ∩ Z k by residue class mod Q Q Q : each class contains ( H / Q ) k + O ( ( H / Q ) k − 1 ) (H/Q)^k+O((H/Q)^{k-1}) ( H / Q ) k + O (( H / Q ) k − 1 ) lattice points. By Lemma 7.1, applied at each p ≤ Y p\le Y p ≤ Y separately and combined via the Chinese remainder theorem (the moduli p α p p^{\alpha_p} p α p , p ≤ Y p\le Y p ≤ Y , being pairwise coprime), we get:
∑ a m o d Q Φ ( a ) = ∏ p ≤ Y ∑ a m o d p α p λ a ( α p ) ( p ) = ∏ p ≤ Y p k α p = Q k . (88) \sum_{\mathbf{a}\bmod Q}\Phi(\mathbf{a})
=\prod_{p\le Y}\sum_{\mathbf{a}\bmod p^{\alpha_p}}\lambda_{\mathbf{a}}^{(\alpha_p)}(p)
=\prod_{p\le Y}p^{k\alpha_p}=Q^k. \tag*{(88)} a mod Q ∑ Φ ( a ) = p ≤ Y ∏ a mod p α p ∑ λ a ( α p ) ( p ) = p ≤ Y ∏ p k α p = Q k . (88)
Hence, using Claims 2 and 3:
∑ h ∈ [ 0 , H ] k ∩ Z k Φ ( h ) = ( H Q ) k Q k + O ( ( H Q ) k − 1 ∥ Φ ∥ ∞ Q k ) (89) \sum_{\mathbf{h}\in[0,H]^k\cap\mathbb{Z}^k}\Phi(\mathbf{h})
=\left(\frac{H}{Q}\right)^kQ^k+O\left(\left(\frac{H}{Q}\right)^{k-1}\|\Phi\|_\infty Q^k\right) \tag*{(89)} h ∈ [ 0 , H ] k ∩ Z k ∑ Φ ( h ) = ( Q H ) k Q k + O ( ( Q H ) k − 1 ∥Φ ∥ ∞ Q k ) (89)
= H k + O ( H k − 1 Q ( log log H ) k − 1 ) = H k + O ( H k − η ( log log H ) k − 1 ) , (90) =H^k+O\left(H^{k-1}Q(\log\log H)^{k-1}\right)
=H^k+O\left(H^{k-\eta}(\log\log H)^{k-1}\right), \tag*{(90)} = H k + O ( H k − 1 Q ( log log H ) k − 1 ) = H k + O ( H k − η ( log log H ) k − 1 ) , (90)
where we used Q ≤ H 1 − η Q\le H^{1-\eta} Q ≤ H 1 − η . This proves Claim 5.
We now put all of our claims to work. The tuples in [ 0 , H ] k ∩ Z k [0,H]^k\cap\mathbb{Z}^k [ 0 , H ] k ∩ Z k with a repeated coordinate number O ( H k − 1 ) O(H^{k-1}) O ( H k − 1 ) , and on each of them 0 ≤ Φ ( h ) ≤ ∥ Φ ∥ ∞ 0\le\Phi(\mathbf{h})\le\|\Phi\|_\infty 0 ≤ Φ ( h ) ≤ ∥Φ ∥ ∞ , so by Claims 5 and 3:
∑ h ∈ D Φ ( h ) = H k + O ( H k − η ( log log H ) k − 1 ) + O ( H k − 1 ( log log H ) k − 1 ) = H k ( 1 + O ( H − η / 2 ) ) . (91) \sum_{\mathbf{h}\in D}\Phi(\mathbf{h})
=H^k+O(H^{k-\eta}(\log\log H)^{k-1})+O(H^{k-1}(\log\log H)^{k-1})
=H^k(1+O(H^{-\eta/2})). \tag*{(91)} h ∈ D ∑ Φ ( h ) = H k + O ( H k − η ( log log H ) k − 1 ) + O ( H k − 1 ( log log H ) k − 1 ) = H k ( 1 + O ( H − η /2 )) . (91)
From now on every tuple lies in D D D , where S h \mathfrak{S}_{\mathbf{h}} S h is defined and Claims 1 and 4 apply. By Claim 4, replacing Φ ( h ) \Phi(\mathbf{h}) Φ ( h ) by ∏ p ≤ Y λ h ( p ) \prod_{p\le Y}\lambda_{\mathbf{h}}(p) ∏ p ≤ Y λ h ( p ) changes each of the O ( H k ) O(H^k) O ( H k ) terms by O ( ( log log H ) − 2 ) O((\log\log H)^{-2}) O (( log log H ) − 2 ) , so that:
∑ h ∈ D ∏ p ≤ Y λ h ( p ) = H k ( 1 + O ( 1 ( log log H ) 2 ) ) . (92) \sum_{\mathbf{h}\in D}\prod_{p\le Y}\lambda_{\mathbf{h}}(p)
=H^k\left(1+O\left(\frac{1}{(\log\log H)^2}\right)\right). \tag*{(92)} h ∈ D ∑ p ≤ Y ∏ λ h ( p ) = H k ( 1 + O ( ( log log H ) 2 1 ) ) . (92)
Every term of this sum is nonnegative, and multiplying it by the tail factor of Claim 1, which is 1 + O ( 1 / log log H ) 1+O(1/\log\log H) 1 + O ( 1/ log log H ) uniformly in h ∈ D \mathbf{h}\in D h ∈ D , gives S h \mathfrak{S}_{\mathbf{h}} S h . Hence:
∑ h ∈ D S h = H k ( 1 + O ( 1 log log H ) ) . (93) \sum_{\mathbf{h}\in D}\mathfrak{S}_{\mathbf{h}}
=H^k\left(1+O\left(\frac{1}{\log\log H}\right)\right). \tag*{(93)} h ∈ D ∑ S h = H k ( 1 + O ( log log H 1 ) ) . (93)
Finally, each k k k -subset of ( 0 , H ) ∩ Z (0,H)\cap\mathbb{Z} ( 0 , H ) ∩ Z is counted k ! k! k ! times among the tuples in D D D , once for each ordering. The remaining tuples in D D D , those with a coordinate equal to 0 0 0 or to H H H , number O ( H k − 1 ) O(H^{k-1}) O ( H k − 1 ) , and by Claims 1 and 3 each of them has S h ≪ ( log log H ) k − 1 \mathfrak{S}_{\mathbf{h}}\ll(\log\log H)^{k-1} S h ≪ ( log log H ) k − 1 . We conclude:
∑ 0 < h 1 < ⋯ < h k < H S h = H k k ! ( 1 + O ( 1 log log H ) ) , (94) \sum_{0<h_1<\cdots<h_k<H}\mathfrak{S}_{\mathbf{h}}
=\frac{H^k}{k!}\left(1+O\left(\frac{1}{\log\log H}\right)\right), \tag*{(94)} 0 < h 1 < ⋯ < h k < H ∑ S h = k ! H k ( 1 + O ( log log H 1 ) ) , (94)
where the implied constant depends on k k k and d d d . This completes the proof.
Proof of the genus-level theorem
In this section we prove Theorem 1.2 by the method of moments, loosely following Gallagher [8 ] : under Hypothesis U ( k ) U(k) U ( k ) , every factorial moment of the number of elements of E E E in a short window converges to the corresponding moment of a Poisson distribution.
Fix τ > 0 \tau> 0 τ > 0 . By § 2 (Inputs A and B combined), we have ρ 1 ( x ) = N ( x ) / x ∼ b ( d ) / log x \rho_1(x) = N(x)/x \sim b(d)/\sqrt{\log x} ρ 1 ( x ) = N ( x ) / x ∼ b ( d ) / log x . By the hypothesis of Theorem 1.2 , the window y = y ( x , τ ) y = y(x,\tau) y = y ( x , τ ) satisfies:
y ⋅ ρ 1 ( x ) ⟶ τ (so y ∼ τ log x / b ( d ) ) , (95) y \cdot\rho_1(x) \longrightarrow\tau\qquad\text{(so } y \sim\tau\sqrt{\log x}/b(d)\text{)}, \tag*{(95)} y ⋅ ρ 1 ( x ) ⟶ τ (so y ∼ τ log x / b ( d ) ) , (95)
and, for n n n uniform on the integers 1 ≤ n ≤ x 1 \le n \le x 1 ≤ n ≤ x , we let Y x Y_x Y x count E ∩ ( n , n + y ] E \cap(n,n+y] E ∩ ( n , n + y ] , that is, Y x = ∑ 0 < t ≤ y 1 E ( n + t ) Y_x = \sum_{0<t\le y} 1_E(n+t) Y x = ∑ 0 < t ≤ y 1 E ( n + t ) . Note that y ≍ log x y \asymp\sqrt{\log x} y ≍ log x , so that ( 0 , y ] ⊂ ( 0 , C log x ] (0,y] \subset(0,C\sqrt{\log x}] ( 0 , y ] ⊂ ( 0 , C log x ] for a suitable constant C C C , which is a range covered by Hypothesis U ( k ) U(k) U ( k ) .
Theorem 8.1 (Factorial moments, conditional on Hypothesis U ( k ) U(k) U ( k ) ). For every fixed k ≥ 1 k \ge1 k ≥ 1 , the k k k -th factorial moment E n [ ( Y x ) k ] → τ k \mathbb{E}_n[(Y_x)_k] \to\tau^k E n [( Y x ) k ] → τ k as x → ∞ x \to\infty x → ∞ .
The idea of the proof is to write the factorial moment as a sum of k k k -point correlations over k k k -tuples of shifts in the window, to replace each k k k -point correlation by the singular series using Hypothesis U ( k ) U(k) U ( k ) , and then to evaluate the resulting sum with Theorem 7.3.
Proof. We start by expanding the factorial moment as a sum over ordered k k k -tuples of distinct shifts in ( 0 , y ] (0,y] ( 0 , y ] . Since n n n is uniform on the ⌊ x ⌋ \lfloor x\rfloor ⌊ x ⌋ integers 1 ≤ n ≤ x 1 \le n \le x 1 ≤ n ≤ x , while ρ k ( h ; x ) \rho_k(\mathbf{h};x) ρ k ( h ; x ) is normalized by x x x , we get:
E n [ ( Y x ) k ] = x ⌊ x ⌋ M k ( x ) , where M k ( x ) : = k ! ∑ 0 < h 1 < ⋯ < h k ≤ y ρ k ( h ; x ) . (96) \mathbb{E}_n[(Y_x)_k] = \frac{x}{\lfloor x\rfloor} M_k(x), \qquad\text{where} \qquad M_k(x) := k! \sum_{0<h_1<\cdots<h_k\le y} \rho_k(\mathbf{h};x). \tag*{(96)} E n [( Y x ) k ] = ⌊ x ⌋ x M k ( x ) , where M k ( x ) := k ! 0 < h 1 < ⋯ < h k ≤ y ∑ ρ k ( h ; x ) . (96)
Since x / ⌊ x ⌋ → 1 x/\lfloor x\rfloor\to1 x / ⌊ x ⌋ → 1 , it suffices to show that M k ( x ) → τ k M_k(x) \to\tau^k M k ( x ) → τ k . By Hypothesis U ( k ) U(k) U ( k ) , uniformly over this range, ρ k ( h ; x ) = S h ρ 1 ( x ) k + o ( ρ 1 ( x ) k ) \rho_k(\mathbf{h};x) = \mathfrak{S}_{\mathbf{h}}\rho_1(x)^k + o(\rho_1(x)^k) ρ k ( h ; x ) = S h ρ 1 ( x ) k + o ( ρ 1 ( x ) k ) . The error term is additive, since S h \mathfrak{S}_{\mathbf{h}} S h may vanish. There are at most y k y^k y k tuples in the range, so summing gives:
M k ( x ) = k ! ρ 1 ( x ) k ∑ 0 < h 1 < ⋯ < h k ≤ y S h + o ( ( y ρ 1 ( x ) ) k ) . (97) M_k(x) = k!\rho_1(x)^k \sum_{0<h_1<\cdots<h_k\le y} \mathfrak{S}_{\mathbf{h}} + o\bigl((y\rho_1(x))^k\bigr). \tag*{(97)} M k ( x ) = k ! ρ 1 ( x ) k 0 < h 1 < ⋯ < h k ≤ y ∑ S h + o ( ( y ρ 1 ( x ) ) k ) . (97)
This range agrees with that of Theorem 7.3 with H = y H=y H = y , except possibly for tuples with h k = y h_k=y h k = y . There are O ( y k − 1 ) O(y^{k-1}) O ( y k − 1 ) such tuples, each with ∣ det h ∣ ≤ y ( k 2 ) |\det\mathbf{h}| \le y^{\binom{k}{2}} ∣ det h ∣ ≤ y ( 2 k ) and hence contributing S h ≪ k , d ( log log y ) k − 1 \mathfrak{S}_{\mathbf{h}} \ll_{k,d}(\log\log y)^{k-1} S h ≪ k , d ( log log y ) k − 1 by Corollary 7.2, so that they contribute O k , d ( y k − 1 ( log log y ) k − 1 ) = o ( y k ) O_{k,d}(y^{k-1}(\log\log y)^{k-1}) = o(y^k) O k , d ( y k − 1 ( log log y ) k − 1 ) = o ( y k ) in total. By Theorem 7.3 with H = y H=y H = y , the sum is therefore y k ( 1 / k ! + o ( 1 ) ) y^k(1/k!+o(1)) y k ( 1/ k ! + o ( 1 )) , so that:
M k ( x ) = k ! ⋅ ρ 1 ( x ) k ⋅ y k ( 1 k ! + o ( 1 ) ) + o ( ( y ρ 1 ( x ) ) k ) = ( y ρ 1 ( x ) ) k ( 1 + o ( 1 ) ) ⟶ τ k , (98) M_k(x) = k!\cdot\rho_1(x)^k\cdot y^k\left(\frac{1}{k!}+o(1)\right) + o\bigl((y\rho_1(x))^k\bigr) = (y\rho_1(x))^k(1+o(1)) \longrightarrow\tau^k, \tag*{(98)} M k ( x ) = k ! ⋅ ρ 1 ( x ) k ⋅ y k ( k ! 1 + o ( 1 ) ) + o ( ( y ρ 1 ( x ) ) k ) = ( y ρ 1 ( x ) ) k ( 1 + o ( 1 )) ⟶ τ k , (98)
directly from y ρ 1 ( x ) → τ y\rho_1(x) \to\tau y ρ 1 ( x ) → τ . This completes the proof. □
Proof (of Theorem 1.2 ). The factorial moments of Poisson( τ ) (\tau) ( τ ) are exactly τ k \tau^k τ k , so by Theorem 8.1 every factorial moment of Y x Y_x Y x , and hence every ordinary moment, converges to that of Poisson( τ ) (\tau) ( τ ) . Since the Poisson distribution is determined by its moments, the method of moments [2 §30] gives Y x → Poisson ( τ ) Y_x \to\operatorname{Poisson}(\tau) Y x → Poisson ( τ ) in distribution. Since Y x = N ( n + y ) − N ( n ) Y_x = N(n+y)-N(n) Y x = N ( n + y ) − N ( n ) takes integer values, this means precisely that for every fixed m ≥ 0 m \ge0 m ≥ 0 :
P ( Y x = m ) = 1 ⌊ x ⌋ # { 1 ≤ n ≤ x : N ( n + y ) − N ( n ) = m } ⟶ e − τ τ m m ! . (99) \mathbb{P}(Y_x=m) = \frac{1}{\lfloor x\rfloor}\#\{1\le n\le x:N(n+y)-N(n)=m\} \longrightarrow e^{-\tau}\frac{\tau^m}{m!}. \tag*{(99)} P ( Y x = m ) = ⌊ x ⌋ 1 # { 1 ≤ n ≤ x : N ( n + y ) − N ( n ) = m } ⟶ e − τ m ! τ m . (99)
Since ⌊ x ⌋ / x → 1 \lfloor x\rfloor/x \to1 ⌊ x ⌋ / x → 1 , the same limit holds with ⌊ x ⌋ \lfloor x\rfloor ⌊ x ⌋ replaced by x x x , which is the statement of Theorem 1.2 . This completes the proof. □
Combined with §3, this also completes the proof of Theorem 1.1 .
Numerical evidence for Hypothesis U ( k ) U(k) U ( k )
In this section we test Hypothesis U ( k ) U(k) U ( k ) numerically for k = 2 , 3 k = 2, 3 k = 2 , 3 , by comparing the normalized k k k -point correlations ρ k ( h ; x ) / ρ 1 ( x ) k \rho_k(\mathbf{h}; x)/\rho_1(x)^k ρ k ( h ; x ) / ρ 1 ( x ) k of E R E_R E R (Definition 4.1) with the singular series S h \mathfrak{S}_{\mathbf{h}} S h computed from the exact local densities of §5 and §6, and then by looking directly at the window counts. The computations were carried out in the Wolfram Language.
Method
We took d ∈ { − 3 , − 4 , − 7 , − 8 , − 12 , − 16 , − 20 } d \in\{-3, -4, -7, -8, -12, -16, -20\} d ∈ { − 3 , − 4 , − 7 , − 8 , − 12 , − 16 , − 20 } , with both genera for d = − 20 d = -20 d = − 20 (those of x 2 + 5 y 2 x^2 + 5y^2 x 2 + 5 y 2 and 2 x 2 + 2 x y + 3 y 2 2x^2 + 2xy + 3y^2 2 x 2 + 2 x y + 3 y 2 ); the discriminants − 12 -12 − 12 and − 16 -16 − 16 are not fundamental, and d = − 4 d = -4 d = − 4 is the case of sums of two squares studied in [6 ] . For each genus R R R we sieved the indicator function of E = E R E = E_R E = E R up to x = 10 7 x = 10^7 x = 1 0 7 from the values of every reduced form in R R R , and computed ρ k ( h ; x ) / ρ 1 ( x ) k \rho_k(\mathbf{h}; x)/\rho_1(x)^k ρ k ( h ; x ) / ρ 1 ( x ) k exactly, taking h 1 = 0 h_1 = 0 h 1 = 0 . This is harmless: S h \mathfrak{S}_{\mathbf{h}} S h is invariant under translating h \mathbf{h} h , while translating h \mathbf{h} h by − h 1 -h_1 − h 1 only shifts the range of n n n in Definition 4.1 by h 1 h_1 h 1 , so it changes ρ k ( h ; x ) \rho_k(\mathbf{h}; x) ρ k ( h ; x ) by at most h 1 / x h_1/x h 1 / x , and hence the quantity in Hypothesis U ( k ) U(k) U ( k ) by O ( h 1 / ( x ρ 1 ( x ) k ) ) = O ( h 1 ( log x ) O ( 1 ) / x ) O(h_1/(x\rho_1(x)^k)) = O(h_1(\log x)^{O(1)}/x) O ( h 1 / ( x ρ 1 ( x ) k )) = O ( h 1 ( log x ) O ( 1 ) / x ) .
We evaluated S h = ∏ p λ h ( p ) \mathfrak{S}_{\mathbf{h}} = \prod_p \lambda_{\mathbf{h}}(p) S h = ∏ p λ h ( p ) from the local densities. Odd split primes contribute 1, and for odd inert primes p ∤ det ( h ) p \nmid\det(\mathbf{h}) p ∤ det ( h ) we used the exact values δ h ( p ) = 1 − k / ( p + 1 ) \delta_{\mathbf{h}}(p) = 1 - k/(p + 1) δ h ( p ) = 1 − k / ( p + 1 ) and δ { 0 } ( p ) = p / ( p + 1 ) \delta_{\{0\}}(p) = p/(p + 1) δ { 0 } ( p ) = p / ( p + 1 ) (Lemma 5.20 and Proposition 5.6). At the remaining primes, that is p = 2 p = 2 p = 2 , the primes dividing d d d , and the inert primes dividing det ( h ) \det(\mathbf{h}) det ( h ) , we computed the truncated densities δ h ( α ) ( p ) \delta_{\mathbf{h}}^{(\alpha)}(p) δ h ( α ) ( p ) by enumerating residues modulo p α p^\alpha p α , α ≥ 2000 \alpha\ge2000 α ≥ 2000 , which by Lemmas 5.18 and 6.11 is accurate to within O k ( 1 / 2000 ) O_k(1/2000) O k ( 1/2000 ) . Primes up to 10 5 10^5 1 0 5 were included, so the neglected tail is O ( k 2 / ( 10 5 log 10 5 ) ) O(k^2/(10^5\log10^5)) O ( k 2 / ( 1 0 5 log 1 0 5 )) .
For k = 2 k = 2 k = 2 we took all shifts ( 0 , h ) (0, h) ( 0 , h ) with 1 ≤ h ≤ 60 1 \le h \le60 1 ≤ h ≤ 60 , and for k = 3 k = 3 k = 3 we sampled 40 random triples ( 0 , h 2 , h 3 ) (0, h_2, h_3) ( 0 , h 2 , h 3 ) with 0 < h 2 < h 3 ≤ 30 0 < h_2 < h_3 \le30 0 < h 2 < h 3 ≤ 30 . Recall from §4 that a tuple is inadmissible if S h = 0 \mathfrak{S}_{\mathbf{h}} = 0 S h = 0 , that is, if δ h ( p ) = 0 \delta_{\mathbf{h}}(p) = 0 δ h ( p ) = 0 for some prime p p p , as for h = { 0 , 1 , 2 } \mathbf{h} = \{0, 1, 2\} h = { 0 , 1 , 2 } and d = − 3 d = -3 d = − 3 ; no n n n then has all of n + h i n + h_i n + h i in E E E . Such tuples are excluded from the relative errors below. Hypothesis U ( k ) U(k) U ( k ) concerns shifts up to C log x C\sqrt{\log x} C log x , and log x \sqrt{\log x} log x is only about 4 at x = 10 7 x = 10^7 x = 1 0 7 , so our shifts up to 60 correspond to rather large values of C C C .
2-point and 3-point correlations
Figure 1 shows that the 2-point correlations follow the singular series closely through all of its oscillations. For d = − 3 d = -3 d = − 3 (not shown) the largest relative error over h ≤ 20 h \le20 h ≤ 20 is 5.9%, and the mean relative error over the admissible h ≤ 60 h \le60 h ≤ 60 is 3.1%; note that this range is wider than the one used for ε ( x ) \varepsilon(x) ε ( x ) in §9.3. For d = − 16 d = -16 d = − 16 the singular series vanishes at every h ≡ 2 ( m o d 4 ) h \equiv2 \pmod4 h ≡ 2 ( mod 4 ) , and the empirical 2-point correlation is indeed 0 there. The remaining discrepancies are systematic: the singular series is slightly too high at its peaks and slightly too low in its troughs, as if the empirical 2-point correlation were a little closer to 1. The other discriminants behave in the same way. The data for d = − 12 d = -12 d = − 12 coincide with those for d = − 3 d = -3 d = − 3 , because x 2 + 3 y 2 x^2 + 3y^2 x 2 + 3 y 2 and x 2 + x y + y 2 x^2 + xy + y^2 x 2 + x y + y 2 represent the same integers; this is still a consistency check, since the local factors at 2 and 3 are computed separately for the two discriminants.
Figure 1. 2-point correlation ρ 2 ( { 0 , h } ; x ) / ρ 1 ( x ) \rho_2(\{0,h\};x)/\rho_1(x) ρ 2 ({ 0 , h } ; x ) / ρ 1 ( x ) at x = 10 7 x = 10^7 x = 1 0 7 (blue dots) against the singular series S { 0 , h } \mathcal{S}_{\{0,h\}} S { 0 , h } (orange squares), for d = − 4 d = -4 d = − 4 (top) and d = − 16 d = -16 d = − 16 (bottom).
The two genera of discriminant − 20 -20 − 20 are instructive. They have the same 2-point singular series: at p = 2 p = 2 p = 2 and p = 5 p = 5 p = 5 their local value sets are, up to the point 0, complements of each other, each of measure 1/2, which forces the local factors to agree, and at every other prime the two sets coincide. Their empirical 2-point correlations differ by a few percent at x = 10 7 x = 10^7 x = 1 0 7 (at h = 1 h = 1 h = 1 they are 0.817 and 0.757, against S { 0 , 1 } ≈ 0.78 \mathfrak{S}_{\{0,1\}} \approx0.78 S { 0 , 1 } ≈ 0.78 , and at h = 8 h = 8 h = 8 they are 1.210 and 1.302, against S { 0 , 8 } ≈ 1.27 \mathfrak{S}_{\{0,8\}} \approx1.27 S { 0 , 8 } ≈ 1.27 ), but this looks like a lower-order effect: the mean absolute difference over h ≤ 20 h \le20 h ≤ 20 decreases from 0.116 at x = 10 4 x = 10^4 x = 1 0 4 to 0.052 at x = 10 7 x = 10^7 x = 1 0 7 . The genus does affect the singular series for k = 3 k = 3 k = 3 . The values of x 2 + 5 y 2 x^2 + 5y^2 x 2 + 5 y 2 are ≡ 0 , ± 1 ( m o d 5 ) \equiv0, \pm1 \pmod5 ≡ 0 , ± 1 ( mod 5 ) and those of 2 x 2 + 2 x y + 3 y 2 2x^2 + 2xy + 3y^2 2 x 2 + 2 x y + 3 y 2 are ≡ 0 , ± 2 ( m o d 5 ) \equiv0, \pm2 \pmod5 ≡ 0 , ± 2 ( mod 5 ) , so { 0 , 1 , 2 } \{0,1,2\} { 0 , 1 , 2 } is inadmissible only for the second genus and { 0 , 1 , 3 } \{0,1,3\} { 0 , 1 , 3 } only for the first. Up to 10 7 10^7 1 0 7 , the tuple { 0 , 1 , 2 } \{0,1,2\} { 0 , 1 , 2 } occurs 10,561 times for x 2 + 5 y 2 x^2 + 5y^2 x 2 + 5 y 2 and never for 2 x 2 + 2 x y + 3 y 2 2x^2 + 2xy + 3y^2 2 x 2 + 2 x y + 3 y 2 , while { 0 , 1 , 3 } \{0,1,3\} { 0 , 1 , 3 } occurs 11,207 times for 2 x 2 + 2 x y + 3 y 2 2x^2 + 2xy + 3y^2 2 x 2 + 2 x y + 3 y 2 and never for x 2 + 5 y 2 x^2 + 5y^2 x 2 + 5 y 2 .
Figure 2 shows that the 3-point correlations lie close to the diagonal over the whole range of values of S h \mathfrak{S}_{\mathbf{h}} S h , with deviations of a few percent and again slightly below the diagonal at the largest values. The same holds for the other discriminants.
Figure 2. 3-point correlations ρ 3 ( { 0 , h 2 , h 3 } ; x ) / ρ 1 ( x ) 3 \rho_3(\{0,h_2,h_3\};x)/\rho_1(x)^3 ρ 3 ({ 0 , h 2 , h 3 } ; x ) / ρ 1 ( x ) 3 at x = 10 7 x=10^7 x = 1 0 7 against S { 0 , h 2 , h 3 } \mathfrak{S}_{\{0,h_2,h_3\}} S { 0 , h 2 , h 3 } for 40 random triples, for d = − 4 d=-4 d = − 4 (left) and d = − 7 d=-7 d = − 7 (right). The dashed line is the identity.
Averages and the dependence on x x x
By Theorem 7.3 with k = 2 k=2 k = 2 , together with a short monotonicity argument (using S h ≥ 0 \mathfrak{S}_h\ge0 S h ≥ 0 ), the running means 1 H ∑ g ≤ H S { 0 , g } \frac{1}{H}\sum_{g\le H}\mathfrak{S}_{\{0,g\}} H 1 ∑ g ≤ H S { 0 , g } tend to 1. The left panel of Figure 3 shows that the running means of both the singular series and the empirical 2-point correlation do tend to 1, but slowly: for d = − 4 d=-4 d = − 4 they are about 0.88 at H = 5 H=5 H = 5 , 0.90 at H = 10 H=10 H = 10 , and 0.98 at H = 60 H=60 H = 60 , and the two sequences are almost indistinguishable.
Figure 3. Left: the running means 1 H ∑ h = 1 H ρ 2 ( { 0 , h } ; x ) / ρ 1 ( x ) 2 \frac{1}{H}\sum_{h=1}^{H}\rho_2(\{0,h\};x)/\rho_1(x)^2 H 1 ∑ h = 1 H ρ 2 ({ 0 , h } ; x ) / ρ 1 ( x ) 2 (blue dots) and 1 H ∑ h = 1 H S { 0 , h } \frac{1}{H}\sum_{h=1}^{H}\mathfrak{S}_{\{0,h\}} H 1 ∑ h = 1 H S { 0 , h } (orange squares) for 1 ≤ H ≤ 60 1\le H\le60 1 ≤ H ≤ 60 , with d = − 4 d=-4 d = − 4 and x = 10 7 x=10^7 x = 1 0 7 ; the dashed line is the constant 1. Right: the mean relative error ϵ ( x ) \epsilon(x) ϵ ( x ) of the 2-point correlation, defined in (9.1), for d = − 4 d=-4 d = − 4 and x = 10 3 , 10 4 , 10 5 , 10 6 , 10 7 x=10^3,10^4,10^5,10^6,10^7 x = 1 0 3 , 1 0 4 , 1 0 5 , 1 0 6 , 1 0 7 , on logarithmic axes.
The right panel shows the dependence on x x x . Let A A A be the set of admissible shifts 1 ≤ h ≤ 20 1\le h\le20 1 ≤ h ≤ 20 , that is, those with S { 0 , h } ≠ 0 \mathfrak{S}_{\{0,h\}}\ne0 S { 0 , h } = 0 . We measure the agreement at x x x by the mean relative error:
ϵ ( x ) : = 1 ∣ A ∣ ∑ h ∈ A ∣ ρ 2 ( { 0 , h } ; x ) ρ 1 ( x ) 2 S { 0 , h } − 1 ∣ . (100) \epsilon(x):=\frac{1}{|A|}\sum_{h\in A}\left|\frac{\rho_2(\{0,h\};x)}{\rho_1(x)^2\mathfrak{S}_{\{0,h\}}}-1\right|. \tag*{(100)} ϵ ( x ) := ∣ A ∣ 1 h ∈ A ∑ ρ 1 ( x ) 2 S { 0 , h } ρ 2 ({ 0 , h } ; x ) − 1 . (100)
For d = − 4 d=-4 d = − 4 the mean relative error ε ( x ) \varepsilon(x) ε ( x ) falls from about 6.5% at x = 10 3 x=10^3 x = 1 0 3 to about 2% at x = 10 7 x=10^7 x = 1 0 7 ; for d = − 3 d=-3 d = − 3 it falls from about 9.5% to about 3%, and for the genus of 2 x 2 + 2 x y + 3 y 2 2x^2+2xy+3y^2 2 x 2 + 2 x y + 3 y 2 at d = − 20 d=-20 d = − 20 from about 12% to about 4%. This is much slower than the x − 1 / 2 x^{-1/2} x − 1/2 expected from sampling noise alone, which is consistent with the logarithmic rate at which ρ 1 ( x ) = N ( x ) / x ∼ b ( d ) / log x \rho_1(x)=N(x)/x\sim b(d)/\sqrt{\log x} ρ 1 ( x ) = N ( x ) / x ∼ b ( d ) / log x settles down: for d = − 4 d=-4 d = − 4 the quantity N ( x ) log x / x N(x)\sqrt{\log x}/x N ( x ) log x / x is still drifting, from 0.87 at x = 10 3 x=10^3 x = 1 0 3 to 0.80 at x = 10 7 x=10^7 x = 1 0 7 , towards the Landau–Ramanujan constant 0.7642 … 0.7642\ldots 0.7642 … .
The distribution in short windows
Finally, Figure 4 examines the conclusion of Theorem 1.2 directly. At x = 10 7 x=10^7 x = 1 0 7 the distribution is clearly not Poisson but under-dispersed: for τ = 1 \tau=1 τ = 1 and d = − 4 d=-4 d = − 4 the windows contain no element of E E E in about 29% of cases instead of e − 1 ≈ 37 % e^{-1}\approx37\% e − 1 ≈ 37% , and exactly one element in about 46% instead of 37%; the genus of 2 x 2 + 2 x y + 3 y 2 2x^2+2xy+3y^2 2 x 2 + 2 x y + 3 y 2 at d = − 20 d=-20 d = − 20 gives 30% and 45%.
Figure 4. Distribution of the number Y x Y_x Y x of elements of E E E in a window ( n , n + y ] (n,n+y] ( n , n + y ] , n ≤ x = 10 7 n\le x=10^7 n ≤ x = 1 0 7 , with y ρ 1 ( x ) ≈ τ y\rho_1(x)\approx\tau y ρ 1 ( x ) ≈ τ for τ = 1 , 2 , 4 \tau=1,2,4 τ = 1 , 2 , 4 (points), against the Poisson distribution with the same mean (lines), for d = − 4 d=-4 d = − 4 (left) and for the genus of 2 x 2 + 2 x y + 3 y 2 2x^2+2xy+3y^2 2 x 2 + 2 x y + 3 y 2 at d = − 20 d=-20 d = − 20 (right).
This does not contradict the theorem. The window length y ∼ τ log x / b ( d ) y\sim\tau\sqrt{\log x}/b(d) y ∼ τ log x / b ( d ) grows only like log x \sqrt{\log x} log x , and at x = 10 7 x=10^7 x = 1 0 7 it is about 5 for τ = 1 \tau=1 τ = 1 and about 20 for τ = 4 \tau=4 τ = 4 when d = − 4 d=-4 d = − 4 . By the proof of Theorem 8.1 , the factorial moments of Y x Y_x Y x are governed by the sums of S h \mathfrak{S}_h S h over the actual window, and by Figure 3 such sums are still noticeably below their limiting value at these lengths, especially because the small shifts, where S { 0 , h } \mathfrak{S}_{\{0,h\}} S { 0 , h } is far from 1, carry more weight (a window ( n , n + y ] (n,n+y] ( n , n + y ] contains ⌊ y ⌋ − h \lfloor y\rfloor-h ⌊ y ⌋ − h pairs of integers at distance h h h ). A smaller second factorial moment gives exactly the observed under-dispersion. The convergence to the Poisson distribution is therefore extremely slow, and the evidence for Hypothesis U ( k ) U(k) U ( k ) lies instead in the agreement with the singular series in § 9.2 –§ 9.3 .