TRANSMISSION // 2606.19399v2

VERITAS Turns Lean’s Errors Into Clues for AI Proof Search

Source published

On miniF2F, VERITAS outperformed several reimplemented feedback methods. On CombiBench, it solved more problems than five-attempt sampling.

AI-generated conceptual illustration for VERITAS Turns Lean’s Errors Into Clues for AI Proof Search
AI-generated conceptual illustration; not documentary evidence.

When an AI-generated proof fails, a proof assistant often explains where it went wrong. VERITAS uses those explanations—not just a pass-or-fail result—to guide another search. In tests reported by its authors, the approach solved more miniF2F problems than several reimplemented feedback methods, though the results come from a limited set of benchmarks and model runs.

Formal theorem proving asks an AI system to produce a proof in a precise language that software can check. In Lean, a candidate is not accepted simply because it sounds convincing: the proof assistant checks whether its steps establish the stated theorem. But a failed attempt can still contain useful information. Lean may identify the line that broke, describe a type mismatch, or show a remaining goal after checking earlier steps.

The authors of VERITAS ask whether proof search can make better use of that information. Their system treats Lean not only as a final gate, but as a source of clues for what to try next.

From whole proofs to checked fragments

VERITAS works in two phases. First, a language model generates five complete proof attempts, which Lean checks together. If none succeeds, the system starts a second phase: a search through partial proofs that Lean has already verified.

When Lean reports an error partway through a proof, VERITAS can keep the accepted steps before the error and use the goal Lean reports at that point as a new starting point. It also passes the failed line and error message to the model, so a new attempt can avoid repeating the same mistake. A separate repair step tries a fixed set of automated tactics at the failing point. The system also retrieves relevant lemmas from Mathlib, Lean’s mathematics library, and uses a “Critic” model to rank partial proof states and decide how much search effort to spend on a theorem.

The key idea is that a rejected proof need not be discarded wholesale. Its verified beginning may be reusable, and its error may suggest what needs changing. The authors call the method zero-shot because they use general-purpose models without training or fine-tuning them for this system.

Results on two benchmarks

On the miniF2F test set of 244 formalized mathematics problems, VERITAS solved 86.9% with Claude Haiku 5.5 and 82.8% with GPT-6 Luna. The initial five-attempt sampling phase solved 71.7% and 61.1%, respectively. The added search phase found 37 and 53 further proofs.

The paper also compares VERITAS with three feedback approaches reimplemented by the authors in the same setup: COPRA-style step-by-step search, Reflexion-style summaries of failures, and a DSP+-style approach using sketches and automated tactics. VERITAS solved more problems than these reimplementations with both models, while its search-phase API costs were reported as lower. These are controlled comparisons within the authors’ shared setup—not direct tests against the original systems under their own configurations.

The authors also tested 55 theorem-proving problems from CombiBench with Claude Haiku 5.5. Five-attempt sampling solved 10; VERITAS solved 17. This is a smaller, single-model evaluation. The paper reports that most of VERITAS’s solved problems came from textbook exercises; it does not report a comparison on this benchmark with the other feedback methods.

The paper’s analysis suggests that feedback can salvage attempts that were close to working. Some proofs were completed by automated repair before a new model call; others continued from partial steps that Lean had accepted. Removing error messages from the model’s input reduced the number solved by four or five on miniF2F, depending on the model. These results support the value of detailed feedback in this system, but do not establish that the same design will help every prover or benchmark.

What the evidence does—and does not—show

The miniF2F test comparison used one run per method, with retries for cases that hit a time limit. The authors report additional VERITAS runs, but results still vary across runs. In particular, the three-problem lead over the COPRA-style reimplementation with Claude Haiku 5.5 was described as within noise. Their statistical intervals measure variation across benchmark problems, not all run-to-run uncertainty.

The study covers two proprietary models and a narrow set of formal mathematics tasks. The authors note that some miniF2F statements are false or trivial as formalized, and that their evaluation required more computation than sampling alone: problems entering the second phase took several minutes on average. The Critic’s decision to limit search may also leave some solvable problems unexplored. VERITAS does not solve every theorem, and the paper identifies longer chains of intermediate reasoning as a challenge for future work.

The reported successes were checked by Lean 4 against a pinned version of Mathlib, making the accepted proofs machine-checkable in that environment. That is a strong check on whether a proof establishes its formal statement; it does not show that every formal statement captures the intended informal mathematics.

This article is based on an arXiv preprint, which may not have undergone peer review. The paper reports that code and run logs are available, but those materials and the results have not been independently verified here. The findings are best read as evidence that detailed verifier feedback can help in this particular setup—not as a general measure of AI mathematical ability.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • VeriLogic trains AI with checkable proof paths

    Shared method: Both use proof-assistant feedback during inference to revise unsuccessful proof attempts: VERITAS feeds Lean errors and partial goals into proof search, while VeriLogic uses Lean4 errors and proof states to repair proofs on Positive and Negative paths. The shared method is feedback-guided repair; VeriLogic additionally trains on structured reasoning traces and evaluates natural-language truth-value prediction, so their reported outcomes are not directly comparable.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2606.19399v2 — Original paper

      Excerpt reference: static/papers/2606.19399v2.md:90-188
      Basis: Paper text
      Source SHA-256: eb772593686ad591531d520abf95fccbe3e54110eb44b2d7c2a9252a10ace553

    • 2611.29147v1 — Original paper

      Excerpt reference: static/papers/2611.29147v1.md:778-907
      Basis: Paper text
      Source SHA-256: 3c98a2bb13f4d50c91f27970a61227c642b9d07a6b3bd0feff2248be17fdecca

  • An AI agent tries to formalize a topology textbook, one checked proof at a time

    Shared method: Both incorporate proof-assistant feedback into iterative proof construction: VERITAS searches from verified partial proofs and Lean errors, while Megrez uses short tactic bursts, inspects Rocq states or errors, and revises failed strategies. Their systems differ in proof assistant, task scope, and additional mechanisms; the excerpts do not support comparing their performance.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2606.19399v2 — Original paper

      Excerpt reference: static/papers/2606.19399v2.md:90-188
      Basis: Paper text
      Source SHA-256: eb772593686ad591531d520abf95fccbe3e54110eb44b2d7c2a9252a10ace553

    • 2611.13613v1 — Original paper

      Excerpt reference: static/papers/2611.13613v1.md:330-408
      Basis: Paper text
      Source SHA-256: 299000c1e16fcc1f9b596f8b7aa9a0caccc7af58f0dbabbbb46b125c097f166d

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.