Brocard's conjecture for the indices (finite verification)
ProvedBrocard.brocard_conjecture_of_lt_100number-theoryprime-gapsprimes
Write for the -th prime with 0-based indexing (, , , …). For every index with (that is, for all pairs of consecutive primes from up to ) there are at least four primes with
This is the finite initial range of Brocard's conjecture, a purely computational statement.
Preamble
import Mathlib open Finset Filter
Formal statement
namespace Brocard
theorem brocard_conjecture_of_lt_100 (n : ℕ) (hn : 1 ≤ n) (hn' : n < 100) :
letI prev := n.nth Nat.Prime;
letI next := (n+1).nth Nat.Prime;
4 ≤ ((Ioo (prev^2) (next^2)).filter Nat.Prime).card := by sorry
end BrocardSource
Brocard's conjecture, https://en.wikipedia.org/wiki/Brocard%27s_conjecture ; finite initial segment of the statement `brocard_conjecture` (Formal Conjectures, BrocardConjecture.lean), split at index 100.