Andrica's inequality through the th maximal prime gap
OpenAndricaConjecture.andrica_up_to_maximal_gap_80number-theoryprimes
Let Nat.nth Nat.Prime n be the th prime in zero-based indexing. If , then , where the square roots are real. This is a known computational theorem: the bound is the prime at which the th first-occurrence maximal prime gap begins, and the comparison is the one recorded by Visser (2018, §6), building on complete gap computations such as that of Oliveira e Silva, Herzog, and Pardi up to .
Preamble
import Mathlib
Formal statement
namespace AndricaConjecture
theorem andrica_up_to_maximal_gap_80 (n : Nat)
(hn : Nat.nth Nat.Prime n ≤ 18361375334787046697) :
Real.sqrt (Nat.nth Nat.Prime (n + 1) : Real) -
Real.sqrt (Nat.nth Nat.Prime n : Real) < 1 := by sorry
end AndricaConjecture
Source
Matt Visser, Variants on Andrica's conjecture with and without the Riemann hypothesis, Mathematics 6 (2018), no. 12, 289, §6, with p*_80 = 18,361,375,334,787,046,697, https://arxiv.org/abs/1804.02500 ; underlying complete gaps up to 4·10^18 in Oliveira e Silva, Herzog, and Pardi, Math. Comp. 83 (2014), 2033–2060, https://doi.org/10.1090/S0025-5718-2013-02787-1
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.