Explicit Polynomial and Rankin–Selberg Bounds for the Two-Residue and Twin Jacobsthal Functions

Primarily AI-generated textHuman understanding: some partsmath.NT — Number Theory

Contributed by Alben Weeks ↗

Version 1 / Dec 01, 2026 / CC BY 4.0

Abstract

For squarefree m≥1m\ge 1, the paired Jacobsthal function j2(m)j_2(m) is the least L≥1L\ge 1 so any LL pairs (a+q,b+q)(a+q,b+q) (1≤q≤L,2∣b−a1\le q\le L,2\mid b-a) have one coprime to mm; set h2ZM(n)=j2(Pn)h_2^{\mathrm{ZM}}(n)=j_2(P_n) (Pn=p1⋯pnP_n=p_1\cdots p_n), h2twin(n)=A144311(n)+1h_2^{\mathrm{twin}}(n)=\mathrm{A144311}(n)+1, J2max⁡(n)=max⁡ω(m)=nj2(m)J_2^{\max}(n)=\max_{\omega(m)=n}j_2(m), and C2≥5(r)C_2^{\ge 5}(r) max run covered by ≤2\le 2 classes mod rr primes ≥5\ge 5. Salazar (arXiv:2611.10059) proved r(ln⁡r)2≪C2≥5(r),J(r)≪εr4+εr(\ln r)^2\ll C_2^{\ge 5}(r),J(r)\ll_\varepsilon r^{4+\varepsilon} ineffectively. We prove: (1) 2D Rankin--Selberg sifting gives h2twin(n)≥6.11×10−5n(ln⁡n)4(ln⁡3n)2/(ln⁡2n)4h_2^{\mathrm{twin}}(n)\ge 6.11\times 10^{-5}n(\ln n)^4(\ln_3 n)^2/(\ln_2 n)^4 (n≥1025n\ge 10^{25}), ≥1.1910n(ln⁡n)2\ge 1.1910n(\ln n)^2, and h2ZM(n)≥2.3820n(ln⁡n)2h_2^{\mathrm{ZM}}(n)\ge 2.3820n(\ln n)^2 (n≥2n\ge 2). (2) Wheel, Parseval, and 2D Buchstab--Selberg bounds give π2(x+y)−π2(x)≤U30030(2)(⌈y⌉)\pi_2(x+y)-\pi_2(x)\le U^{(2)}_{30030}(\lceil y\rceil) (x≥5,y>0x\ge 5,y>0), <16Ctwiny/(ln⁡y−ln⁡2y+C2)2<16C_{\mathrm{twin}}y/(\ln y-\ln_2 y+C_2)^2 (y>2y>2), and <16Ctwiny/[ln⁡y(ln⁡y+A2sh)]<16C_{\mathrm{twin}}y/[\ln y(\ln y+A_2^{\mathrm{sh}})] (A2sh=12.57…12.80A_2^{\mathrm{sh}}=12.57\dots 12.80), yielding Lean-proved global s=6s=6 (z≥19z\ge 19) bounds plus rays to s=5s=5 (ln⁡z≥54\ln z\ge 54), 9/29/2 (≥750\ge 750), 137/32137/32 (≥5.32×107\ge 5.32\times 10^7), 2187/5122187/512 (≥5.16×108\ge 5.16\times 10^8), with sharper 277/64277/64--55 and ln⁡z≥6000\ln z\ge 6000 rows Python-audited (J2max⁡(n)≪pn2187/512J_2^{\max}(n)\ll p_n^{2187/512}). (3) 2D Kuhn--Richert weights give all-nn squarefree odd twin {P3,P4}\{P_3,P_4\} in (n4,(n+1)4)(n^4,(n+1)^4), {P4,P5}\{P_4,P_5\} in (n3,(n+1)3)(n^3,(n+1)^3), {P6,P7}\{P_6,P_7\} in (n2,(n+1)2)(n^2,(n+1)^2) (n≥2n\ge 2) and Oppermann intervals (n=4,n≥7n=4,n\ge 7), shifted P3×P3P_3\times P_3 (β≥4.26\beta\ge 4.26), {P2,P3}\{P_2,P_3\} (β≥4.54\beta\ge 4.54), and Mills constants. (4) J(k)≪(kln⁡k)6J(k)\ll (k\ln k)^6 (898.17(kln⁡k)5898.17(k\ln k)^5 on k≤2000,ln⁡pk≥54k\le 2000,\ln p_k\ge 54; Python all k≥2k\ge 2). (5) J2max⁡(8…13)=270…960J_2^{\max}(8\dots 13)=270\dots 960 and J(1…11)=0,46…362J(1\dots 11)=0,46\dots 362. Lean 4.19.0 (--trust=0, 74 decls, 12,468 modules) audits all 18 statements at the s=6s=6 tier plus rays.

Author comments: Companion archival deposit (including the complete Lean 4.19.0 formalization, zero-float Python verifiers, and independent --trust=0 / lean4checker verification logs): [https://doi.org/10.5281/zenodo.24376219](https://doi.org/10.5281/zenodo.24376219). The research direction, problem selection, and core heuristic intuitions (such as pre-wheeling and sieve-structure ideas) grew out of 15+ years of personal math notebooks and were human-directed across this multi-paper series, while the formal theorem statements, analytic proofs, LaTeX writing, and Lean 4.19.0 code were developed with AI assistance. Mathematical soundness is established strictly through machine verification (zero-float rational verifiers and --trust=0 / lean4checker --fresh Lean kernel checks) rather than line-by-line human proof review.

Provenance statement

The author (Alben Weeks) contributed the initial motivating ideas, elementary intuition (such as modulo-6 pre-wheeling, 3-coset modulo-30 twin survivor filtering, coprime two-bucket origin-pinning, and modulo-6 Euler-product telescoping), research direction, and coordination of the AI-assisted workflow, but is not a professional analytic number theorist and has not mathematically verified--and only minimally understands--the technical sieve theorems, Rankin-Selberg and Kuhn-Richert proofs, and formal Lean code in this paper. AI systems produced the technical derivations, LaTeX manuscript, standalone Python and C++17 verification suite (twin_jacobsthal_sieve_audit.py, twin_jacobsthal_richert_rankin_audit.py, twin_jacobsthal_prototype.py, salazar_lean_certificates.py, twin_jacobsthal_exact_solver.cpp, and twin_jacobsthal_witness_bridge.cpp), and Lean 4.19.0 formalization over Mathlib (commit c44e0c8ee63ca166450922a373c7409c5d26b00b), and carried out multi-round adversarial audits: - OpenAI's ChatGPT (GPT-6 Astra) and Codex wrote, repaired, and compiled the Lean 4.19.0 formalization and Option A overlays. - Google's Gemini (Carbon) drafted and revised the LaTeX manuscript and the Python/C++17 verification suite. - Anthropic's Claude (Fable 5.2 and Opus 5.5) ran independent static audits of the manuscript, executed the Python verifiers, spot-checked numerical certificates and CRT/Salazar witnesses, cross-checked citations, and verified all 12,474 SHA256SUMS entries, build logs, and Lean axiom declarations. What has and has not been checked by a human: - Checked/understood by the author: the high-level problem goals, the elementary wheel/coset/coprime-bucket motivations, and the operational packaging, local Windows build coordination, and disclosure of scope boundaries. - Not checked or understood by a human: the 2D Rankin-Selberg, Buchstab-Selberg, and Kuhn-Richert sieve proofs (Theorems 2.5, 4.1, 4.3, 4.4, 4.7, 5.2, 5.3; Propositions 2.3, 2.6, 3.4; Corollaries 2.2, 4.5, 4.6; Lemmas 3.1-3.3, 5.1), the Knaster-Tarski fixed-point and outward-rounded numerical derivations, and the Lean 4.19.0 proof code. Confidence in correctness rests on mechanical verification rather than human proof-checking: the standalone Python and C++17 verification suite in twin_jacobsthal_anc.zip reproduces the outward-rounded global s = 277/64...5 and ln z >= 6,000 Table 5 constants, the 2D Kuhn-Richert and Rankin audits, and the exact CRT and Salazar certificates; and the Lean 4.19.0 archive at doi:10.5281/zenodo.24376219 (TwinJacobsthal_OptionA_18of18_FinalRelease_Trust0_Lean419.zip, SHA-256 700d2c80005d4d4bdd9c2bd94b7389f29df87076946a7e62ad2cac796d6cf162, 12,474/12,474 SHA256SUMS entries verified) audits all 74 exported declarations in TwinJacobsthal/GoalStatements.lean under --trust=0 across 12,468 local modules using only the standard axioms propext, Classical.choice, and Quot.sound (zero sorry or native_decide), covering all 18 numbered statements (at full manuscript strength for 12 statements and at the global s = 6 Option A tier plus high-scale rays and full Richert orders for the remaining 6, verified via an incremental Windows lake build against the current sources rather than a single cold from-source rebuild). Independent human review is welcomed.

Tools used

Lean
LeanVersion 4.19

References

  1. M. Bordignon, D. R. Johnston, and V. Starichkova, An explicit version of Chen's theorem and the linear sieve , Int.\ J.\ Number Theory 21 (2025), no. 10, 2497--2572, arXiv:2207.09452 (https://arxiv.org/abs/2207.09452).arXiv
  2. S. Broadbent, A. Fiori, H. Kadiri, N. Ng, and K. Wilk, Bounds for Mertens sums , preprint (Aug.\ 2026), arXiv:2608.01498 (https://arxiv.org/abs/2608.01498).arXiv
  3. P. J. Campbell, A sharper explicit result for the sum of two almost primes , preprint (Aug.\ 2026), arXiv:2608.09488v1 (https://arxiv.org/html/2608.09488v1).arXiv
  4. F. Costello and P. Watts, An upper bound on Jacobsthal's function , Math.\ Comp.\ 84 (2015), no. 293, 1389--1399, arXiv:1208.5342 (https://arxiv.org/abs/1208.5342).arXiv
  5. H. G. Diamond and H. Halberstam, A Higher-Dimensional Sieve Method , Cambridge Tracts in Mathematics, Vol. 177, Cambridge Univ.\ Press, 2008.
  6. P. Dusart, Estimates of some functions over primes without R.H. , preprint (2010), arXiv:1002.0442 (https://arxiv.org/abs/1002.0442).arXiv
  7. P. Erdős, On the integers relatively prime to nn and a number-theoretic function considered by Jacobsthal , Math.\ Scand.\ 10 (1962), 163--170.
  8. K. Ford, B. Green, S. Konyagin, J. Maynard, and T. Tao, Long gaps between primes , Ann.\ of Math.\ (2) 183 (2016), no. 3, 935--974, Annals of Mathematics (https://annals.math.princeton.edu/wp-content/uploads/annals-v183-n3-p04-p.pdf).link
  9. T. Freiberg, A tyro's approach to the tilted sieve: Beyond the Erdős--Rankin bound , preprint (Sept.\ 2026), arXiv:2609.28253v1 (https://arxiv.org/html/2609.28253v1).arXiv
  10. T. R. Hagedorn, Computation of Jacobsthal's function h(n)h(n) for n<50n < 50 , Math.\ Comp.\ 78 (2009), 1073--1087; see OEIS A072752 (https://oeis.org/A072752).link
Show all 30 referencesShow fewer references
  1. L. Hajdu and N. Saradha, Disproof of a conjecture of Jacobsthal , Math.\ Comp.\ 81 (2012), 2461--2471, ResearchGate:266191125 (https://www.researchgate.net/publication/266191125_Disproof_of_a_conjecture_of_Jacobsthal).link
  2. H. Iwaniec, On the problem of Jacobsthal , Demonstratio Math.\ 11 (1978), no. 1, 225--231, Semantic Scholar (https://www.semanticscholar.org/paper/ON-THE-PROBLEM-OF-JACOBSTHAL-Iwaniec/98318780cc4b1f34d375e744b66aee5acae8aeca).link
  3. E. Jacobsthal, Über Sequenzen ganzer Zahlen, von denen keine zu nn teilerfremd ist. I--III , Det Kongelige Norske Videnskabers Selskabs Forhandlinger 33 (1960), 117--139; see OEIS A048669 (https://oeis.org/A048669).link
  4. E. Li, An average-order theorem for a shifted pairwise-coprime extremal problem , preprint (Aug.\ 2026), arXiv:2606.17955v2 (https://arxiv.org/html/2606.17955).arXiv
  5. T. T. K. Nguyen, Finite-window noncovering on primorial wheels , Preprints.org (Aug.\ 2026), 202608.1299 (https://www.preprints.org/manuscript/202608.1299).link
  6. OEIS Foundation Inc., Sequence A144311: Length of the longest sequence of consecutive integers, each equal to 11 or −1-1 modulo at least one of the first nn primes (contributions by A. Carter, M. A. Alekseyev, and J. Wang), https://oeis.org/A144311.link
  7. G. Paseman, A small improvement on bounds for Jacobsthal's function , arXiv preprint (2014), arXiv:1311.5944 (https://arxiv.org/pdf/1311.5944).arXiv
  8. R. A. Rankin, The difference between consecutive prime numbers , J.\ London Math.\ Soc.\ 13 (1938), 242--247.
  9. H. Riesel and R. C. Vaughan, On sums of primes , Ark.\ Mat.\ 21 (1983), no. 1--2, 45--74, Project Euclid (https://projecteuclid.org/journals/arkiv-for-matematik/volume-21/issue-1-2/On-sums-of-primes/10.1007/BF02384300.full).DOI
  10. J. B. Rosser and L. Schoenfeld, Approximate formulas for some functions of prime numbers , Illinois J.\ Math.\ 6 (1962), no. 1, 64--94, Project Euclid (https://projecteuclid.org/journals/illinois-journal-of-mathematics/volume-6/issue-1/Approximate-formulas-for-some-functions-of-prime-numbers/10.1215/ijm/1255631807.full).DOI
  11. A. M. Salazar, Exact formulas for restricted coprime representations of even integers with squarefree modulus 6P6P , preprint (Sept.\ 2026), arXiv:2609.22305 (https://arxiv.org/abs/2609.22305).arXiv
  12. A. M. Salazar, Prime supports and vanishing in restricted coprime representations , preprint (Nov.\ 2026), arXiv:2611.10059v1 (https://arxiv.org/html/2611.10059v1).arXiv
  13. R. C. Vaughan, On the order of magnitude of Jacobsthal's function , Proc.\ Edinburgh Math.\ Soc.\ (2) 20 (1977), no. 4, 329--331, Cambridge Core (https://www.cambridge.org/core/journals/proceedings-of-the-edinburgh-mathematical-society/article/on-the-order-of-magnitude-of-jacobsthals-function/BD6EBCDD8B8B3EDDF3AF69085DCD8F26).link
  14. A. Weeks, Computing Jacobsthal's Function on Primorials: Exact Values and Constructive Bounds , Oct.\ 2026; cited in OEIS A048670 (https://oeis.org/A048670) and OEIS A072752 (https://oeis.org/A072752).link
  15. A. Weeks, The Sharp Global Brun--Titchmarsh Constant and Explicit Wheeled Short-Interval Prime Bounds , preprint and Lean 4.19.0 formalization archive ( Pass 53 , Sibling Exports50 , Nov.\ 2026, [ doi:10.5281/zenodo. 24376490 ]; v1 at [ doi:10.5281/zenodo. 24285322 ]).DOI
  16. Y. Zhang, Tight instances of the Lonely Runner Conjecture: one-entry modifications and the growth of speeds , preprint (Oct.\ 2026), arXiv:2608.13599v3 (https://arxiv.org/html/2608.13599v3).arXiv
  17. M. Ziller, New computational results on a conjecture of Jacobsthal , preprint (2019), arXiv:1903.11973 (https://arxiv.org/html/1903.11973v2).arXiv
  18. M. Ziller and J. F. Morack, Algorithmic concepts for the computation of Jacobsthal's function , preprint (2016), arXiv:1611.03310 (https://arxiv.org/html/1611.03310v2).arXiv
  19. M. Ziller and J. F. Morack, Divisibility in paired progressions, Goldbach's conjecture, and the infinitude of prime pairs , preprint (June 2017), arXiv:1706.00317 (https://arxiv.org/abs/1706.00317).arXiv
  20. M. Ziller and J. F. Morack, A short note on the computation of the generalised Jacobsthal function for paired progressions , preprint (June 2017), arXiv:1706.03668 (https://arxiv.org/html/1706.03668).arXiv

Version history

  1. v1 · 28 pagesSubmitted by Alben WeeksCompanion archival deposit (including the complete Lean 4.19.0 formalization, zero-float Python verifiers, and independent --trust=0 / lean4checker verification logs): [https://doi.org/10.5281/zenodo.24376219](https://doi.org/10.5281/zenodo.24376219). The research direction, problem selection, and core heuristic intuitions (such as pre-wheeling and sieve-structure ideas) grew out of 15+ years of personal math notebooks and were human-directed across this multi-paper series, while the formal theorem statements, analytic proofs, LaTeX writing, and Lean 4.19.0 code were developed with AI assistance. Mathematical soundness is established strictly through machine verification (zero-float rational verifiers and --trust=0 / lean4checker --fresh Lean kernel checks) rather than line-by-line human proof review.CurrentNov 30, 2026