Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

Number Theory

171 missions · 91 completed

The study of the integers and the structures built from them — prime numbers, and the rational, algebraic, and ppp-adic numbers that extend them. It reaches from analytic number theory, which uses the tools of analysis to understand the distribution of primes, to algebraic number theory, Diophantine equations, and the arithmetic of elliptic curves, modular forms, and LLL-functions.

Missions

Open80Completed91All171
CombinatoricsHarmonic Analysis·Captain: wurtle

A power saving for square-difference-free setsResearch Paper

Motivation: how large can a set avoid square differences?

A set A⊆{1,…,N}A\subseteq\{1,\dots,N\}A⊆{1,…,N} is square-difference-free if no two of its elements differ by a perfect square m2m^2m2 with m≥1m\ge1m≥1. The Furstenberg–Sárközy theorem says such sets have density tending to zero; the question is how fast. Writing s(N)s(N)s(N) for the largest size of a square-difference-free subset of {1,…,N}\{1,\dots,N\}{1,…,N}, the problem is a prototype for polynomial patterns in dense sets: it is the simplest case of finding differences in the image of a polynomial, and it is the model problem on which Fourier-analytic, ergodic and density-increment methods for polynomial configurations are tested. A long-standing gap separates the upper bounds, which until recently saved only a power of log⁡N\log NlogN (with a slowly growing exponent), from the lower bounds, which are powers N0.73…N^{0.73\ldots}N0.73… and beyond. Whether a fixed power saving s(N)≤CN1−cs(N)\le CN^{1-c}s(N)≤CN1−c holds was posed explicitly by Green and Sawhney.

Background and timeline

  • 1977–1978 — Answering a question of Lovász, Furstenberg (J. Analyse Math. 1977, Theorem 1.2) and Sárközy (Acta Math. Hungar. 1978) independently prove s(N)=o(N)s(N)=o(N)s(N)=o(N); Sárközy's bound is N/(log⁡N)1/3+o(1)N/(\log N)^{1/3+o(1)}N/(logN)1/3+o(1).
  • 1984 — Ruzsa constructs square-difference-free sets of size ≫N0.7330…\gg N^{0.7330\ldots}≫N0.7330… (Period. Math. Hungar. 1984).
  • 1988 — Pintz, Steiger and Szemerédi prove s(N)≪N/(log⁡N)clog⁡log⁡log⁡log⁡Ns(N)\ll N/(\log N)^{c\log\log\log\log N}s(N)≪N/(logN)cloglogloglogN (J. LMS 1988).
  • 2008/2015 — Beigel and Gasarch (arXiv:0804.4892) and Lewko (Electron. J. Combin. 2015) improve the lower exponent to 0.7334…0.7334\ldots0.7334….
  • 2022 — Bloom and Maynard prove s(N)≪N/(log⁡N)clog⁡log⁡log⁡Ns(N)\ll N/(\log N)^{c\log\log\log N}s(N)≪N/(logN)clogloglogN (Compos. Math. 2022).
  • 2024/2025 — Green and Sawhney prove s(N)≪Nexp⁡(−clog⁡N)s(N)\ll N\exp(-c\sqrt{\log N})s(N)≪Nexp(−clogN​) and ask for a fixed power saving (arXiv:2411.17448, Theorem 1.1 and §1.1).
  • 2026 — Adajar et al. extend the arithmetic level-ddd approach to intersective polynomials (arXiv:2605.16216); Krachun pushes the lower exponent past 3/43/43/4, to 0.7527…0.7527\ldots0.7527… (arXiv:2608.01325).
  • 2026 — The OpenAI preprint A power saving for square-difference-free sets (OpenAI Math Release, September 24, 2026) claims s(N)≤CN1−cs(N)\le CN^{1-c}s(N)≤CN1−c with absolute constants. It has not been peer reviewed and its theorem is not formally verified.

Setting

For a positive integer NNN write [N]={1,…,N}[N]=\{1,\dots,N\}[N]={1,…,N}. A set A⊆[N]A\subseteq[N]A⊆[N] is square-difference-free if

(A−A)∩{m2:m∈N, m≥1}=∅,(A-A)\cap\{m^2 : m\in\mathbb N,\ m\ge1\}=\varnothing,(A−A)∩{m2:m∈N, m≥1}=∅,

that is, a−b≠m2a-b\neq m^2a−b=m2 for all a,b∈Aa,b\in Aa,b∈A and all integers m≥1m\ge1m≥1. (Differences are taken in Z\mathbb ZZ; a−b=0a-b=0a−b=0 is allowed since 000 is excluded from the squares.)

In Lean (namespace OAI.SquareDifference), sets are Finset ℤ contained in Finset.Icc 1 N, and IsSquareDifferenceFree A states a - b ≠ (m : ℤ)^2 for all a b ∈ A and m : ℕ with 1 ≤ m.

Formalization targets

Goal: a fixed power saving (Theorem 1.1)

There are absolute constants c>0c>0c>0 and C<∞C<\inftyC<∞ such that for every integer N≥1N\ge1N≥1 and every square-difference-free A⊆[N]A\subseteq[N]A⊆[N],

∣A∣≤C N1−c.|A|\le C\,N^{1-c}.∣A∣≤CN1−c.

Equivalently, every subset of [N][N][N] with more than CN1−cCN^{1-c}CN1−c elements contains two elements differing by a nonzero perfect square. The Lean goal is published on the platform with status Open. The statement fixes no numerical value of ccc, so any improvement of the exponent leaves the goal unchanged.

Significance

The result itself. Every earlier upper bound saved less than any fixed power of NNN; the best, due to Green and Sawhney, saved exp⁡(−clog⁡N)\exp(-c\sqrt{\log N})exp(−clogN​). A fixed power saving changes the nature of the problem: it shows that the extremal exponent lim sup⁡log⁡s(N)/log⁡N\limsup \log s(N)/\log Nlimsuplogs(N)/logN lies strictly below 111, so both upper and lower bounds are now polynomial and the remaining question is the value of the exponent, now known to lie between 0.7527…0.7527\ldots0.7527… and 1−c1-c1−c. As an immediate consequence (Remark 1.2 of the source), the graph on [N][N][N] joining integers differing by a square has chromatic number at least C−1NcC^{-1}N^cC−1Nc, a polynomial bound for the square-difference coloring problem.

Formalizing it. The statement is elementary and self-contained, involving only finite sets of integers. The proof combines a graph/tuple reformulation, reflection-positivity (chessboard) inequalities for a finite-field probability law, and an induction with fixed finite constructions. A formal proof would certify an argument whose constants are explicitly noted to be extremely small and not computed.

Difficulty

Density-increment arguments, starting from Sárközy's circle-method proof, gain a constant factor of density at each step but lose a power of the length of the progression on which they pass, so after the log⁡(1/α)\log(1/\alpha)log(1/α) increments needed the saving is only logarithmic or quasi-logarithmic. The Green–Sawhney level-ddd approach controls the relevant rational Fourier coefficients through hypercontractivity but still gives only exp⁡(−clog⁡N)\exp(-c\sqrt{\log N})exp(−clogN​). A power saving requires an argument whose loss does not compound with the number of iterations — a single estimate that converts square-difference-freeness into a polynomial density loss.

Formalization scope

  • Sets are Finset ℤ inside Finset.Icc 1 N and N≥1N\ge1N≥1 is a natural number; the bound is uniform in NNN.
  • The constants are existentially quantified before NNN and AAA; c>0c>0c>0 is required and CCC is a real number. The power N1−cN^{1-c}N1−c is the real power.
  • Differences a−ba-ba−b are in Z\mathbb ZZ and the excluded squares are m2m^2m2 with m≥1m\ge1m≥1, so only nonzero squares are forbidden; differences in either order are covered because both a−ba-ba−b and b−ab-ab−a are tested.
  • Needed infrastructure: Fourier analysis on Z/pZ\mathbb Z/p\mathbb ZZ/pZ and on [N][N][N], reflection-positivity/chessboard estimates, and graph-norm inequalities. Reusable pieces include a chessboard-estimate library and finite-field Fourier tools.

Selected references

  • H. Furstenberg, Ergodic behavior of diagonal measures and a theorem of Szemerédi on arithmetic progressions, J. Analyse Math. 31 (1977). https://doi.org/10.1007/BF02813304
  • A. Sárközy, On difference sets of sequences of integers. I, Acta Math. Acad. Sci. Hungar. 31 (1978). https://doi.org/10.1007/BF01896079
  • I. Z. Ruzsa, Difference sets without squares, Period. Math. Hungar. 15 (1984). https://doi.org/10.1007/BF02454169
  • J. Pintz, W. L. Steiger and E. Szemerédi, On sets of natural numbers whose difference set contains no squares, J. London Math. Soc. 37 (1988). https://doi.org/10.1112/jlms/s2-37.2.219
  • R. Beigel and W. Gasarch, Square-difference-free sets of size Ω(n0.7334…)\Omega(n^{0.7334\ldots})Ω(n0.7334…), arXiv:0804.4892 (2008). https://arxiv.org/abs/0804.4892v3
  • M. Lewko, An improved lower bound related to the Furstenberg–Sárközy theorem, Electron. J. Combin. 22 (2015). https://doi.org/10.37236/4656
  • T. F. Bloom and J. Maynard, A new upper bound for sets with no square differences, Compos. Math. 158 (2022). https://doi.org/10.1112/S0010437X22007679
  • B. Green and M. Sawhney, New bounds for the Furstenberg–Sárközy theorem, arXiv:2411.17448 (2025). https://arxiv.org/abs/2411.17448v2
  • D. Krachun, Square-difference-free sets beyond the three-quarter barrier, arXiv:2608.01325 (2026). https://arxiv.org/abs/2608.01325v1
  • OpenAI, A power saving for square-difference-free sets, OpenAI Math Release preprint, September 24, 2026 (Theorem 1.1, p. 2). https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/A-power-saving-for-square-difference-free-sets-September-24-2026/paper.pdf
2 thms1 active userReviewed
AlgebraCombinatorics·Captain: wurtle

The circulant Hadamard conjectureResearch Paper

Motivation

A Hadamard matrix of order nnn is an n×nn\times nn×n matrix with entries ±1\pm1±1 whose rows are mutually orthogonal, HHT=nInHH^{\mathsf T}=nI_nHHT=nIn​. Such matrices are extremal for Hadamard's determinant bound and are used throughout coding theory, experimental design and signal processing. Imposing a circulant structure, where every row is a cyclic shift of the first, links the problem to cyclic difference sets and to binary sequences with ideal periodic autocorrelation. The order-4 example with first row (−1,1,1,1)(-1,1,1,1)(−1,1,1,1) is easy to find; the circulant Hadamard conjecture, traditionally attributed to Ryser (1963), asserts that apart from the trivial order 1 there are no others.

The question is closely tied to Barker sequences, binary sequences with the smallest possible aperiodic autocorrelations, which are used as radar pulse-compression codes. Only lengths 2,3,4,5,7,11,132,3,4,5,7,11,132,3,4,5,7,11,13 are known, and the long-standing Barker-sequence conjecture says there are no others.

Timeline

  • 1961. Turyn and Storer prove that Barker sequences of odd length greater than 13 do not exist, and relate even-length Barker sequences to vanishing periodic autocorrelations (doi:10.1090/S0002-9939-1961-0125026-2).
  • 1963. Ryser's monograph Combinatorial Mathematics records the circulant Hadamard problem (doi:10.5948/UPO9781614440147).
  • 1965. Turyn, using cyclotomic character sums, shows that any order greater than four must be 4u24u^24u2 with uuu odd and not a prime power (doi:10.2140/pjm.1965.15.319).
  • 1999–2016. B. Schmidt's field descent (doi:10.1090/S0894-0347-99-00298-2) and the work of Leung and Schmidt (2005, 2012, 2016) give much stronger arithmetic restrictions (doi:10.1007/s10623-011-9493-1, doi:10.1016/j.jcta.2015.11.005).
  • 2016. Schmidt and Willms give a new proof of the odd-length Barker classification (doi:10.1007/s10623-015-0104-4).
  • 2017. Logan and Mossinghoff exclude all but 4,489 candidate orders 4<n≤4⋅10304<n\le4\cdot10^{30}4<n≤4⋅1030 using double Wieferich prime pairs.
  • 2024. Steinerberger shows that approximately orthogonal sign circulants exist in every order (doi:10.1007/s10623-024-01430-w), so the exact equality is essential.

Several complete proofs have been claimed (Oh-Hashi 2016, Orozco López 2019, Morris 2023, Gallardo 2024, Manjhi–Kumar 2025). The source of this mission is an OpenAI preprint dated September 23, 2026, which proves the conjecture by an argument with cyclotomic character values over the group ring Z[i][Cu2]\mathbb Z[i][C_{u^2}]Z[i][Cu2​].

Setting

A real n×nn\times nn×n matrix HHH is circulant if there is a function h:Z/nZ→Rh:\mathbb Z/n\mathbb Z\to\mathbb Rh:Z/nZ→R with Hij=h(j−i)H_{ij}=h(j-i)Hij​=h(j−i), indices taken modulo nnn. It is a sign Hadamard matrix if every entry is 111 or −1-1−1 and

HHT=n In.HH^{\mathsf T}=n\,I_n.HHT=nIn​.

For a circulant sign matrix with first row hhh, the periodic autocorrelations are Ph(t)=∑jhjhj+tP_h(t)=\sum_{j}h_jh_{j+t}Ph​(t)=∑j​hj​hj+t​; the Hadamard condition says Ph(t)=0P_h(t)=0Ph​(t)=0 for 1≤t<n1\le t<n1≤t<n.

A Barker sequence of length nnn is a∈{−1,1}na\in\{-1,1\}^na∈{−1,1}n with aperiodic autocorrelations

Ca(t)=∑j=0n−t−1ajaj+t,∣Ca(t)∣≤1(1≤t<n).C_a(t)=\sum_{j=0}^{n-t-1}a_ja_{j+t},\qquad |C_a(t)|\le1\quad(1\le t<n).Ca​(t)=j=0∑n−t−1​aj​aj+t​,∣Ca​(t)∣≤1(1≤t<n).

Formalization targets

Goal: Theorem 1.1

For n≥1:∃ a real circulant Hadamard matrix of order n  ⟺  n∈{1,4}.\text{For } n\ge1:\quad \exists\ \text{a real circulant Hadamard matrix of order } n\iff n\in\{1,4\}.For n≥1:∃ a real circulant Hadamard matrix of order n⟺n∈{1,4}.

The Lean statement OAI.CirculantHadamard.exists_iff_order_one_or_four is open on the platform.

Milestone: Corollary 1.2, even case

a∈{−1,1}n Barker, n≥1 even ⟹ n∈{2,4}.a\in\{-1,1\}^n\ \text{Barker},\ n\ge1\ \text{even}\ \Longrightarrow\ n\in\{2,4\}.a∈{−1,1}n Barker, n≥1 even ⟹ n∈{2,4}.

Combined with the classical odd-length classification, this gives the Barker length list {2,3,4,5,7,11,13}\{2,3,4,5,7,11,13\}{2,3,4,5,7,11,13}.

Significance

Theorem 1.1 closes a problem open since the early 1960s and, through the even-length reduction, completes the classification of Barker-sequence lengths. Equivalently, it shows that cyclic difference sets with parameters (4u2, 2u2−u, u2−u)(4u^2,\,2u^2-u,\,u^2-u)(4u2,2u2−u,u2−u) exist only for u=1u=1u=1. It also explains, in a single statement, the computational evidence of Logan and Mossinghoff and the arithmetic restrictions of Turyn and of Leung–Schmidt.

The result is proved in an OpenAI preprint that has not been peer reviewed; given the number of earlier claimed proofs, an independent machine-checked proof would be especially valuable. No formal proof of either statement exists; the formalization would also produce reusable group-ring and cyclotomic machinery.

Difficulty

The orthogonality condition is a norm equation hh∗=nhh^*=nhh∗=n in the group ring Z[Cn]\mathbb Z[C_n]Z[Cn​], and every character sends hhh to a cyclotomic integer of absolute value n\sqrt nn​. Classical arguments use such character values one at a time, through factorization of ideals in cyclotomic fields, and stop at the case n=4u2n=4u^2n=4u2 with uuu odd and divisible by several primes. The obstruction must combine information from all prime divisors of uuu simultaneously and use the fact that the coefficients are signs, not arbitrary integers; norm equations alone do have solutions at these orders.

Formalization scope

  • RealMatrix n := Matrix (Fin n) (Fin n) ℝ; IsCirculant H asks for h : Fin n → ℝ with H i j = h (j - i), where subtraction in Fin n is modular.
  • IsSignHadamard H is entrywise IsSign (equal to 111 or −1-1−1) together with H * H.transpose = (n : ℝ) • 1.
  • The goal assumes 0 < n, matching the paper's "positive integer nnn".
  • The Barker milestone uses integer sequences Fin n → ℤ with IsSign entries and aperiodic h k = Σ_{j<n-k} h_j h_{j+k}, bounded by 111 in absolute value for 0<k<n0<k<n0<k<n.

A complete development needs group rings of finite cyclic groups, characters and cyclotomic integers, localization at primes above ppp, and Kronecker's theorem that an algebraic integer all of whose conjugates have absolute value one is a root of unity. Contributions formalizing Proposition 2.2 (the order restriction n=4u2n=4u^2n=4u2, uuu odd), Lemma 3.1 (character comparison) and Proposition 3.4 (alternating character products are roots of unity of odd order) are welcome.

Selected references

  • OpenAI, The circulant Hadamard conjecture, preprint, September 23, 2026. https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/The-circulant-Hadamard-conjecture-September-23-2026/paper.pdf
  • H. J. Ryser, Combinatorial Mathematics, Carus Mathematical Monographs, 1963. https://doi.org/10.5948/UPO9781614440147
  • R. J. Turyn, Character sums and difference sets, Pacific J. Math., 1965. https://doi.org/10.2140/pjm.1965.15.319
  • R. Turyn, J. Storer, On binary sequences, Proc. Amer. Math. Soc., 1961. https://doi.org/10.1090/S0002-9939-1961-0125026-2
  • B. Schmidt, Cyclotomic integers and finite geometry, J. Amer. Math. Soc., 1999. https://doi.org/10.1090/S0894-0347-99-00298-2
  • K. H. Leung, B. Schmidt, New restrictions on possible orders of circulant Hadamard matrices, Des. Codes Cryptogr., 2012. https://doi.org/10.1007/s10623-011-9493-1
  • K.-U. Schmidt, J. Willms, Barker sequences of odd length, Des. Codes Cryptogr., 2016. https://doi.org/10.1007/s10623-015-0104-4
  • B. Logan, M. J. Mossinghoff, Double Wieferich pairs and circulant Hadamard matrices, J. Combin. Math. Combin. Comput., 2017.
  • S. Steinerberger, A note on approximate Hadamard matrices, Des. Codes Cryptogr., 2024. https://doi.org/10.1007/s10623-024-01430-w
2 thms1 active userReviewed
Combinatorics·Captain: wurtle

Quantitative Superexponential Bounds for van der Waerden NumbersResearch Paper

Motivation

Van der Waerden's theorem (1927) says that for every number of colours rrr and every length kkk, every rrr-colouring of a long enough interval of integers contains a monochromatic arithmetic progression of length kkk. The van der Waerden number Wr(k)W_r(k)Wr​(k) is the least such interval length. Its upper bounds were for a long time not even primitive recursive (Shelah 1988 gave the first primitive recursive bound; Gowers 2001 gave a tower-type bound), while lower bounds stayed close to exponential, W2(k)≳2kW_2(k)\gtrsim 2^kW2​(k)≳2k. Erdős asked whether W2(k)1/k→∞W_2(k)^{1/k}\to\inftyW2​(k)1/k→∞, i.e. whether the growth is genuinely faster than any exponential. Lower bounds on Wr(k)W_r(k)Wr​(k) correspond to long colourings with no monochromatic progression and are a central quantitative question in Ramsey theory.

Timeline

  • 1927. Van der Waerden proves finiteness of Wr(k)W_r(k)Wr​(k).
  • 1952 and 1962. Erdős–Rado (doi:10.1112/plms/s3-2.1.417) and Schmidt (doi:10.1215/S0012-7094-62-02914-9) obtain early exponential-type lower bounds.
  • 1968. Berlekamp proves W2(p+1)>p 2pW_2(p+1)>p\,2^pW2​(p+1)>p2p for primes ppp by an algebraic construction (doi:10.4153/CMB-1968-047-7).
  • 1975. Erdős and Lovász introduce the local lemma, a standard tool for such colourings.
  • 1980. Erdős asks for lim⁡kW2(k)1/k=∞\lim_k W_2(k)^{1/k}=\inftylimk​W2​(k)1/k=∞ (doi:10.1016/S0167-5060(08)70697-6).
  • 1990. Szabó proves W2(k)≥2k/kεW_2(k)\ge 2^k/k^{\varepsilon}W2​(k)≥2k/kε (doi:10.1002/rsa.3240010307).
  • 2016. Kozik and Shabanov prove Wr(k)≥βrk−1W_r(k)\ge\beta r^{k-1}Wr​(k)≥βrk−1 uniformly (doi:10.1016/j.jctb.2015.09.004).
  • 2025. Hunter improves the exponential base for fixed r≥5r\ge5r≥5 (doi:10.1007/s11856-025-2735-0).
  • 2026. Fox and Hunter prove superexponential growth for three colours, W3(k)>2klog⁡∗k/4W_3(k)>2^{k\log^*k/4}W3​(k)>2klog∗k/4 (arXiv:2606.02541); Campos, Fox and Schildkraut prove W2(k)≥(1−o(1))k2k−1W_2(k)\ge(1-o(1))k2^{k-1}W2​(k)≥(1−o(1))k2k−1 (arXiv:2608.20824).

For two colours, superexponential growth had not been established. The source of this mission, an OpenAI preprint dated September 23, 2026, claims a bound of the form kcklog⁡rk^{ck\log r}kcklogr uniformly in r≥2r\ge2r≥2.

Setting

For positive integers r,kr,kr,k, Wr(k)W_r(k)Wr​(k) is the least positive integer NNN such that every map {1,…,N}→{1,…,r}\{1,\dots,N\}\to\{1,\dots,r\}{1,…,N}→{1,…,r} is constant on some progression

a, a+d, …, a+(k−1)d,a,d≥1,a+(k−1)d≤N.a,\ a+d,\ \dots,\ a+(k-1)d,\qquad a,d\ge1,\quad a+(k-1)d\le N.a, a+d, …, a+(k−1)d,a,d≥1,a+(k−1)d≤N.

Colourings may use fewer than rrr colours.

Formalization targets

Goal: Theorem 1.1

There is an absolute K0K_0K0​ such that for every k≥K0k\ge K_0k≥K0​ and every r≥2r\ge2r≥2,

Wr(k) > k c k⌊log⁡2r⌋,c=10−5.W_r(k)\ >\ k^{\,c\,k\lfloor\log_2 r\rfloor},\qquad c=10^{-5}.Wr​(k) > kck⌊log2​r⌋,c=10−5.

In particular Wr(k)1/k→∞W_r(k)^{1/k}\to\inftyWr​(k)1/k→∞ for each fixed r≥2r\ge2r≥2. The constant ccc is the paper's and is not optimized. The Lean statement OAI.QuantitativeVanDerWaerden.uniform_lower_bound is open on the platform.

Significance

The theorem gives a quantitative positive answer to Erdős's superexponential-growth question for two colours, and is stronger than the statement W2(k)/2k→∞W_2(k)/2^k\to\inftyW2​(k)/2k→∞ settled by Campos–Fox–Schildkraut. It is uniform in the number of colours with a single threshold K0K_0K0​, which complements the Fox–Hunter bounds that require many colours relative to kkk. The bound is still far from the best upper bounds, which are tower-type.

The result is claimed in an OpenAI preprint; it has not been peer reviewed and no machine-checked proof exists. A formal proof would certify an explicit colouring construction together with a probabilistic (local-lemma) argument.

Difficulty

Random colourings with the local lemma give only Wr(k)≳rk/poly(k)W_r(k)\gtrsim r^{k}/\mathrm{poly}(k)Wr​(k)≳rk/poly(k): the number of kkk-term progressions in [N][N][N] is of order N2N^2N2, and each is monochromatic with probability r1−kr^{1-k}r1−k, which caps the length at exponential size. Algebraic constructions such as Berlekamp's gain only a factor ppp. A superexponential bound needs colourings with structure that kills most progressions deterministically, while the remaining progressions are few enough to be destroyed randomly, uniformly down to two colours.

Formalization scope

  • MonoAP c k a d: the colour of a+jda+jda+jd equals the colour of aaa for j<kj<kj<k; HasMonoAP c k N: some d>0d>0d>0 with a+(k−1)d<Na+(k-1)d<Na+(k−1)d<N.
  • IsRamsey α k N: every colouring ℕ → α has a monochromatic kkk-AP in {0,…,N−1}\{0,\dots,N-1\}{0,…,N−1} (equivalent to the paper's [N][N][N] after a shift).
  • W r k is the sInf of positive Ramsey NNN for colours Fin r. If no such NNN existed this would be 000 and the goal's strict inequality would fail, so the goal implicitly includes van der Waerden's theorem.
  • The exponent uses Nat.log 2 r =⌊log⁡2r⌋=\lfloor\log_2 r\rfloor=⌊log2​r⌋ and the real constant 1/100000.

A complete development needs van der Waerden's theorem (or at least finiteness), a finite asymmetric local lemma, and the paper's explicit adaptive-mesh colourings and counting of affine signatures. Contributions formalizing Lemma 4.1 (finite asymmetric local lemma) or Theorem 6.3 (a cyclic two-colouring) are welcome.

Selected references

  • OpenAI, Quantitative Superexponential Bounds for van der Waerden Numbers, preprint, September 23, 2026. https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/Quantitative-Superexponential-Bounds-for-van-der-Waerden-Numbers-September-23-2026/paper.pdf
  • P. Erdős, A survey of problems in combinatorial number theory, Ann. Discrete Math., 1980. https://doi.org/10.1016/S0167-5060(08)70697-6
  • E. R. Berlekamp, A construction for partitions which avoid long arithmetic progressions, Canad. Math. Bull., 1968. https://doi.org/10.4153/CMB-1968-047-7
  • Z. Szabó, An application of Lovász' local lemma: a new lower bound for the van der Waerden number, Random Structures Algorithms, 1990. https://doi.org/10.1002/rsa.3240010307
  • J. Kozik, D. Shabanov, Improved algorithms for colorings of simple hypergraphs and applications, J. Combin. Theory Ser. B, 2016. https://doi.org/10.1016/j.jctb.2015.09.004
  • J. Fox, Z. Hunter, Three-color van der Waerden numbers grow super-exponentially, preprint, 2026. https://arxiv.org/abs/2606.02541
  • M. Campos, J. Fox, C. Schildkraut, A new lower bound for two-color van der Waerden numbers, preprint, 2026. https://arxiv.org/abs/2608.20824
  • S. Shelah, Primitive recursive bounds for van der Waerden numbers, J. Amer. Math. Soc., 1988. https://doi.org/10.1090/S0894-0347-1988-0929498-X
  • W. T. Gowers, A new proof of Szemerédi's theorem, Geom. Funct. Anal., 2001. https://doi.org/10.1007/s00039-001-0332-9
2 thms1 active userReviewed
Captain: wurtle

Positive lower density of large prime gapsResearch Paper

Motivation

Let pnp_npn​ be the nnn-th prime and dn=pn+1−pnd_n=p_{n+1}-p_ndn​=pn+1​−pn​ the nnn-th gap. By the prime number theorem the average gap near ppp is about log⁡p\log plogp. A great deal is known about how large individual gaps can be, but much less about how often large gaps occur. A natural question is whether, for each fixed CCC, a positive proportion of all gaps exceed Clog⁡pnC\log p_nClogpn​. Erdős and Prachar (1962) asked a closely related question about the sequence pn/np_n/npn​/n: do the indices where it increases have positive lower density?

Background

  • 1931. Westzynthius proves that dn/log⁡pnd_n/\log p_ndn​/logpn​ is unbounded.
  • 1935, 1938. Erdős and Rankin construct quantitatively larger gaps (doi:10.1093/qmath/os-6.1.124, doi:10.1112/jlms/s1-13.4.242).
  • 1962. Erdős and Prachar ask whether the indices with pn/n<pn+1/(n+1)p_n/n<p_{n+1}/(n+1)pn​/n<pn+1​/(n+1) have positive lower density (doi:10.1007/BF02992930).
  • 1965. Bombieri and A. I. Vinogradov prove the distribution theorem for primes in progressions on average (doi:10.1112/S0025579300005313).
  • 1976. Gallagher derives Poisson statistics for primes in short intervals from a uniform Hardy–Littlewood hypothesis (doi:10.1112/S0025579300016442).
  • 2005, 2015. Goldston–Yıldırım's divisor-sum correlations and Maynard's multidimensional sieve give the weight technology later used for gaps (arXiv:math/0504336, doi:10.4007/annals.2015.181.1.7).
  • 2010. Bazzanella, Languasco and Zaccagnini obtain positive proportions of prime-start intervals for thresholds below 0.5790.5790.579, and distinguish counting gaps from counting interval starts (doi:10.1090/S0002-9947-09-05009-0).
  • 2016, 2018. Ford, Green, Konyagin and Tao, and Maynard, independently improve the Erdős–Rankin bound; their joint work follows (doi:10.4007/annals.2016.183.3.4, doi:10.4007/annals.2016.183.3.3, doi:10.1090/jams/876).

The source of this mission is an OpenAI preprint dated September 25, 2026.

Setting

  • p1=2<p2=3<⋯p_1=2<p_2=3<\cdotsp1​=2<p2​=3<⋯ are the primes in order, and dn=pn+1−pnd_n=p_{n+1}-p_ndn​=pn+1​−pn​.
  • For A⊆{1,2,… }A\subseteq\{1,2,\dots\}A⊆{1,2,…}, the lower asymptotic density is d‾(A)=lim inf⁡N→∞∣A∩[1,N]∣/N\underline d(A)=\liminf_{N\to\infty}|A\cap[1,N]|/Nd​(A)=liminfN→∞​∣A∩[1,N]∣/N.
  • All logarithms are natural.

Formalization targets

Goal: Theorem 1.1 and Corollary 1.2

For every fixed real C>0C>0C>0 there are c(C)>0c(C)>0c(C)>0 and N0(C)N_0(C)N0​(C) with

#{1≤n≤N: pn+1−pn>Clog⁡pn} ≥ c(C) N(N≥N0(C)),\#\{1\le n\le N:\ p_{n+1}-p_n>C\log p_n\}\ \ge\ c(C)\,N\qquad(N\ge N_0(C)),#{1≤n≤N: pn+1​−pn​>Clogpn​} ≥ c(C)N(N≥N0​(C)),

and

d‾({n≥1: pnn<pn+1n+1})>0.\underline d\Bigl(\Bigl\{n\ge1:\ \frac{p_n}{n}<\frac{p_{n+1}}{n+1}\Bigr\}\Bigr)>0.d​({n≥1: npn​​<n+1pn+1​​})>0.

The Lean statement OAI.Problem344.large_gaps_and_ratio_density is the conjunction of these two claims and is open on the platform.

Significance

Theorem 1.1 says that gaps of size Clog⁡pC\log pClogp are not rare for any fixed CCC: they occupy a positive proportion of the indices up to every large NNN. This is a statement about the frequency of large gaps, not about the size of the largest one, and it does not follow from the Erdős–Rankin or Ford–Green–Konyagin–Maynard–Tao constructions. Corollary 1.2 answers the Erdős–Prachar question: since pn/n<pn+1/(n+1)p_n/n<p_{n+1}/(n+1)pn​/n<pn+1​/(n+1) is equivalent to dn>pn/n∼log⁡pnd_n>p_n/n\sim\log p_ndn​>pn​/n∼logpn​, it follows from Theorem 1.1 with C=2C=2C=2. The constants are not made explicit.

The result is proved in an OpenAI preprint, which has not been peer reviewed. No machine-checked proof exists.

Difficulty

Counting gaps differs from counting empty intervals: a single very long gap contains many starting points of prime-free intervals, so a positive proportion of empty intervals can come from a sparse set of gaps. Results of the latter kind (Bazzanella–Languasco–Zaccagnini, Tao's empty-interval argument) therefore do not give gap counts. The proof needs a sieve weight that makes a prime in (m,m+h](m,m+h](m,m+h] likely while making (m+h,m+2h](m+h,m+2h](m+h,m+2h] almost surely prime-free, and then a multiplicity argument (the last prime before the empty interval is selected by at most hhh values of mmm) to convert weighted interval mass into a count of distinct gaps. Making the second interval nearly empty requires an alternating family of divisor-sum squares whose adjacent dimensions nearly cancel.

Formalization scope

  • prime n = Nat.nth Nat.Prime (n - 1), so prime 1 = 2; largeGapIndices C N filters Finset.Icc 1 N by C * log (prime n) < prime (n+1) - prime n in ℝ.
  • lowerAsymptoticDensity A = sSup {d | ∃ N0, ∀ N ≥ N0, d ≤ initialCount A N / N}, which equals the liminf because the ratios lie in [0,1][0,1][0,1].
  • ratioIncreaseIndices = {n | 1 ≤ n ∧ prime n / n < prime (n+1) / (n+1)} in ℝ.
  • The first clause quantifies over all real C>0C>0C>0, with ccc and N0N_0N0​ depending on CCC.

A complete development needs the prime number theorem, the Bombieri–Vinogradov theorem, smooth Goldston–Yıldırım/Maynard divisor-sum correlations, and averages of the Hardy–Littlewood singular series. These are widely reusable. Contributions formalizing Proposition 2.1 (weights for adjacent intervals), Proposition 3.1 (moment identities and a detector bound), Proposition 4.2 (cancellation between high dimensions), Proposition 5.1 (uniform mixed moments) and Lemma 5.4 (singular series in boxes) are welcome.

Selected references

  • OpenAI, Positive lower density of large prime gaps, preprint, September 25, 2026. https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/Positive-lower-density-of-large-prime-gaps-September-25-2026/main.pdf
  • P. Erdős, K. Prachar, Sätze und Probleme über pk/kp_k/kpk​/k, Abh. Math. Sem. Univ. Hamburg, 1962. https://doi.org/10.1007/BF02992930
  • D. Bazzanella, A. Languasco, A. Zaccagnini, Prime numbers in logarithmic intervals, Trans. Amer. Math. Soc., 2010. https://doi.org/10.1090/S0002-9947-09-05009-0
  • J. Maynard, Small gaps between primes, Ann. of Math., 2015. https://doi.org/10.4007/annals.2015.181.1.7
  • D. A. Goldston, C. Y. Yıldırım, Small gaps between primes I, preprint, 2005. https://arxiv.org/abs/math/0504336
  • K. Ford, B. Green, S. Konyagin, J. Maynard, T. Tao, Long gaps between primes, J. Amer. Math. Soc., 2018. https://doi.org/10.1090/jams/876
  • P. X. Gallagher, On the distribution of primes in short intervals, Mathematika, 1976. https://doi.org/10.1112/S0025579300016442
  • E. Bombieri, On the large sieve, Mathematika, 1965. https://doi.org/10.1112/S0025579300005313
  • R. A. Rankin, The difference between consecutive prime numbers, J. London Math. Soc., 1938. https://doi.org/10.1112/jlms/s1-13.4.242
2 thms1 active userReviewed
Captain: wurtle

An asymptotic formula for the number of totientsResearch Paper

Motivation

Euler's totient φ(n)\varphi(n)φ(n) counts the integers in {1,…,n}\{1,\dots,n\}{1,…,n} coprime to nnn. Many integers share a totient, and most integers are not totients at all, so counting the distinct values of φ\varphiφ is much harder than counting integers with a given factorization. Let

V={φ(n):n≥1},V(x)=#{v∈V:v≤x}.\mathcal V=\{\varphi(n):n\ge1\},\qquad V(x)=\#\{v\in\mathcal V: v\le x\}.V={φ(n):n≥1},V(x)=#{v∈V:v≤x}.

The size of V(x)V(x)V(x) was studied by Pillai, Erdős, Hall, Pomerance, Maier and Ford over most of the twentieth century; Ford's 1998 estimate determines V(x)V(x)V(x) up to a bounded multiplicative factor but leaves open whether V(x)V(x)V(x) has an asymptotic equivalent, and Erdős and Hall's question whether V(cx)/V(x)→cV(cx)/V(x)\to cV(cx)/V(x)→c.

This mission asks for a formal proof of the explicit asymptotic formula and the Erdős–Hall regular-variation property, as stated in an OpenAI preprint dated September 25, 2026 (source). The preprint has not been peer reviewed and its claims have not been independently verified; on the platform the Lean goal is open.

Background

  • 1929 — Pillai proves that totients have density zero (Bull. AMS 35, 1929).
  • 1935 — Erdős shows V(x)≪εx/(log⁡x)1−εV(x)\ll_\varepsilon x/(\log x)^{1-\varepsilon}V(x)≪ε​x/(logx)1−ε via the normal number of prime factors of p−1p-1p−1 (Q. J. Math. 1935); later lower bounds use semiprimes (1945).
  • 1976 — Erdős and Hall obtain a lower factor exp⁡{a(log⁡3x)2}\exp\{a(\log_3x)^2\}exp{a(log3​x)2} and ask whether V(cx)/V(x)→cV(cx)/V(x)\to cV(cx)/V(x)→c (Mathematika 1976).
  • 1986–1988 — Pomerance brings the upper bound to the same scale (Acta Arith. 1986); Maier and Pomerance determine the leading constant C0=0.8178…C_0=0.8178\ldotsC0​=0.8178… in V(x)=xlog⁡xexp⁡{(C0+o(1))(log⁡3x)2}V(x)=\frac{x}{\log x}\exp\{(C_0+o(1))(\log_3x)^2\}V(x)=logxx​exp{(C0​+o(1))(log3​x)2} (Acta Arith. 1988).
  • 1998 — Ford determines V(x)V(x)V(x) up to a bounded factor and proves V(cx)−V(x)≍cV(x)V(cx)-V(x)\asymp_cV(x)V(cx)−V(x)≍c​V(x) (Ramanujan J. 1998).
  • September 2026 — The OpenAI preprint claims an explicit asymptotic equivalent and V(cx)/V(x)→cV(cx)/V(x)\to cV(cx)/V(x)→c (Theorem 2.1, p. 4).

Setting

Logarithms are natural and log⁡j\log_jlogj​ is the jjj-fold iterate. For j≥1j\ge1j≥1 let aj=(j+1)log⁡(j+1)−jlog⁡j−1a_j=(j+1)\log(j+1)-j\log j-1aj​=(j+1)log(j+1)−jlogj−1, let ρ∈(0,1)\rho\in(0,1)ρ∈(0,1) be the unique root of ∑j≥1ajρj=1\sum_{j\ge1}a_j\rho^j=1∑j≥1​aj​ρj=1, and set

λ=log⁡(1/ρ),γ=(∑j≥1jajρj)−1,g0=1,  gj=∑d=1jadgj−d.\lambda=\log(1/\rho),\qquad \gamma=\Bigl(\sum_{j\ge1}ja_j\rho^j\Bigr)^{-1},\qquad g_0=1,\ \ g_j=\sum_{d=1}^ja_dg_{j-d}.λ=log(1/ρ),γ=(j≥1∑​jaj​ρj)−1,g0​=1,  gj​=d=1∑j​ad​gj−d​.

For large xxx put B=log⁡2xB=\log_2xB=log2​x, m=⌊(log⁡B−log⁡2B)/λ⌋m=\lfloor(\log B-\log_2B)/\lambda\rfloorm=⌊(logB−log2​B)/λ⌋, the phase θ=(log⁡B−log⁡2B)/λ−m∈[0,1)\theta=(\log B-\log_2B)/\lambda-m\in[0,1)θ=(logB−log2​B)/λ−m∈[0,1), and Gm=Bm/(m!∏i≤mgi)G_m=B^m/(m!\prod_{i\le m}g_i)Gm​=Bm/(m!∏i≤m​gi​); the factor xlog⁡xGm\frac{x}{\log x}G_mlogxx​Gm​ is Ford's counting scale.

For each HHH the preprint defines an explicit arithmetic coefficient AH(f;s)A_H(f;s)AH​(f;s), s∈[0,1)s\in[0,1)s∈[0,1), from a finite set of "tail witnesses" (tuples of primes QhQ_hQh​, P≤h<HP\le h<HP≤h<H, and a cofactor aaa, subject to explicit size and recurrence constraints, P=⌊log⁡log⁡H⌋P=\lfloor\log\log H\rfloorP=⌊loglogH⌋) by inclusion–exclusion over witnesses with a common totient ddd, weighted by f(ℓ(d)/d)/df(\ell(d)/d)/df(ℓ(d)/d)/d (formula (2.8), p. 5). Here ℓ(v)=min⁡{n≥1:φ(n)=v}\ell(v)=\min\{n\ge1:\varphi(n)=v\}ℓ(v)=min{n≥1:φ(n)=v} is the least preimage, and A(f;s)=lim⁡H→∞AH(f;s)A(f;s)=\lim_{H\to\infty}A_H(f;s)A(f;s)=limH→∞​AH​(f;s) when the limit exists. The coefficient is defined without reference to VVV.

Formalization targets

Milestone: nonnegativity of the approximants (Theorem 2.1, p. 4)

AH(1;s)≥0A_H(1;s)\ge0AH​(1;s)≥0 for s∈[0,1)s\in[0,1)s∈[0,1).

Goal: Theorem 2.1 (p. 4)

AH(1;⋅)→A(1;⋅)A_H(1;\cdot)\to A(1;\cdot)AH​(1;⋅)→A(1;⋅) uniformly on [0,1)[0,1)[0,1), with 0<inf⁡sA(1;s)≤sup⁡sA(1;s)<∞0<\inf_sA(1;s)\le\sup_sA(1;s)<\infty0<infs​A(1;s)≤sups​A(1;s)<∞, and

V(x)∼xlog⁡x Gm A(1;θ),V(cx)V(x)⟶c(c>0 fixed).V(x)\sim\frac{x}{\log x}\,G_m\,A(1;\theta),\qquad \frac{V(cx)}{V(x)}\longrightarrow c\quad(c>0\ \text{fixed}).V(x)∼logxx​Gm​A(1;θ),V(x)V(cx)​⟶c(c>0 fixed).

Further milestones: least preimages (Theorem 2.2, p. 6)

For k≥1k\ge1k≥1 let Nk(x)=#{v∈V:v≤x, kx<ℓ(v)≤(k+1)x}N_k(x)=\#\{v\in\mathcal V:v\le x,\ kx<\ell(v)\le(k+1)x\}Nk​(x)=#{v∈V:v≤x, kx<ℓ(v)≤(k+1)x} and fk(r)=min⁡{1,k+1r}−min⁡{1,kr}f_k(r)=\min\{1,\tfrac{k+1}r\}-\min\{1,\tfrac kr\}fk​(r)=min{1,rk+1​}−min{1,rk​}. Then AH(fk;⋅)A_H(f_k;\cdot)AH​(fk​;⋅) converges uniformly and Nk(x)=xlog⁡xGm(A(fk;θ)+o(1))N_k(x)=\frac{x}{\log x}G_m(A(f_k;\theta)+o(1))Nk​(x)=logxx​Gm​(A(fk​;θ)+o(1)); if some totient ddd has ℓ(d)>kd\ell(d)>kdℓ(d)>kd then inf⁡sA(fk;s)>0\inf_sA(f_k;s)>0infs​A(fk​;s)>0 and Nk(x)≍V(x)N_k(x)\asymp V(x)Nk​(x)≍V(x), and otherwise Nk≡0N_k\equiv0Nk​≡0 and A(fk;⋅)≡0A(f_k;\cdot)\equiv0A(fk​;⋅)≡0. The positive alternative holds for k=1,2k=1,2k=1,2.

Significance

The result itself. The formula replaces Ford's bounded uncertainty by an explicit function of the phase θ\thetaθ, built from finite arithmetic data, and answers the Erdős–Hall question: VVV is regularly varying of index 111. Theorem 2.2 answers, in weighted form, Erdős's question on how least preimages are distributed in intervals (kx,(k+1)x](kx,(k+1)x](kx,(k+1)x], reducing it to the existence of a "seed" totient with ℓ(d)>kd\ell(d)>kdℓ(d)>kd. Whether such seeds exist for every kkk (equivalently, whether ℓ(d)/d\ell(d)/dℓ(d)/d is unbounded) is not settled by the preprint.

Formalizing it. This is analytic number theory at full strength: Ford's structure theorems for totient preimages, sieve bounds for two or three linear forms in shifted primes, simplex volume computations and an inclusion–exclusion limit. Mathlib has the totient and the prime number theorem in some forms but not these sieve and distribution results. The definitions in this mission (the renewal root ρ\rhoρ, the witnesses, AHA_HAH​) are explicit and can be checked independently of any proof.

Difficulty

Counting integers nnn with a typical factorization is a volume computation, but V(x)V(x)V(x) counts values, and different nnn can have the same totient. The preprint must show that, outside a negligible set, distinct long prime prefixes give distinct values (Proposition 5.1, p. 22, and Proposition 5.3, p. 27), which needs a uniform comparison estimate for products of shifted primes (Proposition 4.2, p. 17), while short discrete tails that may collide are kept exactly and handled by inclusion–exclusion (Lemma 6.4, p. 30). The limits are taken in a specific order (x→∞x\to\inftyx→∞ with HHH fixed, then H→∞H\to\inftyH→∞), and no continuity of s↦A(1;s)s\mapsto A(1;s)s↦A(1;s) is available, so all errors must be uniform in the phase.

Formalization scope

  • IsTotient v means v=φ(n)v=\varphi(n)v=φ(n) for some n≥1n\ge1n≥1; V x counts totients in {1,…,⌊x⌋}\{1,\dots,\lfloor x\rfloor\}{1,…,⌊x⌋}; ell v is Nat.find of the least preimage (junk value 000 for non-totients, never used on them).
  • rho is the sInf of roots in (0,1)(0,1)(0,1) of ∑j≥0aj+1zj+1=1\sum_{j\ge0}a_{j+1}z^{j+1}=1∑j≥0​aj+1​zj+1=1; the root is unique, so this is the source's ρ\rhoρ.
  • AH H f s is formula (2.8) with finsum over totients ddd and over nonempty finite sets TTT of witnesses with φ(w)=d\varphi(w)=dφ(w)=d; the witness set is finite for each HHH, so the finsums are genuine finite sums. A f s is limUnder atTop; the goal asserts uniform convergence, so the junk value is never used.
  • mainTerm x = x / log x * G x (m x) * A 1 (theta x); asymptotic equivalence is Tendsto (V x / mainTerm x) atTop (𝓝 1).
  • The milestone coefficient_nonnegative is stated for every HHH, while the source states it for sufficiently large HHH; for small HHH the witness set is empty or the inclusion–exclusion is still a probability, so this is a harmless strengthening.
  • companion_zero_case restates alternative (ii) of Theorem 2.2 in a separate definition file (TotientCompanionZero) with identical definitions.

Selected references

  • OpenAI, An asymptotic formula for the number of totients, OpenAI Math Release preprint, September 25, 2026. https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/An-asymptotic-formula-for-the-number-of-totients-September-25-2026/An-asymptotic-formula-for-the-number-of-totients-September-25-2026.pdf
  • S. S. Pillai, On some functions connected with φ(n), Bull. Amer. Math. Soc. 35 (1929), 832–836. https://www.ams.org/journals/bull/1929-35-06/S0002-9904-1929-04799-2/S0002-9904-1929-04799-2.pdf
  • P. Erdős, On the normal number of prime factors of p−1 and some related problems concerning Euler's φ-function, Q. J. Math. 6 (1935). https://doi.org/10.1093/qmath/os-6.1.205
  • P. Erdős, R. R. Hall, Distinct values of Euler's φ-function, Mathematika 23 (1976). https://doi.org/10.1112/S0025579300006100
  • C. Pomerance, On the distribution of the values of Euler's function, Acta Arith. 47 (1986). https://doi.org/10.4064/aa-47-1-63-70
  • H. Maier, C. Pomerance, On the number of distinct values of Euler's φ-function, Acta Arith. 49 (1988). https://doi.org/10.4064/aa-49-3-263-275
  • K. Ford, The distribution of totients, Ramanujan J. 2 (1998), 67–151; revised arXiv:1104.3264. https://arxiv.org/abs/1104.3264v2
2 thms1 active userReviewed
Captain: wurtle

A quadratic bound for Jacobsthal's functionResearch Paper

Motivation

For a positive integer nnn, Jacobsthal's function j(n)j(n)j(n) is the least mmm such that every run of mmm consecutive integers contains an integer coprime to nnn. Equivalently, j(n)−1j(n)-1j(n)−1 is the longest interval that can be covered by choosing one residue class modulo each prime divisor of nnn (the classes 0 mod p0\bmod p0modp shifted by the interval's start). Its maximum over integers with at most kkk prime divisors,

h(k)=max⁡{j(n): ω(n)≤k},h(k)=\max\{j(n):\ \omega(n)\le k\},h(k)=max{j(n): ω(n)≤k},

governs how long a stretch can be sieved out by kkk primes. It is linked to gaps between consecutive primes (long covered intervals produce large prime gaps, as in the Erdős–Rankin and Ford–Green–Konyagin–Maynard–Tao constructions) and to the limits of the linear sieve. Jacobsthal asked, and Erdős recorded, whether h(k)≪k2h(k)\ll k^2h(k)≪k2.

Background

  • 1960. Jacobsthal begins a series of papers on this function.
  • 1962. Erdős records Jacobsthal's question h(k)≪k2h(k)\ll k^2h(k)≪k2 and notes Brun's bound h(k)≪kC0h(k)\ll k^{C_0}h(k)≪kC0​ (doi:10.7146/math.scand.a-10523).
  • 1971. Iwaniec's error-term estimate for the linear sieve gives order k2log⁡2kk^2\log^2kk2log2k for the first kkk primes (doi:10.4064/aa-19-1-1-30).
  • 1977. Vaughan proves the uniform bound j(n)≪ω(n)2log⁡(2ω(n))j(n)\ll\omega(n)^2\log(2\omega(n))j(n)≪ω(n)2log(2ω(n)) and explains the exponent 2 by the linear sieve's square-root restriction (doi:10.1017/S0013091500026560).
  • 1978. Iwaniec proves h(k)≪k2log⁡2kh(k)\ll k^2\log^2kh(k)≪k2log2k for arbitrary prime sets (doi:10.1515/dema-1978-0121).
  • 2012. Hajdu and Saradha disprove Jacobsthal's primorial-extremality conjecture: j(P24)=234<236=h(24)j(P_{24})=234<236=h(24)j(P24​)=234<236=h(24) (doi:10.1090/S0025-5718-2012-02581-6).
  • 2015, 2019. Costello–Watts and Ziller compute bounds and exact values for small kkk (doi:10.1090/S0025-5718-2014-02896-2).
  • 2018. Ford, Green, Konyagin, Maynard and Tao give the lower bound j(Pk)≫k(log⁡k)2log⁡log⁡log⁡klog⁡log⁡kj(P_k)\gg k(\log k)^2\frac{\log\log\log k}{\log\log k}j(Pk​)≫k(logk)2loglogklogloglogk​ (doi:10.1090/jams/876).

The source of this mission is an OpenAI preprint dated September 25, 2026.

Setting

  • ω(n)\omega(n)ω(n) is the number of distinct prime divisors of nnn, with ω(1)=0\omega(1)=0ω(1)=0.
  • For n≥1n\ge1n≥1, j(n)j(n)j(n) is the least m≥1m\ge1m≥1 such that for every integer aaa, one of a,a+1,…,a+m−1a,a+1,\dots,a+m-1a,a+1,…,a+m−1 is coprime to nnn (note gcd⁡(0,n)=n\gcd(0,n)=ngcd(0,n)=n).
  • h(k)=sup⁡{j(n):n≥1, ω(n)≤k}h(k)=\sup\{j(n):n\ge1,\ \omega(n)\le k\}h(k)=sup{j(n):n≥1, ω(n)≤k} for k≥1k\ge1k≥1. All logarithms are natural.

Formalization targets

Milestone: quadratic bound (Jacobsthal's question)

∃C>0 ∀k≥1:h(k)≤C k2.\exists C>0\ \forall k\ge1:\quad h(k)\le C\,k^2.∃C>0 ∀k≥1:h(k)≤Ck2.

Goal: Theorem 1.1

∃C>0 ∀k≥1:h(k)≤C k2(log⁡log⁡(3k))2.\exists C>0\ \forall k\ge1:\quad h(k)\le C\,\frac{k^2}{(\log\log(3k))^2}.∃C>0 ∀k≥1:h(k)≤C(loglog(3k))2k2​.

Both are stated in Lean as the existence, for each kkk, of a length mmm satisfying IsJacobsthalBound k m with the displayed size bound. The goal OAI.Erdos970.Erdos970Final.erdos_970_iterated_log is open on the platform.

Significance

Theorem 1.1 answers Jacobsthal's question affirmatively, uniformly over all prime sets and interval positions, and removes the logarithmic losses in the bounds of Vaughan and Iwaniec, going slightly below the quadratic scale. It shows that the linear sieve can be pushed to its limiting parameter s=2s=2s=2, where the lower sieve function vanishes, by retaining a boundary contribution. The gap to the best lower bound (roughly k(log⁡k)2k(\log k)^2k(logk)2) remains large; Vaughan suggested j(n)≪εω(n)1+εj(n)\ll_\varepsilon\omega(n)^{1+\varepsilon}j(n)≪ε​ω(n)1+ε.

The result is proved in an OpenAI preprint, which has not been peer reviewed. No machine-checked proof exists. The constant CCC is not made explicit.

Difficulty

The linear sieve gives a lower bound for the number of uncovered integers only when the sieving range is below the square root of the interval length, which is exactly where the exponent 2 comes from; at the critical parameter the main term of the lower-bound sieve vanishes, so the standard argument yields nothing and a log⁡2k\log^2klog2k loss appears. One must keep the boundary term that the leading linear-sieve calculation discards, and then show that the actual prescribed residue classes do not deviate much from a reference calculation. Positivity of the reference calculation alone does not suffice: the comparison requires an inverse estimate for a witnessing edge of a decreasing-prime tree, variance bounds, and stopping-time counts for hard endpoints.

Formalization scope

  • IsJacobsthalBound k m: for every n : ℕ with 0 < n and n.primeFactors.card ≤ k, and every a : ℤ, some i < m has (a + i).natAbs.Coprime n.
  • JacobsthalQuadratic: ∃ C > 0, ∀ k > 0, ∃ m, IsJacobsthalBound k m ∧ m ≤ C k^2.
  • JacobsthalIteratedLog: the same with bound C k^2 / (log (log (3k)))^2; for k≥1k\ge1k≥1 the denominator is positive.
  • The two targets live in separate definition files that both define IsJacobsthalBound identically.

A complete development needs the fundamental lemma of the sieve, Buchstab-type functions of the linear sieve, prime number theorem estimates in short ranges and progressions, the additive large sieve, a lattice-point count on plane curves, and renewal-type arguments for a continuous path process. Contributions formalizing Theorem 1.2 (the quantitative covering estimate), Lemma 2.1 (fundamental lemma of the sieve), Proposition 6.3 (positive reference margin), Proposition 8.2 (inverse estimate for an edge) and Corollary 9.3 are welcome.

Selected references

  • OpenAI, A quadratic bound for Jacobsthal's function, preprint, September 25, 2026. https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/A-quadratic-bound-for-Jacobsthals-function-September-25-2026/paper.pdf
  • P. Erdős, On the integers relatively prime to n and on a number-theoretic function considered by Jacobsthal, Math. Scand., 1962. https://doi.org/10.7146/math.scand.a-10523
  • R. C. Vaughan, On the order of magnitude of Jacobsthal's function, Proc. Edinburgh Math. Soc., 1977. https://doi.org/10.1017/S0013091500026560
  • H. Iwaniec, On the problem of Jacobsthal, Demonstratio Math., 1978. https://doi.org/10.1515/dema-1978-0121
  • H. Iwaniec, On the error term in the linear sieve, Acta Arith., 1971. https://doi.org/10.4064/aa-19-1-1-30
  • L. Hajdu, N. Saradha, Disproof of a conjecture of Jacobsthal, Math. Comp., 2012. https://doi.org/10.1090/S0025-5718-2012-02581-6
  • K. Ford, B. Green, S. Konyagin, J. Maynard, T. Tao, Long gaps between primes, J. Amer. Math. Soc., 2018. https://doi.org/10.1090/jams/876
  • F. Costello, P. Watts, An upper bound on Jacobsthal's function, Math. Comp., 2015. https://doi.org/10.1090/S0025-5718-2014-02896-2
  • J. Friedlander, H. Iwaniec, Opera de Cribro, AMS, 2010. https://doi.org/10.1090/coll/057
2 thms1 active userReviewed
Captain: wurtle

Squarefree values of quartics and power-free values of polynomialsResearch Paper

Motivation: when is a polynomial value free of high powers?

An integer aaa is kkk-power-free if no prime power pkp^kpk divides it (zero is never kkk-power-free). For a fixed integer polynomial fff one expects f(n)f(n)f(n) to be kkk-power-free for a positive proportion of integers nnn, given by an Euler product of local densities, as soon as no prime kkkth power divides every value of fff. The heuristic is a sieve: discard the nnn with pk∣f(n)p^k\mid f(n)pk∣f(n) for each prime ppp. Small primes are handled by the Chinese remainder theorem; the problem lies with primes ppp larger than the range of nnn, where f(n)f(n)f(n) can be divisible by pkp^kpk only if it has an unusually large square-full part. The case k=d−2k=d-2k=d−2, where d=deg⁡fd=\deg fd=degf, is the first exponent left open by classical methods. Its best-known instance is the squarefreeness of n4+2n^4+2n4+2, singled out by Erdős in 1953 and again in his 1965 survey.

Timeline

  • 1933 — Ricci proves the density asymptotic when k≥dk\ge dk≥d (Rend. Circ. Mat. Palermo 57).
  • 1953 — Erdős proves infinitely many (d−1)(d-1)(d−1)-power-free values for d≥3d\ge3d≥3 and singles out the unresolved squarefreeness of n4+2n^4+2n4+2 (J. London Math. Soc.).
  • 1967 — Hooley obtains the asymptotic at exponent k=d−1k=d-1k=d−1 (Mathematika 14).
  • 1976 — Nair proves the asymptotic for k≥(2−12)dk\ge(\sqrt2-\tfrac12)dk≥(2​−21​)d, which reaches k=d−2k=d-2k=d−2 for d≥24d\ge24d≥24 (Mathematika 23).
  • 1998 — Granville shows that the abcabcabc conjecture implies the predicted squarefree density for every separable polynomial without a fixed square divisor (IMRN 1998).
  • 2006 — Heath-Brown's affine determinant method gives k≥(3d+2)/4k\ge(3d+2)/4k≥(3d+2)/4, reaching k=d−2k=d-2k=d−2 for d≥10d\ge10d≥10.
  • 2011 — Browning, combining this with Salberger's global determinant method, reaches k≥(3d+1)/4k\ge(3d+1)/4k≥(3d+1)/4, hence k=d−2k=d-2k=d−2 for d≥9d\ge9d≥9 (Arch. Math. 96); Xiao gives a published reproof (IMRN 2017).
  • 2013–2015 — Heath-Brown treats binomials xd+cx^d+cxd+c for k≥(5d+3)/9k\ge(5d+3)/9k≥(5d+3)/9 (Q. J. Math. 64); Reuss obtains a power-saving error at k=d−1k=d-1k=d−1 (Bull. LMS 47).
  • 2026 — An OpenAI preprint, Squarefree values of quartics and power-free values of polynomials (OpenAI Math Release, September 24, 2026), claims the case k=d−2k=d-2k=d−2 for all degrees 4≤d≤84\le d\le 84≤d≤8, including squarefree values of every admissible irreducible quartic. It has not been peer reviewed, and its proof is not formally verified.

Setting

Let f∈Z[x]f\in\mathbb Z[x]f∈Z[x] be irreducible over Q\mathbb QQ, of degree ddd, and let k≥2k\ge2k≥2. Define

ρf(q)=#{a∈Z/qZ: f(a)≡0(modq)},Sf,k(X)=#{1≤n≤X: f(n) is k-power-free}.\rho_f(q)=\#\{a\in\mathbb Z/q\mathbb Z:\ f(a)\equiv0\pmod q\},\qquad S_{f,k}(X)=\#\{1\le n\le X:\ f(n)\text{ is $k$-power-free}\}.ρf​(q)=#{a∈Z/qZ: f(a)≡0(modq)},Sf,k​(X)=#{1≤n≤X: f(n) is k-power-free}.

The local admissibility condition is ρf(pk)<pk\rho_f(p^k)<p^kρf​(pk)<pk for every prime ppp: no prime kkkth power divides all values of fff. The predicted density is

cf,k=∏p(1−ρf(pk)pk).c_{f,k}=\prod_p\Bigl(1-\frac{\rho_f(p^k)}{p^k}\Bigr).cf,k​=p∏​(1−pkρf​(pk)​).

Formalization targets

Goal: power-free values at exponent d−2d-2d−2 in every degree d≥4d\ge4d≥4 (Corollary 1.2)

Let f∈Z[x]f\in\mathbb Z[x]f∈Z[x] be irreducible over Q\mathbb QQ with d=deg⁡f≥4d=\deg f\ge4d=degf≥4, put k=d−2k=d-2k=d−2, and assume ρf(pk)<pk\rho_f(p^k)<p^kρf​(pk)<pk for every prime ppp. Then the Euler product converges,

cf,k>0,Sf,k(X)=cf,kX+of(X)(X→∞).c_{f,k}>0,\qquad S_{f,k}(X)=c_{f,k}X+o_f(X)\quad(X\to\infty).cf,k​>0,Sf,k​(X)=cf,k​X+of​(X)(X→∞).

For 4≤d≤84\le d\le 84≤d≤8 this is the paper's new Theorem 1.1; for d≥9d\ge9d≥9 it follows from Browning's theorem. Already the case d=4d=4d=4 (squarefree values of quartics such as n4+2n^4+2n4+2 and n4+1n^4+1n4+1) is new. The goal statement is published on the platform with status Open.

Significance

The result itself. The theorem closes the exponent k=d−2k=d-2k=d−2 for every degree, answering Erdős's question about n4+2n^4+2n4+2 and giving the first unconditional squarefree-density theorem for an arbitrary admissible irreducible quartic. No primitivity or sign condition on fff is required. The same large-prime estimate also gives densities for separable products and simultaneous power-freeness of several polynomials (Corollary 1.3).

Formalizing it. The statement is elementary, but its proof uses number-field factorization, the unit theorem, determinant methods for counting points on surfaces and curves, and explicit Hilbert-function computations. None of these components is machine-checked. A formal proof would certify a result that the literature had only reached conditionally (on abcabcabc) or in higher degrees. The finite-prime sieve and the deduction of the density from a large-prime tail bound are reusable for other power-free-value problems.

Difficulty

The sieve over primes p≤Xp\le Xp≤X is routine. The obstacle is the primes p>Xp>Xp>X: one must show that very few n∈(X,2X]n\in(X,2X]n∈(X,2X] have pk∣f(n)p^k\mid f(n)pk∣f(n) for some such ppp (Proposition 1.4, with a power saving X1−δX^{1-\delta}X1−δ). Counting solutions of f(n)=ypkf(n)=yp^kf(n)=ypk as integer points on the surface f(x)=yzkf(x)=yz^kf(x)=yzk with determinant methods succeeds only when ppp is large; in the intermediate range the point counts are too weak, and the existing determinant bounds stop exactly at k≥(3d+1)/4k\ge(3d+1)/4k≥(3d+1)/4.

Formalization scope

  • fff is a Polynomial ℤ whose image in Polynomial ℚ is irreducible, with natDegree ≥ 4; the exponent is f.natDegree - 2 (at least 222, so the natural-number subtraction is harmless).
  • PowerFree k a says no prime ppp has pk∣ap^k\mid apk∣a, so a=0a=0a=0 is not power-free, matching the source convention; negative values are allowed.
  • ρf(q)\rho_f(q)ρf​(q) counts a∈{0,…,q−1}a\in\{0,\dots,q-1\}a∈{0,…,q−1} with q∣f(a)q\mid f(a)q∣f(a); Sf,k(X)S_{f,k}(X)Sf,k​(X) counts 1≤n≤⌊X⌋1\le n\le\lfloor X\rfloor1≤n≤⌊X⌋ over real XXX.
  • The density constant is a tprod over Nat.Primes; the goal asserts Multipliable explicitly, so the constant is not a junk value, together with cf,k>0c_{f,k}>0cf,k​>0 and Sf,k(X)−cf,kX=o(X)S_{f,k}(X)-c_{f,k}X=o(X)Sf,k​(X)−cf,k​X=o(X).
  • No height or uniformity in fff is asserted, matching the source.
  • Needed infrastructure: algebraic number fields and ideal factorization, the unit theorem, Hensel lifting, determinant-method point counting, and an Euler-product sieve. The d≥9d\ge9d≥9 case also needs Browning's theorem (in Xiao's formulation), itself unformalized.

Selected references

  • G. Ricci, Ricerche aritmetiche sui polinomi, Rend. Circ. Mat. Palermo 57 (1933). https://doi.org/10.1007/BF03017586
  • P. Erdős, Arithmetical properties of polynomials, J. London Math. Soc. 28 (1953). https://doi.org/10.1112/jlms/s1-28.4.416
  • C. Hooley, On the power free values of polynomials, Mathematika 14 (1967). https://doi.org/10.1112/S002557930000797X
  • M. Nair, Power free values of polynomials, Mathematika 23 (1976). https://doi.org/10.1112/S0025579300008779
  • A. Granville, ABC allows us to count squarefrees, IMRN 1998. https://doi.org/10.1155/S1073792898000592
  • T. D. Browning, Power-free values of polynomials, Arch. Math. 96 (2011). https://doi.org/10.1007/s00013-011-0224-7
  • S. Y. Xiao, Power-free values of binary forms and the global determinant method, IMRN 2017. https://doi.org/10.1093/imrn/rnw165
  • D. R. Heath-Brown, Power-free values of polynomials, Q. J. Math. 64 (2013). https://doi.org/10.1093/qmath/har030
  • T. Reuss, Power-free values of polynomials, Bull. London Math. Soc. 47 (2015). https://doi.org/10.1112/blms/bdu116
  • OpenAI, Squarefree values of quartics and power-free values of polynomials, OpenAI Math Release preprint, September 24, 2026 (Theorem 1.1, p. 2; Corollary 1.2, p. 4). https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/Squarefree-values-of-quartics-and-power-free-values-of-polynomials-September-24-2026/manuscript.pdf
2 thms1 active userReviewed
Combinatorics·Captain: wurtle

The additive indecomposability of the primesResearch Paper

Motivation

Goldbach-type problems ask which sets are sumsets of primes. The inverse Goldbach problem, due to Ostmann (1956), reverses the question: can the set of primes itself, up to finitely many changes, be written as a sumset A+B={a+b:a∈A, b∈B}A+B=\{a+b:a\in A,\ b\in B\}A+B={a+b:a∈A, b∈B} with both AAA and BBB having at least two elements? Ostmann conjectured that it cannot: the primes are asymptotically additively indecomposable. The problem is a clean test of how much additive structure the primes can carry, and it connects sieve theory (the primes avoid one residue class modulo each prime) with inverse questions for the large sieve.

Background

  • 1954–1955. Hornfeck proves early restrictions on additive decompositions of the primes (doi:10.1007/BF01187376).
  • 1956. Ostmann formulates the conjecture in his treatise on additive number theory (doi:10.1007/978-3-662-11030-0).
  • 1964. Laffer and Mann show that a hypothetical decomposition must have two infinite summands (doi:10.2140/pjm.1964.14.547).
  • 1988–1996. Pomerance, Sárközy and Stewart, and Hofmann and Wolke, obtain sieve restrictions on the summands (doi:10.2140/pjm.1988.133.363, doi:10.1007/BF01189097).
  • 2001. Elsholtz combines the large and larger sieves to put both counting functions near the square-root scale and rules out decompositions into three nontrivial summands (doi:10.1112/S0025579300014406).
  • 2014–2016. Green and Harper show that an inverse large-sieve conjecture would imply Ostmann's conjecture (arXiv:1311.6176); Elsholtz and Harper sharpen the binary counting bounds (doi:10.1090/S0002-9947-2014-06384-8); Shao proves a finite ternary obstruction (doi:10.1353/ajm.2016.0038).
  • 2020–2026. Hanson, then Croot, Mao and Yip, and Croot, Mao, Pohoata and Yip prove partial inverse theorems for the large sieve and derive further necessary conditions on a hypothetical decomposition (doi:10.1017/S0305004118000518, arXiv:2510.08862, arXiv:2607.15311).

The source of this mission is an OpenAI preprint dated September 24, 2026.

Setting

Let N0={0,1,2,… }\mathbb N_0=\{0,1,2,\dots\}N0​={0,1,2,…} and let PPP be the set of positive primes. For A,B⊆N0A,B\subseteq\mathbb N_0A,B⊆N0​ the sumset is A+B={a+b:a∈A, b∈B}A+B=\{a+b:a\in A,\ b\in B\}A+B={a+b:a∈A, b∈B}. Two sets are asymptotically equal if their symmetric difference X△Y=(X∖Y)∪(Y∖X)X\triangle Y=(X\setminus Y)\cup(Y\setminus X)X△Y=(X∖Y)∪(Y∖X) is finite. A decomposition is nontrivial if ∣A∣≥2|A|\ge2∣A∣≥2 and ∣B∣≥2|B|\ge2∣B∣≥2; the trivial decompositions {0}+P\{0\}+P{0}+P are excluded.

Formalization targets

Goal: Theorem 1.1 (Ostmann's conjecture)

A,B⊆N0, ∣A∣≥2, ∣B∣≥2 ⟹ (A+B)△P is infinite.A,B\subseteq\mathbb N_0,\ |A|\ge2,\ |B|\ge2\ \Longrightarrow\ (A+B)\triangle P\ \text{is infinite}.A,B⊆N0​, ∣A∣≥2, ∣B∣≥2 ⟹ (A+B)△P is infinite.

Milestone: Theorem 2.3 (two infinite summands)

There are no infinite A,B⊆N0 with (A+B)△P finite.\text{There are no infinite }A,B\subseteq\mathbb N_0\text{ with }(A+B)\triangle P\text{ finite}.There are no infinite A,B⊆N0​ with (A+B)△P finite.

Theorem 2.3 is the core of the proof; Lemma 2.2 reduces Theorem 1.1 to it by a short sieve argument.

The goal OAI.Ostmann.inverseGoldbach is open on the platform.

Significance

Theorem 1.1 resolves Ostmann's conjecture. The conclusion controls both requirements of an eventual decomposition: if ∣A∣,∣B∣≥2|A|,|B|\ge2∣A∣,∣B∣≥2 and A+BA+BA+B contains every sufficiently large prime, then A+BA+BA+B contains infinitely many composite numbers. The proof does not go through the general inverse large-sieve conjecture of Green and Harper; it uses the simultaneous residue restrictions together with coverage of every large prime directly.

The result is proved in an OpenAI preprint, which has not been peer reviewed. No machine-checked proof exists. The statement is elementary, so the formal target is short; the difficulty is entirely in the proof.

Difficulty

Counting alone cannot work: sieve bounds put A(x)A(x)A(x) and B(x)B(x)B(x) near x\sqrt xx​, which is compatible with the lower bound A(x)B(x)≫x/log⁡xA(x)B(x)\gg x/\log xA(x)B(x)≫x/logx forced by covering the primes. The known necessary conditions (large intersections with quadratic images) fall short of the near-containment that Green and Harper's conditional route requires. The proof must turn the local information (modulo each prime ppp, the images of AAA and −B-B−B are disjoint) into a global contradiction: it rules out correlations with translated multiplicative characters of every order, compares a positive sumset statistic with its average over the primes, and handles residue indicators with no prescribed algebraic form via a finite-field comparison of binary trees. The paper runs to about 80 pages.

Formalization scope

  • primes = {n : ℕ | Nat.Prime n}; sumset A B is Mathlib's pointwise A + B on Set ℕ.
  • A.Nontrivial means AAA has two distinct elements.
  • InverseGoldbach asserts Set.Infinite (sumset A B ∆ primes); TwoInfiniteSummandsImpossible uses EventuallyPrimeSumset A B := ∃ N, ∀ n ≥ N, n ∈ A + B ↔ n.Prime, which is equivalent to a finite symmetric difference.
  • OAI.Ostmann.main is the same statement as the goal without the definition file and is included as a reference item.

A complete development needs the additive large sieve (Montgomery–Vaughan), Gallagher's larger sieve, Mertens-type estimates, character sums over finite fields including the quadratic large sieve, prime number theorems in progressions with the exceptional character, and Fourier analysis on Fp\mathbb F_pFp​. Contributions formalizing Lemma 2.1 (fixed shifts), Lemma 2.2 (finite summands), Lemma 2.4 (square-root bounds), Proposition 3.1, Corollary 4.2 (mixed-character decorrelation), Proposition 5.1 and Lemma 6.1 (tree comparison) are welcome.

Selected references

  • OpenAI, The additive indecomposability of the primes, preprint, September 24, 2026. https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/the-additive-indecomposability-of-the-primes-September-24-2026/paper.pdf
  • H.-H. Ostmann, Additive Zahlentheorie. Erster Teil, Springer, 1956. https://doi.org/10.1007/978-3-662-11030-0
  • W. B. Laffer, H. B. Mann, Decomposition of sets of group elements, Pacific J. Math., 1964. https://doi.org/10.2140/pjm.1964.14.547
  • C. Elsholtz, The inverse Goldbach problem, Mathematika, 2001. https://doi.org/10.1112/S0025579300014406
  • B. Green, A. J. Harper, Inverse questions for the large sieve, Geom. Funct. Anal., 2014. https://doi.org/10.1007/s00039-014-0288-1
  • C. Elsholtz, A. J. Harper, Additive decompositions of sets with restricted prime factors, Trans. Amer. Math. Soc., 2015. https://doi.org/10.1090/S0002-9947-2014-06384-8
  • X. Shao, On an inverse ternary Goldbach problem, Amer. J. Math., 2016. https://doi.org/10.1353/ajm.2016.0038
  • B. Hanson, Additive correlation and the inverse problem for the large sieve, Math. Proc. Cambridge Philos. Soc., 2020. https://doi.org/10.1017/S0305004118000518
  • E. Croot, J. Mao, C. Pohoata, C. H. Yip, A sharp inverse theorem for the quadratic large sieve, preprint, 2026. https://arxiv.org/abs/2607.15311
  • H. L. Montgomery, R. C. Vaughan, The large sieve, Mathematika, 1973. https://doi.org/10.1112/S0025579300004708
4 thms1 active userReviewed
Probability·Captain: wurtle

The joint Dickman law for consecutive integersResearch Paper

Motivation: largest prime factors of neighbouring integers

Let P+(n)P^+(n)P+(n) be the largest prime factor of an integer n≥2n\ge2n≥2. The classical theory of smooth numbers (Dickman 1930, Ramaswami 1949, de Bruijn 1951) shows that log⁡P+(n)/log⁡n\log P^+(n)/\log nlogP+(n)/logn has a limiting distribution: the proportion of n≤Xn\le Xn≤X with P+(n)≤XaP^+(n)\le X^aP+(n)≤Xa tends to ρ(1/a)\rho(1/a)ρ(1/a), where ρ\rhoρ is the Dickman function. Multiplicative structure of nnn and of n+1n+1n+1 is expected to be independent, since consecutive integers share no prime factor, but proving independence of such "additive shifts" of multiplicative data is the core difficulty of the Chowla/Elliott circle of problems. Erdős and Pomerance (1978) asked whether P+(n)P^+(n)P+(n) and P+(n+1)P^+(n+1)P+(n+1) are asymptotically independent with Dickman marginals, and, as a consequence, whether P+(n)<P+(n+1)P^+(n)<P^+(n+1)P+(n)<P+(n+1) holds for exactly half of all nnn (a comparison question usually attributed to Erdős and Turán).

Timeline

  • 1930–1951 — Dickman, Ramaswami and de Bruijn establish the one-variable law #{n≤X:P+(n)≤Xa}/X→ρ(1/a)\#\{n\le X: P^+(n)\le X^a\}/X\to\rho(1/a)#{n≤X:P+(n)≤Xa}/X→ρ(1/a).
  • 1978 — Erdős and Pomerance formulate the joint independence problem, prove that each ordering of P+(n),P+(n+1)P^+(n),P^+(n+1)P+(n),P+(n+1) has lower natural density at least 0.00990.00990.0099, and show that P+(n)/P+(n+1)P^+(n)/P^+(n+1)P+(n)/P+(n+1) rarely lies in (X−δ,Xδ)(X^{-\delta},X^{\delta})(X−δ,Xδ) (Aequationes Math. 17 (1978)).
  • 2005 — de la Bretèche, Pomerance and Tenenbaum raise the lower density to 0.055440.055440.05544 (and 0.058660.058660.05866 via an observation of Fouvry).
  • 2017–2018 — Wang obtains 0.10630.10630.1063 and 0.13560.13560.1356.
  • 2018 — Teräväinen proves the joint Dickman law in logarithmic density, and logarithmic density 1/21/21/2 for the ordering (Forum Math. Sigma 6 (2018)).
  • 2019 — Tao and Teräväinen obtain the joint law for ordinary averages outside an exceptional set of scales of logarithmic density zero (Algebra Number Theory 13 (2019)).
  • 2021 — Wang proves the ordinary joint law conditionally on the Elliott–Halberstam conjecture for friable integers (J. Number Theory 223).
  • 2022 — Jiang, Lü and Wang prove averaged-over-shift versions (Adv. Math. 409).
  • 2025–2026 — Lü and Wang reach lower density 0.20170.20170.2017; Yang reaches 0.2800.2800.280 (arXiv:2607.16032); Tao and Teräväinen give a quantitative joint law outside exceptional scales (arXiv:2512.01739).
  • 2026 — An OpenAI preprint, The joint Dickman law for consecutive integers (OpenAI Math Release, September 24, 2026), claims the unconditional joint law in ordinary natural density at every scale. It has not been peer reviewed, and its proof is not formally verified.

Setting

For n≥2n\ge2n≥2, P+(n)P^+(n)P+(n) is the largest prime dividing nnn. The Dickman function ρ:[0,∞)→R\rho:[0,\infty)\to\mathbb Rρ:[0,∞)→R is the continuous function with

ρ(u)=1 (0≤u≤1),uρ′(u)=−ρ(u−1) (u>1),\rho(u)=1\ (0\le u\le1),\qquad u\rho'(u)=-\rho(u-1)\ (u>1),ρ(u)=1 (0≤u≤1),uρ′(u)=−ρ(u−1) (u>1),

equivalently ρ(u)=1−∫1uρ(t−1) dtt\rho(u)=1-\int_1^u \rho(t-1)\,\frac{dt}{t}ρ(u)=1−∫1u​ρ(t−1)tdt​ for u≥1u\ge1u≥1. For a property PPP of integers and real X>0X>0X>0, the natural density at scale XXX is

realDensity(P,X)=1X #{2≤n≤X: P(n)}.\mathrm{realDensity}(P,X)=\frac1X\,\#\{2\le n\le X:\ P(n)\}.realDensity(P,X)=X1​#{2≤n≤X: P(n)}.

Formalization targets

Goal: the joint Dickman law (Theorem 1.1)

For every fixed a,b∈(0,1)a,b\in(0,1)a,b∈(0,1),

lim⁡X→∞1X#{2≤n≤X: P+(n)≤na, P+(n+1)≤nb}=ρ(1/a) ρ(1/b),\lim_{X\to\infty}\frac1X\#\{2\le n\le X:\ P^+(n)\le n^a,\ P^+(n+1)\le n^b\}=\rho(1/a)\,\rho(1/b),X→∞lim​X1​#{2≤n≤X: P+(n)≤na, P+(n+1)≤nb}=ρ(1/a)ρ(1/b),

with XXX running over all reals and ordinary, unweighted counting. The goal statement is published on the platform with status Open.

Milestones: equal ordering densities (Corollary 1.2)

lim⁡X→∞1X#{2≤n≤X: P+(n)<P+(n+1)}=12,lim⁡X→∞1X#{2≤n≤X: P+(n+1)<P+(n)}=12.\lim_{X\to\infty}\frac1X\#\{2\le n\le X:\ P^+(n)<P^+(n+1)\}=\tfrac12, \qquad \lim_{X\to\infty}\frac1X\#\{2\le n\le X:\ P^+(n+1)<P^+(n)\}=\tfrac12 .X→∞lim​X1​#{2≤n≤X: P+(n)<P+(n+1)}=21​,X→∞lim​X1​#{2≤n≤X: P+(n+1)<P+(n)}=21​.

Significance

The result itself. Theorem 1.1 says that, in natural density, log⁡P+(n)/log⁡n\log P^+(n)/\log nlogP+(n)/logn and log⁡P+(n+1)/log⁡n\log P^+(n+1)/\log nlogP+(n+1)/logn are independent with Dickman marginals. It settles the Erdős–Pomerance independence question positively, removes the logarithmic weighting of Teräväinen's theorem and the exceptional scales of Tao–Teräväinen, and implies the Erdős–Turán comparison: because the limiting marginal is continuous, the product law gives no mass to the diagonal, so each strict ordering has density 1/21/21/2 (Corollary 1.2). Previous unconditional work only gave lower natural densities, never the existence of the density.

Formalizing it. The goal is a clean density statement about elementary objects, but its proof combines Matomäki–Radziwiłł short-interval estimates, sieve bounds, a divisor amplifier, graph comparison and cut-norm sampling. No part of this argument is machine-checked. Even the one-variable Dickman law (the marginal case) is not in Mathlib, and would be a reusable milestone in its own right.

Difficulty

Independence of nnn and n+1n+1n+1 is a binary correlation problem for multiplicative data, of the same nature as the two-point Chowla conjecture. Tao's entropy-decrement and logarithmic-averaging method handles such correlations only with weight 1/n1/n1/n, or at almost all scales; the step that fails for ordinary density is ruling out a positive correlation along a sparse sequence of scales. The indicator 1P+(n)≤na\mathbf 1_{P^+(n)\le n^a}1P+(n)≤na​ is also not multiplicative, so short-interval theorems for multiplicative functions do not apply to it directly.

Formalization scope

  • Nat.maxPrimeFac n (largest element of the prime factor list, a faithful backport of the Mathlib definition) represents P+(n)P^+(n)P+(n); its junk values at 0,10,10,1 are irrelevant since counting starts at n=2n=2n=2.
  • realDensity P X is #{n ∈ [2, ⌊X⌋] : P n} / X as a real number, and limits are Tendsto … atTop over real XXX, matching "the limit over all real XXX".
  • The thresholds are P+(n)≤naP^+(n)\le n^aP+(n)≤na with real powers (n:ℝ)^a, and the hypotheses 0<a<10<a<10<a<1, 0<b<10<b<10<b<1 are explicit.
  • ρ\rhoρ is constructed by iterating the delay integral equation stepApprox and evaluating the ⌈u⌉\lceil u\rceil⌈u⌉-th iterate at uuu; this agrees with the Dickman function on [0,∞)[0,\infty)[0,∞), which is the only range used (1/a,1/b>11/a,1/b>11/a,1/b>1). A wrong ρ\rhoρ would make the goal false, so this definition is part of what solvers should check.
  • Needed infrastructure: the one-variable Dickman law, Selberg–Delange and sieve estimates, short-interval mean values of multiplicative functions, and profinite/Haar-measure compactness arguments. Contributions formalizing the smooth-number marginal or the deduction of Corollary 1.2 from Theorem 1.1 are welcome.

Selected references

  • K. Dickman, On the frequency of numbers containing prime factors of a certain relative magnitude, Ark. Mat. Astr. Fys. 22A (1930).
  • N. G. de Bruijn, On the number of positive integers ≤x\le x≤x and free of prime factors >y>y>y, Proc. KNAW Ser. A 54 (1951). https://research.tue.nl/en/publications/on-the-number-of-positive-integers-leq-x-and-free-of-prime-factor/
  • P. Erdős and C. Pomerance, On the largest prime factors of nnn and n+1n+1n+1, Aequationes Math. 17 (1978), 311–321. https://www.renyi.hu/~p_erdos/1978-29.pdf
  • J. Teräväinen, On binary correlations of multiplicative functions, Forum Math. Sigma 6 (2018), e10. https://doi.org/10.1017/fms.2018.10
  • T. Tao and J. Teräväinen, The structure of correlations of multiplicative functions at almost all scales, with applications to the Chowla and Elliott conjectures, Algebra Number Theory 13 (2019). https://doi.org/10.2140/ant.2019.13.2103
  • K. Matomäki and M. Radziwiłł, Multiplicative functions in short intervals, Ann. of Math. 183 (2016). https://doi.org/10.4007/annals.2016.183.3.6
  • T. Tao and J. Teräväinen, Quantitative correlations and some problems on prime factors of consecutive integers, preprint (2026). https://arxiv.org/abs/2512.01739
  • OpenAI, The joint Dickman law for consecutive integers, OpenAI Math Release preprint, September 24, 2026 (Theorem 1.1 and Corollary 1.2, p. 2). https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/The-joint-Dickman-law-for-consecutive-integers-September-24-2026/paper.pdf
4 thms1 active userReviewed
Discrete GeometryTheoretical Computer Science·Captain: mikedeng1

On Lattices, Learning with Errors, Random Linear Codes, and Cryptography 6: The Smoothing Parameter Satisfies η_ε(L) ≥ √(ln(1/ε)/π)/λ₁(L*) ≥ √(ln(1/ε)/π)·λ_n(L)/nResearch Paper

Motivation

The learning with errors (LWE) problem underlies much of post-quantum public-key cryptography, and its hardness rests on Regev's reduction from worst-case lattice problems to LWE (Regev, J. ACM 2009). Every step of that reduction is calibrated by the smoothing parameter ηϵ(L)\eta_\epsilon(L)ηϵ​(L) of Micciancio and Regev (SIAM J. Comput. 2007): the Gaussian width above which a discrete Gaussian on a lattice behaves like a continuous one. The approximation factors of the reduction are stated in terms of ηϵ(L)\eta_\epsilon(L)ηϵ​(L), and they are converted into factors for the standard lattice problems (GapSVP, SIVP) by comparing ηϵ(L)\eta_\epsilon(L)ηϵ​(L) with the successive minima of LLL and of its dual.

Upper bounds on ηϵ(L)\eta_\epsilon(L)ηϵ​(L) (Lemmas 2.11 and 2.12 of the paper, from Micciancio–Regev) say the smoothing parameter is not too large. Claim 2.13 is the matching lower bound: the smoothing parameter cannot be much smaller than 1/λ1(L∗)1/\lambda_1(L^*)1/λ1​(L∗), and hence than λn(L)/n\lambda_n(L)/nλn​(L)/n. The second comparison goes through Banaszczyk's transference theorem (Banaszczyk, Math. Ann. 296 (1993)), 1≤λ1(L)λn(L∗)≤n1 \le \lambda_1(L)\lambda_n(L^*) \le n1≤λ1​(L)λn​(L∗)≤n, which relates the geometry of a lattice to that of its dual.

This mission formalizes Claim 2.13 from the published J. ACM article (Article 34, 2009), together with the steps of its proof and the transference theorem it cites. The paper's main theorem, Theorem 3.1, is a quantum reduction about efficient algorithms; it is outside this series of missions.

Setting

Work in Rn\mathbb{R}^nRn, n≥1n \ge 1n≥1, with the Euclidean norm ∥⋅∥\|\cdot\|∥⋅∥ and inner product ⟨⋅,⋅⟩\langle\cdot,\cdot\rangle⟨⋅,⋅⟩. A lattice L⊂RnL \subset \mathbb{R}^nL⊂Rn is the set of integer combinations of nnn linearly independent vectors. Its dual is

L∗={y∈Rn:⟨x,y⟩∈Z for all x∈L},L^* = \{y \in \mathbb{R}^n : \langle x, y\rangle \in \mathbb{Z} \text{ for all } x \in L\},L∗={y∈Rn:⟨x,y⟩∈Z for all x∈L},

again a lattice, with (L∗)∗=L(L^*)^* = L(L∗)∗=L.

The successive minima used here are λ1(L)\lambda_1(L)λ1​(L), the length of a shortest nonzero vector of LLL, and λn(L)\lambda_n(L)λn​(L), the least rrr such that LLL contains nnn linearly independent vectors of length at most rrr.

For s>0s > 0s>0 the Gaussian function is ρs(x)=exp⁡(−π∥x/s∥2)\rho_s(x) = \exp(-\pi\|x/s\|^2)ρs​(x)=exp(−π∥x/s∥2) (Eq. (4)), and for a countable set AAA, ρs(A)=∑x∈Aρs(x)\rho_s(A) = \sum_{x\in A}\rho_s(x)ρs​(A)=∑x∈A​ρs​(x). In particular ρ1/s(y)=exp⁡(−πs2∥y∥2)\rho_{1/s}(y) = \exp(-\pi s^2\|y\|^2)ρ1/s​(y)=exp(−πs2∥y∥2).

For ϵ>0\epsilon > 0ϵ>0 the smoothing parameter ηϵ(L)\eta_\epsilon(L)ηϵ​(L) is the smallest sss such that ρ1/s(L∗∖{0})≤ϵ\rho_{1/s}(L^*\setminus\{0\}) \le \epsilonρ1/s​(L∗∖{0})≤ϵ (Definition 2.10).

Formalization targets

Goal: Claim 2.13 (p. 34:20)

For any lattice LLL and any ϵ>0\epsilon > 0ϵ>0,

ηϵ(L)  ≥  ln⁡1/ϵπ⋅1λ1(L∗)  ≥  ln⁡1/ϵπ⋅λn(L)n.\eta_\epsilon(L) \;\ge\; \sqrt{\frac{\ln 1/\epsilon}{\pi}}\cdot\frac{1}{\lambda_1(L^*)} \;\ge\; \sqrt{\frac{\ln 1/\epsilon}{\pi}}\cdot\frac{\lambda_n(L)}{n}.ηϵ​(L)≥πln1/ϵ​​⋅λ1​(L∗)1​≥πln1/ϵ​​⋅nλn​(L)​.

Both inequalities of the chain are part of the goal. The asymptotic "In particular" sentence of the claim (ϵ(n)=o(1)\epsilon(n) = o(1)ϵ(n)=o(1), large enough nnn) is not.

Milestones, in attack order

  1. The remark after Definition 2.10 (p. 34:19). The map s↦ρ1/s(L∗∖{0})s \mapsto \rho_{1/s}(L^*\setminus\{0\})s↦ρ1/s​(L∗∖{0}) is continuous and strictly decreasing on (0,∞)(0,\infty)(0,∞), tends to ∞\infty∞ as s→0s \to 0s→0 and to 000 as s→∞s \to \inftys→∞, and ϵ↦ηϵ(L)\epsilon \mapsto \eta_\epsilon(L)ϵ↦ηϵ​(L) is its inverse; in particular ρ1/ηϵ(L)(L∗∖{0})=ϵ\rho_{1/\eta_\epsilon(L)}(L^*\setminus\{0\}) = \epsilonρ1/ηϵ​(L)​(L∗∖{0})=ϵ.
  2. The display of the proof of Claim 2.13 (p. 34:20). For s=ηϵ(L)s = \eta_\epsilon(L)s=ηϵ​(L) and v∈L∗v \in L^*v∈L∗ of length λ1(L∗)\lambda_1(L^*)λ1​(L∗),
ϵ=ρ1/s(L∗∖{0})≥ρ1/s(v)=exp⁡(−π(sλ1(L∗))2).\epsilon = \rho_{1/s}(L^*\setminus\{0\}) \ge \rho_{1/s}(v) = \exp\bigl(-\pi(s\lambda_1(L^*))^2\bigr).ϵ=ρ1/s​(L∗∖{0})≥ρ1/s​(v)=exp(−π(sλ1​(L∗))2).
  1. Lemma 2.3, Banaszczyk's transference theorem (p. 34:18). For any nnn-dimensional lattice LLL,
1≤λ1(L)⋅λn(L∗)≤n.1 \le \lambda_1(L)\cdot\lambda_n(L^*) \le n .1≤λ1​(L)⋅λn​(L∗)≤n.

Significance

The result. Claim 2.13 shows that the smoothing parameter for a negligible ϵ\epsilonϵ exceeds every constant multiple of 1/λ1(L∗)1/\lambda_1(L^*)1/λ1​(L∗) and of λn(L)/n\lambda_n(L)/nλn​(L)/n. Together with the upper bound ηϵ(L)≤ln⁡(2n(1+1/ϵ))/π λn(L)\eta_\epsilon(L) \le \sqrt{\ln(2n(1+1/\epsilon))/\pi}\,\lambda_n(L)ηϵ​(L)≤ln(2n(1+1/ϵ))/π​λn​(L) of Lemma 2.12, it locates ηϵ(L)\eta_\epsilon(L)ηϵ​(L) within a polynomial factor of λn(L)\lambda_n(L)λn​(L). This is what lets the reduction's guarantees, phrased in ηϵ(L)\eta_\epsilon(L)ηϵ​(L), be read as approximation factors for SIVP and GapSVP. The transference theorem is used throughout the geometry of numbers and in lattice-based cryptography to pass between a lattice and its dual.

Formalizing it. The claim and its proof are classical and short, but neither is machine-checked. The mission produces formal definitions of the dual lattice, the successive minima λ1\lambda_1λ1​, λn\lambda_nλn​ and the smoothing parameter on EuclideanSpace ℝ (Fin n), a proof that Definition 2.10 is well posed, and a statement of Banaszczyk's transference theorem. The upper bound of the transference theorem is a substantial result in its own right (the paper cites it without proof), and a formal proof of it would be reusable well beyond this mission.

Difficulty

The first inequality of the goal is elementary once the smoothing parameter is known to be attained, with ρ1/η(L∗∖{0})=ϵ\rho_{1/\eta}(L^*\setminus\{0\}) = \epsilonρ1/η​(L∗∖{0})=ϵ exactly. That step is not a formality: it needs the continuity and strict monotonicity of an infinite lattice sum in the scale parameter, and the fact that a shortest nonzero dual vector exists, both of which rest on the discreteness of L∗L^*L∗.

The second inequality is a single line in the paper, "by Lemma 2.3", but it uses the upper bound of Banaszczyk's theorem, applied to the dual lattice. The easy lower bound 1≤λ1(L)λn(L∗)1 \le \lambda_1(L)\lambda_n(L^*)1≤λ1​(L)λn​(L∗) does not suffice, and a Minkowski-type argument gives a bound worse than linear in nnn. Applying the lemma to L∗L^*L∗ also needs L∗L^*L∗ to be a lattice with dual LLL.

Formalization scope

  • Rn\mathbb{R}^nRn is EuclideanSpace ℝ (Fin n). A lattice is L : Submodule ℤ _ with [DiscreteTopology L] [IsZLattice ℝ L]. The dual is LinearMap.BilinForm.dualSubmodule (innerₗ _) L.
  • Every theorem assumes 0<n0 < n0<n: the paper's lattices are nnn-dimensional with n≥1n \ge 1n≥1. This is the only added hypothesis.
  • Gaussian sums are real tsums. They are summable over discrete subgroups, so no summability hypotheses are added.
  • ηϵ(L)\eta_\epsilon(L)ηϵ​(L), λ1\lambda_1λ1​ and λn\lambda_nλn​ are infima (sInf). The paper's "smallest" is the attainment proved in milestones 1 and 2, not built into the definition. λ1\lambda_1λ1​ and λn\lambda_nλn​ are defined for every Z\mathbb{Z}Z-submodule, so they apply to L∗L^*L∗ without extra instances.
  • For ϵ≥1\epsilon \ge 1ϵ≥1 the paper's ln⁡(1/ϵ)/π\sqrt{\ln(1/\epsilon)/\pi}ln(1/ϵ)/π​ is the square root of a non-positive number; Lean's Real.sqrt gives 000 there and the goal reduces to true statements. No hypothesis ϵ<1\epsilon < 1ϵ<1 is added, since the page says "any ϵ>0\epsilon > 0ϵ>0".
  • The goal is a conjunction of both inequalities of the chain, not only the outer comparison ηϵ(L)≥ln⁡(1/ϵ)/π λn(L)/n\eta_\epsilon(L) \ge \sqrt{\ln(1/\epsilon)/\pi}\,\lambda_n(L)/nηϵ​(L)≥ln(1/ϵ)/π​λn​(L)/n, which would be weaker. Lemma 2.3 states both bounds; stating only the easy lower bound would leave the goal's second inequality without its milestone.
  • No printed statement needed correction.

Contributions welcome: the attainment of λ1\lambda_1λ1​ and λn\lambda_nλn​ for IsZLattice (and for the dual), the identity (L∗)∗=L(L^*)^* = L(L∗)∗=L in this setting, continuity and monotonicity of Gaussian lattice sums, and above all Banaszczyk's transference theorem.

Selected references

  • O. Regev, On Lattices, Learning with Errors, Random Linear Codes, and Cryptography, J. ACM 56(6), Article 34, 2009. https://doi.org/10.1145/1568318.1568324
  • W. Banaszczyk, New bounds in some transference theorems in the geometry of numbers, Math. Ann. 296, 625–635, 1993. https://doi.org/10.1007/BF01445125
  • D. Micciancio, O. Regev, Worst-case to average-case reductions based on Gaussian measures, SIAM J. Comput. 37(1), 267–302, 2007. https://doi.org/10.1137/S0097539705447360
7 thms1 active userReviewed
🏆Completed
Captain: moona3k

Every Odd Number Greater Than 1 is the Sum of At Most 4401 PrimesResearch Paper

Motivation

This entry records a completed elementary result in the campaign on odd numbers as sums of primes: every odd natural number greater than 1 is a sum of at most 4401 primes. It illustrates how an additive density estimate can reduce the number of prime summands in a Schnirelmann argument.

Exact target

For every natural number nnn, if nnn is odd and 1<n1<n1<n, there is a multiset sss of primes with s.card≤4401s.card\le 4401s.card≤4401 and s.sum=ns.sum=ns.sum=n. Repeated primes are allowed. The bound applies to every such nnn, not only sufficiently large integers.

The goal references the existing proved 4401 theorem. Its statement is the campaign template instantiated with 4401.

Supporting results and proof route

The two supporting references are the density bound and Mann's theorem, both already proved.

Let B={(p−3)/2:p is an odd prime}B=\{(p-3)/2:p\text{ is an odd prime}\}B={(p−3)/2:p is an odd prime} and A=B+BA=B+BA=B+B. The density estimate gives σ(A)≥1/2200\sigma(A)\ge 1/2200σ(A)≥1/2200. Mann's theorem gives σ(hA)≥min⁡(1,hσ(A))\sigma(hA)\ge\min(1,h\sigma(A))σ(hA)≥min(1,hσ(A)), so h=1100h=1100h=1100 yields density at least 1/21/21/2. The sumset cover argument then produces 4400 odd prime summands, with one additional 3 to obtain the required parity. Explicit sums of 2s and 3s handle the remaining small and medium ranges. These steps are included in the accepted goal proof; they are not unfinished milestones.

Verification and attribution

All three referenced theorems have ACCEPTED proof submissions under the account moona3k, are marked Proved, and use Mathlib revision 0df444a360eaa60ab8c11dca51a86af692955474. No new Lean statement or duplicate theorem is introduced by this proposal.

The density theorem's published source credits an extraction from the accepted 6101 proof. Mann's theorem is the classical additive density theorem of H. B. Mann; the accepted formalization follows the Dyson transform presentation cited in its theorem record. This entry assembles those existing results into the 4401 bound.

Campaign context

The 4401 bound was an intermediate improvement on 6101. It is not the current campaign frontier: the campaign now includes a proved bound of 27. This proposal preserves the earlier result and its proof route without claiming a new literature result or a new record.

Odd numbers as sums of primes campaign

3 thms1 active userReviewed
🏆Completed
Captain: xuanji

Every Odd Number Greater Than 1 is the Sum of at Most 27 PrimesResearch Paper

Motivation

Schnirelmann showed around 1930, by elementary means, that some absolute constant kkk makes every integer n>1n > 1n>1 a sum of at most kkk primes. For odd nnn:

  • Schnirelmann (1930s): some finite kkk, by elementary methods.
  • Klimov, Pil'tai, Sheptitskaya (1972): 115115115; Vaughan (1977): 272727; Riesel–Vaughan (1983): 191919 for all integers. Vaughan's and Riesel–Vaughan's bounds use zero-based prime-counting estimates (Rosser–Schoenfeld).
  • Ramaré (1995): every even integer is a sum of at most six primes, so every odd n>1n > 1n>1 is a sum of at most seven. (Ann. Sc. Norm. Super. Pisa, 1995)
  • Tao (2014): at most five primes. (arXiv:1201.6656)
  • Helfgott (2013): every odd n>5n > 5n>5 is a sum of three primes. (arXiv:1312.7748)

The campaign's earlier values (100 001100\,001100001 down to 414141) came from Schnirelmann's method with every constant written out. The 414141 entry used the sharp singular-series weight K(s)=∏p∣s, p>2p−1p−2K(s) = \prod_{p \mid s,\, p > 2} \frac{p-1}{p-2}K(s)=∏p∣s,p>2​p−2p−1​ in a pointwise sieve bound, and its large range stopped near 393939 because the pointwise bound loses the spread of the singular series. This entry replaces that large range by Riesel and Vaughan's weighted argument, which divides out the singular series exactly, using Dirichlet characters and the large sieve. Rosser–Schoenfeld's zero-based bound is replaced throughout by Chebyshev's elementary ψ(x)≥0.9212x−5log⁡x+5\psi(x) \ge 0.9212x - 5\log x + 5ψ(x)≥0.9212x−5logx+5. No zeta- or LLL-function zero input is used, and the result matches Vaughan's 272727.

Setting

A representation of nnn as a sum of at most kkk primes is a finite multiset of primes summing to nnn with at most kkk elements counted with multiplicity. The Schnirelmann density of A⊆Z≥0A \subseteq \mathbb{Z}_{\ge 0}A⊆Z≥0​ is σ(A)=inf⁡N≥1∣A∩{1,…,N}∣/N\sigma(A) = \inf_{N \ge 1} |A \cap \{1, \dots, N\}|/Nσ(A)=infN≥1​∣A∩{1,…,N}∣/N (Mathlib: schnirelmannDensity).

Formalization target

Goal

∀n∈N,n odd, n>1  ⟹  ∃ s multiset of primes, ∣s∣≤27, ∑s=n.\forall n \in \mathbb{N},\quad n \text{ odd},\ n > 1 \implies \exists\, s \text{ multiset of primes},\ |s| \le 27,\ \textstyle\sum s = n.∀n∈N,n odd, n>1⟹∃s multiset of primes, ∣s∣≤27, ∑s=n.

This is the campaign template with the value 272727 filled in.

How the bound arises

Let B={(p−3)/2:p odd prime}B = \{(p-3)/2 : p \text{ odd prime}\}B={(p−3)/2:p odd prime} and A=B+BA = B + BA=B+B. We show σ(A)≥1/13\sigma(A) \ge 1/13σ(A)≥1/13, then conclude with Mann's theorem. Let r(s)r(s)r(s) be the number of ordered pairs of odd primes with p+q=sp + q = sp+q=s. Since #(A∩[1,N])+1≥#{s≤2N+6:r(s)>0}\#(A \cap [1,N]) + 1 \ge \#\{s \le 2N+6 : r(s) > 0\}#(A∩[1,N])+1≥#{s≤2N+6:r(s)>0}, it suffices to show #{s≤y:r(s)>0}≥y/25\#\{s \le y : r(s) > 0\} \ge y/25#{s≤y:r(s)>0}≥y/25 for large yyy. Write L=log⁡yL = \log yL=logy and C=2∏p>2(1−(p−1)−2)≤1.3217C = 2\prod_{p>2}(1 - (p-1)^{-2}) \le 1.3217C=2∏p>2​(1−(p−1)−2)≤1.3217 for the twin-prime constant.

  1. Chebyshev's constant a≈0.9212a \approx 0.9212a≈0.9212. For x≥30x \ge 30x≥30, ψ(x)≥ax−5log⁡x+5\psi(x) \ge ax - 5\log x + 5ψ(x)≥ax−5logx+5. Through B⊆AB \subseteq AB⊆A this covers L<23L < 23L<23.
  2. Small-shift range (Riesel–Vaughan 1983, Lemma 8), 23≤L≤30023 \le L \le 30023≤L≤300. With the first 150150150 odd primes as shifts and Siebert's prime-pair bound 8C K(d) x/log⁡2x8C\,K(d)\,x/\log^2 x8CK(d)x/log2x (platform theorem TaoFivePrimes.siebert_prime_pair_bound), Cauchy–Schwarz gives #{s≤y:r(s)>0}≥y/25\#\{s \le y : r(s) > 0\} \ge y/25#{s≤y:r(s)>0}≥y/25. The kernel sum ∑K(p1−p2)≤19496\sum K(p_1 - p_2) \le 19496∑K(p1​−p2​)≤19496 is a finite computation.
  3. Large range (Riesel–Vaughan 1983, §8), L≥300L \ge 300L≥300. Weight each nnn by w(n)=∏p∣n, p>2p−2p−1w(n) = \prod_{p \mid n,\, p > 2} \frac{p-2}{p-1}w(n)=∏p∣n,p>2​p−1p−2​, which cancels the singular series. Then #{s:r(s)>0}≥∑r(n)w(n)/max⁡r(n)w(n)\#\{s : r(s) > 0\} \ge \sum r(n) w(n) / \max r(n) w(n)#{s:r(s)>0}≥∑r(n)w(n)/maxr(n)w(n). The weighted sum is bounded below through Dirichlet characters modulo odd ddd, Gauss sums and the platform's weighted large sieve (MVSieve.primitive_character_large_sieve, MVSieve.large_sieve_weight_lower), with Chebyshev's bound in place of Rosser–Schoenfeld. This gives y/25y/25y/25 with room to spare.
  4. Mann's theorem turns 13 σ(A)≥113\,\sigma(A) \ge 113σ(A)≥1 into 13A=Z≥013A = \mathbb{Z}_{\ge 0}13A=Z≥0​. So every odd n≥81n \ge 81n≥81 is a sum of 262626 odd primes plus one 333; odd 55≤n<8155 \le n < 8155≤n<81 use twos and threes to make exactly 272727, and smaller nnn use one 333 and twos. Hence K=2⋅13+1=27K = 2 \cdot 13 + 1 = 27K=2⋅13+1=27.

Significance

The argument reaches Vaughan's 272727 with no zeros of ζ\zetaζ or LLL-functions and no prime number theorem. New reusable components:

  1. Riesel and Vaughan's singular-series-weighted large range, formalized with an elementary Chebyshev bound.
  2. The Riesel–Vaughan small-shift range driven by Siebert's bound, down to density 1/251/251/25.

Formalization scope

The Lean statement is the campaign template verbatim with 272727 in place of the value. The proof imports two platform theorems: RV27.middle_range (the small-shift range, 23≤log⁡n≤30023 \le \log n \le 30023≤logn≤300) and RV27.large_range (log⁡n≥300\log n \ge 300logn≥300), and Schnir.basis_of_density (Mann's theorem). Those rest on TaoFivePrimes.siebert_prime_pair_bound, the PrimePairSieve nodes and the MVSieve large-sieve nodes.

Selected references

  • H. Riesel, R. C. Vaughan, On sums of primes, Ark. Mat. 21 (1983), 45–74.
  • R. C. Vaughan, On the estimation of Schnirelman's constant, J. Reine Angew. Math. 290 (1977), 93–108.
  • H. L. Montgomery, R. C. Vaughan, The large sieve, Mathematika 20 (1973), 119–134.
  • H.-E. Siebert, Montgomery's weighted sieve for dimension two, Monatsh. Math. 82 (1976), 327–336.
  • P. Pollack, Not Always Buried Deep, AMS, 2009, Chapter 6, §6. https://www.pollack-math.net/NABDofficial.pdf
  • O. Ramaré, On Šnirel'man's constant, Ann. Sc. Norm. Super. Pisa (4) 22 (1995), 645–706.
  • T. Tao, Every odd number greater than 1 is the sum of at most five primes, Math. Comp. 83 (2014). https://arxiv.org/abs/1201.6656
  • Chebyshev's lower bound as formalized in PrimeNumberTheoremAnd (PrimeNumberTheoremAnd/IEANTN/Chebyshev.lean).
  • Explicit improvement of the 414141 constant (unpublished AI-assisted calculation, October 2026). Source of the constant 272727; not peer reviewed.
1 thm1 active userReviewed
🏆Completed
Captain: xuanji

Every Odd Number Greater Than 1 is the Sum of at Most 41 PrimesResearch Paper

Motivation

Schnirelmann showed around 1930, by elementary means, that some absolute constant kkk makes every integer n>1n > 1n>1 a sum of at most kkk primes. For odd nnn:

  • Schnirelmann (1930s): some finite kkk, by elementary methods.
  • Klimov, Pil'tai, Sheptitskaya (1972): 115115115; Riesel–Vaughan (1983): 191919 for all integers, using zero-based prime-counting estimates.
  • Ramaré (1995): every even integer is a sum of at most six primes, so every odd n>1n > 1n>1 is a sum of at most seven. (Ann. Sc. Norm. Super. Pisa, 1995)
  • Tao (2014): at most five primes. (arXiv:1201.6656)
  • Helfgott (2013): every odd n>5n > 5n>5 is a sum of three primes. (arXiv:1312.7748)

The campaign's earlier values (100 001100\,001100001 down to 858585) came from Schnirelmann's method with every constant written out, using Chebyshev-type lower bounds for π(y)\pi(y)π(y) and a Selberg sieve whose singular-series weight C(s)C(s)C(s) was crude. The 858585 entry hit the limit of that crude weight. This entry replaces it by the sharp weight K(s)=∏p∣s, p>2p−1p−2K(s) = \prod_{p \mid s,\, p > 2} \frac{p-1}{p-2}K(s)=∏p∣s,p>2​p−2p−1​, using the platform's proved prime-pair sieve (TaoFivePrimes.siebert_prime_pair_bound, Siebert's bound as used by Riesel–Vaughan) and its PrimePairSieve components. No zeta-zero input is used.

Setting

A representation of nnn as a sum of at most kkk primes is a finite multiset of primes summing to nnn with at most kkk elements counted with multiplicity. The Schnirelmann density of A⊆Z≥0A \subseteq \mathbb{Z}_{\ge 0}A⊆Z≥0​ is σ(A)=inf⁡N≥1∣A∩{1,…,N}∣/N\sigma(A) = \inf_{N \ge 1} |A \cap \{1, \dots, N\}|/Nσ(A)=infN≥1​∣A∩{1,…,N}∣/N (Mathlib: schnirelmannDensity).

Formalization target

Goal

∀n∈N,n odd, n>1  ⟹  ∃ s multiset of primes, ∣s∣≤41, ∑s=n.\forall n \in \mathbb{N},\quad n \text{ odd},\ n > 1 \implies \exists\, s \text{ multiset of primes},\ |s| \le 41,\ \textstyle\sum s = n.∀n∈N,n odd, n>1⟹∃s multiset of primes, ∣s∣≤41, ∑s=n.

This is the campaign template with the value 414141 filled in.

How the bound arises

Let B={(p−3)/2:p odd prime}B = \{(p-3)/2 : p \text{ odd prime}\}B={(p−3)/2:p odd prime} and A=B+BA = B + BA=B+B. We show σ(A)≥1/20\sigma(A) \ge 1/20σ(A)≥1/20, then conclude with Mann's theorem. Write L=log⁡yL = \log yL=logy for the scale and C=2∏p>2(1−(p−1)−2)≤1.3217C = 2\prod_{p>2}(1 - (p-1)^{-2}) \le 1.3217C=2∏p>2​(1−(p−1)−2)≤1.3217 for the twin-prime constant.

  1. Chebyshev's constant a≈0.9212a \approx 0.9212a≈0.9212. For x≥30x \ge 30x≥30, ψ(x)≥ax−5log⁡x+5\psi(x) \ge ax - 5\log x + 5ψ(x)≥ax−5logx+5 (as in the 858585 entry). Through B⊆AB \subseteq AB⊆A this covers L<30L < 30L<30.
  2. Small-shift range (Riesel–Vaughan 1983, Lemma 8), 30≤L≤200030 \le L \le 200030≤L≤2000. Fix the first 150150150 odd primes p1≤877p_1 \le 877p1​≤877 and let R(s)R(s)R(s) count s=p1+qs = p_1 + qs=p1​+q with qqq prime. The second moment ∑R(s)2\sum R(s)^2∑R(s)2 needs the number of prime pairs (q,q+d)(q, q+d)(q,q+d), which Siebert's bound gives as at most 8C K(d) x/log⁡2x8C\,K(d)\,x/\log^2 x8CK(d)x/log2x with no error term. The kernel sum ∑p2<p1K(p1−p2)≤19496\sum_{p_2 < p_1} K(p_1 - p_2) \le 19496∑p2​<p1​​K(p1​−p2​)≤19496 is a finite kernel computation. Cauchy–Schwarz gives #{s≤y:R(s)>0}≥y/39\#\{s \le y : R(s) > 0\} \ge y/39#{s≤y:R(s)>0}≥y/39 on this range.
  3. Large range L≥2000L \ge 2000L≥2000. A Goldbach analogue of Siebert's bound, r(s)≤8C K(s) (s+1)/log⁡2(s+1)+s+1/2+2r(s) \le 8C\,K(s)\,(s+1)/\log^2(s+1) + \sqrt{s+1}/2 + 2r(s)≤8CK(s)(s+1)/log2(s+1)+s+1​/2+2 for even sss, comes from the platform's weighted large-sieve bound for sifted sets applied to {p:s−p prime}\{p : s - p \text{ prime}\}{p:s−p prime} with the shift d=2sP−sd = 2sP - sd=2sP−s (PPP the primorial of the sieve level, so p∣d  ⟺  p∣sp \mid d \iff p \mid sp∣d⟺p∣s for sieving primes), the divisor-kernel comparison and the base-denominator threshold. Combined with the weighted first moment ∑r(s)log⁡2s/s≥0.8477 n\sum r(s)\log^2 s/s \ge 0.8477\,n∑r(s)log2s/s≥0.8477n, the twelfth moment ∑s≤x evenK(s)12≤19500 x\sum_{s \le x \text{ even}} K(s)^{12} \le 19500\,x∑s≤x even​K(s)12≤19500x and Hölder, this gives #{s≤n:r(s)>0}≥n/39\#\{s \le n : r(s) > 0\} \ge n/39#{s≤n:r(s)>0}≥n/39.
  4. Mann's theorem turns 20 σ(A)≥120\,\sigma(A) \ge 120σ(A)≥1 into 20A=Z≥020A = \mathbb{Z}_{\ge 0}20A=Z≥0​, so every odd n≥123n \ge 123n≥123 is a sum of 404040 odd primes plus one 333; odd 83≤n<12383 \le n < 12383≤n<123 use twos and threes to make exactly 414141, and smaller nnn use one 333 and twos: K=2⋅20+1=41K = 2 \cdot 20 + 1 = 41K=2⋅20+1=41.

Significance

The argument stays elementary: no prime number theorem and no zeros of ζ\zetaζ or LLL-functions. New reusable components:

  1. A Goldbach analogue of Siebert's prime-pair bound with the sharp singular-series weight K(s)K(s)K(s), built from the platform's PrimePairSieve nodes.
  2. The Riesel–Vaughan small-shift argument driven by Siebert's bound.
  3. An explicit twelfth-moment bound for K(s)K(s)K(s).

Formalization scope

The Lean statement is the campaign template verbatim with 414141 in place of the value. Already proved on the platform and imported: TaoFivePrimes.siebert_prime_pair_bound, PrimePairSieve_reciprocal_weighted_sifted_bound, PrimePairSieve.divisor_kernel_comparison, PrimePairSieve.reciprocal_base_denominator_dominates_threshold, PrimePairSieve.sieve_constants_certificate, Schnir.basis_of_density.

Selected references

  • H. Riesel, R. C. Vaughan, On sums of primes, Ark. Mat. 21 (1983), 45–74.
  • P. Pollack, Not Always Buried Deep, AMS, 2009, Chapter 6, §6. https://www.pollack-math.net/NABDofficial.pdf
  • K. S. Kedlaya, Notes on Analytic Number Theory, Chapter 13, "The Selberg sieve". https://kskedlaya.org/ant/chap-selberg.html
  • O. Ramaré, On Šnirel'man's constant, Ann. Sc. Norm. Super. Pisa (4) 22 (1995), 645–706.
  • T. Tao, Every odd number greater than 1 is the sum of at most five primes, Math. Comp. 83 (2014). https://arxiv.org/abs/1201.6656
  • Chebyshev's lower bound as formalized in PrimeNumberTheoremAnd (PrimeNumberTheoremAnd/IEANTN/Chebyshev.lean).
  • H.-E. Siebert, Montgomery's weighted sieve for dimension two, Monatsh. Math. 82 (1976), 327–336.
  • Explicit improvement of the 858585 constant (unpublished AI-assisted calculation, October 2026). Source of the constant 414141; not peer reviewed.
1 thm1 active userReviewed
AlgebraTheoretical Computer Science·Captain: mikedeng1

Factoring Polynomials with Rational Coefficients III: A Reduced Basis of the Lattice of Multiples of h mod p^k Finds the Irreducible Factor h₀ = gcd(b₁, …, b_t)Research Paper

Motivation

Factoring a polynomial with rational coefficients into irreducible factors is one of the basic tasks of computer algebra. Before 1982 the standard method (Berlekamp's algorithm modulo a small prime, Hensel lifting, then recombination of the ppp-adic factors, as in Zassenhaus's approach) could take exponential time, because the number of ways to recombine modular factors grows exponentially with the number of factors. A. K. Lenstra, H. W. Lenstra, Jr. and L. Lovász gave the first deterministic polynomial-time algorithm for factoring primitive polynomials in Z[X]\mathbb Z[X]Z[X] (Math. Ann. 261, 1982). Its key idea is to replace recombination by a search for a short vector in a lattice, and the lattice basis reduction algorithm introduced for that purpose (the LLL algorithm) has since become a standard tool in number theory, cryptanalysis and integer programming.

Section 2 of the paper, Factors and Lattices, is the bridge between the two halves: it shows that an irreducible factor of fff can be read off from a reduced basis of a lattice built from a ppp-adic factor of fff. This mission formalizes that section.

Timeline. Mignotte (1974) bounded the coefficients of a factor of an integer polynomial in terms of the polynomial itself. A. K. Lenstra (Mathematisch Centrum report IW 190/81, 1981, Theorem 2) proved the weaker statement that, under the same conditions, a short lattice vector has a nontrivial gcd with fff. LLL (1982) proved the sharper Propositions (2.7), (2.13) and (2.16) used here, which pin down the irreducible factor h0h_0h0​ itself.

Setting

For g=∑iaiXig=\sum_i a_iX^ig=∑i​ai​Xi with real coefficients, the length of ggg is ∣g∣=(∑iai2)1/2|g|=(\sum_i a_i^2)^{1/2}∣g∣=(∑i​ai2​)1/2. For a positive integer qqq, (g mod q)(g\bmod q)(gmodq) is the polynomial over Z/qZ\mathbb Z/q\mathbb ZZ/qZ obtained by reducing every coefficient modulo qqq.

Throughout, ppp is a prime number, kkk a positive integer, and f∈Z[X]f\in\mathbb Z[X]f∈Z[X] a polynomial of degree n>0n>0n>0. A polynomial h∈Z[X]h\in\mathbb Z[X]h∈Z[X] is fixed with

  • (2.1) hhh has leading coefficient 111;
  • (2.2) (h mod pk)(h\bmod p^k)(hmodpk) divides (f mod pk)(f\bmod p^k)(fmodpk) in (Z/pkZ)[X](\mathbb Z/p^k\mathbb Z)[X](Z/pkZ)[X];
  • (2.3) (h mod p)(h\bmod p)(hmodp) is irreducible in Fp[X]\mathbb F_p[X]Fp​[X];
  • (2.4) (h mod p)2(h\bmod p)^2(hmodp)2 does not divide (f mod p)(f\bmod p)(fmodp) in Fp[X]\mathbb F_p[X]Fp​[X].

Write l=deg⁡hl=\deg hl=degh, so 0<l≤n0<l\le n0<l≤n. Proposition (2.5) shows that fff has an irreducible factor h0∈Z[X]h_0\in\mathbb Z[X]h0​∈Z[X] with (h mod p)∣(h0 mod p)(h\bmod p)\mid(h_0\bmod p)(hmodp)∣(h0​modp), unique up to sign; this is the factor the section recovers.

Fix an integer m≥lm\ge lm≥l. The lattice LLL is the set of polynomials g∈Z[X]g\in\mathbb Z[X]g∈Z[X] of degree at most mmm such that (h mod pk)(h\bmod p^k)(hmodpk) divides (g mod pk)(g\bmod p^k)(gmodpk). Identifying ∑i=0maiXi\sum_{i=0}^m a_iX^i∑i=0m​ai​Xi with (a0,…,am)∈Rm+1(a_0,\dots,a_m)\in\mathbb R^{m+1}(a0​,…,am​)∈Rm+1, LLL is a lattice of rank m+1m+1m+1 with basis {pkXi:0≤i<l}∪{hXj:0≤j≤m−l}\{p^kX^i:0\le i<l\}\cup\{hX^j:0\le j\le m-l\}{pkXi:0≤i<l}∪{hXj:0≤j≤m−l} and determinant pklp^{kl}pkl.

A basis b1,…,bm+1b_1,\dots,b_{m+1}b1​,…,bm+1​ of LLL is reduced if its Gram–Schmidt data bi∗b_i^*bi∗​, μij=(bi,bj∗)/(bj∗,bj∗)\mu_{ij}=(b_i,b_j^*)/(b_j^*,b_j^*)μij​=(bi​,bj∗​)/(bj∗​,bj∗​) satisfy ∣μij∣≤12|\mu_{ij}|\le\frac12∣μij​∣≤21​ for j<ij<ij<i and ∣bi∗+μi i−1bi−1∗∣2≥34∣bi−1∗∣2|b_i^*+\mu_{i\,i-1}b_{i-1}^*|^2\ge\frac34|b_{i-1}^*|^2∣bi∗​+μii−1​bi−1∗​∣2≥43​∣bi−1∗​∣2 for 1<i≤m+11<i\le m+11<i≤m+1.

Formalization targets

Goal: Proposition (2.16)

Assume

(2.14)pkl>2mn/2(2mm)n/2∣f∣m+n,\text{(2.14)}\qquad p^{kl}>2^{mn/2}\binom{2m}{m}^{n/2}|f|^{m+n},(2.14)pkl>2mn/2(m2m​)n/2∣f∣m+n,

that b1,…,bm+1b_1,\dots,b_{m+1}b1​,…,bm+1​ is a reduced basis of LLL, and that some jjj satisfies

(2.17)∣bj∣<(pkl/∣f∣m)1/n.\text{(2.17)}\qquad |b_j|<\big(p^{kl}/|f|^m\big)^{1/n}.(2.17)∣bj​∣<(pkl/∣f∣m)1/n.

If ttt is the largest such jjj, then

deg⁡h0=m+1−t,h0=gcd⁡(b1,…,bt),\deg h_0=m+1-t,\qquad h_0=\gcd(b_1,\dots,b_t),degh0​=m+1−t,h0​=gcd(b1​,…,bt​),

and (2.17) holds for all 1≤j≤t1\le j\le t1≤j≤t.

Milestones

  1. (2.5): existence and uniqueness of h0h_0h0​, and for g∣fg\mid fg∣f the equivalence of (h mod p)∣(g mod p)(h\bmod p)\mid(g\bmod p)(hmodp)∣(gmodp), (h mod pk)∣(g mod pk)(h\bmod p^k)\mid(g\bmod p^k)(hmodpk)∣(gmodpk) and h0∣gh_0\mid gh0​∣g.
  2. (2.11): inside the proof of (2.7), the elements of M={λf+μb}M=\{\lambda f+\mu b\}M={λf+μb} of degree below e+le+le+l lie in pkZ[X]p^k\mathbb Z[X]pkZ[X].
  3. (2.7): if b∈Lb\in Lb∈L and pkl>∣f∣m∣b∣np^{kl}>|f|^m|b|^npkl>∣f∣m∣b∣n then h0∣bh_0\mid bh0​∣b.
  4. Mignotte's bound: a divisor ggg of fff with deg⁡g≤m\deg g\le mdegg≤m has ∣g∣≤(2mm)1/2∣f∣|g|\le\binom{2m}{m}^{1/2}|f|∣g∣≤(m2m​)1/2∣f∣.
  5. (2.13): under (2.14), deg⁡h0≤m\deg h_0\le mdegh0​≤m if and only if ∣b1∣<(pkl/∣f∣m)1/n|b_1|<(p^{kl}/|f|^m)^{1/n}∣b1​∣<(pkl/∣f∣m)1/n.
  6. (2.18): #J≤m+1−deg⁡h1\#J\le m+1-\deg h_1#J≤m+1−degh1​ for linearly independent bjb_jbj​ divisible by h1h_1h1​.
  7. (2.19): if deg⁡h0≤m\deg h_0\le mdegh0​≤m, then {1,…,m+1−deg⁡h0}⊂J\{1,\dots,m+1-\deg h_0\}\subset J{1,…,m+1−degh0​}⊂J.

Companion items: the basis of LLL and d(L)=pkld(L)=p^{kl}d(L)=pkl (2.6), and the remark that for t=1t=1t=1 the vector b1b_1b1​ is itself an irreducible factor of fff.

Significance

Proposition (2.16) is what makes the factoring algorithm of Sect. 3 correct: running the reduction for increasing mmm, the first mmm for which (2.15) holds produces h0h_0h0​ by one gcd computation, and repeating on f/h0f/h_0f/h0​ factors fff completely. Together with the polynomial running time of basis reduction (missions I and II of this series), it yields the polynomial-time factoring theorem (3.6). Proposition (2.7) on its own is a general principle, often reused: a polynomial that is divisible by hhh modulo pkp^kpk and has small norm relative to pklp^{kl}pkl must share the factor h0h_0h0​ with fff.

All results here are proved in the paper and standard in textbooks (e.g. von zur Gathen and Gerhard, Modern Computer Algebra). To our knowledge there is no machine-checked proof of (2.7), (2.13) or (2.16) in Lean or Mathlib. Mathlib has Hensel-type lemmas and the Mahler measure, including a coefficient-wise Mignotte bound and Landau's inequality, but not the ℓ2\ell^2ℓ2 form of Mignotte's bound used here, nor any of the lattice statements. A Lean development of this section would be the algebraic core of a verified LLL factoring theorem.

Difficulty

The obvious argument for (2.7) is to bound the resultant of fff and bbb: it is divisible by pklp^{kl}pkl when they share a factor modulo pkp^kpk, and bounded by ∣f∣m∣b∣n|f|^m|b|^n∣f∣m∣b∣n by Hadamard. That argument gives only gcd⁡(f,b)≠1\gcd(f,b)\ne1gcd(f,b)=1, the weaker version of [8], not that h0h_0h0​ divides bbb. The paper's sharper statement needs a lattice MMM of combinations λf+μb\lambda f+\mu bλf+μb, the projection to its top coefficients, and the congruence argument (2.11) that forces the low-degree elements of MMM into pkZ[X]p^k\mathbb Z[X]pkZ[X]; formalizing it requires determinant and Hadamard bounds for a lattice of rank n+m′−2en+m'-2en+m′−2e inside a space of polynomials.

Mignotte's ℓ2\ell^2ℓ2 bound needs the Mahler measure and the inequality ∣g∣≤(2dd)1/2M(g)|g|\le\binom{2d}{d}^{1/2}M(g)∣g∣≤(d2d​)1/2M(g), which is not the coefficient-wise form available in Mathlib. The step (2.19) needs Proposition (1.12) on reduced bases, which is the goal of mission I. The final part of (2.16) needs the primitivity of the basis vectors, which depends on LLL being exactly the set of multiples of hhh modulo pkp^kpk of degree at most mmm.

Formalization scope

Polynomials are Polynomial ℤ; (g mod q)(g\bmod q)(gmodq) is g.map (Int.castRingHom (ZMod q)); ∣g∣|g|∣g∣ is the square root of the sum of the squares of the coefficients over the support. Degrees are natDegree, except in (2.11), where degree with values in WithBot ℕ keeps deg⁡0=−∞\deg 0=-\inftydeg0=−∞ as on the page. A polynomial of degree at most mmm is identified with its coefficient vector in EuclideanSpace ℝ (Fin (m + 1)). Linear independence of b1,…,bm+1b_1,\dots,b_{m+1}b1​,…,bm+1​ is over R\mathbb RR on coefficient vectors; "basis for LLL" means in LLL, independent, and spanning LLL over Z\mathbb ZZ. Gram–Schmidt vectors are Mathlib's unnormalised InnerProductSpace.gramSchmidt.

Indices are 0-based: the paper's b1b_1b1​ is b 0. The index ttt of (2.16) is kept as the paper's 1-based value, 1≤t≤m+11\le t\le m+11≤t≤m+1, so deg⁡h0=m+1−t\deg h_0=m+1-tdegh0​=m+1−t appears unchanged. The powers 2mn/22^{mn/2}2mn/2, (2mm)n/2\binom{2m}{m}^{n/2}(m2m​)n/2, (2mm)1/2\binom{2m}{m}^{1/2}(m2m​)1/2 and (⋅)1/n(\cdot)^{1/n}(⋅)1/n are real powers with real exponents.

The standing assumptions are hypotheses of every item that involves ppp, kkk or hhh: ppp prime, k≥1k\ge1k≥1, deg⁡f>0\deg f>0degf>0, (2.1)–(2.4), m≥lm\ge lm≥l. Mignotte's bound (which assumes only f≠0f\ne0f=0) and (2.18) (pure linear algebra on polynomials of degree at most mmm) do not need them. The factor h0h_0h0​ is any irreducible h0∈Z[X]h_0\in\mathbb Z[X]h0​∈Z[X] with h0∣fh_0\mid fh0​∣f and (h mod p)∣(h0 mod p)(h\bmod p)\mid(h_0\bmod p)(hmodp)∣(h0​modp). A gcd is stated by its universal property (divides each, and every common divisor divides it), which determines it up to sign. Two milestones are stated slightly more generally than the page: Mignotte's bound for every divisor of degree at most mmm, and (2.18) for every nonzero common divisor h1h_1h1​.

The goal does not assume (2.7), (2.13), Mignotte's bound, (2.18) or (2.19); these are milestones. A trivial formalization in which h0h_0h0​ is an arbitrary divisor of fff, or in which "reduced basis" is asserted of a family that need not be a basis of LLL, is ruled out by the definitions.

Needed infrastructure: Hensel-type arguments over Z/pkZ\mathbb Z/p^k\mathbb ZZ/pkZ, Gauss's lemma, the Mahler measure, Hadamard's inequality, and Proposition (1.12) on reduced bases. The lattice determinant results and the ℓ2\ell^2ℓ2 Mignotte bound are reusable beyond this mission. Proofs of any milestone are welcome, as are proofs of the missing Mathlib infrastructure.

Selected references

  • A. K. Lenstra, H. W. Lenstra, Jr., L. Lovász, Factoring polynomials with rational coefficients, Math. Ann. 261 (1982), 515–534. https://doi.org/10.1007/BF01457454
  • M. Mignotte, An inequality about factors of polynomials, Math. Comp. 28 (1974), 1153–1157 (reference [10] of the paper).
  • D. E. Knuth, The Art of Computer Programming, Vol. 2, Seminumerical Algorithms, Addison-Wesley, 1981, Exercise 4.6.2.20 (reference [7] of the paper).
  • A. K. Lenstra, Lattices and factorization of polynomials, Report IW 190/81, Mathematisch Centrum, Amsterdam, 1981 (reference [8] of the paper; its Theorem 2 is the weaker form of (2.7)).
  • J. von zur Gathen, J. Gerhard, Modern Computer Algebra, 3rd ed., Cambridge University Press, 2013, Ch. 16 (textbook treatment).
9 thms1 active userReviewed
🏆Completed
Captain: xuanji

Every Odd Number Greater Than 1 is the Sum of at Most 85 PrimesResearch Paper

Motivation

Schnirelmann showed around 1930, by elementary means, that some absolute constant kkk makes every integer n>1n > 1n>1 a sum of at most kkk primes. For odd nnn:

  • Schnirelmann (1930s): some finite kkk, by elementary methods.
  • Klimov, Pil'tai, Sheptitskaya (1972): 115115115; Riesel–Vaughan (1983): 191919 for all integers, using zero-based prime-counting estimates.
  • Ramaré (1995): every even integer is a sum of at most six primes, so every odd n>1n > 1n>1 is a sum of at most seven. (Ann. Sc. Norm. Super. Pisa, 1995)
  • Tao (2014): at most five primes. (arXiv:1201.6656)
  • Helfgott (2013): every odd n>5n > 5n>5 is a sum of three primes. (arXiv:1312.7748)

The campaign's earlier values (100 001100\,001100001 down to 151151151) came from Schnirelmann's method with every constant written out, using only weak Chebyshev lower bounds for π(y)\pi(y)π(y). This entry keeps the same machinery as the 151151151 entry but feeds it Chebyshev's sharper lower bound ψ(x)≥ax−5log⁡x+5\psi(x) \ge ax - 5\log x + 5ψ(x)≥ax−5logx+5 with a≈0.9212a \approx 0.9212a≈0.9212, obtained from the weights 1,−1,−1,−1,+11, -1, -1, -1, +11,−1,−1,−1,+1 at 1,2,3,5,301, 2, 3, 5, 301,2,3,5,30. No zeta-zero input is used.

Setting

A representation of nnn as a sum of at most kkk primes is a finite multiset of primes summing to nnn with at most kkk elements counted with multiplicity. The Schnirelmann density of A⊆Z≥0A \subseteq \mathbb{Z}_{\ge 0}A⊆Z≥0​ is σ(A)=inf⁡N≥1∣A∩{1,…,N}∣/N\sigma(A) = \inf_{N \ge 1} |A \cap \{1, \dots, N\}|/Nσ(A)=infN≥1​∣A∩{1,…,N}∣/N (Mathlib: schnirelmannDensity).

Formalization target

Goal

∀n∈N,n odd, n>1  ⟹  ∃ s multiset of primes, ∣s∣≤85, ∑s=n.\forall n \in \mathbb{N},\quad n \text{ odd},\ n > 1 \implies \exists\, s \text{ multiset of primes},\ |s| \le 85,\ \textstyle\sum s = n.∀n∈N,n odd, n>1⟹∃s multiset of primes, ∣s∣≤85, ∑s=n.

This is the campaign template with the value 858585 filled in.

How the bound arises

Let B={(p−3)/2:p odd prime}B = \{(p-3)/2 : p \text{ odd prime}\}B={(p−3)/2:p odd prime} and A=B+BA = B + BA=B+B. We show σ(A)≥1/42\sigma(A) \ge 1/42σ(A)≥1/42, then conclude with Mann's theorem as in the 241241241 entry. Write L=log⁡yL = \log yL=logy for the scale.

  1. Chebyshev's constant a≈0.9212a \approx 0.9212a≈0.9212. For x≥30x \ge 30x≥30, ψ(x)≥ax−5log⁡x+5\psi(x) \ge ax - 5\log x + 5ψ(x)≥ax−5logx+5 with a=715log⁡2+310log⁡3+16log⁡5a = \tfrac{7}{15}\log 2 + \tfrac{3}{10}\log 3 + \tfrac16 \log 5a=157​log2+103​log3+61​log5 (Chebyshev's argument with log⁡⌊x⌋!\log \lfloor x \rfloor!log⌊x⌋! and Stirling-type bounds; ported from the PrimeNumberTheoremAnd library with explicit bounds for log⁡3\log 3log3 and log⁡5\log 5log5). Since ψ(x)≤π(x)log⁡x\psi(x) \le \pi(x)\log xψ(x)≤π(x)logx, this gives π(x)≥(ax−O(log⁡x))/log⁡x\pi(x) \ge (ax - O(\log x))/\log xπ(x)≥(ax−O(logx))/logx. On its own it covers L≲76L \lesssim 76L≲76 through B⊆AB \subseteq AB⊆A.
  2. Small-shift range (Riesel–Vaughan 1983, Lemma 8), 76≤L≤700076 \le L \le 700076≤L≤7000. Fix the first 300300300 odd primes p1≤1993p_1 \le 1993p1​≤1993 and let R(s)R(s)R(s) count s=p1+qs = p_1 + qs=p1​+q with qqq prime. Then ∑sR(s)\sum_s R(s)∑s​R(s) needs only the lower bound for π\piπ, and ∑sR(s)2\sum_s R(s)^2∑s​R(s)2 needs an upper bound for prime pairs q,q+dq, q + dq,q+d with a fixed even shift ddd. That bound is the Selberg sieve for a(a+d)a(a+d)a(a+d) on an interval, whose local data are those of the existing Goldbach sieve with s:=ds := ds:=d. The weight sum ∑p1≠p2C(p1−p2)\sum_{p_1 \ne p_2} C(p_1 - p_2)∑p1​=p2​​C(p1​−p2​) over these primes is a finite kernel computation. Cauchy–Schwarz then gives #{s≤y:R(s)>0}≥y/83\#\{s \le y : R(s) > 0\} \ge y/83#{s≤y:R(s)>0}≥y/83 on this range.
  3. Large range L≥7000L \ge 7000L≥7000: the Selberg pointwise bound r(s)≤b C(s) s/log⁡2sr(s) \le b\,C(s)\,s/\log^2 sr(s)≤bC(s)s/log2s with b=8.13b = 8.13b=8.13, the weighted first moment (now with constant a2a^2a2), the sixteenth moment of C(s)C(s)C(s), and Hölder, as in the 241241241 entry, at a much higher threshold.
  4. Mann's theorem turns 42 σ(A)≥142\,\sigma(A) \ge 142σ(A)≥1 into 42A=Z≥042A = \mathbb{Z}_{\ge 0}42A=Z≥0​, so every odd n≥171n \ge 171n≥171 is a sum of exactly 858585 primes (848484 odd primes plus one 333, padded with twos and threes for small nnn), and small nnn are handled with twos and threes: K=2⋅42+1=85K = 2 \cdot 42 + 1 = 85K=2⋅42+1=85.

Significance

The argument stays elementary: no prime number theorem and no zeros of ζ\zetaζ or LLL-functions. New reusable components:

  1. Explicit Selberg upper bound for prime pairs (q,q+d)(q, q+d)(q,q+d) with a fixed shift, uniform in ddd.
  2. The Riesel–Vaughan small-shift second-moment argument.
  3. A self-contained Lean proof of Chebyshev's lower bound ψ(x)≥ax−5log⁡x+5\psi(x) \ge ax - 5\log x + 5ψ(x)≥ax−5logx+5 (a≈0.9212a \approx 0.9212a≈0.9212), carried into the sieve moments.

Formalization scope

The Lean statement is the campaign template verbatim with 858585 in place of the value. Already proved on the platform: Schnir.sieve_ineq, Schnir.G_lower, Schnir.basis_of_density. Mathlib supplies the Chebyshev function ψ\psiψ with ψ(x)≤π(x)log⁡x\psi(x) \le \pi(x)\log xψ(x)≤π(x)logx and the Λ² sieve framework.

Selected references

  • H. Riesel, R. C. Vaughan, On sums of primes, Ark. Mat. 21 (1983), 45–74.
  • P. Pollack, Not Always Buried Deep, AMS, 2009, Chapter 6, §6. https://www.pollack-math.net/NABDofficial.pdf
  • K. S. Kedlaya, Notes on Analytic Number Theory, Chapter 13, "The Selberg sieve". https://kskedlaya.org/ant/chap-selberg.html
  • O. Ramaré, On Šnirel'man's constant, Ann. Sc. Norm. Super. Pisa (4) 22 (1995), 645–706.
  • T. Tao, Every odd number greater than 1 is the sum of at most five primes, Math. Comp. 83 (2014). https://arxiv.org/abs/1201.6656
  • Chebyshev's lower bound as formalized in PrimeNumberTheoremAnd (PrimeNumberTheoremAnd/IEANTN/Chebyshev.lean).
  • Explicit improvement of the 151151151 constant (unpublished AI-assisted calculation, October 2026). Source of the constant 858585; not peer reviewed.
1 thm1 active userReviewed
🏆Completed
Captain: xuanji

Every Odd Number Greater Than 1 is the Sum of at Most 159 PrimesResearch Paper

Motivation

Schnirelmann showed around 1930, by elementary means, that some absolute constant kkk makes every integer n>1n > 1n>1 a sum of at most kkk primes. For odd nnn:

  • Schnirelmann (1930s): some finite kkk, by elementary methods.
  • Klimov, Pil'tai, Sheptitskaya (1972): 115115115; Riesel–Vaughan (1983): 191919 for all integers, using zero-based prime-counting estimates.
  • Ramaré (1995): every even integer is a sum of at most six primes, so every odd n>1n > 1n>1 is a sum of at most seven. (Ann. Sc. Norm. Super. Pisa, 1995)
  • Tao (2014): at most five primes. (arXiv:1201.6656)
  • Helfgott (2013): every odd n>5n > 5n>5 is a sum of three primes. (arXiv:1312.7748)

The campaign's earlier values (100 001100\,001100001 down to 241241241) came from Schnirelmann's method with every constant written out. Those arguments stall near 241241241 because the medium range relies only on a Chebyshev lower bound for π(y)\pi(y)π(y). This entry adds the small-shift idea of Riesel and Vaughan, which removes that bottleneck without any zeta-zero input.

Setting

A representation of nnn as a sum of at most kkk primes is a finite multiset of primes summing to nnn with at most kkk elements counted with multiplicity. The Schnirelmann density of A⊆Z≥0A \subseteq \mathbb{Z}_{\ge 0}A⊆Z≥0​ is σ(A)=inf⁡N≥1∣A∩{1,…,N}∣/N\sigma(A) = \inf_{N \ge 1} |A \cap \{1, \dots, N\}|/Nσ(A)=infN≥1​∣A∩{1,…,N}∣/N (Mathlib: schnirelmannDensity).

Formalization target

Goal

∀n∈N,n odd, n>1  ⟹  ∃ s multiset of primes, ∣s∣≤159, ∑s=n.\forall n \in \mathbb{N},\quad n \text{ odd},\ n > 1 \implies \exists\, s \text{ multiset of primes},\ |s| \le 159,\ \textstyle\sum s = n.∀n∈N,n odd, n>1⟹∃s multiset of primes, ∣s∣≤159, ∑s=n.

This is the campaign template with the value 159159159 filled in.

How the bound arises

Let B={(p−3)/2:p odd prime}B = \{(p-3)/2 : p \text{ odd prime}\}B={(p−3)/2:p odd prime} and A=B+BA = B + BA=B+B. We show σ(A)≥1/79\sigma(A) \ge 1/79σ(A)≥1/79, then conclude with Mann's theorem as in the 241241241 entry. Write L=log⁡yL = \log yL=logy for the scale.

  1. Chebyshev constant log⁡2\log 2log2. Mathlib's ψ(x)≥(x−1)log⁡2−log⁡(x+2)\psi(x) \ge (x-1)\log 2 - \log(x+2)ψ(x)≥(x−1)log2−log(x+2) gives π(x)≥(xlog⁡2−O(log⁡x))/log⁡x\pi(x) \ge (x \log 2 - O(\log x))/\log xπ(x)≥(xlog2−O(logx))/logx, better than the constant 2/32/32/3 used in earlier entries. On its own it covers L≲90L \lesssim 90L≲90 through B⊆AB \subseteq AB⊆A.
  2. Small-shift range (Riesel–Vaughan 1983, Lemma 8). Fix the first 150150150 odd primes p1p_1p1​ (up to 877877877) and let R(s)R(s)R(s) count s=p1+qs = p_1 + qs=p1​+q with qqq prime. Then ∑sR(s)\sum_s R(s)∑s​R(s) needs only π\piπ, and ∑sR(s)2\sum_s R(s)^2∑s​R(s)2 needs an upper bound for prime pairs q,q+dq, q + dq,q+d with a fixed even shift ddd. That bound is the Selberg sieve for a(a+d)a(a+d)a(a+d) on an interval, whose local data are those of the existing Goldbach sieve with s:=ds := ds:=d. The weight sum ∑p1≠p2C(p1−p2)\sum_{p_1 \ne p_2} C(p_1 - p_2)∑p1​=p2​​C(p1​−p2​) over these primes is a finite computation. Cauchy–Schwarz then gives #{s≤y:R(s)>0}≥y/158\#\{s \le y : R(s) > 0\} \ge y/158#{s≤y:R(s)>0}≥y/158 for 90≲L≤300090 \lesssim L \le 300090≲L≤3000.
  3. Large range L≥3000L \ge 3000L≥3000: the Selberg pointwise bound r(s)≤b C(s) s/log⁡2sr(s) \le b\,C(s)\,s/\log^2 sr(s)≤bC(s)s/log2s, the weighted first moment (now with constant (log⁡2)2(\log 2)^2(log2)2), a high moment of C(s)C(s)C(s), and Hölder, as in the 241241241 entry, at a much higher threshold.
  4. Mann's theorem turns 79 σ(A)≥179\,\sigma(A) \ge 179σ(A)≥1 into 79A=Z≥079A = \mathbb{Z}_{\ge 0}79A=Z≥0​, so every odd nnn beyond a small bound is a sum of 158158158 odd primes plus one 333, and small nnn are handled with twos and threes: K=2⋅79+1=159K = 2 \cdot 79 + 1 = 159K=2⋅79+1=159.

Significance

The argument stays elementary: no prime number theorem and no zeros of ζ\zetaζ or LLL-functions. New reusable components:

  1. Explicit Selberg upper bound for prime pairs (q,q+d)(q, q+d)(q,q+d) with a fixed shift, uniform in ddd.
  2. The Riesel–Vaughan small-shift second-moment argument.
  3. Chebyshev's log⁡2\log 2log2 constant from Mathlib carried into the sieve moments.

Formalization scope

The Lean statement is the campaign template verbatim with 159159159 in place of the value. Already proved on the platform: Schnir.sieve_ineq, Schnir.G_lower, Schnir.pi_lower, Schnir.basis_of_density. Mathlib supplies the Chebyshev bounds (Chebyshev.psi_ge', Chebyshev.theta_le_log4_mul_x) and the Λ² sieve framework (Mathlib.NumberTheory.SelbergSieve).

Selected references

  • H. Riesel, R. C. Vaughan, On sums of primes, Ark. Mat. 21 (1983), 45–74.
  • P. Pollack, Not Always Buried Deep, AMS, 2009, Chapter 6, §6. https://www.pollack-math.net/NABDofficial.pdf
  • K. S. Kedlaya, Notes on Analytic Number Theory, Chapter 13, "The Selberg sieve". https://kskedlaya.org/ant/chap-selberg.html
  • O. Ramaré, On Šnirel'man's constant, Ann. Sc. Norm. Super. Pisa (4) 22 (1995), 645–706.
  • T. Tao, Every odd number greater than 1 is the sum of at most five primes, Math. Comp. 83 (2014). https://arxiv.org/abs/1201.6656
  • Explicit improvement of the 241241241 constant (unpublished AI-assisted calculation, October 2026). Source of the constant 159159159; not peer reviewed.
2 thms1 active userReviewed
🏆Completed
Captain: xuanji

Every Odd Number Greater Than 1 is the Sum of at Most 151 PrimesResearch Paper

Motivation

Schnirelmann showed around 1930, by elementary means, that some absolute constant kkk makes every integer n>1n > 1n>1 a sum of at most kkk primes. For odd nnn:

  • Schnirelmann (1930s): some finite kkk, by elementary methods.
  • Klimov, Pil'tai, Sheptitskaya (1972): 115115115; Riesel–Vaughan (1983): 191919 for all integers, using zero-based prime-counting estimates.
  • Ramaré (1995): every even integer is a sum of at most six primes, so every odd n>1n > 1n>1 is a sum of at most seven. (Ann. Sc. Norm. Super. Pisa, 1995)
  • Tao (2014): at most five primes. (arXiv:1201.6656)
  • Helfgott (2013): every odd n>5n > 5n>5 is a sum of three primes. (arXiv:1312.7748)

The campaign's earlier values (100 001100\,001100001 down to 241241241) came from Schnirelmann's method with every constant written out. Those arguments stall near 241241241 because the medium range relies only on a Chebyshev lower bound for π(y)\pi(y)π(y). This entry adds the small-shift idea of Riesel and Vaughan, which removes that bottleneck without any zeta-zero input.

Setting

A representation of nnn as a sum of at most kkk primes is a finite multiset of primes summing to nnn with at most kkk elements counted with multiplicity. The Schnirelmann density of A⊆Z≥0A \subseteq \mathbb{Z}_{\ge 0}A⊆Z≥0​ is σ(A)=inf⁡N≥1∣A∩{1,…,N}∣/N\sigma(A) = \inf_{N \ge 1} |A \cap \{1, \dots, N\}|/Nσ(A)=infN≥1​∣A∩{1,…,N}∣/N (Mathlib: schnirelmannDensity).

Formalization target

Goal

∀n∈N,n odd, n>1  ⟹  ∃ s multiset of primes, ∣s∣≤151, ∑s=n.\forall n \in \mathbb{N},\quad n \text{ odd},\ n > 1 \implies \exists\, s \text{ multiset of primes},\ |s| \le 151,\ \textstyle\sum s = n.∀n∈N,n odd, n>1⟹∃s multiset of primes, ∣s∣≤151, ∑s=n.

This is the campaign template with the value 151151151 filled in.

How the bound arises

Let B={(p−3)/2:p odd prime}B = \{(p-3)/2 : p \text{ odd prime}\}B={(p−3)/2:p odd prime} and A=B+BA = B + BA=B+B. We show σ(A)≥1/75\sigma(A) \ge 1/75σ(A)≥1/75, then conclude with Mann's theorem as in the 241241241 entry. Write L=log⁡yL = \log yL=logy for the scale.

  1. Chebyshev constant log⁡2\log 2log2. Mathlib's ψ(x)≥(x−1)log⁡2−log⁡(x+2)\psi(x) \ge (x-1)\log 2 - \log(x+2)ψ(x)≥(x−1)log2−log(x+2) gives π(x)≥(xlog⁡2−O(log⁡x))/log⁡x\pi(x) \ge (x \log 2 - O(\log x))/\log xπ(x)≥(xlog2−O(logx))/logx, better than the constant 2/32/32/3 used in earlier entries. On its own it covers L≲90L \lesssim 90L≲90 through B⊆AB \subseteq AB⊆A.
  2. Small-shift range (Riesel–Vaughan 1983, Lemma 8). Fix the first 500500500 odd primes p1p_1p1​ (up to 358135813581) and let R(s)R(s)R(s) count s=p1+qs = p_1 + qs=p1​+q with qqq prime. Then ∑sR(s)\sum_s R(s)∑s​R(s) needs only π\piπ, and ∑sR(s)2\sum_s R(s)^2∑s​R(s)2 needs an upper bound for prime pairs q,q+dq, q + dq,q+d with a fixed even shift ddd. That bound is the Selberg sieve for a(a+d)a(a+d)a(a+d) on an interval, whose local data are those of the existing Goldbach sieve with s:=ds := ds:=d. The weight sum ∑p1≠p2C(p1−p2)\sum_{p_1 \ne p_2} C(p_1 - p_2)∑p1​=p2​​C(p1​−p2​) over these primes is a finite computation. Cauchy–Schwarz then gives #{s≤y:R(s)>0}≥y/150\#\{s \le y : R(s) > 0\} \ge y/150#{s≤y:R(s)>0}≥y/150 for 90≲L≤10490 \lesssim L \le 10^490≲L≤104.
  3. Large range L≥104L \ge 10^4L≥104: the Selberg pointwise bound r(s)≤b C(s) s/log⁡2sr(s) \le b\,C(s)\,s/\log^2 sr(s)≤bC(s)s/log2s, the weighted first moment (now with constant (log⁡2)2(\log 2)^2(log2)2), a high moment of C(s)C(s)C(s), and Hölder, as in the 241241241 entry, at a much higher threshold.
  4. Mann's theorem turns 75 σ(A)≥175\,\sigma(A) \ge 175σ(A)≥1 into 75A=Z≥075A = \mathbb{Z}_{\ge 0}75A=Z≥0​, so every odd nnn beyond a small bound is a sum of 150150150 odd primes plus one 333, and small nnn are handled with twos and threes: K=2⋅75+1=151K = 2 \cdot 75 + 1 = 151K=2⋅75+1=151.

Significance

The argument stays elementary: no prime number theorem and no zeros of ζ\zetaζ or LLL-functions. New reusable components:

  1. Explicit Selberg upper bound for prime pairs (q,q+d)(q, q+d)(q,q+d) with a fixed shift, uniform in ddd.
  2. The Riesel–Vaughan small-shift second-moment argument.
  3. Chebyshev's log⁡2\log 2log2 constant from Mathlib carried into the sieve moments.

Formalization scope

The Lean statement is the campaign template verbatim with 151151151 in place of the value. Already proved on the platform: Schnir.sieve_ineq, Schnir.G_lower, Schnir.pi_lower, Schnir.basis_of_density. Mathlib supplies the Chebyshev bounds (Chebyshev.psi_ge', Chebyshev.theta_le_log4_mul_x) and the Λ² sieve framework (Mathlib.NumberTheory.SelbergSieve).

Selected references

  • H. Riesel, R. C. Vaughan, On sums of primes, Ark. Mat. 21 (1983), 45–74.
  • P. Pollack, Not Always Buried Deep, AMS, 2009, Chapter 6, §6. https://www.pollack-math.net/NABDofficial.pdf
  • K. S. Kedlaya, Notes on Analytic Number Theory, Chapter 13, "The Selberg sieve". https://kskedlaya.org/ant/chap-selberg.html
  • O. Ramaré, On Šnirel'man's constant, Ann. Sc. Norm. Super. Pisa (4) 22 (1995), 645–706.
  • T. Tao, Every odd number greater than 1 is the sum of at most five primes, Math. Comp. 83 (2014). https://arxiv.org/abs/1201.6656
  • Explicit improvement of the 241241241 constant (unpublished AI-assisted calculation, October 2026). Source of the constant 151151151; not peer reviewed.
1 thm1 active userReviewed
🏆Completed
Captain: xuanji

Every Odd Number Greater Than 1 is the Sum of at Most 241 PrimesResearch Paper

Motivation

Schnirelmann showed around 1930, by elementary means, that some absolute constant kkk makes every integer n>1n > 1n>1 a sum of at most kkk primes. For odd nnn:

  • Schnirelmann (1930s): some finite kkk, by elementary methods.
  • Vinogradov (1937): every sufficiently large odd integer is a sum of three primes.
  • Ramaré (1995): every even integer is a sum of at most six primes, so every odd n>1n > 1n>1 is a sum of at most seven. (Ann. Sc. Norm. Super. Pisa, 1995)
  • Tao (2014): at most five primes. (arXiv:1201.6656)
  • Helfgott (2013): every odd n>5n > 5n>5 is a sum of three primes. (arXiv:1312.7748)

The campaign's first proved value, 100 001100\,001100001, came from Schnirelmann's method with every constant written out. This entry records a sharper value, 241241241, from the same elementary circle of ideas.

Setting

A representation of nnn as a sum of at most kkk primes is a finite multiset of primes summing to nnn with at most kkk elements counted with multiplicity. The Schnirelmann density of A⊆Z≥0A \subseteq \mathbb{Z}_{\ge 0}A⊆Z≥0​ is σ(A)=inf⁡N≥1∣A∩{1,…,N}∣/N\sigma(A) = \inf_{N \ge 1} |A \cap \{1, \dots, N\}|/Nσ(A)=infN≥1​∣A∩{1,…,N}∣/N (Mathlib: schnirelmannDensity).

Formalization target

Goal

∀n∈N,n odd, n>1  ⟹  ∃ s multiset of primes, ∣s∣≤241, ∑s=n.\forall n \in \mathbb{N},\quad n \text{ odd},\ n > 1 \implies \exists\, s \text{ multiset of primes},\ |s| \le 241,\ \textstyle\sum s = n.∀n∈N,n odd, n>1⟹∃s multiset of primes, ∣s∣≤241, ∑s=n.

This is the campaign template with the value 241241241 filled in. The argument proves the stronger statement that every odd n≥483n \ge 483n≥483 is a sum of exactly 241241241 primes; the at-most form for all odd n>1n > 1n>1 follows.

How the bound arises

It follows the companion 351351351 entry, with every parameter pushed to the limit of the same tools. Let B={(p−3)/2:p odd prime}B = \{(p-3)/2 : p \text{ odd prime}\}B={(p−3)/2:p odd prime} and A=B+BA = B + BA=B+B. We show σ(A)≥1/120\sigma(A) \ge 1/120σ(A)≥1/120:

  1. Sieve at a low threshold. The explicit Selberg inequality with z=s/(log⁡s)2z = \sqrt{s}/(\log s)^2z=s​/(logs)2 gives r(s)≤454 C(s) s/(log⁡s)2r(s) \le \tfrac{45}{4}\,C(s)\,s/(\log s)^2r(s)≤445​C(s)s/(logs)2 for even s≥e130s \ge e^{130}s≥e130, where r(s)r(s)r(s) counts representations s=p+qs = p + qs=p+q by odd primes and C(s)=∏p∣s(1+p/(p−1)2)C(s) = \prod_{p \mid s}\bigl(1 + p/(p-1)^2\bigr)C(s)=∏p∣s​(1+p/(p−1)2).
  2. Weighted first moment. ∑e130<s≤xr(s) (log⁡s)2/s≥0.439 x\sum_{e^{130} < s \le x} r(s)\,(\log s)^2/s \ge 0.439\,x∑e130<s≤x​r(s)(logs)2/s≥0.439x for x≥e159x \ge e^{159}x≥e159.
  3. Sixteenth moment of CCC. Expanding C(s)16C(s)^{16}C(s)16 over squarefree divisors, treating the primes up to 313131 exactly and bounding the tail in one step, gives ∑s≤x, 2∣sC(s)16≤9.44⋅1012 x\sum_{s \le x,\, 2 \mid s} C(s)^{16} \le 9.44 \cdot 10^{12}\, x∑s≤x,2∣s​C(s)16≤9.44⋅1012x.
  4. Hölder with exponent 161616 then gives #{s≤x:r(s)>0}≥x/238\#\{s \le x : r(s) > 0\} \ge x/238#{s≤x:r(s)>0}≥x/238 for x≥e159x \ge e^{159}x≥e159. Below that scale, Chebyshev's bound π(y)−1≥2y/(3log⁡y)\pi(y) - 1 \ge 2y/(3 \log y)π(y)−1≥2y/(3logy) and B⊆AB \subseteq AB⊆A suffice, so σ(A)≥1/120\sigma(A) \ge 1/120σ(A)≥1/120 at every scale.
  5. Mann's theorem, σ(D+E)≥min⁡{1,σ(D)+σ(E)}\sigma(D + E) \ge \min\{1, \sigma(D) + \sigma(E)\}σ(D+E)≥min{1,σ(D)+σ(E)} for sets containing 000, gives 120A=Z≥0120A = \mathbb{Z}_{\ge 0}120A=Z≥0​, so 240B=Z≥0240B = \mathbb{Z}_{\ge 0}240B=Z≥0​. For odd n≥3K=723n \ge 3K = 723n≥3K=723, write (n−3K)/2(n - 3K)/2(n−3K)/2 as a sum of 240240240 elements of BBB and add one more 333. For 483≤n<723483 \le n < 723483≤n<723, use n−2Kn - 2Kn−2K threes and 3K−n3K - n3K−n twos. This gives K=241K = 241K=241.

About 241241241 is the floor of this method: the medium range relies on the Chebyshev constant 2/32/32/3, which forces the sieve threshold below e4k/3e^{4k/3}e4k/3 and so inflates the sieve coefficient.

Significance

The bound is far weaker than Tao's 555 or Helfgott's 333, but it rests on an elementary argument with no "sufficiently large" threshold and no prime number theorem, so it is a realistic target for a complete formalization. Reusable components:

  1. Explicit Chebyshev-type lower bound for π(y)\pi(y)π(y).
  2. Explicit Selberg upper-bound sieve for r(s)r(s)r(s) at an arbitrary threshold.
  3. High moments ∑s≤xC(s)q\sum_{s \le x} C(s)^{q}∑s≤x​C(s)q of the singular-series factor.
  4. Mann's theorem (αβ\alpha\betaαβ theorem) on Schnirelmann density.

Formalization scope

The Lean statement is the campaign template verbatim with 241241241 in place of the value. All the ingredients above except the moment bound and the final assembly are already proved on the platform (Schnir.sieve_ineq, Schnir.G_lower, Schnir.pi_lower, Schnir.basis_of_density).

Selected references

  • P. Pollack, Not Always Buried Deep, AMS, 2009, Chapter 6, §6. https://www.pollack-math.net/NABDofficial.pdf
  • K. S. Kedlaya, Notes on Analytic Number Theory, Chapter 13, "The Selberg sieve". https://kskedlaya.org/ant/chap-selberg.html
  • O. Ramaré, On Šnirel'man's constant, Ann. Sc. Norm. Super. Pisa (4) 22 (1995), 645–706.
  • T. Tao, Every odd number greater than 1 is the sum of at most five primes, Math. Comp. 83 (2014). https://arxiv.org/abs/1201.6656
  • H. A. Helfgott, The ternary Goldbach conjecture is true, 2013. https://arxiv.org/abs/1312.7748
  • Explicit improvement of the 100 001100\,001100001 constant (unpublished AI-assisted calculation, October 2026), extending the 351351351 entry. Source of the constant 241241241; not peer reviewed.
1 thm1 active userReviewed
🏆Completed
Captain: xuanji

Every Odd Number Greater Than 1 is the Sum of at Most 6101 PrimesResearch Paper

Motivation

Schnirelmann showed around 1930, by elementary means, that some absolute constant kkk makes every integer n>1n > 1n>1 a sum of at most kkk primes. For odd nnn:

  • Schnirelmann (1930s): some finite kkk, by elementary methods.
  • Vinogradov (1937): every sufficiently large odd integer is a sum of three primes.
  • Ramaré (1995): every even integer is a sum of at most six primes, so every odd n>1n > 1n>1 is a sum of at most seven. (Ann. Sc. Norm. Super. Pisa, 1995)
  • Tao (2014): at most five primes. (arXiv:1201.6656)
  • Helfgott (2013): every odd n>5n > 5n>5 is a sum of three primes. (arXiv:1312.7748)

The campaign's first proved value, 100 001100\,001100001, came from Schnirelmann's method with every constant written out. This entry records a sharper value, 610161016101, from the same elementary circle of ideas.

Setting

A representation of nnn as a sum of at most kkk primes is a finite multiset of primes summing to nnn with at most kkk elements counted with multiplicity. The Schnirelmann density of A⊆Z≥0A \subseteq \mathbb{Z}_{\ge 0}A⊆Z≥0​ is σ(A)=inf⁡N≥1∣A∩{1,…,N}∣/N\sigma(A) = \inf_{N \ge 1} |A \cap \{1, \dots, N\}|/Nσ(A)=infN≥1​∣A∩{1,…,N}∣/N (Mathlib: schnirelmannDensity).

Formalization target

Goal

∀n∈N,n odd, n>1  ⟹  ∃ s multiset of primes, ∣s∣≤6101, ∑s=n.\forall n \in \mathbb{N},\quad n \text{ odd},\ n > 1 \implies \exists\, s \text{ multiset of primes},\ |s| \le 6101,\ \textstyle\sum s = n.∀n∈N,n odd, n>1⟹∃s multiset of primes, ∣s∣≤6101, ∑s=n.

This is the campaign template with the value 610161016101 filled in. The source proves the stronger statement that every odd n≥12 203n \ge 12\,203n≥12203 is a sum of exactly 610161016101 primes; the at-most form for all odd n>1n > 1n>1 follows.

How the bound arises

It keeps the explicit Selberg sieve, Cauchy–Schwarz and Schnirelmann's original sumset inequality from the 100 001100\,001100001 entry, and improves the first moment:

  1. Whole-triangle count. Counting all pairs with p+q≤xp + q \le xp+q≤x gives ∑s≤xr(s)≥2(x−2000)2/(9(log⁡x)2)\sum_{s \le x} r(s) \ge 2(x-2000)^2/(9(\log x)^2)∑s≤x​r(s)≥2(x−2000)2/(9(logx)2) for x≥2000x \ge 2000x≥2000.
  2. Weighting. Weighting r(s)r(s)r(s) by (log⁡s)2/s(\log s)^2/s(logs)2/s cancels the varying factor in the sieve bound r(s)≤9 C(s) s/(log⁡s)2r(s) \le 9\,C(s)\,s/(\log s)^2r(s)≤9C(s)s/(logs)2, giving a weighted first moment of at least 44100x\tfrac{44}{100}x10044​x.
  3. Second moment of CCC. With ∑s≤x, 2∣sC(s)2≤212x\sum_{s \le x,\, 2\mid s} C(s)^2 \le \tfrac{21}{2}x∑s≤x,2∣s​C(s)2≤221​x, Cauchy–Schwarz yields σ(A)≥1/2200\sigma(A) \ge 1/2200σ(A)≥1/2200 for A=B+BA = B + BA=B+B, B={(p−3)/2}B = \{(p-3)/2\}B={(p−3)/2}.
  4. Schnirelmann's inequality with m=1525m = 1525m=1525 (the least mmm with (1−1/2200)m<1/2(1 - 1/2200)^m < 1/2(1−1/2200)m<1/2) gives K=4m+1=6101K = 4m + 1 = 6101K=4m+1=6101.

Significance

The bound is far weaker than Tao's 555 or Helfgott's 333, but it rests on an elementary argument with no "sufficiently large" threshold and no prime number theorem, so it is a realistic target for a complete formalization and a large step down from 100 001100\,001100001. Reusable components:

  1. Explicit Chebyshev-type lower bound for π(y)\pi(y)π(y).
  2. Explicit Selberg upper-bound sieve for r(s)r(s)r(s).
  3. Moment bounds for the singular-series factor C(s)C(s)C(s).
  4. Schnirelmann's inequality σ(D+E)≥σ(D)+σ(E)−σ(D)σ(E)\sigma(D+E) \ge \sigma(D)+\sigma(E)-\sigma(D)\sigma(E)σ(D+E)≥σ(D)+σ(E)−σ(D)σ(E).

Formalization scope

The Lean statement is the campaign template verbatim with 610161016101 in place of the value. Mathlib already has schnirelmannDensity, the Λ² Selberg sieve setup (Mathlib/NumberTheory/SelbergSieve.lean) and central-binomial bounds.

Selected references

  • P. Pollack, Not Always Buried Deep, AMS, 2009, Chapter 6, §6. https://www.pollack-math.net/NABDofficial.pdf
  • K. S. Kedlaya, Notes on Analytic Number Theory, Chapter 13, "The Selberg sieve". https://kskedlaya.org/ant/chap-selberg.html
  • O. Ramaré, On Šnirel'man's constant, Ann. Sc. Norm. Super. Pisa (4) 22 (1995), 645–706.
  • T. Tao, Every odd number greater than 1 is the sum of at most five primes, Math. Comp. 83 (2014). https://arxiv.org/abs/1201.6656
  • H. A. Helfgott, The ternary Goldbach conjecture is true, 2013. https://arxiv.org/abs/1312.7748
  • Explicit improvement of the 100 001100\,001100001 constant (unpublished AI-assisted calculation, October 2026). Source of the constant 610161016101; not peer reviewed.
1 thm1 active userReviewed
🏆Completed
Captain: xuanji

Every Odd Number Greater Than 1 is the Sum of at Most 97041 PrimesResearch Paper

Motivation

Schnirelmann showed around 1930, by elementary means, that some absolute constant kkk makes every integer n>1n > 1n>1 a sum of at most kkk primes. For odd nnn:

  • Schnirelmann (1930s): some finite kkk, by elementary methods.
  • Vinogradov (1937): every sufficiently large odd integer is a sum of three primes.
  • Ramaré (1995): every even integer is a sum of at most six primes, so every odd n>1n > 1n>1 is a sum of at most seven. (Ann. Sc. Norm. Super. Pisa, 1995)
  • Tao (2014): at most five primes. (arXiv:1201.6656)
  • Helfgott (2013): every odd n>5n > 5n>5 is a sum of three primes. (arXiv:1312.7748)

The campaign's first proved value, 100 001100\,001100001, came from Schnirelmann's method with every constant written out. This entry records a sharper value, 97 04197\,04197041, from the same elementary circle of ideas.

Setting

A representation of nnn as a sum of at most kkk primes is a finite multiset of primes summing to nnn with at most kkk elements counted with multiplicity. The Schnirelmann density of A⊆Z≥0A \subseteq \mathbb{Z}_{\ge 0}A⊆Z≥0​ is σ(A)=inf⁡N≥1∣A∩{1,…,N}∣/N\sigma(A) = \inf_{N \ge 1} |A \cap \{1, \dots, N\}|/Nσ(A)=infN≥1​∣A∩{1,…,N}∣/N (Mathlib: schnirelmannDensity).

Formalization target

Goal

∀n∈N,n odd, n>1  ⟹  ∃ s multiset of primes, ∣s∣≤97 041, ∑s=n.\forall n \in \mathbb{N},\quad n \text{ odd},\ n > 1 \implies \exists\, s \text{ multiset of primes},\ |s| \le 97\,041,\ \textstyle\sum s = n.∀n∈N,n odd, n>1⟹∃s multiset of primes, ∣s∣≤97041, ∑s=n.

This is the campaign template with the value 97 04197\,04197041 filled in. The source proves the stronger statement that every odd n≥194 083n \ge 194\,083n≥194083 is a sum of exactly 97 04197\,04197041 primes; the at-most form for all odd n>1n > 1n>1 follows.

How the bound arises

It is the argument behind the 100 001100\,001100001 entry, unchanged up to the last step: the explicit Selberg sieve and Cauchy–Schwarz give σ(A)≥1/35 000\sigma(A) \ge 1/35\,000σ(A)≥1/35000 for A=B+BA = B + BA=B+B, B={(p−3)/2:p odd prime}B = \{(p-3)/2 : p \text{ odd prime}\}B={(p−3)/2:p odd prime}. The only change is to take the smallest admissible mmm in Schnirelmann's inequality: (1−1/35 000)m<1/2(1 - 1/35\,000)^{m} < 1/2(1−1/35000)m<1/2 first holds at m=24 260m = 24\,260m=24260 (rather than the rounded 25 00025\,00025000), so 2mA=Z≥02mA = \mathbb{Z}_{\ge 0}2mA=Z≥0​ and K=4m+1=97 041K = 4m + 1 = 97\,041K=4m+1=97041.

Significance

The bound is far weaker than Tao's 555 or Helfgott's 333, but it rests on an elementary argument with no "sufficiently large" threshold and no prime number theorem, so it is a realistic target for a complete formalization and a large step down from 100 001100\,001100001. Reusable components:

  1. Explicit Chebyshev-type lower bound for π(y)\pi(y)π(y).
  2. Explicit Selberg upper-bound sieve for r(s)r(s)r(s).
  3. Moment bounds for the singular-series factor C(s)C(s)C(s).
  4. Schnirelmann's inequality σ(D+E)≥σ(D)+σ(E)−σ(D)σ(E)\sigma(D+E) \ge \sigma(D)+\sigma(E)-\sigma(D)\sigma(E)σ(D+E)≥σ(D)+σ(E)−σ(D)σ(E).

Formalization scope

The Lean statement is the campaign template verbatim with 97 04197\,04197041 in place of the value. Mathlib already has schnirelmannDensity, the Λ² Selberg sieve setup (Mathlib/NumberTheory/SelbergSieve.lean) and central-binomial bounds.

Selected references

  • P. Pollack, Not Always Buried Deep, AMS, 2009, Chapter 6, §6. https://www.pollack-math.net/NABDofficial.pdf
  • K. S. Kedlaya, Notes on Analytic Number Theory, Chapter 13, "The Selberg sieve". https://kskedlaya.org/ant/chap-selberg.html
  • O. Ramaré, On Šnirel'man's constant, Ann. Sc. Norm. Super. Pisa (4) 22 (1995), 645–706.
  • T. Tao, Every odd number greater than 1 is the sum of at most five primes, Math. Comp. 83 (2014). https://arxiv.org/abs/1201.6656
  • H. A. Helfgott, The ternary Goldbach conjecture is true, 2013. https://arxiv.org/abs/1312.7748
  • Explicit improvement of the 100 001100\,001100001 constant (unpublished AI-assisted calculation, October 2026). Source of the constant 97 04197\,04197041; not peer reviewed.
1 thm1 active userReviewed
Captain: Lucas

Brocard's Conjecture: Four Primes Between Consecutive Prime SquaresOpen Problem

Motivation

For n≥1n \ge 1n≥1 let pnp_npn​ denote the nnn-th prime. Brocard's conjecture, named after Henri Brocard, asserts that for every n≥2n \ge 2n≥2 there are at least four primes strictly between pn2p_n^2pn2​ and pn+12p_{n+1}^2pn+12​ (Wikipedia). It belongs to the family of "primes between consecutive squares" problems together with Legendre's conjecture, and it is a concrete, elementary-looking question about short-interval prime distribution that remains open.

Timeline

  • Early 20th century — Brocard states the conjecture.
  • 2023 — L. A. Ferreira (arXiv:2307.08725) proves that the conjecture holds for all sufficiently large nnn.

Setting

Primes are listed in increasing order. In the Lean development the list is 0-indexed: Nat.nth Nat.Prime k is the kkk-th prime counting from 000, so nth 0 = 2, nth 1 = 3, nth 2 = 5, and so on. For an index nnn write prev=\mathrm{prev} = prev= n.nth Nat.Prime and next=\mathrm{next} = next= (n+1).nth Nat.Prime, two consecutive primes. The quantity of interest is

#{ q prime:prev2<q<next2 }.\#\{\, q \text{ prime} : \mathrm{prev}^2 < q < \mathrm{next}^2 \,\}.#{q prime:prev2<q<next2}.

Target

Milestone (Ferreira): for all sufficiently large indices nnn,

4≤#{ q prime:prev2<q<next2 }.4 \le \#\{\, q \text{ prime} : \mathrm{prev}^2 < q < \mathrm{next}^2 \,\}.4≤#{q prime:prev2<q<next2}.

Goal (Brocard's conjecture): the same inequality for every 0-indexed n≥1n \ge 1n≥1, i.e. for every pair of consecutive primes starting from (3,5)(3,5)(3,5).

Significance

A proof of the goal settles Brocard's conjecture outright. Given Ferreira's asymptotic result, the remaining work splits into making the threshold effective and closing the finite range below it, both of which would be new formal content; the milestone itself (formalizing Ferreira's analytic argument) is a substantial analytic-number-theory formalization project.

Difficulty

Unconditional results on primes in short intervals [x,x+xθ][x, x + x^{\theta}][x,x+xθ] only reach exponents θ\thetaθ well above 1/21/21/2, while the interval (pn2,pn+12)(p_n^2, p_{n+1}^2)(pn2​,pn+12​) has length about 2pngn2 p_n g_n2pn​gn​ where gn=pn+1−png_n = p_{n+1} - p_ngn​=pn+1​−pn​ can be small (e.g. twin primes), i.e. length on the order of the square root of its endpoint. Standard short-interval theorems therefore do not apply uniformly, and Legendre's conjecture — which would only give two primes here — is itself open.

Formalization scope

Everything is stated with Mathlib's Nat.nth Nat.Prime, Finset.Ioo (open interval, endpoints excluded) and Finset.filter Nat.Prime, followed by Finset.card. The hypothesis 1 ≤ n in the goal is the 0-indexed form of the source's "n≥2n \ge 2n≥2"; it is necessary, since for index 000 (primes 2,32, 32,3) the interval (4,9)(4, 9)(4,9) contains only the two primes 5,75, 75,7. The milestone uses Filter.atTop ("for all sufficiently large nnn"), with no explicit threshold. No custom definitions are required.

Selected references

  • Brocard's conjecture, Wikipedia. https://en.wikipedia.org/wiki/Brocard%27s_conjecture
  • L. A. Ferreira, Real exponential sums over primes and prime gaps, arXiv:2307.08725 (2023). https://arxiv.org/abs/2307.08725
  • Statement adapted from the Formal Conjectures project (Apache-2.0), file BrocardConjecture.lean.
4 thms1 active userReviewed
🏆Completed
Captain: xuanji

Every Odd Number Greater Than 1 is the Sum of at Most 100001 PrimesResearch Paper

Motivation

Goldbach's problem asks whether every integer greater than 111 can be written as a sum of a small number of primes. The first unconditional result of this kind was obtained by Schnirelmann around 1930: there is an absolute constant kkk such that every integer n>1n > 1n>1 is a sum of at most kkk primes. His argument is elementary. It uses an upper-bound sieve and Chebyshev-type prime estimates, together with a notion of additive density, and it does not need the prime number theorem or complex analysis.

The constant has since been reduced by much deeper methods. A short timeline for odd nnn:

  • Schnirelmann (1930s): some finite kkk, by elementary methods.
  • Vinogradov (1937): every sufficiently large odd integer is a sum of three primes, with an ineffective threshold in the original argument.
  • Ramaré (1995): every even integer is a sum of at most six primes, which gives at most seven primes for every odd n>1n > 1n>1. (Ann. Sc. Norm. Super. Pisa, 1995)
  • Tao (2014): every odd n>1n > 1n>1 is a sum of at most five primes. (arXiv:1201.6656)
  • Helfgott (2013): every odd n>5n > 5n>5 is a sum of three primes (the ternary Goldbach conjecture). (arXiv:1312.7748)

This mission targets a much weaker constant than any of these, k=100 001k = 100\,001k=100001. It does so because the constant comes from Schnirelmann's elementary method with every estimate made explicit, and that proof is short enough to be a realistic target for a complete formalization.

Setting

A representation of nnn as a sum of at most kkk primes is a finite multiset sss of natural numbers such that every element of sss is prime, the elements of sss sum to nnn, and sss has at most kkk elements counted with multiplicity. Repetitions are allowed and order is irrelevant.

The number 111 is not a sum of primes, so the question concerns odd n≥3n \ge 3n≥3. Even numbers are excluded from the campaign statement.

The Schnirelmann density of a set A⊆Z≥0A \subseteq \mathbb{Z}_{\ge 0}A⊆Z≥0​ is

σ(A)=inf⁡N≥1∣A∩{1,…,N}∣N.\sigma(A) = \inf_{N \ge 1} \frac{|A \cap \{1, \dots, N\}|}{N}.σ(A)=N≥1inf​N∣A∩{1,…,N}∣​.

This notion is the additive tool behind the elementary approach. Mathlib provides it as schnirelmannDensity.

Formalization target

Goal

∀n∈N,n odd, n>1  ⟹  ∃ s multiset of primes, ∣s∣≤100 001, ∑s=n.\forall n \in \mathbb{N},\quad n \text{ odd},\ n > 1 \implies \exists\, s \text{ multiset of primes},\ |s| \le 100\,001,\ \textstyle\sum s = n.∀n∈N,n odd, n>1⟹∃s multiset of primes, ∣s∣≤100001, ∑s=n.

This is the campaign template of Odd numbers as sums of primes with the value 100 001100\,001100001 filled in. A stronger explicit form in the source is that every odd n≥200 003n \ge 200\,003n≥200003 is a sum of exactly 100 001100\,001100001 primes; the at-most form for all odd n>1n > 1n>1 follows from it immediately.

Significance

The result itself. The bound 100 001100\,001100001 is far from the best known constants; five (Tao) and three (Helfgott) are both known on paper. Its value is that it rests on an elementary argument with every constant written out. There is no "sufficiently large" threshold and no appeal to the prime number theorem, zero-density estimates, or large-scale computation.

Formalizing it. No finite bound in this problem has a machine-checked proof on this platform yet. A proof of this goal would be the campaign's first proved value. The components are reusable beyond this mission:

  1. Explicit Chebyshev-type bounds for π(y)\pi(y)π(y).
  2. An explicit Selberg upper-bound sieve for the number of representations of an even number as a sum of two odd primes.
  3. An averaged bound for the associated singular-series factor.
  4. Schnirelmann's density inequality σ(D+E)≥σ(D)+σ(E)−σ(D)σ(E)\sigma(D + E) \ge \sigma(D) + \sigma(E) - \sigma(D)\sigma(E)σ(D+E)≥σ(D)+σ(E)−σ(D)σ(E).

Difficulty

The only substantial step is an upper bound for

r(s)=#{(p,q):p,q odd primes, p+q=s}r(s) = \#\{(p, q) : p, q \text{ odd primes},\ p + q = s\}r(s)=#{(p,q):p,q odd primes, p+q=s}

that is sharp up to a constant factor, namely of order s/(log⁡s)2s/(\log s)^2s/(logs)2 times an arithmetic factor depending on the prime divisors of sss, with an explicit constant. The trivial bound r(s)≤π(s)r(s) \le \pi(s)r(s)≤π(s) is weaker by a factor of log⁡s\log slogs. That loss makes the density of sums of two primes appear to be zero, so the additive argument cannot start. Everything after the sieve bound is short and explicit.

Formalization scope

The Lean statement is the campaign template verbatim with 100 001100\,001100001 in place of the value. It uses Multiset ℕ, Nat.Prime, and Odd n ∧ 1 < n. The statement is fixed by the campaign, and it has no vacuous hypotheses: every odd n>1n > 1n>1 is covered.

Mathlib already contains schnirelmannDensity and the fact that σ(A)+σ(B)≥1\sigma(A) + \sigma(B) \ge 1σ(A)+σ(B)≥1 with 0∈A∩B0 \in A \cap B0∈A∩B implies A+B=NA + B = \mathbb{N}A+B=N. It also contains the Λ² setup of the Selberg sieve (Mathlib/NumberTheory/SelbergSieve.lean) and central-binomial-coefficient bounds. Missing, and welcome as contributions:

  1. The explicit sieve bound for r(s)r(s)r(s).
  2. The mean-square bound for the arithmetic factor.
  3. Schnirelmann's inequality for σ(D+E)\sigma(D + E)σ(D+E).
  4. The explicit lower bound for π(y)\pi(y)π(y) in the form needed here.

Selected references

  • P. Pollack, Not Always Buried Deep: A Second Course in Elementary Number Theory, AMS, 2009. Chapter 6, §6, "An application to the Goldbach problem", pp. 196–201. https://www.pollack-math.net/NABDofficial.pdf
  • K. S. Kedlaya, Notes on Analytic Number Theory, Chapter 13, "The Selberg sieve". https://kskedlaya.org/ant/chap-selberg.html
  • O. Ramaré, On Šnirel'man's constant, Ann. Sc. Norm. Super. Pisa Cl. Sci. (4) 22 (1995), 645–706. http://www.numdam.org/item/ASNSP_1995_4_22_4_645_0/
  • T. Tao, Every odd number greater than 1 is the sum of at most five primes, Math. Comp. 83 (2014), 997–1038. https://arxiv.org/abs/1201.6656
  • H. A. Helfgott, The ternary Goldbach conjecture is true, 2013. https://arxiv.org/abs/1312.7748
  • An explicit elementary constant for sums of primes, unpublished note, September 2026, Theorem 1. Source of the constant 100 001100\,001100001 (with c1=1/9c_1 = 1/9c1​=1/9, c2=860c_2 = 860c2​=860, x0=e2000x_0 = e^{2000}x0​=e2000, σ(A)≥1/35 000\sigma(A) \ge 1/35\,000σ(A)≥1/35000, m=25 000m = 25\,000m=25000).
1 thm1 active userReviewed
Dynamical SystemsProbability·Captain: mysticflounder

Tao 2022: Almost All Collatz Orbits Attain Almost Bounded ValuesResearch Paper

Motivation

The Collatz map sends an even positive integer nnn to n/2n/2n/2 and an odd one to 3n+13n+13n+1. The Collatz conjecture asserts that every orbit of this map eventually reaches 111. It remains an open problem.

Because the conjecture is open, a large part of the literature proves weaker statements that hold for almost all starting values. These results bound how small an orbit gets, not whether it reaches 111. They are the strongest unconditional evidence for the conjecture. Terence Tao's 2022 theorem is the strongest result of this type: outside a set of logarithmic density zero, every orbit drops below any prescribed function that tends to infinity, however slowly (Tao 2022).

Timeline

Attributions follow the survey in Tao 2022, Section 1. Here Colmin⁡(N)\mathrm{Col}_{\min}(N)Colmin​(N) is the least value in the orbit of NNN.

  • 1976 to 1979, Terras and Everett. Colmin⁡(N)<N\mathrm{Col}_{\min}(N) < NColmin​(N)<N for almost all NNN, in natural density.
  • 1979, Allouche. Colmin⁡(N)<Nθ\mathrm{Col}_{\min}(N) < N^{\theta}Colmin​(N)<Nθ for almost all NNN, for every θ>0.869\theta > 0.869θ>0.869.
  • 1994, Korec. The same bound for every θ>log⁡3/log⁡4≈0.7924\theta > \log 3/\log 4 \approx 0.7924θ>log3/log4≈0.7924.
  • 2019 preprint, 2022 publication, Tao. The power NθN^{\theta}Nθ is replaced by any f(N)→∞f(N) \to \inftyf(N)→∞, in logarithmic density instead of natural density (Forum of Mathematics, Pi 10, e12).
  • 2026, ProofAtlas. A complete machine-checked proof of Tao's theorem in Lean 4 is published (formalization record).

Setting

Let collatzStep:N→N\mathrm{collatzStep} : \mathbb{N} \to \mathbb{N}collatzStep:N→N be

collatzStep(n)={n/2n even,3n+1n odd.\mathrm{collatzStep}(n) = \begin{cases} n/2 & n \text{ even},\\ 3n+1 & n \text{ odd}. \end{cases}collatzStep(n)={n/23n+1​n even,n odd.​

Write collatzStep[k]\mathrm{collatzStep}^{[k]}collatzStep[k] for the kkk-fold iterate, with collatzStep[0](n)=n\mathrm{collatzStep}^{[0]}(n) = ncollatzStep[0](n)=n. The orbit of nnn is the set of values collatzStep[k](n)\mathrm{collatzStep}^{[k]}(n)collatzStep[k](n) for k≥0k \ge 0k≥0. It includes nnn itself.

The Syracuse map acts on odd integers. It sends an odd nnn to the odd part of 3n+13n+13n+1, which is syracuseStep(n)=(3n+1)/2ν2(3n+1)\mathrm{syracuseStep}(n) = (3n+1)/2^{\nu_2(3n+1)}syracuseStep(n)=(3n+1)/2ν2​(3n+1). The Syracuse orbit minimum syracuseOrbitMin(n)\mathrm{syracuseOrbitMin}(n)syracuseOrbitMin(n) is the least value syracuseStep[k](n)\mathrm{syracuseStep}^{[k]}(n)syracuseStep[k](n) over k≥0k \ge 0k≥0.

For a set AAA of positive integers and a real cutoff x≥2x \ge 2x≥2, the logarithmic mass of AAA up to xxx is

weightedLogMassReal(x)=1log⁡x∑1≤n≤xn∈A1n.\mathrm{weightedLogMassReal}(x) = \frac{1}{\log x} \sum_{\substack{1 \le n \le x \\ n \in A}} \frac{1}{n}.weightedLogMassReal(x)=logx1​1≤n≤xn∈A​∑​n1​.

A set of positive integers has logarithmic density ddd when this quantity tends to ddd as x→∞x \to \inftyx→∞. Since ∑n≤x1/n=log⁡x+O(1)\sum_{n \le x} 1/n = \log x + O(1)∑n≤x​1/n=logx+O(1), all positive integers together have logarithmic density 111, and the odd positive integers have logarithmic density 1/21/21/2.

A function f:N→Rf : \mathbb{N} \to \mathbb{R}f:N→R tends to infinity on positive inputs when for every real MMM there is an NNN such that f(n)>Mf(n) > Mf(n)>M for all n≥Nn \ge Nn≥N with n>0n > 0n>0.

Formalization targets

Goal: Tao's Theorem 1.3

For every fff that tends to infinity on positive inputs,

lim⁡x→∞1log⁡x∑1≤n≤x∃k, collatzStep[k](n)<f(n)1n=1.\lim_{x \to \infty} \frac{1}{\log x} \sum_{\substack{1 \le n \le x \\ \exists k,\ \mathrm{collatzStep}^{[k]}(n) < f(n)}} \frac{1}{n} = 1.x→∞lim​logx1​1≤n≤x∃k, collatzStep[k](n)<f(n)​∑​n1​=1.

This is the Lean theorem collatz_almost_bounded_logarithmic. It fixes no rate and no constant, so later improvements do not invalidate it.

Syracuse form: Tao's Theorem 1.6

For every fff that tends to infinity on odd positive inputs, the odd nnn whose Syracuse orbit contains a value below f(n)f(n)f(n) have logarithmic density 1/21/21/2, which is all of the odd integers. This is syracuse_almost_bounded_logarithmic.

Quantitative form: Tao's Theorem 3.1

There are constants C,c>0C, c > 0C,c>0 such that for all real M≥2M \ge 2M≥2 and x≥2x \ge 2x≥2,

1log⁡x∑1≤n≤x, n oddsyracuseOrbitMin(n)>M1n≤C(log⁡M)c.\frac{1}{\log x} \sum_{\substack{1 \le n \le x,\ n \text{ odd} \\ \mathrm{syracuseOrbitMin}(n) > M}} \frac{1}{n} \le \frac{C}{(\log M)^{c}}.logx1​1≤n≤x, n oddsyracuseOrbitMin(n)>M​∑​n1​≤(logM)cC​.

This is syracuse_uniform_logarithmic_tail_bound. The three targets are listed from weakest to strongest. In Tao's paper, the goal and Theorem 1.6 both follow from Theorem 3.1.

Significance

The result. Theorem 1.3 improves the earlier almost-all bounds on Collatz orbit minima from a power of NNN to any function that tends to infinity. For example, Colmin⁡(N)<log⁡log⁡log⁡log⁡N\mathrm{Col}_{\min}(N) < \log\log\log\log NColmin​(N)<loglogloglogN for almost all NNN. The theorem does not settle the conjecture. A single divergent orbit or nontrivial cycle is not excluded, because its predecessors form a set with bounded orbit minima.

The formalization. The theorem is proved, and a complete formalization already exists. The ProofAtlas record Tao's Almost-Bounded Collatz Orbits proves the statement taoAlmostBoundedColMin_checked with the same step map and an orbit that includes its starting value. That package has 397 first-party Lean files and about 124,000 source lines. ProofAtlas records a passing build with no sorry and the axiom profile propext, Classical.choice, Quot.sound. The source is released under the Apache-2.0 licence at commit d53c8de00056fb05999e44589f2399d7efa026e4, with copyright held by Advameg, Inc. It was built with Lean v4.30.0-rc2.

The remaining work for this mission is therefore a port, not new mathematics. The existing Lean development must be moved to Lean v4.33.1 and Mathlib 0df444a, and then connected to the goal statement above.

Difficulty

The mathematical difficulty is already resolved in the existing proof. The classical first-descent argument shows that a typical orbit drops below its starting value. Repeating that argument fails, because after one descent the new value is no longer distributed like a random integer of its size, and the error compounds at each repetition. That is why earlier results stop at a power bound NθN^{\theta}Nθ.

The difficulty of this mission is engineering. The port moves a development of about 124,000 lines forward across three minor Lean releases and the corresponding Mathlib changes. Lemma renames, deprecations, and changes in tactic behaviour must be repaired file by file without changing any statement.

Formalization scope

  • Step map. collatzStep n = if Even n then n / 2 else 3 * n + 1, so collatzStep(0)=0\mathrm{collatzStep}(0) = 0collatzStep(0)=0. This is the same definition as in the ProofAtlas source.
  • Orbit. The witness kkk ranges over all natural numbers, including k=0k = 0k=0.
  • Density. The goal uses weightedLogMassReal: a real cutoff xxx, the natural indices 0≤n≤⌊x⌋0 \le n \le \lfloor x \rfloor0≤n≤⌊x⌋, weights 1/n1/n1/n, and normalization by log⁡x\log xlogx. The ProofAtlas statement instead uses integer cutoffs and normalization by the harmonic sum ∑n≤N1/n\sum_{n \le N} 1/n∑n≤N​1/n. A short bridge between the two normalizations is part of the required work.
  • Threshold. The hypothesis on fff constrains only positive inputs. The value f(0)f(0)f(0) is irrelevant.
  • Non-triviality. The case k=0k = 0k=0 alone covers only inputs with n<f(n)n < f(n)n<f(n). For slowly growing fff this set is finite, so the goal is not satisfied by the starting value.

The goal is already reduced, through accepted proofs, to the single open statement syracuse_uniform_logarithmic_tail_bound. Two routes therefore close the mission. The first is to port the ProofAtlas development and prove the goal directly through the density bridge. The second is to prove Theorem 3.1 in its stated form. Contributions welcome include ported modules as reusable solutions, the density bridge, and a proof of Theorem 3.1. Every ported file must keep the Apache-2.0 notice and attribution to the ProofAtlas source.

Selected references

  • Terence Tao, Almost all orbits of the Collatz map attain almost bounded values, Forum of Mathematics, Pi 10 (2022), e12. https://doi.org/10.1017/fmp.2022.8 and https://arxiv.org/abs/1909.03562
  • ProofAtlas, Tao's Almost-Bounded Collatz Orbits, Lean 4 formalization, source commit d53c8de00056fb05999e44589f2399d7efa026e4, Apache-2.0, 2026. https://proofatlas.ai/formalizations/tao-almost-bounded-orbits/
  • Jeffrey C. Lagarias (editor), The Ultimate Challenge: The 3x+1 Problem, American Mathematical Society, 2010. https://bookstore.ams.org/MBK/78
7 thms1 active userReviewed
🏆Completed
Captain: Yuxuan Xu

Equal Sums of Two Squares: Parametrization and Infinite Primitive FamiliesResearch Paper

Motivation

The representation function r2(n)=#{(a,b)∈Z2:a2+b2=n}r_{2}(n)=\#\{(a,b)\in\mathbb Z^{2}:a^{2}+b^{2}=n\}r2​(n)=#{(a,b)∈Z2:a2+b2=n} is one of the oldest objects in number theory. Fermat characterised the integers with r2(n)>0r_{2}(n)>0r2​(n)>0 — those in which every prime congruent to 333 modulo 444 occurs to an even power — and Euler's proof supplied the closed form r2(n)=4 (d1(n)−d3(n))r_{2}(n)=4\,(d_{1}(n)-d_{3}(n))r2​(n)=4(d1​(n)−d3​(n)), where dj(n)d_{j}(n)dj​(n) counts divisors congruent to jjj modulo 444 (sum of two squares theorem).

That description counts representations but does not relate them to one another. The integers carrying several essentially different representations,

50=12+72=52+52,65=12+82=42+72,50=1^{2}+7^{2}=5^{2}+5^{2},\qquad 65=1^{2}+8^{2}=4^{2}+7^{2},50=12+72=52+52,65=12+82=42+72,

are exactly the integers that produce quadruples (a,b,c,d)(a,b,c,d)(a,b,c,d) with

a2+b2=c2+d2a^{2}+b^{2}=c^{2}+d^{2}a2+b2=c2+d2

whose two sides are not identified by swapping the two entries or changing their signs. Three reasons make this relation worth a formal development rather than a passing remark.

  • Energy counts. Counting solutions of the equation inside a box is the additive energy of the set of sums of two squares, the quantity controlling mean-square errors for r2r_{2}r2​; it is a genuinely different problem from determining r2(n)r_{2}(n)r2​(n) for a single nnn, and every estimate for it starts from a description of the solution set.
  • Composition of representations. The Brahmagupta–Fibonacci identity
(p2+q2)(r2+s2)=(pr+qs)2+(ps−qr)2=(pr−qs)2+(ps+qr)2(p^{2}+q^{2})(r^{2}+s^{2})=(pr+qs)^{2}+(ps-qr)^{2}=(pr-qs)^{2}+(ps+qr)^{2}(p2+q2)(r2+s2)=(pr+qs)2+(ps−qr)2=(pr−qs)2+(ps+qr)2

takes two representations and produces a third. Known to Brahmagupta and stated by Fibonacci in Liber Quadratorum (1225), it is the multiplicativity of the norm in the Gaussian integers, and it is the engine behind every statement below.

  • Geometry. Over a field, the locus a2+b2=c2+d2a^{2}+b^{2}=c^{2}+d^{2}a2+b2=c2+d2 in projective three-space is the split quadric, isomorphic to P1×P1\mathbb P^{1}\times\mathbb P^{1}P1×P1 under the Segre embedding; the four parameters introduced below are Segre coordinates in this sense. The arithmetic content of the equation is precisely the integrality that this geometry ignores.

The parametrisation targeted here is classical. Nothing in this mission claims new mathematics; the aim is a machine-checked development in which every hypothesis is explicit.

Setting

Fix integers. A solution is a quadruple (a,b,c,d)∈Z4(a,b,c,d)\in\mathbb Z^{4}(a,b,c,d)∈Z4 with a2+b2=c2+d2a^{2}+b^{2}=c^{2}+d^{2}a2+b2=c2+d2. It is trivial if the multisets {a2,b2}\{a^{2},b^{2}\}{a2,b2} and {c2,d2}\{c^{2},d^{2}\}{c2,d2} coincide, i.e. if (c,d)(c,d)(c,d) equals ±(a,b)\pm(a,b)±(a,b) or ±(b,a)\pm(b,a)±(b,a); if entries are allowed to vanish, the least value carried by a non-trivial solution is 25=02+52=32+4225=0^{2}+5^{2}=3^{2}+4^{2}25=02+52=32+42, and requiring all four entries to be positive raises that value to 505050. A solution is primitive when the four entries have greatest common divisor 111, and positive when all four entries are positive and pairwise distinct — the case in which nothing about the relation is explained by signs, zeros or coincidences.

Two constructions produce solutions. The four-parameter family associates to integers p,q,r,sp,q,r,sp,q,r,s the quadruple

a=pr+qs,b=ps−qr,c=pr−qs,d=ps+qr,a=pr+qs,\qquad b=ps-qr,\qquad c=pr-qs,\qquad d=ps+qr,a=pr+qs,b=ps−qr,c=pr−qs,d=ps+qr,

which solves the equation because both sides equal (p2+q2)(r2+s2)(p^{2}+q^{2})(r^{2}+s^{2})(p2+q2)(r2+s2) by the identity above. Substituting particular parameters is unrevealing, so a genuine supply comes instead from the elementary one-parameter family

12+(n2−n+1)2=(2n−1)2+(n2−n−1)2,1^{2}+(n^{2}-n+1)^{2}=(2n-1)^{2}+(n^{2}-n-1)^{2},12+(n2−n+1)2=(2n−1)2+(n2−n−1)2,

whose four entries 111, n2−n+1n^{2}-n+1n2−n+1, 2n−12n-12n−1, n2−n−1n^{2}-n-1n2−n−1 are strictly increasing — hence positive and pairwise distinct — as soon as n≥4n\ge 4n≥4. The bound is sharp: at n=3n=3n=3 the two entries 2n−12n-12n−1 and n2−n−1n^{2}-n-1n2−n−1 are equal.

In the reverse direction, rewrite the equation as (a+c)(a−c)=(d+b)(d−b)(a+c)(a-c)=(d+b)(d-b)(a+c)(a−c)=(d+b)(d−b) and set

X=(a+c)/2,Y=(a−c)/2,U=(b+d)/2,V=(d−b)/2.X=(a+c)/2,\quad Y=(a-c)/2,\qquad U=(b+d)/2,\quad V=(d-b)/2 .X=(a+c)/2,Y=(a−c)/2,U=(b+d)/2,V=(d−b)/2.

The halves are integers exactly when aaa and ccc share a parity and so do bbb and ddd, and in that case the equation becomes

XY=UV.XY=UV .XY=UV.

The development is organised in the namespace TwoSquares, with node names matching the roles above (four_param_identity, explicit_family_chain, sum_sq_eq_halves, four_factor_param, complete_parametrization).

Formalization targets

Goal — completeness of the four-parameter family

For all integers a,b,c,da,b,c,da,b,c,d with a2+b2=c2+d2a^{2}+b^{2}=c^{2}+d^{2}a2+b2=c2+d2, there are integers p,q,r,sp,q,r,sp,q,r,s with

a=pr+qs,b=ps−qr,c=pr−qs,d=ps+qr,a=pr+qs,\quad b=ps-qr,\quad c=pr-qs,\quad d=ps+qr,a=pr+qs,b=ps−qr,c=pr−qs,d=ps+qr,

possibly after interchanging ccc and ddd. The goal asserts only the existence of integral parameters and the necessity of at most one swap; it does not assert uniqueness of (p,q,r,s)(p,q,r,s)(p,q,r,s), which is false, and it says nothing about how many solutions lie in a given box.

The four-parameter identity

The identity itself, over an arbitrary commutative ring, together with the two forms of the Brahmagupta–Fibonacci identity that imply it — so that the reason it holds, rather than the expansion, is what is recorded.

An explicit infinite family

For every integer n≥4n\ge 4n≥4 the displayed family is a positive pairwise distinct solution; the parametrisation n↦(1, n2−n+1, 2n−1, n2−n−1)n\mapsto(1,\,n^{2}-n+1,\,2n-1,\,n^{2}-n-1)n↦(1,n2−n+1,2n−1,n2−n−1) is injective; the set of quadruples it produces is infinite; and no member is a nontrivial integer multiple of another, each member being primitive.

From the sum-of-squares equation to XY=UVXY=UVXY=UV

The equivalence of a2+b2=c2+d2a^{2}+b^{2}=c^{2}+d^{2}a2+b2=c2+d2 with (a+c)(a−c)=(d+b)(d−b)(a+c)(a-c)=(d+b)(d-b)(a+c)(a−c)=(d+b)(d−b); the parity statement that matching entries share a parity after at most one swap; and the resulting existence of the half-sum variables satisfying XY=UVXY=UVXY=UV.

Parametrizing XY=UVXY=UVXY=UV

For all integers X,Y,U,VX,Y,U,VX,Y,U,V with XY=UVXY=UVXY=UV there are integers p,q,r,sp,q,r,sp,q,r,s with X=prX=prX=pr, Y=qsY=qsY=qs, U=psU=psU=ps, V=qrV=qrV=qr — the coordinate form of the statement that a rank-one 2×22\times22×2 matrix factors through the integers.

Significance

The result. Taken together, the reverse chain converts the Diophantine equation a2+b2=c2+d2a^{2}+b^{2}=c^{2}+d^{2}a2+b2=c2+d2 into four free integer parameters, at the cost of one possible swap. In that form every question about the solution set becomes a question about four independent variables, which is what makes energy estimates, density statements and searches for primitive solutions tractable. The chain also isolates where integrality enters: over a field the parametrisation of XY=UVXY=UVXY=UV is formal, so the content is carried entirely by the parity step and by divisibility over Z\mathbb ZZ.

Formalizing it. None of the mathematics is new, and that is the point: the value here is a development in which each link is a reusable statement with explicit hypotheses. Three conventions make the nodes reusable rather than bespoke. The algebraic identity is proved over a general commutative ring, not over Z\mathbb ZZ. The positivity and distinctness of a family are packaged as one strict chain rather than as a list of inequalities, since later arguments use the ordering, not merely the disequalities. The parity issue is isolated into a single node stating a disjunction, instead of being discharged by case splits buried inside a later proof. Conversely, the shape of the final theorem records honestly what is not claimed: parameters are not unique, and no normal form is asserted.

As difficulty, the early nodes have short proofs, while completeness requires the full chain and is the substantial part of the mission.

Difficulty

The obvious first idea is to use the Gaussian integers: a+bia+bia+bi and c+dic+dic+di have the same norm, so factor both and compare. It fails. Equal norm does not make two Gaussian integers associates or divisors of one another — 1+8i1+8i1+8i and 4+7i4+7i4+7i both have norm 656565 and are related by no divisibility — because uniqueness of factorisation regroups prime factors in ways that the norm alone cannot distinguish. The correct route recovers the four parameters from the product equation instead, and there the friction is entirely arithmetic:

Clearing halves. The substitution X=(a+c)/2X=(a+c)/2X=(a+c)/2 is not available for arbitrary solutions: a2+b2=c2+d2a^{2}+b^{2}=c^{2}+d^{2}a2+b2=c2+d2 forces only that the multiset of parities of (a,b)(a,b)(a,b) matches that of (c,d)(c,d)(c,d), so (a,c)(a,c)(a,c) may have different parities and no integer XXX may exist. The example a=1,b=0,c=0,d=1a=1,b=0,c=0,d=1a=1,b=0,c=0,d=1 shows this is not vacuous, and it is why the goal carries a swap.

Factoring XY=UVXY=UVXY=UV. Taking p=gcd⁡(X,U)p=\gcd(X,U)p=gcd(X,U) yields X=prX=prX=pr, U=psU=psU=ps with gcd⁡(r,s)=1\gcd(r,s)=1gcd(r,s)=1, and Euclid's lemma then forces s∣Ys\mid Ys∣Y and r∣Vr\mid Vr∣V. The degenerate case X=U=0X=U=0X=U=0 — where the gcd vanishes and no cancellation is possible — must be handled separately, and because the variables range over Z\mathbb ZZ rather than N\mathbb NN, every divisibility step must be tracked with signs. Working over a ring where division is available would delete both issues and with them the entire content of the statement.

Formalization scope

  • All nodes are stated over Z\mathbb ZZ, except the Brahmagupta–Fibonacci identity and the four-parameter identity, which are proved over an arbitrary commutative ring. No node is stated over N\mathbb NN; transporting the prime-level statements is out of scope.
  • Gaussian integers are deliberately unused. Mathlib carries them, but nothing here needs them, and a development depending on them would obscure the arithmetic that actually carries the proof.
  • No quotient types, no permutation machinery: the possible swap of ccc and ddd is expressed as a disjunction, and the parity statement as a disjunction over Even.
  • Trivializing formalizations are excluded. Over a field the parametrisation of XY=UVXY=UVXY=UV holds trivially (take p=Xp=Xp=X, r=1r=1r=1, s=U/Xs=U/Xs=U/X), so the quarter-ring version carries no information; likewise, a completeness statement whose hypotheses already postulate the existence of the parameters would be vacuous. Both are explicitly not what is asked for.
  • Expected to be reusable beyond this mission: the two forms of the Brahmagupta–Fibonacci identity; the strict-chain packaging of positivity and distinctness for a family given by polynomials; and the integer parametrisation of XY=UVXY=UVXY=UV, which is the Segre parametrization.
  • Contributions are welcome for any node, and especially for the integer factoring lemma, for which several proofs are available. Explicitly out of scope: uniqueness or normal forms for (p,q,r,s)(p,q,r,s)(p,q,r,s), counting asymptotics for solutions in a box, the Gaussian-integer reformulation, and all N\mathbb NN-level variants.

Selected references

  • Sum of two squares theorem — Fermat's characterisation and Euler's divisor formula for r2r_{2}r2​.
  • Brahmagupta–Fibonacci identity — the two-square composition identity, its history, and its interpretation through norms.
  • Leonardo Pisano (Fibonacci), Liber Quadratorum, 1225. English translation: L. E. Sigler, The Book of Squares, Academic Press, 1987.
  • G. H. Hardy and E. M. Wright, An Introduction to the Theory of Numbers, 6th ed., Oxford University Press, 2008 — Chapter XX on representations by two squares.
  • Segre embedding — the identification of the rank-one quadric in P3\mathbb P^{3}P3 with P1×P1\mathbb P^{1}\times\mathbb P^{1}P1×P1.
13 thms1 active userReviewed
🏆Completed
Captain: willcook

Weighted support criteria for reciprocal Mersenne subseries (Erdős #257)Research Paper

Motivation

For every integer base b≥2b\ge2b≥2, a finite-prime weighted summability witness on a positive-integer host HHH makes the reciprocal Mersenne series irrational on every infinite subset of HHH. A base-two witness gives that conclusion at every integer base. This is the source paper's proved Theorem 1; Erdős's unrestricted question for every infinite support remains outside its conclusion.

Setting

For an integer b≥2b\ge2b≥2, write XA(b)=∑a∈A(ba−1)−1X_A(b)=\sum_{a\in A}(b^a-1)^{-1}XA​(b)=∑a∈A​(ba−1)−1. Given a finite nonempty set PPP of primes, let hP(a)=∏p∈Ppvp(a)h_P(a)=\prod_{p\in P}p^{v_p(a)}hP​(a)=∏p∈P​pvp​(a) be the PPP-part of aaa, and set

Wb,P(A)=∑a∈AhP(a)a(bhP(a)−1).W_{b,P}(A)=\sum_{a\in A}\frac{h_P(a)}{a(b^{h_P(a)}-1)}.Wb,P​(A)=a∈A∑​a(bhP​(a)−1)hP​(a)​.

All support elements are positive. The prime set specifies the weight, not which exponents may belong to the support; the weighted series must also converge.

Formalization targets

Theorem 1 has two clauses for an infinite positive-integer host HHH:

Wb,P(H)<∞⟹XA(b)∉Qfor every infinite A⊆H,W_{b,P}(H)<\infty\quad\Longrightarrow\quad X_A(b)\notin\mathbb Q\qquad\text{for every infinite }A\subseteq H,Wb,P​(H)<∞⟹XA​(b)∈/Qfor every infinite A⊆H, W2,P(H)<∞⟹XA(b)∉Qfor every infinite A⊆H and every integer b≥2.W_{2,P}(H)<\infty\quad\Longrightarrow\quad X_A(b)\notin\mathbb Q\qquad\text{for every infinite }A\subseteq H\text{ and every integer }b\ge2.W2,P​(H)<∞⟹XA​(b)∈/Qfor every infinite A⊆H and every integer b≥2.

In each clause PPP is finite and nonempty. In the second, one prime witness for HHH is fixed before choosing AAA and bbb. Taking A=HA=HA=H recovers the two direct assertions. The public formal main item states both hereditary clauses and has an accepted proof in the pinned Lean 4.30 environment.

Significance

Since h/(2h−1)≤1h/(2^h-1)\le1h/(2h−1)≤1, this criterion includes reciprocal-summable supports. The paper also gives an explicit A⋆A_\starA⋆​ with divergent reciprocal mass but finite weighted mass. The inherited conclusions let another formal result use one certified host for many infinite thinnings. The already proved Lean result makes the host criterion and its dependencies available for direct import; new applications can check the exact premise they need against the public statement.

Difficulty

Reciprocal summability cannot bound the tail for every weighted support. A faithful statement also has to preserve the different order of prime, subset and base quantifiers; dropping fixed-base inheritance changes Theorem 1.

Formalization scope

The formal support is a Set ℕ, and 0 ∉ H enforces positive exponents. FinitePrimeWeighted contains one finite nonempty set of primes and summability of its weighted terms. The public main item joins two accepted Lean results: the fixed-base hereditary theorem and the binary-host all-base theorem. These statements and their public definitions can be reused in the same pinned environment. The later no-cover host is a separate result; it is not a clause of Theorem 1 or the paper's A⋆A_\starA⋆​ example. Will Cook is the named paper author; the paper discloses substantial AI-assisted research and drafting and does not claim independent human verification of every proof. Erdős’s earlier criterion and later platform contributions carry separate credit.

Selected references

  • Will Cook, Weighted Support Criteria for Reciprocal Mersenne Subseries, Erdős Problem Note #257, 2026, Theorem 1.
  • P. Erdős, On the irrationality of certain series, The Mathematics Student 36 (1968), 222–226 (issued 1969).
4 thms1 active userReviewed
PreviousPage 6 of 7Next

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me