Documentation

FormalConjectures.Wikipedia.LegendreConjecture

Legendre's conjecture #

References:

theorem LegendreConjecture.legendre_conjecture :
True n1, pSet.Ioo (n ^ 2) ((n + 1) ^ 2), Nat.Prime p

Does there always exist at least one prime between consecutive perfect squares?

theorem LegendreConjecture.bounded_gap_legendre (H : c > 0, ∀ᶠ (n : ) in Filter.atTop, (Nat.nth Nat.Prime (n + 1)) - (Nat.nth Nat.Prime n) < (Nat.nth Nat.Prime n) ^ (1 / 2 - c)) :
∀ᶠ (n : ) in Filter.atTop, pSet.Ioo (n ^ 2) ((n + 1) ^ 2), Nat.Prime p

If there exists a constant c > 0 such that (n + 1).nth Nat.Prime - n.nth Nat.Prime < (n.nth Nat.Prime) ^ (1 / 2 - c) for all large n, then Legendre's conjecture is asymptotically true.

Ferreira proved that the conjecture is true for sufficiently large n.