← Back to updates

Nature Portfolio · Nature Computational Science

Formal proof search enables reliable AI-driven mathematical discovery

Summary

Although large language models (LLMs) have shown increasing capability in solving complex mathematical problems, the unreliability of LLM-generated proofs not only constrains their integration into mathematics research but also requires expensive expert review. Given that this unreliability derives from subtle logical errors (‘hallucinations’) in intermediate steps propagating through a proof, LLM-generation of formal proofs in languages such as Lean — in which a complier verifies every logical step — has become a prominent strategy applied to competition-style tasks. Here, Tsoukalas et al. extend this approach by building an agent that autonomously executes LLM-driven, Lean-verified formal proof search and that is capable of solving complex problems that were open for over 50 years. The authors developed AlphaProof Nexus, a formal proof search framework in which a set of independent ‘prover’ subagents executes a generation–validation pipeline. Prover subagents first receive as input a proof ‘sketch’ encoded in Lean consisting of a target theorem with a proof goal placeholder (‘sorry’), associated material on which the theorem depends, and user-marked annotations delineating where proof modifications can occur. Each prover then executes episodes of multi-turn LLM inference loops in which chain-of-thought reasoning and search-and-replace refine the sketch. Next, Lean either verifies compilation of the generated sketch (a ‘sorry-free’ state with no pending proof goals) or generates compiler error messages that iteratively steer refinement in the next turn. When an episode ends with missing proof goals (contains ‘sorry’), the prover summarizes lessons learned and the resulting modified sketch is used as the next episode’s input. The authors extended this basic generation–validation pipeline design in the full-featured version of AlphaProof Nexus in two ways. They added an option during search-and-replace to call AlphaProof (a tool for Olympiad-level Lean theorem-proving based on reinforcement learning) to complete missing goals of evolving sketches and an evolutionary agent that coordinates prior sketch refinement via a shared population database and rating mechanism that conditions a new episode’s input. This is a preview of subscription content, access via your institution Access options Access Nature and 54 other Nature Portfolio journals Get Nature+, our b…

Evidence & checks

Discovery channel
Nature Portfolio · Nature Computational Science
Original material
www.nature.com
Material type
Source page; material type not verified
Material basis
Source excerpt
Review status
No human-review record