Practice

How AI proves theorems: LLMs, a software that checks proof - and practice

The Indian Express

Why in News

Artificial Intelligence (AI)-generated proof attempts for two Millennium Prize Problems have been verified using the proof assistant Lean.

Prelims Pointers

  • AI, Machine Learning and Deep Learning:

  1. Machine Learning (ML) is a part of AI where computers learn patterns from data.

  2. Deep learning is a subset of machine learning that uses many-layered neural networks.

  • Large Language Models (LLMs):

  1. LLMs are neural networks trained on huge amounts of text broken into small pieces called tokens.

  2. They use the attention mechanism to weigh which earlier words matter most.

  3. LLMs assign probabilities to possible next words and pick a likely one.

  4. They are trained by mathematical optimisation to reduce prediction errors.

  5. LLMs aim for text that reads well, not for logical truth, so their proofs can hide errors.

  6. LLM outputs can carry bias from their training data.

  • Lean Proof Assistant:

  1. Lean is a programming language that checks mathematical proofs.

  2. It is deterministic, so it always gives the same verdict for the same proof.

  3. Its core part, the kernel, checks every step against formal rules of logic.

  4. Lean proofs draw on Mathlib, an open-source library of formalised mathematics.

Prelims Traps

  • "Large Language Models produce unbiased outputs." This is incorrect because LLMs can carry bias from the data they are trained on. (UPSC Prelims 2026)

  • "Machine learning is a subset of deep learning." This is incorrect because deep learning is a subset of machine learning. (UPSC Prelims 2025)

  • "Lean is a probabilistic AI model that can give different verdicts on the same proof." This is incorrect because Lean is deterministic and always gives the same verdict for the same proof.

  • "Since LLMs are trained on mathematical texts, the proofs they write are always logically correct." This is incorrect because LLMs aim for text that reads well, not for logical truth, so their proofs can hide errors.

How much can you remember?

Practice