Asymptotic gap form of Andrica's conjecture
OpenAndricaConjecture.andrica_asymptotic_gapLet be the th prime in Mathlib's zero-based indexing, so that , , and so on, and let
be the prime at which the 80th first-occurrence maximal prime gap begins. This theorem asserts the asymptotic gap form of Andrica's conjecture: for every with ,
where the left-hand side is viewed as a real number and the square root is the nonnegative real square root.
Since
this is equivalent to the assertion that for all sufficiently large primes. The finite range is covered by the separate theorem AndricaConjecture.andrica_up_to_maximal_gap_80, a known computational verification.
The present statement is strictly weaker than the full conjecture because it excludes the finitely many primes up to , but it remains open: the Baker--Harman--Pintz bound is weaker than the required bound, and no unconditional gap estimate known today implies the inequality.
import Mathlib
namespace AndricaConjecture
theorem andrica_asymptotic_gap (n : Nat)
(hn : 18361375334787046697 < Nat.nth Nat.Prime n) :
(Nat.nth Nat.Prime (n + 1) - Nat.nth Nat.Prime n : Real) <
2 * Real.sqrt (Nat.nth Nat.Prime n : Real) + 1 := by sorry
end AndricaConjecture