Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in

Get started

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

Number Theory

170 missions · 89 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

Open81Completed89All170
🏆Completed
ProbabilityQuantum InformationTheoretical Computer Science·Captain: mikedeng1

Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer 3: The Success Probability of Quantum Order FindingResearch Paper

Motivation

The security of the RSA cryptosystem rests on the assumed difficulty of factoring large integers, and the best known classical algorithms for factoring run in super-polynomial time. In 1994 Peter Shor showed that a quantum computer can factor an nnn-digit integer in time polynomial in nnn (Shor, SIAM J. Comput. 1997; conference version FOCS 1994). The algorithm has two parts. A classical reduction, due to Miller (1976), turns factoring into order finding: given xxx coprime to nnn, find the least r≥1r \ge 1r≥1 with xr≡1(modn)x^r \equiv 1 \pmod nxr≡1(modn). The quantum part solves order finding.

This mission formalizes the quantum part as Shor analyzes it in §5 of the journal paper: the construction of the quantum state, the probability of each measurement outcome, and the classical post-processing that reads rrr off the measured value. The paper's claim is that one run of this procedure returns rrr with probability at least φ(r)/3r\varphi(r)/3rφ(r)/3r.

Timeline:

  • 1976: Miller reduces factoring to order finding (with randomization).
  • 1985–1994: Deutsch, Bernstein–Vazirani and Simon give the quantum Fourier sampling ideas the algorithm builds on.
  • 1994: Shor's FOCS paper introduces the factoring and discrete logarithm algorithms.
  • 1997: the SIAM J. Comput. version gives the analysis formalized here, with qqq the power of 222 in [n2,2n2)[n^2, 2n^2)[n2,2n2).

Setting

Fix an integer n≥2n \ge 2n≥2 and an integer xxx coprime to nnn. Its order rrr is the least r≥1r \ge 1r≥1 with xr≡1(modn)x^r \equiv 1 \pmod nxr≡1(modn); since xxx is a unit, r≤φ(n)<nr \le \varphi(n) < nr≤φ(n)<n. Let q=2lq = 2^lq=2l be the power of 222 with n2≤q<2n2n^2 \le q < 2n^2n2≤q<2n2.

A quantum state on two registers, the first holding 0≤a<q0 \le a < q0≤a<q and the second a residue y∈Z/ny \in \mathbb{Z}/ny∈Z/n, is a complex vector ψ(a,y)\psi(a, y)ψ(a,y) indexed by the basis states ∣a,y⟩|a, y\rangle∣a,y⟩. Measuring it returns ∣a,y⟩|a, y\rangle∣a,y⟩ with probability ∣ψ(a,y)∣2|\psi(a, y)|^2∣ψ(a,y)∣2.

The Fourier matrix AqA_qAq​ is the q×qq \times qq×q matrix with entries (Aq)a,c=q−1/2exp⁡(2πiac/q)(A_q)_{a,c} = q^{-1/2}\exp(2\pi i a c/q)(Aq​)a,c​=q−1/2exp(2πiac/q), with rows indexing inputs and columns outputs. The algorithm

  1. prepares 1q1/2∑a=0q−1∣a⟩∣xa mod n⟩\frac{1}{q^{1/2}}\sum_{a=0}^{q-1}|a\rangle|x^a \bmod n\rangleq1/21​∑a=0q−1​∣a⟩∣xamodn⟩ (eq. (5.2)),
  2. applies AqA_qAq​ to the first register, obtaining 1q∑a,cexp⁡(2πiac/q)∣c⟩∣xa mod n⟩\frac1q\sum_{a,c}\exp(2\pi iac/q)|c\rangle|x^a \bmod n\rangleq1​∑a,c​exp(2πiac/q)∣c⟩∣xamodn⟩ (eq. (5.4)),
  3. measures, obtaining some ∣c,y⟩|c, y\rangle∣c,y⟩,
  4. rounds c/qc/qc/q to the nearest fraction with denominator smaller than nnn.

The observed ccc gives us rrr if some fraction with lowest-terms denominator below nnn is within 1/2q1/2q1/2q of c/qc/qc/q, and every such fraction has lowest-terms denominator exactly rrr. In the Lean development these objects are preFourierState, finalState, outcomeProb and yieldsOrder, in the namespace ShorAlgorithms.OrderFinding, and the shared definition ShorAlgorithms.Shared.fourierMatrix.

Formalization targets

Goal: success probability at least φ(r)/3r\varphi(r)/3rφ(r)/3r

For all sufficiently large nnn, with xxx, rrr and qqq as above,

Pr⁡[the observed c gives us r]  =  ∑c gives r ∑y∈Z/n∣Ψ(c,y)∣2  ≥  φ(r)3r,\Pr\bigl[\text{the observed } c \text{ gives us } r\bigr] \;=\; \sum_{c\ \text{gives}\ r}\ \sum_{y \in \mathbb{Z}/n} |\Psi(c, y)|^2 \;\ge\; \frac{\varphi(r)}{3r},Pr[the observed c gives us r]=c gives r∑​ y∈Z/n∑​∣Ψ(c,y)∣2≥3rφ(r)​,

where Ψ\PsiΨ is the state (5.4). The threshold on nnn is uniform in xxx and qqq; it is the paper's "for sufficiently large nnn" from the per-state bound.

Milestones

  1. Eqs. (5.5)–(5.6). For 0≤k<r0 \le k < r0≤k<r, the probability of ∣c,xk⟩|c, x^k\rangle∣c,xk⟩ equals ∣1q∑b=0⌊(q−k−1)/r⌋exp⁡(2πi(br+k)c/q)∣2\left|\frac1q\sum_{b=0}^{\lfloor (q-k-1)/r\rfloor}\exp(2\pi i(br+k)c/q)\right|^2​q1​∑b=0⌊(q−k−1)/r⌋​exp(2πi(br+k)c/q)​2.
  2. Eq. (5.11). For nnn past a threshold, every ∣c,xk⟩|c, x^k\rangle∣c,xk⟩ with −r/2≤rc−dq≤r/2-r/2 \le rc - dq \le r/2−r/2≤rc−dq≤r/2 for some integer ddd has probability at least 1/3r21/3r^21/3r2.
  3. Eq. (5.13). If n2≤qn^2 \le qn2≤q, at most one fraction with denominator below nnn lies within 1/2q1/2q1/2q of c/qc/qc/q.
  4. p. 1500. Such a fraction is a convergent of the continued fraction of c/qc/qc/q.
  5. p. 1501. At least φ(r)\varphi(r)φ(r) values of ccc are within 1/2q1/2q1/2q of some d/rd/rd/r with gcd⁡(d,r)=1\gcd(d, r) = 1gcd(d,r)=1; with the rrr distinct values of xkx^kxk this gives at least rφ(r)r\varphi(r)rφ(r) states ∣c,xk⟩|c, x^k\rangle∣c,xk⟩, and each such ccc gives us rrr.

Significance

The goal is the quantitative statement behind "order finding is in bounded-error quantum polynomial time": since φ(r)/r≥δ/log⁡log⁡r\varphi(r)/r \ge \delta/\log\log rφ(r)/r≥δ/loglogr for a constant δ\deltaδ (Hardy and Wright, Thm. 328), O(log⁡log⁡r)O(\log\log r)O(loglogr) repetitions find rrr with high probability, and Miller's reduction then factors nnn. Without the bound, the algorithm is a procedure with no guarantee.

The result is proved, in the paper and in textbooks (Nielsen and Chuang, 2000, §5.3), usually with a phase-estimation analysis rather than Shor's direct count. What this mission adds is a machine-checked proof of Shor's own argument, with his choice of qqq and his constants, starting from the state built by applying AqA_qAq​ to (5.2). Formal proofs of idealized versions exist elsewhere, for instance in the exact-period model where rrr divides qqq and the output is uniform on rrr peaks, but that model removes the approximation that the 1/3r21/3r^21/3r2 bound is about. Legendre's theorem on continued fractions is already on the platform (FamousTheorems.legendre_continued_fraction_theorem) and is included as a reference item.

Difficulty

The obvious route is to compute the output distribution in closed form. That works only when rrr divides qqq; here qqq is a power of 222 and rrr is arbitrary, so the amplitudes are geometric sums of ⌊(q−k−1)/r⌋+1\lfloor (q-k-1)/r\rfloor + 1⌊(q−k−1)/r⌋+1 terms whose phases do not cancel exactly. The per-state bound 1/3r21/3r^21/3r2 requires a lower bound on such a sum that is uniform in rrr, ccc and kkk, with error terms of order 1/q1/q1/q controlled against a main term of order 1/r21/r^21/r2. The constant 1/31/31/3 leaves only a small margin below the limiting value 4/π2≈0.4054/\pi^2 \approx 0.4054/π2≈0.405, so the errors must be bounded explicitly, not merely shown to vanish.

The second difficulty is the counting: distinct coprime numerators ddd must give distinct outcomes ccc in [0,q)[0, q)[0,q), and each good ccc must determine rrr uniquely, which uses r<nr < nr<n and n2≤qn^2 \le qn2≤q.

Formalization scope

Conventions the statements commit to:

  • States are functions Fin q × ZMod n → ℂ; the matrix convention is row = input, so applying AqA_qAq​ to the first register gives the amplitude ∑aψ(a,y)(Aq)a,c\sum_a \psi(a, y)(A_q)_{a,c}∑a​ψ(a,y)(Aq​)a,c​ at (c,y)(c, y)(c,y).
  • The final state is built by applying AqA_qAq​ to the state (5.2); the closed forms (5.5) and (5.6) are theorems, not definitions. No normalization hypothesis is assumed.
  • Probabilities are squared moduli; the probability of the event "ccc gives us rrr" sums over all y∈Z/ny \in \mathbb{Z}/ny∈Z/n, which is exact because yyy that are not powers of xxx have probability zero.
  • xxx is a natural number with gcd⁡(x,n)=1\gcd(x, n) = 1gcd(x,n)=1; rrr is orderOf (x : ZMod n). qqq enters through the three hypotheses q=2lq = 2^lq=2l, n2≤qn^2 \le qn2≤q, q<2n2q < 2n^2q<2n2, not through a function of nnn.
  • Fractions are rationals, and "in lowest terms" is Rat.den.
  • Thresholds "for sufficiently large nnn" are ∃N, ∀n≥N\exists N,\ \forall n \ge N∃N, ∀n≥N, with NNN quantified before xxx, qqq, ccc and kkk.
  • Condition (5.11) is stated in its equivalent form (5.12), with an integer ddd.
  • Printed slip. Eq. (5.13)'s justification says "Because q>n2q > n^2q>n2", but qqq was chosen with n2≤qn^2 \le qn2≤q, and q=n2q = n^2q=n2 when nnn is a power of 222. The uniqueness claim holds under n2≤qn^2 \le qn2≤q, and that is what is stated.

Typing the closed form (5.4)–(5.6) in as the definition of the final state would make milestone 1 trivial and hide whether the probability model is the paper's; the definitions exclude this by construction.

Not stated: the polynomial running time of any step, the O(log⁡log⁡r)O(\log\log r)O(loglogr) repetition count (no explicit constant), the reversible modular exponentiation of §3, and the post-processing heuristics on p. 1501. Needed infrastructure: bounds on geometric exponential sums, Euler's totient, Diophantine approximation by fractions with bounded denominator, and Mathlib's continued fractions. Lemmas on geometric sums of roots of unity and on the order of units mod nnn are reusable in the companion discrete logarithm mission.

Selected references

  • P. W. Shor, Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer, SIAM J. Comput. 26(5):1484–1509, 1997. https://doi.org/10.1137/S0097539795293172
  • P. W. Shor, Algorithms for quantum computation: discrete logarithms and factoring, Proc. 35th FOCS, 1994. https://doi.org/10.1109/SFCS.1994.365700
  • G. L. Miller, Riemann's hypothesis and tests for primality, J. Comput. System Sci. 13(3):300–317, 1976. https://doi.org/10.1016/S0022-0000(76)80043-8
  • G. H. Hardy and E. M. Wright, An Introduction to the Theory of Numbers, 5th ed., Oxford, 1979 (Ch. X, continued fractions; Thm. 328).
  • M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information, Cambridge, 2000. https://doi.org/10.1017/CBO9780511976667
12 thms3 active usersReviewed
🏆Completed
Discrete GeometryLinear OptimizationOperations Research+1·Captain: mikedeng1

Maximal Lattice-Free Convex Sets in Linear Subspaces I: Characterization of Maximal Lattice-Free Convex Sets in a SubspaceResearch Paper

Motivation

Cutting planes for mixed-integer linear programs are often derived from convex sets that contain no integer point in their interior. Balas observed in 1971 that every such lattice-free convex set containing the current fractional LP solution in its interior yields a valid inequality, the intersection cut (Balas, Intersection cuts, Oper. Res. 19, 1971). The strongest cuts come from sets that are inclusionwise maximal, so the shape of maximal lattice-free convex sets matters to multi-row cut generation.

The case where the set lives in a subspace arises in practice. Taking qqq rows of an optimal simplex tableau restricts the integer points to an affine subspace f+Wf+Wf+W of Rq\mathbb R^qRq spanned by the tableau columns. When WWW is irrational, its integer points span only a proper subspace V⊊WV\subsetneq WV⊊W. The classical theory does not cover this case, and it is the case that the second mission of this series (minimal valid inequalities of the relaxation Rf(W)R_f(W)Rf​(W)) needs.

Timeline.

  • Lovász (Geometry of numbers and integer programming, 1989) stated the characterization for rational subspaces (Proposition 3.1) and gave only a sketch of the proof. The irrational-hyperplane case is not visible in that sketch.
  • Basu, Conforti, Cornuéjols and Zambelli (arXiv:1701.06543v1; Math. Oper. Res. 35(3), 2010, doi:10.1287/moor.1100.0461) gave a complete proof of Lovász's theorem for an arbitrary lattice of a linear space (Theorem 10). They also extended it to a space WWW strictly larger than the span VVV of the lattice (Theorem 9, equivalently Theorem 1 for Zn\mathbb Z^nZn).

Setting

Work in Rn\mathbb R^nRn with the Euclidean inner product and the open balls Bε(x)B_\varepsilon(x)Bε​(x). For X⊆RnX\subseteq\mathbb R^nX⊆Rn, ⟨X⟩\langle X\rangle⟨X⟩ denotes its linear span.

A lattice of a linear space VVV is an additive group Λ={λ1a1+⋯+λmam∣λi∈Z}\Lambda=\{\lambda_1a_1+\dots+\lambda_ma_m\mid\lambda_i\in\mathbb Z\}Λ={λ1​a1​+⋯+λm​am​∣λi​∈Z} generated by linearly independent vectors a1,…,ama_1,\dots,a_ma1​,…,am​ with ⟨a1,…,am⟩=V\langle a_1,\dots,a_m\rangle=V⟨a1​,…,am​⟩=V (Definition 6, IsLatticeOf Λ V). A linear subspace L⊆VL\subseteq VL⊆V is a Λ\LambdaΛ-subspace if it has a basis contained in Λ\LambdaΛ (Definition 7, IsLambdaSubspace Λ V L). For Z2\mathbb Z^2Z2, the line x2=2x1x_2=2x_1x2​=2x1​ is a Λ\LambdaΛ-subspace and the line x2=2x1x_2=\sqrt2x_1x2​=2​x1​ is not.

For sets W,SW,SW,S the interior relative to WWW is intW(S)={x∈S∣Bε(x)∩W⊆S for some ε>0}\mathbf{int}_W(S)=\{x\in S\mid B_\varepsilon(x)\cap W\subseteq S\text{ for some }\varepsilon>0\}intW​(S)={x∈S∣Bε​(x)∩W⊆S for some ε>0} (intW W S). The relative interior is relint(S)=intaff⁡(S)(S)\mathbf{relint}(S)=\mathbf{int}_{\operatorname{aff}(S)}(S)relint(S)=intaff(S)​(S).

Let W⊇VW\supseteq VW⊇V be a linear space. A set SSS is a Λ\LambdaΛ-free convex set of WWW if S⊆WS\subseteq WS⊆W, SSS is convex and Λ∩intW(S)=∅\Lambda\cap\mathbf{int}_W(S)=\emptysetΛ∩intW​(S)=∅. It is maximal if no other Λ\LambdaΛ-free convex set of WWW properly contains it (Definition 8, IsLambdaFree, IsMaxLambdaFree).

The statements also use a polyhedron in WWW (WWW intersected with finitely many closed half-spaces), a polytope (convex hull of a finite set), the dimension dim⁡(S)\dim(S)dim(S) of the affine hull with dim⁡∅=−1\dim\emptyset=-1dim∅=−1 (affDim), and a facet: a nonempty face S∩{⟨a,x⟩=b}S\cap\{\langle a,x\rangle=b\}S∩{⟨a,x⟩=b} of a valid inequality with dim⁡F=dim⁡S−1\dim F=\dim S-1dimF=dimS−1. The recession cone is rec⁡(S)={r∣x+tr∈S ∀x∈S, t≥0}\operatorname{rec}(S)=\{r\mid x+tr\in S\ \forall x\in S,\ t\ge0\}rec(S)={r∣x+tr∈S ∀x∈S, t≥0} and the lineality space is rec⁡(S)∩−rec⁡(S)\operatorname{rec}(S)\cap-\operatorname{rec}(S)rec(S)∩−rec(S).

Formalization targets

Goal: Theorem 9 (p. 8)

For a lattice Λ\LambdaΛ of VVV and a linear space W⊇VW\supseteq VW⊇V with dim⁡W≥1\dim W\ge1dimW≥1, a set SSS is a maximal Λ\LambdaΛ-free convex set of WWW if and only if

(i) S is a full-dimensional polyhedron in W, S∩V is maximal Λ-free in V, F↦F∩V is a bijection of facets;\text{(i) } S \text{ is a full-dimensional polyhedron in } W,\ S\cap V \text{ is maximal } \Lambda\text{-free in } V,\ F\mapsto F\cap V \text{ is a bijection of facets};(i) S is a full-dimensional polyhedron in W, S∩V is maximal Λ-free in V, F↦F∩V is a bijection of facets; (ii) S=v+L is a hyperplane of W with L∩V a hyperplane of V that is not a Λ-subspace;\text{(ii) } S=v+L \text{ is a hyperplane of } W \text{ with } L\cap V \text{ a hyperplane of } V \text{ that is not a } \Lambda\text{-subspace};(ii) S=v+L is a hyperplane of W with L∩V a hyperplane of V that is not a Λ-subspace; (iii) S is a half-space of W containing V on its boundary.\text{(iii) } S \text{ is a half-space of } W \text{ containing } V \text{ on its boundary.}(iii) S is a half-space of W containing V on its boundary.

Main milestone: Theorem 10 (p. 8)

For dim⁡V≥1\dim V\ge1dimV≥1, SSS is a maximal Λ\LambdaΛ-free convex set of VVV if and only if either S=P+LS=P+LS=P+L is a polyhedron with PPP a polytope, LLL a Λ\LambdaΛ-subspace and dim⁡S=dim⁡P+dim⁡L=dim⁡V\dim S=\dim P+\dim L=\dim VdimS=dimP+dimL=dimV, with no lattice point in intV(S)\mathbf{int}_V(S)intV​(S) and a lattice point in the relative interior of every facet; or S=v+LS=v+LS=v+L is an affine hyperplane of VVV whose direction LLL is not a Λ\LambdaΛ-subspace.

Supporting milestones

Lemma 13 (bounded full-dimensional case), Lemma 15 (lattice points near half-lines), Lemma 16 (S+⟨rec⁡S⟩S+\langle\operatorname{rec}S\rangleS+⟨recS⟩ stays Λ\LambdaΛ-free), Lemma 17 (projection along a Λ\LambdaΛ-subspace is a lattice), Lemma 18 (lattice points near non-lattice subspaces), Lemma 19 (maximal hyperplanes), Claims 1 and 2 in the proof of Theorem 10, and identity (6), intW(S)∩V=intV(S∩V)\mathbf{int}_W(S)\cap V=\mathbf{int}_V(S\cap V)intW​(S)∩V=intV​(S∩V).

Significance

Theorem 10 says that maximal lattice-free sets are cylinders over polytopes with a lattice point on every facet, apart from the irrational hyperplanes. This is the structural fact behind the finiteness of facet counts (at most 2dim⁡P2^{\dim P}2dimP) and behind every classification of maximal lattice-free sets in low dimension, such as the triangles and quadrilaterals of the two-row relaxation. Theorem 9 extends it to irrational subspaces. There the new cases are the half-spaces of (iii), which have VVV on their boundary, and the hyperplanes of (ii), whose trace on VVV is a hyperplane of VVV that is not a Λ\LambdaΛ-subspace. Theorem 9 is the geometric input to the paper's Theorem 3: every minimal valid inequality of Rf(W)R_f(W)Rf​(W) is the gauge of a maximal lattice-free convex set of f+Wf+Wf+W.

These results are proved on paper. No machine-checked version of Lovász's theorem, of Theorem 9, or of the lattice-approximation Lemmas 15 and 18 is known to exist. The mission produces the definitions of lattices of subspaces, relative interiors and lattice-free sets on which the second mission of the series builds.

Difficulty

The obvious argument separates each lattice point from SSS by a half-space and intersects the half-spaces. It gives a polyhedron only when finitely many lattice points matter, that is, when SSS is bounded. For unbounded SSS, the recession directions must be shown to be lineality directions and to be spanned by lattice vectors. Both steps rest on simultaneous Diophantine approximation (Dirichlet's theorem) applied in irrational directions, and on a density argument for the projected lattice when the lineality space is not a Λ\LambdaΛ-subspace. In the subspace setting of Theorem 9, one must also track the interiors relative to WWW and to VVV separately. Identity (6) holds only when intW(S)\mathbf{int}_W(S)intW​(S) meets VVV, and the half-space case (iii) is exactly the case where it does not.

Formalization scope

Rn\mathbb R^nRn is EuclideanSpace ℝ (Fin n), linear spaces are Submodule ℝ, and Λ\LambdaΛ is an AddSubgroup. All declarations live in the namespace MaxLatticeFree.Geometry. Every interior is relative (intW, relint). With the ambient topological interior, every subset of a proper subspace would be trivially lattice-free, and the classification would collapse. A lattice must have a linearly independent generating family; a dense finitely generated subgroup such as Z+2Z\mathbb Z+\sqrt2\mathbb ZZ+2​Z is excluded. Dimensions are integers with dim⁡∅=−1\dim\emptyset=-1dim∅=−1, and facets are nonempty, so no dimension equation holds through truncated subtraction.

Two readings of the page are fixed.

  1. Theorem 9 assumes dim⁡W≥1\dim W\ge1dimW≥1 and Theorem 10 assumes dim⁡V≥1\dim V\ge1dimV≥1. For W=V={0}W=V=\{0\}W=V={0} the only maximal set is ∅\emptyset∅, which satisfies none of the listed cases, so the printed statements are false there.
  2. Identity (6) is stated under the three hypotheses its proof uses, not inside the case analysis of Theorem 9.

The paper's Theorem 1 (the same result for Zn\mathbb Z^nZn and affine WWW) is not included, and neither are the cited results of Barvinok and Dirichlet (Theorems 11, 14, Corollary 12). They are welcome as supporting lemmas. Infrastructure that is useful beyond this mission includes Dirichlet's simultaneous approximation theorem in Rm\mathbb R^mRm, discreteness of lattices of subspaces, and the relation between intW/relint and Mathlib's intrinsicInterior.

Selected references

  • A. Basu, M. Conforti, G. Cornuéjols, G. Zambelli, Maximal lattice-free convex sets in linear subspaces, Math. Oper. Res. 35(3), 2010; arXiv:1701.06543v1. https://arxiv.org/abs/1701.06543
  • L. Lovász, Geometry of numbers and integer programming, in: Mathematical Programming: Recent Developments and Applications, 1989, pp. 177–210.
  • E. Balas, Intersection cuts — a new type of cutting planes for integer programming, Oper. Res. 19, 1971. https://doi.org/10.1287/opre.19.1.19
  • A. Barvinok, A Course in Convexity, Graduate Studies in Mathematics 54, AMS, 2002. https://doi.org/10.1090/gsm/054
18 thms3 active usersReviewed
🏆Completed
CombinatoricsGraph TheoryTheoretical Computer Science·Captain: mikedeng1

Fast Algorithms for Finding Nearest Common Ancestors II: Nearest Common Ancestors in a Complete Binary Tree by Symmetric-Order ArithmeticResearch Paper

Motivation

The nearest common ancestor (nca) problem asks, for a fixed rooted tree and a sequence of vertex pairs (v,w)(v, w)(v,w), for the deepest vertex that is an ancestor of both. It is a basic step in suffix-tree string algorithms and is equivalent to range-minimum queries (Bender, Farach-Colton, 2000). Harel and Tarjan, Fast Algorithms for Finding Nearest Common Ancestors, SIAM J. Comput. 13 (1984) 338–355, gave the first algorithm answering each query on a static tree in constant time on a random-access machine after linear preprocessing.

Their construction reduces the general problem to the case of a complete binary tree, where §3 of the paper shows that nca queries can be answered "by direct calculation" on vertex numbers: multiplication, division, powers of two, the base-two logarithm and bitwise exclusive or. The later simplification of Schieber and Vishkin (1988) is built on the same in-order numbering of a complete binary tree. This mission formalizes that arithmetic core.

Timeline, as reviewed in the paper's §1 (pp. 338–340):

  • 1976: Aho, Hopcroft and Ullman (SIAM J. Comput. 5) give an O(n+mα(m+n,n))O(n + m\alpha(m+n, n))O(n+mα(m+n,n))-time off-line algorithm on a pointer machine, and for static trees a random-access algorithm with O(nlog⁡log⁡n)O(n \log\log n)O(nloglogn) preprocessing and O(log⁡log⁡n)O(\log\log n)O(loglogn) time per query.
  • 1976: van Leeuwen (unpublished report) gives an O(n+mlog⁡log⁡n)O(n + m \log\log n)O(n+mloglogn)-time algorithm for linking roots and static trees that runs on a pointer machine in O(n)O(n)O(n) space.
  • 1980: Harel (Proc. 21st FOCS) gives a preliminary version of the paper's results.
  • 1984: Harel and Tarjan prove that pointer machines need Ω(log⁡log⁡n)\Omega(\log\log n)Ω(loglogn) time per query on static trees (Theorem 1), and give the O(n)O(n)O(n)-preprocessing, O(1)O(1)O(1)-query random-access algorithm whose base case is the subject of this mission.

Setting

Fix d≥0d \ge 0d≥0 and let TTT be the complete binary tree of depth ddd. A vertex is identified with the path from the root to it, a word of at most ddd left or right turns; the root is the empty word and TTT has n=2d+1−1n = 2^{d+1} - 1n=2d+1−1 vertices. Following the paper's Appendix (pp. 354–355):

  • www is an ancestor of vvv (vvv a descendant of www) if the word www is a prefix of the word vvv; every vertex is its own ancestor. vvv and www are unrelated if neither is an ancestor of the other.
  • The depth of vvv is its distance to the root; its height h(v)h(v)h(v) is the length of the longest path from a leaf to vvv, which in TTT is d−depth⁡(v)d - \operatorname{depth}(v)d−depth(v).
  • nca⁡(v,w)\operatorname{nca}(v, w)nca(v,w) is the vertex of greatest depth that is an ancestor of both: the longest common prefix.

The vertices of TTT are numbered from 111 to nnn in symmetric order (in-order): at every vertex, first the left subtree, then the vertex, then the right subtree. sym(v)\mathrm{sym}(v)sym(v) is the number of vvv and sym−1(i)\mathrm{sym}^{-1}(i)sym−1(i) the vertex numbered iii. For d=4d = 4d=4 (Fig. 1 of the paper) the root is 161616, its children 888 and 242424, and the leaves 1,3,5,…,311, 3, 5, \dots, 311,3,5,…,31. i⊕ji \oplus ji⊕j denotes bitwise exclusive or and lg⁡\lglg the base-two logarithm.

Two procedures of §3 use only numbers, heights and ddd:

  • the nca depth algorithm: return d−h(v)d - h(v)d−h(v) if sym(w)∈[sym(v)−2h(v)+1,sym(v)+2h(v)−1]\mathrm{sym}(w) \in [\mathrm{sym}(v) - 2^{h(v)} + 1, \mathrm{sym}(v) + 2^{h(v)} - 1]sym(w)∈[sym(v)−2h(v)+1,sym(v)+2h(v)−1]; else d−h(w)d - h(w)d−h(w) if the same holds with v,wv, wv,w exchanged; else d−⌊lg⁡(sym(v)⊕sym(w))⌋d - \lfloor \lg(\mathrm{sym}(v) \oplus \mathrm{sym}(w)) \rfloord−⌊lg(sym(v)⊕sym(w))⌋;
  • the depth algorithm: given vvv and a depth d2≤depth⁡(v)d_2 \le \operatorname{depth}(v)d2​≤depth(v), with h=d−d2h = d - d_2h=d−d2​, return sym−1(2h+1⌊sym(v)/2h+1⌋+2h)\mathrm{sym}^{-1}\bigl(2^{h+1}\lfloor \mathrm{sym}(v)/2^{h+1}\rfloor + 2^h\bigr)sym−1(2h+1⌊sym(v)/2h+1⌋+2h).

Formalization targets

Goal: the nca algorithm is correct

The algorithm to compute nca⁡(v,w)\operatorname{nca}(v,w)nca(v,w) (p. 342) runs the nca depth algorithm to obtain d0d_0d0​ and then the depth algorithm on (v,d0)(v, d_0)(v,d0​). The goal states that it returns the nearest common ancestor: for all vertices v,wv, wv,w of TTT, with d0d_0d0​ the output of the nca depth algorithm and h=d−d0h = d - d_0h=d−d0​,

sym(nca⁡(v,w))=2h+1⌊sym(v)2h+1⌋+2h.\mathrm{sym}(\operatorname{nca}(v,w)) = 2^{h+1}\left\lfloor \frac{\mathrm{sym}(v)}{2^{h+1}} \right\rfloor + 2^h .sym(nca(v,w))=2h+1⌊2h+1sym(v)​⌋+2h.

Milestones

In the order the paper uses them:

  1. Numbers at height hhh (p. 341): the vertices of height hhh are numbered 2h,3⋅2h,5⋅2h,…2^h, 3\cdot 2^h, 5\cdot 2^h, \dots2h,3⋅2h,5⋅2h,… from left to right.
  2. Lemma 1: h(v)h(v)h(v) is the largest hhh with 2h∣sym(v)2^h \mid \mathrm{sym}(v)2h∣sym(v).
  3. Lemma 2: the descendants of vvv are the vertices numbered in [sym(v)−2h(v)+1,sym(v)+2h(v)−1][\mathrm{sym}(v) - 2^{h(v)} + 1, \mathrm{sym}(v) + 2^{h(v)} - 1][sym(v)−2h(v)+1,sym(v)+2h(v)−1].
  4. Lemma 3: for a height h≥h(v)h \ge h(v)h≥h(v), the height-hhh ancestor of vvv has number 2h+1⌊sym(v)/2h+1⌋+2h2^{h+1}\lfloor \mathrm{sym}(v)/2^{h+1}\rfloor + 2^h2h+1⌊sym(v)/2h+1⌋+2h.
  5. Lemma 4: for unrelated v,wv, wv,w,
h(nca⁡(v,w))=⌊lg⁡(sym(v)⊕sym(w))⌋.h(\operatorname{nca}(v,w)) = \lfloor \lg(\mathrm{sym}(v) \oplus \mathrm{sym}(w)) \rfloor .h(nca(v,w))=⌊lg(sym(v)⊕sym(w))⌋.
  1. The nca depth algorithm returns depth⁡(nca⁡(v,w))\operatorname{depth}(\operatorname{nca}(v,w))depth(nca(v,w)).
  2. The depth algorithm returns the number of the depth-d2d_2d2​ ancestor of vvv.

Two supporting statements pin the definitions to the paper: sym\mathrm{sym}sym is a bijection onto {1,…,2d+1−1}\{1, \dots, 2^{d+1} - 1\}{1,…,2d+1−1}, and the longest common prefix is the deepest common ancestor.

Significance

The constant-time nca computation on complete binary trees is the base case of the whole paper: §§4–5 embed an arbitrary tree into a moderately sized complete binary tree through a compressed tree and a balanced binary tree, and every query ends with the arithmetic of §3. The same idea, that in-order numbers encode ancestry in their low-order bits, underlies the Schieber–Vishkin algorithm. Lemma 1 identifies the height with the 2-adic valuation of the number, and Lemma 4 identifies the nca height with the position of the highest differing bit.

The results are proved in the paper, with the proofs left as "easy to verify". No machine-checked version of this numbering or of these four lemmas is known to exist in Mathlib or on this platform. A formal development supplies proofs of the four lemmas and the two algorithms, and a reusable library connecting in-order ranks of a complete binary tree to binary arithmetic (Nat.log, bitwise xor, 2-adic valuation).

Difficulty

The numbering is defined by a traversal order, while the lemmas speak about divisibility, floor division and exclusive or. The work lies in connecting the rank of a vertex in symmetric order to its closed form (2j+1)⋅2h(v)(2j+1)\cdot 2^{h(v)}(2j+1)⋅2h(v), where jjj is its left-to-right position. That counting argument sums the sizes of the subtrees that precede vvv and is where most of the effort goes. Lemma 4 then needs the observation that two unrelated numbers agree in all bits above the height of their nca and differ in the bit at that height. This is a statement about Nat.testBit of the exclusive or, and it fails for related vertices. The algorithm statements add a case analysis whose first two cases overlap when v=wv = wv=w.

Formalization scope

  • A vertex of the tree of depth ddd is a List Bool of length at most ddd (false = left). Ancestry is the prefix relation, nca⁡\operatorname{nca}nca the longest common prefix, depth the length, and height d−lengthd - \text{length}d−length. None of these structural notions uses the numbering.
  • sym(v)\mathrm{sym}(v)sym(v) is the number of vertices whose in-order sort key is lexicographically at most that of vvv. The key is the path with left ↦0\mapsto 0↦0, right ↦2\mapsto 2↦2, followed by 111. The numbering is not defined by the closed form or by a recursion on numbers: a definition of that kind would make the height-hhh numbering and Lemma 1 immediate and move the content of the mission into an uncheckable definition.
  • ⌊lg⁡x⌋\lfloor \lg x \rfloor⌊lgx⌋ is Nat.log 2 x, which agrees for x≥1x \ge 1x≥1. ⊕\oplus⊕ is ^^^ on N\mathbb NN, and floor division is / on N\mathbb NN.
  • Interval tests a∈[b−c+1,b+c−1]a \in [b - c + 1, b + c - 1]a∈[b−c+1,b+c−1] are written additively as b+1≤a+cb + 1 \le a + cb+1≤a+c and a+1≤b+ca + 1 \le b + ca+1≤b+c. The subtractions d−h(v)d - h(v)d−h(v) and d−d2d - d_2d−d2​ never truncate for heights and depths of vertices.
  • Lemma 3 states explicitly that h≤dh \le dh≤d ("hhh is a height") and that the ancestor exists. The depth algorithm assumes d2≤depth⁡(v)d_2 \le \operatorname{depth}(v)d2​≤depth(v), as printed.
  • sym−1\mathrm{sym}^{-1}sym−1 is not defined as a function. The goal and the depth algorithm state that a vertex has the computed number if and only if it is the nearest common ancestor (respectively the ancestor at depth d2d_2d2​), which says that sym−1\mathrm{sym}^{-1}sym−1 of that number is that vertex.
  • The O(1)O(1)O(1) time bounds are not formalized, since the random-access machine model is out of scope.

Proofs of any milestone are welcome.

Selected references

  • D. Harel and R. E. Tarjan, Fast Algorithms for Finding Nearest Common Ancestors, SIAM J. Comput. 13(2) (1984), 338–355. https://doi.org/10.1137/0213024
  • A. V. Aho, J. E. Hopcroft and J. D. Ullman, On Finding Lowest Common Ancestors in Trees, SIAM J. Comput. 5(1) (1976), 115–132. https://doi.org/10.1137/0205011
  • B. Schieber and U. Vishkin, On Finding Lowest Common Ancestors: Simplification and Parallelization, SIAM J. Comput. 17(6) (1988), 1253–1262. https://doi.org/10.1137/0217079
  • M. A. Bender and M. Farach-Colton, The LCA Problem Revisited, LATIN 2000, LNCS 1776, 88–94. https://doi.org/10.1007/10719839_9
11 thms3 active usersReviewed
🏆Completed
AnalysisMathematical Physics·Captain: Lucas

String Theory (Tong) III: Modular Invariance of the One-Loop Partition FunctionTextbook

Motivation

At one loop, the worldsheet of a closed string is a torus, and the one-loop vacuum amplitude of the bosonic string is an integral over all conformally inequivalent tori. Two tori with modular parameters τ\tauτ and τ′\tau'τ′ are equivalent exactly when τ′=(aτ+b)/(cτ+d)\tau'=(a\tau+b)/(c\tau+d)τ′=(aτ+b)/(cτ+d) for an integer matrix of determinant one, so a consistent string amplitude must be built from SL(2,Z)SL(2,\mathbb Z)SL(2,Z)-invariant data. In David Tong's Cambridge Part III lecture notes (Section 6.4), the partition function of the bosonic string is computed in lightcone gauge and written in terms of the Dedekind eta function; the notes then observe that the measure and the integrand are individually modular invariant. This invariance is the mechanism by which string theory avoids the ultraviolet divergences of point-particle loops: the integration region is a fundamental domain that never reaches Im⁡τ→0\operatorname{Im}\tau\to0Imτ→0 (Polchinski 1986).

Setting

Write H={τ∈C:Im⁡τ>0}\mathbb H=\{\tau\in\mathbb C:\operatorname{Im}\tau>0\}H={τ∈C:Imτ>0}. A modular transformation is the map

τ⟼γτ=aτ+bcτ+d,a,b,c,d∈Z,ad−bc=1,(6.19)\tau\longmapsto \gamma\tau=\frac{a\tau+b}{c\tau+d},\qquad a,b,c,d\in\mathbb Z,\quad ad-bc=1, \qquad (6.19)τ⟼γτ=cτ+daτ+b​,a,b,c,d∈Z,ad−bc=1,(6.19)

generated by T:τ↦τ+1T:\tau\mapsto\tau+1T:τ↦τ+1 and S:τ↦−1/τS:\tau\mapsto-1/\tauS:τ↦−1/τ. With q=e2πiτq=e^{2\pi i\tau}q=e2πiτ the Dedekind eta function is

η(τ)=q1/24∏n=1∞(1−qn)=e2πiτ/24∏n=1∞(1−e2πinτ),\eta(\tau)=q^{1/24}\prod_{n=1}^\infty(1-q^n)=e^{2\pi i\tau/24}\prod_{n=1}^\infty\bigl(1-e^{2\pi i n\tau}\bigr),η(τ)=q1/24n=1∏∞​(1−qn)=e2πiτ/24n=1∏∞​(1−e2πinτ),

convergent and non-vanishing on H\mathbb HH. The partition function of a single free scalar field on the torus is, up to constant factors, (6.20)

Zscalar(τ)=1Im⁡τ 1∣η(τ)∣2,Z_{\text{scalar}}(\tau)=\frac{1}{\sqrt{\operatorname{Im}\tau}}\,\frac{1}{|\eta(\tau)|^{2}},Zscalar​(τ)=Imτ​1​∣η(τ)∣21​,

and the bosonic string partition function is

Zstring=∫Fd2τ(Im⁡τ)2  F(τ),F(τ)=(1Im⁡τ1η(τ) η(τ)‾)24=1(Im⁡τ)12 ∣η(τ)∣48,Z_{\text{string}}=\int_{\mathcal F}\frac{d^2\tau}{(\operatorname{Im}\tau)^2}\;F(\tau),\qquad F(\tau)=\left(\frac{1}{\sqrt{\operatorname{Im}\tau}}\frac{1}{\eta(\tau)\,\overline{\eta(\tau)}}\right)^{24}=\frac{1}{(\operatorname{Im}\tau)^{12}\,|\eta(\tau)|^{48}},Zstring​=∫F​(Imτ)2d2τ​F(τ),F(τ)=(Imτ​1​η(τ)η(τ)​1​)24=(Imτ)12∣η(τ)∣481​,

where F={∣τ∣≥1, ∣Re⁡τ∣≤12}\mathcal F=\{|\tau|\ge1,\ |\operatorname{Re}\tau|\le\tfrac12\}F={∣τ∣≥1, ∣Reτ∣≤21​} is the standard fundamental domain.

Formalization targets

Goal: the string integrand is modular invariant

For every τ∈H\tau\in\mathbb Hτ∈H and all a,b,c,d∈Za,b,c,d\in\mathbb Za,b,c,d∈Z with ad−bc=1ad-bc=1ad−bc=1,

F ⁣(aτ+bcτ+d)=F(τ).F\!\left(\frac{a\tau+b}{c\tau+d}\right)=F(\tau).F(cτ+daτ+b​)=F(τ).

Milestones (Section 6.4, in the order of the notes)

  1. SSS and TTT generate SL(2,Z)SL(2,\mathbb Z)SL(2,Z).
  2. Every τ∈H\tau\in\mathbb Hτ∈H is mapped into F\mathcal FF by some modular transformation.
  3. Im⁡(γτ)=Im⁡τ/∣cτ+d∣2\operatorname{Im}(\gamma\tau)=\operatorname{Im}\tau/|c\tau+d|^2Im(γτ)=Imτ/∣cτ+d∣2 and d(γτ)/dτ=1/(cτ+d)2d(\gamma\tau)/d\tau=1/(c\tau+d)^2d(γτ)/dτ=1/(cτ+d)2 (so d2τ↦d2τ/∣cτ+d∣4d^2\tau\mapsto d^2\tau/|c\tau+d|^4d2τ↦d2τ/∣cτ+d∣4).
  4. The measure d2τ/(Im⁡τ)2d^2\tau/(\operatorname{Im}\tau)^2d2τ/(Imτ)2 on H\mathbb HH is SL(2,Z)SL(2,\mathbb Z)SL(2,Z)-invariant.
  5. η(τ+1)=e2πi/24η(τ)\eta(\tau+1)=e^{2\pi i/24}\eta(\tau)η(τ+1)=e2πi/24η(τ).
  6. η(−1/τ)=−iτ η(τ)\eta(-1/\tau)=\sqrt{-i\tau}\,\eta(\tau)η(−1/τ)=−iτ​η(τ).
  7. ZscalarZ_{\text{scalar}}Zscalar​ is modular invariant.

Significance

The result. Modular invariance of the integrand is what makes the one-loop string amplitude well defined as an integral over the moduli space of tori, rather than over the whole upper half-plane: restricting to F\mathcal FF is only consistent because nothing depends on the representative. It is the first instance of a consistency condition that, in the superstring, constrains the allowed gauge groups and spectra.

Formalizing it. The eta transformation laws are classical (Apostol 1990, Ch. 3); Mathlib contains the definition of the eta function and results on SL(2,Z)SL(2,\mathbb Z)SL(2,Z) and its fundamental domain, but, to the mission author's knowledge, not the SSS-transformation law of η\etaη. The mission produces a self-contained formal statement of the physics claim "both the measure and the integrand are individually modular invariant" and asks for its proof; milestones 1–2 are expected to follow from existing Mathlib results, milestone 6 is the analytic core.

Difficulty

The TTT-law is immediate from the product. The SSS-law η(−1/τ)=−iτ η(τ)\eta(-1/\tau)=\sqrt{-i\tau}\,\eta(\tau)η(−1/τ)=−iτ​η(τ) is not visible from the product formula at all: it requires either Poisson summation / the Jacobi triple product for theta functions, or a Mellin-transform / Eisenstein-series argument (log⁡η\log\etalogη is an Eichler integral of E2E_2E2​), together with care about the branch of the square root. Passing from generators to all of SL(2,Z)SL(2,\mathbb Z)SL(2,Z) requires an induction on words in SSS and TTT in which the multiplier ∣cτ+d∣|c\tau+d|∣cτ+d∣ must be tracked.

Formalization scope

Points of H\mathbb HH are represented as complex numbers τ\tauτ with the hypothesis 0<Im⁡τ0<\operatorname{Im}\tau0<Imτ; a modular transformation is given by four integers with ad−bc=1ad-bc=1ad−bc=1 and acts by TongString.modularAction a b c d τ = (aτ+b)/(cτ+d). The eta function is defined directly by Tong's product formula as TongString.dedekindEta, using Mathlib's unconditional infinite product tprod. The square root in the SSS-law is the principal branch, (−iτ)1/2(-i\tau)^{1/2}(−iτ)1/2, which is the one intended since Re⁡(−iτ)>0\operatorname{Re}(-i\tau)>0Re(−iτ)>0. The invariant measure is formalized as the measure on C\mathbb CC with density (Im⁡τ)−2(\operatorname{Im}\tau)^{-2}(Imτ)−2 with respect to Lebesgue measure restricted to H\mathbb HH, and invariance as equality of push-forward measures. Constant prefactors that Tong explicitly drops (powers of α′\alpha'α′, 4π24\pi^24π2) are omitted. Because every statement is restricted to Im⁡τ>0\operatorname{Im}\tau>0Imτ>0, where η\etaη has no zeros, the reciprocal 1/∣η∣1/|\eta|1/∣η∣ is never a division by zero, so no statement is vacuous.

Selected references

  • D. Tong, String Theory, Cambridge Part III lecture notes, 2009, Sections 6.4.1–6.4.2. http://www.damtp.cam.ac.uk/user/tong/string.html (arXiv:0908.0333)
  • J. Polchinski, Evaluation of the one loop string path integral, Commun. Math. Phys. 104 (1986) 37. https://doi.org/10.1007/BF01210927
  • T. M. Apostol, Modular Functions and Dirichlet Series in Number Theory, 2nd ed., Springer GTM 41, 1990, Chapter 3. https://doi.org/10.1007/978-1-4612-0999-7
  • J.-P. Serre, A Course in Arithmetic, Springer GTM 7, 1973, Chapter VII.
12 thms3 active usersReviewed
🏆Completed
Harmonic Analysis·Captain: Lucas

Connes: Weil positivity and the Riemann zeta functionResearch Paper

Motivation

The Riemann hypothesis (RH) asserts that every zero of the Riemann zeta function ζ\zetaζ in the strip 0<Re⁡s<10 < \operatorname{Re} s < 10<Res<1 has Re⁡s=12\operatorname{Re} s = \tfrac12Res=21​. One of the few reformulations that turns RH into a positivity statement, rather than a statement about the location of points, goes back to A. Weil (1952): the explicit formula expresses a sum over the zeros of ζ\zetaζ as a sum of local contributions over the places of Q\mathbb{Q}Q, and RH is equivalent to the resulting functional being positive on elements of the form g⋆g∗g \star g^{*}g⋆g∗.

Connes' 1999 programme paper Noncommutative geometry and the Riemann zeta function takes this reformulation as its endpoint. It builds a geometric framework — the adele class space X=A/k∗X = \mathbb{A}/k^{*}X=A/k∗ carrying an action of the idele class group CkC_kCk​ — in which the explicit formula appears as a Lefschetz formula, the zeros of LLL-functions appear spectrally, and the paper's concluding assertion (§3, p. 22) is that the validity of the global trace formula implies, and is in fact equivalent to, positivity of the Weil distribution, i.e. RH for all LLL-functions with Grössencharakter.

This mission formalizes the arithmetic core of that endpoint in its simplest instance: the global field k=Qk = \mathbb{Q}k=Q with trivial Grössencharakter, so that the LLL-function is ζ\zetaζ itself. Concretely it asks for (i) the Riemann–Weil explicit formula for ζ\zetaζ in the shape of Connes' equation (11), and (ii) both directions of the equivalence between positivity of the resulting Weil distribution and RH.

A rough timeline of the statements involved: Riemann (1859) gave the first explicit formula; von Mangoldt (1895) proved it rigorously; Weil (Sur les "formules explicites" de la théorie des nombres premiers, 1952) extended it to all global fields and isolated the positivity criterion; Bombieri (Remarks on Weil's quadratic functional in the theory of prime numbers, 2000) studied the associated quadratic functional in detail; Connes (1996–1999) gave the trace-formula interpretation formalized in part here.

Setting

All objects live on the group R+∗\mathbb{R}^{*}_{+}R+∗​, the module of the idele class group of Q\mathbb{Q}Q, written additively through u=etu = e^{t}u=et, d∗u=dtd^{*}u = dtd∗u=dt.

A test function is a map g:R→Cg : \mathbb{R} \to \mathbb{C}g:R→C that is C∞C^{\infty}C∞ and has compact support (IsTest).

Its transform is

g^(z)  =  ∫Rg(t) e(z−1/2) t dt,\widehat{g}(z) \;=\; \int_{\mathbb{R}} g(t)\, e^{(z - 1/2)\,t}\, dt ,g​(z)=∫R​g(t)e(z−1/2)tdt,

which is Connes' h^(z)=∫Ckh(u) ∣u∣z d∗u\widehat h(z) = \int_{C_k} h(u)\,|u|^{z}\,d^{*}uh(z)=∫Ck​​h(u)∣u∣zd∗u in the coordinate u=etu = e^{t}u=et, shifted by 12\tfrac1221​ so that zzz is the variable of ζ\zetaζ (mellinHat). On the critical line, g^(12+ir)=∫Rg(t)eirt dt\widehat{g}(\tfrac12 + i r) = \int_{\mathbb{R}} g(t) e^{irt}\,dtg​(21​+ir)=∫R​g(t)eirtdt is the ordinary Fourier transform.

The involution is g∗(t)=g(−t)‾g^{*}(t) = \overline{g(-t)}g∗(t)=g(−t)​, i.e. h∗(u)=h(u−1)‾h^{*}(u) = \overline{h(u^{-1})}h∗(u)=h(u−1)​ (starInv), and convolution is (g1⋆g2)(t)=∫Rg1(s) g2(t−s) ds(g_1 \star g_2)(t) = \int_{\mathbb{R}} g_1(s)\, g_2(t-s)\, ds(g1​⋆g2​)(t)=∫R​g1​(s)g2​(t−s)ds (conv).

The Weil distribution of a test function ggg collects the pole terms, the finite places and the archimedean place:

W(g)  =  g^(0)+g^(1)  −  ∑n≥2Λ(n)n(g(log⁡n)+g(−log⁡n))  +  12π∫Rg^(12+ir)(Re⁡ψ(14+ir2)−log⁡π)dr,W(g) \;=\; \widehat{g}(0) + \widehat{g}(1) \;-\; \sum_{n \ge 2} \frac{\Lambda(n)}{\sqrt{n}}\bigl(g(\log n) + g(-\log n)\bigr) \;+\; \frac{1}{2\pi}\int_{\mathbb{R}} \widehat{g}\left(\tfrac12 + ir\right)\Bigl(\operatorname{Re}\psi\left(\tfrac14 + \tfrac{ir}{2}\right) - \log \pi\Bigr) dr ,W(g)=g​(0)+g​(1)−n≥2∑​n​Λ(n)​(g(logn)+g(−logn))+2π1​∫R​g​(21​+ir)(Reψ(41​+2ir​)−logπ)dr,

where Λ\LambdaΛ is the von Mangoldt function and ψ=Γ′/Γ\psi = \Gamma'/\Gammaψ=Γ′/Γ (weilDistribution, with the three pieces named mellinHat, primeSum, archTerm). The middle sum is Weil's contribution of the finite places v=pv = pv=p, the last integral the contribution of the real place.

The spectral side is

Z(g)  =  ∑ρmρ g^(ρ),Z(g) \;=\; \sum_{\rho} m_{\rho}\, \widehat{g}(\rho),Z(g)=ρ∑​mρ​g​(ρ),

the sum over the zeros ρ\rhoρ of ζ\zetaζ with 0<Re⁡ρ<10 < \operatorname{Re}\rho < 10<Reρ<1, each counted with its multiplicity mρm_\rhomρ​ (zeroSum, IsCriticalZero, zeroMult).

Formalization targets

Goal — positivity of the Weil distribution implies RH

(∀ g test:  Re⁡W(g⋆g∗)≥0)  ⟹  (∀ρ, ζ(ρ)=0, 0<Re⁡ρ<1  ⇒  Re⁡ρ=12).\Bigl(\forall\, g \text{ test}:\; \operatorname{Re} W\bigl(g \star g^{*}\bigr) \ge 0\Bigr) \;\Longrightarrow\; \bigl(\forall \rho,\ \zeta(\rho) = 0,\ 0 < \operatorname{Re}\rho < 1 \;\Rightarrow\; \operatorname{Re}\rho = \tfrac12\bigr).(∀g test:ReW(g⋆g∗)≥0)⟹(∀ρ, ζ(ρ)=0, 0<Reρ<1⇒Reρ=21​).

This is the direction that yields RH, and it is the weakest form of the endpoint of the paper: it fixes no rate, no test-function normalization beyond Cc∞C_c^{\infty}Cc∞​, and no numerical constant.

Milestone — the explicit formula (Connes (11))

∑ρmρ g^(ρ)  =  W(g)for every test function g,\sum_{\rho} m_\rho\,\widehat g(\rho) \;=\; W(g) \qquad \text{for every test function } g,ρ∑​mρ​g​(ρ)=W(g)for every test function g,

with the sum over zeros asserted to be (unconditionally) summable.

Milestone — the converse direction

RH  ⟹  ∀ g test: Re⁡W(g⋆g∗)≥0.\text{RH} \;\Longrightarrow\; \forall\, g \text{ test}:\ \operatorname{Re} W\bigl(g \star g^{*}\bigr) \ge 0 .RH⟹∀g test: ReW(g⋆g∗)≥0.

Together with the goal this is the equivalence asserted on p. 22 of the paper, in the case k=Qk = \mathbb{Q}k=Q, trivial Grössencharakter.

Supporting statements

The ∗*∗-identity g⋆g∗^(12+ir)=∣g^(12+ir)∣2\widehat{g \star g^{*}}\left(\tfrac12 + ir\right) = \bigl|\widehat g\left(\tfrac12+ir\right)\bigr|^{2}g⋆g∗​(21​+ir)=​g​(21​+ir)​2 on the critical line, and the fact that g⋆g∗g \star g^{*}g⋆g∗ is again a test function.

Significance

Weil's positivity criterion is one of the standard equivalent forms of RH, and the only one in which the arithmetic input (the primes, through Λ\LambdaΛ) and the archimedean input (the Γ\GammaΓ-factor) enter as separate, explicitly computable local terms. Formalizing it produces a machine-checked bridge between the zeros of ζ\zetaζ and prime sums: the explicit formula milestone is the reusable object here, since essentially every analytic application of zeta zeros — zero-density estimates, prime-counting error terms, pair-correlation statistics — is an instance of it.

Status honesty: neither RH nor the positivity statement is known; the explicit formula and both implications relating positivity to RH are classical theorems, proved but not, as far as the catalog shows, formalized in Lean. Mathlib currently provides ζ\zetaζ, its functional equation, the von Mangoldt function and Γ\GammaΓ, but no explicit formula of any kind. What this mission adds on top of the paper is therefore the formal proof of known results, not new mathematics.

Difficulty

The obvious route to the explicit formula — integrate −ζ′/ζ(s)g^(s)-\zeta'/\zeta(s)\widehat g(s)−ζ′/ζ(s)g​(s) over a vertical line, move the contour to the reflected line, collect residues — fails to be routine at exactly two points. First, moving the contour requires control of ζ′/ζ\zeta'/\zetaζ′/ζ on horizontal segments between zeros, which is where the classical proof invests most of its work; Mathlib has bounds near Re⁡s=1\operatorname{Re} s = 1Res=1 but nothing of this shape inside the strip. Second, the sum over zeros must be shown to converge unconditionally, which needs a zero-counting bound of Riemann–von Mangoldt type (N(T)≪Tlog⁡TN(T) \ll T\log TN(T)≪TlogT) that is not in Mathlib either.

For the goal implication, the naive idea — pick a test function whose transform is supported near a hypothetical off-line zero — is unavailable: g^\widehat gg​ is entire whenever ggg has compact support, so it cannot be localized. The classical argument instead exploits the symmetry ρ↦1−ρˉ\rho \mapsto 1-\bar\rhoρ↦1−ρˉ​ of the zero set and makes the off-line quadruple contribute a negative amount in the limit along a family of test functions.

Formalization scope

Conventions the Lean statements commit to. Test functions are C\mathbb{C}C-valued on R\mathbb{R}R, ContDiff ℝ (⊤ : ℕ∞) (so C∞C^{\infty}C∞, not analytic) with HasCompactSupport; the multiplicative group R+∗\mathbb{R}^{*}_{+}R+∗​ is always written additively. The transform carries the 12\tfrac1221​-shift shown above, so the critical line is Re⁡z=12\operatorname{Re} z = \tfrac12Rez=21​ and g^(0),g^(1)\widehat{g}(0), \widehat{g}(1)g​(0),g​(1) are the two pole terms. Zeros are indexed by the subtype {s:0<Re⁡s<1, ζ(s)=0}\{s : 0 < \operatorname{Re} s < 1,\ \zeta(s) = 0\}{s:0<Res<1, ζ(s)=0} and weighted by (analyticOrderAt riemannZeta s).toNat; the trivial zeros are excluded. Integrals are Bochner integrals and sums are tsum, so both take the junk value 000 when the integrand is not integrable or the family is not summable — for that reason the explicit formula is stated as a HasSum, which carries summability, rather than as an equation between tsums. The archimedean term is written with Re⁡ψ\operatorname{Re}\psiReψ, ψ=\psi = ψ= logDeriv Complex.Gamma, rather than as a principal value, to avoid a second regularization convention.

The goal is not trivially satisfiable: its hypothesis quantifies over a nonempty class (smooth bump functions exist), and its conclusion is RH for ζ\zetaζ, so no vacuous reading is available.

Infrastructure a complete development needs, all reusable beyond this mission: growth bounds for ζ′/ζ\zeta'/\zetaζ′/ζ inside the critical strip, a Riemann–von Mangoldt zero-counting bound, Fourier analysis of Cc∞C^\infty_cCc∞​ functions (Paley–Wiener style decay of g^\widehat gg​), and the Hadamard product / functional equation package for the completed zeta function.

Out of scope, and deliberately so: Connes' operator-theoretic trace formula (equations (41) and (45) of the paper) and the spectral realization theorem of p. 17. Both are statements about traces of operators on Hilbert space, and Mathlib presently has no trace-class operator theory to state them faithfully. The mission therefore formalizes the arithmetic side of the paper's endpoint; contributions that build the missing operator theory, or that extend the statements from ζ\zetaζ to Dirichlet LLL-functions and Hecke LLL-functions with Grössencharakter, are welcome.

Selected references

  • A. Connes, Noncommutative geometry and the Riemann zeta function, in Mathematics: Frontiers and Perspectives, AMS (2000) — the source of this mission (§3, equations (11) and (45), and the concluding assertion on p. 22).
  • A. Connes, Trace formula in noncommutative geometry and the zeros of the Riemann zeta function, Selecta Math. (N.S.) 5 (1999) — reference [9] of the source. https://arxiv.org/abs/math/9811068
  • A. Weil, Sur les "formules explicites" de la théorie des nombres premiers, Comm. Sém. Math. Univ. Lund (1952) — reference [27] of the source.
  • E. Bombieri, Remarks on Weil's quadratic functional in the theory of prime numbers, I (2000).
  • H. Iwaniec and E. Kowalski, Analytic Number Theory, AMS Colloquium Publications 53 (2004), Chapter 5 (explicit formulas).
14 thms3 active usersReviewed
🏆Completed
Analysis·Captain: Lucas

The de Bruijn–Newman Constant is Non-negativeResearch Paper

Motivation

The Riemann hypothesis asserts that all nontrivial zeros of the Riemann zeta function lie on the critical line. A classical way to measure how far the hypothesis is from failing runs through a one-parameter deformation of the Riemann ξ\xiξ function by the backward heat flow. De Bruijn (1950) introduced a family of entire functions HtH_tHt​, t∈Rt \in \mathbb{R}t∈R, with H0H_0H0​ essentially the ξ\xiξ function, and showed that HtH_tHt​ has only real zeros for t≥1/2t \ge 1/2t≥1/2. Newman (1976) proved that there is a finite constant Λ\LambdaΛ, now called the de Bruijn–Newman constant, such that HtH_tHt​ has only real zeros precisely when t≥Λt \ge \Lambdat≥Λ. The Riemann hypothesis is exactly the statement Λ≤0\Lambda \le 0Λ≤0, and Newman conjectured the complementary bound Λ≥0\Lambda \ge 0Λ≥0 — in his phrase, that if the Riemann hypothesis is true, then it is only barely so.

Timeline of lower bounds on Λ\LambdaΛ, all obtained before 2018 by exhibiting Lehmer pairs, that is, pairs of adjacent zeros of ζ\zetaζ that are unusually close together: Λ>−∞\Lambda > -\inftyΛ>−∞ (Newman 1976), Λ≥−50\Lambda \ge -50Λ≥−50 (Csordas–Norfolk–Varga 1988), Λ≥−5\Lambda \ge -5Λ≥−5 (te Riele 1991), Λ≥−0.385\Lambda \ge -0.385Λ≥−0.385 (Norfolk–Ruttan–Varga 1992), Λ≥−0.0991\Lambda \ge -0.0991Λ≥−0.0991 (Csordas–Ruttan–Varga 1991), Λ≥−4.379×10−6\Lambda \ge -4.379 \times 10^{-6}Λ≥−4.379×10−6 (Csordas–Smith–Varga 1994), Λ≥−5.895×10−9\Lambda \ge -5.895 \times 10^{-9}Λ≥−5.895×10−9 (Csordas–Odlyzko–Smith–Varga 1993), Λ≥−2.63×10−9\Lambda \ge -2.63 \times 10^{-9}Λ≥−2.63×10−9 (Odlyzko 2000), Λ≥−1.15×10−11\Lambda \ge -1.15 \times 10^{-11}Λ≥−1.15×10−11 (Saouter–Gourdon–Demichel 2011). Rodgers and Tao closed the gap in 2020 by proving Λ≥0\Lambda \ge 0Λ≥0. In the other direction, de Bruijn's bound Λ≤1/2\Lambda \le 1/2Λ≤1/2 was sharpened to Λ<1/2\Lambda < 1/2Λ<1/2 by Ki–Kim–Lee (2009) and to Λ≤0.22\Lambda \le 0.22Λ≤0.22 by the Polymath 15 project (2019).

Setting

For a real number uuu put

Φ(u):=∑n=1∞(2π2n4e9u−3πn2e5u)exp⁡(−πn2e4u),\Phi(u) := \sum_{n=1}^{\infty}\bigl(2\pi^2 n^4 e^{9u} - 3\pi n^2 e^{5u}\bigr)\exp\bigl(-\pi n^2 e^{4u}\bigr),Φ(u):=n=1∑∞​(2π2n4e9u−3πn2e5u)exp(−πn2e4u),

a function that decays super-exponentially as ∣u∣→∞|u| \to \infty∣u∣→∞ and satisfies Φ(u)=Φ(−u)\Phi(u) = \Phi(-u)Φ(u)=Φ(−u). For each t∈Rt \in \mathbb{R}t∈R define the entire function

Ht(z):=∫0∞etu2 Φ(u) cos⁡(zu) du.H_t(z) := \int_0^{\infty} e^{t u^2}\,\Phi(u)\,\cos(z u)\,du .Ht​(z):=∫0∞​etu2Φ(u)cos(zu)du.

Each HtH_tHt​ is even and satisfies Ht(zˉ)=Ht(z)‾H_t(\bar z) = \overline{H_t(z)}Ht​(zˉ)=Ht​(z)​; the function H0H_0H0​ is 18ξ(12+iz2)\tfrac18 \xi\bigl(\tfrac12 + \tfrac{iz}{2}\bigr)81​ξ(21​+2iz​), so the Riemann hypothesis says exactly that every zero of H0H_0H0​ is real. Write

S:={ t∈R:every zero of Ht is real },Λ:=inf⁡S.S := \{\, t \in \mathbb{R} : \text{every zero of } H_t \text{ is real} \,\},\qquad \Lambda := \inf S .S:={t∈R:every zero of Ht​ is real},Λ:=infS.

By Pólya and Newman, SSS is the ray [Λ,∞)[\Lambda, \infty)[Λ,∞) with −∞<Λ≤1/2-\infty < \Lambda \le 1/2−∞<Λ≤1/2.

When Λ<t≤0\Lambda < t \le 0Λ<t≤0 the zeros of HtH_tHt​ are real, simple, symmetric about the origin and avoid the origin, so they can be listed as (xj(t))j∈Z∗(x_j(t))_{j \in \mathbb{Z}^*}(xj​(t))j∈Z∗​, indexed by the nonzero integers, with 0<x1(t)<x2(t)<⋯0 < x_1(t) < x_2(t) < \cdots0<x1​(t)<x2​(t)<⋯ and x−j(t)=−xj(t)x_{-j}(t) = -x_j(t)x−j​(t)=−xj​(t). The classical locations ξj\xi_jξj​ are defined for j≥1j \ge 1j≥1 by Ψ(ξj)=j\Psi(\xi_j) = jΨ(ξj​)=j with

Ψ(T):=T4πlog⁡T4π−T4π,\Psi(T) := \frac{T}{4\pi}\log\frac{T}{4\pi} - \frac{T}{4\pi},Ψ(T):=4πT​log4πT​−4πT​,

extended by ξ−j=−ξj\xi_{-j} = -\xi_jξ−j​=−ξj​; they are the positions the zeros would occupy if the Riemann–von Mangoldt counting formula were exact. Throughout, log⁡+x:=log⁡(2+∣x∣)\log_+ x := \log(2 + |x|)log+​x:=log(2+∣x∣).

Formalization targets

Goal — Newman's conjecture

Λ≥0,equivalentlyevery t with Ht having only real zeros satisfies t≥0.\Lambda \ge 0, \qquad\text{equivalently}\qquad \text{every } t \text{ with } H_t \text{ having only real zeros satisfies } t \ge 0 .Λ≥0,equivalentlyevery t with Ht​ having only real zeros satisfies t≥0.

The goal is stated in both forms simultaneously, so that it does not depend on any convention for the infimum of a set that might be empty or unbounded below.

Milestones

The milestone list follows the architecture of Rodgers–Tao, which is a proof by contradiction: every milestone is stated under the standing hypothesis Λ<0\Lambda < 0Λ<0 of that paper, in the time ranges the paper uses (Λ<t≤0\Lambda < t \le 0Λ<t≤0, then Λ/2≤t≤0\Lambda/2 \le t \le 0Λ/2≤t≤0, then Λ/4≤t≤0\Lambda/4 \le t \le 0Λ/4≤t≤0). In order: an upper bound for HtH_tHt​ near the real axis (Lemma 4); Riemann–von Mangoldt type counting formulae for the zeros of HtH_tHt​ (Theorem 9); the resulting macroscopic description of the zeros (Corollary 10); the equations of motion ∂txk=2∑j≠k(xk−xj)−1\partial_t x_k = 2\sum_{j \ne k} (x_k - x_j)^{-1}∂t​xk​=2∑j=k​(xk​−xj​)−1 (Theorem 11); a quantitative lower bound on gaps between zeros (Proposition 13); a bound on the time-integrated renormalized energy (Theorem 17); and a bound on that energy at time t=0t = 0t=0 (Proposition 26). The last of these says that at time zero the zeros are, on average, locally in the equilibrium configuration of an arithmetic progression, which contradicts known results on the local distribution of zeros of ζ\zetaζ.

Significance

Λ≥0\Lambda \ge 0Λ≥0 settles Newman's conjecture, and together with the Riemann hypothesis it would force Λ=0\Lambda = 0Λ=0. Unconditionally, it says that the zeros of ξ\xiξ are not in local equilibrium: infinitely often, gaps between consecutive zeros deviate from the mean spacing, which is what makes the pair correlation phenomenology of Montgomery and of Conrey–Ghosh–Goldston–Gonek–Heath-Brown incompatible with Λ<0\Lambda < 0Λ<0. Any proof of the Riemann hypothesis must therefore be compatible with the hypothesis being tight in this sense.

The theorem has a complete published proof (Rodgers–Tao, Forum of Mathematics, Pi, 2020); it is not an open problem. What is missing is a machine-checked proof. To the extent the material has been formalized at all, the underlying objects — the ξ\xiξ function, the heat flow HtH_tHt​, the counting function for zeros, the zero dynamics, the renormalized energies — are not available in Mathlib, so the mission produces reusable analytic infrastructure: bounds for a Fourier–Laplace type integral by the saddle point method, a Riemann–von Mangoldt counting argument via the argument principle, and a gradient-flow monotonicity framework for an infinite particle system with logarithmic interaction.

Difficulty

The obvious route to Λ≥0\Lambda \ge 0Λ≥0 is the one used for every previous lower bound: exhibit Lehmer pairs of ever higher quality, since if Λ\LambdaΛ were very negative the zeros of H0H_0H0​ would repel each other and unusually close pairs of zeta zeros could not exist. Producing an infinite sequence of Lehmer pairs of arbitrarily high quality is possible under the GUE hypothesis, but the known unconditional upper bounds for small gaps between zeta zeros are too weak, even assuming the Riemann hypothesis. The proof instead upgrades repulsion to relaxation to local equilibrium: it must control the zeros of HtH_tHt​ uniformly for Λ<t≤0\Lambda < t \le 0Λ<t≤0 at length scales as fine as log⁡T\log TlogT, with only the weaker counting formulae available for negative ttt (an error term O(log⁡+2T)O(\log_+^2 T)O(log+2​T) rather than O(log⁡+T)O(\log_+ T)O(log+​T)), and must make sense of a Hamiltonian and an energy that are given by divergent series, which requires truncation, renormalization, and careful control of all the resulting boundary terms.

Formalization scope

The Lean development commits to the following conventions. Φ\PhiΦ is a tsum over the positive integers and Ht(z)H_t(z)Ht​(z) is the Bochner integral over (0,∞)(0, \infty)(0,∞) of etu2Φ(u)cos⁡(zu)e^{tu^2}\Phi(u)\cos(zu)etu2Φ(u)cos(zu); no convergence or entireness statement is built into the definition. Λ\LambdaΛ is sInf of the set of admissible times, and the goal theorem also states the quantifier form "every admissible ttt is nonnegative", so it cannot be satisfied by a junk value of the infimum. The zero families (xj(t))(x_j(t))(xj​(t)) and the classical locations (ξj)(\xi_j)(ξj​) are not defined by choice functions: they enter the milestones as universally quantified functions Z→R\mathbb{Z} \to \mathbb{R}Z→R subject to explicit predicates saying exactly which sequences they are, so a milestone asserts something about every valid enumeration. Asymptotic notation is unfolded: O(⋅)O(\cdot)O(⋅) becomes an explicit existential constant, oT→∞(⋅)o_{T \to \infty}(\cdot)oT→∞​(⋅) an explicit ε\varepsilonε–T0T_0T0​ statement, and a principal value sum a limit of symmetric partial sums. Where a statement asserts the value of a time integral, absolute integrability is part of the conclusion, so the statement cannot be satisfied by the convention that a non-integrable function has integral zero.

One degeneracy is inherent to the source and is stated here explicitly: since the paper argues by contradiction, each milestone carries the hypothesis Λ<0\Lambda < 0Λ<0 (directly, or through a time range such as Λ<t≤0\Lambda < t \le 0Λ<t≤0). Once the goal theorem is proved, those hypotheses are unsatisfiable and the milestones become vacuously true. They are the intended attack path on the goal, not independent targets, and a solver who derives one of them from the goal theorem contributes nothing.

Contributions welcome: the analytic estimates for HtH_tHt​ (Lemma 4) and the counting formulae (Theorem 9) are independent of the dynamical part and are the natural entry points; Mathlib-level infrastructure on the argument principle, the saddle point method, and Stirling asymptotics for Γ\GammaΓ in vertical strips is reusable well beyond this mission.

Selected references

  • B. Rodgers and T. Tao, The de Bruijn–Newman constant is non-negative, Forum of Mathematics, Pi 8 (2020), e6. https://doi.org/10.1017/fmp.2020.6
  • N. G. de Bruijn, The roots of trigonometric integrals, Duke Math. J. 17 (1950), 197–226. https://doi.org/10.1215/S0012-7094-50-01720-0
  • C. M. Newman, Fourier transforms with only real zeros, Proc. Amer. Math. Soc. 61 (1976), 246–251. https://doi.org/10.1090/S0002-9939-1976-0434982-5
  • G. Csordas, W. Smith and R. S. Varga, Lehmer pairs of zeros, the de Bruijn–Newman constant Λ\LambdaΛ, and the Riemann hypothesis, Constr. Approx. 10 (1994), 107–129. https://doi.org/10.1007/BF01205170
  • H. L. Montgomery, The pair correlation of zeros of the zeta function, Proc. Sympos. Pure Math. XXIV (1973), 181–193. https://doi.org/10.1090/pspum/024
  • J. B. Conrey, A. Ghosh, D. Goldston, S. M. Gonek and D. R. Heath-Brown, On the distribution of gaps between zeros of the zeta-function, Q. J. Math. 36 (1985), 43–51. https://doi.org/10.1093/qmath/36.1.43
  • D. H. J. Polymath, Effective approximation of heat flow evolution of the Riemann ξ\xiξ function, and a new upper bound for the de Bruijn–Newman constant, Res. Math. Sci. 6 (2019), 31. https://doi.org/10.1007/s40687-019-0193-1
25 thms3 active usersReviewed
🏆Completed
Captain: tianyipeng

FLT-5: Fermats Last Theorem for n=5Textbook

A complete formal proof of Fermats Last Theorem for exponent 5: for all positive natural numbers a,b,c, a^5 + b^5 != c^5. The proof follows the classical Legendre-Dirichlet approach (1825-1830): Case 1 (5 does not divide a,b,c) is dispatched by congruences, and Case 2 (5 divides one of them) uses infinite descent through the ring Z[zeta_5]. The open hard leaf is the Z[zeta_5] PID step (flt5_zeta5_ring_witnesses).

63 thms3 active usersReviewed
🏆Completed
Captain: Nickrobbins95

Irrationality measure of π is at most 7.101862832357 (Bai 2026)Research Paper

Y. Bai (arXiv:2609.11276, September 2026) proves that the irrationality measure of π is at most 7.101862832357, improving the Zeilberger–Zudilin bound 7.103205334137 (2020). The proof keeps the Zeilberger–Zudilin integral but gives its numerator two independent exponents, specialised at A₁ = A₂ = 1857/2785; the resulting integer linear forms in 1 and π, combined with Hata's lemma, give μ(π) ≤ 7.101862832357. This entry is the campaign template with the value 7.101862832357. Source: https://arxiv.org/abs/2609.11276

3 thms2 active usersReviewed
🏆Completed
Quantum Information·Captain: Lucas

Shor's Algorithm (Wikipedia): Quantum Order Finding and the Reduction of FactoringTextbook

Motivation

Shor's algorithm is a quantum algorithm that finds a nontrivial factor of an integer NNN in time polynomial in log⁡N\log NlogN, and its variants compute discrete logarithms in finite cyclic groups. It was developed by Peter Shor in 1994 (Shor, FOCS 1994; Shor, SIAM J. Comput. 1997). No classical polynomial-time factoring algorithm is known; the best classical method, the general number field sieve, runs in sub-exponential time. Because the security of RSA and of finite-field and elliptic-curve Diffie–Hellman rests on the hardness of factoring and of discrete logarithms, Shor's algorithm is the main reason these schemes are considered breakable by a large fault-tolerant quantum computer, and the main motivation for post-quantum cryptography.

This mission follows the presentation of the algorithm in the Wikipedia article Shor's algorithm (revision 1378862216), which describes the quantum part through quantum phase estimation, an approach due to Kitaev (Kitaev 1995) and standard in textbooks (Nielsen–Chuang 2010).

Setting

Let 1<a<N1 < a < N1<a<N be integers with gcd⁡(a,N)=1\gcd(a, N) = 1gcd(a,N)=1. The order r=ord⁡N(a)r = \operatorname{ord}_N(a)r=ordN​(a) is the smallest positive integer with ar≡1(modN)a^r \equiv 1 \pmod Nar≡1(modN).

Classical reduction. If rrr is even and N∤ar/2+1N \nmid a^{r/2}+1N∤ar/2+1, then gcd⁡(N,ar/2−1)\gcd(N, a^{r/2}-1)gcd(N,ar/2−1) is a nontrivial factor of NNN. Factoring therefore reduces to computing orders.

Quantum order finding. Let n=⌈log⁡2N⌉n = \lceil\log_2 N\rceiln=⌈log2​N⌉ and Q=22nQ = 2^{2n}Q=22n. A state of an mmm-qubit register is a vector in C2m\mathbb C^{2^m}C2m with standard basis ∣0⟩,…,∣2m−1⟩|0\rangle, \dots, |2^m-1\rangle∣0⟩,…,∣2m−1⟩. The modular-multiplication gate is the nnn-qubit gate

U∣k⟩=∣ak mod N⟩ (0≤k<N),U∣k⟩=∣k⟩ (N≤k<2n).U|k\rangle = |ak \bmod N\rangle \ (0 \le k < N), \qquad U|k\rangle = |k\rangle \ (N \le k < 2^n).U∣k⟩=∣akmodN⟩ (0≤k<N),U∣k⟩=∣k⟩ (N≤k<2n).

With ωr=e2πi/r\omega_r = e^{2\pi i/r}ωr​=e2πi/r, the states ∣ψj⟩=r−1/2∑k=0r−1ωr−kj∣ak mod N⟩|\psi_j\rangle = r^{-1/2}\sum_{k=0}^{r-1}\omega_r^{-kj}|a^k \bmod N\rangle∣ψj​⟩=r−1/2∑k=0r−1​ωr−kj​∣akmodN⟩ are eigenvectors of UUU with eigenvalues ωrj\omega_r^jωrj​. The order-finding circuit acts on a 2n2n2n-qubit first register and the nnn-qubit second register: Hadamard gates H⊗2nH^{\otimes 2n}H⊗2n on the first register, controlled gates C-U2iC\text{-}U^{2^i}C-U2i for i=0,…,2n−1i = 0, \dots, 2n-1i=0,…,2n−1 (qubit iii of the first register controls U2iU^{2^i}U2i on the second), and the inverse quantum Fourier transform QFT22n−1\mathrm{QFT}^{-1}_{2^{2n}}QFT22n−1​ on the first register. It is applied to ∣0⟩⊗2n∣1⟩|0\rangle^{\otimes 2n}|1\rangle∣0⟩⊗2n∣1⟩ and the first register is measured, producing an outcome k∈{0,…,Q−1}k \in \{0, \dots, Q-1\}k∈{0,…,Q−1} with probability P(k)P(k)P(k). Finally the continued fractions algorithm is run on k/Qk/Qk/Q.

Formalization targets

Goal: one run of the order-finding subroutine

For every j∈{0,…,r−1}j \in \{0, \dots, r-1\}j∈{0,…,r−1},

∑k : ∣k/22n−j/r∣≤2−(2n+1)P(k)  ≥  4π2r,\sum_{k\,:\,|k/2^{2n} - j/r| \le 2^{-(2n+1)}} P(k) \;\ge\; \frac{4}{\pi^2 r},k:∣k/22n−j/r∣≤2−(2n+1)∑​P(k)≥π2r4​,

and for every such kkk some continued fraction convergent of k/22nk/2^{2n}k/22n equals j/rj/rj/r in lowest terms, i.e. has numerator j/gcd⁡(j,r)j/\gcd(j,r)j/gcd(j,r) and denominator r/gcd⁡(j,r)r/\gcd(j,r)r/gcd(j,r). Summed over jjj, a single run yields with probability at least 4/π24/\pi^24/π2 an outcome from which the continued fractions algorithm recovers some j/rj/rj/r in lowest terms.

Milestones

  1. Classical reduction (article section "Classical reduction"): gcd⁡(a,N)≠1\gcd(a,N) \ne 1gcd(a,N)=1 is a nontrivial factor; N∣(ar/2−1)(ar/2+1)N \mid (a^{r/2}-1)(a^{r/2}+1)N∣(ar/2−1)(ar/2+1) for even rrr; N∤ar/2−1N \nmid a^{r/2}-1N∤ar/2−1; and gcd⁡(N,ar/2∓1)\gcd(N, a^{r/2} \mp 1)gcd(N,ar/2∓1) are nontrivial factors when N∤ar/2+1N \nmid a^{r/2}+1N∤ar/2+1.
  2. Spectrum of UUU (section "Quantum phase estimation"): Ur=IU^r = IUr=I; every eigenvalue is some ωrk\omega_r^kωrk​; U∣ψj⟩=ωrj∣ψj⟩U|\psi_j\rangle = \omega_r^j|\psi_j\rangleU∣ψj​⟩=ωrj​∣ψj​⟩; ∑jωrjk=0\sum_{j}\omega_r^{jk} = 0∑j​ωrjk​=0 for 1≤k≤r−11 \le k \le r-11≤k≤r−1; r−1/2∑j∣ψj⟩=∣1⟩r^{-1/2}\sum_j|\psi_j\rangle = |1\rangler−1/2∑j​∣ψj​⟩=∣1⟩.
  3. Phase estimation: on ∣0⟩⊗2n∣ψj⟩|0\rangle^{\otimes 2n}|\psi_j\rangle∣0⟩⊗2n∣ψj​⟩ the circuit outputs ∣ϕj⟩∣ψj⟩|\phi_j\rangle|\psi_j\rangle∣ϕj​⟩∣ψj​⟩ with ∣⟨k∣ϕj⟩∣2≥4/π2|\langle k|\phi_j\rangle|^2 \ge 4/\pi^2∣⟨k∣ϕj​⟩∣2≥4/π2 at every nearest integer kkk to 22nj/r2^{2n}j/r22nj/r; on ∣0⟩⊗2n∣1⟩|0\rangle^{\otimes 2n}|1\rangle∣0⟩⊗2n∣1⟩ each ∣ϕj⟩|\phi_j\rangle∣ϕj​⟩ is found with probability 1/r1/r1/r.
  4. Continued fractions and register size (section "Choosing the size of the first register"): ∣j/r−φ∣<1/(2r2)|j/r - \varphi| < 1/(2r^2)∣j/r−φ∣<1/(2r2) implies φ\varphiφ has j/rj/rj/r in lowest terms as a convergent, and 2−(2n+1)≤1/(2N2)≤1/(2r2)2^{-(2n+1)} \le 1/(2N^2) \le 1/(2r^2)2−(2n+1)≤1/(2N2)≤1/(2r2).
  5. Discrete logarithms (section "Shor's algorithm for discrete logarithms"): f(a,b)=gax−bf(a,b) = g^a x^{-b}f(a,b)=gax−b on Zp×Zp\mathbb Z_p \times \mathbb Z_pZp​×Zp​ is a homomorphism with kernel the multiples of (r,1)(r,1)(r,1).

Significance

The goal is the quantitative statement behind the article's claim that phase estimation "gives as output a random integer of the form jr22n\frac{j}{r}2^{2n}rj​22n" and that a 2n2n2n-qubit first register suffices to recover j/rj/rj/r. Combined with the classical milestones, it is the correctness argument of Shor's factoring algorithm, minus the separate number-theoretic estimate of how often a random aaa has even order with ar/2≢−1a^{r/2} \not\equiv -1ar/2≡−1, which the article does not state.

The results are classical and their proofs are published. The work this mission asks for is a machine-checked proof against an explicit gate-level model of the circuit — Hadamard tensor power, controlled modular-multiplication gates, inverse QFT — rather than against a closed-form output distribution assumed up front. Related missions on the platform formalize Shor's 1997 paper, which analyses the circuit by a direct Fourier-sum computation with q≥N2q \ge N^2q≥N2; this mission follows the phase-estimation route with the article's constants.

Difficulty

The spectral facts about UUU and the classical reduction are short arguments. The main obstacle is the circuit: showing that the product of the 2n2n2n controlled gates C-U2iC\text{-}U^{2^i}C-U2i acts on ∣x⟩∣ψj⟩|x\rangle|\psi_j\rangle∣x⟩∣ψj​⟩ as multiplication by ωrjx\omega_r^{jx}ωrjx​ requires the binary expansion of xxx and the commutation of the controlled gates, and the subsequent inverse QFT must be computed explicitly. The bound 4/π24/\pi^24/π2 requires an estimate of ∣∑x<Qe2πixδ∣\left|\sum_{x<Q} e^{2\pi i x\delta}\right|​∑x<Q​e2πixδ​ for ∣δ∣≤1/(2Q)|\delta| \le 1/(2Q)∣δ∣≤1/(2Q) which is uniform in QQQ; a crude estimate gives a weaker constant. The measurement identity P(k)=1r∑jPj(k)P(k) = \frac1r\sum_j P_j(k)P(k)=r1​∑j​Pj​(k) requires the orthonormality of the ∣ψj⟩|\psi_j\rangle∣ψj​⟩, which uses that a0,…,ar−1a^0, \dots, a^{r-1}a0,…,ar−1 are distinct modulo NNN.

Formalization scope

States are coordinate vectors Fin d → ℂ, gates are complex matrices acting by Matrix.mulVec, two-register operators are Kronecker products on Fin d₁ × Fin d₂, and measurement probabilities are sums of squared moduli. The order is orderOf (a : ZMod N) and nnn is Nat.clog 2 N. Convergents are Mathlib's Real.convergent, the standard continued fraction expansion. The goal is a statement about the specific circuit defined in the mission's definition file, so it cannot be satisfied by choosing a convenient output distribution, and the recovery statement is quantified over a fixed jjj, so the trivial convergent ⌊k/Q⌋=0\lfloor k/Q\rfloor = 0⌊k/Q⌋=0 (which equals 0/r0/r0/r) does not discharge it for j≠0j \ne 0j=0.

Reusable infrastructure welcome from this mission: the action of the Kronecker-product phase estimation circuit on eigenstates, the explicit inverse QFT computation, and the 4/π24/\pi^24/π2 estimate for the Fejér-type kernel.

Selected references

  • P. W. Shor, Algorithms for quantum computation: discrete logarithms and factoring, Proc. 35th FOCS, 1994. https://doi.org/10.1109/sfcs.1994.365700
  • P. W. Shor, Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer, SIAM J. Comput. 26(5), 1997. https://arxiv.org/abs/quant-ph/9508027
  • A. Yu. Kitaev, Quantum measurements and the Abelian stabilizer problem, 1995. https://arxiv.org/abs/quant-ph/9511026
  • M. A. Nielsen, I. L. Chuang, Quantum Computation and Quantum Information, Cambridge University Press, 2010. https://doi.org/10.1017/CBO9780511976667
  • Wikipedia, Shor's algorithm, revision 1378862216. https://en.wikipedia.org/w/index.php?title=Shor%27s_algorithm&oldid=1378862216
16 thms2 active usersReviewed
🏆Completed
Theoretical Computer Science·Captain: Lucas

General Number Field Sieve: Congruence of SquaresTextbook

Motivation

The general number field sieve (GNFS) is the most efficient classical algorithm known for factoring integers larger than about 1010010^{100}10100. Its heuristic running time for an integer nnn is

exp⁡ ⁣(((64/9)1/3+o(1))(log⁡n)1/3(log⁡log⁡n)2/3)=Ln[1/3, (64/9)1/3],\exp\!\Big(\big((64/9)^{1/3}+o(1)\big)(\log n)^{1/3}(\log\log n)^{2/3}\Big) = L_n\big[1/3,\,(64/9)^{1/3}\big],exp(((64/9)1/3+o(1))(logn)1/3(loglogn)2/3)=Ln​[1/3,(64/9)1/3],

super-polynomial but sub-exponential in the bit length of nnn. Every record factorization of a general RSA modulus of recent decades (RSA-768, RSA-240, RSA-250) was obtained with it, so the security margins of RSA key sizes are calibrated against it (Pomerance, A Tale of Two Sieves, 1996; Boudot et al., 2020).

Like the rational and quadratic sieves, GNFS works by producing a congruence of squares x2≡y2(modn)x^2 \equiv y^2 \pmod nx2≡y2(modn) and then taking gcd⁡(x−y,n)\gcd(x-y,n)gcd(x−y,n). Its gain comes from searching for smooth values that are sub-exponential in the size of nnn, which forces the algorithm to compute in algebraic number fields.

Setting

Let f∈Z[x]f \in \mathbb{Z}[x]f∈Z[x] be a polynomial of degree ddd and θ∈C\theta \in \mathbb{C}θ∈C a root of fff. The number field Q(θ)\mathbb{Q}(\theta)Q(θ) is the set of complex numbers ∑i<daiθi\sum_{i<d} a_i\theta^i∑i<d​ai​θi with ai∈Qa_i \in \mathbb{Q}ai​∈Q; it is ddd-dimensional over Q\mathbb{Q}Q when fff is irreducible over Q\mathbb{Q}Q. The ring Z[θ]\mathbb{Z}[\theta]Z[θ] is the subring of C\mathbb{C}C generated by θ\thetaθ; the ring of integers OQ(θ)\mathcal{O}_{\mathbb{Q}(\theta)}OQ(θ)​ consists of the elements of Q(θ)\mathbb{Q}(\theta)Q(θ) that are roots of monic integer polynomials. It contains Z[θ]\mathbb{Z}[\theta]Z[θ] when fff is monic, and the two can differ.

GNFS chooses two irreducible integer polynomials f1,f2f_1, f_2f1​,f2​ with a common root mmm modulo nnn, i.e. n∣f1(m)n \mid f_1(m)n∣f1​(m) and n∣f2(m)n \mid f_2(m)n∣f2​(m). A simple choice is the base-mmm polynomial: write n=admd+⋯+a1m+a0n = a_d m^d + \dots + a_1 m + a_0n=ad​md+⋯+a1​m+a0​ with digits 0≤ai<m0 \le a_i < m0≤ai​<m, put f1(x)=∑aixif_1(x) = \sum a_i x^if1​(x)=∑ai​xi and f2(x)=x−mf_2(x) = x - mf2​(x)=x−m. Pairs of integers (a,b)(a,b)(a,b) (relations) are sieved so that both homogenized values Fj(a,b)=bdeg⁡fjfj(a/b)F_j(a,b) = b^{\deg f_j} f_j(a/b)Fj​(a,b)=bdegfj​fj​(a/b) are smooth; up to the leading coefficient these are the norms N(a−bθj)N(a - b\theta_j)N(a−bθj​). Linear algebra over F2\mathbb{F}_2F2​ then selects a set SSS of relations for which

∏(a,b)∈S(a−bθ1)=γ12,γ1∈Z[θ1],∏(a,b)∈S(a−bθ2)=γ22,γ2∈Z[θ2].\prod_{(a,b)\in S}(a-b\theta_1) = \gamma_1^2,\quad \gamma_1 \in \mathbb{Z}[\theta_1], \qquad \prod_{(a,b)\in S}(a-b\theta_2) = \gamma_2^2,\quad \gamma_2 \in \mathbb{Z}[\theta_2].(a,b)∈S∏​(a−bθ1​)=γ12​,γ1​∈Z[θ1​],(a,b)∈S∏​(a−bθ2​)=γ22​,γ2​∈Z[θ2​].

Because mmm is a root of both polynomials mod nnn, there are ring homomorphisms φj:Z[θj]→Z/nZ\varphi_j : \mathbb{Z}[\theta_j] \to \mathbb{Z}/n\mathbb{Z}φj​:Z[θj​]→Z/nZ with φj(θj)=m\varphi_j(\theta_j) = mφj​(θj​)=m. Both send ∏S(a−bθj)\prod_S(a - b\theta_j)∏S​(a−bθj​) to ∏S(a−bm)\prod_S(a - bm)∏S​(a−bm).

Formalization targets

Goal: the congruence of squares

For f1,f2f_1, f_2f1​,f2​ irreducible in Z[x]\mathbb{Z}[x]Z[x] with complex roots θ1,θ2\theta_1,\theta_2θ1​,θ2​, a common root mmm mod nnn, and SSS, γ1\gamma_1γ1​, γ2\gamma_2γ2​ as above:

∃ φj:Z[θj]→Z/nZ, φj(θj)=m,and every such pair satisfiesφ1(γ1)2=φ2(γ2)2.\exists\,\varphi_j:\mathbb{Z}[\theta_j]\to\mathbb{Z}/n\mathbb{Z},\ \varphi_j(\theta_j)=m, \qquad\text{and every such pair satisfies}\qquad \varphi_1(\gamma_1)^2 = \varphi_2(\gamma_2)^2 .∃φj​:Z[θj​]→Z/nZ, φj​(θj​)=m,and every such pair satisfiesφ1​(γ1​)2=φ2​(γ2​)2.

This is the correctness statement of the algebraic part of GNFS: whatever relations the sieve and linear algebra produce, the square-root step yields x=φ1(γ1)x = \varphi_1(\gamma_1)x=φ1​(γ1​), y=φ2(γ2)y = \varphi_2(\gamma_2)y=φ2​(γ2​) with n∣x2−y2n \mid x^2 - y^2n∣x2−y2.

Supporting statements (milestones)

  1. [Q(θ):Q]=d[\mathbb{Q}(\theta):\mathbb{Q}] = d[Q(θ):Q]=d for fff irreducible over Q\mathbb{Q}Q.
  2. Z[θ]\mathbb{Z}[\theta]Z[θ] can be strictly smaller than the ring of integers.
  3. The base-mmm polynomial has digits 0≤ai<m0\le a_i<m0≤ai​<m as coefficients and f(m)=nf(m)=nf(m)=n, so mmm is a root mod nnn.
  4. Existence of the homomorphism Z[θ]→Z/nZ\mathbb{Z}[\theta]\to\mathbb{Z}/n\mathbb{Z}Z[θ]→Z/nZ, θ↦m\theta\mapsto mθ↦m.
  5. cd NQ(θ)/Q(a−bθ)=bdf(a/b)c_d\,N_{\mathbb{Q}(\theta)/\mathbb{Q}}(a-b\theta) = b^d f(a/b)cd​NQ(θ)/Q​(a−bθ)=bdf(a/b), where cdc_dcd​ is the leading coefficient.
  6. If n∣x2−y2n\mid x^2-y^2n∣x2−y2, n∤x−yn\nmid x-yn∤x−y, n∤x+yn\nmid x+yn∤x+y, then 1<gcd⁡(x−y,n)<n1<\gcd(x-y,n)<n1<gcd(x−y,n)<n.
  7. For odd nnn with at least two prime factors and a unit xxx, at least half of the square roots of x2x^2x2 mod nnn differ from ±x\pm x±x (the "probability at least 1/21/21/2" of the final step).

Significance

The goal and milestones together certify that every output of the GNFS pipeline that passes the square-root step is a genuine congruence of squares, and that such a congruence splits nnn with probability at least 1/21/21/2 over the choice of square root. This is the part of the algorithm whose correctness is unconditional; the running-time bound is heuristic and is not a target here.

These results are classical and appear in standard references (Lenstra–Lenstra 1993; Crandall–Pomerance 2005, §6.2). The mission's contribution is a machine-checked formal version connecting number fields in C\mathbb{C}C, integer polynomials, and residue rings, which current libraries do not package for this purpose.

Difficulty

The ring homomorphism Z[θ]→Z/nZ\mathbb{Z}[\theta] \to \mathbb{Z}/n\mathbb{Z}Z[θ]→Z/nZ is the delicate point. Z[θ]\mathbb{Z}[\theta]Z[θ] is a subring of C\mathbb{C}C, not a quotient ring, so a map defined by θ↦m\theta \mapsto mθ↦m is well defined only if every integer polynomial vanishing at θ\thetaθ is a multiple of fff in Z[x]\mathbb{Z}[x]Z[x]. This needs fff irreducible over Z\mathbb{Z}Z (in particular primitive), via Gauss's lemma; for f(x)=2xf(x) = 2xf(x)=2x and n=2n = 2n=2, every mmm is a root mod nnn, but θ=0\theta = 0θ=0 only admits θ↦0\theta \mapsto 0θ↦0. The norm identity requires identifying f/cdf/c_df/cd​ as the minimal polynomial of θ\thetaθ and expressing the norm as a product over conjugates. The probability milestone needs the Chinese remainder theorem and counting square roots of units modulo odd prime powers.

Formalization scope

All statements live in the namespace GNFS. Number fields are realized inside C\mathbb{C}C: Q(θ)\mathbb{Q}(\theta)Q(θ) is ℚ⟮θ⟯ and Z[θ]\mathbb{Z}[\theta]Z[θ] is Algebra.adjoin ℤ {θ}. Residues mod nnn are ZMod n with n∈Nn \in \mathbb{N}n∈N (n=0n = 0n=0 gives Z\mathbb{Z}Z, consistent with every statement). Two definitions are shared: GNFS.baseMPolynomial n m, the polynomial whose coefficients are the base-mmm digits of nnn (via Nat.digits), and GNFS.homogenize f a b =∑i≤dciaibd−i= \sum_{i\le d} c_i a^i b^{d-i}=∑i≤d​ci​aibd−i.

Irreducibility "over the rationals" with integer coefficients is encoded as irreducibility in Z[x]\mathbb{Z}[x]Z[x] (primitive and irreducible over Q\mathbb{Q}Q) where a homomorphism to Z/nZ\mathbb{Z}/n\mathbb{Z}Z/nZ is needed. Without primitivity the claimed homomorphism can fail to exist. The goal asserts both the existence of the homomorphisms and the equality for every such pair, so it cannot be satisfied by the trivial choice x=yx = yx=y. The sieving, smoothness, linear-algebra and complexity aspects of the article are out of scope.

Reusable by-products: norms of linear elements in simple extensions, homomorphisms out of Z[θ]\mathbb{Z}[\theta]Z[θ], and square-root counting in Z/nZ\mathbb{Z}/n\mathbb{Z}Z/nZ.

Selected references

  • Wikipedia, General number field sieve, revision 1377718368. https://en.wikipedia.org/w/index.php?title=General_number_field_sieve&oldid=1377718368
  • C. Pomerance, A Tale of Two Sieves, Notices of the AMS 43(12), 1996. https://www.ams.org/notices/199612/pomerance.pdf
  • A. K. Lenstra, H. W. Lenstra Jr. (eds.), The development of the number field sieve, Lecture Notes in Math. 1554, Springer, 1993. https://doi.org/10.1007/BFb0091534
  • R. Crandall, C. Pomerance, Prime Numbers: A Computational Perspective, 2nd ed., Springer, 2005, §6.2. https://doi.org/10.1007/0-387-28979-8
  • F. Boudot et al., Comparing the difficulty of factorization and discrete logarithm: a 240-digit experiment, CRYPTO 2020. https://eprint.iacr.org/2020/697
9 thms2 active usersReviewed
🏆Completed
Captain: Lucas

Euler Systems (Wikipedia): Relations of the Cyclotomic Euler SystemTextbook

Motivation

An Euler system is a family of cohomology classes, indexed by abelian extensions of a base field, whose members are tied together by norm relations whose correction factors look like the Euler factors of an LLL-function. Euler systems were introduced by Kolyvagin (Kolyvagin 1990), building on Thaine's work on cyclotomic fields (Thaine 1988), and they are one of the main tools for bounding Selmer groups and ideal class groups: Kolyvagin used them to prove finiteness of some Tate–Shafarevich groups, and Rubin used them for a new proof of the main conjecture of Iwasawa theory (Rubin 2000).

The simplest Euler system, and the model for all others, is the cyclotomic Euler system of cyclotomic units αn=1−ζn\alpha_n = 1-\zeta_nαn​=1−ζn​. Kolyvagin used it to give an elementary proof of the Gras conjecture. This mission formalizes the two defining relations of this system as stated in the Wikipedia article Euler system.

Timeline (as summarized in the source): Thaine (1988) annihilators of class groups of real abelian fields; Kolyvagin (1988, 1990) Heegner-point and general Euler systems; Kato (2004) Euler system of Beilinson elements; Rubin (2000) monograph Euler Systems; Mazur–Rubin (2004) Kolyvagin systems.

Setting

For every square-free positive integer nnn fix a primitive nnn-th root of unity ζn∈C\zeta_n\in\mathbb Cζn​∈C, chosen compatibly: ζmn=ζmζn\zeta_{mn}=\zeta_m\zeta_nζmn​=ζm​ζn​ whenever m,nm,nm,n are coprime. Put

αn=1−ζn∈Q(ζn).\alpha_n = 1-\zeta_n \in \mathbb Q(\zeta_n).αn​=1−ζn​∈Q(ζn​).

For a prime l∤nl\nmid nl∤n, the Frobenius Frl\mathrm{Fr}_lFrl​ is the automorphism of Q(ζn)/Q\mathbb Q(\zeta_n)/\mathbb QQ(ζn​)/Q with Frl(ζn)=ζn l\mathrm{Fr}_l(\zeta_n)=\zeta_n^{\,l}Frl​(ζn​)=ζnl​. The norm NQ(ζnl)/Q(ζn)N_{\mathbb Q(\zeta_{nl})/\mathbb Q(\zeta_n)}NQ(ζnl​)/Q(ζn​)​ is the field norm of the extension Q(ζnl)/Q(ζn)\mathbb Q(\zeta_{nl})/\mathbb Q(\zeta_n)Q(ζnl​)/Q(ζn​), and a prime P\mathfrak PP of Q(ζnl)\mathbb Q(\zeta_{nl})Q(ζnl​) lies above lll if it is a prime ideal of the ring of integers containing lll.

Formalization targets

Goal: the cyclotomic Euler system relations

For square-free nnn and a prime l∤nl\nmid nl∤n:

NQ(ζnl)/Q(ζn)(αnl)=αnFrl−1(n>1),αnl≡αn(modP)  for all P∣l.N_{\mathbb Q(\zeta_{nl})/\mathbb Q(\zeta_n)}(\alpha_{nl})=\alpha_n^{\mathrm{Fr}_l-1}\quad(n>1),\qquad \alpha_{nl}\equiv\alpha_n \pmod{\mathfrak P}\ \text{ for all } \mathfrak P\mid l.NQ(ζnl​)/Q(ζn​)​(αnl​)=αnFrl​−1​(n>1),αnl​≡αn​(modP)  for all P∣l.

Milestones

  1. Existence of a compatible system (ζn)(\zeta_n)(ζn​) (the "pick" step).
  2. The norm relation.
  3. The congruence relation.

Significance

The two relations are exactly the axioms that later, more abstract Euler systems (Gauss sums, elliptic units, Heegner points, Kato's elements) are modelled on; the cyclotomic case is where the Euler-system machinery for class groups of abelian fields starts. Both relations are classical and proved; what remains is formalizing them. Mathlib provides cyclotomic fields, primitive roots of unity, field norms and rings of integers; the mission builds the relations on top of these and provides a reusable definition layer for cyclotomic units.

Difficulty

The norm relation requires identifying the Galois group of Q(ζnl)/Q(ζn)\mathbb Q(\zeta_{nl})/\mathbb Q(\zeta_n)Q(ζnl​)/Q(ζn​) with (Z/l)×(\mathbb Z/l)^\times(Z/l)× — which uses the irreducibility of the lll-th cyclotomic polynomial over Q(ζn)\mathbb Q(\zeta_n)Q(ζn​) for l∤nl\nmid nl∤n — and then computing the norm as a product over conjugates inside C\mathbb CC, transported along the intermediate-field coercions. The congruence relation requires working in the ring of integers of a subfield of C\mathbb CC and showing that 1−ζl1-\zeta_l1−ζl​ lies in every prime above lll. Neither is conceptually deep, but both involve substantial bookkeeping between subfields of C\mathbb CC, abstract cyclotomic extensions, and rings of integers.

Formalization scope

All fields are subfields of C\mathbb CC: Q(ζn)\mathbb Q(\zeta_n)Q(ζn​) is IntermediateField.adjoin ℚ {ζ n}, and Q(ζnl)\mathbb Q(\zeta_{nl})Q(ζnl​) over Q(ζn)\mathbb Q(\zeta_n)Q(ζn​) is IntermediateField.adjoin (ℚ(ζ_n)) {ζ (n*l)}. The norm is Algebra.norm; αnFrl−1\alpha_n^{\mathrm{Fr}_l-1}αnFrl​−1​ is written as Frl(αn)/αn\mathrm{Fr}_l(\alpha_n)/\alpha_nFrl​(αn​)/αn​; Frl\mathrm{Fr}_lFrl​ is any Q\mathbb QQ-algebra automorphism of Q(ζn)\mathbb Q(\zeta_n)Q(ζn​) with ζn↦ζnl\zeta_n\mapsto\zeta_n^lζn​↦ζnl​. Roots of unity are required to be primitive. Two deviations from the literal text of the source, both forced: the norm's base field is Q(ζn)\mathbb Q(\zeta_n)Q(ζn​) (the source's Q(ζl)\mathbb Q(\zeta_l)Q(ζl​) is a typo), and the norm relation assumes n>1n>1n>1 (for n=1n=1n=1, α1=0\alpha_1=0α1​=0). The existence milestone rules out a vacuous reading of the compatibility hypothesis. Welcome contributions: lemmas on Galois groups of compositums of cyclotomic fields inside C\mathbb CC, and on primes above lll in Q(ζnl)\mathbb Q(\zeta_{nl})Q(ζnl​).

Selected references

  • Wikipedia, Euler system, revision 1353502478. https://en.wikipedia.org/w/index.php?title=Euler_system&oldid=1353502478
  • V. A. Kolyvagin, Euler systems, The Grothendieck Festschrift II, Progr. Math. 87, Birkhäuser, 1990. https://doi.org/10.1007/978-0-8176-4575-5_11
  • F. Thaine, On the ideal class groups of real abelian number fields, Ann. of Math. 128 (1988), 1–18. https://doi.org/10.2307/1971460
  • K. Rubin, Euler Systems, Annals of Mathematics Studies 147, Princeton University Press, 2000. https://books.google.com/books?isbn=0691050767
  • B. Mazur, K. Rubin, Kolyvagin systems, Mem. Amer. Math. Soc. 168 (2004), no. 799. https://doi.org/10.1090/memo/0799
5 thms2 active usersReviewed
🏆Completed
Captain: Lucas

Dirichlet's Unit Theorem and the RegulatorTextbook

Motivation

The units of a ring of algebraic integers control much of the arithmetic of a number field. They decide when two generators of the same principal ideal differ, they enter the analytic class number formula through the regulator, and for real quadratic fields they are the solutions of Pell's equation x2−dy2=±1x^2 - dy^2 = \pm 1x2−dy2=±1. Dirichlet's unit theorem (Dirichlet, 1846) determines the structure of this unit group completely: it is finitely generated, and its rank is computed from the way the field embeds into R\mathbb RR and C\mathbb CC. With the finiteness of the class group, it is one of the two basic finiteness theorems of algebraic number theory and appears in every introductory text on the subject.

This mission follows the account of the theorem, the regulator and its standard examples given in the Wikipedia article Dirichlet's unit theorem (https://en.wikipedia.org/wiki/Dirichlet%27s_unit_theorem).

Setting

A number field KKK is a field containing Q\mathbb QQ with finite dimension n=[K:Q]n = [K:\mathbb Q]n=[K:Q] as a Q\mathbb QQ-vector space. Its ring of integers OK\mathcal O_KOK​ consists of the elements of KKK that are roots of monic polynomials with integer coefficients, and its unit group OK×\mathcal O_K^\timesOK×​ is the group of invertible elements of OK\mathcal O_KOK​.

The field KKK has exactly nnn field embeddings σ:K→C\sigma : K \to \mathbb Cσ:K→C. Let r1r_1r1​ be the number of embeddings with image in R\mathbb RR, and r2r_2r2​ the number of pairs of complex-conjugate non-real embeddings, so that n=r1+2r2n = r_1 + 2r_2n=r1​+2r2​. Equivalently, r1r_1r1​ and r2r_2r2​ count the real and complex infinite places www of KKK, i.e. the absolute values ∣x∣w=∣σ(x)∣|x|_w = |\sigma(x)|∣x∣w​=∣σ(x)∣. Write Nw=1N_w = 1Nw​=1 for a real place and Nw=2N_w = 2Nw​=2 for a complex place.

The rank of an abelian group is the largest number of elements that are independent over Z\mathbb ZZ. For OK×\mathcal O_K^\timesOK×​ this is the largest number of multiplicatively independent units. Units of finite order are exactly the roots of unity in KKK.

Put r=r1+r2−1r = r_1 + r_2 - 1r=r1​+r2​−1. If u1,…,uru_1, \dots, u_ru1​,…,ur​ generate OK×\mathcal O_K^\timesOK×​ modulo roots of unity, the r×(r+1)r \times (r+1)r×(r+1) matrix (Nwlog⁡∣ui∣w)\big(N_w \log |u_i|_w\big)(Nw​log∣ui​∣w​) has every row summing to 000. The absolute value RRR of the determinant of the square matrix left after deleting any one column is the regulator of KKK.

Formalization targets

Goal: Dirichlet's unit theorem

OK× is finitely generated and rank⁡OK×=r1+r2−1.\mathcal O_K^\times \text{ is finitely generated and } \operatorname{rank}\mathcal O_K^\times = r_1 + r_2 - 1.OK×​ is finitely generated and rankOK×​=r1​+r2​−1.

Milestones

  1. The signature identity n=r1+2r2n = r_1 + 2r_2n=r1​+2r2​. If K/QK/\mathbb QK/Q is Galois, then r1=0r_1 = 0r1​=0 or r2=0r_2 = 0r2​=0.
  2. Two other ways to compute (r1,r2)(r_1, r_2)(r1​,r2​): real and non-real roots of the minimal polynomial of a primitive element, and R⊗QK≅Rr1×Cr2\mathbb R \otimes_{\mathbb Q} K \cong \mathbb R^{r_1} \times \mathbb C^{r_2}R⊗Q​K≅Rr1​×Cr2​.
  3. Quadratic fields have unit rank 111 when real and 000 when imaginary. The rank is positive except for Q\mathbb QQ and imaginary quadratic fields.
  4. Torsion: the torsion units are the roots of unity and form a finite cyclic group. When KKK has a real embedding they are ±1\pm 1±1.
  5. Rank equality in a proper extension L/KL/KL/K holds exactly when KKK is totally real and L/KL/KL/K is a totally complex quadratic extension.
  6. The unit theorem for an arbitrary order O⊆OK\mathcal O \subseteq \mathcal O_KO⊆OK​.
  7. The logarithmic picture: ∑wNwlog⁡∣u∣w=0\sum_w N_w \log |u|_w = 0∑w​Nw​log∣u∣w​=0 for every unit, and the vectors (Nwlog⁡∣u∣w)w\big(N_w \log |u|_w\big)_w(Nw​log∣u∣w​)w​ form a lattice in the hyperplane of coordinate sum 000.
  8. The regulator does not depend on the generators or on the deleted column, and it is positive.
  9. Examples: Reg⁡=1\operatorname{Reg} = 1Reg=1 for Q\mathbb QQ and imaginary quadratic fields. Reg⁡(Q(5))=log⁡1+52\operatorname{Reg}(\mathbb Q(\sqrt5)) = \log\frac{1+\sqrt5}{2}Reg(Q(5​))=log21+5​​. For the cyclic cubic field defined by x3+x2−2x−1x^3 + x^2 - 2x - 1x3+x2−2x−1, the fundamental units are α2+α−1\alpha^2 + \alpha - 1α2+α−1 and 2−α22 - \alpha^22−α2, and Reg⁡≈0.5255\operatorname{Reg} \approx 0.5255Reg≈0.5255.

Significance

The result itself. The unit theorem gives OK×≅μ(K)×Zr1+r2−1\mathcal O_K^\times \cong \mu(K) \times \mathbb Z^{r_1 + r_2 - 1}OK×​≅μ(K)×Zr1​+r2​−1. This is the input for the analytic class number formula, where the regulator appears next to the class number. It also yields the finiteness of solutions of norm-form and SSS-unit problems and the structure of solutions of Pell's equation. It is the model for Hasse and Chevalley's SSS-unit theorem and for Leopoldt's conjecture on ppp-adic regulators.

Formalizing it. The theorem itself is classical and has already been formalized: Mathlib contains the unit group's rank, a system of fundamental units and a regulator in its NumberField.Units development. This mission adds the surrounding statements of the source article as explicit, independently checkable targets. These are the alternative descriptions of the signature, the rank in quadratic fields and in extensions, the unit theorem for non-maximal orders, the well-definedness of the regulator in the generator-free form given in the article, and the worked examples. The examples involve explicit numerical regulator values that are not in the library.

Difficulty

The upper bound on the rank follows by showing that the logarithmic image of the units is discrete. The hard part is the lower bound: one must produce r1+r2−1r_1 + r_2 - 1r1​+r2​−1 independent units. This requires constructing units of prescribed size at the infinite places. The obvious approach of writing down units explicitly does not work in general. The standard route uses Minkowski's geometry of numbers. The examples carry their own difficulty: showing that given units are fundamental and pinning a regulator to four decimal places takes certified bounds, not just exhibiting units. The statement for orders requires passing between O×\mathcal O^\timesO× and OK×\mathcal O_K^\timesOK×​ through a finite-index argument.

Formalization scope

Statements are in Lean 4 over Mathlib, in the namespace DirichletUnitTheorem. They use Mathlib's notions directly: NumberField, 𝓞 K, InfinitePlace, nrRealPlaces/nrComplexPlaces for r1r_1r1​/r2r_2r2​, InfinitePlace.mult for NwN_wNw​, IsTotallyReal/IsTotallyComplex for real/imaginary quadratic fields, and NumberField.Units.regulator for the regulator in the example milestones. The rank is Module.rank ℤ of the additive version of the unit group. This is a cardinal, so finite generation and the rank are stated separately. An order is a subring of OK\mathcal O_KOK​ of finite additive index. Approximate numerical values from the source are encoded as open intervals.

Units of finite order are written with IsOfFinOrder, so no statement depends on a particular torsion API. The goal is not trivialized by the truncated subtraction in r1+r2−1r_1 + r_2 - 1r1​+r2​−1, because r1+r2≥1r_1 + r_2 \ge 1r1​+r2​≥1 always holds.

Welcome contributions include proofs that bridge to the existing Mathlib development, certified numerical bounds for regulators, and the order and extension statements, which are reusable beyond this mission.

Selected references

  • Wikipedia contributors, Dirichlet's unit theorem, Wikipedia. https://en.wikipedia.org/wiki/Dirichlet%27s_unit_theorem
  • J. Neukirch, Algebraic Number Theory, Grundlehren 322, Springer, 1999, Chapter I §7. https://doi.org/10.1007/978-3-662-03983-0
  • H. Cohen, A Course in Computational Algebraic Number Theory, GTM 138, Springer, 1993, Table B.4. https://doi.org/10.1007/978-3-662-02945-9
18 thms2 active usersReviewed
🏆Completed
Probability·Captain: Lucas

Benford's Law: Leading Digits of Powers, Fibonacci Numbers and FactorialsTextbook

Motivation

Benford's law (also the Newcomb–Benford law, or first-digit law) is the observation that in many real-life collections of numbers the leading significant digit is small far more often than a uniform guess would suggest: the digit 111 leads about 30.1%30.1\%30.1% of the time and the digit 999 less than 5%5\%5% of the time. Simon Newcomb noticed in 1881 that the early pages of logarithm tables were more worn than the later ones and proposed that digit ddd leads with probability log⁡10(d+1)−log⁡10d\log_{10}(d+1)-\log_{10} dlog10​(d+1)−log10​d (Newcomb 1881); Frank Benford rediscovered the law in 1938 and tested it on 20,229 observations from 20 domains (Benford 1938). The law is used today as a screening statistic in forensic accounting, election forensics and the detection of fabricated scientific data.

Beyond empirical data, many classical integer sequences satisfy the law exactly, in the asymptotic sense: the powers of 222, the powers of any integer kkk with log⁡10k\log_{10} klog10​k irrational, the Fibonacci numbers and the factorials. These are theorems, and they are the core of this mission.

Timeline of the mathematical results formalized here:

  • 1881 — Newcomb states the first-digit law (doi:10.2307/2369148).
  • 1938 — Benford's empirical study (JSTOR 984802).
  • 1961 — Pinkham: a scale-invariant first-digit law must be logarithmic (doi:10.1214/aoms/1177704862).
  • 1967, 1981 — Duncan and Washington: the Fibonacci numbers are Benford (doi:10.1080/00150517.1967.12431312, doi:10.1080/00150517.1981.12430109).
  • 1976 — Raimi's survey "The first digit problem" (doi:10.2307/2319349).
  • 1995 — Hill: base invariance and a statistical derivation; the distribution of digits beyond the first (doi:10.1214/ss/1177009869, doi:10.1080/00029890.1995.11990578).

Setting

Fix an integer base b≥2b \ge 2b≥2. Every real x≠0x \neq 0x=0 can be written uniquely as ∣x∣=m⋅be|x| = m \cdot b^{e}∣x∣=m⋅be with significand m∈[1,b)m \in [1, b)m∈[1,b) and e∈Ze \in \mathbb{Z}e∈Z. The leading digit of xxx is Db(x)=⌊m⌋∈{1,…,b−1}D_b(x) = \lfloor m \rfloor \in \{1,\dots,b-1\}Db​(x)=⌊m⌋∈{1,…,b−1}. Equivalently, with {t}=t−⌊t⌋\{t\} = t - \lfloor t \rfloor{t}=t−⌊t⌋ the fractional part,

Db(x)=⌊b{log⁡b∣x∣}⌋.D_b(x) = \left\lfloor b^{\{\log_b |x|\}} \right\rfloor .Db​(x)=⌊b{logb​∣x∣}⌋.

More generally, the integer formed by the first kkk significant digits is ⌊b{log⁡b∣x∣}+k−1⌋\lfloor b^{\{\log_b|x|\} + k - 1}\rfloor⌊b{logb​∣x∣}+k−1⌋, and the nnn-th significant digit is that integer for k=nk=nk=n reduced modulo bbb.

The Benford probabilities are

Pb(d)=log⁡b(d+1)−log⁡bd=log⁡b ⁣(1+1d),d=1,…,b−1.P_b(d) = \log_b(d+1) - \log_b d = \log_b\!\left(1 + \frac1d\right), \qquad d = 1, \dots, b-1 .Pb​(d)=logb​(d+1)−logb​d=logb​(1+d1​),d=1,…,b−1.

A real sequence (an)n≥0(a_n)_{n \ge 0}(an​)n≥0​ satisfies Benford's law in base bbb if for every digit d∈{1,…,b−1}d \in \{1,\dots,b-1\}d∈{1,…,b−1}

lim⁡N→∞#{0≤n<N:Db(an)=d}N=Pb(d).\lim_{N\to\infty} \frac{\#\{0 \le n < N : D_b(a_n) = d\}}{N} = P_b(d).N→∞lim​N#{0≤n<N:Db​(an​)=d}​=Pb​(d).

A positive random variable XXX satisfies the strong form of the law if {log⁡bX}\{\log_b X\}{logb​X} is uniformly distributed on [0,1)[0,1)[0,1).

Formalization targets

Goal — powers of kkk (Note 3 of the source)

For every natural number kkk such that log⁡10k\log_{10} klog10​k is irrational, the sequence k1,k2,k3,…k^1, k^2, k^3, \dotsk1,k2,k3,… satisfies Benford's law in base 101010:

lim⁡N→∞#{1≤n≤N:D10(kn)=d}N=log⁡10 ⁣(1+1d)(d=1,…,9).\lim_{N\to\infty}\frac{\#\{1\le n\le N : D_{10}(k^n)=d\}}{N}=\log_{10}\!\left(1+\frac1d\right)\quad (d=1,\dots,9).N→∞lim​N#{1≤n≤N:D10​(kn)=d}​=log10​(1+d1​)(d=1,…,9).

Milestones

  1. The Benford probabilities in base bbb sum to 111.
  2. Db(x)=dD_b(x) = dDb​(x)=d if and only if log⁡bd≤{log⁡bx}<log⁡b(d+1)\log_b d \le \{\log_b x\} < \log_b (d+1)logb​d≤{logb​x}<logb​(d+1).
  3. Strong form ⇒\Rightarrow⇒ first-digit law, in every base b≥2b \ge 2b≥2.
  4. In base 222 every nonzero number has leading digit 111.
  5. The powers of 222 satisfy Benford's law.
  6. The Fibonacci numbers satisfy Benford's law.
  7. The factorials satisfy Benford's law.
  8. Exponential growth or decay CertC e^{rt}Cert (r≠0r\ne 0r=0) spends an asymptotic fraction log⁡10(1+1/d)\log_{10}(1+1/d)log10​(1+1/d) of its time with leading digit ddd.
  9. A scale-invariant first-digit distribution is the Benford distribution.
  10. Under the strong form, the first kkk digits form the integer nnn with probability log⁡10(1+1/n)\log_{10}(1+1/n)log10​(1+1/n).
  11. Under the strong form, the nnn-th digit (n≥2n \ge 2n≥2) equals ddd with probability ∑k=10n−210n−1−1log⁡10 ⁣(1+110k+d)\sum_{k=10^{n-2}}^{10^{n-1}-1}\log_{10}\!\left(1+\frac{1}{10k+d}\right)∑k=10n−210n−1−1​log10​(1+10k+d1​).
  12. That nnn-th-digit probability tends to 1/101/101/10.
  13. The Benford first-digit distribution has mean 3.4403.4403.440 and variance 6.0576.0576.057 (to three decimals).
  14. The reciprocals 1/n1/n1/n and the square roots n\sqrt nn​ of the natural numbers do not satisfy Benford's law.

Significance

The goal is the cleanest instance of the mechanism behind Benford's law: a sequence obeys the law exactly when the fractional parts of its base-101010 logarithms are equidistributed modulo 111, and for knk^nkn those fractional parts are the multiples nlog⁡10kn\log_{10}knlog10​k reduced modulo 111. The milestones cover the rest of the mathematical content of the article: the definition and normalization of the law, the derivation from a log-uniform significand, the generalization to several leading digits and to the nnn-th digit, scale invariance, the continuous-time exponential case, and the negative results for 1/n1/n1/n and n\sqrt nn​.

All of these results are classical and proved in the literature cited above; the work here is formalizing the known proofs. Related entries already on the platform (a leading-digit / fractional-part characterization and an equidistribution-based Benford criterion, stated with different definitions) may be reusable by solvers.

Difficulty

The goal and milestones 5–7 reduce to equidistribution of a sequence modulo 111. For knk^nkn and Fibonacci numbers this is Weyl's equidistribution theorem for irrational rotations (Fibonacci additionally needs Binet's formula and an error term that vanishes). Factorials are harder: log⁡10n!\log_{10} n!log10​n! is not a linear sequence, and the classical proof combines Stirling's formula with an equidistribution criterion for sequences whose differences vary slowly. The scale-invariance theorem requires a Fourier-analytic argument on the circle R/Z\mathbb{R}/\mathbb{Z}R/Z. The negative results require showing that a counting ratio oscillates, which needs explicit lower and upper estimates along two subsequences.

Formalization scope

  • Digits are defined through real logarithms: Db(x)=⌊b{log⁡bx}⌋D_b(x) = \lfloor b^{\{\log_b x\}} \rfloorDb​(x)=⌊b{logb​x}⌋. Lean's Real.logb takes log⁡b∣x∣\log_b|x|logb​∣x∣, so negative numbers get the leading digit of their absolute value, and the junk value Db(0)=1D_b(0) = 1Db​(0)=1 occurs. Every statement either restricts to positive (or nonzero) inputs or only uses positive sequences.
  • Sequences are indexed from n=0n=0n=0; "the sequence k1,k2,…k^1, k^2, \dotsk1,k2,…" is encoded as an=kn+1a_n = k^{n+1}an​=kn+1, the Fibonacci numbers as Fn+1F_{n+1}Fn+1​ and the factorials as (n+1)!(n+1)!(n+1)!.
  • The asymptotic frequency is a natural density over {0,…,N−1}\{0,\dots,N-1\}{0,…,N−1}; "satisfies Benford's law" requires convergence for every digit 1≤d<b1\le d<b1≤d<b.
  • The strong form is encoded as: XXX measurable, X>0X>0X>0 almost surely, and the pushforward of the probability measure under ω↦{log⁡bX(ω)}\omega \mapsto \{\log_b X(\omega)\}ω↦{logb​X(ω)} equals Lebesgue measure restricted to [0,1)[0,1)[0,1) (this forces the underlying measure to have total mass 111).
  • Moments are stated to three decimals, matching the source's rounding: ∣mean−3.440∣<0.0005|\mathrm{mean} - 3.440| < 0.0005∣mean−3.440∣<0.0005 and ∣variance−6.057∣<0.0005|\mathrm{variance} - 6.057| < 0.0005∣variance−6.057∣<0.0005.
  • Not formalized: the empirical claims (tables, applications, statistical tests), Hill's 1995 theorem on random mixtures of distributions, and the Krieger–Kafri entropy explanation; their statements in the source are not precise enough to formalize faithfully.

Reusable infrastructure: leading-digit and significand API, equidistribution of nαn\alphanα modulo 111 (Weyl), Benford criteria via equidistribution. Contributions toward a general "equidistributed {log⁡10an}\{\log_{10} a_n\}{log10​an​} ⇒\Rightarrow⇒ Benford" lemma are welcome.

Selected references

  • S. Newcomb, Note on the frequency of use of the different digits in natural numbers, American Journal of Mathematics 4 (1881), 39–40. https://doi.org/10.2307/2369148
  • F. Benford, The law of anomalous numbers, Proc. Amer. Philos. Soc. 78 (1938), 551–572. https://www.jstor.org/stable/984802
  • R. S. Pinkham, On the distribution of first significant digits, Ann. Math. Statist. 32 (1961), 1223–1230. https://doi.org/10.1214/aoms/1177704862
  • R. L. Duncan, An application of uniform distribution to the Fibonacci numbers, Fibonacci Quarterly 5 (1967), 137–140. https://doi.org/10.1080/00150517.1967.12431312
  • L. C. Washington, Benford's law for Fibonacci and Lucas numbers, Fibonacci Quarterly 19 (1981), 175–177. https://doi.org/10.1080/00150517.1981.12430109
  • R. A. Raimi, The first digit problem, American Mathematical Monthly 83 (1976), 521–538. https://doi.org/10.2307/2319349
  • T. P. Hill, A statistical derivation of the significant-digit law, Statistical Science 10 (1995), 354–363. https://doi.org/10.1214/ss/1177009869
  • T. P. Hill, The significant-digit phenomenon, American Mathematical Monthly 102 (1995), 322–327. https://doi.org/10.1080/00029890.1995.11990578
  • A. Berger, T. P. Hill, The mathematics of Benford's law: a primer, Stat. Methods Appl. 30 (2021), 779–795. https://arxiv.org/abs/1909.07527
  • Wikipedia, Benford's law. https://en.wikipedia.org/wiki/Benford%27s_law
16 thms2 active usersReviewed
🏆Completed
Functional Analysis·Captain: waitingintime

Connes–Weil Green realization: canonical Dirichlet carrier and actual-zero synthesisTextbook

Why the Green realization matters

The Weil positivity criterion relates the zeros of the Riemann zeta function to an arithmetic quadratic form. The existing Connes mission now has a proved positivity-implies-RH goal. Stronger actual-zero quartet separation also controls the complete complementary coefficient energy. Neither result by itself identifies those scalar coefficients with the adjoint of a physical Dirichlet Green operator.

This mission addresses that identification. The underlying mathematics is the classical Hilbert-space realization of a positive Dirichlet operator, as treated in Brezis, Functional Analysis, Sobolev Spaces and Partial Differential Equations, applied to the original source functions and analytic multiplicities in the Connes–Weil development. It formalizes a known functional-analytic construction; it does not claim a proof of Weil positivity or unconditional RH. The exact goal is the assembly specified below, rather than a theorem quoted verbatim from Brezis or Connes.

The fixed physical space

Fix a positive radius ttt and put It=[−t,t]I_t=[-t,t]It​=[−t,t], with restricted Lebesgue measure. A supported test is a smooth compactly supported complex function ggg on the real line whose closed support lies strictly inside (−t,t)(-t,t)(−t,t). The differential operator and its energy map are

L=−d2dx2+14,Jtu=(u′,u/2).L=-\frac{d^2}{dx^2}+\frac14,\qquad J_tu=(u',u/2).L=−dx2d2​+41​,Jt​u=(u′,u/2).

The ambient space is the Hilbert direct sum of two copies of L2(It;C)L^2(I_t;\mathbb C)L2(It​;C), using the sum of squared norms, not the Banach product maximum norm. Define the physical carrier HtH_tHt​ to be the closure of the complex linear span of JtgJ_tgJt​g for all supported tests. Thus its metric is fixed by

∥Jtu∥2=∫−tt(∣u′∣2+∣u∣2/4) dx.\|J_tu\|^2=\int_{-t}^{t}(|u'|^2+|u|^2/4)\,dx.∥Jt​u∥2=∫−tt​(∣u′∣2+∣u∣2/4)dx.

This carrier is defined independently of the zeta-zero set. It is the energy-image completion of the Dirichlet test space; the source-side HL−1H^{-1}_LHL−1​ interpretation is through Riesz representation, not by identifying the positive Sobolev norm of ggg with the source norm of ggg.

For an L2L^2L2 source fff, the source lift is the orthogonal projection of (0,2f)(0,2f)(0,2f) onto HtH_tHt​. The factor two fixes the pairing convention: its inner product against JtuJ_tuJt​u represents ∫u‾f\int\overline u f∫uf. The induced map on functions uses their L2L^2L2 classes. Its total definition sends non-L2L^2L2 functions to zero; all actual sources and tests used in the target must explicitly satisfy the required L2L^2L2 conditions, so this fallback cannot discharge the target.

The actual Green columns

Let ZZZ be exactly the set of zeros ρ\rhoρ of the actual Riemann zeta function with 0<Re⁡ρ<10<\operatorname{Re}\rho<10<Reρ<1. Let mρm_\rhomρ​ be their natural analytic multiplicity. No surrogate zero configuration or simple-zero convention is used. Write

γρ=−i(1−ρ‾−1/2),fρ(x)=exp⁡(x(−iγρ)),qρ=(1/4+γρ2)−1.\gamma_\rho=-i(1-\overline\rho-1/2),\quad f_\rho(x)=\exp(x(-i\gamma_\rho)),\quad q_\rho=(1/4+\gamma_\rho^2)^{-1}.γρ​=−i(1−ρ​−1/2),fρ​(x)=exp(x(−iγρ​)),qρ​=(1/4+γρ2​)−1.

The original Green column is the existing function

Ft,ρ(x)=qρfρ(x)−qρfρ(t)sinh⁡((t+x)/2)sinh⁡t−qρfρ(−t)sinh⁡((t−x)/2)sinh⁡t.F_{t,\rho}(x)=q_\rho f_\rho(x)-q_\rho f_\rho(t)\frac{\sinh((t+x)/2)}{\sinh t}-q_\rho f_\rho(-t)\frac{\sinh((t-x)/2)}{\sinh t}.Ft,ρ​(x)=qρ​fρ​(x)−qρ​fρ​(t)sinhtsinh((t+x)/2)​−qρ​fρ​(−t)sinhtsinh((t−x)/2)​.

Its energy is the existing Dirichlet integral Et,ρ=∫−tt(∣Ft,ρ′∣2+∣Ft,ρ∣2/4)E_{t,\rho}=\int_{-t}^t(|F'_{t,\rho}|^2+|F_{t,\rho}|^2/4)Et,ρ​=∫−tt​(∣Ft,ρ′​∣2+∣Ft,ρ​∣2/4). The reflected ordinate is retained because the Hilbert inner product is conjugate-linear in its first argument. The ported native definitions have been checked for definitional equality against the repository definitions.

Formalization targets

The goal, for every t>0t>0t>0, is the following conjunction. First, the source lift from L2(It)L^2(I_t)L2(It​) has dense range in HtH_tHt​. This asserts density, not surjectivity. Second, every actual Green column has the required L2L^2L2 regularity and belongs to the prescribed energy completion, and

embed⁡t(fρ)=JtFt,ρ,∥embed⁡t(fρ)∥2=Et,ρ.\operatorname{embed}_t(f_\rho)=J_tF_{t,\rho},\qquad \|\operatorname{embed}_t(f_\rho)\|^2=E_{t,\rho}.embedt​(fρ​)=Jt​Ft,ρ​,∥embedt​(fρ​)∥2=Et,ρ​.

Third, for every supported test ggg, the source LgLgLg is square integrable, the Green product is integrable, and

⟨embed⁡t(fρ),embed⁡t(Lg)⟩=∫−ttFt,ρ(x)‾ Lg(x) dx.\langle\operatorname{embed}_t(f_\rho),\operatorname{embed}_t(Lg)\rangle=\int_{-t}^t\overline{F_{t,\rho}(x)}\,Lg(x)\,dx.⟨embedt​(fρ​),embedt​(Lg)⟩=∫−tt​Ft,ρ​(x)​Lg(x)dx.

Finally, the full actual-zero weighted energy is summable. For vρ=mρembed⁡t(fρ)v_\rho=\sqrt{m_\rho}\operatorname{embed}_t(f_\rho)vρ​=mρ​​embedt​(fρ​), construct the bounded synthesis St:ℓ2(Z;C)→HtS_t:\ell^2(Z;\mathbb C)\to H_tSt​:ℓ2(Z;C)→Ht​ with these exact columns. Every synthesis series must be summable, and

Stu=∑ρuρvρ,(St∗h)ρ=⟨vρ,h⟩,∥St∗h∥2=∑ρ∣⟨vρ,h⟩∣2,∥St∥2≤∑ρmρEt,ρ.S_tu=\sum_\rho u_\rho v_\rho,\quad (S_t^*h)_\rho=\langle v_\rho,h\rangle,\quad \|S_t^*h\|^2=\sum_\rho|\langle v_\rho,h\rangle|^2,\quad \|S_t\|^2\le\sum_\rho m_\rho E_{t,\rho}.St​u=ρ∑​uρ​vρ​,(St∗​h)ρ​=⟨vρ​,h⟩,∥St∗​h∥2=ρ∑​∣⟨vρ​,h⟩∣2,∥St​∥2≤ρ∑​mρ​Et,ρ​.

Require uniqueness among bounded maps on this same coefficient carrier with these same basis columns. None of these norm, projection, density, pairing, or summability conclusions appears as a hypothesis of the goal.

Certified completion

The published reciprocal-square theorem supplies the actual-zero majorant underlying the native energy bound. The published bounded-synthesis theorem supplies the generic operator construction and adjoint identities. They are included as references with their existing identities, not re-created.

The aggregate goal and all seven original mission milestones are now Proved on P2M, with zero open leaves. The independent native development also proves original-constructor physical selected-quartet separation, preserving the exact columns, packet coefficients, complete positive zero family, analytic multiplicities and half-sum/half-difference actor normalization. The realization hypotheses have been discharged for the specified carrier at each positive support window. Neither this construction nor conditional positivity-implies-RH establishes Weil positivity or unconditional RH.

Mathematical content of the certified realization

An explicit smooth column vanishing at the endpoints is not, solely by those facts, an element of the closure of tests supported strictly inside the interval. The certified proofs establish that boundary-density statement in the chosen energy topology and identify the Riesz projection with the explicit Green column. Source-lift density uses the value component to distinguish vectors in the closed derivative graph. No physical column-norm or pairing assertion is assumed.

Formalization scope

All definitions, target statements and accepted proofs are checked against Lean 4.33.1 and Mathlib revision 0df444a360eaa60ab8c11dca51a86af692955474. The additive repository model also compiles with the existing Lean 4.34.0 development. The approved mission retains its shared definition bundle, aggregate goal and seven original proved milestones. Subsequent accepted supporting library lemmas are linked separately, with their exact published hypotheses and conclusions.

Each support radius has its specified carrier HtH_tHt​. Subsequent native results construct the original test-preserving isometries for nested positive support windows and transfer their actual source columns and syntheses. These are constructed inclusions, rather than identifications with a single fixed physical carrier. Downstream packet transfer retains the same-radius basis-column custody. The goal makes no claim that every prescribed window contains a negative Weil witness. The globally constructed separating test may choose its support radius after amplification. The original finite-packet inner regularization norm limits and outer right-hand support norm limits are proved natively, in that order. Subsequent certified reductions classify actual-quartet good windows and express the original fixed-window half-bound as all-accuracy finite certificates. These results do not prove the arithmetic lower inequality. Identification with the prescribed arithmetic/provenance packet endpoint and the arithmetic endpoint lower bound with original neutral-shell custody and persistence remain open for ZP-WEIL-MARKER-TRANSFER / RH-ZERO-PROV-2. The selected-coefficient certificate theorem retains the complete actual-positive tail; it establishes an equivalence, not certificate nonnegativity.

Mission boundary and milestone history

The Textbook category applies to this mission's original known functional-analytic construction. Its realization-and-synthesis goal is complete. The existing downstream milestone list and dependency graph are retained as an archive of certified extensions; milestone completion does not mean that every linked result is a premise of the original goal or that RH has been established. Future supporting definitions and lemmas remain shared library nodes unless they warrant a substantial, source-grounded checkpoint.

The unresolved arithmetic lower bound is being organized in a separate OpenProblem draft, Connes–Weil arithmetic lower bound: cofinal actual-quartet certificates. Its target requires arbitrarily large actual-quartet windows with all-accuracy nonnegative selected certificates and the complete omitted positive tail controlled at the same accuracy. The existing cofinal quartet criterion and finite selected-certificate criterion are proved reductions. The new draft goal itself is unproved and is equivalent to RH in the existing development.

Selected references

  • H. Brezis, Functional Analysis, Sobolev Spaces and Partial Differential Equations, Springer, 2011. DOI. Background on Hilbert representation, Sobolev completions and Dirichlet problems.
  • A. Connes, Trace formula in noncommutative Geometry and the zeros of the Riemann zeta function, Selecta Mathematica 5, 1999. arXiv. Context for the positivity criterion; the canonical Green model here is an explicit subsequent formalization target.
  • monocap-tech/weil, existing native definitions in DirichletResolvent.lean and DirichletEnergy.lean. Canonical model and goal specification are supplied explicitly in this proposal. The complete independently checked Green-frontier source snapshot has SHA256 ce194a69770846a9027a274e581de56b507be219c393d080a06259e175cbe798; this is a source custody record, not a claim that the archive was attached to P2M.
139 thms2 active usersReviewed
🏆Completed
Algebraic Geometry·Captain: marwahaha

The Bogomolov-Pop reconstruction theoremOpen Problem

Motivation

Birational anabelian geometry studies how much of a function field is determined by a small quotient of its absolute Galois group. This mission isolates uniqueness in the reconstruction correspondence. The source manuscript presents the surrounding research claim.

Setting

Fix a prime ℓ. The fields K/k and L/l are essentially finite type extensions of algebraically closed constant fields, have transcendence degree at least two, and have characteristic different from ℓ. The abelian-by-central datum records the pro-ℓ abelian quotient and the commutator pairing. IsomF consists of constant-preserving perfect-closure isomorphisms modulo Frobenius; IsomCUnits quotients bracket-compatible Galois isomorphisms by the encoded ℓ-adic unit relation.

Formalization target

For field-isomorphism classes a and a′ and a Galois-isomorphism class b, prove

PhiGraph⁡(a,b)  ∧  PhiGraph⁡(a′,b)⟹a=a′.\operatorname{PhiGraph}(a,b)\;\land\;\operatorname{PhiGraph}(a^{\prime},b)\quad\Longrightarrow\quad a=a^{\prime}.PhiGraph(a,b)∧PhiGraph(a′,b)⟹a=a′.

PhiGraph is the relation induced by representatives and a compatible extension to algebraic closures.

The selected formal target is OAI.BogomolovPop.main_graph_injective.

Significance and status

This establishes uniqueness of the field class whenever two representatives produce the same Galois class. The manuscript states a full reconstruction bijection; the selected published Lean target is its graph-injectivity assertion. The published target is currently Open; the manuscript's argument and a checked Lean proof are separate deliverables.

Difficulty

Equality is required after two different quotient constructions, one generated by Frobenius and one by ℓ-adic scalar limits. Recovering equality of classes must respect both ambiguities and the contravariant Galois action.

Formalization scope

The definition block constructs topological pro-ℓ quotients, closed commutator subgroups, perfect closures and the pullback graph. The theorem quantifies over arbitrary field types with the stated algebraic instances. It does not assert existence, surjectivity or functionality of PhiGraph, and those broader manuscript conclusions are not attached as proved results. Only the existing injectivity target and its definition block are referenced.

Selected references

  • OpenAI, The Bogomolov-Pop reconstruction theorem, preprint, 2026. Pinned manuscript.
  • OpenAI, accompanying formal statements, commit adc7f1241b42. Goal source.
8 thms2 active usersReviewed
🏆Completed
Algebra·Captain: marwahaha

The Deligne-Drinfeld conjectureOpen Problem

Motivation

Compatibility between reassociation and braiding imposes equations on formal Lie expressions. The question is whether those equations leave precisely the free family of odd-weight generators predicted by the Deligne–Drinfeld conjecture. The source manuscript presents the surrounding research claim.

Setting

Let L be the free Lie algebra over ℚ on x and y, each of weight one. The solution space W satisfies antisymmetry, the three-term relation, and the pentagon equation in the four-strand infinitesimal braid algebra. Its operation is the Ihara bracket {p,q}=Dₚq−D_qp+[p,q]. The free algebra F has generators indexed by k ≥ 0 with weights 2k+3.

Formalization target

Establish a graded bracket-preserving linear equivalence

F=Lie⁡Q⟨e3,e5,e7,…⟩  ≅  W,F=\operatorname{Lie}_{\mathbb Q}\langle e_3,e_5,e_7,\ldots\rangle\;\cong\;W,F=LieQ​⟨e3​,e5​,e7​,…⟩≅W,

together with mutually inverse continuous maps on the products of weight pieces. The completed maps must preserve the bracket degree by degree, including the finite convolution sum defining its weight-n component.

The selected formal target is OAI.DeligneDrinfeld.main.

Significance and status

The target simultaneously expresses freeness and exhaustion of the full equation space. Finding a free subalgebra alone leaves the exhaustion assertion unresolved. The published target is currently Open; the manuscript's argument and a checked Lean proof are separate deliverables.

Difficulty

The pentagon relation couples substitutions in the braid Lie algebra. Constructing odd-weight solutions does not by itself show that all solutions are generated by them, nor that the completed bracket has the required compatibility.

Formalization scope

The published definition block specifies the braid quotient, tangent construction of D, weighted Lie words, rational submodules and product completions. Generator k has weight 2k+3. The factor spaces carry the explicitly supplied discrete topology. The goal is exactly MainStatement, including its inverse, continuity and completed-bracket clauses. The available reference set supplies the definition block and one target, so no unsupported paper lemmas are attached as milestones.

Selected references

  • OpenAI, The Deligne-Drinfeld conjecture, preprint, 2026. Pinned manuscript.
  • OpenAI, accompanying formal statements, commit adc7f1241b42. Goal source.
14 thms2 active usersReviewed
🏆Completed
Combinatorics·Captain: wurtle

Short Egyptian fractionsResearch Paper

Motivation: how short can an Egyptian fraction be?

An Egyptian-fraction expansion writes a positive rational number as a sum of distinct unit fractions 1/n1/n1/n. Every fraction a/ba/ba/b with 1≤a<b1\le a<b1≤a<b has one, by the greedy algorithm, but greedy expansions can be long. The basic quantitative question is how many terms are needed in the worst case for a fixed denominator bbb. Let N(a,b)N(a,b)N(a,b) be the least length of an expansion of a/ba/ba/b with denominators ≥2\ge2≥2, and N(b)=max⁡1≤a<bN(a,b)N(b)=\max_{1\le a<b}N(a,b)N(b)=max1≤a<b​N(a,b). Erdős proved in 1950 that N(b)≪log⁡b/log⁡log⁡bN(b)\ll\log b/\log\log bN(b)≪logb/loglogb, showed that N(b)≫log⁡log⁡bN(b)\gg\log\log bN(b)≫loglogb (already for a=b−1a=b-1a=b−1), and conjectured that the double-logarithmic order is correct. The question appears in Erdős–Graham's 1980 problem book and as Erdős Problem 304. The same circle of questions asks how many expansions of 111 with exactly kkk terms exist, and which integers can appear as denominators in them (Erdős Problem 293).

Timeline

  • 1940 — Nakayama studies N(a,b)N(a,b)N(a,b) through arithmetic criteria for expansions with few terms (Tohoku Math. J. 46).
  • 1950 — Erdős reports de Bruijn's bound N(b)≪log⁡b/log⁡log⁡log⁡bN(b)\ll\log b/\log\log\log bN(b)≪logb/logloglogb, improves it to N(b)≪log⁡b/log⁡log⁡bN(b)\ll\log b/\log\log bN(b)≪logb/loglogb, proves the lower bound N(b)≫log⁡log⁡bN(b)\gg\log\log bN(b)≫loglogb, and conjectures the matching upper bound (Mat. Lapok 1950).
  • 1980 — Erdős and Graham restate the problem and ask for estimates of the number of kkk-term expansions of 111 and for the least missing denominator (Old and New Problems…).
  • 1985 — Vose proves N(b)≪log⁡bN(b)\ll\sqrt{\log b}N(b)≪logb​ (Bull. LMS 17).
  • 1990 — Tenenbaum and Yokota give length (1+ε)log⁡b/log⁡log⁡b(1+\varepsilon)\log b/\log\log b(1+ε)logb/loglogb with denominators O(b(log⁡b)2log⁡log⁡b)O(b(\log b)^2\log\log b)O(b(logb)2loglogb) (J. Number Theory).
  • 2014–2021 — Konyagin proves a lower bound for the number F(k)F(k)F(k) of kkk-term expansions of 111 with log⁡log⁡F(k)≫k/log⁡k\log\log F(k)\gg k/\log kloglogF(k)≫k/logk (Mat. Zametki); Elsholtz extends it to restricted denominators (Q. J. Math.); Elsholtz and Planitzer prove log⁡log⁡F(k)=O(k)\log\log F(k)=O(k)loglogF(k)=O(k) (Bull. LMS).
  • 2026 — van Doorn and Tang prove v(k)≥exp⁡(ck2)v(k)\ge\exp(ck^2)v(k)≥exp(ck2) for the least missing denominator (Math. Proc. Cambridge Philos. Soc.).
  • 2026 — An OpenAI preprint, Short Egyptian fractions (OpenAI Math Release, September 25, 2026), claims N(b)≍log⁡log⁡bN(b)\asymp\log\log bN(b)≍loglogb, settling Erdős's conjecture, together with log⁡log⁡F(k)≍k\log\log F(k)\asymp kloglogF(k)≍k and log⁡log⁡v(k)≍k\log\log v(k)\asymp kloglogv(k)≍k. It has not been peer reviewed, and its proofs are not formally verified.

Setting

For integers 1≤a<b1\le a<b1≤a<b, an expansion of a/ba/ba/b is a finite list 2≤n1<⋯<nk2\le n_1<\dots<n_k2≤n1​<⋯<nk​ of integers with

ab=1n1+⋯+1nk.\frac ab=\frac1{n_1}+\dots+\frac1{n_k}.ba​=n1​1​+⋯+nk​1​.

The fraction need not be in lowest terms and the denominators are unbounded. N(a,b)N(a,b)N(a,b) is the least such kkk, and

N(b)=max⁡1≤a<bN(a,b).N(b)=\max_{1\le a<b}N(a,b).N(b)=1≤a<bmax​N(a,b).

For k≥1k\ge1k≥1, F(k)F(k)F(k) is the number of tuples 1≤n1<⋯<nk1\le n_1<\dots<n_k1≤n1​<⋯<nk​ with ∑1/ni=1\sum 1/n_i=1∑1/ni​=1; DkD_kDk​ is the set of integers m≥2m\ge2m≥2 occurring as some nin_ini​ in such a tuple; and v(k)=min⁡({2,3,… }∖Dk)v(k)=\min(\{2,3,\dots\}\setminus D_k)v(k)=min({2,3,…}∖Dk​).

Formalization targets

Goal: the optimal order of the shortest expansions (Theorem 1.1)

Every a/ba/ba/b with 1≤a<b1\le a<b1≤a<b has an expansion, and there are absolute constants c1,c2>0c_1,c_2>0c1​,c2​>0 and b0b_0b0​ such that for every b≥b0b\ge b_0b≥b0​

c1log⁡log⁡b  ≤  N(b)  ≤  c2log⁡log⁡b.c_1\log\log b\;\le\;N(b)\;\le\;c_2\log\log b .c1​loglogb≤N(b)≤c2​loglogb.

No values of the constants are fixed. The goal statement is published on the platform with status Open.

Milestones

  • Theorem 1.1, second formulation, stated with the definitions shared by the corollaries below.
  • Corollary 1.2: there are c,C>0c,C>0c,C>0 and k0k_0k0​ with ck≤log⁡log⁡F(k)≤Ckck\le\log\log F(k)\le Ckck≤loglogF(k)≤Ck for every k≥k0k\ge k_0k≥k0​.
  • Lemma 7.2: for r≥3r\ge3r≥3, any exact rrr-term expansion of 111 containing the denominator mmm can be lengthened to an exact (r+1)(r+1)(r+1)-term expansion still containing mmm; hence Dr⊆Dr+1D_r\subseteq D_{r+1}Dr​⊆Dr+1​.
  • Proposition 8.1: for every ε>0\varepsilon>0ε>0, every sufficiently large mmm is a denominator in an expansion of 111 with at most (257/log⁡2+ε)log⁡log⁡m(257/\log2+\varepsilon)\log\log m(257/log2+ε)loglogm terms.
  • Corollary 1.3: eventually exp⁡(exp⁡(k/600))≤v(k)≤1+k2k−1\exp(\exp(k/600))\le v(k)\le1+k^{2^{k-1}}exp(exp(k/600))≤v(k)≤1+k2k−1, and log⁡2/257≤lim inf⁡klog⁡log⁡v(k)/k≤lim sup⁡klog⁡log⁡v(k)/k≤log⁡2\log2/257\le\liminf_k \log\log v(k)/k\le\limsup_k\log\log v(k)/k\le\log2log2/257≤liminfk​loglogv(k)/k≤limsupk​loglogv(k)/k≤log2.

Significance

The result itself. Theorem 1.1 answers Erdős's 1950 conjecture (Erdős Problem 304) affirmatively. The lower bound is classical; the content is the uniform upper bound for every numerator. As consequences, the paper determines the double-logarithmic order of the number of representations of 111 (Corollary 1.2) and of the least integer absent from all kkk-term expansions of 111 (Corollary 1.3), improving van Doorn–Tang's exp⁡(ck2)\exp(ck^2)exp(ck2) lower bound to a double exponential.

Formalizing it. All statements are elementary, with no analytic objects beyond logarithms, so a formal proof would give a complete machine-checked account of a problem from Erdős's list. The proof uses residue distribution of divisors, uniform divisor moments and a probabilistic construction, none of which is machine-checked. The elementary pieces — finiteness of F(k)F(k)F(k), the denominator bound ni≤k2i−1n_i\le k^{2^{i-1}}ni​≤k2i−1, and the padding lemma — are independently checkable and useful for other unit-fraction problems.

Difficulty

The greedy algorithm and divisor methods (Erdős; Tenenbaum–Yokota) lose a factor log⁡b/(log⁡log⁡b)2\log b/(\log\log b)^2logb/(loglogb)2 because they treat each numerator individually. The proof instead builds an auxiliary denominator MMM for which almost every numerator in a large range has a short expansion, and descends through O(log⁡log⁡b)O(\log\log b)O(loglogb) ranges. The obstacle is that the exceptional numerators at each level could accumulate during the descent; controlling them requires a uniform moment bound for small divisors in shifted intervals. For Corollary 1.3, an additional difficulty is that the exact term 1/m1/m1/m must survive every operation that lengthens the expansion.

Formalization scope

  • The goal uses OAI.ShortEgyptian: expansions are List ℕ that are strictly increasing (Pairwise (· < ·)), with entries ≥2\ge2≥2 and rational sum a/ba/ba/b; minLength a b is an sInf and maxMinLength b the maximum over 1≤a<b1\le a<b1≤a<b. The existence conjunct guarantees that sInf is taken over a nonempty set, so the bounds cannot hold through a junk value.
  • The Problem337 milestones use Fin k → ℕ tuples (StrictMono, entries ≥2\ge2≥2 for a/ba/ba/b and ≥1\ge1≥1 for expansions of 111); F(k)F(k)F(k) is Set.ncard, and v(k)v(k)v(k) is sInf of the missing denominators. Finiteness of DkD_kDk​ and of the expansion sets, which make these values meaningful, are separate statements in the proposal. In Corollary 1.3 the slopes are real liminf/limsup, accompanied by the explicit eventual bounds.
  • Logarithms are Real.log; all constants are existential, apart from the explicit 600600600, 257/log⁡2257/\log 2257/log2 and log⁡2\log2log2 of the source.
  • Needed infrastructure: divisor-counting and residue-distribution estimates, elementary prime-number bounds (the counting corollary uses the prime number theorem), and finite probabilistic constructions. Contributions proving the elementary pieces are welcome.

Selected references

  • M. Nakayama, On the decomposition of a rational number into "Stammbrüche", Tohoku Math. J. 46 (1940). https://www.jstage.jst.go.jp/article/tmj1911/46/0/46_0_1/_article/-char/en
  • P. Erdős, Az 1/x1+1/x2+⋯+1/xn=a/b1/x_1+1/x_2+\dots+1/x_n=a/b1/x1​+1/x2​+⋯+1/xn​=a/b egyenlet egész számú megoldásairól, Mat. Lapok (1950). https://users.renyi.hu/~p_erdos/1950-02.pdf
  • P. Erdős and R. L. Graham, Old and New Problems and Results in Combinatorial Number Theory, 1980. https://mathweb.ucsd.edu/~ronspubs/80_11_number_theory.pdf
  • T. F. Bloom, Erdős Problem 304. https://www.erdosproblems.com/304
  • M. D. Vose, Egyptian fractions, Bull. London Math. Soc. 17 (1985). https://doi.org/10.1112/blms/17.1.21
  • G. Tenenbaum and H. Yokota, Length and denominators of Egyptian fractions, III, J. Number Theory (1990). https://doi.org/10.1016/0022-314X(90)90109-5
  • S. V. Konyagin, Double exponential lower bound for the number of representations of unity by Egyptian fractions, Mat. Zametki (2014). https://doi.org/10.4213/mzm10417
  • C. Elsholtz and S. Planitzer, Sums of four and more unit fractions and approximate parametrizations, Bull. London Math. Soc. (2021). https://doi.org/10.1112/blms.12452
  • W. van Doorn and Q. Tang, The smallest denominator not contained in a unit fraction decomposition of 1 with fixed length, Math. Proc. Cambridge Philos. Soc. (2026). https://doi.org/10.1017/S0305004126102102
  • OpenAI, Short Egyptian fractions, OpenAI Math Release preprint, September 25, 2026 (Theorem 1.1, p. 2; Corollaries 1.2–1.3, p. 3; Lemma 7.2, p. 26; Proposition 8.1, p. 27). https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/Short-Egyptian-fractions-September-25-2026/Short-Egyptian-fractions-September-25-2026.pdf
53 thms2 active usersReviewed
🏆Completed
Captain: wurtle

Ordinary two-point correlations of multiplicative functionsResearch Paper

Motivation

Let Ω(n)\Omega(n)Ω(n) count the prime factors of nnn with multiplicity and let λ(n)=(−1)Ω(n)\lambda(n)=(-1)^{\Omega(n)}λ(n)=(−1)Ω(n) be the Liouville function. Chowla's conjecture (1965) predicts that λ\lambdaλ behaves like a random sign sequence: its correlations along any fixed collection of distinct shifts have average tending to zero. The two-point case asks whether nnn and n+hn+hn+h have the same parity of prime-factor count as often as different parity. It is the multiplicative analogue of the twin prime problem and a central test case for the parity barrier in sieve theory. Elliott's conjecture extends the question to bounded multiplicative functions; Matomäki, Radziwiłł and Tao showed that for complex functions it needs a correction, uniform nonpretentiousness against all twists χ(n)nit\chi(n)n^{it}χ(n)nit.

There are two natural averages: the ordinary average 1X∑n≤Xa(n)\frac1X\sum_{n\le X}a(n)X1​∑n≤X​a(n) and the logarithmic average 1log⁡X∑n≤Xa(n)/n\frac1{\log X}\sum_{n\le X}a(n)/nlogX1​∑n≤X​a(n)/n. Logarithmic averaging blends many scales; an ordinary estimate must control the terminal scale itself.

Background

  • 1965. Chowla formulates his conjecture. 1971. Halász's mean-value theorem isolates the twists nitn^{it}nit as the obstruction for one-point means.
  • 1992. Elliott extends the correlation problem to bounded multiplicative functions.
  • 2007. Granville and Soundararajan develop the pretentious distance D\mathbb DD (doi:10.1090/S0894-0347-06-00536-4).
  • 2015–2016. Matomäki and Radziwiłł prove short-interval mean-value theorems and a nontrivial bound 1−δ(h)1-\delta(h)1−δ(h) for each two-point Liouville correlation (doi:10.4007/annals.2016.183.3.6); Matomäki, Radziwiłł and Tao prove an averaged form of Chowla and formulate the corrected Elliott condition (doi:10.2140/ant.2015.9.2167).
  • 2016. Tao proves the logarithmically averaged two-point Chowla and corrected Elliott conjectures, including affine forms (doi:10.1017/fmp.2016.6).
  • 2019. Tao and Teräväinen obtain ordinary binary cancellation outside a set of scales of logarithmic density zero (doi:10.2140/ant.2019.13.2103).
  • 2021, 2026. Helfgott and Radziwiłł obtain a quantitative logarithmic bound via divisibility-graph expansion (arXiv:2103.06853); Pilatte improves it to (log⁡x)1−c0(\log x)^{1-c_0}(logx)1−c0​ (doi:10.1090/jams/1084).
  • 2023, 2026. Klurman, Mangerel and Teräväinen relax the nonpretentiousness hypothesis along a full-density set of scales (arXiv:2304.05344); Tao and Teräväinen obtain logarithmic savings for affine Liouville correlations outside a controlled exceptional set of scales (arXiv:2512.01739).

The source of this mission is an OpenAI preprint dated September 24, 2026, which treats ordinary averages at every cutoff.

Setting

  • λ(n)=(−1)Ω(n)\lambda(n)=(-1)^{\Omega(n)}λ(n)=(−1)Ω(n) for n≥1n\ge1n≥1.
  • A function f:N→Cf:\mathbb N\to\mathbb Cf:N→C is multiplicative if f(mn)=f(m)f(n)f(mn)=f(m)f(n)f(mn)=f(m)f(n) for coprime positive m,nm,nm,n, and one-bounded if ∣f(n)∣≤1|f(n)|\le1∣f(n)∣≤1.
  • For a Dirichlet character χ\chiχ, t∈Rt\in\mathbb Rt∈R and X≥2X\ge2X≥2, the pretentious distance is
D(f,χnit;X)2=∑p≤X1−Re⁡(f(p)χ(p)‾p−it)p.\mathbb D(f,\chi n^{it};X)^2=\sum_{p\le X}\frac{1-\operatorname{Re}\bigl(f(p)\overline{\chi(p)}p^{-it}\bigr)}{p}.D(f,χnit;X)2=p≤X∑​p1−Re(f(p)χ(p)​p−it)​.
  • fff is uniformly nonpretentious if inf⁡∣t∣≤ND(f,χnit;N)→∞\inf_{|t|\le N}\mathbb D(f,\chi n^{it};N)\to\inftyinf∣t∣≤N​D(f,χnit;N)→∞ as N→∞N\to\inftyN→∞, for every fixed χ\chiχ.
  • Two affine forms a1n+b1a_1n+b_1a1​n+b1​, a2n+b2a_2n+b_2a2​n+b2​ with ai≥1a_i\ge1ai​≥1, bi≥0b_i\ge0bi​≥0 are nonproportional if a1b2≠a2b1a_1b_2\ne a_2b_1a1​b2​=a2​b1​.

Formalization targets

Goal: Theorem 1.1 (logarithmic saving for affine Liouville correlations)

There is an absolute c>0c>0c>0 such that for all nonproportional affine forms there is C=Ca1,a2,b1,b2C=C_{a_1,a_2,b_1,b_2}C=Ca1​,a2​,b1​,b2​​ with

∣∑1≤n≤Xλ(a1n+b1)λ(a2n+b2)∣≤C X(log⁡X)c(X≥3).\Bigl|\sum_{1\le n\le X}\lambda(a_1n+b_1)\lambda(a_2n+b_2)\Bigr|\le C\,\frac{X}{(\log X)^c}\qquad(X\ge3).​1≤n≤X∑​λ(a1​n+b1​)λ(a2​n+b2​)​≤C(logX)cX​(X≥3).

With a1=a2=1a_1=a_2=1a1​=a2​=1, b1=0b_1=0b1​=0, b2=h>0b_2=h>0b2​=h>0 this is the ordinary two-point Chowla conjecture with a logarithmic saving.

Milestones

  • Theorem 1.2. If f1,f2f_1,f_2f1​,f2​ are multiplicative and one-bounded and one of them is uniformly nonpretentious, then 1N∑n=1Nf1(n+h1)f2(n+h2)→0\frac1N\sum_{n=1}^Nf_1(n+h_1)f_2(n+h_2)\to0N1​∑n=1N​f1​(n+h1​)f2​(n+h2​)→0 for distinct h1,h2≥0h_1,h_2\ge0h1​,h2​≥0.
  • Corollary 1.3. The same conclusion for f1(a1n+b1)f2(a2n+b2)f_1(a_1n+b_1)f_2(a_2n+b_2)f1​(a1​n+b1​)f2​(a2​n+b2​) along nonproportional affine forms.

The goal OAI.OrdinaryTwoPointCorrelations.liouville_log_saving is open on the platform.

Significance

Theorem 1.1 removes the logarithmic weight and the exceptional scales from earlier two-point results: the bound holds at every cutoff, with an exponent independent of the forms. Theorem 1.2 does the same qualitatively for all one-bounded multiplicative functions satisfying the Matomäki–Radziwiłł–Tao corrected condition, without complete multiplicativity, unimodularity or real values. The implied constants need not be effective, and no uniformity in growing coefficients is claimed.

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

Difficulty

Partial summation turns ordinary cancellation into logarithmic cancellation, but not conversely, so Tao's entropy-decrement method and its descendants do not reach ordinary averages: they need to average over scales. Short-interval estimates give cancellation for most shifts or most scales, not for a fixed shift at every scale. The proof works at the terminal scale through multiplicative dilations, which lead to a divisor graph with edge displacement hdhdhd; one must bound high traces of the associated operator (closed walks, nonbacktracking moments, prohibited paths, triangular arithmetic savings) with weights matched to ordinary averaging, and in Part I convert this into an explicit logarithmic saving using bounded independence for Boolean circuits.

Formalization scope

  • liouville n is ArithmeticFunction.liouville n cast to ℂ; affineSum f g a₁ a₂ b₁ b₂ N sums over n ∈ Finset.Icc 1 N, and the bound is applied at N = ⌊X⌋₊ for real X ≥ 3, with (Real.log X) ^ c as Real.rpow.
  • Multiplicative asks the identity only for coprime positive arguments; OneBounded only for positive arguments in this source group.
  • UniformlyNonpretentious is stated as: for every q > 0, every χ : DirichletCharacter ℂ q and every K, eventually in N, every t with |t| ≤ N has squared distance at least K. This is equivalent to (1.2).
  • The second formalization of Theorem 1.2 (namespace OrdinaryCorrelations) uses the sInf form of (1.2) and is included as a reference item.

A complete development needs prime sums and Mertens-type estimates, Dirichlet characters, short-interval mean-value theorems (Matomäki–Radziwiłł–Tao, Theorem 4.3 here), Fourier bounds for rough integers, and the graph-trace machinery. Contributions formalizing Proposition 2.1 (quantitative correlations in every progression), Theorem 5.4 (the nonbacktracking moment), Proposition 10.1 (divisor graph estimate), Lemma 18.5 (uniform nonpretentiousness of Liouville) or the cited Theorem 4.3 are welcome.

Selected references

  • OpenAI, Ordinary two-point correlations of multiplicative functions, preprint, September 24, 2026. https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/Ordinary-two-point-correlations-of-multiplicative-functions-September-24-2026/final.pdf
  • K. Matomäki, M. Radziwiłł, T. Tao, An averaged form of Chowla's conjecture, Algebra Number Theory, 2015. https://doi.org/10.2140/ant.2015.9.2167
  • K. Matomäki, M. Radziwiłł, Multiplicative functions in short intervals, Ann. of Math., 2016. https://doi.org/10.4007/annals.2016.183.3.6
  • T. Tao, The logarithmically averaged Chowla and Elliott conjectures for two-point correlations, Forum Math. Pi, 2016. https://doi.org/10.1017/fmp.2016.6
  • T. Tao, J. Teräväinen, The structure of correlations of multiplicative functions at almost all scales, Algebra Number Theory, 2019. https://doi.org/10.2140/ant.2019.13.2103
  • H. A. Helfgott, M. Radziwiłł, Expansion, divisibility and parity, preprint, 2021. https://arxiv.org/abs/2103.06853
  • C. Pilatte, Improved bounds for the two-point logarithmic Chowla conjecture, J. Amer. Math. Soc., 2026. https://doi.org/10.1090/jams/1084
  • O. Klurman, A. P. Mangerel, J. Teräväinen, On Elliott's conjecture and applications, preprint, 2023. https://arxiv.org/abs/2304.05344
  • A. Granville, K. Soundararajan, Large character sums: pretentious characters and the Pólya–Vinogradov theorem, J. Amer. Math. Soc., 2007. https://doi.org/10.1090/S0894-0347-06-00536-4
17 thms2 active usersReviewed
🏆Completed
Captain: wurtle

Catalan’s constant is irrational — OpenAI Lean formalizationResearch Paper

Motivation

Catalan's constant

G=∑j=0∞(−1)j(2j+1)2=1−19+125−149+⋯=0.9159655…G=\sum_{j=0}^{\infty}\frac{(-1)^j}{(2j+1)^2}=1-\frac1{9}+\frac1{25}-\frac1{49}+\cdots=0.9159655\ldotsG=j=0∑∞​(2j+1)2(−1)j​=1−91​+251​−491​+⋯=0.9159655…

is the value β(2)=L(2,χ−4)\beta(2)=L(2,\chi_{-4})β(2)=L(2,χ−4​) of the Dirichlet LLL-function of the odd quadratic character of conductor 4. It appears throughout analysis, combinatorics (dimer and spanning-tree constants), and geometry (volumes of hyperbolic 3-manifolds). For odd sss, β(s)\beta(s)β(s) is a rational multiple of πs\pi^sπs; the even values β(2),β(4),…\beta(2),\beta(4),\ldotsβ(2),β(4),… are, like ζ(3),ζ(5),…\zeta(3),\zeta(5),\ldotsζ(3),ζ(5),…, among the basic special values whose arithmetic nature was unknown. Whether GGG is irrational had long been a well-known question.

Timeline

  • 1979. Apéry proves ζ(2)\zeta(2)ζ(2) and ζ(3)\zeta(3)ζ(3) irrational by recurrences whose integer linear forms tend to zero; Beukers gives integral proofs (doi:10.1112/blms/11.3.268).
  • 2003. Rivoal and Zudilin prove that infinitely many even β\betaβ-values are irrational, and that at least one of β(2),β(4),…,β(14)\beta(2),\beta(4),\ldots,\beta(14)β(2),β(4),…,β(14) is (doi:10.1007/s00208-003-0420-2). Zudilin constructs Apéry-like recurrences, a continued fraction and integrals for GGG, and observes that their integer linear forms do not tend to zero (doi:10.37236/1707).
  • 2006–2008. Rivoal connects Padé approximation to the hypergeometric construction and proves its denominator conjectures; Krattenthaler and Rivoal give a more direct proof (doi:10.1007/s11139-006-6507-0, arXiv:0810.1927).
  • 2016. Nesterenko develops half-integer hypergeometric approximations and double Euler integrals for GGG (doi:10.1134/S0081543816010107).
  • 2017. Zudilin proposes a determinantal criterion for irrationality and explains why it does not yet apply to GGG (doi:10.1007/s00365-016-9333-7).
  • 2019–2022. Zudilin, then Lai and Zhou, shrink the finite list of even β\betaβ-values known to contain an irrational one; Fischler proves quantitative results for families of Dirichlet LLL-values (doi:10.1112/jlms.12290); Viola reports improved approximation exponents (doi:10.4171/OWR/2022/21).
  • 2005, 2024. Calegari proves irrationality of a 2-adic analogue of GGG (doi:10.1155/IMRN.2005.1235); Calegari, Dimitrov and Tang prove linear independence of 1,ζ(2),L(2,χ−3)1,\zeta(2),L(2,\chi_{-3})1,ζ(2),L(2,χ−3​), the conductor-3 analogue (arXiv:2408.15403).
  • 2026. Eskandari constructs improved rational approximations (arXiv:2609.26354); Sun announces a proof of irrationality (arXiv:2609.04176).

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

Setting

GGG is the sum of the alternating series of reciprocals of odd squares displayed above. A real number xxx is irrational if x≠p/qx\neq p/qx=p/q for all integers ppp and q≠0q\neq0q=0. No other definitions are involved.

Formalization targets

Goal: Theorem 1.1

G=∑j≥0(−1)j(2j+1)2 ∉ Q.G=\sum_{j\ge0}\frac{(-1)^j}{(2j+1)^2}\ \notin\ \mathbb Q.G=j≥0∑​(2j+1)2(−1)j​ ∈/ Q.

The Lean statement OAI.InternalCatalan.catalan_irrational is open on the platform.

Significance

Theorem 1.1 settles the irrationality of an individual even Dirichlet β\betaβ-value, which family results (Rivoal–Zudilin, Fischler) could not single out. The paper deduces (Section 8) irrationality of the minimal volume of an orientable complete finite-volume hyperbolic 3-manifold with exactly two cusps (Agol 2010 identified this volume as 4G4G4G, doi:10.1090/S0002-9939-10-10364-5) and of certain arithmetic hyperbolic volumes. The argument is qualitative: it gives no irrationality measure.

The result is proved in an OpenAI preprint, which has not been peer reviewed. No machine-checked proof exists. A formal proof would certify a long argument that combines exact finite certificates (rational matrices, rational trial coefficients) with analytic and ppp-adic estimates.

Difficulty

The standard route needs nonzero integer linear forms AmG−Bm→0A_mG-B_m\to0Am​G−Bm​→0. Many constructions give rational approximations Bm/Am→GB_m/A_m\to GBm​/Am​→G quickly, but clearing denominators destroys the decay: this is exactly the obstruction Zudilin identified for his Apéry-like recurrences, and approximation exponents below 1 (Viola–Marcovecchio, Eskandari) do not overcome it. The paper replaces linear forms by growing determinants ΔN\Delta_NΔN​ of size 48N48N48N built from moments that are rational combinations of 111, GGG and ζ(2)\zeta(2)ζ(2); one must cancel the ζ(2)\zeta(2)ζ(2) term exactly, bound denominators prime by prime (including two layers at large odd primes), prove nonvanishing along a sequence of primes via a finite certificate, and obtain a real-place upper bound sharp enough that the normalized limits lim inf⁡LN>−2.29084\liminf L_N>-2.29084liminfLN​>−2.29084 and lim sup⁡LN≤−2.290939875\limsup L_N\le-2.290939875limsupLN​≤−2.290939875 are incompatible. The margin between these constants is about 10−410^{-4}10−4.

Formalization scope

  • The statement uses only Mathlib: Irrational and tsum over ℕ. The series is absolutely summable, so tsum agrees with the classical sum.
  • The factor 2j+12j+12j+1 is a natural number cast to ℝ; there are no partial operations.

A complete development needs: Chebyshev polynomial rows and their moments; ppp-adic valuations of the determinant entries and the prime number theorem in the weighted form used (Mathlib's PNT development may be reused); a Frobenius reduction and verified finite certificates for nonvanishing; Andréief's identity, Hardy-space interpolation and Hadamard bounds for the real estimate; and certified rational arithmetic for the final constants. Contributions formalizing Proposition 2.2 (cancellation and rationality), Proposition 3.4 (finite-place bound), Proposition 4.1 (nonvanishing at prime scales), Propositions 5.2–5.3 (interpolation and Hadamard estimates) and Proposition 7.1 (real-place bound) are welcome.

Selected references

  • OpenAI, Catalan's constant is irrational, preprint, September 24, 2026. https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/Catalans-constant-is-irrational-September-24-2026/paper.pdf
  • T. Rivoal, W. Zudilin, Diophantine properties of numbers related to Catalan's constant, Math. Ann., 2003. https://doi.org/10.1007/s00208-003-0420-2
  • W. Zudilin, An Apéry-like difference equation for Catalan's constant, Electron. J. Combin., 2003. https://doi.org/10.37236/1707
  • W. Zudilin, A determinantal approach to irrationality, Constr. Approx., 2017. https://doi.org/10.1007/s00365-016-9333-7
  • T. Rivoal, Nombres d'Euler, approximants de Padé et constante de Catalan, Ramanujan J., 2006. https://doi.org/10.1007/s11139-006-6507-0
  • Yu. V. Nesterenko, On Catalan's constant, Proc. Steklov Inst. Math., 2016. https://doi.org/10.1134/S0081543816010107
  • S. Fischler, Irrationality of values of L-functions of Dirichlet characters, J. London Math. Soc., 2020. https://doi.org/10.1112/jlms.12290
  • F. Calegari, V. Dimitrov, Y. Tang, The linear independence of 1, ζ(2), and L(2,χ_{−3}), preprint, 2024. https://arxiv.org/abs/2408.15403
  • F. Beukers, A note on the irrationality of ζ(2) and ζ(3), Bull. London Math. Soc., 1979. https://doi.org/10.1112/blms/11.3.268
  • I. Agol, The minimal volume orientable hyperbolic 2-cusped 3-manifolds, Proc. Amer. Math. Soc., 2010. https://doi.org/10.1090/S0002-9939-10-10364-5
5 thms2 active usersReviewed
🏆Completed
Analysis·Captain: wurtle

The Quasi-Riemann Hypothesis: A Zero-Free Half-Plane Re(s) > 7/8Research Paper

Motivation

The Riemann zeta function ζ(s)=∑n≥1n−s\zeta(s) = \sum_{n\ge1} n^{-s}ζ(s)=∑n≥1​n−s (ℜs>1\Re s > 1ℜs>1), continued meromorphically to C\mathbb{C}C, encodes the distribution of primes through its zeros. Riemann (1859) conjectured that all nontrivial zeros lie on ℜs=1/2\Re s = 1/2ℜs=1/2. Hadamard and de la Vallée Poussin (1896) proved there are no zeros on ℜs=1\Re s = 1ℜs=1, which gives the prime number theorem, but all classical zero-free regions shrink toward the line ℜs=1\Re s = 1ℜs=1 as the height grows. The quasi-Riemann hypothesis asks for a fixed σ0<1\sigma_0 < 1σ0​<1 such that ζ(s)≠0\zeta(s) \ne 0ζ(s)=0 for all ℜs>σ0\Re s > \sigma_0ℜs>σ0​: one zero-free gap valid at every height. The uniform version for all Dirichlet LLL-functions is a standard formulation in analytic number theory (e.g. Friedlander–Goldston).

This preprint claims a proof with σ0=7/8\sigma_0 = 7/8σ0​=7/8, for ζ\zetaζ, for all Dirichlet LLL-functions, and for all finite-order Hecke LLL-functions over Q(−3)\mathbb{Q}(\sqrt{-3})Q(−3​).

Background

  • 1837. Dirichlet introduces character LLL-series to prove infinitude of primes in arithmetic progressions.
  • 1859. Riemann relates zeros of ζ\zetaζ to primes and formulates the Riemann hypothesis.
  • 1896. Hadamard and de la Vallée Poussin prove ζ(s)≠0\zeta(s) \ne 0ζ(s)=0 on ℜs=1\Re s = 1ℜs=1.
  • 1918. Hecke develops LLL-functions of characters over number fields.
  • 1969, 1977. Kubota's metaplectic theory and Patterson's cubic theta series supply the automorphic objects used here.
  • 2000–2014. Heath-Brown's cubic large sieve; Goldmakher–Louvel's quadratic large sieve over number fields; Blomer–Goldmakher–Louvel's higher-order recursion.
  • 2026. Guth and Maynard improve zero-density bounds for ζ\zetaζ (which bound the number of zeros but do not exclude them). The OpenAI preprint The Quasi-Riemann Hypothesis (dated September 30, 2026) claims the zero-free half-plane ℜs>7/8\Re s > 7/8ℜs>7/8. It has not been peer reviewed or independently verified; the Lean goal is open on this platform. The Riemann hypothesis itself is not claimed.

Setting

For a Dirichlet character χ\chiχ modulo qqq (extended by zero on non-units), L(s,χ)=∑n≥1χ(n)n−sL(s,\chi) = \sum_{n \ge 1}\chi(n) n^{-s}L(s,χ)=∑n≥1​χ(n)n−s for ℜs>1\Re s > 1ℜs>1, continued meromorphically; the character modulo 111 gives ζ\zetaζ. For F=Q(−3)F = \mathbb{Q}(\sqrt{-3})F=Q(−3​) with ring of integers O\mathcal{O}O, a finite-order Hecke character modulo a nonzero ideal f\mathfrak{f}f is a character of the ray class group modulo f\mathfrak ff, extended by zero, and LF(s,η)=∑a≠0η(a)(Na)−sL_F(s,\eta) = \sum_{\mathfrak a \ne 0}\eta(\mathfrak a)(N\mathfrak a)^{-s}LF​(s,η)=∑a=0​η(a)(Na)−s. Principal characters have a pole at s=1s = 1s=1.

In Lean, ζ\zetaζ is Mathlib's riemannZeta, Dirichlet LLL-functions are Mathlib's DirichletCharacter.LFunction, and the Hecke family is OAI.SevenEighths.HeckeFamily.LFunction: a Character is a multiplicative character of O/m\mathcal O/\mathfrak mO/m trivial on units (for this class-number-one field these are exactly the ray class characters), and its LLL-function is a lattice sum over O=Z[ω]\mathcal{O} = \mathbb{Z}[\omega]O=Z[ω] divided by the 666 units, continued through a theta-type functional equation pair.

Formalization targets

Goal: Theorem 1.1 for ζ\zetaζ (quasi-Riemann hypothesis)

ℜs>7/8  ⟹  ζ(s)≠0.\Re s > 7/8 \implies \zeta(s) \ne 0 .ℜs>7/8⟹ζ(s)=0.

Milestone: Theorem 1.1 for Dirichlet LLL-functions

For every Dirichlet character χ\chiχ modulo q≥1q \ge 1q≥1 and every sss with ℜs>7/8\Re s > 7/8ℜs>7/8, L(s,χ)≠0L(s,\chi) \ne 0L(s,χ)=0, except at the pole s=1s = 1s=1 of a principal character.

Milestone: Theorem 1.1 for Hecke LLL-functions over Q(−3)\mathbb{Q}(\sqrt{-3})Q(−3​)

For every finite-order Hecke character η\etaη of F=Q(−3)F = \mathbb{Q}(\sqrt{-3})F=Q(−3​) and every sss with ℜs>7/8\Re s > 7/8ℜs>7/8, LF(s,η)≠0L_F(s,\eta) \ne 0LF​(s,η)=0, except at the pole s=1s = 1s=1 of a principal character.

The three statements are ordered from weakest to strongest; the proof in the preprint goes through the whole Hecke family even for ζ\zetaζ, because Poisson summation introduces Hecke twists of the target.

Significance

The result. A fixed zero-free half-plane would give power-saving error terms in the prime number theorem and in prime counts in arithmetic progressions, uniformly in the modulus, and would exclude Siegel zeros beyond 7/87/87/8. The preprint derives (Corollary 1.2) that the least quadratic nonresidue modulo ppp is O((log⁡p)A)O((\log p)^A)O((logp)A), proving Vinogradov's conjecture, and a deterministic polynomial-time square-root algorithm modulo primes.

Formalizing it. This is a claimed resolution of a long-standing question in an unrefereed preprint; a machine-checked proof would be strong independent verification. The goal uses only Mathlib definitions, so it cannot be weakened by a definitional choice. The Hecke milestone uses a custom LLL-function definition that must also be checked against the source.

Difficulty

Classical zero-free regions come from positivity arguments (the 3+4cos⁡θ+cos⁡2θ3 + 4\cos\theta + \cos 2\theta3+4cosθ+cos2θ inequality) that give regions of width c/log⁡(∣t∣+q)c/\log(|t|+q)c/log(∣t∣+q) shrinking to the line ℜs=1\Re s = 1ℜs=1; they cannot produce a fixed half-plane. Zero-density estimates bound the number of zeros to the right of a line but do not exclude every zero. The preprint instead continues reciprocals 1/L1/L1/L across a uniform distance by comparing two exact representations of a completed cubic-theta sum, with exponent margins independent of the target character.

Formalization scope

  • The goal: ∀ s : ℂ, 7/8 < s.re → riemannZeta s ≠ 0. Mathlib assigns ζ(1)\zeta(1)ζ(1) a finite nonzero value, so no pole exclusion is needed.
  • The Dirichlet milestone excludes exactly the case χ = 1 ∧ s = 1, where Mathlib's value is a junk value at the pole.
  • The Hecke milestone excludes χ.residue = 1 ∧ s = 1.
  • The boundary ℜs=7/8\Re s = 7/8ℜs=7/8 is not included.

The goal is not vacuous and cannot be satisfied by a convention: it is a statement about Mathlib's riemannZeta on an open half-plane.

Needed infrastructure: Hecke LLL-functions over imaginary quadratic fields and their functional equations, cubic and sextic residue symbols, Patterson's cubic theta coefficients, large sieve inequalities over Z[ω]\mathbb{Z}[\omega]Z[ω], and Mellin inversion. Contributions toward the 11/1211/1211/12 half-plane (Theorem 3.1) as an intermediate target are welcome.

Selected references

  • OpenAI, The Quasi-Riemann Hypothesis, OpenAI Math Release preprint, September 30, 2026. https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/The-Quasi-Riemann-Hypothesis-September-30-2026/paper.pdf
  • B. Riemann, Ueber die Anzahl der Primzahlen unter einer gegebenen Grösse, Monatsber. Königl. Preuss. Akad. Wiss. Berlin (1859).
  • J. Hadamard, Sur la distribution des zéros de la fonction ζ(s) et ses conséquences arithmétiques, Bull. Soc. Math. France 24 (1896).
  • E. Hecke, Eine neue Art von Zetafunktionen und ihre Beziehungen zur Verteilung der Primzahlen, Math. Z. 1 (1918).
  • J. B. Friedlander, D. A. Goldston, Sums of three or more primes, Trans. Amer. Math. Soc. 349 (1997).
  • K. Billington, M. Cheng, J. Schettler, A. I. Suriajaya, The average number of Goldbach representations and zero-free regions of the Riemann zeta-function, Int. J. Number Theory 21 (2025).
  • S. J. Patterson, A cubic analogue of the theta series, J. Reine Angew. Math. 296 (1977).
  • D. R. Heath-Brown, Kummer's conjecture for cubic Gauss sums, Israel J. Math. 120 (2000). https://doi.org/10.1007/s11856-000-1273-y
  • V. Blomer, L. Goldmakher, B. Louvel, L-functions with n-th-order twists, IMRN 2014.
  • L. Guth, J. Maynard, New large value estimates for Dirichlet polynomials, Ann. of Math. 203 (2026). https://doi.org/10.4007/annals.2026.203.2.6
  • T. Tao, The Elliott–Halberstam conjecture implies the Vinogradov least quadratic nonresidue conjecture, Algebra Number Theory 9 (2015).
13 thms2 active usersReviewed
🏆Completed
CombinatoricsProbabilityTheoretical Computer Science·Captain: mikedeng1

A New Class of Random Number Generators 1: For Prime m = bʳ + bˢ − 1, Every Nontrivial Add-with-Carry Sequence Is Periodic After r Steps, with Period the Order of b mod mResearch Paper

Why add-with-carry generators

Simulation, Monte Carlo integration and randomized algorithms consume long streams of numbers that should behave like independent uniform draws. A deterministic generator with finite state is eventually periodic, so its period is the first figure of merit: a stream cannot be longer than its cycle. G. Marsaglia and A. Zaman, A new class of random number generators (Ann. Appl. Probab. 1 (1991)), introduced the add-with-carry and subtract-with-borrow generators. They keep rrr machine words plus one carry bit, use only additions or subtractions of words, and still reach periods such as 26402^{640}2640 when the base bbb is near 2322^{32}232 (p. 465). The paper's mechanism for this is number-theoretic: the generated digits are the base-bbb digits of a fraction k/mk/mk/m written backwards, so the period of the generator is the period of a repeating base-bbb expansion, i.e. the multiplicative order of bbb modulo mmm.

Generators of this family were used widely in the following decades (Lüscher's RANLUX generator in lattice field theory is built on subtract-with-borrow), and later work showed that they are equivalent to linear congruential generators with modulus mmm (Tezuka, L'Ecuyer and Couture 1993). This mission treats the add-with-carry generator. A companion mission treats subtract-with-borrow.

Setting

Fix a base b≥2b \ge 2b≥2 and two lags rrr and sss with 0<s<r0 < s < r0<s<r. A state (or seed vector) is

x=(x1,x2,…,xr,c),x = (x_1, x_2, \dots, x_r, c),x=(x1​,x2​,…,xr​,c),

where each xi∈{0,1,…,b−1}x_i \in \{0, 1, \dots, b-1\}xi​∈{0,1,…,b−1} is a base-bbb digit and c∈{0,1}c \in \{0, 1\}c∈{0,1} is the carry bit. The digit x1x_1x1​ is the oldest one. The add-with-carry map fff (p. 465) is

f(x1,…,xr,c)={(x2,…,xr, xr+1−s+x1+c, 0)if xr+1−s+x1+c<b,(x2,…,xr, xr+1−s+x1+c−b, 1)if xr+1−s+x1+c≥b,f(x_1, \dots, x_r, c) = \begin{cases} (x_2, \dots, x_r,\ x_{r+1-s} + x_1 + c,\ 0) & \text{if } x_{r+1-s} + x_1 + c < b,\\ (x_2, \dots, x_r,\ x_{r+1-s} + x_1 + c - b,\ 1) & \text{if } x_{r+1-s} + x_1 + c \ge b, \end{cases}f(x1​,…,xr​,c)={(x2​,…,xr​, xr+1−s​+x1​+c, 0)(x2​,…,xr​, xr+1−s​+x1​+c−b, 1)​if xr+1−s​+x1​+c<b,if xr+1−s​+x1​+c≥b,​

and the generated sequence of a seed xxx is x,f(x),f2(x),…x, f(x), f^2(x), \dotsx,f(x),f2(x),…. Reading off the last digit of each state gives a digit stream x1,…,xr,xr+1,xr+2,…x_1, \dots, x_r, x_{r+1}, x_{r+2}, \dotsx1​,…,xr​,xr+1​,xr+2​,… obeying xn=xn−r+xn−s+c mod bx_n = x_{n-r} + x_{n-s} + c \bmod bxn​=xn−r​+xn−s​+cmodb, with the carry updated at each step. The two trivial seeds are (0,…,0,0)(0, \dots, 0, 0)(0,…,0,0) and (b−1,…,b−1,1)(b-1, \dots, b-1, 1)(b−1,…,b−1,1). The modulus of the generator is

m=br+bs−1.m = b^r + b^s - 1 .m=br+bs−1.

For 0≤k<m0 \le k < m0≤k<m and j≥1j \ge 1j≥1, the jjj-th base-bbb digit of k/mk/mk/m after the point is dj(k/m)=⌊b⋅(bj−1k mod m)/m⌋d_j(k/m) = \lfloor b \cdot (b^{j-1} k \bmod m) / m \rfloordj​(k/m)=⌊b⋅(bj−1kmodm)/m⌋. The order ord⁡m(b)\operatorname{ord}_m(b)ordm​(b) is the least p≥1p \ge 1p≥1 with bp≡1(modm)b^p \equiv 1 \pmod mbp≡1(modm), and bbb is a primitive root of a prime mmm when ord⁡m(b)=m−1\operatorname{ord}_m(b) = m - 1ordm​(b)=m−1.

Formalization targets

Goal: the period is the order of bbb

Let m=br+bs−1m = b^r + b^s - 1m=br+bs−1 be prime, and let xxx be any seed other than the two trivial seeds. Then fr(x)f^r(x)fr(x) is a periodic point of fff and

min⁡{p≥1:fp(fr(x))=fr(x)}=ord⁡m(b).\min\{p \ge 1 : f^{p}(f^{r}(x)) = f^{r}(x)\} = \operatorname{ord}_m(b).min{p≥1:fp(fr(x))=fr(x)}=ordm​(b).

This is the italic summary of p. 472 ("whatever the seed vector, except for the two trivial seeds, the add-with-carry and subtract-with-borrow sequences become periodic after a few iterations of the generating function, and the periods are the order of the base bbb for the appropriate modulus"), with the claim of §4.2 (p. 467) and its proof (p. 468). The goal fixes no particular bbb, rrr, sss and does not assume that bbb is a primitive root. When it is, the period is br+bs−2b^r + b^s - 2br+bs−2, the value announced in §2.

Milestones

  1. §4.1 (p. 467): for gcd⁡(k,m)=gcd⁡(b,m)=1\gcd(k, m) = \gcd(b, m) = 1gcd(k,m)=gcd(b,m)=1, p>0p > 0p>0 is a period of the base-bbb expansion of k/mk/mk/m iff ord⁡m(b)∣p\operatorname{ord}_m(b) \mid pordm​(b)∣p.
  2. §4.1 (p. 467): if bbb is a primitive root of the prime mmm, every proper fraction k/mk/mk/m has least period m−1m - 1m−1.
  3. p. 472: f(x)=xf(x) = xf(x)=x iff xxx is a trivial seed.
  4. p. 472: fr(x)f^r(x)fr(x) is periodic for every seed.
  5. §4.2 (p. 468): for every seed other than (b−1,…,b−1,1)(b-1, \dots, b-1, 1)(b−1,…,b−1,1) and every CCC, there is 0≤k<m0 \le k < m0≤k<m, positive iff the seed is nonzero, with
xn=dC+1−n(k/m)(r+1≤n≤C).x_n = d_{C+1-n}(k/m) \qquad (r + 1 \le n \le C).xn​=dC+1−n​(k/m)(r+1≤n≤C).
  1. p. 472, Method 3: xxx is periodic iff c=0c = 0c=0 and xr⋯xs+1≥xr−s⋯x1x_r \cdots x_{s+1} \ge x_{r-s} \cdots x_1xr​⋯xs+1​≥xr−s​⋯x1​, or c=1c = 1c=1 and xr⋯xs+1≤xr−s⋯x1x_r \cdots x_{s+1} \le x_{r-s} \cdots x_1xr​⋯xs+1​≤xr−s​⋯x1​ (digit strings read as base-bbb integers).
  2. §2 (p. 465): the instance b=10b = 10b=10, r=2r = 2r=2, s=1s = 1s=1, period 108108108.
  3. §7 (p. 477): the instance b=6b = 6b=6, r=21r = 21r=21, s=2s = 2s=2, period 621+62−26^{21} + 6^2 - 2621+62−2.

Significance

The result. The goal reduces the period of the generator, a property of a dynamical system on 2br2b^r2br states, to the multiplicative order of one residue. That is the computation the paper performs in §6 to certify its recommended generators, and it is how one chooses b,r,sb, r, sb,r,s: search for primes m=br+bs−1m = b^r + b^s - 1m=br+bs−1 and check the order of bbb. Milestone 5 is stronger than the goal. It needs no primality and identifies the whole output stream, not only its period, with the expansion of a fraction. That identification is what later work used to relate carry generators to linear congruential generators with modulus mmm. Milestone 6 answers the paper's "periodic seed" puzzle: it says exactly which seeds lie on their own cycle.

Formalizing it. The results are proved in the paper, the general §4.1 facts are classical, and the method-specific rules of §4.5 (milestone 6) are stated there without proof. None of it is machine-checked on Prove2Me or, to our knowledge, in Mathlib, which has orderOf and ZMod but no theory of base-bbb expansions of rationals. The mission produces a checked link from a concrete integer recurrence to modular arithmetic. That link can serve as a template for other carry-based and lagged generators.

Difficulty

The obvious argument says the digit recurrence is linear, so the period divides something like the order of a companion matrix. This fails because of the carry: fff is not linear over Z/b\mathbb{Z}/bZ/b, and the state (x1,…,xr,c)(x_1, \dots, x_r, c)(x1​,…,xr​,c) does not live in a group in any evident way. The link to the order of bbb modulo mmm goes through an identity between a finite digit string and a fraction (milestone 5). Stating it with exact indices is itself delicate: the digits run in reverse order, the fraction depends on the string's length, and the trivial seed (b−1,…,b−1,1)(b-1, \dots, b-1, 1)(b−1,…,b−1,1), whose digits are those of m/m=1m/m = 1m/m=1, has to be excluded.

A second difficulty is the preperiod. A seed need not lie on its own cycle (p. 472), so the period must be measured after the transient. Bounding that transient by rrr (milestone 4) and characterising the periodic seeds (milestone 6) are separate combinatorial facts about the carry. The paper states the second without proof.

Formalization scope

  • Representation. All declarations are in namespace CarryRNG.AWC. Lags are a structure Lags with fields r, s and proofs of 0<s0 < s0<s and s<rs < rs<r. A state is a structure with digits x : Fin r → Fin b and carry c : Fin 2, so c≤1c \le 1c≤1 holds by typing. Lean index iii is the paper's xi+1x_{i+1}xi+1​: x 0 is x1x_1x1​ (the digit the step drops), and the partner digit xr+1−sx_{r+1-s}xr+1−s​ is index r−sr - sr−s. step is defined directly from the two-case formula of p. 465, not through k/mk/mk/m. The digit stream out is one-based: the seed digits for n≤rn \le rn≤r, then the last digit of f n−r(x)f^{\,n-r}(x)fn−r(x). digit b m k j is the exact integer formula above, used for j≥1j \ge 1j≥1 only.
  • Period. "The period" is Mathlib's Function.minimalPeriod. It is 000 at non-periodic points, so the goal's equation with the positive ord⁡m(b)\operatorname{ord}_m(b)ordm​(b) also asserts periodicity. A divisibility or inequality form would be vacuous and is not used. For digit sequences, "period LLL" is stated as "p>0p > 0p>0 is a period iff L∣pL \mid pL∣p".
  • Quantifier readings. "With appropriately chosen base bbb, lags rrr and sss and seed vector xxx" (p. 465) is read as: mmm prime and xxx not a trivial seed, following p. 468 ("Making mmm a prime ensures this") and p. 472. "After a few iterations" is "after at most rrr", the paper's own bound (p. 472), so the goal is stated at fr(x)f^r(x)fr(x). In milestone 5 the fraction kkk depends on the length CCC of the finite string, as in the paper's "arbitrarily long finite string". In milestone 8, "for any set of 21 seed digits" is stated at f21(x)f^{21}(x)f21(x) for the same reason.
  • Corrected misprints. p. 465 prints the second trivial seed as "(9, 9, 9)"; the last entry is the carry, so milestone 7 excludes (9,9,1)(9, 9, 1)(9,9,1). p. 473, example (a), prints the Method 3 inequalities reversed; milestone 6 follows p. 472, which exhaustive checks on small parameters confirm. p. 478 repeats the die period with "− 1" for "− 2"; milestone 8 quotes p. 477.
  • Ruled-out trivializations. The goal is not "some period divides m−1m - 1m−1" and not "every orbit is eventually periodic". Both hold for any self-map of a finite set or are vacuous. The trivial seeds are named states, not excluded by an assumption such as f(x)≠xf(x) \neq xf(x)=x.
  • Infrastructure and contributions. Needed: periods of base-bbb expansions of rationals (milestones 1–2, reusable beyond this mission) and finite-dynamics facts about minimalPeriod along an orbit. Proofs of any milestone are welcome, as are primality and order certificates for milestone 8 as separate lemmas.

Selected references

  • G. Marsaglia and A. Zaman, A new class of random number generators, Ann. Appl. Probab. 1(3) (1991), 462–480. https://doi.org/10.1214/aoap/1177005878
  • S. Tezuka, P. L'Ecuyer and R. Couture, On the lattice structure of the add-with-carry and subtract-with-borrow random number generators, ACM Trans. Model. Comput. Simul. 3(4) (1993), 315–331. https://doi.org/10.1145/159737.159749
  • R. Couture and P. L'Ecuyer, Distribution properties of multiply-with-carry random number generators, Math. Comp. 66 (1997), 591–607. https://doi.org/10.1090/S0025-5718-97-00827-2
  • M. Lüscher, A portable high-quality random number generator for lattice field theory simulations, Comput. Phys. Commun. 79 (1994), 100–110. https://doi.org/10.1016/0010-4655(94)90232-1
17 thms2 active usersReviewed
🏆Completed
Linear algebra·Captain: mikedeng1

Factoring Polynomials with Rational Coefficients I: A Reduced Lattice Basis Satisfies |b_j|² ≤ 2^{n−1}·max|x_i|² for Any t Linearly Independent Lattice VectorsResearch Paper

Motivation

A lattice in Rn\mathbb R^nRn is the set of integer combinations of nnn linearly independent vectors. Many problems in algorithmic number theory, cryptography and integer programming reduce to finding a short nonzero vector of a lattice, or a few short independent ones. Finding the shortest vector exactly is hard, but in 1982 A. K. Lenstra, H. W. Lenstra, Jr. and L. Lovász introduced a notion of reduced basis that can be computed in polynomial time and whose vectors are provably short up to a factor depending only on the dimension (Lenstra, Lenstra, Lovász 1982). Their paper used it to factor polynomials in Q[X]\mathbb Q[X]Q[X] in polynomial time; the same reduction (now called LLL) became a standard tool for simultaneous Diophantine approximation (the paper's own (1.39)), for H. W. Lenstra's integer programming algorithm in fixed dimension (Lenstra 1983), and for cryptanalysis of knapsack and RSA variants.

What makes a reduced basis useful is a set of explicit inequalities proved in Section 1 of the paper, before any algorithm appears. They compare the lengths of the basis vectors with the lattice determinant and with arbitrary lattice vectors, with constants such as 2n−12^{n-1}2n−1 and 2n(n−1)/42^{n(n-1)/4}2n(n−1)/4. This mission formalizes those inequalities.

Setting

Let n≥1n\ge1n≥1 and let ( ⋅ , ⋅ )(\,\cdot\,,\,\cdot\,)(⋅,⋅) and ∣⋅∣|\cdot|∣⋅∣ be the ordinary inner product and Euclidean length on Rn\mathbb R^nRn. Vectors b1,…,bn∈Rnb_1,\ldots,b_n\in\mathbb R^nb1​,…,bn​∈Rn form a basis for a lattice LLL when they are linearly independent over R\mathbb RR and L=∑i=1nZbiL=\sum_{i=1}^n\mathbb Z b_iL=∑i=1n​Zbi​. The determinant of LLL is

d(L)=∣det⁡(b1,b2,…,bn)∣,d(L)=|\det(b_1,b_2,\ldots,b_n)|,d(L)=∣det(b1​,b2​,…,bn​)∣,

the bib_ibi​ written as columns (1.1). The Gram–Schmidt vectors bi∗b_i^*bi∗​ and coefficients μij\mu_{ij}μij​ (1≤j<i≤n1\le j<i\le n1≤j<i≤n) are defined inductively by

bi∗=bi−∑j=1i−1μijbj∗,μij=(bi,bj∗)(bj∗,bj∗)(1.2),(1.3);b_i^*=b_i-\sum_{j=1}^{i-1}\mu_{ij}b_j^*,\qquad \mu_{ij}=\frac{(b_i,b_j^*)}{(b_j^*,b_j^*)}\qquad(1.2),(1.3);bi∗​=bi​−j=1∑i−1​μij​bj∗​,μij​=(bj∗​,bj∗​)(bi​,bj∗​)​(1.2),(1.3);

the bi∗b_i^*bi∗​ are pairwise orthogonal and not normalised. The basis is reduced if

∣μij∣≤12(1≤j<i≤n)(1.4)|\mu_{ij}|\le\tfrac12\quad(1\le j<i\le n)\qquad(1.4)∣μij​∣≤21​(1≤j<i≤n)(1.4)

and

∣bi∗+μi i−1bi−1∗∣2≥34∣bi−1∗∣2(1<i≤n)(1.5).|b_i^*+\mu_{i\,i-1}b_{i-1}^*|^2\ge\tfrac34|b_{i-1}^*|^2\quad(1<i\le n)\qquad(1.5).∣bi∗​+μii−1​bi−1∗​∣2≥43​∣bi−1∗​∣2(1<i≤n)(1.5).

The first condition is a size condition on the coefficients; the second (the Lovász condition) says that swapping bi−1b_{i-1}bi−1​ and bib_ibi​ would not shrink the (i−1)(i-1)(i−1)-th Gram–Schmidt length by more than the factor 34\frac3443​ (pp. 516–517).

Formalization targets

Goal: Proposition (1.12), p. 518

Let b1,…,bnb_1,\ldots,b_nb1​,…,bn​ be a reduced basis for LLL and let x1,…,xt∈Lx_1,\ldots,x_t\in Lx1​,…,xt​∈L be linearly independent. Then

∣bj∣2≤2n−1⋅max⁡{∣x1∣2,∣x2∣2,…,∣xt∣2}(j=1,…,t).|b_j|^2\le 2^{n-1}\cdot\max\{|x_1|^2,|x_2|^2,\ldots,|x_t|^2\}\qquad (j=1,\ldots,t).∣bj​∣2≤2n−1⋅max{∣x1​∣2,∣x2​∣2,…,∣xt​∣2}(j=1,…,t).

The statement quantifies over every reduced basis and every independent family of lattice vectors. Its case t=1t=1t=1 is Proposition (1.11).

Milestones

In the order of the paper's proofs (pp. 517–518):

  1. ∣bi∗∣2≥(34−μi i−12)∣bi−1∗∣2≥12∣bi−1∗∣2|b_i^*|^2\ge(\frac34-\mu_{i\,i-1}^2)|b_{i-1}^*|^2\ge\frac12|b_{i-1}^*|^2∣bi∗​∣2≥(43​−μii−12​)∣bi−1∗​∣2≥21​∣bi−1∗​∣2 for 1<i≤n1<i\le n1<i≤n (proof of (1.6));
  2. ∣bj∗∣2≤2i−j∣bi∗∣2|b_j^*|^2\le 2^{i-j}|b_i^*|^2∣bj∗​∣2≤2i−j∣bi∗​∣2 for 1≤j≤i≤n1\le j\le i\le n1≤j≤i≤n (proof of (1.6));
  3. ∣bi∣2=∣bi∗∣2+∑j<iμij2∣bj∗∣2≤2i−1∣bi∗∣2|b_i|^2=|b_i^*|^2+\sum_{j<i}\mu_{ij}^2|b_j^*|^2\le 2^{i-1}|b_i^*|^2∣bi​∣2=∣bi∗​∣2+∑j<i​μij2​∣bj∗​∣2≤2i−1∣bi∗​∣2 (proof of (1.6));
  4. (1.7): ∣bj∣2≤2i−1∣bi∗∣2|b_j|^2\le 2^{i-1}|b_i^*|^2∣bj​∣2≤2i−1∣bi∗​∣2 for 1≤j≤i≤n1\le j\le i\le n1≤j≤i≤n;
  5. if x=∑lrlblx=\sum_l r_lb_lx=∑l​rl​bl​ with rl∈Zr_l\in\mathbb Zrl​∈Z and iii is the largest index with ri≠0r_i\ne0ri​=0, then ∣x∣2≥∣bi∗∣2|x|^2\ge|b_i^*|^2∣x∣2≥∣bi∗​∣2 (proof of (1.11), reused as (1.13));
  6. (1.11): ∣b1∣2≤2n−1∣x∣2|b_1|^2\le 2^{n-1}|x|^2∣b1​∣2≤2n−1∣x∣2 for every nonzero x∈Lx\in Lx∈L.

Companion statements

The rest of Proposition (1.6) and the remark after it: d(L)=∏i∣bi∗∣d(L)=\prod_i|b_i^*|d(L)=∏i​∣bi∗​∣ (proof of (1.6)); (1.8) d(L)≤∏i∣bi∣≤2n(n−1)/4d(L)d(L)\le\prod_i|b_i|\le 2^{n(n-1)/4}d(L)d(L)≤∏i​∣bi​∣≤2n(n−1)/4d(L); (1.9) ∣b1∣≤2(n−1)/4d(L)1/n|b_1|\le 2^{(n-1)/4}d(L)^{1/n}∣b1​∣≤2(n−1)/4d(L)1/n; and Hadamard's inequality (1.10) d(L)≤∏i∣bi∣d(L)\le\prod_i|b_i|d(L)≤∏i​∣bi​∣ for an arbitrary basis.

Significance

Proposition (1.11) says the first vector of a reduced basis approximates a shortest nonzero lattice vector within the factor 2(n−1)/22^{(n-1)/2}2(n−1)/2; (1.12) extends this to all of the first ttt basis vectors, so that ∣bj∣2|b_j|^2∣bj​∣2 is within 2n−12^{n-1}2n−1 of the jjj-th successive minimum of LLL (the remark after (1.12)). These are the guarantees on which the paper's factoring algorithm rests: in Section 2 a reduced basis of a lattice built from a ppp-adic factor yields, through (1.11) and (1.12), an irreducible factor of the polynomial. Inequality (1.9) gives simultaneous Diophantine approximation in polynomial time, and (1.8) bounds how far a reduced basis is from orthogonal.

All of these results are proved in the paper and in textbooks. Verified LLL developments exist in Isabelle/HOL (Bottesch et al., A verified LLL algorithm, AFP 2018), but Mathlib, the library this platform builds on, has neither the reduced-basis predicate of (1.4)–(1.5) nor these bounds. A Lean development produces a reusable definition layer for lattices with the paper's conventions, Gram–Schmidt length estimates, and Hadamard's inequality in determinant form, which the other missions of this series (the reduction algorithm and the factoring application) build on.

Difficulty

The estimates on Gram–Schmidt lengths are single-variable inductions once (1.5) has been rewritten using orthogonality. The step that does not follow from a direct estimate is (1.12): the vectors x1,…,xtx_1,\ldots,x_tx1​,…,xt​ are arbitrary independent lattice vectors with no relation to the basis order, so a bound on each ∣xj∣|x_j|∣xj​∣ by a single Gram–Schmidt length does not by itself say which bjb_jbj​ it controls. A naive argument that pairs xjx_jxj​ with bjb_jbj​ fails. The determinant statements need the link between Mathlib's matrix determinant of the columns bib_ibi​ and the Gram–Schmidt lengths, which Mathlib does not state in this form.

Formalization scope

Rn\mathbb R^nRn is EuclideanSpace ℝ (Fin n) (abbreviated Vec n), a basis is a family b : Fin n → Vec n, the lattice is Submodule.span ℤ (Set.range b), and "basis for LLL" is linear independence over R\mathbb RR together with equality of that span with LLL. The vectors bi∗b_i^*bi∗​ are Mathlib's unnormalised InnerProductSpace.gramSchmidt, and μij\mu_{ij}μij​ is (1.3) verbatim. d(L)d(L)d(L) is the absolute determinant of the column matrix; it is not defined as ∏∣bi∗∣\prod|b_i^*|∏∣bi∗​∣, which would make the first companion statement true by definition. Section 1 begins "Let nnn be a positive integer", so every statement carries 0<n0<n0<n.

Lean indices run from 000 to n−1n-1n−1: the paper's bib_ibi​ is Lean's b ⟨i-1, _⟩, an exponent 2i−12^{i-1}2i−1 at paper index iii is 2i2^i2i at Lean index iii, and the pair (i−1,i)(i-1,i)(i−1,i) of (1.5) is (i,i+1)(i,i+1)(i,i+1). Exponents n(n−1)/4n(n-1)/4n(n−1)/4, (n−1)/4(n-1)/4(n−1)/4 and 1/n1/n1/n are real powers. The maximum in (1.12) is a Finset.sup' over the nonempty index set of the xjx_jxj​, and the statement is empty at t=0t=0t=0, as on the page.

Every statement about a reduced basis also assumes linear independence: the reducedness inequalities alone hold for degenerate dependent families, whose Gram–Schmidt vectors vanish, and would make the targets trivial. The goal does not assume (1.7), (1.13) or any ordering of the xjx_jxj​; those appear only as milestones. Proofs of the milestones and companions, and general lemmas on Gram–Schmidt and determinants that would belong in Mathlib, are welcome.

Selected references

  • A. K. Lenstra, H. W. Lenstra, Jr., L. Lovász, Factoring polynomials with rational coefficients, Mathematische Annalen 261, 515–534, 1982. https://doi.org/10.1007/BF01457454
  • H. W. Lenstra, Jr., Integer programming with a fixed number of variables, Mathematics of Operations Research 8(4), 538–548, 1983. https://doi.org/10.1287/moor.8.4.538
  • R. Bottesch, J. Divasón, M. Haslbeck, S. Joosten, R. Thiemann, A. Yamada, A verified LLL algorithm, Archive of Formal Proofs, 2018. https://www.isa-afp.org/entries/LLL_Basis_Reduction.html
8 thms2 active usersReviewed
🏆Completed
Combinatorics·Captain: mikedeng1

Explicit Expanders of Every Degree and Size 1: For Distinct Primes q₁, q₂, Every Large n Has an LPS Vertex Count Q(q₁, q₂, s, t) Between n and n + o(n)Research Paper

Motivation

An (n,d,λ)(n,d,\lambda)(n,d,λ)-graph is a ddd-regular graph on nnn vertices in which every eigenvalue of the adjacency matrix other than the top eigenvalue ddd has absolute value at most λ\lambdaλ. Graphs of this kind with λ\lambdaλ small compared with ddd are expanders. They are used in derandomization, error-correcting codes, sorting networks and many other constructions in theoretical computer science. A Ramanujan graph achieves λ≤2d−1\lambda\le 2\sqrt{d-1}λ≤2d−1​, which is asymptotically optimal.

The classical explicit Ramanujan graphs of Lubotzky, Phillips and Sarnak (LPS, 1988) exist only for special vertex counts, such as q(q2−1)/2q(q^2-1)/2q(q2−1)/2 for a prime qqq or the size of a quaternion group modulo mmm. N. Alon, in Explicit expanders of every degree and size (arXiv:2003.11673, 2020; Combinatorica 41, 2021), asks for explicit (n,d,λ)(n,d,\lambda)(n,d,λ)-graphs with λ≤(2+o(1))d\lambda\le(2+o(1))\sqrt dλ≤(2+o(1))d​ for every degree ddd and every number of vertices nnn. His Proposition 1.1 builds such graphs out of LPS graphs, and one ingredient is purely arithmetic. If the available vertex counts of an LPS family are dense enough, so that for every large nnn one is within a factor 1+o(1)1+o(1)1+o(1) of nnn, then a few vertices can be added or removed while keeping the spectral bound.

This mission formalizes that ingredient, Lemma 2.2 of the paper (p. 7). It concerns the vertex counts of the LPS graphs H(p,q1sq2t)H(p,q_1^sq_2^t)H(p,q1s​q2t​) for two fixed primes q1,q2q_1,q_2q1​,q2​ and all exponents s,t≥1s,t\ge1s,t≥1. With q1,q2q_1,q_2q1​,q2​ fixed, the construction needs no large primes, which is why Proposition 1.1 is strongly explicit for every fixed degree.

Setting

Fix natural numbers q1,q2q_1,q_2q1​,q2​. For natural numbers s,ts,ts,t define the LPS vertex count

Q(q1,q2,s,t)=q13(s−1) q23(t−1)⋅q1(q1−1)(q1+1)2⋅q2(q2−1)(q2+1)2.Q(q_1,q_2,s,t)=q_1^{3(s-1)}\,q_2^{3(t-1)}\cdot\frac{q_1(q_1-1)(q_1+1)}{2}\cdot\frac{q_2(q_2-1)(q_2+1)}{2}.Q(q1​,q2​,s,t)=q13(s−1)​q23(t−1)​⋅2q1​(q1​−1)(q1​+1)​⋅2q2​(q2​−1)(q2​+1)​.

When q1,q2q_1,q_2q1​,q2​ are distinct primes congruent to 111 modulo 4p4p4p and s,t≥1s,t\ge1s,t≥1, this is the number of vertices of the LPS Cayley graph H(p,q1sq2t)H(p,q_1^sq_2^t)H(p,q1s​q2t​) (§2.3, p. 6). Lemma 2.2 itself only requires q1,q2q_1,q_2q1​,q2​ to be distinct primes. Both fractions are integers, because q(q−1)(q+1)q(q-1)(q+1)q(q−1)(q+1) is a product of three consecutive integers.

The proof uses the real number α=log⁡q1/log⁡q2\alpha=\log q_1/\log q_2α=logq1​/logq2​, and the fractional part {x}=x−⌊x⌋∈[0,1)\{x\}=x-\lfloor x\rfloor\in[0,1){x}=x−⌊x⌋∈[0,1), written x mod 1x \bmod 1xmod1 in the paper.

Formalization targets

Goal: Lemma 2.2

For distinct primes q1,q2q_1,q_2q1​,q2​ there is a function g:N→Rg:\mathbb N\to\mathbb Rg:N→R with g(n)=o(n)g(n)=o(n)g(n)=o(n) such that for all sufficiently large nnn there are integers s,t≥1s,t\ge1s,t≥1 with

n≤Q(q1,q2,s,t)≤n+g(n).n\le Q(q_1,q_2,s,t)\le n+g(n).n≤Q(q1​,q2​,s,t)≤n+g(n).

Equivalently, the ratio between consecutive elements of {Q(q1,q2,s,t):s,t≥1}\{Q(q_1,q_2,s,t):s,t\ge1\}{Q(q1​,q2​,s,t):s,t≥1} tends to 111. The statement fixes no rate for ggg, matching the paper's o(n)o(n)o(n).

Milestones, in the order the proof of Lemma 2.2 uses them (p. 7)

  1. For distinct primes q1,q2q_1,q_2q1​,q2​, α=log⁡q1/log⁡q2\alpha=\log q_1/\log q_2α=logq1​/logq2​ is irrational.
  2. For irrational α\alphaα and every δ>0\delta>0δ>0 there is k1≥1k_1\ge1k1​≥1 with 0<{k1α}<δ0<\{k_1\alpha\}<\delta0<{k1​α}<δ.
  3. For distinct primes q1,q2q_1,q_2q1​,q2​ and every μ>0\mu>0μ>0 there are k1≥1k_1\ge1k1​≥1, k2≥0k_2\ge0k2​≥0 with
1≤q1k1q2k2≤1+μ.1\le \frac{q_1^{k_1}}{q_2^{k_2}}\le 1+\mu .1≤q2k2​​q1k1​​​≤1+μ.
  1. For distinct primes, μ>0\mu>0μ>0 and k1≥1k_1\ge1k1​≥1, if 1≤q1k1/q2k2≤1+μ1\le q_1^{k_1}/q_2^{k_2}\le1+\mu1≤q1k1​​/q2k2​​≤1+μ, then for s>k1s>k_1s>k1​ and t≥1t\ge1t≥1
1≤Q(q1,q2,s,t)Q(q1,q2,s−k1,t+k2)≤(1+μ)3.1\le\frac{Q(q_1,q_2,s,t)}{Q(q_1,q_2,s-k_1,t+k_2)}\le(1+\mu)^3 .1≤Q(q1​,q2​,s−k1​,t+k2​)Q(q1​,q2​,s,t)​≤(1+μ)3.

Significance

The result. Lemma 2.2 is the step of Proposition 1.1 that turns a family of Ramanujan graphs with sparse vertex counts into a family whose vertex counts approximate every large nnn up to a factor 1+o(1)1+o(1)1+o(1). The deviation from nnn can then be absorbed by the general packing argument of §2.1 of the paper. Without it, the construction would have to search for large primes depending on nnn, and the result would be explicit but not strongly explicit.

The formalization. The lemma is proved in the paper, in one paragraph. To our knowledge no machine-checked proof exists, and the platform has no statement of it. The only related platform item is the irrationality of log⁡2/log⁡3\log 2/\log 3log2/log3, the case q1=2q_1=2q1​=2, q2=3q_2=3q2​=3 of milestone 1. Formalizing the lemma requires a quantitative inhomogeneous step that the paper leaves implicit ("implying the desired result"). Its last sentence also contains a misprint that the formalization corrects (see below). The Diophantine milestones 1–3 are reusable for any argument about the multiplicative density of {q1aq2b}\{q_1^a q_2^b\}{q1a​q2b​}, for instance the ratio of consecutive elements of {2a3b}\{2^a3^b\}{2a3b}.

Difficulty

Each milestone is short. The difficulty is in making the paper's last sentence ("implying the desired result") into a proof. Taking sss or ttt large separately does not work: changing sss or ttt by one multiplies QQQ by q13q_1^3q13​ or q23q_2^3q23​, a fixed factor larger than 111, so the values obtained by varying one exponent leave gaps of a constant ratio. The bound must hold for every large nnn, not just along a subsequence, and the exponents must stay positive throughout. Milestone 2 is the classical fact that the multiples of an irrational number are dense modulo 111. It needs a pigeonhole argument, not just the irrationality.

Formalization scope

  • Representation. QQQ is a natural-number-valued Lean definition given by the explicit formula above, not the cardinality of a quaternion group. The graph-count interpretation needs the section's congruence conditions on p,q1,q2p,q_1,q_2p,q1​,q2​; Lemma 2.2 is an arithmetic statement for all distinct primes q1,q2q_1,q_2q1​,q2​. Every use of QQQ in the theorems has positive s,ts,ts,t, so natural-number subtraction s−1s-1s−1 is exact, and the division by 222 is exact since q(q−1)(q+1)q(q-1)(q+1)q(q−1)(q+1) is even. Ratios and the bound n+g(n)n+g(n)n+g(n) are computed in R\mathbb RR after casting. The logarithm is Real.log, and the fractional part is Int.fract.
  • o(n). The paper writes n≤Q≤n+o(n)n\le Q\le n+o(n)n≤Q≤n+o(n) for every large nnn. The goal states it literally: ∃g, g=o(n)\exists g,\ g=o(n)∃g, g=o(n) (Mathlib IsLittleO along atTop) and, eventually in nnn, ∃s,t≥1\exists s,t\ge1∃s,t≥1 with n≤Q≤n+g(n)n\le Q\le n+g(n)n≤Q≤n+g(n). This is equivalent to the form "for every μ>0\mu>0μ>0, every large nnn has s,t≥1s,t\ge1s,t≥1 with n≤Q≤(1+μ)nn\le Q\le(1+\mu)nn≤Q≤(1+μ)n". The paper's proof yields the second form, with the factor (1+μ)3(1+\mu)^3(1+μ)3 for arbitrary μ\muμ.
  • Misprint. The paper's last sentence compares Q(q1,q2,s,t)Q(q_1,q_2,s,t)Q(q1​,q2​,s,t) with Q(q1,q2,s−k1,t−k2)Q(q_1,q_2,s-k_1,t-k_2)Q(q1​,q2​,s−k1​,t−k2​) for s,t≥max⁡{k1,k2}s,t\ge\max\{k_1,k_2\}s,t≥max{k1​,k2​}. As printed the ratio is q13k1q23k2q_1^{3k_1}q_2^{3k_2}q13k1​​q23k2​​, which is not close to 111. Milestone 4 uses the intended pair (s−k1,t+k2)(s-k_1,t+k_2)(s−k1​,t+k2​), with s>k1s>k_1s>k1​ so that s−k1≥1s-k_1\ge1s−k1​≥1.
  • Ruling out a trivial reading. The lower bound n≤Q(q1,q2,s,t)n\le Q(q_1,q_2,s,t)n≤Q(q1​,q2​,s,t) alone holds for every nnn by taking sss large. The content of the goal is the upper bound with a sublinear excess, and s,ts,ts,t must be positive. In milestone 3 the condition k1≥1k_1\ge1k1​≥1 excludes the trivial witness k1=k2=0k_1=k_2=0k1​=k2​=0.
  • Out of scope. The derivation of QQQ as the vertex count of H(p,q1sq2t)H(p,q_1^sq_2^t)H(p,q1s​q2t​) (Hensel's lemma and the Chinese remainder theorem, pp. 6–7), Theorem 2.1 (the LPS graphs are Ramanujan, cited from Lubotzky–Phillips–Sarnak), Proposition 1.1, the §2.1 packing argument, and every running-time ("explicit", "strongly explicit") claim.
  • Infrastructure. Only Mathlib is needed: unique factorization for milestone 1, Int.fract and a pigeonhole or Dirichlet-approximation argument for milestone 2, and real exponentiation and asymptotics for the goal. Contributions of alternative proofs of milestone 2, for instance via Mathlib's Dirichlet approximation theorem, are welcome.

Selected references

  • N. Alon, Explicit expanders of every degree and size, arXiv:2003.11673v1, 2020; Combinatorica 41 (2021). https://arxiv.org/abs/2003.11673 , https://doi.org/10.1007/s00493-020-4429-x
  • A. Lubotzky, R. Phillips, P. Sarnak, Ramanujan graphs, Combinatorica 8 (1988) 261–277. https://doi.org/10.1007/BF02126799
  • S. Hoory, N. Linial, A. Wigderson, Expander graphs and their applications, Bull. AMS 43 (2006) 439–561. https://doi.org/10.1090/S0273-0979-06-01126-8
6 thms2 active usersReviewed
🏆Completed
Captain: xuanji

Every Odd Number Greater Than 1 is the Sum of at Most 351 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, 351351351, 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∣≤351, ∑s=n.\forall n \in \mathbb{N},\quad n \text{ odd},\ n > 1 \implies \exists\, s \text{ multiset of primes},\ |s| \le 351,\ \textstyle\sum s = n.∀n∈N,n odd, n>1⟹∃s multiset of primes, ∣s∣≤351, ∑s=n.

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

How the bound arises

It uses the same density estimate as the companion 485485485 entry, σ(A)≥1/175\sigma(A) \ge 1/175σ(A)≥1/175 for A=B+BA = B + BA=B+B with B={(p−3)/2:p odd prime}B = \{(p-3)/2 : p \text{ odd prime}\}B={(p−3)/2:p odd prime} (explicit Selberg sieve, weighted first moment, eighth moment of the singular-series factor, Hölder). It then replaces Schnirelmann's sumset inequality by 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:

  1. Mann's theorem gives 175A=Z≥0175A = \mathbb{Z}_{\ge 0}175A=Z≥0​, so 350B=Z≥0350B = \mathbb{Z}_{\ge 0}350B=Z≥0​.
  2. For odd n≥3K=1053n \ge 3K = 1053n≥3K=1053, write (n−3K)/2(n - 3K)/2(n−3K)/2 as a sum of 350350350 elements of BBB and add one more 333, giving K=351K = 351K=351 primes.
  3. For 703≤n<1053703 \le n < 1053703≤n<1053, use n−2Kn - 2Kn−2K threes and 3K−n3K - n3K−n twos.

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) with threshold e100e^{100}e100.
  3. The eighth-moment bound ∑s≤xC(s)8≤800 000 x\sum_{s \le x} C(s)^8 \le 800\,000\,x∑s≤x​C(s)8≤800000x.
  4. Mann's theorem (αβ\alpha\betaαβ theorem) on Schnirelmann density.

Formalization scope

The Lean statement is the campaign template verbatim with 351351351 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 351351351; not peer reviewed.
6 thms2 active usersReviewed
🏆Completed
Captain: xuanji

Every Odd Number Greater Than 1 is the Sum of at Most 485 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, 485485485, 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∣≤485, ∑s=n.\forall n \in \mathbb{N},\quad n \text{ odd},\ n > 1 \implies \exists\, s \text{ multiset of primes},\ |s| \le 485,\ \textstyle\sum s = n.∀n∈N,n odd, n>1⟹∃s multiset of primes, ∣s∣≤485, ∑s=n.

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

How the bound arises

It keeps the explicit Selberg sieve and Schnirelmann's original sumset inequality from the 100 001100\,001100001 entry, and improves only the density estimate:

  1. Lower sieve threshold. With z=s/(log⁡s)2z = \sqrt{s}/(\log s)^2z=s​/(logs)2 the sieve gives r(s)≤13 C(s) s/(log⁡s)2r(s) \le 13\,C(s)\,s/(\log s)^2r(s)≤13C(s)s/(logs)2 for even s≥e100s \ge e^{100}s≥e100, where 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. Counting over the whole triangle p+q≤xp + q \le xp+q≤x and weighting by (log⁡s)2/s(\log s)^2/s(logs)2/s gives ∑e100<s≤xr(s)(log⁡s)2/s≥43100x\sum_{e^{100} < s \le x} r(s)(\log s)^2/s \ge \tfrac{43}{100}x∑e100<s≤x​r(s)(logs)2/s≥10043​x for x≥e200x \ge e^{200}x≥e200.
  3. Eighth moment of CCC. An Euler-product estimate (primes 3,5,73, 5, 73,5,7 handled individually, the tail bounded at once) gives ∑s≤x, 2∣sC(s)8≤800 000 x\sum_{s \le x,\, 2 \mid s} C(s)^8 \le 800\,000\,x∑s≤x,2∣s​C(s)8≤800000x.
  4. Hölder instead of Cauchy–Schwarz. This yields #{s≤x:r(s)>0}≥x/345\#\{s \le x : r(s) > 0\} \ge x/345#{s≤x:r(s)>0}≥x/345 for x≥e200x \ge e^{200}x≥e200, and with Chebyshev's bound for smaller scales, σ(A)≥1/175\sigma(A) \ge 1/175σ(A)≥1/175 for A=B+BA = B + BA=B+B, B={(p−3)/2}B = \{(p-3)/2\}B={(p−3)/2}.
  5. Schnirelmann's inequality with m=121m = 121m=121 (since (174/175)121<1/2(174/175)^{121} < 1/2(174/175)121<1/2) gives 242A=Z≥0242A = \mathbb{Z}_{\ge 0}242A=Z≥0​, hence K=4m+1=485K = 4m + 1 = 485K=4m+1=485.

Only Chebyshev-type prime bounds, the Selberg upper-bound sieve, Hölder's inequality and Schnirelmann's inequality are used.

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) with threshold e100e^{100}e100.
  3. The eighth-moment bound ∑s≤xC(s)8≤800 000 x\sum_{s \le x} C(s)^8 \le 800\,000\,x∑s≤x​C(s)8≤800000x.
  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 485485485 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 485485485; not peer reviewed.
6 thms2 active usersReviewed
PreviousPage 2 of 4Next

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