Lean is a computer program that checks math proofs one step at a time, and refuses to move on until each step actually holds up. You can’t wave your hands at it. You can’t write “and so it obviously follows.” If a step is missing, Lean just says no.
For a long time that made it a niche tool for a small group of mathematicians. But it’s turning into the way we find out whether an AI’s math is real or just confident.
What it means
Lean is a proof assistant (software that checks mathematical arguments). You write a proof as code, and Lean verifies every line against the rules of logic and a big shared library of math called Mathlib. If the code runs without errors, the proof holds, at least for the exact statement you wrote down.
That last bit matters more than it sounds. Lean checks that you proved what you said you proved. A person still has to make sure you said the right thing in the first place.
Why it matters
On November 20, Anthropic mathematician Levent Alpöge released what he and Claude say is a proof of the Riemann hypothesis, one of the most famous unsolved problems in math. It came as a Lean library about 17 million lines long.
On November 21, the Lean FRO and the Mathlib Initiative (the groups behind Lean and its math library) said they had “full confidence” the proof is correct and matches Mathlib’s standard statement of the hypothesis. They checked it with Lean itself plus several independent checking tools.
Nobody has read 17 million lines by hand. Mathematicians still have to work out what the new ideas in the proof actually are, and the Lean groups said they’re looking forward to that explanation. So the machine check is done. The human understanding is (honestly) still catching up.
Simple example
A building inspector walks through a new house with a clipboard. She doesn’t care how nice the kitchen looks or how confident the contractor sounds. She checks the wiring and the framing against the building code, one item at a time. If something’s off, the house fails. If everything passes, she signs.
Lean is that inspector, for math. It’s strict, it’s boring, and it doesn’t get tired at item 4,000.
What she can’t tell you is why the architect put the staircase where it is, or whether that was a clever idea. Somebody still has to walk you through the house.

