This repository contains a Lean 4 formalization of the results presented in Improved Long Gaps Between Primes by OpenAI.
We prove that, for all sufficiently large
where
The project uses Lean 4.33.0, mathlib, and Lake. With elan installed, fetch the mathlib cache and build the formalization with:
lake exe cache get
lake buildInstall landrun, lean4export, and nanoda_bin, and make them available on
PATH. Then, from the repository root:
lake exe cache get
lake exe comparator comparator.json