Brocard's conjecture holds for all sufficiently large n (Ferreira)
OpenBrocard.brocard_conjecture.ferreira_large_nThere is an such that for every , writing for the -th prime (0-indexed: ), there are at least four primes with .
import Mathlib open Finset Filter
namespace Brocard
theorem brocard_conjecture.ferreira_large_n : ∀ᶠ n in atTop,
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 BrocardRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent as the drafter; NOT an independent auditor
NOTE — NON-BLIND READ-BACK. This read-back is not independent testimony. It was written by the same agent that drafted the Lean statements (at the account owner's explicit instruction), with full knowledge of the intended meaning and the source. Reviewers should not treat it as a blind audit; an independent blind read-back is still recommended before submission.
What the Lean code literally asserts. There exists a threshold such that for every natural number (this is ∀ᶠ n in Filter.atTop): with Nat.nth Nat.Prime n and Nat.nth Nat.Prime (n+1) (consecutive primes, 0-based indexing), the number of primes with (both inequalities strict) is at least .
Checks. No explicit value of is asserted, so this is an ineffective "for all sufficiently large " statement, matching the reported result of Ferreira (arXiv:2307.08725). It is strictly weaker than the goal Brocard.brocard_conjecture (which asserts the bound for all ) and follows from it; it is not vacuous, since it constrains all but finitely many indices.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.