WorksMathematics
Higher derivatives of the Gram function
Abstract
We study the nonlinear phenomenon of the asymptotics of higher-order derivatives of the Gram function . We also prove the uniform distribution and continuous uniform distribution modulo one of for . We use AI to formalize our proofs in Lean.
Introduction and main results
The Danish mathematician Gram introduced the concept of Gram points. They are points on the critical line where the Riemann–Siegel theta function is a multiple of . Using a heuristic argument, Gram [3] reasoned that there is precisely one zero of the Riemann zeta function between two neighboring Gram points. Later on, Hutchinson [4] found counterexamples to this conjecture. Nevertheless, the Gram points, which behave nonlinearly, remain an active area of research.
The Riemann–Siegel theta function gives us an increment of the continuous branch of the argument of as goes along the straight line segment of the complex plane joining and ; note that is increasing for (Ivić [5 Section 1.3] and Korolev [10 p. 3]). The function appears in the symmetric functional equation involving the Riemann zeta function
The function is related to the function . The function is defined as
Here, the argument is taken along the continuous branch of as we move from to and . If is a zero of , then we set
The Riemann-von Mangoldt formula (see, e.g. Edwards [1 Section 6.6], Ivić [5 formula (1.45)], Karatsuba and Korolev [6]) leads to the following relation between the functions and
Here is the number of zeros in the rectangle , , with the exception that at points of discontinuity, which coincide with the ordinates of the zeros , it is defined as the limit
The function is related to the function by the Riemann-von Mangoldt formula.
(see Karatsuba and Korolev, [6 Theorem 1]).
From the above equation, the function can be expressed as
with , where and are neighboring ordinates of the zeros of (see Karatsuba and Korolev [6 Proof of Theorem 2]). The function is
and (see Karatsuba and Korolev [6 Theorem 1]).
The first derivative of is
except for its points of discontinuity (see Karatsuba and Korolev [6 Theorem 2]).
We give our theorem about the -th derivative of the function. Note that in the theorem below and elsewhere, the implied constants depend on , where denotes the order of the derivative of our functions , , and .
Theorem 1. The -th derivative of the function when is
except for its discontinuity points.
From the above theorem, equation (1), equation (4), and the fact that is differentiable infinitely many times, we get
Corollary 2. Suppose . Then, the -th derivative of the Riemann-Siegel theta function is
It is known that for , the Riemann-Siegel theta function is monotonically increasing. Thus for , we can implicitly define the Gram function by
with . Note that for positive integers , correspond to Gram points (see Edwards [1 pp. 125–126]). Elsewhere in the literature, the reader might encounter the definition , where denotes the -th Gram point. This numeration relates to ours by .
The asymptotic expression for the Gram function is (see Lavrik [13 Lemma 2])
Korolev [10 Lemma 1.1] gave the asymptotics for the first two derivatives of the Gram function. The first derivative of the Gram function is
as .
We calculate the -th derivative of the Gram function , which we denote by .
Theorem 3. The -th derivative of the Gram function is asymptotically
for .
Here, we corrected the constant in [10 Lemma 1.1] for .
The proof of the following theorem of the uniform distribution modulo one of the sequence is analogous to Pańkowski [15 Proof of Theorem 1].
Theorem 4. The sequence is uniformly distributed modulo one for .
We have the following corollary about the continuous uniform distribution of the -th power of the Gram function. Laurinčikas proved this result [12 Lemma 5.7] by a different method. In our case, it follows by applying the derivative criterion for uniform distribution modulo one for the sequences and .
Corollary 5. The function , , is continuously uniformly distributed modulo one.
The function can be applied in the universality theory of zeta functions. As an example, we will consider the Riemann zeta function. Recall that the universality of in the Voronin sense means that a broad class of analytic functions can be approximated by shifts , . This approximation property of was discovered by Voronin [18] and has various theoretical and practical applications. For results, see Matsumoto [14].
Now we discuss the discrete universality for the Riemann zeta function using its shifts by the degrees of the Gram points . Korolev and Laurinčikas have studied this problem extensively. In [7], they proved it for the degree 1. They proved the result for short intervals in [8]. The continuous version of joint universality was proved in [9].
By we denote the cardinality of the set . In addition, is a truncated Euler product for the Riemann zeta function, where is prime. We assume about the second moment of the Riemann zeta function shifted by the Gram function: For all , we conjecture
where is any compact set with connected complement in the right part of the critical strip. Pańkowski [15 p. 192, Proposition 1] incorrectly thought that this follows from Gallagher’s lemma applied to Dirichlet -functions with shifts for , , and real numbers. Sourmelidis [17] partially remedied this error.
The proof of universality follows from our assumption (10) and Theorem 4 using the method by Pańkowski [15 pp. 192–194, proof of Theorem 2]. We formulate our statement as follows: Suppose is a compact set with connected complement, is a continuous non-vanishing function on , analytic inside of . Then, for any ,
In the last section of the article, we discuss the proof of our results using Lean. In doing so, we employed the AI models Claude Opus 4.7, Opus 4.8, and Fable 5. Our axiomatization is the standard one for classical mathematics.
Proofs
Proof of Theorem 1. Our goal is to compute the -th derivative of . Recall the formula (2). We split the computation into two parts.
First, let us compute
It remains to estimate the error term arising from differentiating the function . The terms
can be expanded into
with real coefficients . This Laurent series is differentiable since it converges for and is analytic. Differentiating the above expression times term-by-term yields
For our purposes, the accuracy is sufficient.
Continuing our computation of the -th derivative of , let us denote
We compute the -th derivative of . We follow with integration by parts
Note that .
We need to differentiate with respect to times, which amounts to differentiating under the integral sign. We use the Leibniz rule
The following conditions must be satisfied: and be continuous for , and there exists an integrable such that (see Rudin [16, pp. 180–182]). For integrating the -th derivative, we need an integrable majorant uniform in on . This condition is satisfied by
and the bound .
Applying the Leibniz rule yields
In evaluating the above integral, we use the bound and the substitution , so that . We get
Multiplying by and using :
Summing over yields:
We need to find the -th derivative of the last term of the function (see (3))
We apply the Leibniz rule to differentiate products. If and are times differentiable functions of , then (see Gradshteyn and Ryzhik [2, Formula 0.42])
We get
Collecting this and (12) completes the proof of Theorem 1. □
Proof of Theorem 3. We prove this by induction. Let us make the inductive hypothesis
First, we prove that the theorem statement holds for . Differentiating the equation (7) gives
We calculate the term using Corollary 2, equations (9) and (8)
Differentiating (7) and using the expression (9) yields
Combining the above two results gives
Suppose our hypothesis (13) holds for . We show it holds for . By Faà di Bruno’s formula (see Gradshteyn and Ryzhik [2 formula (0.430)]), the -th derivative of a composite function is
Here, the summation is taken over all partitions
We will need the shorthand notation for our purposes.
We plug , into Faà di Bruno’s formula. Then, the relation (7) yields that the th derivative equals 0 and the formula (14) becomes
The first member in the above equation corresponds to the case and for . The last member - to the case and for .
In the summation of Faà di Bruno’s formula, the first term in the above equation (16) is the only one containing , and the last one is asymptotically the largest of the remaining ones as . Let us prove this fact. We will show that is asymptotically larger than the terms obtained using Faà di Bruno’s formula, except possibly the first one. Hence, we can ignore the constants. Any term is uniquely determined by the values , , ..., , which come from the partition (15). For this calculation, we use the asymptotics for the derivatives of (Corollary 2), the asymptotics for and , and our inductive step (13). We skip the term . In all the remaining terms, we have . The arbitrary term in Faà di Bruno’s formula, except for the partition , , , is
We say that a function is if there exist positive constants , and a real number such that , . In the last step above, we used the equation (15). The last expression shows that among all the terms in Faà di Bruno’s formula, except , the asymptotically largest one is , corresponding to the partition and , . This, together with (16), leads to
It follows
The dominating term of is asymptotically , thus the error term in the above expression becomes
Thus Corollary 2 together with the asymptotics for and leads to
This completes the induction and yields the theorem. □
Proof of Theorem 4. We have theorem [11 Chapter 1, Theorem 3.5] stating: if there exists , the function is defined for , the derivative tends monotonically to 0 as , and if , , then the sequence is uniformly distributed modulo one. Consider the -th power of the Gram function . By Faà di Bruno’s formula, we have
where we sum over all partitions
Let us denote . An arbitrary term on the righthand side of the equation (18) depends on the value of the vector . Ignoring the constant, recalling the asymptotic of given in the formula (8), and the asymptotic of its derivative in Theorem 3 yields the following asymptotic of an arbitrary term in the formula (18)
where we used the formula (19). This value is maximized when we minimize , which happens when and . Here thus no term degenerates.
To prove monotonicity, we calculate the -st derivative of the -th power of the Gram function. Again, we use Faà di Bruno’s formula. Summing over partitions, we have
where the integers , , ..., appear in our formula now. Let us denote . It follows
Again, this value is maximized by setting . All in all, we have
and
Based on the fact that the main terms of the -st derivative’s asymptotic is non-zero of a fixed sign, there exists some value for which does not change its sign provided . Hence, the -th derivative of will monotonically approach 0 for . In addition, will monotonically approach . Therefore, by the criterion stated at the beginning of the proof, the sequence is uniformly distributed modulo one. □
Proof of Corollary 5. By Kuipers and Niederreiter [11 Chapter 1, Theorem 9.6], the function , , is continuously uniformly distributed modulo one if 1) the sequence , , is uniformly distributed modulo one for almost all and 2) the sequence , , is uniformly distributed modulo one for almost all . If we take to be the -th power of the Gram function, both of these facts follow from the fact that there exists real number such that monotonically approaches zero for , monotonically approaches for , and the criterion for the uniform distribution modulo 1 of sequences, formulated at the beginning of the proof of Theorem 4. □
Using AI and Lean
Lean has emerged as the definitive programming language for proving mathematical theorems. We use Lean v4.29.1 to formalize our results. To write the code, we employed Claude Opus 4.7, Opus 4.8, and Fable 5 LLMs. The overall amount of code is substantial, more than 10000 lines. It is available at https://github.com/raivydassimenas/gram-derivatives.git. The proofs of our theorems and corollaries are located in the folder GramDerivatives. Each theorem or corollary has its own file, along with additional files proving the necessary results from uniform distribution theory. The project builds cleanly, with no additional axioms apart from the standard mathematical ones and no sorry statements.
Here, for the reader’s convenience, we provide the formalizations of our theorems and corollaries in Lean
Theorem 1. While in the main part of our article we studied a specific function , in Lean does not depend on the analytic nature of the piecewise constant function . The important fact is that is constant except at a discrete set of jump points, with the function locally constant off that set. Thus, we prove the result not for one particular function but for the whole class of functions. The function class is defined as
noncomputable def S (F : StepFunction) (t : ℝ) : ℝ :=
φ t - (1 / Real.pi) * δ t + F t
with StepFunction defined as
structure StepFunction where
toFun : ℝ → ℝ
jumpSet : Set ℝ
jumpSet_discrete :
∀ x ∈ jumpSet, ∃ ε > 0, ∀ y ∈ jumpSet, |y - x| < ε → y = x
locallyConstant_off :
∀ ⦃s : ℝ⦄, s ∉ jumpSet → toFun =ᶠ[nhds s] fun _ => toFun s
The function phi is
noncomputable def φ (t : ℝ) : ℝ :=
-(t / (2 * Real.pi)) * Real.log (t / (2 * Real.pi))
+ t / (2 * Real.pi)
- 7 / 8
The function delta is
noncomputable def δ (t : ℝ) : ℝ :=
t / 4 * Real.log (1 + 1 / (4 * t ^ 2))
+ 1 / 4 * Real.arctan (1 / (2 * t))
- t / 2 * ∫ u in Set.Ici (0 : ℝ),
(1 / 2 - Int.fract u) / ((u + 1 / 4) ^ 2 + (t / 2) ^ 2)
The theorem itself becomes
theorem theorem1 (F : StepFunction) (n : ℕ) (hn : 2 ≤ n) :
IsO
(fun t =>
iteratedDeriv n (S F) t
- ((-1 : ℝ) ^ (n - 1) * (n - 2).factorial
* (1 / (2 * Real.pi)) * t ^ (1 - (n : ℝ))))
(fun t => t ^ (-(n : ℝ) - 1))
N∞₀[F.jumpSet]
The predicate IsO(f g) holds if and only if . The function iteratedDeriv n f t is . The notation N^\infty_0 essentially means that , .
Corollary 2 is an immediate consequence of Theorem 1. We formalize it as
theorem corollary2 (n : ℕ) (hn : 2 ≤ n) :
IsO
(fun t =>
iteratedDeriv n theta t
- ((-1 : ℝ) ^ n * (n - 2).factorial
* (1 / 2) * t ^ (1 - (n : ℝ))))
(fun t => t ^ (-(n : ℝ) - 1))
Here theta is defined as
noncomputable def theta (t : ℝ) : ℝ := δ t - Real.pi * φ t - Real.pi
Theorem 3
theorem theorem3 (n : ℕ) (hn : 2 ≤ n) :
IsO
(fun u : ℝ =>
iteratedDeriv n gram u
- gramLeading n u
- 2 * gramLeading n u * Real.log (Real.log u) / Real.log u)
(fun u : ℝ => gramLeading n u * Real.log (Real.log u) /
Real.log u)
For this theorem, we define the Gram function as the inverse of the Riemann–Siegel theta function
noncomputable def gram (u : Real) : Real :=
Function.invFunOn theta (Set.Ici 7) ((u - 1) * Real.pi)
The function gramLeading is
noncomputable def gramLeading (n : ℕ) (u : ℝ) : ℝ :=
(-1 : ℝ) ^ (n + 1) * (2 * Real.pi) * (n - 2).factorial
/ (u ^ (n - 1) * Real.log u ^ 2)
Theorem 4
theorem theorem4 (n : ℕ) (hn : 1 ≤ n) :
Gram.UD.IsUDModOne (fun k : ℕ => gramPow n (k : ℝ))
The function gramPow is defined as
noncomputable def gramPow (n : ℕ) (u : ℝ) : ℝ := (gram u) ^ n
Here, we use auxiliary results such as the van der Corput bound and the Fejer theorem from uniform distribution theory, which we prove in the files Fejer.lean, UDModOne.lean, and VanDerCorput.lean.
Corollary 5
lemma corollary5 (n : ℕ) (hn : 1 ≤ n) :
Gram.UD.IsCUDModOne (fun u : ℝ => Gram.Theorem4.gramPow n u)
Here, we again use auxiliary results from uniform distribution theory, which we prove in other files.
Acknowledgments. This project has received funding from the European Social Fund (project No 09.3.3-LMT-K-712-19-0030) under a grant agreement with the Research Council of Lithuania (LMTLT).
Disclosure statement. The authors declare no conflict of interest.
(Marius Dundulis) Euromonitor International, Jogailos g. 4, LT-01116 Vilnius, Lithuania Email address: [email protected]
(Ramūnas Garunkštis) Institute of Mathematics, Faculty of Mathematics and Informatics, Vilnius University, Naugarduko 24, 03225 Vilnius, Lithuania Email address: [email protected] URL: https://mif.vu.lt/~garunkstis/
(Antanas Laurinčikas) Institute of Mathematics, Faculty of Mathematics and Informatics, Vilnius University, Naugarduko 24, 03225 Vilnius, Lithuania Email address: [email protected]
(Raivydas Šimėnas) Institute of Mathematics, Faculty of Mathematics and Informatics, Vilnius University, Naugarduko 24, 03225 Vilnius, Lithuania Email address: raivydas.simen[email protected] URL: https://web.vu.lt/mif/r.siemenas/
References
- [1]H. M. Edwards. Riemann’s zeta function. Academic Press, New York, 1974.
- [2]I. S. Gradshteyn and I. M. Ryzhik. Table of integrals, series, and products. Elsevier, 2007.
- [3]J.-P. Gram. Sur les zéros de la fonction ζ(s) de Riemann. Acta Math., 27:289–304, 1903.DOI
- [4]J. I. Hutchinson. On the roots of the Riemann zeta-function. Trans. Amer. Math. Soc., 27:49–60, 1925.DOI
- [5]A. Ivić. The theory of Hardy’s Z-function, volume 196 of Cambridge Tracts in Mathematics. Cambridge University Press, Cambridge, 2013.
- [6]A. A. Karatsuba and M. A. Korolev. The argument of the Riemann zeta function. Russian Math. Surveys, 60(3):433–488, 2005.DOI
- [7]M. Korolev and A. Lauri[n]čikas. A new application of the Gram points. Aequat. Math., 93:859–873, 2019.DOI
- [8]M. Korolev and A. Lauri[n]čikas. A new application of the Gram points. II. Aequat. Math., 94:1171–1187, 2020.DOI
- [9]M. Korolev and A. Lauri[n]čikas. Joint approximation of analytic functions by shifts of the Riemann zeta-function twisted by the Gram function. Carpathian J. Math., 39(1):175–187, 2023.
- [10]M. A. Korolev. Gram’s law in the theory of the Riemann zeta-function. Part 1. Proc. Steklov Inst. Math., 292(2):1–146, 2016.DOI
- [11]L. Kuipers and H. Niederreitter. Uniform distribution of sequences. Courier Corporation, 2012.
- [12]A. Lauri[n]čikas. On the extension of the Voronin universality theorem for the Riemann zeta-function. Quaest. Math., 47(4):735–750, 2024.DOI
- [13]A. A. Lavrik. Titchmarsh’s problem in the discrete theory of the Riemann zeta-function. Tr. Mat. Inst. Steklova, 207:197–230, 1994.
- [14]K. Matsumoto. A survey on the theory of universality for zeta and L-functions. In Number theory, volume 11 of Ser. Number Theory Appl., pages 95–144. World Sci. Publ., Hackensack, NJ, 2015.arxiv.org/abs/1407.4216
- [15]Ł. Pańkowski. Joint universality for dependent L-functions. Ramanujan J., 45(1):181–195, 2018.DOI
- [17]A. Sourmelidis. Estimates for Weyl sums in the theory of discrete universality. Ramanujan J., 57:1399–1421, 2022.DOI
- [18]S. M. Voronin. Theorem on the ”universality” of the Riemann zeta-function. Izv. Akad. Nauk SSSR Ser. Mat, 39(3):475–486, 1975.DOI