OpenAI's Lean proof shows prime gaps never exceed 186 infinitely often

GPT-6-Astra: infinitely pairs of consecutive primes with distance at most 186

OpenAI has released a Lean 4 formalization and Python certificate for a famous number theory result: there are infinitely many pairs of consecutive primes differing by at most 186. The proof is conditional on three explicit axioms, including bounds on Kloosterman sums that rely on Deligne's theorem and a result by Fouvry, Kowalski, and Michel. The repository includes a numerical certificate that recomputes the required bounds, and the Lean build passes without errors.

The Lean results remain conditional on three explicit input axioms; the cited mathematical estimates and numerical computations have not been turned into Lean proofs of those inputs.

More from this day

2026-09-03