# Poster 29455

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/29455

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hi, everyone. I'm Adarsh Kumarup, and today I'll present our work Lean Agent, lifelong learning for formal theorem proving.
While all LMS have shown promise in formal theorem proving when integrated with proof assistance like Lean, existing approaches face significant limitations. Current methods train models on specific data sets which restricts their generalizability to advanced mathematics. These approaches operate on static domains failing to capture how mathematicians typically work across multiple domains simultaneously or cyclically. And data scarcity is another critical issue as the availability of formal proofs is limited, especially for advanced mathematics.
So, we present LeanAgent, a novel lifelong learning framework for formal theorem proving that continuously generalizes to and improves on expanding mathematical knowledge without forgetting previously learned information.
We need to have some key components. First, a curriculum learning strategy that optimizes the learning trajectory based on mathematical difficulty. Second, a progressive training strategy that carefully balances stability and plasticity. Third, a best-first tree search that searches for proofs of sorry theorems or theorems where formal proofs were previously missing. And fourth, a dynamic database to manage LeanAgent's evolving mathematical knowledge throughout this process. LeanAgent can work with any LLM, though our implementation uses retrieval.
for improved generalizability. Our curriculum learning approach orders repositories by mathematical complexity measured as e raised to the number of proof steps, which accounts for the combinatorial explosion of possible proof paths as the length of the proof increases. We compute the 33rd and 67th percentiles of the complexity across all theorems, categorizing them as easy, medium, or hard. Repositories with more easy theorems come first in our curriculum, creating an optimal learning trajectory.
The dynamic database tracks theorems, premises, and proof attempts, efficiently managing the evolving knowledge base. For each repository, our dynamic database generates data sets containing theorems, proofs, and a premise corpus. Each proof step contains detailed annotations showing how it changes the proof state, demonstrating how to use specific tactics and premises in sequence.
Progressive training involves incrementally training the retriever on new datasets for just one epoch, which helps balance preserving old knowledge while adapting to new information. This adds new premises to the embeddings and expands the space of possible proof states, allowing linear agents to discover proofs they couldn't produce with its original knowledge.
When proving sorry theorems, placeholders where formal proofs were missing, we made it retrieves relevant premises, adds them to the current state, and generates tactic candidates using beam search. Every successful tactic application adds an edge to the search tree, and we choose paths with maximum cumulative probability. New proofs are added to the database, becoming learning material for future training.
Lien agents successfully generated formal proofs for 155 theorems across 23 diverse lead repositories where formal proofs were previously missing. Importantly, Lien agents' proofs are a superset of those produced by reprove in most cases. Notably, Lien agents proved challenging theorems in domains of abstract algebra and algebraic topology. As shown in this figure, Lien agents proved theorems that reprove or cannot, for example, it proved Conroe of Transit from Terence Howe's PFR repository by expanding definitions while the proof or failed.
We observed a clear progression of learning complexity. In psilene, lean agents start by proving basic algebraic structures and gradually advances to complex theorems involving sophisticated function spaces. With mini f to f, while the prover handles elementary arithmetic and algebra, lean agent proves theorems in advanced number theory, abstract algebra, and complex induction proofs. The theorems shown here demonstrate its ability to handle complex proof structures and retrieve relevant premises.
Moreover, we may introduce theorems like Weierbrand's literal theorem in abstract algebra and components of the Harry-Bottle theorem in algebra topology, theorems that only a legit not reprover can prove.
We conducted an extensive analysis using six lifelong learning metrics and we find that LeanAgent has a windowed forgetting metric that is 75% lower than the next best setup, demonstrating the superior stability, and its backwards transfer score is 16% higher, indicating that learning new mathematical concepts actually improves performance on previously learned theorems. This explains why LeanAgent can both retain foundational mathematical knowledge and adapt to new advanced concepts, a crucial capability that allows it to prove theorems across dramatically different domains of math.
mathematics. In conclusion, Leaning Agent represents a significant advancement in the formal theory improving with AI. We've developed a lifelong learning framework that continuously generalizes to and improves upon expanding mathematical knowledge without catastrophic forgetting.
Curriculum learning based on theorem complexity, progressive training that balances stability and plasticity, and a dynamic database for managing evolving knowledge enable lean agents to prove 155 theorems with best first tree search, performing proofs for previously missing across 23 diverse repositories. We agent demonstrates how a system can progressively learn mathematics in a way that mirrors human learning, starting with basic concepts and building towards advanced domains like abstract algebra and algebraic topology. Our code is available at the GitHub repository on this slide.
Bye. Thank you for your attention.
