Andrica's conjecture:
OpenAndricaConjecture.andrica_conjecturenumber-theoryprimes
Let Nat.nth Nat.Prime n denote the th prime in Mathlib's zero-based indexing, so that and . Then for every natural number ,
where the square roots are the nonnegative real square roots. This is Andrica's conjecture, which remains open. In the classical one-based numbering , , , the same inequality is the assertion for all ; the Lean statement covers every consecutive pair, including the first gap.
Preamble
import Mathlib
Formal statement
namespace AndricaConjecture
theorem andrica_conjecture (n : Nat) :
Real.sqrt (Nat.nth Nat.Prime (n + 1) : Real) -
Real.sqrt (Nat.nth Nat.Prime n : Real) < 1 := by sorry
end AndricaConjecture
Source
Dorin Andrica, Note on a conjecture in prime number theory, Studia Univ. Babeș-Bolyai Math. 31 (1986), no. 4, 44–48, https://zbmath.org/0623.10030
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.