DafnyPro: LLM-Assisted Automated Verification for Dafny Programs
Not on the map. Why?
Abstract (arXiv)
We present DafnyPro, an inference-time framework that enhances LLMs for generating verification annotations in Dafny. DafnyPro comprises three key components: a diff-checker that prevents modifications to base program logic, a pruner that removes unnecessary invariants, and a hint-augmentation system that retrieves and applies predefined, problem-independent proof strategies. We evaluate DafnyPro using Claude Sonnet 3.5 and 3.7 on four benchmarks: Clover, MBPP-Dafny, HumanEval-Dafny, and DafnyBench, achieving consistent performance gains in all cases. Notably, on DafnyBench, the most challenging benchmark, Claude Sonnet 3.5 enhanced with DafnyPro achieves 86% correct proofs, a 16 pp improvement over the base model. We also fine-tune two Qwen models on training data derived from verification attempts by larger models enhanced with DafnyPro. Our 7B and 14B models achieve 68% and 70% correct proofs on DafnyBench, respectively, demonstrating that smaller models can maintain high verification accuracy.
Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). First posted on arXiv 8 Jan 2026.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2026: 11.
11 papers.
- 2026SEVerA: Verified Synthesis of Self-Evolving Agentscited by 8
- 2026Inductive Deductive Synthesis: Enabling AI to Generate Formally Verified Systemscited by 4
- 2026ExVerus: Verus Proof Repair via Counterexample Reasoningcited by 3
- 2026Certified Program Synthesis with a Multi-Modal Verifiercited by 2
- 2026From Natural Language to Verified Code: Toward AI Assisted Problem-to-Code Generation with Dafny-Based Formal Verificationcited by 0
- 2026Combining Mechanical and Agentic Specification Inference for Movecited by 0
- 2026Natural Language based Specification and Verificationcited by 0
- 2026An Empirical Study of LLM-Generated Specifications for VeriFastcited by 0
- 2026Partial Contracts Suffice: Sound, LLM-Inferred Regression Verificationcited by 0
- 2026Specula: Scaling formal specifications for autonomous model checking of system codecited by 0
- 2026Fewer Assumptions by Design: A Reusable Skill for LLM-Assisted Verus Verificationcited by 0
- 2026Fewer Assumptions by Design: A Reusable Skill for LLM-Assisted Verus Verification28 Sep 2026
- 2026Specula: Scaling formal specifications for autonomous model checking of system code28 Jul 2026
- 2026Partial Contracts Suffice: Sound, LLM-Inferred Regression Verification11 Jul 2026
- 2026An Empirical Study of LLM-Generated Specifications for VeriFast25 Jun 2026
- 2026Inductive Deductive Synthesis: Enabling AI to Generate Formally Verified Systems22 May 2026
- 2026Natural Language based Specification and Verification11 May 2026
- 2026Combining Mechanical and Agentic Specification Inference for Move11 May 2026
- 2026From Natural Language to Verified Code: Toward AI Assisted Problem-to-Code Generation with Dafny-Based Formal Verification24 Apr 2026
- 2026Certified Program Synthesis with a Multi-Modal Verifier17 Apr 2026
- 2026ExVerus: Verus Proof Repair via Counterexample Reasoning26 Mar 2026
- 2026SEVerA: Verified Synthesis of Self-Evolving Agents26 Mar 2026