An Initiative by SAARTHI IAS
Science & Tech

How AI Proves Theorems: LLMs and Lean

Artificial Intelligence, Formal Verification, Mathematics Experts Explain column by Aalok Thakkar and Subhashis Banerjee, The Indian Express, 30 November 2026
Share:
How AI Proves Theorems: LLMs and Lean - MaargX UPSC Current Affairs

Why in News?

  • The Explained section on 30 November 2026 described how artificial intelligence systems are now producing machine checked proofs of difficult mathematical problems.
  • The authors noted recent announcements, including a claimed proof relating to the Navier-Stokes equations in September and a claimed proof of the Riemann Hypothesis announced last week.
  • Each was checked with a proof assistant called Lean, while human review was still in progress.

Key Terminologies

Large Language Models
Systems such as those behind popular chatbots, made of mathematical functions with billions of adjustable numbers that learn to predict the next word fragment.
Proof Assistant
Software in which statements and proofs are written step by step and checked against the rules of logic.
Reinforcement Learning
A training method in which a system tries a task repeatedly and is improved according to rewards for success.
Mathlib
A shared library of formalised mathematics in Lean, with nearly 300,000 theorems built by more than 700 contributors.
Millennium Prize Problems
A set of major unsolved problems for which the Clay Mathematics Institute announced prizes in 2000.
Formal Verification
The use of logic and software to prove that a statement, program or design satisfies a precise specification.

Key Issues

  • Learning from Reading: In pre-training a model reads vast quantities of text, code and papers. Because published proofs follow step by step, it picks up patterns of inference, though it is trained to sound coherent and not to be correct.
  • Hallucination: A fluent argument can hide a fatal gap, and a model may write that something is proved whether or not the mathematics is right.
  • Independent Checker: Lean has a small core program that accepts a proof only if every step follows logically. It is not artificial intelligence and returns the same verdict on the same proof.
  • Learning from Practice: The model attempts problems many times, the checker marks success or failure, and successful reasoning is reinforced, a loop called reinforcement learning with verifiable rewards.
  • Blind Spot: Lean certifies only the statement as written. If the formal statement does not capture the intended theorem, a valid certificate proves the wrong thing, so humans must examine it.
  • Scale: A formal statement can run to a few lines while its machine proof runs to millions of lines, far beyond easy human reading.
  • Why Mathematics First: Nearly every line of a published proof follows from the lines before it, and logic offers a test that is hard to fool, which makes theorem proving a natural field for this kind of training.
  • Open Review: The authors noted that mathematicians reviewing one of the recent proofs said it had so far taught them little, showing the gap between checking and understanding.

Key Implications

Positive/Pros/Merits

  • Reliable Checking: Mechanical verification allows thousands of candidate proofs to be tested quickly.
  • Research Aid: Mathematicians may explore difficult paths and detect errors earlier.
  • Safer Design: The same formal methods can help verify software, chips and critical systems.
  • Shared Knowledge: Open libraries let new proofs build on earlier verified results.
  • Educational Value: Step by step formalisation can sharpen understanding of logic and rigour.

Negative/Cons/Demerits

  • Limited Insight: A verified proof may be correct yet teach people little about why it works.
  • Weak Checkers: Where success cannot be tested precisely, a model may learn to please the evaluator without doing the task well.
  • Wrong Target: An inaccurate formal statement can create false confidence.
  • Resource Cost: Training and searching at scale need heavy computing power.
  • Hype Risk: Announcements may be repeated as settled before expert review is complete.

Director's Perspective

Way Forward

  • Treat new claims as provisional until experts have reviewed both the statement and the method.
  • Invest in formal methods and mathematics training alongside computing infrastructure.
  • Support open and well maintained libraries so that results can be examined by anyone.
  • Demand independent evaluation when artificial intelligence is used in medicine, law or public services.
  • Teach students to combine machine verification with human explanation and judgement.
Key Takeaway

The lesson goes beyond mathematics: artificial intelligence becomes more trustworthy where a hard to fool checker exists. In a Mains answer, explain the model, the proof assistant and the feedback loop, state both caveats, and conclude that verification and human understanding are both needed. Avoid presenting any recent claims as fully settled results.

GS Relevance

GS Paper 3: Developments in science and technology and their applications, awareness in computers and artificial intelligence.

Frequently Asked Questions

How can an AI that makes mistakes prove a theorem?

The model generates many candidate arguments, and a separate proof assistant checks each step by logic. Wrong attempts are rejected, and successful ones are used to train the model further, so errors do not pass simply because they sound convincing.

What is Lean?

Lean is a programming language and proof assistant in which mathematics is written formally. Its core checker accepts a proof only when every step is valid, and it involves no learning or probability.

Does a Lean certificate settle a problem completely?

It confirms that the proof matches the formal statement. Experts must still check that the statement expresses the intended theorem and review the wider work, which is why human scrutiny remains essential.

Why does this matter outside mathematics?

It shows that trial and error learning is only as good as the checker. Fields such as medicine and public services have weaker automatic tests, so independent evaluation is important there.

What is formal verification used for besides mathematics?

It is used to check that software, hardware designs, communication protocols and safety critical systems behave as specified. The approach reduces hidden errors, although it still depends on writing the correct specification in the first place.

PYQ Practice — Statement Analysis

1 Large language models are trained mainly to predict the next token.
True

This is the basis of pre-training.

2 Lean relies on probability to accept a proof.
False

It checks logical validity deterministically.

3 Reinforcement learning uses feedback on success or failure.
True

Rewards shape the model.

4 A verified proof always gives human understanding.
False

It may be correct but hard to understand.

5 Mathlib is a library of formalised mathematics.
True

Many contributors maintain it.

6 Formal verification checks a system against a precise specification.
True

The specification itself must be right.

Share: