mlsanityData to 14 Oct 2026

Automating Formal Verification with Reinforcement Learning and Recursive Inference

arXiv 2605.30914 ↗First posted 29 May 2026cs.LG cs.SEcited by 1

On the map: Deep reinforcement learning methods → RL training of language and agent models

Abstract (arXiv)

Automated formal verification remains challenging for large language models because data for proof assistants and verification-aware languages is scarce, and correctness depends on satisfying precise machine-checkable specifications rather than producing plausible code. This thesis studies how verifier environments can improve LLM generation of verified programs and proofs through reinforcement learning from verifiable rewards (RLVR) and verifier-guided inference-time search. First, we train open-source models in Dafny with RLVR using Group Relative Policy Optimization (GRPO) and related variants, assembling generated candidates into complete programs and scoring them with compiler and verifier outcomes. Initial experiments on an APPS-derived Dafny dataset increased verified reward from 2.2% to 58.1%, but revealed specification hacking, where models exploit weak formal specifications instead of implementing the intended solutions. After filtering underspecified and vulnerable tasks, multi-turn RLVR on the refined benchmark improves the verified pass rate from 9.7% to 31.1%. Second, we develop a verifier-guided inference scaffold in Lean that treats proof generation as structured search over decomposed subgoals, verifier feedback, diagnostics, and repair. With a fixed base model, the full scaffold with proof reviser improves pass rate on an initial VeriCoding pilot set from 46.2% under direct repair to 69.2%. On the larger VERINA dataset, whole-task decomposition plus proof reviser solves 7 of 42 previously unsolved tasks. We also introduce Dalek-Bench, a repository-scale Lean benchmark derived from the Rust textttcurve25519-dalek verification project; preliminary results remain weak, indicating that stronger progress evaluation and task-specific tool-use policies are still needed.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in RL training of language and agent models, one of 15 directions in Deep reinforcement learning methods. Builds on 75 of its 124 references that are in the map. First posted on arXiv 29 May 2026.

Builds on

75 of 124 references.

Closest ancestors · 1

Same direction, newest first

  1. 2024DeepSeek-Prover-V1.5: Harnessing Proof Assistant Feedback for Reinforcement Learning and Monte-Carlo Tree Search15 Aug

Other references · 74

  1. 2022Training language models to follow instructions with human feedbackcited by 15,971
  2. 2017Proximal Policy Optimization Algorithmscited by 15,215
  3. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
  4. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  5. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
  6. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
  7. 2023Let's Verify Step by Stepcited by 3,789
  8. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
  9. 2025DAPO: An Open-Source LLM Reinforcement Learning System at Scalecited by 2,810
  10. 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 2,057
  11. 2024Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameterscited by 1,986
  12. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,737
38 more
  1. 2024Tulu 3: Pushing Frontiers in Open Language Model Post-Trainingcited by 1,053
  2. 2023Teaching Large Language Models to Self-Debugcited by 988
  3. 2022STaR: Bootstrapping Reasoning With Reasoningcited by 940
  4. 2023LeanDojo: Theorem Proving with Retrieval-Augmented Language Modelscited by 427
  5. 2021MiniF2F: a cross-system benchmark for formal Olympiad-level mathematicscited by 391
  6. 2020Generative Language Modeling for Automated Theorem Provingcited by 388
  7. 2023Llemma: An Open Language Model For Mathematicscited by 388
  8. 2022Draft, Sketch, and Prove: Guiding Formal Theorem Provers with Informal Proofscited by 291
  9. 2025DeepSeek-Prover-V2: Advancing Formal Mathematical Reasoning via Reinforcement Learning for Subgoal Decompositioncited by 287
  10. 2022Autoformalization with Large Language Modelscited by 263
  11. 2024DeepSeek-Prover: Advancing Theorem Proving in LLMs through Large-Scale Synthetic Datacited by 234
  12. 2017Teacher-Student Curriculum Learningcited by 210
  13. 2022HyperTree Proof Search for Neural Theorem Provingcited by 197
  14. 2023ProofNet: Autoformalizing and Formally Proving Undergraduate-Level Mathematicscited by 192
  15. 2025Kimina-Prover Preview: Towards Large Formal Reasoning Models with Reinforcement Learningcited by 180
  16. 2024PutnamBench: Evaluating Neural Theorem-Provers on the Putnam Mathematical Competitioncited by 165
  17. 2025Goedel-Prover-V2: Scaling Formal Theorem Proving with Scaffolded Data Synthesis and Self-Correctioncited by 154
  18. 2022Formal Mathematics Statement Curriculum Learningcited by 142
  19. 2025Goedel-Prover: A Frontier Model for Open-Source Automated Theorem Provingcited by 133
  20. 2021Proof Artifact Co-training for Theorem Proving with Language Modelscited by 132
  21. 2024Lean Workbook: A large-scale Lean problem set formalized from natural language math problemscited by 122
  22. 2019Learning to Prove Theorems via Interacting with Proof Assistantscited by 109
  23. 2024Code Generation with AlphaCodium: From Prompt Engineering to Flow Engineeringcited by 103
  24. 2025Seed-Prover: Deep and Broad Reasoning for Automated Theorem Provingcited by 101
  25. 2023An In-Context Learning Agent for Formal Theorem-Provingcited by 82
  26. 2024Lean-STaR: Learning to Interleave Thinking and Provingcited by 68
  27. 2023Clover: Closed-Loop Verifiable Code Generationcited by 67
  28. 2025Hilbert: Recursively Building Formal Proofs with Informal Reasoningcited by 60
  29. 2024Enchanting Program Specification Synthesis by Large Language Models using Static Analysis and Program Verificationcited by 58
  30. 2024Lean Copilot: Large Language Models as Copilots for Theorem Proving in Leancited by 58
  31. 2025Aristotle: IMO-level Automated Theorem Provingcited by 58
  32. 2024DafnyBench: A Benchmark for Formal Software Verificationcited by 57
  33. 2024Don't Trust: Verify -- Grounding LLM Quantitative Reasoning with Autoformalizationcited by 55
  34. 2023Verus: Verifying Rust Programs using Linear Ghost Types (extended version)cited by 53
  35. 2026Numina-Lean-Agent: An Open and General Agentic Reasoning System for Formal Mathematicscited by 50
  36. 2024AutoVerus: Automated Proof Generation for Rust Codecited by 49
  37. 2018TacticToe: Learning to Prove with Tacticscited by 44
  38. 2023Finding Inductive Loop Invariants using Large Language Modelscited by 36

50 most cited of 74 All 74 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026Verifier-Grounded Agentic RL for Provably Correct Code
  2. 2025Proof2Silicon: Prompt Repair for Verified Code and Hardware Generation via Reinforcement Learning
  3. 2025VerIF: Verification Engineering for Reinforcement Learning in Instruction Following
  4. 2026CVeDRL: An Efficient Code Verifier via Difficulty-aware Reinforcement Learning
  5. 2026Improving Small Language Models for Code Generation with Reinforcement Learning from Verification Feedback
  6. 2025VerifyBench: A Systematic Benchmark for Evaluating Reasoning Verifiers Across Domains
  7. 2025VeriReason: Reinforcement Learning with Testbench Feedback for Reasoning-Enhanced Verilog Generation
  8. 2025QiMeng-CodeV-R1: Reasoning-Enhanced Verilog Generation