What A Time To Be Alive
Choose language: English

Glossary

Lean

Lean is a programming language and helper program for mathematical proofs. Every definition and every step is written down so precisely that the computer can check whether the proof is correct.

Lean is a programming language in which you write down mathematics so precisely that a computer can check every step. Such a program is called a proof assistant. You write down a theorem and a proof, and Lean checks whether the proof really establishes the theorem, without guessing and without skipping anything.

It is comparable to a teacher who goes through a worked solution line by line and rejects the whole proof as soon as a single step is wrong.

How does it work?

In Lean, definitions, theorems and proofs are written as code. The core of Lean is small and is widely trusted. Everything built on top of it does not need to be trusted separately: Lean checks it. A proof that Lean accepts is therefore correct for what has been written down. It remains important, though, that the definitions in Lean say exactly the same as the mathematics that is meant.

Writing it down takes a lot of time, because you have to spell out every step. AI can help with that. The AI comes up with something and writes it out, and Lean checks it. This checking with mathematical certainty is called formal verification.

Why it matters

Lean is in the news because AI produces mathematics on a scale that no human can check. The company Axiom Math had dozens of AI agents spend 24 days converting the roughly 15,000-page proof of the classification of finite simple groups into Lean code (link). Along the way they found deviations in the published work, which have been repaired.

For new results, too, such a computer check is valuable. OpenAI says its internal AI models have solved three long-open problems in mathematics, computer science and physics, and part of the proofs has already been checked by a verification program (link). Shortly afterwards Anthropic reported that an internal Claude model had itself found a faster way to solve a famous computational puzzle, with a proof that a computer had already checked (link). That way mathematicians do not have to recompute everything themselves to know that it is right.

Articles about Lean