We improve the error term in the prime geodesic theorem for the modular group. More generally, our result applies to any congruence subgroup of any indefinite quaternion algebra over Q.
Introduction
The prime geodesic theorem for the modular group Γ=PSL2(Z) is concerned with the asymptotics of
ΨΓ(x):={P}Γ:N(P)≤x∑logN(P0)(1)
as x→∞, where the sum ranges over hyperbolic Γ-conjugacy classes, P0 is the primitive element corresponding to P, and N(P) is the norm of P. An alternative expression for ΨΓ(x) which better captures its number-theoretic content is
ΨΓ(x)=22<n≤X∑du2=n2−4∑dL(1;χd),(2)
where X=x+1/x, and χd is the quadratic character (not necessarily primitive) associated to the discriminant d, and where L(s,χd) is the corresponding Dirichlet series, see [17 Equation (1)]. Using the Selberg trace formula one can give a quick proof of the asymptotic
ΨΓ(x)=x+O(x3/4),(3)
see [7 Theorem 10.5]. The same asymptotic holds for an arbitrary cofinite Fuchsian group, except for the possible presence of an explicit secondary term. Several authors were able to improve the error term in (3) by using the Bruggeman–Kuznetsov trace formula together with deep number-theoretic inputs, see the works of Iwaniec [8], Luo and Sarnak [11] and Cai [2]. Using identity (2) Bykovskii was able to prove the local asymptotic
ΨΓ(x+u)−ΨΓ(x)=u+oε(u),(4)
where x1/2+ε≤u≤x, see [1 Theorem 1]. Combining ideas from [1] with results from [11], Soundararajan and Young [17] proved that
ΨΓ(x)=x+Oε(x2/3+θ/6+ε),(5)
where θ>0 is any subconvexity exponent in level aspect for quadratic Dirichlet L-functions. By work of Conrey and Iwaniec [CI00], Soundararajan and Young were allowed to use θ=1/6+ε unconditionally in (5), thus arriving at
ΨΓ(x)=x+Oε(x25/36+ε),(6)
which remains to this day the best unconditional asymptotic for ΨΓ(x). In this paper we will improve (6) unconditionally, see Corollary 1.3 below. Before stating and proving a more general result, we would first like to convince the reader that the error term in (6) can indeed be improved.
Main idea.
Let ω∈C∞(0,1) satisfy ∫Rω(u)du=1, let Y be a parameter satisfying x1/2+ε≤Y≤x/logx and define ωY(u):=ω(u/Y)/Y. Using previous work of Luo and Sarnak [11 Equation (58)], Soundararajan and Young evaluated a smoothed version of ΨΓ(x), see [17 Equation (13) in Theorem 3.1]. After a small rearrangement, their result can be written as
On the other hand, Theorem 3.2 in [17] asserts that
ΨΓ(x+u)−ΨΓ(x)=u+Oε(u1/2x1/4+θ/2+ε)(8)
for x1/2+ε≤u≤x/logx. Combining (7) and (8) and choosing the optimal value Y=x5/6−2θ/3 one arrives at (5). Thus, an improvement to (6) would follow if we could improve (8) in the range u≈x13/18, with θ=1/6.
A key step in the proof of both (4) and (8) is the identity
which can be found implicitly in both [1 Section 2] and [17 Section 5]. In formula (9), the parameter V satisfies 1≤V≤x and the quantities X and X′ are defined as
X:=x+1/x,X′:=x+u+1/x+u,
so that, in particular, we have ∣X′−X∣≍ux−1/2≈x2/9. Furthermore, IV(n2−4) is a contour integral given by
IV(n2−4):=2πi1∫(σ)L(s,n2−4)Vs−1Γ(s−1)ds
with 0<σ<1, where we have
L(s,n2−4):=du2=n2−4∑L(s,χd)u1−2s
with χd being the (not necessarily primitive) real character associated to the discriminant d. In their proof of the local asymptotic (8), Soundararajan and Young estimate each IV(n2−4) by letting σ=1/2 and using subconvexity in level aspect to obtain
IV(n2−4)≪xθ+εV−1/2.(10)
Summing over n they arrive at
X<n≤X′∑2n2−4IV(n2−4)≪uxθ+εV−1/2,(11)
which combined with (9) leads to (8) if we take V=ux−1/2+θ. Thus, in order to improve on (6) it is enough to improve on (11) in the range u≈x13/18, V≈x7/18, with θ=1/6.
Motivated by the proof of (4) in [1], we introduce the set
Bσ:={n∈(X,X′]:L(s,n2−4) has a zero in [σ,1]×[−xε,xε]},
where σ satisfies 1/2≤σ≤1 and is to be chosen at the end of the argument. If n∈(X,X′]∖Bσ, then a standard argument [1 Lemma 1] shows that L(s,n2−4) satisfies the Lindelöf hypothesis on [σ+ε,1]×[−xε+1,xε−1]. It follows that for n∈(X,X′]∖Bσ we have
IV(n2−4)≪xεVσ−1.(12)
If we use bound (10) for n∈Bσ and bound (12) for n∈(X,X′]∖Bσ we arrive at
Heath-Brown’s zero-density estimate for quadratic characters [5 Theorem 3] implies that
∣Bσ∣≪εx3(1−σ)/(2−σ)+ε.(14)
Recall that θ=1/6, u≈x13/18 and V≈x7/18. If we insert (14) in (13) and let σ∈(23/25,13/14) we can improve the bound in (11) which, by our discussion, leads to a better bound for the error term in (6).
Our argument can be refined a bit more by looking into the proof of (14). Indeed, by inspecting [5 Section 11] we observe that our application of [5 Theorem 3] is using implicitly the estimate
where S(x) is the set of primitive quadratic characters of discriminant at most x and ∣t∣≪xε. Since ∣Bσ∣≤∣X′−X∣≍ux−1/2≈x2/9 is very small compared to ∣S(x)∣≍x, one can hope to improve on (15) by using subconvexity. This is indeed the case, since we have
n∈Bσ∑∣L(1/2+it,n2−4)∣4≪∣Bσ∣x4θ+ε,
which is better than (15) whenever ∣Bσ∣≤x1/3 (recall that θ=1/6). Motivated by this observation we will prove a zero-density estimate for quadratic characters which improves on [5 Theorem 3] near σ=1, see Proposition 2.1 below.
Main results.
We start with a definition which captures the subconvexity bounds that will feature in the results below.
Definition 1.1. If ψ is a Dirichlet character, we say that a pair (θ,A)∈[0,1/4]×[0,∞) is ψ-admissible if for all t∈R and all primitive quadratic characters χ we have
∣L(1/2+it,χψ)∣≪ψ,ε(1+∣t∣)A+εq(χ)θ+ε,(16)
where q(χ) is the conductor of χ. We say that θ∈[0,1/4] is admissible if for any ψ there is some A≥0, possibly depending on ψ, such that the pair (θ,A) is ψ-admissible.
By work of Petrow and Young we know that the pair (θ,A)=(1/6,1/6) is ψ-admissible for any ψ, see [13] and [14]. In particular, the exponent θ=1/6 is admissible.
In order to state a general result, we need to recall the setup of quaternion algebras from [15]. We let B be an indefinite quaternion algebra over Q and we let O be a maximal order in B. Using the isomorphism B⊗QR≃M2(R) we can view O1⊂SL2(R) as a discrete cofinite subgroup. We let q≥1 be a positive integer and denote by O1(q):=O1∩(1+qO) the principal congruence subgroup of O1 of level q. We let Γ be a congruence subgroup O1(q)⊂Γ⊂O1, and define Γ:=O1(q)\Γ. Finally, we let φ be a class function on Γ and define
The reader only interested in the case of Γ=SL2(Z) may take B=M2(Q), O=M2(Z), q=1 and φ=1, in which case (17) agrees with (1). The main result of this paper is a strong asymptotic for the sum ΨΓ(x;φ) as x→∞.
Theorem 1.2. For any q≥1, for any class function φ on Γ, and for any admissible exponent θ we have
ΨΓ(x;φ)=⟨φ,1⟩x+Oφ,ε(xη(θ)+ε),
where
and
η(y):=21+481y2+106y+33−5−9y.
For any Γ as above we let ΨΓ(x):=ΨΓ(x;1), so that
ΨΓ(x)=[±IΓ:Γ]{P}ΓN(P)≤xTr(P)>2∑logN(P0).
Thus, as a particular case of Theorem 1.2 we deduce the following corollary.
Corollary 1.3. Let Γ⊂SL2(R) be a congruence subgroup of an indefinite quaternion algebra over Q. Then, for any admissible exponentθ we have
ΨΓ(x)=x+Oε(xη(θ)+ε).
In particular, since θ=1/6 is admissible and
η(1/6)≈0.69359<0.694=3625
we see that Corollary 1.3 improves unconditionally on [17 Theorem 1.1].
Acknowledgements.
The author would like to express his gratitude to his advisor Ian Petrow for many helpful discussions and for carefully reading the present work. The author would like to thank Abdellah Sebbar for pointing out typos. This work was supported by the Engineering and Physical Sciences Research Council [EP/S021590/1], via the EPSRC Centre for Doctoral Training in Geometry and Number Theory (The London School of Geometry and Number Theory), University College London.
A zero-density estimate.
Let Q be a positive integer, and let S(Q) be the set of primitive real characters of conductor up to Q. Heath-Brown showed that this family of arithmetic functions has strong orthogonality properties. Indeed, he proved [5 Corollary 3] that the inequality
see [5 Theorem 3]. Motivated by the discussion in § 1.1, we will use a subconvexity bound instead of (19) to arrive at the following zero-density estimate.
Proposition 2.1. For any Dirichlet character ψ and any ψ-admissible pair (θ,A) we have
By work of Petrow and Young we can take (θ,A)=(1/6,1/6) in Proposition 2.1, see [13] and [14]. In our application to Theorem 1.2 we will only need to use Proposition 2.1 in Q-aspect. Note that Proposition 2.1 improves on (20) in Q-aspect when θ=1/6 and σ≥7/8.
Proof of Proposition 2.1. In this proof the character χψ is given by n↦χ(n)ψ(n) and is not necessarily primitive. This is not an issue since L(s,χψ) and L(s,(χψ)∗) have the same zeros in the region Re(s)>0, where (χψ)∗ is the primitive character corresponding to χψ. To prove Proposition 2.1 we will follow [5 Section 11] very closely. First of all, note that we can assume that σ≥1/2+θ/(1+2θ), since otherwise Proposition 2.1 follows from the Riemann–von Mangoldt formula [6 Theorem 5.8]. Also, since ψ is fixed, we can assume that χψ is nontrivial by ignoring the contribution of at most a single χ. Define
R(σ,τ):=[σ,σ+(logQT)−1]×[τ,τ+(logQT)−1],
N′(σ,τ):=#{χ∈S(Q):L(s,χψ) has a zero in R(σ,τ)}.
By subdividing the region [σ,1]×[−T,T] into small rectangles and summing the different contributions trivially, we see that in order to prove Proposition 2.1 it is enough to show that
N′(σ,τ)≪ψ,ε(QT)εQ2(1+2θ)(1−σ)T4A(1−σ)(21)
holds for all (σ,τ)∈[1/2+θ/(1+2θ),1]×[−T,T]. Let 100≤X≤Y≤(QT)100 be large parameters and consider
MX(s,χψ):=n≤X∑nsμ(n)χ(n)ψ(n).
If ρ=β+iγ∈R(σ,τ) is a zero of L(s,χψ), then a routine argument [12 Equation (12.24)] using Mellin inversion shows that
::: (2) Otherwise, there is an integer U∈U and ≫N′(σ,τ)∣U∣−1 characters χ∈S(Q) for which
U<n≤2U∑nρχa(n)χ(n)ψ(n)e−n/Y≫∣U∣−1
holds for some ρχ=βχ+iγχ∈R(σ,τ).
We can deal with the second case exactly as in Heath-Brown, obtaining
N′(σ,τ)≪ψ,ε(QT)ε(QX1−2σ+Y2−2σ)
in that case. Our proof differs from [5 Section 11] in the treatment of the first case. Squaring (23), applying Cauchy-Schwarz and the subconvexity bound from (16) we deduce that
and applying the large sieve inequality (18) we deduce that
N′(σ,τ)≪ψ,ε(QT)εQ2θT2A(Q+X)Y1−2σ.
It follows that, in any case, we have
N′(σ,τ)≪ψ,ε(QT)ε(Q2θT2A(Q+X)Y1−2σ+QX1−2σ+Y2−2σ).
If we let X=Q and Y=Q1+2θT2A we arrive at (21), which concludes the proof of Proposition 2.1.
Preparations for the proof of Theorem 1.2.
Recall from [16 Definition 1.6] that a congruence character of level q is a pair (Γ,χ) where {±I}Γ(q)⊂Γ⊂SL2(Z) is a congruence subgroup and χ:Γ→S1 is a one-dimensional character which is trivial on Γ(q). We can also view χ as a class function on Γ=Γ(q)\Γ. We denote by k∈{0,1} the weight of χ, so that χ(−I)=(−1)k. We let {uj}j be an orthonormal basis of χ-automorphic Maass cuspidal forms with Laplacian eigenvalue λj=1/4+tj2, see [16 Section 3.1] for more details. We know that
i) If k=1, then λj≥1/4[4 Equation (4.40)]. In this case we assume that each tj satisfies tj≥0.
ii) If k=0, then λj≥1/4−(7/64)2, see the second appendix to [9]. If tj is purely imaginary, we assume that Im(tj)>0, and if tj is real we assume that tj≥0.
for 1≤T≤x1/2(logx)−2, which generalizes [8 Lemma 1]. Note that in (26) we have included the possible small eigenvalues in the error term.
We let ℓ≥1 denote the width of the cusp ∞ with respect to Γ, so that we have Γ∞={±(10ℓZ1)}. In [16 Section 9.1] we introduced certain functions Z(s;n) in order to generalize Equation (2) above. More precisely, for ∣n∣≥3 the function Z(s;n) is defined in Re(s)>1 by an absolutely convergent Dirichlet series
lsZ(s;n):=c≥1∑csa(c;n)
for some complex numbers a(c;n), and admits a meromorphic continuation to C with a simple pole at s=1 as its only possible singularity on Re(s)≥1/2, see [16 Lemma 9.1 and Equation (132)]. Equation (2) can then be generalized to
see [16 Equation (134)]. Informally, the coefficients a(c;n) are weighted counts of solutions to certain quadratic congruences modulo cq. Splitting these solutions by an archimedean sign one can write
Z(s;n)=Z+(s;n)+χ(−I)Z+(s;−n),(28)
where Z+(s;n) has similar properties to Z(s;n), see [16 Section 9.4]. We know that if θ is any admissible exponent, then there exists B>0 such that for any ε>0 the bound
Z+(s;n)≪q,θ,ε(1+∣s∣)B∣n∣2θ+ε(29)
holds uniformly for ∣n∣≥3 and s satisfying Re(s)≥1/2 and ∣s−1∣≥ε, see [16 Proposition 9.7]. Furthermore, by grouping the solutions which the coefficients a(c;n) count by their reduction modulo q one can derive the expression
see the proof of Proposition 9.7 in [16]. In (30), D is the fundamental discriminant for which we can write n2−4=Df2 for some integer f, ψD is the real Dirichlet character associated to D, and the functions s↦Zq(s;n;γ;a) and s↦H(s;n;ψ) are holomorphic on Re(s)≥1/2 and satisfy
Zq(s;n;γ;a),H(s;n;ψ)≪q,ε∣n∣ε(31)
for ∣n∣≥3 and Re(s)≥1/2.
Lemma 3.1. For each fundamental discriminant D>0 we have
#{3≤n≤X:n2−4=Df2 for some f}≪logX,
where the implied constant is independent in D.
Proof. Let K be the field Q(D), with ring of integers OK. We consider K embedded in R so that D>0. By Dirichlet’s unit theorem we know that OK1={±zKm:m∈Z} for a unique zK satisfying zK>1. It is easy to see that we have zK≥(3+5)/2. If n≥3 is such that n2−4=Df2 for some integer f, then the element zn=(n+n2−4)/2 belongs to OK1 and satisfies zn>1, so we can write zn=zKm for some m≥1. It follows that
#{3≤n≤X:n2−4=Df2 for some f}≪logzKlogX≪logX,
as desired.
Lemma 3.2. If L(s,ψDψ) has no zero in the rectangle [σ,1]×[−T,T], then
L(s,ψDψ)≪q,ε(DT)ε
for s such that Re(s)>σ+ε, ∣Im(s)∣<T−1 and ∣s−1∣≥ε.
Proof. This is well-known, see for example [1 Lemma 1].
Lemma 3.3. Let 1/2≤σ≤1 and x≥1. For any ε>0 there is a set Bσ⊂(x1/2,2x1/2] of cardinality ∣Bσ∣≪εx2(1+2θ)(1−σ)+ε such that the bound
Z(s;n)≪εxε(32)
holds uniformly for n∈(x1/2,2x1/2]∖Bσ and all s such that Re(s)≥σ, ∣Im(s)∣≤xε and ∣s−1∣≥ε.
Proof. The lemma follows by combining Proposition 2.1, identities (28) and (30), the bounds in (31), and Lemmas 3.1 and 3.2.
Proof of Theorem 1.2.
Recall the setup of quaternion algebras introduced above before the statement of Theorem 1.2. If B is a division algebra, then by [15 Theorem 1.2] we know that there exists a class function f on SL2(Z/(qDisc(D))Z) such that
ΨΓ(x;φ)=ΨSL2(Z)(x;f)+Oφ,ε(x1/2+ε).
Thus, in Theorem 1.2 we can restrict ourselves to the case B=M2(Q) and O=M2(Z). Also, the same argument as in [16 Section 2] shows the following variant of [16 Proposition 2.3]: proving Theorem 1.2 for B=M2(Q) and O=M2(Z) is equivalent to proving that
ΨΓ(x;χ)=δχ=1x+Oq,ε(xη(θ)+ε)(33)
holds for any congruence character (Γ,χ) of any level q. From now on we fix a congruence character (Γ,χ) of level q and work towards proving (33). Recall that we let k∈{0,1} denote the weight of χ.
Let ω∈CR∞(0,1) satisfy ∫Rω(u)du=1, let Y be a parameter satisfying x1/2+ε≤Y≤x/logx and define ωY(u):=ω(u/Y)/Y. We have the following generalization of (7).
Proof. Using (25) instead of [11 Equation (58)], and using (26) instead of [8 Lemma 1], the proof of Proposition 4.1 is exactly the same as the proof of Equation (13) from [17].
The following proposition generalizes the discussion of Section 1.1.
Proposition 4.2. Let θ be an admissible exponent. For 1≤V≤x, 1/2≤σ≤1 and x1/2+ε≤u≤x1−ε we have
Proof. Let ω∈Cc∞(0,∞) satisfy ∫Rω(x)dx=1. Let ω denote the Mellin transform of ω. Note that ∣ω(s)∣≪B(1+∣s∣)−B for arbitrary B>0 on any fixed vertical strip. Consider
with X=x+1/x and X′=x+u+1/x+u. We know from [16 Equation (146)] that
SV=δχ=1u+Oq,ε(V1/2+εx1/2+uV−1).(35)
If we execute first the summation over c in (34), apply Mellin inversion formula, move the contour to the left, pick up the residues at s=1 and use (27) we obtain
where 1/2≤σ≤1, 1≤V≤x and x1/2+ε≤Y≤x1−ε. It is a routine calculation to check that the error term is optimized with the choice
1−σ=4(1+2θ)−5−11θ+816θ2+106θ+33,
V=x2(1+2θ)(1−σ)+θ,
Y=x7/10+8(1+2θ)(1−σ)2/5+4θ(1−σ)/5,
which leads to (33) and completes the proof of Theorem 1.2.
Appendix
The first version of this paper was submitted before OpenAI’s release, on 6 October 2026, of a manuscript claiming a proof that Dirichlet L-functions have no zeros on the region Re(s)>7/8. A follow-up preprint claims a slightly larger zero-free region [10]. If Dirichlet L-functions had no zeros on the region Re(s)>σ0 then, since Bσ0=∅, Proposition 4.2 would hold for σ=σ0 with the first term in the error omitted. After optimization this would lead to the exponent η′(σ0)=1/2+1/(7−2σ0) in Theorem 1.2. In particular, for σ0=7/8 one would have η′(7/8)=29/42≈0.690476<0.69359≈η(1/6), improving on Theorem 1.2.
DEPARTMENT OF MATHEMATICS, UNIVERSITY COLLEGE LONDON, 25 GORDON STREET, LONDON WC1H 0AY, UNITED KINGDOM
References
[1][Byk94] V. A. Bykovskiĭ. “Density theorems and the mean value of arithmetic functions on short intervals”. In: Rossiĭskaya Akademiya Nauk. Sankt-Peterburgskoe Otdelenie. Matematicheskiĭ Institut im. V. A. Steklova. Zapiski Nauchnykh Seminarov (POMI) 212 (1994), pp. 56–70, 196.
[2][Cai02] Y. Cai. “Prime geodesic theorem”. In: Journal de Théorie des Nombres de Bordeaux 14.1 (2002), pp. 59–72.DOI
[4][DFI02] W. Duke, J. B. Friedlander, and H. Iwaniec. “The subconvexity problem for Artin L-functions”. In: Inventiones Mathematicae 149.3 (2002), pp. 489–577.DOI
[5][Hea95] D. Heath-Brown. “A mean value estimate for real character sums”. In: Acta Arithmetica 72.3 (1995), pp. 235–275.
[6][IK04] H. Iwaniec and E. Kowalski. Analytic number theory. Vol. 53. American Mathematical Society Colloquium Publications. American Mathematical Society, Providence, RI, 2004, pp. xii+615.
[7][Iwa02] H. Iwaniec. Spectral methods of automorphic forms. Second. Vol. 53. Graduate Studies in Mathematics. American Mathematical Society, Providence, RI; Revista Matemática Iberoamericana, Madrid, 2002, pp. xii+220.DOI
[8][Iwa84] H. Iwaniec. “Prime geodesic theorem”. In: Journal für die Reine und Angewandte Mathematik. [Crelle’s Journal] 349 (1984), pp. 136–159.
[9][Kim03] H. Kim. “Functoriality for the exterior square of GL₄ and the symmetric fourth of GL₂”. In: Journal of the American Mathematical Society 16.1 (2003). With appendix 1 by Dinakar Ramakrishnan and appendix 2 by Kim and Peter Sarnak, pp. 139–183.DOI
[10][Liu26] B. Liu. Slightly improved zero-free half-planes for the quasi-Riemann hypothesis. 2026. arXiv: 2610.12234 [math.NT].arxiv.org/abs/2610.12234
[11][LS95] W. Luo and P. Sarnak. “Quantum Ergodicity of Eigenfunctions on PSL₂(Z)/H²”. In: Publications Mathématiques de l’IHÉS 81 (1995), pp. 207–237.
[12][Mon71] H. L. Montgomery. Topics in multiplicative number theory. Vol. Vol. 227. Lecture Notes in Mathematics. Springer-Verlag, Berlin-New York, 1971, pp. ix+178.
[13][PY20] I. Petrow and M. P. Young. “The Weyl bound for Dirichlet L-functions of cube-free conductor”. In: Annals of Mathematics 192.2 (2020), pp. 437–486.DOI
[14][PY23] I. Petrow and M. P. Young. “The fourth moment of Dirichlet L-functions along a coset and the Weyl bound”. In: Duke Mathematical Journal 172.10 (2023), pp. 1879–1960.DOI
[17][SY13] K. Soundararajan and M. P. Young. “The prime geodesic theorem”. In: Journal für die Reine und Angewandte Mathematik. [Crelle’s Journal] 676 (2013), pp. 105–120.DOI