mlsanityData to 13 Oct 2026

Automating Formal Verification with Agent-Guided Tree Search

arXiv 2605.27485 ↗First posted 26 May 2026cs.LO cs.LG cs.SEcited by 0

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

Formal verification offers a path to provably correct software, but writing verified code remains expensive enough that the technique is rarely used in production. Recent large language models can accelerate this work, and recent benchmarks measure their ability to translate specifications into code and machine-checked proofs of correctness. This thesis evaluates the state of such LLM-driven verified-code generation ("vericoding") in Lean and develops search-based methods for improving verification performance. We first reproduce a subset of the vericoding-benchmark Lean leaderboard on a current cross-vendor model pool, finding that non-reasoning performance remains roughly steady on US closed-source models while open-weight models have slightly improved. We update the iterative methodology of vericoding-benchmark with an agentic loop equipped with mathlib search, finding that model performance greatly improves and scales with agent budget. GPT-5.4 nearly saturates the benchmark at 95.0% on 423 specs with K=50 LLM calls. We then design two agent-directed tree-search formulations: a state-based orchestrator that branches on partial-proof states, and a context-based orchestrator that branches on full subagent contexts. Compared against the agent baseline, the context-based design solves a wider range of intermediate-difficulty specs at lower token cost, while the agent baseline retains an advantage on the hardest specs, where uninterrupted iteration matters most. We conclude that search structure has selective advantages over a strong agent baseline, and that more challenging benchmarks drawn from modern code are important to measure and drive further progress in automated formal verification. Code available upon request by contacting the author at [email protected].

Key facts. No citing papers in the map yet (data through 13 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 48 of its 94 references that are in the map. First posted on arXiv 26 May 2026.

Builds on

48 of 94 references.

References · 48

  1. 2017Attention Is All You Needcited by 60,106
  2. 2020Language Models are Few-Shot Learnerscited by 32,320
  3. 2022Training language models to follow instructions with human feedbackcited by 15,856
  4. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,376
  5. 2025Qwen3 Technical Reportcited by 8,510
  6. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,502
  7. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,986
  8. 2020Scaling Laws for Neural Language Modelscited by 6,494
  9. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,247
  10. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,117
  11. 2017Deep reinforcement learning from human preferencescited by 3,871
  12. 2022Constitutional AI: Harmlessness from AI Feedbackcited by 3,011
36 more
  1. 2022Training Compute-Optimal Large Language Modelscited by 2,972
  2. 2024Large Language Monkeys: Scaling Inference Compute with Repeated Samplingcited by 970
  3. 2023LeanDojo: Theorem Proving with Retrieval-Augmented Language Modelscited by 420
  4. 2020Generative Language Modeling for Automated Theorem Provingcited by 386
  5. 2021MiniF2F: a cross-system benchmark for formal Olympiad-level mathematicscited by 383
  6. 2023How Language Model Hallucinations Can Snowballcited by 310
  7. 2025DeepSeek-Prover-V2: Advancing Formal Mathematical Reasoning via Reinforcement Learning for Subgoal Decompositioncited by 280
  8. 2023An Overview of Catastrophic AI Riskscited by 219
  9. 2022HyperTree Proof Search for Neural Theorem Provingcited by 195
  10. 2025Kimina-Prover Preview: Towards Large Formal Reasoning Models with Reinforcement Learningcited by 176
  11. 2024PutnamBench: Evaluating Neural Theorem-Provers on the Putnam Mathematical Competitioncited by 155
  12. 2025Measuring AI Ability to Complete Long Software Taskscited by 149
  13. 2025Goedel-Prover-V2: Scaling Formal Theorem Proving with Scaffolded Data Synthesis and Self-Correctioncited by 143
  14. 2022Formal Mathematics Statement Curriculum Learningcited by 141
  15. 2021Proof Artifact Co-training for Theorem Proving with Language Modelscited by 131
  16. 2025BFS-Prover: Scalable Best-First Tree Search for LLM-based Automatic Theorem Provingcited by 84
  17. 2023An In-Context Learning Agent for Formal Theorem-Provingcited by 80
  18. 2025Hilbert: Recursively Building Formal Proofs with Informal Reasoningcited by 57
  19. 2024Lean Copilot: Large Language Models as Copilots for Theorem Proving in Leancited by 54
  20. 2024DafnyBench: A Benchmark for Formal Software Verificationcited by 54
  21. 2025Aristotle: IMO-level Automated Theorem Provingcited by 51
  22. 2026Numina-Lean-Agent: An Open and General Agentic Reasoning System for Formal Mathematicscited by 45
  23. 2024Anchoring Bias in Large Language Models: An Experimental Studycited by 37
  24. 2025Solving Formal Math Problems by Decomposition and Iterative Reflectioncited by 35
  25. 2025APOLLO: Automated LLM and Lean Collaboration for Advanced Formal Reasoningcited by 34
  26. 2023LLMSTEP: LLM proofstep suggestions in Leancited by 32
  27. 2025VERINA: Benchmarking Verifiable Code Generationcited by 31
  28. 2025Ax-Prover: A Deep Reasoning Agentic Framework for Theorem Proving in Mathematics and Quantum Physicscited by 28
  29. 2025Scaling up Multi-Turn Off-Policy RL and Multi-Agent Tree Search for LLM Step-Proverscited by 27
  30. 2025REAL-Prover: Retrieval Augmented Lean Prover for Mathematical Reasoningcited by 18
  31. 2025A benchmark for vericoding: formally verified program synthesiscited by 17
  32. 2024Pantograph: A Machine-to-Machine Interaction Interface for Advanced Theorem Proving, High Level Reasoning, and Data Extraction in Lean 4cited by 15
  33. 2025Vibe Coding as a Reconfiguration of Intent Mediation in Software Development: Definition, Implications, and Research Agendacited by 13
  34. 2025LemmaHead: RAG Assisted Proof Generation Using Large Language Modelscited by 3
  35. 2026MechMath: Sorrifier-Driven Formal Decomposition Workflow for Automated Theorem Provingcited by 1
  36. 2026Broken by Default: A Formal Verification Study of Security Vulnerabilities in AI-Generated Codecited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Harnessing Code Agents for Automatic Software Verification
  2. 2026SWE-Proof: Can Language Models Resolve Real-World Issues with Machine-Checked Proofs?
  3. 2026AlgoVeri: An Aligned Benchmark for Verified Code Generation on Classical Algorithms
  4. 2026P3: Joint Program-and-Proof Planning for Verified Code Generation
  5. 2026Verus-SpecGym: An Agentic Environment for Evaluating Specification Autoformalization
  6. 2026WybeCoder: Verified Imperative Code Generation
  7. 2026Verification as an Architectural Layer for LLM Agents: A V-Model Design, and a Pilot Study of Its Deterministic Core
  8. 2025PAT-Agent: Autoformalization for Model Checking