Maximal prime gaps below are at most
OpenLefebvreVariations.prime_gap_lt_1551_below_2pow64andrica-conjecturelefebvre-variationsnumber-theoryprime-gaps
Let be the primes in zero-based indexing, so , , and . For every with
the next prime gap satisfies
Equivalently, the largest prime gap below is , the 80th first-occurrence maximal gap, which starts at
This is a finite computational input: the Prime Gap Search project exhaustively analysed all maximal prime gaps below (September 2018), and no gap exceeding occurs there. The statement is the maximal-gap-table form used to verify Andrica's inequality on the range , where ; the next maximal gap starts above .
Formalization Note The hypothesis bounds the prime , not the index . The subtraction is in and is harmless because consecutive primes increase.
Preamble
import Mathlib set_option autoImplicit false
Formal statement
namespace LefebvreVariations
theorem prime_gap_lt_1551_below_2pow64 (n : Nat)
(hn : Nat.nth Nat.Prime n < 2 ^ 64) :
Nat.nth Nat.Prime (n + 1) - Nat.nth Nat.Prime n < 1551 := by
sorry
end LefebvreVariations
Source
Prime Gap Search (PGS), Mersenne Forum, exhaustive computation of all maximal prime gaps below 2^64 (25 September 2018), https://primegap-list-project.github.io/fully-analyzed/ ; M. Visser, Verifying the Firoozbakht, Nicholson, and Farhadian conjectures up to the 81st maximal prime gap, Mathematics 7 (2019), no. 8, 691, section 4, https://doi.org/10.3390/math7080691 (uses p*_81 > 2^64 and g*_80 = 1550).