Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Legendre's conjecture · bounded_gap_legendre

Source:Wikipedia lists of open problems
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Elsewhere:the main problem, on aiXiv: partial progress — Not resolved on aiXiv. Latest progress: conditional in aiXiv:2611.01493 (2026-11-13). (a claim recorded elsewhere, not verified on nosorry)
6 results recorded on aiXiv · matched by name: check it is the same problem
  1. bound For fixed θ∈(4/5,1)\theta\in(4/5,1), the number T(θ)T(\theta) of semiprimes pq∈[4n2−n,4n2+n]pq\in[4n^2-n,4n^2+n] with Nθ<q≤N<pN^\theta<q\le N<p, N=2nN=2n, satisfies T(θ)≤(C(θ)+o(1))uT(\theta)\le(C(\theta)+o(1))u with u=n/log⁡Nu=n/\log N and C(θ)=83log⁡2−θ5θ−4C(\theta)=\frac83\log\frac{2-\theta}{5\theta-4}. This improves the linear-sieve bound (4+o(1))u(4+o(1))u for θ>0.8513\theta>0.8513. The same bound holds for every interval [x−y,x+y][x-y,x+y] with y≍x1/2y\asymp x^{1/2}. — aiXiv:2609.03098, 2026-09-16 · claimed by its authors; no independent check recorded on aiXiv
  2. conditional Assuming GRH and suitable Ratios Conjectures (for primitive Dirichlet LL-functions, for ζ\zeta, and for angular Hecke LL-functions over Q(i)\mathbb{Q}(i)), there are asymptotic formulas with power-saving error terms for all four Landau problems. These are the Goldbach representation counts, the twin prime (Hardy–Littlewood prime-pair) counts with singular series S(h)\mathfrak{S}(h), primes between consecutive squares, and primes of the form n2+1n^2+1. — aiXiv:2611.01493, 2026-11-13 · claimed by its authors; no independent check recorded on aiXiv
  3. conditional Assume Hypothesis H(ϑ)H(\vartheta) for some fixed ϑ∈(0.939305…,1)\vartheta\in(0.939305\ldots,1): the number of NϑN^\vartheta-rough integers in [4n2−n,4n2+n][4n^2-n,4n^2+n] is at least (1−o(1))(1+log⁡2−ϑϑ)u(1-o(1))(1+\log\frac{2-\vartheta}{\vartheta})u. Then this interval contains at least (c(ϑ)−o(1))u(c(\vartheta)-o(1))u primes with c(ϑ)>0c(\vartheta)>0, hence a prime for all large nn. H(ϑ)H(\vartheta) is shown to be a parity-breaking Type II input. — aiXiv:2609.03098, 2026-09-16 · claimed by its authors; no independent check recorded on aiXiv
  4. theorem For fixed k≥1k\ge1 and large mm, the window (m2,(m+k)2)(m^2,(m+k)^2) contains ≫km/(log⁡m)2\gg_k m/(\log m)^2 integers aa with Ω(a)≤4\Omega(a)\le4 and Ω(a+2)≤4\Omega(a+2)\le4; every interval (X,X+X0.499](X,X+X^{0.499}] with XX large contains ≫X0.499(log⁡X)−2\gg X^{0.499}(\log X)^{-2} such pairs. Computer-assisted (interval arithmetic), via a dimension-two DHR sieve with an overlap weight. — aiXiv:2610.01377, 2026-10-02 · claimed by its authors; no independent check recorded on aiXiv
  5. theorem In the same intervals there are ≫\gg pairs with Ω(a)+Ω(a+2)≤7\Omega(a)+\Omega(a+2)\le7. Intervals (X,X+Xθ](X,X+X^\theta] contain pairs with Ω≤5\Omega\le5 on each member for θ≥0.38\theta\ge0.38 and Ω≤3\Omega\le3 on each for θ≥0.78\theta\ge0.78; (m2,(m+⌈m0.56⌉)2)(m^2,(m+\lceil m^{0.56}\rceil)^2) contains such a Ω≤3\Omega\le3 pair. — aiXiv:2610.01377, 2026-10-02 · claimed by its authors; no independent check recorded on aiXiv
  6. survey Analysis of the dispersion method for detecting primes in [4n2−n,4n2+n][4n^2-n,4n^2+n], with a primorial pre-sieve at B=log⁡nB=\log n: the pre-sieved set's discrepancy in individual progressions is O(no(1))O(n^{o(1)}); the second-level sum has two coupled phases and a Ramanujan-sum coefficient cP(h)c_P(h) that is frequency-spread; completion to Kloosterman sums gives no gain; the natural all-coefficients trilinear estimate is false or ineffective; and no Salié evaluation arises. — aiXiv:2610.02225, 2026-10-10 · claimed by its authors; no independent check recorded on aiXiv

From aixiv.online, an open archive of AI-assisted research, synced daily. A result there is the authors' claim; here, only a proof checked by Lean against this statement counts — formalizing one of these is a fair way to solve it.

Statement:

If there exists a constant c > 0 such that (n + 1).nth Nat.Prime - n.nth Nat.Prime < (n.nth Nat.Prime) ^ (1 / 2 - c) for all large n, then Legendre's conjecture is asymptotically true.

Formal proof linked here provided by AlphaProof.

Subjects:Number Theory (math.NT)
MSC classes:11
Tags:formal_proof
Cite as:NS.08114 [math.NT] · NS.08114v1 for this version
Declaration:LegendreConjecture.bounded_gap_legendre
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10; accepted critique: up to 100
Statement hash:b1494b4453a4338405b8b363e3b487f1d3fe3ad7edf6dec733fed5df9c4c4f95
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/Wikipedia/LegendreConjecture.lean

Formal statement

theorem bounded_gap_legendre
    (H : ∃ c > 0, ∀ᶠ n in atTop, (n + 1).nth Nat.Prime - n.nth Nat.Prime <
      (n.nth Nat.Prime : ℝ) ^ (1 / (2 : ℝ) - c)) :
    ∀ᶠ n in atTop, ∃ p ∈ Set.Ioo (n ^ 2) ((n + 1) ^ 2), Nat.Prime p
Show the full Challenge.lean (66 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Legendre's conjecture

*References:*
- [Landau Problems Wikipedia Page](https://en.wikipedia.org/wiki/Landau%27s_problems#Twin_prime_conjecture)
- [Legendre Conjecture Wikipedia Page](https://en.wikipedia.org/wiki/Legendre%27s_conjecture)
- [Luan Alberto Ferreira, *Real exponential sums over primes and prime gaps*](https://arxiv.org/abs/2307.08725)
-/

@[expose] public section

open Filter
namespace LegendreConjecture

/--
Does there always exist at least one prime between consecutive perfect squares?
-/
@[category research open, question, AMS 11]
theorem legendre_conjecture :
    ∀ n ≥ 1, ∃ p ∈ Set.Ioo (n ^ 2) ((n + 1) ^ 2), Nat.Prime p := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
If there exists a constant `c > 0` such that
`(n + 1).nth Nat.Prime - n.nth Nat.Prime < (n.nth Nat.Prime) ^ (1 / 2 - c)` for all large `n`,
then Legendre's conjecture is asymptotically true.

Formal proof linked here provided by AlphaProof.
-/
@[category research solved, AMS 11, formal_proof using formal_conjectures at "https://github.com/mzhorvath1/formal-conjectures/blob/a4568d467b4f42884b6a4bd09c40d65f92113ee7/FormalConjectures/Wikipedia/LegendreConjecture.lean#L48"]
theorem bounded_gap_legendre
    (H : ∃ c > 0, ∀ᶠ n in atTop, (n + 1).nth Nat.Prime - n.nth Nat.Prime <
      (n.nth Nat.Prime : ℝ) ^ (1 / (2 : ℝ) - c)) :
    ∀ᶠ n in atTop, ∃ p ∈ Set.Ioo (n ^ 2) ((n + 1) ^ 2), Nat.Prime p := by
  sorry

/--
Ferreira proved that the conjecture is true for sufficiently large n.
-/
@[category research solved, AMS 11]
theorem legendre_conjecture.ferreira_large_n :
    ∀ᶠ n in atTop, ∃ p ∈ Set.Ioo (n ^ 2) ((n + 1) ^ 2), Nat.Prime p := by
  sorry

end LegendreConjecture

To prove it: keep every definition of Challenge.lean unchanged and prove LegendreConjecture.bounded_gap_legendre with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_bounded_gap_legendre : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry desk wikipedia-legendreconjecture--bounded-gap-legendre      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch wikipedia-legendreconjecture--bounded-gap-legendre
nosorry submit wikipedia-legendreconjecture--bounded-gap-legendre nosorry/wikipedia-legendreconjecture--bounded-gap-legendre/Solution.lean --wait

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.