Brocard's conjecture
OpenBrocard.brocard_conjectureFor every , writing for the -th prime with 0-based indexing (, , , …), there are at least four primes with . In the usual 1-based indexing this is Brocard's conjecture: for all there are at least four primes between and .
import Mathlib open Finset Filter
namespace Brocard
theorem brocard_conjecture (n : ℕ) (hn : 1 ≤ n) :
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. For every natural number with : let be Nat.nth Nat.Prime n (the prime at 0-based position in the increasing list of primes ) and be Nat.nth Nat.Prime (n+1) (the next prime). Then the number of natural numbers with (strict on both sides, Finset.Ioo) that are prime is at least .
Checks. Because indexing is 0-based, means , i.e. the source's "" in 1-based indexing. For : primes in are — five, so the claim holds there. The excluded index would give with only — two primes — so the hypothesis is necessary and the statement is not vacuous. No totality pitfalls: Nat.nth Nat.Prime is well defined for all since the primes are infinite, and there is no subtraction or division.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.