Lean formalization of bounded gaps between primes
42
stars
7
commits
Lean
primary language
Aug 18, 2026
updated
Public Lean library for formalizations related to prime gaps, maintained by Axiom Math.
This repository depends on an internal fork of PrimeNumberTheoremAnd (original here), changed to use the module system.
Formal versions of these statements can be found in the formal challenge described in §Comparator.
A formal challenge that is self-contained and only depends on Mathlib is located in Comparator.Challenge. It contains statement 1 of §Main Results with sorry as proof.
This repository can be verified against the formal challenge with the Lean comparator on a Linux machine. First, follow the instructions in https://github.com/leanprover/comparator to install comparator. Then, run the following command:
lake env comparator Comparator/comparator.json
Beware that this can take hours.
The proofs of statements 2 and 3 of §Main Results compile much faster, so we also included a formal challenge for them in Comparator.ChallengeFast. To verify this repository against this challenge file, run the following command:
lake env comparator Comparator/comparator_fast.json
This should only takes minutes.
6 commits
1 commits
Hacker News (1)
Lean
100.0%
Lean formalization of bounded gaps between primes
42
stars
7
commits
Lean
primary language
Aug 18, 2026
updated
Public Lean library for formalizations related to prime gaps, maintained by Axiom Math.
This repository depends on an internal fork of PrimeNumberTheoremAnd (original here), changed to use the module system.
Formal versions of these statements can be found in the formal challenge described in §Comparator.
A formal challenge that is self-contained and only depends on Mathlib is located in Comparator.Challenge. It contains statement 1 of §Main Results with sorry as proof.
This repository can be verified against the formal challenge with the Lean comparator on a Linux machine. First, follow the instructions in https://github.com/leanprover/comparator to install comparator. Then, run the following command:
lake env comparator Comparator/comparator.json
Beware that this can take hours.
The proofs of statements 2 and 3 of §Main Results compile much faster, so we also included a formal challenge for them in Comparator.ChallengeFast. To verify this repository against this challenge file, run the following command:
lake env comparator Comparator/comparator_fast.json
This should only takes minutes.
Hacker News (1)
6 commits
1 commits
Lean
100.0%