
==== Front
Ann Mat Pura Appl
Ann Mat Pura Appl
Annali Di Matematica Pura Ed Applicata
0373-3114
1618-1891
Springer Berlin Heidelberg Berlin/Heidelberg

1440
10.1007/s10231-024-01440-4
Article
Optimal and typical L2 discrepancy of 2-dimensional lattices
http://orcid.org/0000-0002-9066-8850
Borda Bence borda@math.tugraz.at

grid.410413.3 0000 0001 2294 748X Graz University of Technology, Steyrergasse 30, 8010 Graz, Austria
23 3 2024
23 3 2024
2024
203 5 21572184
2 12 2021
23 2 2024
© The Author(s) 2024
2024
https://creativecommons.org/licenses/by/4.0/ Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
We undertake a detailed study of the L2 discrepancy of 2-dimensional Korobov lattices and their irrational analogues, either with or without symmetrization. We give a full characterization of such lattices with optimal L2 discrepancy in terms of the continued fraction partial quotients, and compute the precise asymptotics whenever the continued fraction expansion is explicitly known, such as for quadratic irrationals or Euler’s number e. In the metric theory, we find the asymptotics of the L2 discrepancy for almost every irrational, and the limit distribution for randomly chosen rational and irrational lattices.

Keywords

Continued fraction
Quadratic irrational
Korobov lattice
Symmetrization
Low discrepancy
Limit distribution
Mathematics Subject Classification

11K38
11J83
http://dx.doi.org/10.13039/501100002428 Austrian Science Fund F-5510 Borda Bence Graz University of TechnologyOpen access funding provided by Graz University of Technology.

issue-copyright-statement© Fondazione Annali di Matematica Pura ed Applicata 2024
==== Body
pmcIntroduction

The extreme discrepancy of a finite point set P⊂[0,1)d in the unit cube is defined asDextr(P)=supA⊆[0,1)d|P∩A|-|P|λ(A),

where the supremum is over all axis-parallel boxes A=[a1,b1)×⋯×[ad,bd)⊆[0,1)d, and λ is the Lebesgue measure. The L2 discrepancy is defined as the L2 average over all axis-parallel boxes anchored at the origin:D2(P)=∫[0,1]d|P∩[0,x1)×⋯×[0,xd)|-|P|x1⋯xd2dx1⋯dxd1/2.

Clearly, D2(P)≤Dextr(P). The extreme and the L2 discrepancy are common measures of equidistribution, with direct applications to numerical integration; for a general introduction we refer to the monograph Drmota–Tichy [16]. In dimension d=2, a seminal result of K. Roth [26] states that every finite point set P⊂[0,1)2 satisfies D2(P)≫log|P| with a universal implied constant. This is known to be sharp, with several explicit constructions e.g. based on digital nets attaining the optimal order D2(P)≪log|P|, see [15]. The corresponding result for the extreme discrepancy due to W. Schmidt [16, p. 44] states that for every finite point set P⊂[0,1)2, we have Dextr(P)≫log|P| with a universal implied constant, and this is again sharp with several explicit constructions attaining the optimal order Dextr(P)≪log|P|. In contrast, in dimensions d≥3 the best known constructions of finite point sets P⊂[0,1)d satisfy Dextr(P)≪(log|P|)d-1, but the optimal order remains an important open problem.

Given a positive integer N and integers p1,…,pd, the setLp1,…,pd,N=np1N,…,npdN∈[0,1)d:0≤n≤N-1,

where {·} denotes the fractional part function, is called a rank-1 lattice rule or a Korobov lattice. The terminology is explained by the fact that Lp1,…,pd,N is the intersection of the unit cube [0,1)d and the dual of the lattice1Γ={(n1,…,nd)∈Zd:n1p1+⋯+ndpd≡0(modN)}. Korobov lattices have been extensively used as quadrature rules in numerical integration. Finding lattice points (p1,…,pd)∈Zd that make the approximation error∫[0,1]df(x)dx≈1N∑n=0N-1fnp1N,…,npdN

suitably small for given classes of integrable functions f is known as the method of “good lattice points”. We refer to the monograph of Dick, Kritzer and Pillichshammer [14] for a comprehensive survey and a history of lattice rules.

Bykovskii [11] showed that in any dimension d≥3, for any integer N≥3 there exist integers p1,…,pd, each coprime with N, such that Dextr(Lp1,…,pd,N)≪(logN)d-1loglogN. Note that this matches the best known constructions up to a factor of loglogN. The proof is probabilistic, see also [19, 20]. We refer to [14, Chapter 5] for an algorithm that produces a good lattice point such that Dextr(Lp1,…,pd,N)≪(logN)d, and for results on the discrepancy with respect to all convex sets.

Dimension d=2 is rather special. In this case, given a positive integer N, and integers p1,p2, both coprime with N, we have Lp1,p2,N=Lp,1,N with p=p2∗p1, where p2∗ is the multiplicative inverse of p2(modN). In particular, Korobov lattices are parametrized by a single rational number p/N, and their distribution properties can be characterized in terms of the continued fraction expansion of p/N. The main goal of this paper is to study the L2 discrepancy of 2-dimensional Korobov lattices, and their analogues corresponding to irrational values of the parameter.

More precisely, given α∈R and N∈N, we will consider the N-element setL(α,N)={nα},nN∈[0,1)2:0≤n≤N-1,

and the 2N-element setS(α,N)={±nα},nN∈[0,1)2:0≤n≤N-1.

Note that L(α,N) is the intersection of the unit square [0,1)2 and the lattice spanned by the vectors (α,1/N) and (1, 0). We call S(α,N) the symmetrization of L(α,N); more precisely, S(α,N) is the union of L(α,N) and its reflection about the vertical line x=1/2. We study both rational and irrational values of α.

The equidistribution properties of S(α,N) and L(α,N), in particular their L2 discrepancy, are closely related to the Diophantine approximation properties of α. Throughout this paper, α=[a0;a1,a2,⋯] will denote the (finite or infinite) continued fraction expansion of α, and pk/qk=[a0;a1,⋯,ak] its convergents. In the rational case it will not matter which of the two possible expansions is chosen. Roughly speaking, we will show that for N≈qK,D22(S(α,N))≈∑k=1Kak2andD22(L(α,N))≈∑k=1Kak2+∑k=1K(-1)kak2.

See Propositions 7 and 8 below for a precise formulation.

Our first result characterizes all irrationals for which S(α,qK) resp. L(α,qK) attains optimal L2 discrepancy as K→∞. We also consider the same problem for S(α,N) and L(α,N) as N→∞. The first equivalence below generalizes a result of Davenport [12], who showed that S(α,N) attains optimal L2 discrepancy whenever α is badly approximable, i.e. ak≪1.

Theorem 1

Let α=[a0;a1,a2,⋯] be irrational. We haveD2(S(α,N))≪logN⟺D2(S(α,qK))≪logqK⟺1K∑k=1Kak2≪1,D2(L(α,qK))≪logqK⟺1K∑k=1Kak2≪1and1K∑k=1K(-1)kak≪1.

Remark 1

We also give an almost complete answer for the unsymmetrized lattice L(α,N) with general N: under the assumption ak≪k/(logk)2, we haveD2(L(α,N))≪logN⟺1K∑k=1Kak2≪1and1K∑k=1K(-1)kak≪1.

In the special case of a badly approximable α, this equivalence was observed in [5, 7]. Note that K-1∑k=1Kak2≪1 implies that ak≪k; we do not know whether the slightly stronger extra assumption ak≪k/(logk)2 can be removed.

More precise results can be deduced for an irrational α whose continued fraction expansion is explicitly known. The most interesting case is that of quadratic irrationals, whose continued fractions are of the form α=[a0;a1,⋯,ar,ar+1,⋯,ar+p¯], where the overline denotes the period. Note that in this case ∑k=1K(-1)kak=A(α)K+O(1) with some constant A(α). In fact, A(α)=0 if p is odd, and A(α)=p-1∑k=1p(-1)r+kar+k (possibly zero) if p is even. We also have logqK=Λ(α)K+O(1) with some constant Λ(α)>0. In fact, Λ(α)=p-1logη, where η>1 is the larger of the two eigenvalues of the matrix011ar+1011ar+2⋯011ar+p.

Theorem 2

Let α be a quadratic irrational, and let A(α) and Λ(α) be as above. There exists a constant c(α)>0 such thatD22(S(α,N))=c(α)logN+O(1),

andD22(L(α,N))=32c(α)logN+O((loglogN)4)ifA(α)=0,A(α)2144Λ(α)2(logN)2+O(logN)ifA(α)≠0.

The implied constants depend only on α.

We proved the same result for S(α,N) with the slightly worse error term O(loglogN) in a previous paper [9]. In contrast to A(α) and Λ(α), there seems to be no simple way to compute the value of c(α) directly from the continued fraction expansion. The latter constant first appeared in certain lattice point counting problems studied in detail by Beck [1–3], who showed that it is related to the arithmetic of the ring of algebraic integers of the real quadratic field Q(α), and computed its explicit value for any quadratic irrational; for instance,c1+52=1305log1+52andc(3)=1123log(2+3).

Precise results also follow for non-badly approximable irrationals whose continued fraction expansions are explicitly known. Consider Euler’s number e=[2;1,2,1,1,4,1,⋯,1,2n,1,⋯] as an illustration. Since the “period length” is odd, the square of the alternating sum (∑k=1K(-1)kak)2≪K2 is negligible compared to ∑k=1Kak2=(4/81)K3+O(K2). Thus from our general results it easily follows thatD2(S(e,N))=1330logNloglogN3/21+OlogloglogNloglogN,

andD2(L(e,N))=165logNloglogN3/21+OlogloglogNloglogN.

In contrast, e.g. for tan1=[1;1,1,3,1,5,1,⋯,2n-1,1,⋯], the “period length” is even, and the alternating sum (∑k=1K(-1)kak)2=K4/16+O(K3) dominates ∑k=1Kak2=K3/6+O(K2). Consequently,D2(S(tan1,N))=1330logNloglogN3/21+OlogloglogNloglogN,

but for the unsymmetrized lattice we have the larger order of magnitudeD2(L(tan1,N))=112logNloglogN21+OlogloglogNloglogN.

We also establish precise results for randomly chosen α, starting with the asymptotics a.e. in the sense of the Lebesgue measure.

Theorem 3

Let φ be a positive nondecreasing function on (0,∞). (i) If ∑n=1∞1/φ(n)<∞, then for a.e. α, D2(S(α,N))≤φ(logN)+O(logNloglogN),D2(L(α,N))≤φ(logN)+O(logNloglogN)

with implied constants depending only on α and φ.

(ii) If ∑n=1∞1/φ(n)=∞, then for a.e. α, D2(S(α,N))≥φ(logN)andD2(L(α,N))≥φ(logN)for infinitely manyN.

In particular, for a.e. α we have D2(S(α,N))≪logN(loglogN)1+ε and D2(L(α,N))≪logN(loglogN)1+ε with any ε>0, but these fail with ε=0.

Our next result is the distributional analogue of Theorem 3, stating that if α is chosen randomly from [0, 1] with an absolutely continuous distribution, then after suitable normalization D22(S(α,N)) converges to the standard Lévy distribution. If α is chosen randomly with the Lebesgue measure λ or the Gauss measure ν(B)=(1/log2)∫B1/(1+x)dx (B⊆[0,1] Borel) as distribution, then we also estimate the rate of convergence in the Kolmogorov metric.

Theorem 4

If μ is a Borel probability measure on [0, 1] which is absolutely continuous with respect to the Lebesgue measure, then for any t≥0,μα∈[0,1]:5π3D22(S(α,N))(logN)2≤t→∫0te-1/(2x)2πx3/2dxasN→∞.

If μ is either the Lebesgue measure λ or the Gauss measure ν, then for any N≥3,supt≥0μα∈[0,1]:5π3D22(S(α,N))(logN)2≤t-∫0te-1/(2x)2πx3/2dx≪(loglogN)1/3(logN)1/3

with a universal implied constant.

We conjecture that a similar result holds for the unsymmetrized lattice as well, i.e. if α is chosen randomly from [0, 1] with an absolutely continuous distribution, then D22(L(α,N))/(logN)2 has a nondegenerate limit distribution as N→∞.

Our results, especially Theorems 1, 3 and 4 should be compared to the corresponding properties of the extreme discrepancy Dextr,N(nα):=Dextr({{nα}:1≤n≤N}) of the classical Kronecker sequence {nα}. Note that max1≤ℓ≤NDextr,ℓ(nα) is, up to a factor of 2, equal to Dextr(L(α,N)). Roughly speaking, for N≈qK we have max1≤ℓ≤NDextr,ℓ(nα)≈∑k=1Kak. We can characterize all irrationals for which the optimal rate logN is attained as [16, p. 53]Dextr,N(nα)≪logN⟺1K∑k=1Kak≪1.

The extreme discrepancy Dextr,N(nα) is also known to satisfy the same asymptotics a.e. as in Theorem 3 [16, p. 63]. A fortiori, the previous two results apply also to max1≤ℓ≤NDextr,ℓ(nα), and hence to Dextr(L(α,N)). We mention two distributional analogues due to Kesten [22]:Dextr,N(nα)logNloglogN→2π2in measure,max1≤ℓ≤NDextr,ℓ(nα)logNloglogN→3π2in measure.

Full limit laws for Dextr,N(nα), max1≤ℓ≤NDextr,ℓ(nα) and Dextr(L(α,N)) remain challenging open problems.

As a curious observation, we mention that there exists an irrational α such thatlogN≪D2(S(α,N))≤Dextr(S(α,N))≪logN,

andlogN≪D2(L(α,N))≤Dextr(L(α,N))≪logN,

i.e. both S(α,N) and L(α,N) have optimal extreme discrepancy, but neither has optimal L2 discrepancy. Indeed, it is easy to construct a sequence of positive integers ak such that K-1∑k=1Kak≪1 but ∑k=1Kak2≫K2 (e.g. let ak=k if k is a power of 2, and ak=1 otherwise).

Consider now the case of a rational α. For the sake of simplicity, we will always assume that N is the denominator of α. That is, given a reduced fraction p/q, we study the q-element setL(p/q,q)=npq,nq∈[0,1)2:0≤n≤q-1,

and the 2q-element setS(p/q,q)=±npq,nq∈[0,1)2:0≤n≤q-1.

Note that L(p/q, q) is the 2-dimensional Korobov lattice Lp,1,q. The characterization of all sets of rationals for which the L2 discrepancy is optimal is exactly the same as in the irrational case.

Theorem 5

Let R⊆Q be an arbitrary set of reduced fractions p/q=[a0;a1,⋯,ar]. We havesupp/q∈RD2(S(p/q,q))logq<∞⟺supp/q∈R1r∑k=1rak2<∞,supp/q∈RD2(L(p/q,q))logq<∞⟺supp/q∈R1r∑k=1rak2<∞andsupp/q∈R1r∑k=1r(-1)kak<∞.

As an analogue of the metric results on typical values of α in the sense of the Lebesgue measure above, we also study the L2 discrepancy for typical values of rationals. In this case, “typical” means choosing p/q randomly from the set of Farey fractions, that is, the set of all reduced rationals with bounded denominator.

Theorem 6

Let FQ denote the set of all reduced fractions in the interval (0, 1) with denominator at most Q. For any Q≥2,supt≥01|FQ|pq∈FQ:5π3D22(S(p/q,q))(logq)2≤t-∫0te-1/(2x)2πx3/2dx≪1(logQ)1/2

with a universal implied constant.

We conjecture that a similar result holds for the unsymmetrized lattice as well, i.e. if p/q is chosen randomly from FQ, then D22(L(p/q,q))/(logq)2 has a nondegenerate limit distribution as Q→∞.

In Sect. 2, we derive an explicit formula for D2(S(α,N)) and D2(L(α,N)) in terms of the partial quotients of α, see Propositions 7 and 8. Theorems 1, 2 and 5 are proved in Sect. 2.2. In Sect. 3, we show how Theorems 3 and 4 follow from classical results on the metric theory of continued fractions and ψ-mixing random variables. The proof of Theorem 6 in Sect. 4, on the other hand, relies on recent results of Bettin and Drappeau [4] on the statistics of partial quotients of random rationals.

L2 discrepancy via the Parseval formula

The main estimates

We remind that α=[a0;a1,a2,⋯] is the (finite or infinite) continued fraction expansion of a real number α, and pk/qk=[a0;a1,⋯,ak] denotes its convergents. For the rest of the paper, we also use the notationTn=∑ℓ=0n12-{ℓα}andEN=1N∑n=0N-1Tn.

Finally, ζ is the Riemann zeta function.

Our main tool is an evaluation of the L2 discrepancy up to a small error, based on the Parseval formula. This method goes back to Davenport [12], and more recently has also been used in [5–7, 18, 25]. We follow the steps in our previous paper [9], where we considered irrationals whose sequence of partial quotients is reasonably well-behaved (e.g. bounded, or increasing at a regular rate such as for Euler’s number). Here we shall need a more refined analysis in order to study arbitrary reals without any assumption on the partial quotients.

Proposition 7

For any qK-1≤N≤qK, we haveD22(S(α,N))-∑m=1qK-1-114π4m2‖mα‖2-ξS(α,N)≤∑k=0K-1ak+12qk+ζ(3)16π4N∑k=0K-2(ak+1+2)3qk+6.28

with some ξS(α,N) which satisfies both 0≤ξS(α,N)≤∑m=qK-1qK-112π4m2‖mα‖2 andξS(α,N)-∑m=qK-1qK-114π4m2‖mα‖2≤ζ(3)16π4N(aK+2)3qK-1+0.07.

Similarly, for any qK-1≤N≤qK, we haveD22(L(α,N))-1N∑n=0N-1Tn2+12Tn-1-12N∑m=1qK-1-114π4m2‖mα‖2-ξL(α,N)≤∑k=0K-1ak+18qk+ζ(3)16π4N∑k=0K-2(ak+1+2)3qk+2.78

with some ξL(α,N) which satisfies both 0≤ξL(α,N)≤∑m=qK-1qK-112π4m2‖mα‖2 andξL(α,N)-1-12N∑m=qK-1qK-114π4m2‖mα‖2≤ζ(3)16π4N(aK+2)3qK-1.

We also prove a simpler form which is sharp up to a constant factor.

Proposition 8

For any qK-1≤N≤qK, we have D22(S(α,N))≪∑k=1Kak2. For N=qK, we also have D22(S(α,qK))≫∑k=1Kak2, and∑k=1Kak2+∑k=1K(-1)kak2≪D22(L(α,qK))≪∑k=1Kak2+∑k=1K(-1)kak2.

The implied constants are universal.

We postpone the proofs to Sects. 2.3 and 2.4, and now comment on the main terms.

The contribution of the sums Tn can be written as1N∑n=0N-1Tn2+12Tn=1N∑n=0N-1(Tn-EN)2+EN2+12EN.

Observing a connection with Dedekind sums, Beck showed [1, p. 79 and p. 91] (see also [28]) that for any qK-1≤N≤qK, the “expected value” EN is1 EN=112∑k=1K(-1)kak+Omax1≤k≤Kak.

For N=qK, the error term can be improved to2 EqK=112∑k=1K(-1)kak+O(1).

Both implied constants are universal. Generalizing results of Beck, in a recent paper [8] we proved that if ak≤ckd with some constants c>0 and d≥0, then for any qK-1≤N≤qK, the “variance” is3 1N∑n=0N-1(Tn-EN)2=∑m=1qK-118π4m2‖mα‖2+Omax|k-K|≪logKak2·(loglogN)4

with implied constants depending only on c and d. See also Lemma 10 below.

Finally, we will need two different evaluations of the Diophantine sum appearing in Proposition 7. On the one hand, for general α we have [10, p. 110], [9]4 ∑m=1qK-11m2‖mα‖2-π490∑k=1Kak2≤152∑k=1Kak.

On the other hand, Beck [1, p. 176] proved that if α is quadratic irrational, then for any M≥1,5 ∑m=1M14π4m2‖mα‖2=c(α)logM+O(1)

with some constant c(α)>0 and an implied constant depending only on α.

Optimal lattices

In this section, we deduce Theorems 1, 2 and 5 from Propositions 7 and 8.

Proof of Theorem 1

Consider first the symmetrized lattice S(α,N). We will show the implications1K∑k=1Kak2≪1⟹D2(S(α,N))≪logN⟹D2(S(α,qK))≪logqK⟹1K∑k=1Kak2≪1.

Assume that K-1∑k=1Kak2≪1 as K→∞. By Proposition 8, for any qK-1≤N≤qK we have D22(S(α,N))≪∑k=1Kak2≪K≪logN, as claimed. The second implication is trivial. Next, assume that D2(S(α,qK))≪logqK as K→∞. By Proposition 8, we have∑k=1Kak2≪D22(S(α,qK))≪logqK≤∑k=1Klog(ak+1)≪∑k=1Kak≤K∑k=1Kak2,

and the claim follows. This finishes the proof of the equivalence for S(α,N).

Consider now the unsymmetrized lattice L(α,qK). Assume that K-1∑k=1Kak2≪1 and K-1/2|∑k=1K(-1)kak|≪1 as K→∞. By Proposition 8, we haveD22(L(α,qK))≪∑k=1Kak2+∑k=1K(-1)kak2≪K≪logqK,

as claimed. Next, assume that D2(L(α,qK))≪logqK as K→∞. By Proposition 8, we have∑k=1Kak2+∑k=1K(-1)kak2≪D22(L(α,qK))≪logqK≤∑k=1Klog(ak+1)≪∑k=1Kak≤K∑k=1Kak2.

In particular,∑k=1Kak2≪K∑k=1Kak2and∑k=1K(-1)kak2≪K∑k=1Kak2.

The first estimate gives ∑k=1Kak2≪K, whereas the second estimate yields (∑k=1K(-1)kak)2≪K, as claimed. This finishes the proof of the equivalence for L(α,qK). □

Proof of Theorem 5

As Proposition 8 applies to both rationals and irrationals, the proof is identical to that of Theorem 1. □

Proof of Theorem 2

Let α be a quadratic irrational. By Proposition 7 and formula (5), for any qK-1≤N≤qK,D22(S(α,N))=∑m=1qK-114π4m2‖mα‖2+O(1)=c(α)logN+O(1),

as claimed. Using also formula (3), we similarly getD22(L(α,N))=32c(α)logN+EN2+12EN+O((loglogN)4).

Formula (1) shows that here EN=A(α)12K+O(1)=A(α)12Λ(α)logN+O(1), and the claim follows. □

Proof of Proposition 7

Lemma 9

Let α=[a0;a1,a2,…] be the (finite or infinite) continued fraction expansion of a real number α, and let pk/qk=[a0;a1,…,ak] be its convergents. (i) For any K≥1, ∑m=1qK-11π2m2‖mα‖≤∑k=0K-1ak+12qk+3.12.

(ii) For any K≥1 and n≥0, ∑m=qK∞12π2m2min14‖mα‖2,n2≤1.12nqK+0.61n2qK2.

(iii) For any K≥1 and N≥qK-1, ∑m=1qK-114π4m2‖mα‖2min14N‖2mα‖,1≤ζ(3)16π4N∑k=0K-1(ak+1+2)3qk+0.07.

Proof

The proof of all three claims is based on the following simple observations. Let k≥1, or k=0 and a1>1. For any integer a≥1 let Jk,a=[aqk,(a+1)qk)∩[qk,qk+1) be a (possibly empty) index set. Let δk=qkα-pk, and recall from the general theory of continued fractions that 1/(qk+1+qk)≤|δk|=‖qkα‖≤1/qk+1. For any integer m∈Jk,a, we have mα=mpk/qk+mδk/qk, and here the second term is negligible as m|δk|/qk<1/qk. Since pk and qk are relatively prime, as m runs in the index set Jk,a, the numbers mpk attain each mod qk residue class at most once. If mpk≢0,±1(modqk), then‖mα‖=mpkqk+mδkqk≥mpkqk-1qk≥12mpkqk.

Therefore for any nondecreasing function f:[2,∞)→[0,∞), we have6 ∑m∈Jk,af1‖mα‖≤3f1‖qkα‖+∑j=2qk-2f2‖j/qk‖≤3f1‖qkα‖+2∑2≤j≤qk/2f2qkj.

Note that 3f(1/‖qkα‖) is an upper bound to the contribution of the three terms for which mpk≡0,±1(modqk).

We also have the simpler estimate7 ∑1≤m<qk+1f1‖mα‖≤2∑1≤j≤qk+1/2f1j‖qkα‖.

Indeed, consider the points mα(mod1), 1≤m<qk+1 and the intervals Hj=[j‖qkα‖,(j+1)‖qkα‖), j≥1 and Hj=((j-1)‖qα‖,j‖qkα‖], j≤-1. Since ‖(m1-m2)α‖≥‖qkα‖ for any m1,m2∈[1,qk+1), m1≠m2, each interval Hj contains at most one point mα(mod1), and (7) follows. (i) Estimate (6) yields ∑m∈Jk,a1π2m2‖mα‖≤1π2a2qk23‖qkα‖+2∑2≤j≤qk/22qkj≤1π2a2qk23(qk+1+qk)+4qklogqk2.

Summing over a≥1 and20≤k≤K-1 leads to ∑m=1qK-11π2m2‖mα‖≤∑k=0K-13qk+1+3qk+4qklog(qk/2)6qk2≤∑k=0K-1ak+12qk+∑k=0K-13+2log(qk/2)3qk≤∑k=0K-1ak+12qk+∑k=0∞3+2log(Fk+1/2)3Fk+1,

where Fk is the sequence of Fibonacci numbers. The numerical value of the series in the previous line is 3.1195⋯, as claimed.

(ii) Estimate (6) yields ∑m∈Jk,a12π2m2min14‖mα‖2,n2≤12π2a2qk23n2+2∑j=2∞minqk2j2,n2≤12π2a2qk23n2+4nqk.

Note that the contribution of the terms 2≤j≤⌊qk/n⌋+1 and j≥⌊qk/n⌋+2 is at most nqk each. Summing over a≥1 and k≥K leads to ∑m=qK∞12π2m2min14‖mα‖2,n2≤∑k=K∞3n2+4nqk12qk2.

From the recursion satisfied by qk one readily sees that qK+ℓ≥Fℓ+1qK for all ℓ≥0, hence the right hand side of the previous formula is at most c1n/qK+c2n2/qK2 with c1=∑ℓ=0∞1/(3Fℓ+1)=1.1199⋯ and c2=∑ℓ=0∞1/(4Fℓ+12)=0.6065⋯, as claimed.

(iii) The contribution of all m such that ‖mα‖>1/4 is negligible: ∑1≤m≤qK-1‖mα‖>1/414π4m2‖mα‖2min14N‖2mα‖,1<∑m=1∞4π4m2=23π2.

On the other hand, ‖mα‖≤1/4 implies ‖2mα‖=2‖mα‖, hence the contribution of all such terms is ∑1≤m≤qK-1‖mα‖≤1/414π4m2‖mα‖2min14N‖2mα‖,1≤∑m=1qK-1132π4Nm2‖mα‖3.

Estimate (7) gives ∑qk≤m<qk+1132π4Nm2‖mα‖3≤116π4Nqk2∑j=1∞1j3‖qkα‖3≤ζ(3)(ak+1+2)3qk16π4N.

Summing over 0≤k≤K-1, we thus obtain∑m=1qK-114π4m2‖mα‖2min14N‖2mα‖,1≤∑k=0K-1ζ(3)(ak+1+2)3qk16π4N+23π2.

Here 2/(3π2)=0.06754⋯, as claimed. □

Proof of Proposition 7

We give a detailed proof for the symmetrized lattice S(α,N), and then indicate at the end how to modify the proof for the unsymmetrized lattice L(α,N).

Let B(x,y)=|S(α,N)∩([0,x)×[0,y))| denote the number of points of S(α,N) which fall into the box [0,x)×[0,y). Integrating on the strips [0,1)×[n/N,(n+1)/N) separately leads toD22(S(α,N))=∑n=0N-1∫01∫nNn+1NB(x,y)-2Nxy2dydx=M+R+49

withM:=1N∑n=0N-1∫01Bx,n+1N-2(n+1)x2dx,R:=2N∑n=0N-1∫01Bx,n+1N-2(n+1)xxdx.

The functionBx,n+1N-2(n+1)x=∑ℓ=0nI[0,x)({ℓα})+I[0,x)({-ℓα})-2x,

where I[0,x) denotes the indicator function of the interval [0, x), is mean zero, and has Fourier coefficients∫01Bx,n+1N-2(n+1)xe-2πimxdx=∑ℓ=0ncos(2ℓmπα)πim=12πimsin((2n+1)mπα)sin(mπα)+1.

The Fourier coefficients of x are ∫01xe-2πimxdx=-1/(2πim), thus by the Parseval formula we haveR=2N∑n=0N-12∑m=1∞12πimsin((2n+1)mπα)sin(mπα)+1·-12πim=1N∑n=0N-1∑m=1∞sin((2n+1)mπα)π2m2sin(mπα)+16.

The Parseval formula similarly givesM=1N∑n=0N-12∑m=1∞14π2m2(sin((2n+1)mπα)sin(mπα)+12=1N∑n=0N-1∑m=1∞sin2((2n+1)mπα)2π2m2sin2(mπα)+1N∑n=0N-1∑m=1∞sin((2n+1)mπα)π2m2sin(mπα)+112.

The only main term in D22(S(α,N)) is the first double sum in the previous formula. The double sum in R and the second double sum in the previous formula are identical. Usingsin((2n+1)mπα)sin(mπα)≤min12‖mα‖,2n+1

and Lemma 9 (i), they can be estimated as|1N∑n=0N-1∑m=1∞2sin((2n+1)mπα)π2m2sin(mπα)|≤1N∑n=0N-1∑m=1qK-11π2m2‖mα‖+∑m=qK∞2(2n+1)π2m2≤∑k=0K-1ak+12qk+3.12+4Nπ2qK.

By the assumption N≤qK and the fact 3.12+4/π2+4/9+1/6+1/12<4.22, we thus obtainD22(S(α,N))-1N∑n=0N-1∑m=1∞sin2((2n+1)mπα)2π2m2sin2(mπα)≤∑k=0K-1ak+12qk+4.22.

Lemma 9 (ii) estimates the tail of the infinite series in the previous formula as∑m=qK∞sin2((2n+1)mπα)2π2m2sin2(mπα)≤∑m=qK∞12π2m2min14‖mα‖2,(2n+1)2≤1.122n+1qK+0.61(2n+1)2qK2.

By the assumption N≤qK and the facts ∑n=0N-1(2n+1)2≤(4/3)N3 and 4.22+1.12+(4/3)·0.61<6.16, we immediately getD22(S(α,N))-1N∑n=0N-1∑m=1qK-1sin2((2n+1)mπα)2π2m2sin2(mπα)≤∑k=0K-1ak+12qk+6.16.

Elementary calculations show that the function 1/sin2(πx)-1/(π2‖x‖2) is increasing on (0, 1/2], hence 1/(π2‖x‖2)≤1/sin2(πx)≤1/(π2‖x‖2)+1-4/π2 for all x. The error of replacing sin2(mπα) by π2‖mα‖2 in the denominator of the previous formula is thus at most1N∑n=0N-1∑m=1qK-1sin2((2n+1)mπα)(1-4/π2)2π2m2≤∑m=1∞1-4/π22π2m2=1-4/π212.

Since 6.16+(1-4/π2)/12<6.21, we obtain8 D22(S(α,N))-1N∑n=0N-1∑m=1qK-1-1sin2((2n+1)mπα)2π4m2‖mα‖2-ξS(α,N)≤∑k=0K-1ak+12qk+6.21,

where we defineξS(α,N):=1N∑n=0N-1∑m=qK-1qK-1sin2((2n+1)mπα)2π4m2‖mα‖2.

Using the trigonometric identity1N∑n=0N-1sin2((2n+1)x)=12-sin(4Nx)4Nsin(2x),

the double sum in (8) simplifies to∑m=1qK-1-114π4m2‖mα‖2-∑m=1qK-1-1sin(4Nmπα)8π4Nm2‖mα‖2sin(2mπα).

Here second term can be estimated using Lemma 9 (iii) as∑m=1qK-1-1sin(4Nmπα)8π4Nm2‖mα‖2sin(2mπα)≤∑m=1qK-1-114π4m2‖mα‖2min14N‖2mα‖,1≤ζ(3)16π4N∑k=0K-2(ak+1+2)3qk+0.07.

Therefore (8) simplifies toD22(S(α,N))-∑m=1qK-1-114π4m2‖mα‖2-ξS(α,N)≤∑k=0K-1ak+12qk+ζ(3)16π4N∑k=0K-2(ak+1+2)3qk+6.28,

and it remains to prove the properties of ξS(α,N). Clearly, 0≤ξS(α,N)≤∑m=qK-1qK-112π4m2‖mα‖2. On the other hand, repeating arguments from above and from Lemma 9 (iii), we can also writeξS(α,N)=∑m=qK-1qK-114π4m2‖mα‖2-∑m=qK-1qK-1sin(4Nmπα)8π4Nm2‖mα‖2sin(2mπα),

consequentlyξS(α,N)-∑m=qK-1qK-114π4m2‖mα‖2≤∑m=qK-1qK-114π4m2‖mα‖2min14N‖2mα‖,1≤ζ(3)16π4N(aK+2)3qK-1+0.07.

This finishes the proof for S(α,N).

The proof for L(α,N) is entirely analogous. The only difference is that the number of points B(x,y):=|L(α,N)∩([0,x)×[0,y))| which fall into the box [0,x)×[0,y) satisfiesBx,n+1N-(n+1)x=∑ℓ=0nI[0,x)({ℓα})-x,

which is not a mean zero function. Its integral (0th Fourier coefficient) is∫01Bx,n+1N-(n+1)xdx=∑ℓ=0n12-{ℓα}=Tn,

which introduces the extra terms N-1∑n=0N-1Tn/2 resp. N-1∑n=0N-1Tn2 when the Parseval formula is applied to the analogue of R resp. M as above. For the convenience of the reader we mention that the analogue of formula (8) isD22(L(α,N))-1N∑n=0N-1Tn2+12Tn-1N∑n=0N-1∑m=1qK-1-1sin2((n+1)mπα)2π4m2‖mα‖2-ξL(α,N)≤∑k=0K-1ak+18qk+2.78,

whereξL(α,N):=1N∑n=0N-1∑m=qK-1qK-1sin2((n+1)mπα)2π4m2‖mα‖2.

□

Proof of Proposition 8

The following lemma is a simpler form of formula (3), but it applies without any assumption on the partial quotients. As modifying the proof of (3) is not entirely straightforward, we include the details.

Lemma 10

For any K≥1,1qK∑n=0qK-1(Tn-EqK)2≪∑k=1Kak2

with a universal implied constant.

Proof

For the sake of readability, set p=pK and q=qK. For any integer 1≤ℓ≤q-1, we have ‖ℓp/q‖≥1/q and |ℓα-ℓp/q|≤q|α-p/q|<1/q. Thus there is no integer between ℓp/q and ℓα, hence{ℓα}-ℓpq≤ℓα-ℓpq<1q.

Consequently, for all 0≤n≤q-1,Tn=∑ℓ=0n12-{ℓα}=∑ℓ=0n12-12q-ℓpq+O(1).

IntroducingTn∗:=∑ℓ=0n12-12q-ℓpqandEq∗:=1q∑n=0q-1Tn∗,

we thus have Tn-Eq=Tn∗-Eq∗+O(1). Therefore q-1∑n=0q-1(Tn-Eq)2≪q-1∑n=0q-1(Tn∗-Eq∗)2+1, and it remains to estimate the latter.

The rest of the proof is based on Fourier analysis on the finite cyclic group Zq, which we identify by {0,1,⋯,q-1}. Elementary calculations show that∑x=0q-112-12q-xqe-2πimx/q=0ifm=0,1/(1-e-2πim/q)if1≤m≤q-1.

Therefore by Fourier inversion on Zq,12-12q-xq=1q∑m=1q-1e2πimx/q1-e-2πim/q,x∈Z.

We can thus write Tn∗ asTn∗=1q∑m=1q-1∑ℓ=0ne2πimℓp/q1-e-2πim/q=1q∑m=1q-11-e2πim(n+1)p/q(1-e-2πim/q)(1-e2πimp/q).

Letting B=q-1∑m=1q-11/(1-e-2πim/q)(1-e2πimp/q), we have1q∑n=0q-1(Tn∗-Eq∗)2≤1q∑n=0q-1|Tn∗-B|2=1q∑n=0q-11q2∑m=1q-1e2πim(n+1)p/q(1-e-2πim/q)(1-e2πimp/q)2.

Expanding the square shows that here|∑m=1q-1e2πim(n+1)p/q(1-e-2πim/q)(1-e2πimp/q)|2=∑m=1q-11|1-e-2πim/q|2|1-e2πimp/q|2+∑m1,m2=1m1≠m2q-1e2πi(m1-m2)(n+1)p/q(1-e-2πim1/q)(1-e2πim1p/q)(1-e2πim2/q)(1-e-2πim2p/q).

As ∑n=0q-1e2πi(m1-m2)(n+1)p/q=0 for all m1≠m2, the contribution of the off-diagonal terms is zero. Formula (4) thus leads to1q∑n=0q-1(Tn∗-Eq∗)2≤1q2∑m=1q-11|1-e-2πim/q|2|1-e2πimp/q|2≪∑m=1q-11m2‖mp/q‖2≪∑k=1Kak2,

as claimed. □

Proof of Proposition 8

By Proposition 7, for any qK-1≤N≤qK we haveD22(S(α,N))≪∑m=1qK-11m2‖mα‖2+∑k=0K-1ak+1qk+∑k=0K-2ak+13qkN.

Here ak+13qk/N≤ak+12, hence formula (4) yields D22(S(α,N))≪∑k=1Kak2, as claimed. Using Lemma 10 and formula (2) we also deduce that for N=qK,1qK∑n=0qK-1Tn2+12Tn=1qK∑n=0qK-1(Tn-EqK)2+EqK2+12EqK≪∑k=1Kak2+∑k=1K(-1)kak2,

and the upper bound for D22(L(α,qK)) follows.

Next, we prove the lower bounds. Let c>0 resp. C>0 denote suitably small resp. large universal constants whose values change from line to line. By Proposition 7 and formula (4), for N=qK we haveD22(S(α,qK))≥∑m=1qK-114π4m2‖mα‖2-ζ(3)16π4qK∑k=0K-1(ak+1+2)3qk-C∑k=1Kak≥1360-ζ(3)16π4∑k=1Kak2-C∑k=1Kak.

The point is that 1/360>ζ(3)/(16π4), i.e. the coefficient of ak2 is positive. The contribution of all k such that ak≪1 is ≪K, and for all other terms ak2 dominates ak. Therefore D22(S(α,qK))≥c∑k=1Kak2-CK. On the other hand, by Roth’s theorem we also have D22(S(α,qK))≫logqK≫K. Taking a suitable weighted average of the previous two inequalities establishes the lower bound D22(S(α,qK))≥c∑k=1Kak2.

From Proposition 7 we similarly deduceD22(L(α,qK))≥1qK∑n=1qK-1Tn-EqK2+EqK2+c∑k=1Kak2.

Here qK-1∑n=0qK-1(Tn-EqK)2≥0, and the lower bound for D22(L(α,qK)) follows from formula (2). □

Proof of Remark 1

Let α be an irrational such that ak≪k/(logk)2. For any qK-1≤N≤qK we then have max|k-K|≪logKak2·(loglogN)4≪K, hence formulas (3) and (4) give1N∑n=0N-1(Tn-EN)2=∑m=1qK-118π4m2‖mα‖2+O(K)≪∑k=1Kak2.

Using this fact instead of Lemma 10 in the proof of Proposition 8, we deduce that D22(L(α,N))≪∑k=1Kak2+(∑k=1K(-1)kak)2 holds for all qK-1≤N≤qK (instead of only for N=qK). In particular, the equivalence stated in Remark 1 follows.

Typical irrationals

Asymptotics almost everywhere

Let us recall certain basic facts about the statistics of the partial quotients of a typical irrational number. Let φ be a positve nondecreasing function on (0,∞), and let AK=max1≤k≤Kak. It is well known that for a.e. α we have logqk∼π212log2k, and that ak≤φ(k) for all but finitely many k if and only if ∑n=1∞1/φ(n)<∞. A classical result of Diamond and Vaaler [13] on trimmed sums states that for a.e. α,9 ∑k=1Kak-AKKlogK→1log2asK→∞.

Proof of Theorem 3

For any N≥2, let KN(α) be the positive integer for which qKN(α)-1<N≤qKN(α). In particular, for a.e. α we have KN(α)∼12log2π2logN, where 12log2π2=0.8427⋯.

(i) Assume that ∑n=1∞1/φ(n)<∞. As observed in the Introduction, by a classical discrepancy estimate for the sequence {nα} [16, p. 52], we haveD2(S(α,N))≪D∞(L(α,N))≪∑k=1KN(α)ak,D2(L(α,N))≪D∞(L(α,N))≪∑k=1KN(α)ak.

The asymptotic relation (9) of Diamond and Vaaler shows that for a.e. α,D2(S(α,N))≤C∑k=1KN(α)ak=CAKN(α)+O(KN(α)logKN(α)),D2(L(α,N))≤C∑k=1KN(α)ak=CAKN(α)+O(KN(α)logKN(α))

with a universal constant C>0. Here AKN(α)≤φ(KN(α)) and KN(α)≤logN for all but finitely many N. Therefore D2(S(α,N))≤Cφ(logN)+O(logNloglogN) and D2(L(α,N))≤Cφ(logN)+O(logNloglogN) with implied constants depending only on α and φ. The factor C can be removed by repeating the argument with φ(x)/C instead of φ(x).

(ii) Assume that ∑n=1∞1/φ(n)=∞. By Proposition 8, we haveD2(S(α,qK))≥c(∑k=1Kak2)1/2≥cAKandD2(L(α,qK))≥c(∑k=1Kak2)1/2≥cAK

with a universal constant c>0. Here AK≥φ(K) for infinitely many K, and K≥(logqK)/2 for all but finitely many K. Hence D2(S(α,qK))≥cφ((logqK)/2) and D2(L(α,qK))≥cφ((logqK)/2) for infinitely many K. Repeating the argument with φ(2x)/c instead of φ(x), we deduce that D2(S(α,qK))≥φ(logqK) and D2(L(α,qK))≥φ(logqK) for infinitely many K, as claimed. □

Limit distribution

Let λ be the Lebesgue measure, and ν(B)=(1/log2)∫B1/(1+x)dx (B⊆[0,1] Borel) the Gauss measure. If α is chosen randomly from [0, 1] with distribution ν, then its partial quotients are identically distributed random variables with distributionνα∈[0,1]:ak=n=1log2log1+1n(n+2),k,n≥1.

If α is chosen randomly from [0, 1] with distribution either λ or ν, then the sequence ak is ψ-mixing with exponential rate [21, p. 119].

To find the limit distribution of D22(S(α,N))/(logN)2, we shall need more sophisticated facts about the partial quotients of a typical irrational, which we now gather. Most importantly, a special case of a limit distribution theorem of Samur [27] (see also [8]) states that if μ is a Borel probability measure on [0, 1] which is absolutely continuous with respect to the Lebesgue measure, then for any t≥0,10 μα∈[0,1]:2(log2)2πK2∑k=1Kak2≤t→∫0te-1/(2x)2πx3/2dxasK→∞.

If μ is either λ or ν, then general results of Heinrich [17] on ψ-mixing random variables imply the rate of convergence11 supt≥0μα∈[0,1]:2(log2)2πK2∑k=1Kak2≤t-∫0te-1/(2x)2πx3/2dx≪1K1-ε

with an arbitrary ε>0 and an implied constant depending only on ε. The corresponding result for ∑k=1Kak in the Gauss measure is also due to Heinrich:supt∈Rνα∈[0,1]:1K∑k=1Kak-logK-γlog2≤t-F(t)≪(logK)2K,

where γ is the Euler–Mascheroni constant, and F(t) is the distribution function of the law with characteristic function∫ReitxdF(t)=exp-π2log2|x|1+2iπsgn(x)log|x|.

Note that this is a stable law with stability parameter 1 (and skewness parameter 1). Hence 1-F(t)≪1/t as t→∞, and we immediately obtain12 να∈[0,1]:1K∑k=1Kak≥t+logKlog2≪1t+(logK)2Kast→∞.

The final ingredient is a similar estimate for the convergent denominators: with a large enough universal constant C>0,13 να∈[0,1]:logqK-π212log2K≥CKlogK≪1K.

This follows from the fact that logqK satisfies the central limit theorem with rate O(1/K), as shown by Morita [23]. We mention that a better upper bound can be deduced from the large deviation inequality of Takahasi [29], but (13) suffices for our purposes.

Proof of Theorem 4

Throughout the proof, C>0 is a large universal constant whose value changes from line to line, and Yi=Yi(α,N), i=1,2,… are error terms. For any N≥2, let KN(α) be the positive integer for which qKN(α)-1<N≤qKN(α).

Proposition 7 and formula (4) show that we can writeD22(S(α,N))=1360∑k=1KN(α)-1ak2+Y1,

where|Y1|≤1180aKN(α)2+C∑k=1KN(α)ak+CN∑k=0KN(α)-2ak+13qk.

Using the general fact qk+2/qk≥2, we estimate the last error term as1N∑k=0KN(α)-2ak+13qk≤1N∑k=1KN(α)-1ak2qk≤∑k=1KN(α)-100logKN(α)ak2qkqKN(α)-1+∑k=KN(α)-100logKN(α)KN(α)-1ak2qkqKN(α)-1≤1KN(α)10∑k=1KN(α)ak2+∑k=KN(α)-100logKN(α)KN(α)-1ak2.

This leads to the simplified form D22(S(α,N))=(1/360)∑k=1KN(α)ak2+Y2, where|Y2|≤CKN(α)10∑k=1KN(α)ak2+C∑k=KN(α)-100logKN(α)KN(α)ak2+C∑k=1KN(α)ak.

Set K¯=⌈12log2π2logN⌉. The estimate (13) states thatνα∈[0,1]:logqK¯-π212log2K¯≥CK¯logK¯≪1K¯.

By the definition of KN(α) and K¯, this immediately givesνα∈[0,1]:|KN(α)-K¯|≥CK¯logK¯≪1K¯.

Roughly speaking, this means that we can replace KN(α) by K¯ in the above formulas; the point is that the latter does not depend on α. More precisely, outside a set of ν-measure ≪1/K¯, we have D22(S(α,N))=(1/360)∑k=1K¯ak2+Y3, where|Y3|≤CK¯10∑k=12K¯ak2+C∑k=K¯-CK¯logK¯K¯+CK¯logK¯ak2+C∑k=12K¯ak.

Since 5π3/(logN)2=720(log2)2/(πK¯2)+O(1/K¯3), normalizing the previous formula leads to the fact that outside a set of ν-measure ≪1/K¯,5π3D22(S(α,N))(logN)2=2(log2)2πK¯2∑k=1K¯ak2+Y4,

where|Y4|≤CK¯3∑k=12K¯ak2+CK¯2∑k=K¯-CK¯logK¯K¯+CK¯logK¯ak2+CK¯2∑k=12K¯ak.

We now estimate the three error terms in the previous formula. The limit distribution with rate of Heinrich (11) givesνα∈[0,1]:1K¯3∑k=12K¯ak2≥1K¯1/3≪∫const·K¯2/3∞e-1/(2x)2πx3/2dx+1K¯1-ε≪1K¯1/3.

Since the sequence ak is strictly stationary, we similarly deduceν({α∈[0,1]:1K¯2∑k=K¯-CK¯logK¯K¯+CK¯logK¯ak2≥(logK¯)1/3K¯1/3})=να∈[0,1]:1K¯2∑k=1CK¯logK¯ak2≥(logK¯)1/3K¯1/3≪∫const·K¯2/3/(logK¯)2/3∞e-1/(2x)2πx3/2dx+1K¯1/2-ε≪(logK¯)1/3K¯1/3.

Finally, formula (12) givesνα∈[0,1]:1K¯2∑k=12K¯ak≥1K¯1/3≪1K¯2/3.

By the previous three estimates, we can finally write14 5π3D22(S(α,N))(logN)2=2(log2)2πK¯2∑k=1K¯ak2+Y5,

where15 να∈[0,1]:|Y5|≥C(logK¯)1/3K¯1/3≤C(logK¯)1/3K¯1/3.

The proof of the theorem is now immediate. Assume first, that μ is absolutely continuous with respect to the Lebesgue measure. The theorem of Samur (10) ensures that the main term in (14) converges in distribution to the standard Lévy distribution as N, and hence K¯, goes to infinity. Since Y5→0 in ν-measure, the same holds also in μ-measure, and the convergence to the standard Lévy distribution remains true for the left hand side of (14). This finishes the proof for a general absolutely continuous measure μ.

Next, let μ be either λ or ν. Then the sequence ak is ψ-mixing with exponential rate, and the limit distribution with rate of Heinrich (11) ensures that the main term in (14) converges to the standard Lévy distribution with rate ≪1/K¯1-ε. The estimate (15), which holds also with λ in place of ν, together with the trivial fact that the distribution function of the Lévy distribution is Lipschitz, shows that this convergence remains true for the left hand side of (14) with the rate ≪(logK¯)1/3/K¯1/3. This finishes the proof of the rate of convergence for λ and ν. □

Typical rationals

Let FQ denote the set of all reduced fractions in the interval (0, 1) with denominator at most Q, and let us write every p/q∈FQ in the form p/q=[0;a1,…,ar]. It does not matter which of the two possible expansions is chosen. Note that the partial quotients a1=a1(p/q),…,ar=ar(p/q) as well as the length r=r(p/q) are functions of p/q. For the sake of simplicity, we use the convention ak=0 if k>r.

The proof of Theorem 6 is based on recent results of Bettin and Drappeau on the limit distribution of power sums of the partial quotients; they are perfect analogues of the results for typical irrationals mentioned in Sect. 3.2.

Lemma 11

(Bettin–Drappeau [4]) For any Q≥2 and ε>0,16 supt≥01|FQ|pq∈FQ:π372(logQ)2∑k=1rak2≤t-∫0te-1/(2x)2πx3/2dx≪1(logQ)1-ε

andsupt∈R1|FQ|pq∈FQ:1logQ∑k=1rak-loglogQ-γπ2/12≤t-G(t)≪1(logQ)1-ε

with implied constants depending only on ε. Here γ is the Euler–Mascheroni constant, and G(t) is the distribution function of the law with characteristic function∫ReitxdG(t)=exp-6π|x|1+2iπsgn(x)log|x|.

The second limit distribution in Lemma 11 immediately yields17 1|FQ|pq∈FQ:1logQ∑k=1rak≥t+loglogQπ2/12≪1t+1(logQ)1-εast→∞.

Note that (16) was stated in [4] with the rate ≪1/(loglogQ)1-ε, but the methods of that paper actually give ≪1/(logQ)1-ε. For the sake of completeness, we deduce (16) as stated here in Sect. 4.1. We now prove a lemma which will serve as a substitute for the fact that the partial quotients are not exactly identically distributed, and then prove Theorem 6.

Lemma 12

For any positive integers Q, k, t, we havepq∈FQ:ak≥t≤2Q2t.

Proof

Assume first, that k=1. Note that a1≥t implies that 0<p/q≤1/t. In particular, for each 1≤q≤Q there are at most q/t possible numerators p, hence18 pq∈FQ:a1≥t≤∑q=1Qqt≤Q2t.

Next, assume that k≥2. Let denom(x) denote the denominator of a rational x (in its reduced form). From the recursion satisfied by the denominator of the convergents one readily deduces the supermultiplicative propertydenom([0;a1,…,ar])≥denom([0;a1,…,ak-1])·denom([0;ak,…,ar]).

For any fixed positive integers b1,…,bk-1 we thus obtainpq∈FQ:a1=b1,…,ak-1=bk-1,ak≥t≤pq∈FQ/denom([0;b1,…,bk-1]):a1≥t.

Summing over b1,…,bk-1 and applying (18) leads topq∈FQ:ak≥t≤∑b1,…,bk-1=1∞Q2t(denom([0;b1,⋯,bk-1]))2.

Recall that the set of real numbers [0;c1,c2,…]∈[0,1] such that c1=b1,…,ck-1=bk-1 is an interval whose length is at least 1/(2denom([0;b1,…,bk-1])2). Since these are pairwise disjoint intervals, we have∑b1,…,bk-1=1∞1(denom([0;b1,…,bk-1]))2≤2,

and the claim follows. □

Proof of Theorem 6

Throughout the proof, C>0 is a large universal constant whose value changes from line to line, and Zi=Zi(p/q), i=1,2 are error terms.

Proposition 7 and formula (4) show that we can writeD22(S(p/q,q))=1360∑k=1rak2+Z1,where|Z1|≤C∑k=1rak+Cq∑k=0r-1ak+13qk.

Here ak+13qk≤ak+12qk+1, and qk/q=qk/qr≤1/Fr-k+1, where Fk is the sequence of Fibonacci numbers. Hence normalizing the previous formula leads to5π3D22(S(p/q,q))(logQ)2=π372(logQ)2∑k=1rak2+Z2,

where|Z2|≤C(logQ)2∑k=1rak+C(logQ)2∑k=1rak2Fr-k+1.

The first error term can be estimated in measure using formula (17) as1|FQ|pq∈FQ:1(logQ)2∑k=1rak≥1(logQ)1/2≪1(logQ)1/2.

Let us agree for the moment to use the continued fraction expansion with ar≥2 for fractions p/q∈(0,1/2], and the expansion with ar=1 for fractions p/q∈(1/2,1). Then the map reversing the order of the partial quotients FQ→FQ, [0;a1,a2,…,ar]↦[0;ar,…,a2,a1] is a bijection. In fact, [0;ar,…,a2,a1] is the reduced fraction qr-1/qr, which has the same denominator as [0;a1,…,ar]. Therefore the distribution of (ar,…,a2,a1) is identical to that of (a1,a2,…,ar), and we can apply Lemma 12 to estimate the second error term in measure as1|FQ|pq∈FQ:1(logQ)2∑k=1rak2Fr-k+1≥1(logQ)1/2=1|FQ|pq∈FQ:∑k=1rak2Fk≥(logQ)3/2≤1|FQ|∑k=1∞pq∈FQ:ak2Fk≥(logQ)3/2≤1|FQ|∑k=1∞2Q2Fk1/2(logQ)3/4≪1(logQ)3/4.

Note that we used the convention ak=0 if k>r, and the fact that |FQ|≫Q2. One readily checks that the value of ∑k=1rak2/Fr-k+1 for the two possible continued fraction expansions of the same rational differ at most by a factor of 2. Hence the tail estimate in the previous formula holds no matter which expansion we choose. In particular,1|FQ|pq∈FQ:|Z2|≥1(logQ)1/2≪1(logQ)1/2,

and the limit distribution theorem (16) of Bettin and Drappeau yieldssupt≥01|FQ|pq∈FQ:5π3D22(S(p/q,q))(logQ)2≤t-∫0te-1/(2x)2πx3/2dx≪1(logQ)1/2.

The error of replacing (logQ)2 by (logq)2 is easily seen to be negligible compared to 1/(logQ)1/2. □

Proof of Lemma 11

We now deduce the rate ≪1/(logQ)1-ε in (16). Fix ε>0. Applying the main result [4, Theorem 3.1] of Bettin and Drappeau to, in their notation, ϕ(x)=⌊1/x⌋2 with α0=1/2-ε, we conclude that there exist constants t0,δ>0 such that for all |t|<t0,19 1|FQ|∑p/q∈FQexpit∑k=1rak2=expU(t)logQ+O|t|1/2-ε+Q-δ,

whereU(t)=12π2∫01eit⌊1/x⌋2-11+xdx+O|t|1-ε=12π2∫1∞eit⌊x⌋2-1x2+xdx+O|t|1-ε.

Here t0,δ and the implied constants depend only on ε.

Our improvement in (16) comes from a more careful estimate for U(t). Assume that 0<t<t0. Since |⌊x⌋2-x2|≤2x, the error of removing the integer part function is negligible:∫1∞eit⌊x⌋2-eitx2x2+xdx≤∫1∞min{2tx,2}x2+xdx≪tlog1t.

ThereforeU(t)=12π2∫1∞eitx2-1x2+xdx+O(t1-ε)=12tπ2∫t∞eix2-1x2+txdx+O(t1-ε).

We now compare the remaining integral to its limit, the Fresnel-type integral ∫0∞(eix2-1)/x2dx=(i-1)2π/2. We have∫t∞eix2-1x2+txdx-∫0∞eix2-1x2dx≤∫0teix2-1x2dx+∫t∞|eix2-1|·1x2+tx-1x2dx≤∫0t1dx+∫t∞min{x2,2}tx3dx≪tlog1t,

hence U(t)=62tπ3/2(i-1)+O(t1-ε). The case of negative t follows from complex conjugation, thus for |t|<t0,20 U(t)=-62|t|1/2π3/2(1-isgn(t))+O(|t|1-ε).

Now letφ1(t)=1|FQ|∑p/q∈FQexpitπ372(logQ)2∑k=1rak2

and φ2(t)=exp(-|t|1/2(1-isgn(t))); the latter is the characteristic function of the standard Lévy distribution. The Berry–Esseen inequality [24, p. 142] states that the distance of these two distributions in the Kolmogorov metric is, with any T>0,supt≥01|FQ|pq∈FQ:π372(logQ)2∑k=1rak2≤t-∫0te-1/(2x)2πx3/2dx≪1T+∫0T|φ1(t)-φ2(t)|tdt.

Choose T=logQ. Formulas (19) and (20) show that for |t|≤logQ,φ1(t)=φ2(t)expO|t|(logQ)21-εlogQ+|t|(logQ)21/2-ε+Q-δ=φ2(t)1+O|t|1-ε+|t|1/2-ε(logQ)1-2ε+Q-δ.

Using |φ2(t)|=e-|t|1/2, this immediately yields|φ1(t)-φ2(t)|≪e-|t|1/2|t|1-ε+|t|1/2-ε(logQ)1-2ε+Q-δ.

It is now easy to see that∫Q-1001|φ1(t)-φ2(t)|tdt≪1(logQ)1-2εand∫1logQ|φ1(t)-φ2(t)|tdt≪1(logQ)1-2ε.

On the other hand, by a very rough estimate we have ∑k=1rak2≤Q3, hence |φ1(t)-1|≪|t|Q3. Clearly |φ2(t)-1|≪|t|1/2, thus∫0-100|φ1(t)-φ2(t)|tdt≪∫0-100tQ3+t1/2tdt≪Q-50.

Therefore1logQ+∫0logQ|φ1(t)-φ2(t)|tdt≪1(logQ)1-2ε,

as claimed.

Acknowledgements

The author is supported by the Austrian Science Fund (FWF) project F 5510, which is part of the Special Research Program (SFB) “Quasi-Monte Carlo Methods: Theory and Applications”. I would like to thank Sary Drappeau for helpful discussions on Lemma 11, and the referee for a careful reading of the manuscript and useful comments.

Funding

Open access funding provided by Graz University of Technology.

1 Both Γ and its dual have full rank d. The terminology “rank-1” comes from the fact that the set Lp1,…,pd,N, viewed as a finite additive subgroup of the torus Rd/Zd, is cyclic.

2 If a1=1, then the term k=0 can be removed.

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
==== Refs
References

1. Beck J Probabilistic Diophantine Approximation. Randomness in Lattice Point Counting 2014 Cham Springer
Beck, J.: Probabilistic Diophantine Approximation. Randomness in Lattice Point Counting. Springer Monographs in Mathematics, Springer, Cham (2014)
2. Beck J Randomness of the square root of 2 and the giant leap, part 1 Period. Math. Hungar. 2010 60 137 242 10.1007/s10998-010-2137-9
Beck, J.: Randomness of the square root of 2 and the giant leap, part 1. Period. Math. Hungar. 60, 137–242 (2010)10.1007/s10998-010-2137-9
3. Beck J Randomness of the square root of 2 and the giant leap, part 2 Period. Math. Hungar. 2011 62 127 246 10.1007/s10998-011-6127-3
Beck, J.: Randomness of the square root of 2 and the giant leap, part 2. Period. Math. Hungar. 62, 127–246 (2011)10.1007/s10998-011-6127-3
4. Bettin S Drappeau S Limit laws for rational continued fractions and value distribution of quantum modular forms Proc. Lond. Math. Soc. 2022 125 1377 1425 10.1112/plms.12485
Bettin, S., Drappeau, S.: Limit laws for rational continued fractions and value distribution of quantum modular forms. Proc. Lond. Math. Soc. 125, 1377–1425 (2022)10.1112/plms.12485
5. Bilyk, D.: The discrepancy of irrational lattices. In: Monte Carlo and quasi-Monte Carlo methods 2012, 289–296, Springer Proc. Math. Stat., 65, Springer, Heidelberg (2013)
6. Bilyk D Temlyakov V Yu R Fibonacci sets and symmetrization in discrepancy theory J. Complexity 2012 28 18 36 10.1016/j.jco.2011.07.001
Bilyk, D., Temlyakov, V., Yu, R.: Fibonacci sets and symmetrization in discrepancy theory. J. Complexity 28, 18–36 (2012)10.1016/j.jco.2011.07.001
7. Bilyk, D., Temlyakov, V., and Yu, R.: The discrepancy of two-dimensional lattices. Recent advances in harmonic analysis and applications, 63–77, Springer Proc. Math. Stat., 25, Springer, New York (2013)
8. Borda, B.: On the distribution of Sudler products and Birkhoff sums for the irrational rotation. To appear in Ann. Inst. Fourier (Grenoble)
9. Borda B On the theorem of Davenport and generalized Dedekind sums J. Number Theory 2017 172 1 20 10.1016/j.jnt.2016.08.016
Borda, B.: On the theorem of Davenport and generalized Dedekind sums. J. Number Theory 172, 1–20 (2017)10.1016/j.jnt.2016.08.016
10. Borda, B.: The number of lattice points in irrational polytopes. Ph.D. Thesis, Rutgers The State University of New Jersey—New Brunswick. ProQuest LLC (2016)
11. Bykovskii, V. A.: The discrepancy of the Korobov lattice points. (Russian) Izv. Ross. Akad. Nauk Ser. Mat. 76: 19–38. English translation in Izv. Math. 76(2012), 446–465 (2012)
12. Davenport H Note on irregularities of distribution Mathematika 1956 3 131 135 10.1112/S0025579300001807
Davenport, H.: Note on irregularities of distribution. Mathematika 3, 131–135 (1956)10.1112/S0025579300001807
13. Diamond H Vaaler J Estimates for partial sums of continued fraction partial quotients Pac. J. Math. 1986 122 73 82 10.2140/pjm.1986.122.73
Diamond, H., Vaaler, J.: Estimates for partial sums of continued fraction partial quotients. Pac. J. Math. 122, 73–82 (1986)10.2140/pjm.1986.122.73
14. Dick, J., Kritzer, P., and Pillichshammer, F.: Lattice Rules—Numerical Integration, Approximation, and Discrepancy. With an appendix by Adrian Ebert. Springer Series in Computational Mathematics, 58. Springer, Cham (2022)
15. Dick J Pillichshammer F Digital Nets and Sequences 2010 Cambridge Cambridge University Press
Dick, J., Pillichshammer, F.: Digital Nets and Sequences. Discrepancy Theory and Quasi-Monte Carlo Integration, Cambridge University Press, Cambridge (2010)
16. Drmota, M., Tichy, R.: Sequences, Discrepancies and Applications. Lecture Notes in Mathematics, vol. 1651. Springer-Verlag, Berlin (1997)
17. Heinrich L Rates of convergence in stable limit theorems for sums of exponentially ψ-mixing random variables with an application to metric theory of continued fractions Math. Nachr. 1987 131 149 165 10.1002/mana.19871310114
Heinrich, L.: Rates of convergence in stable limit theorems for sums of exponentially -mixing random variables with an application to metric theory of continued fractions. Math. Nachr. 131, 149–165 (1987)10.1002/mana.19871310114
18. Hinrichs A Kritzinger R Pillichshammer F Extreme and periodic L2 discrepancy of plane point sets Acta Arith. 2021 199 163 198 10.4064/aa200520-22-12
Hinrichs, A., Kritzinger, R., Pillichshammer, F.: Extreme and periodic discrepancy of plane point sets. Acta Arith. 199, 163–198 (2021)10.4064/aa200520-22-12
19. Illarionov, A. A.: A probability estimate for the discrepancy of Korobov lattice points. (Russian) Mat. Sb. 212,: 73–88. English translation in Sb. Math. 212(2021), 1571–1587 (2021)
20. Illarionov, A. A. : Distribution of Korobov-Hlawka sequences. (Russian) Mat. Sb. 213,: 70–96. English translation in Sb. Math. 213(2022), 1222–1249 (2022)
21. Iosifescu M Kraaikamp C Metrical Theory of Continued Fractions. Mathematics and its Applications 2002 Dordrecht Kluwer Academic Publishers
Iosifescu, M., Kraaikamp, C.: Metrical Theory of Continued Fractions. Mathematics and its Applications, vol. 547. Kluwer Academic Publishers, Dordrecht (2002)
22. Kesten H The discrepancy of random sequences {kx} Acta Arith. 1964 10 183 213 10.4064/aa-10-2-183-213
Kesten, H.: The discrepancy of random sequences . Acta Arith. 10, 183–213 (1964)10.4064/aa-10-2-183-213
23. Morita T Local limit theorem and distribution of periodic orbits of Lasota-Yorke transformations with infinite Markov partition J. Math. Soc. Jpn. 1994 46 309 343 10.2969/jmsj/04620309
Morita, T.: Local limit theorem and distribution of periodic orbits of Lasota-Yorke transformations with infinite Markov partition. J. Math. Soc. Jpn. 46, 309–343 (1994)10.2969/jmsj/04620309
24. Petrov, V.: Limit Theorems of Probability Theory. Sequences of Independent Random Variables. Oxford Studies in Probability, 4. Oxford Science Publications. The Clarendon Press, Oxford University Press, New York (1995)
25. Roçadas L Schoißengeier J An explicit formula for the L2-discrepancy of (nα)-sequences Computing 2006 77 113 128 10.1007/s00607-005-0143-1
Roçadas, L., Schoißengeier, J.: An explicit formula for the -discrepancy of -sequences. Computing 77, 113–128 (2006)10.1007/s00607-005-0143-1
26. Roth K On irregularities of distribution Mathematika 1954 1 73 79 10.1112/S0025579300000541
Roth, K.: On irregularities of distribution. Mathematika 1, 73–79 (1954)10.1112/S0025579300000541
27. Samur J On some limit theorems for continued fractions Trans. Am. Math. Soc. 1989 316 53 79 10.1090/S0002-9947-1989-0948197-9
Samur, J.: On some limit theorems for continued fractions. Trans. Am. Math. Soc. 316, 53–79 (1989)10.1090/S0002-9947-1989-0948197-9
28. Schoissengeier J Another proof of a theorem of J. Beck Monatsh. Math. 2000 129 147 151 10.1007/s006050050014
Schoissengeier, J.: Another proof of a theorem of J. Beck. Monatsh. Math. 129, 147–151 (2000)10.1007/s006050050014
29. Takahasi H Large deviations for denominators of continued fractions Nonlinearity 2020 33 5861 5874 10.1088/1361-6544/ab9a1d
Takahasi, H.: Large deviations for denominators of continued fractions. Nonlinearity 33, 5861–5874 (2020)10.1088/1361-6544/ab9a1d
