Hermes Vector

Science

Nature publishes guide to Lean software for verifying AI maths proofs

Nature explains Lean, a proof assistant and programming language used to verify mathematical proofs, including AI-written proofs of difficult problems.

By Hermes Vector

Also in: Español · Português · Français · Deutsch · हिन्दी

Checked against 1 sourceNature
Illustration for: Nature publishes guide to Lean software for verifying AI maths proofs

In brief

  • Lean is a proof assistant and programming language that formally verifies mathematical proofs.
  • Mathlib, created in 2017, contains more than two million lines of Lean code.
  • Leonardo de Moura created Lean and works at Amazon Web Services in Redmond, Washington.
  • Kevin Buzzard says Lean code needs extra verification steps because the software is vulnerable to bugs and glitches.

Artificial-intelligence tools are speeding up the rate at which mathematicians solve problems, but the resulting proofs are often too massive for humans to verify. Nature has published a guide to Lean, a proof assistant and programming language that formally verifies mathematical proofs.

What Lean is

Lean is a proof assistant and programming language that can formally verify mathematical proofs. When mathematicians write statements and proofs in Lean, the system checks that every step is logically sound according to the rules of mathematical systems.

Before Lean, mathematicians verified each other’s proofs manually by reading papers and references and rebuilding each step of the arguments in their own heads. This process could take years for complex problems, but Lean can verify massive proofs in hours.

How Lean is used

Many mathematical building blocks have been translated into Lean and added to Mathlib, an open-source, community-maintained library of Lean statements. Mathlib was created in 2017 and now contains more than two million lines of Lean code, thanks to a team composed primarily of volunteers who have reviewed and approved every submission.

Researchers can use Lean to build proofs on top of mathematics that has already been formalized.

Who is involved

Leonardo de Moura, a computer scientist at Amazon Web Services in Redmond, Washington, created the Lean system. “None of us could have predicted, at the beginning, what would happen” with Lean, de Moura says.

Emily Riehl, a mathematician at Johns Hopkins University in Baltimore, Maryland, and a member of the Mathlib Initiative, which oversees a digital library of Lean statements, says Lean’s stamp of approval was enough for the community to trust a result.

Kevin Buzzard, a mathematician at Imperial College London who helps to maintain Mathlib, says Lean is still vulnerable to bugs and glitches that could produce imperfect proofs. Therefore, Lean code needs to go through several extra verification steps before a proof is declared true.

Why it matters

AI-written proofs can be so large that humans cannot assess them with confidence. Lean provides machine verification, which mathematicians have come to depend on to check proofs of difficult problems. The software’s reviewers have received “very little academic recognition,” according to Buzzard.


Sources

This article was drafted with AI assistance and checked against the sources above. Company claims are reported as claims. Cover image is AI-generated.

Questions readers ask

What is Lean and what does it do?
Lean is a proof assistant and programming language that formally verifies mathematical proofs by checking that every step is logically sound according to the rules of mathematical systems.
Who created the Lean system?
Leonardo de Moura, a computer scientist at Amazon Web Services in Redmond, Washington, created the Lean system.
What is Mathlib and when was it created?
Mathlib is an open-source, community-maintained library of Lean statements created in 2017 that now contains more than two million lines of Lean code.
Why is Lean important for verifying AI-generated proofs?
AI-written proofs can be so large that humans cannot assess them with confidence, so Lean provides machine verification that mathematicians depend on to check proofs of difficult problems.
Are there risks associated with using Lean for proof verification?
Kevin Buzzard states that Lean is still vulnerable to bugs and glitches that could produce imperfect proofs, so the code needs to go through several extra verification steps before a proof is declared true.

The day's checked news, by email

One short email a day with the top stories. Free, and you can unsubscribe in one click.

Or follow for the latest news:

Advertisement

How do you feel about this story?

Comments 0

No comments yet. Start the discussion.