← All papers
First page of Computing infinite sums of holonomic functions

Computing infinite sums of holonomic functions

Fredrik Johansson

cs.SC Nov 26, 2026 · v1
Appendix A presents a Lean formalization of much of the paper's mathematics, together with the algorithm's cost analysis.
For a holonomic function $F$ that is regular at infinity we study the zeta function $ζ_F(s) = \sum_{k=1}^{\infty} F(k)k^{-s}$. We show that when the expansion of $F$ at infinity has algebraic coefficients, the values and derivatives of $ζ_F$ at algebraic $s$ can be computed to $p$ bits in $p^{3/2+o(1)}$ bit operations using a version of Riemann's theta splitting combined with bit-burst evaluation of holonomic functions. The same holds for polylogarithm-type generalizations of $ζ_F$. This gives subquadratic algorithms for a large class of numbers, including every sum $\sum_{k=1}^{\infty} A(k)$ or $\sum_{k=1}^{\infty} \log A(k)$ where $A$ is an algebraic function with algebraic coefficients, most of which had no previously known algorithm with better than quadratic complexity. For example, we obtain the first subquadratic algorithm for Khinchin's constant, which we compute to $10^7$ digits. We demonstrate the method and its speedup on many other examples taken from analysis, geometry, number theory and physics.

Computing infinite sums of holonomic functions, such as zeta-like series and constants like Khinchin's constant, to high precision. Previously known algorithms for most of these numbers had quadratic complexity.

The method combines a version of Riemann's theta splitting with bit-burst evaluation of holonomic functions. It evaluates values and derivatives of ζ_F(s) at algebraic s and extends to polylogarithm-type generalizations. Much of the paper is formalized in Lean (Appendix A).

The values can be computed to p bits in p^{3/2+o(1)} bit operations, giving subquadratic algorithms for a large class of constants. Khinchin's constant was computed to 10^7 digits, the first subquadratic algorithm for it.