VERITAS: Verifier-Guided Proof Search for Zero-Shot Formal Theorem Proving
The paper introduces VERITAS, a zero-shot framework that enhances formal theorem proving by routing rich verifier signals back into the search process via a two-phase Best-of-N and critic-guided MCTS protocol, achieving state-of-the-art performance on benchmarks like miniF2F and a new combinatorics dataset.
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 solve a very difficult puzzle, like a complex math problem, but you are doing it with a team of AI assistants. Usually, when these AI assistants try to solve a problem, they guess a solution, check if it works, and if it fails, they just get a simple "No, try again" signal. They throw away all the details about why it failed.
VERITAS is a new system that changes the game. Instead of just saying "No," it listens to the specific reasons the proof failed and uses those reasons to guide the next guess. Think of it as a detective who doesn't just say "The suspect is innocent," but says, "The suspect is innocent because they were at the store at 5 PM, so let's look for someone else who was at the store."
Here is how VERITAS works, broken down into simple parts:
1. The Team of Four Specialists
VERITAS doesn't rely on just one AI brain. It uses a team of four specialized "agents" that talk to each other:
- The Strategist: Before trying to solve the problem, this agent decides on a high-level plan (e.g., "Let's try to break this down by cases" or "Let's try to prove it by contradiction"). It narrows the search so the team doesn't waste time on bad ideas.
- The Retriever: This agent is like a librarian. It quickly finds the right reference books (math rules and lemmas) that might help solve the current step.
- The Tactician: This is the main worker. It tries to write the actual steps of the proof. Crucially, it looks at a list of failed attempts from earlier. If a previous attempt failed because it used the wrong name for a rule, the Tactician is told, "Don't use that name again; here is the error message."
- The Critic: This agent acts like a coach. It watches the progress and says, "You're getting closer," or "You're going down a dead end," based on the specific feedback from the computer checking the math.
2. The Two-Phase Game Plan
The system plays the game in two distinct rounds to be efficient:
- Phase 1: The "Quick Sweep" (Best-of-N)
The team makes 5 quick, independent guesses at the solution. If one of them works, great! They stop immediately. This is fast and handles the "easy" problems. - Phase 2: The "Deep Dive" (Critic-Guided Search)
If the quick sweep fails, the system switches to a more careful mode. It takes all the mistakes from Phase 1 and feeds them back into the Tactician as "negative examples."- Analogy: Imagine you are trying to open a locked door. In Phase 1, you try 5 different keys quickly. None work. In Phase 2, instead of just trying random keys, you look at the 5 keys that jammed the lock, note exactly how they jammed, and use that information to craft a new key that fits the specific shape of the lock.
3. Why This Matters: The "Combinatorics" Problem
The paper tested this on two types of math problems.
- Standard Math Problems: VERITAS solved more of these than previous methods (40.6% vs 36.9%).
- Combinatorics (Counting Problems): This is where VERITAS really shined. In these problems, you often need to use very specific, exact names for math rules.
- The Problem: Standard AI guessing often "hallucinates" (makes up) names for rules that don't exist. If an AI guesses a fake rule name, a standard system just says "Fail" and moves on.
- The VERITAS Fix: Because VERITAS reads the specific error message ("Unknown constant 'X'"), it learns in real-time that "X" doesn't exist. It iteratively corrects the name until it finds the real one.
- Result: On these hard counting problems, standard guessing actually got worse the more it tried (because it kept making up fake names). VERITAS got better because it learned from its mistakes.
4. The "Monotonicity" Guarantee
The authors made sure that VERITAS never loses a solution it already found.
- The Guarantee: If the "Quick Sweep" (Phase 1) solves a problem, VERITAS keeps that solution and doesn't touch it. The "Deep Dive" (Phase 2) only works on the problems the first phase couldn't solve.
- Why it matters: This proves that any extra success VERITAS achieves comes specifically from the smart, feedback-driven search, not just from trying more random guesses.
5. The "Batch" Trick
One of the clever engineering tricks in the paper is how they check the answers.
- Old Way: Check one guess, wait for the computer to say "No," check the next guess, wait, check the next... This is slow.
- VERITAS Way: They pack 6 guesses into a single file and ask the computer to check them all at once. This makes the system about 10 to 20 times faster, saving a lot of time and money.
Summary
VERITAS is a system that treats the computer's error messages not as a "stop sign," but as a map. By reading the specific reasons why a proof failed (syntax errors, wrong types, missing steps) and feeding that information back into the AI's next attempt, it can solve difficult math problems that other systems give up on. It combines a fast "try-and-see" approach with a smart "learn-from-failure" approach to get the best results.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.