AI Weekly Malaysia

Back to items Summaries

Yes, 17M lines of Lean is a lot

ID
49512
Status
summarized
Published
23 Nov 2026, 1:00 PM
Fetched
24 Nov 2026, 12:48 AM
Provider
Hacker News
Category
dev-community
Original URL
https://micjm.com/blog/yes-17m-lines-of-lean-is-a-lot/
Source URL
https://hnrss.org/best

Summary

Score
7.0
Created
24 Nov 2026, 12:48 AM
Tags
Audience
developersvibe_codersai_ml_learnersai_agent_users

What happened

A blog post tests whether the claimed 17 million lines of Lean behind a recent Riemann hypothesis proof is actually large, by charting Lean proof sizes across Mathlib and every Lean package indexed on Reservoir (938 with Lean code on GitHub). Mathlib's collection of famous theorems has over 1,000 entries but only 259 with Lean proofs, and the largest Reservoir packages are dominated by machine-generated code: CBirkbeck/LeanBridge at 36M lines is ~98% script-generated with a hand-written core closer to 500k, while anthropics/fermats-last-theorem at 27M lines was produced by AI agents and is roughly 450 times the size of the ~60k-line human FLT project led by Kevin Buzzard. The author's conclusion is simply: yes, 17M lines is a lot.

Why it matters

If you judge AI coding agents or proofs by lines of output, this data shows the number is mostly generated scaffolding — the 36M-line LeanBridge repo is ~98% script output and only ~500k hand-written, and the 27M-line Anthropic FLT proof sits next to a ~60k-line human project. Before citing a LOC or diff-size number as evidence of agent capability (or accepting one in a vendor claim), check how much is script-generated boilerplate versus reviewed code.

Discussion angle

What metric would you actually trust for AI-generated code volume, given that a 36M-line repo can contain ~500k hand-written lines — and does anyone in the group review or count agent output any other way?

Top