DreamProver: Evolving Transferable Lemma Libraries via a Wake-Sleep Theorem-Proving Agent

arXiv cs.AI / 4/30/2026

📰 NewsModels & Research

Key Points

  • DreamProver is a new agentic theorem-proving framework that uses a wake-sleep program induction approach to build reusable lemma libraries for formal proof systems.
  • It iteratively improves adaptability by proposing new candidate lemmas during a “wake” stage and then abstracting, refining, and compressing them during a “sleep” stage to form a more optimized library.
  • The framework targets a key limitation of prior methods: fixed lemma libraries that don’t generalize well, and highly theorem-specific intermediate lemmas that lack transferability.
  • Experiments on multiple mathematical benchmarks show higher proof success rates, more concise proofs, and lower computational cost when using the evolved lemma libraries on unseen theorems in related domains.

Abstract

We introduce DreamProver, an agentic framework that leverages a "wake-sleep" program induction paradigm to discover reusable lemmas for formal theorem proving. Existing approaches either rely on fixed lemma libraries, which limit adaptability, or synthesize highly specific intermediate lemmas tailored to individual theorems, thereby lacking generality. DreamProver addresses this gap through an iterative two-stage process. In the wake stage, DreamProver attempts to prove theorems from a training set using the current lemma library while proposing new candidate lemmas. In the "sleep" stage, it abstracts, refines, and consolidates these candidates to compress and optimize the library. Through this alternating cycle, DreamProver progressively evolves a compact set of high-level, transferable lemmas that can be effectively used to prove unseen theorems in related domains. Experimental results demonstrate that DreamProver substantially improves proof success rates across a diverse set of mathematical benchmarks, while also producing more concise proofs and reducing computational cost.

DreamProver: Evolving Transferable Lemma Libraries via a Wake-Sleep Theorem-Proving Agent | AI Navigate