How does AI prove theorems? Experts explain the role of Lean, reinforcement learning
The past three months have witnessed astonishing advancements in mathematics. In September, OpenAI unveiled a proof that a fluid starting at rest and thrust by a smooth force can achieve infinite speed within a finite time. This resolution to the Navier–Stokes equations, a Millennium Prize Problem open since 1934, marks a significant milestone.
In October, OpenAI and Anthropic independently unveiled algorithms that decide propositional satisfiability in less than exponential time, effectively disproving the Exponential Time Hypothesis, a conjecture upon which over 800 papers are based. Last week, Levent Alpöge from Anthropic announced a proof of the Riemann Hypothesis, a centuries-old conjecture concerning prime numbers, also a Millennium Prize Problem.
Each proof underwent verification using the Lean proof assistant. Ongoing scrutiny by human experts ensures the accuracy of these groundbreaking findings.
So, how can AI tools, known for their propensity for hallucinations and errors, solve problems that have eluded even the most brilliant mathematicians for decades? The answer lies in three cutting-edge technologies: large language models pre-trained on human writing, proof assistants that meticulously validate every step, and reinforcement learning, which refines the model through trial and error using a trustworthy checker.
As we delve into the mechanics underpinning ChatGPT, Claude, and Gemini, we find that these systems are essentially large language models (LLMs) comprised of billions of adjustable parameters. During their initial training phase, known as pre-training, these models absorb vast quantities of text, predicting the subsequent token with each new input. This mechanism, underpinned by attention, is pivotal to the functionality of LLMs.
Mathematics, as a language, boasts its own vocabulary, grammar, and structure. LLMs adeptly learn and reproduce these linguistic elements, enabling them to generate proofs akin to their training data. However, the inherent ambiguity of mathematical writing cannot be overlooked. A seemingly logical sequence of steps may conceal a critical flaw.
This underscores the importance of human review, even as the AI performs the heavy lifting. Each proof is a testament to the AI's potential, but the final validation remains a human endeavor.
Enter Lean, a proof assistant that wields immense power in validating AI-generated mathematics. Lean operates as a programming language, meticulously scrutinizing each step in a mathematical proof while remaining oblivious to the AI's creative process. By leveraging Mathlib, a repository of nearly 300,000 theorems authored by over 700 contributors, Lean can rapidly and reliably validate candidate proofs.
Its strength lies in its speed, reliability, and the clarity it provides in pinpointing errors. However, Lean's functionality is limited to checking the proof as it is written, leaving room for potential misinterpretation if the formal statement fails to encapsulate the intended theorem.
The final piece in this intricate puzzle is practice. The AI model iteratively attempts problems, Lean rigorously evaluates each attempt, and feedback loops guide the AI towards successful reasoning patterns. Despite the stringent requirements of Lean, this approach remains coarse-grained, as even one misplaced step can invalidate an entire proof. Nevertheless, over millions of iterations, sound reasoning tends to prevail, reinforcing the model's ability to mimic logical thought processes.
Rewritten by urgent.news; may contain errors — check the original.
Source: indianexpress.com