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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Andrica's conjecture

Source:Wikipedia lists of open problems
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Elsewhere:on aiXiv: partial progress — Not resolved on aiXiv. Latest progress: computation in aiXiv:2609.03229 (2026-04-15). (a claim recorded elsewhere, not verified on nosorry)
1 result recorded on aiXiv · matched by name: check it is the same problem
  1. computation For all consecutive primes pn<pn+1p_n<p_{n+1} up to 10710^7 (664,579 primes), (pn+1−pn)log⁡pn≤3.3345(\sqrt{p_{n+1}}-\sqrt{p_n})\log p_n\le 3.3345. The maximum is attained at the pair (1327,1361)(1327,1361). Hence Andrica's inequality pn+1−pn<1\sqrt{p_{n+1}}-\sqrt{p_n}<1 holds in this range in the stronger form ≤3.34/log⁡pn\le 3.34/\log p_n. — aiXiv:2609.03229, 2026-04-15 · 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:

Andrica's conjecture The inequality pn+1−pn<1\sqrt{p_{n+1}}-\sqrt{p_n} < 1 holds for all nn, where pnp_n is the nn-th prime number.

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

Formal statement

theorem andrica_conjecture (n : ℕ) :
    Real.sqrt ((n+1).nth Nat.Prime) - Real.sqrt (n.nth Nat.Prime) < 1
Show the full Challenge.lean (51 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Andrica's conjecture

*References:*
- [Wikipedia](https://en.wikipedia.org/wiki/Andrica%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 Andrica

/--
**Andrica's conjecture**
The inequality $\sqrt{p_{n+1}}-\sqrt{p_n} < 1$ holds for all $n$, where $p_n$ is the $n$-th prime number.
-/
@[category research open, AMS 11]
theorem andrica_conjecture (n : ℕ) :
    Real.sqrt ((n+1).nth Nat.Prime) - Real.sqrt (n.nth Nat.Prime) < 1 := by
  sorry

/--
Ferreira proved that Andrica's conjecture is true for sufficiently large n.
-/
@[category research solved, AMS 11]
theorem andrica_conjecture.ferreira_large_n :
    ∀ᶠ n in atTop, Real.sqrt ((n+1).nth Nat.Prime) - Real.sqrt (n.nth Nat.Prime) < 1 := by
  sorry

end Andrica

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

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

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

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.