This is a formal Lean proof of the Riemann Hypothesis for hyperelliptic curves over finite fields. We follow the argument laid out in Chapter 11 of Iwaniec-Kowalski's classic text Analytic Number Theory, based on the Bombieri-Stepanov polynomial method.
Given a polynomial
The final Lean output is in RiemannHypothesisHEC.lean. The human-supplied blueprint is in content.tex.
All statements, proofs, and documentation were created by Gauss, Math Inc's frontier autoformalization agent.
- Scope: ≈4000 lines of Lean.
- Workflow: AI-generated formalization from a LaTeX blueprint with human scaffolding.
- Result: a complete Lean theorem establishing the Riemann Hypothesis for hyperelliptic curves over finite fields.
- Math Inc.: https://www.math.inc/
- Gauss (autoformalization agent): https://www.math.inc/gauss
RiemannHypothesisCurves/– main Lean development of the proof.RiemannHypothesisCurves.lean– top-level Lean entry point.blueprint/– LaTeX blueprint, including the dependency graph and web/PDF build assets.home_page/– Jekyll-based landing page used for the project website.
You will need:
lake exe cache get && lake builduvx leanblueprint pdfuvx leanblueprint web
uvx leanblueprint serveThe generated site is served locally; by default the blueprint index is at
http://localhost:8000/.
This repository is part of Math Inc.'s broader effort to apply AI-assisted formal verification to fundamental problems in mathematics. Faster, lower-friction formalization can make complex mathematical results easier to verify, extend, and trust.
For questions or collaborations, please reach out via https://www.math.inc/.
- Iwaniec, H., Kowalski, E., Analytic Number Theory, American Mathematical Society Colloquium Publications, vol. 53, 2004. https://www.ams.org/books/coll/053/
