Computing sieve integrals using LattE, and the density of integers with a localized divisor
Pith reviewed 2026-06-30 04:58 UTC · model grok-4.3
The pith
LattE computes rigorous bounds on integrals over polytopes that arise in sieve theory, in time polynomial in the bit precision.
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
We consider the problem of estimating numerically integrals of the shape ∫_P dt/(t1 ⋯ tk) where P is a convex polytope in the positive orthant. A simple method based on the LattE software for integration of polynomials over polytopes computes rigorous bounds on this integral in polynomial time with respect to the precision in bits. The method is tested on several examples from the literature of sieve theory and is applied to compute numerical approximations to the natural density h(α, β) of integers having a localized divisor in the region β − α ≥ 0.02, using a refined formula for h(α, β) that involves a manageable number of terms. As a corollary, a numerical approximation is given for the l
What carries the argument
The LattE software for integration of polynomials over polytopes, adapted to evaluate the reciprocal-product integrals over the convex polytopes that encode the sieve conditions and to return rigorous bounds whose cost scales polynomially with bit precision.
If this is right
- The density h(α, β) admits explicit numerical approximations whenever β − α ≥ 0.02.
- The leading constant in the Haddad–Koukoulopoulos theorem receives a concrete numerical value.
- Rigorous bounds become available for other integrals of the same reciprocal-product type that appear in the sieve-theory literature.
- The refined formula for h(α, β) keeps the number of terms computationally tractable inside the stated parameter range.
Where Pith is reading between the lines
- The same polytope-integration technique could be applied to narrower intervals by further subdividing the polytopes or by combining several runs at different precisions.
- Direct enumeration of divisors for integers up to 10^12 could be used to cross-check the computed densities against exact counts and thereby test the accuracy of the bounds.
- The method supplies a template that might be reused for other divisor-distribution problems whose main terms are expressed by similar integrals over polytopes.
Load-bearing premise
The convex polytopes that arise from the sieve integrals can be presented to LattE in a form that permits the claimed polynomial-time rigorous bounds, and the refined formula for h(α, β) remains manageable precisely when β − α ≥ 0.02.
What would settle it
For a concrete pair such as α = 0.25 and β = 0.27, increase the requested bit precision from 20 to 200 and check whether the width of the interval returned by LattE shrinks at a rate consistent with polynomial dependence on the precision; failure of the interval to contract would falsify the polynomial-time claim.
Figures
read the original abstract
We consider the problem of estimating numerically integrals of the shape $$ \int_P \frac{dt}{t_1 \dotsb t_k} $$ where $P \in {\mathbb R}_{>0}^k$ is a convex polytope, $t=(t_1,\dotsc, t_k)$ and $d t$ is the Lebesgue measure. This type of integral appears frequently in main terms of sieve theory. We propose a simple method, based on the LattE software for integration of polynomials over polytopes, which computes rigorous bounds on this integral in polynomial time with respect to the precision (in bits). We test the method on several examples from the literature of sieve theory. We apply our results to compute numerical approximations to the natural density $$ h(\alpha, \beta) := \operatorname{density}\{n\in{\mathbb N}, \exists d\mid n, d\in [n^\alpha, n^\beta]\}, \qquad (0<\alpha<\beta<1) $$ of integers having a localized divisor, in the region $\beta - \alpha \geq 0.02$. One ingredient involved is a refined formula for $h(\alpha, \beta)$ which involves a manageable number of terms for these $\alpha, \beta$. As a corollary, we give a numerical approximation of the leading constant in a theorem of Haddad and Koukoulopoulos on the average of the logarithm of middle-divisors of integers.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper proposes a method using the LattE software to compute rigorous bounds on integrals of the form ∫_P dt/(t1⋯tk) over convex polytopes P in R>0^k, claiming this can be done in polynomial time with respect to bit precision. It tests the method on literature examples from sieve theory and applies it to numerically approximate the density h(α, β) of integers with a localized divisor in the region β−α≥0.02, using a refined formula for h(α, β) with a manageable number of terms; a corollary gives a numerical approximation to the leading constant in a theorem of Haddad and Koukoulopoulos.
Significance. If the central computational claims hold, the work supplies a practical, rigorous tool for evaluating sieve integrals that appear in main terms of analytic number theory, enabling numerical checks on densities like h(α, β) that were previously inaccessible for small β−α. The explicit application and corollary provide concrete numerical output that can be compared against theoretical predictions.
major comments (3)
- [§2 (method description)] The polynomial-time claim with respect to bit precision (abstract and §1) rests on reducing the non-polynomial integrand 1/(t1⋯tk) to LattE polynomial integration calls. The manuscript must specify the substitution/series expansion or bounding procedure and prove that the number of terms and resulting polytopes remains bounded independently of the target precision; without this, the complexity guarantee does not follow from the fixed-dimension Barvinok algorithm in LattE.
- [§4 (application to h(α, β))] The refined formula for h(α, β) is stated to involve a manageable number of terms only when β−α≥0.02, but the paper does not quantify how the number of polytopes or integration calls scales with 1/(β−α) or with the bit precision demanded for the final density approximation; this scaling directly affects whether the method remains polynomial-time in the stated regime.
- [§3 (implementation and tests)] Error analysis and explicit verification that the computed bounds are rigorous (i.e., that truncation and rounding errors are controlled to the claimed precision) are absent from the description of the LattE-based procedure and from the numerical tests on literature examples.
minor comments (2)
- [§1] Notation for the polytope P and the variables t_i should be introduced with an explicit example in the introduction to make the integral definition immediately readable.
- [§4] The manuscript should include a short table comparing the new numerical values for h(α, β) against any previously published approximations or bounds for the same (α, β) pairs.
Simulated Author's Rebuttal
We thank the referee for the careful reading and the detailed comments on the polynomial-time claim, scaling, and rigor of the error bounds. We respond point by point below and will revise the manuscript to incorporate clarifications and additional analysis where the comments identify gaps.
read point-by-point responses
-
Referee: [§2 (method description)] The polynomial-time claim with respect to bit precision (abstract and §1) rests on reducing the non-polynomial integrand 1/(t1⋯tk) to LattE polynomial integration calls. The manuscript must specify the substitution/series expansion or bounding procedure and prove that the number of terms and resulting polytopes remains bounded independently of the target precision; without this, the complexity guarantee does not follow from the fixed-dimension Barvinok algorithm in LattE.
Authors: We agree that the reduction step requires an explicit description and complexity analysis. The method proceeds by a change of variables followed by a truncated geometric series expansion of the integrand on each simplex of a triangulation of the polytope; the number of terms per simplex is linear in the bit precision while the number of simplices is independent of precision (depending only on the fixed dimension k). We will add a new subsection in §2 that states the expansion, bounds the truncation error, and proves that the total number of LattE calls is O(precision^d) for fixed d, which is polynomial in the bit precision. This establishes the claimed complexity. revision: yes
-
Referee: [§4 (application to h(α, β))] The refined formula for h(α, β) is stated to involve a manageable number of terms only when β−α≥0.02, but the paper does not quantify how the number of polytopes or integration calls scales with 1/(β−α) or with the bit precision demanded for the final density approximation; this scaling directly affects whether the method remains polynomial-time in the stated regime.
Authors: The refined formula enumerates residue classes modulo products of small primes; for β−α≥0.02 the largest prime that appears is bounded by an absolute constant (approximately 50), so the number of polytopes is bounded by an absolute constant independent of both β−α and the target precision. The bit-precision dependence enters only through the per-integral LattE calls already analyzed in the revised §2. We will add an explicit count of the number of polytopes (at most 2^12 for the regime β−α≥0.02) and a short paragraph confirming that the overall procedure remains polynomial-time in the bit precision for this fixed lower bound on β−α. revision: yes
-
Referee: [§3 (implementation and tests)] Error analysis and explicit verification that the computed bounds are rigorous (i.e., that truncation and rounding errors are controlled to the claimed precision) are absent from the description of the LattE-based procedure and from the numerical tests on literature examples.
Authors: We acknowledge that a self-contained error analysis is missing. In the revised version we will insert a dedicated subsection (new §3.2) that derives explicit a-priori bounds on the truncation error of the series expansion, on the rounding error returned by LattE, and on the propagation of these errors through the sum over polytopes. We will also augment the numerical tables in §3 with a column reporting the a-priori error bound alongside the computed interval, thereby verifying that the reported rigorous bounds are indeed rigorous to the stated number of bits. revision: yes
Circularity Check
No circularity: computational method applies external LattE integration to explicitly defined integrals and density formula
full rationale
The paper defines the target integral ∫_P dt/(t1⋯tk) and the density h(α,β) directly from sieve theory and number-theoretic counting. It then describes an algorithmic procedure that feeds the polytopes into the external LattE software after an (unspecified in abstract but external) transformation to enable polynomial integration, followed by a refined but explicitly stated multi-term formula for h(α,β) that is asserted manageable only for β−α≥0.02. No equation equates a claimed output to a fitted input by construction, no self-citation is invoked as a load-bearing uniqueness theorem, and the central claim is a complexity statement about an external tool rather than a closed derivation. The derivation chain therefore remains self-contained against external benchmarks.
Axiom & Free-Parameter Ledger
Reference graph
Works this paper leans on
-
[1]
Baldoni, N
V. Baldoni, N. Berline, J. A. De Loera, M. K¨ oppe, and M. Vergne,How to integrate a polynomial over a simplex, Math. Comput.80(2011), no. 273, 297–325
2011
-
[2]
A. I. Barvinok,Computation of exponential integrals, Zap. Nauchn. Semin. Leningr. Otd. Mat. Inst. Steklova192(1991), 149–162
1991
-
[3]
Brion,Lattice points in convex polyhedra., Ann
M. Brion,Lattice points in convex polyhedra., Ann. Sci. ´Ec. Norm. Sup´ er. (4)21(1988), no. 4, 653–663
1988
-
[4]
A. A. Buchshtab,Asymptotische Absch¨ atzung einer allgemeinen zahlentheoretischen Funktion, Rec. Math. Moscou, n. Ser. 2(1937), 1239–1246
1937
-
[5]
Carlini, M
E. Carlini, M. V. Catalisano, and A. V. Geramita,The solution to the Waring problem for monomials and the sum of coprime monomials, J. Algebra370(2012), 5–14
2012
-
[6]
Chen,On the representation of a larger even integer as the sum of a prime and the product of at most two primes, Sci
J. Chen,On the representation of a larger even integer as the sum of a prime and the product of at most two primes, Sci. Sin.16(1973), 157–176. 19
1973
-
[7]
P. J. Davis and P. Rabinowitz,Methods of numerical integration. 2nd ed, second edition ed., Computer Science and Applied Mathematics, Academic Press, Inc., 1984
1984
-
[8]
J. A. De Loera, B. Dutra, M. K¨ oppe, S. Moreinis, G. Pinto, and J. Wu,Software for exact integration of polynomials over polyhedra, ACM Commun. Comput. Algebra45(2011), no. 3, 169–172
2011
-
[9]
Geom.46(2013), no
,Software for exact integration of polynomials over polyhedra, Comput. Geom.46(2013), no. 3, 232–252
2013
-
[10]
Dickman,On the frequency of numbers containing prime factors of a certain relative magnitude., Ark
K. Dickman,On the frequency of numbers containing prime factors of a certain relative magnitude., Ark. Mat. Astron. Fys.22 A(1930), no. 10, 14
1930
-
[11]
Drappeau and A
S. Drappeau and A. Mounier,Computation of sieve integrals using LattE, GitHub repository, 2026, Available athttps: //github.com/sarydrappeau/sieve_integral
2026
-
[12]
Erd˝ os,On an asymptotic inequality in number theory, Vestn
P. Erd˝ os,On an asymptotic inequality in number theory, Vestn. Leningr. Univ., Mat. Mekh. Astron.15(1960), no. 3, 41–49
1960
-
[13]
Ford,The distribution of integers with a divisor in a given interval, Ann
K. Ford,The distribution of integers with a divisor in a given interval, Ann. of Math. (2)168(2008), no. 2, 367–433
2008
-
[14]
Ford and J
K. Ford and J. Maynard,On the theory of prime producing sieves, arXiv preprint, 2024
2024
-
[15]
Friedlander and H
J. Friedlander and H. Iwaniec,Opera de cribro, Colloq. Publ., Am. Math. Soc., vol. 57, Providence, RI: American Mathe- matical Society (AMS), 2010
2010
-
[16]
Green and M
B. Green and M. Sawhney,The proportion of permutations fixing ak-set, arXiv preprint
-
[17]
Grimmelt and J
L. Grimmelt and J. Merikoski,On the greatest prime factor and uniform equidistribution of quadratic polynomials, arXiv preprint, 2025
2025
-
[18]
Haddad,Poisson-Dirichlet approximation for counting integers with divisors in an interval, arXiv preprint, 2026
T. Haddad,Poisson-Dirichlet approximation for counting integers with divisors in an interval, arXiv preprint, 2026
2026
-
[19]
Haddad and D
T. Haddad and D. Koukoulopoulos,On Arratia’s coupling and the Dirichlet law for the factors of a random integer, J. ´Ec. Polytech., Math.12(2025), 1565–1604
2025
-
[20]
Halberstam and H.-E
H. Halberstam and H.-E. Richert,Sieve methods, Academic Press, London-New York, 1974, London Mathematical Society Monographs, No. 4
1974
-
[21]
Harman,On the distribution ofαpmodulo one, J
G. Harman,On the distribution ofαpmodulo one, J. Lond. Math. Soc., II. Ser.27(1983), 9–18
1983
-
[22]
,Prime-detecting sieves, Lond. Math. Soc. Monogr. Ser., vol. 33, Princeton, NJ: Princeton University Press, 2007
2007
-
[23]
D. E. Knuth,The art of computer programming. Volume 4A. Combinatorial algorithms. Part 1., Upper Saddle River, NJ: Addison-Wesley, 2011
2011
-
[24]
D. E. Knuth and L. T. Pardo,Analysis of a simple factorization algorithm, Theor. Comput. Sci.3(1977), 321–348
1977
-
[25]
J. B. Lasserre,An analytical expression and an algorithm for the volume of a convex polyhedron inR n., J. Optim. Theory Appl.39(1983), 363–377
1983
-
[26]
Lawrence,Polytope volume computation, Math
J. Lawrence,Polytope volume computation, Math. Comput.57(1991), no. 195, 259–271
1991
-
[27]
Li,On the largest prime factor of quadratic polynomials, arXiv preprint, 2024
R. Li,On the largest prime factor of quadratic polynomials, arXiv preprint, 2024
2024
-
[28]
,The number of primes in short intervals and numerical calculations for Harman’s sieve, arXiv preprint, 2025
2025
-
[29]
Rep., Buchar.28(2026), no
,On Chen’s theorem, Goldbach’s conjecture and almost prime twins II, Math. Rep., Buchar.28(2026), no. 1-2, 39–61
2026
-
[30]
Marsaglia, A
G. Marsaglia, A. Zaman, and J. Marsaglia,Numerical solution of some classical differential-difference equations, Math. Comput.53(1989), no. 187, 191–201
1989
-
[31]
Matom¨ aki,The distribution ofαpmodulo one, Math
K. Matom¨ aki,The distribution ofαpmodulo one, Math. Proc. Camb. Philos. Soc.147(2009), no. 2, 267–283
2009
-
[32]
Matom¨ aki and S
K. Matom¨ aki and S. Zuniga-Alterman,Weighted sieves with switching, Math. Proc. Camb. Philos. Soc.179(2025), no. 2, 351–372
2025
-
[33]
Maynard,Primes with restricted digits, Invent
J. Maynard,Primes with restricted digits, Invent. Math.217(2019), no. 1, 127–218, Mathematica code available at https://arxiv.org/src/1604.01041
-
[34]
Merikoski,On the largest prime factor ofn 2 + 1, J
J. Merikoski,On the largest prime factor ofn 2 + 1, J. Eur. Math. Soc. (JEMS)25(2023), no. 4, 1253–1284
2023
-
[35]
Mounier,An effective lower bound sieve for friable numbers, Acta Arith.220(2025), no
A. Mounier,An effective lower bound sieve for friable numbers, Acta Arith.220(2025), no. 2, 121–159
2025
-
[36]
OEIS Foundation Inc.,The On-Line Encyclopedia of Integer Sequences, 2025, Published electronically athttp://oeis.org
2025
-
[37]
Stadlmann,On the mean square gap between primes, arXiv preprint, 2022
J. Stadlmann,On the mean square gap between primes, arXiv preprint, 2022
2022
-
[38]
Takahasi and M
H. Takahasi and M. Mori,Double exponential formulas for numerical integration, Publ. Res. Inst. Math. Sci.9(1974), 721–741
1974
-
[39]
Tenenbaum,Lois de r´ epartition des diviseurs, 2, Acta Arith.38(1980), no
G. Tenenbaum,Lois de r´ epartition des diviseurs, 2, Acta Arith.38(1980), no. 1, 1–36
1980
-
[40]
Math.51(1984), 243–263
,Sur la probabilit´ e qu’un entier poss` ede un diviseur dans un intervalle donn´ e, Compos. Math.51(1984), 243–263
1984
-
[41]
,Introduction to analytic and probabilistic number theory. Transl. from the 3rd French edition by Patrick D. F. Ion, 3rd expanded ed. ed., Grad. Stud. Math., vol. 163, Providence, RI: American Mathematical Society (AMS), 2015
2015
-
[42]
Bordeaux,PARI/GP version2.15.4, 2023, available fromhttp://pari.math.u-bordeaux.fr/
The PARI Group, Univ. Bordeaux,PARI/GP version2.15.4, 2023, available fromhttp://pari.math.u-bordeaux.fr/
2023
-
[43]
The Sage Developers,Sagemath, the Sage Mathematics Software System (Version 10.7), 2025-08-09, https://www.sagemath.org
2025
-
[44]
Wolfram Research, Inc.,Mathematica, Version 14.3, Champaign, IL, 2025. Laboratoire de Math´ematiques Blaise Pascal, Universit´e Clermont Auvergne, Institut Universitaire de France, 3 place Vasarely, 63178 Aubi`ere Cedex, France Email address:sary.drappeau@uca.fr Institut de Math´ematiques de Marseille, Aix-Marseille Universit´e, 163 Av. de Luminy, 13009 M...
2025
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.