DreamProver: Evolving Transferable Lemma Libraries via a Wake-Sleep Theorem-Proving Agent
DreamProver is an agentic framework that employs a "wake-sleep" program induction paradigm to iteratively evolve a compact, transferable library of reusable lemmas, thereby significantly improving proof success rates, conciseness, and computational efficiency in formal theorem proving.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are trying to teach a brilliant but forgetful student how to solve complex math problems. This student (the AI) is incredibly smart but tends to reinvent the wheel every single time they face a new puzzle. If they solve a problem using a specific trick, they often forget that trick when they see a similar problem later.
DreamProver is a new system designed to fix this. It acts like a master teacher who doesn't just solve problems for the student but also helps them build a personal, evolving library of "cheat sheets" (lemmas) that they can reuse forever.
Here is how it works, using a simple Wake-Sleep analogy:
1. The Wake Stage: "The Grind"
Think of this as the student's study session.
- The system is given a bunch of math problems to solve.
- It tries to solve them using the "cheat sheets" it currently has in its library.
- If it gets stuck, it breaks the big problem down into smaller, easier sub-problems.
- The Key Moment: When it solves a sub-problem, it doesn't just throw it away. It saves that solution as a new potential "cheat sheet." It's like the student realizing, "Hey, I just figured out how to untangle this specific knot; I should write that down so I don't have to figure it out again."
2. The Sleep Stage: "The Cleanup"
Think of this as the student's dreaming and organizing time.
- The system takes all those new "cheat sheets" it collected during the day and puts them in a pile.
- Sorting: It looks for duplicates. If it found the same trick five times, it keeps just one.
- Generalizing: It looks at similar tricks and asks, "Can I combine these into one super-trick that works for many situations?" For example, instead of remembering how to untangle a red knot and a blue knot separately, it learns a general rule for "untangling any knot."
- Pruning: It throws away the cheat sheets that are too specific, too messy, or that it never used. It keeps the library small, clean, and powerful.
The Result: A Smarter, Faster Solver
By repeating this Wake (try and collect) and Sleep (organize and refine) cycle, DreamProver builds a compact library of high-level, reusable rules.
Why is this a big deal?
- It stops reinventing the wheel: Instead of starting from scratch for every new problem, it pulls from its growing library of proven tricks.
- It works on things it hasn't seen before: Because the library contains general rules (like "how to untangle any knot") rather than specific answers, the system can solve brand-new problems it has never encountered.
- It's efficient: The paper shows that this method solves significantly more math problems (up to 61% more in some tests) while using less computer power and writing shorter, cleaner proofs.
The Analogy in a Nutshell
Imagine a carpenter who, instead of carrying a massive, disorganized toolbox full of every single nail and screw they've ever used, learns to craft a few perfect, multi-purpose tools.
- Old way: Every time they need to build a chair, they search through a mountain of junk to find the right nail.
- DreamProver way: They build a small, perfect set of tools (the lemma library). When they face a new project, they know exactly which tool to grab, making them faster, more accurate, and capable of building things they've never built before.
The paper claims that by mimicking this human-like process of learning, organizing, and forgetting, AI can become much better at formal mathematics without needing to be retrained from scratch every time.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.