# Yes, 17M lines of Lean is a lot

- HackerByte page: <https://hackerbyte.net/en/stories/an-evaluation-of-the-size-of-a-17-million-line-codebase-written-in-the-lean-prog-50607668>
- Original source: <https://micjm.com/blog/yes-17m-lines-of-lean-is-a-lot/>
- Hacker News discussion: <https://news.ycombinator.com/item?id=50607668>
- Submitted to Hacker News: 2026-11-23T05:00:49.000Z

An evaluation of the size of a 17 million line codebase written in the Lean programming language.

## AI-generated summary

The recent proof of the Riemann hypothesis, reported to be 17 million lines of Lean code, prompted an investigation into the size of Lean proofs. While human\-generated proofs in Mathlib are significantly smaller, collections of Lean packages, particularly those incorporating AI assistance, can reach massive scales. Some AI\-assisted projects have exceeded 16 million lines, with one notably reaching 88 million lines.

## Key points

- The Riemann hypothesis proof is reportedly 17 million lines of Lean code.
- Human\-generated proofs in Mathlib are much smaller than 17 million lines.
- AI\-assisted Lean proof projects can reach extremely large sizes.
- Qiuzhen\-CFSG/CFSG is an AI\-built proof in progress with 88 million lines.
- CBirkbeck/LeanBridge, while large, is mostly script\-generated database checks.
