mlsanityData to 24 Nov 2026

LLM-Assisted Verification in Dafny

arXiv 2611.16886 ↗Submitted 12 Nov 2026cs.LO cs.AI cs.SEcited by 0

Not on the map. Why?

Abstract (arXiv)

Formal verification of complex algorithms requires expertise in program specification, invariant construction, mathematical proof, and the management of automated theorem provers. Although large language models (LLMs) can generate program code and proof fragments, reliably developing complete machine-checked verifications remains challenging: it requires an iterative process of constructing and validating specifications and invariants, building proofs, diagnosing solver failures, and optimizing verification performance. This paper presents a systematic ten-step workflow for LLM-assisted verification of scientific algorithms using the Dafny verification system. The workflow integrates algorithm formalization, contract development, empirical invariant validation, proof construction, bottleneck profiling, and resource-driven proof optimization. We applied the workflow using Antrhopic's Claude Opus 5 and Opus 5.5 models, combining LLM-driven development with automated testing and verification feedback, while retaining human oversight for correctness-critical decisions and strategic interventions. We evaluate the approach on 37 complex algorithms from graph theory and labelled transition systems. Notably, we verified the Hopfcroft-Tarjan triconnectivity test, demonstrating that even highly challenging algorithmic verification tasks can be carried out through a structured LLM-assisted workflow. Many of our machine-checked verifications were obtained within hours to a few days of interactive development. Our results suggest that LLM-assisted workflows can shift the role of the human verifier from detailed proof construction toward supervision, specification review, and strategic guidance.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 16 of its 59 references that are in the map. Submitted 12 Nov 2026.

Builds on

16 of 59 references.

References · 16

  1. 2024SpecGen: Automated Generation of Formal Program Specifications via Large Language Modelscited by 61
  2. 2025A benchmark for vericoding: formally verified program synthesiscited by 28
  3. 2025Can LLMs Reason About Program Semantics? A Comprehensive Evaluation of LLMs on Formal Specification Inferencecited by 19
  4. 2026DafnyPro: LLM-Assisted Automated Verification for Dafny Programscited by 15
  5. 2024dafny-annotator: AI-Assisted Verification of Dafny Programscited by 13
  6. 2024Leveraging Large Language Models to Boost Dafny's Developers Productivitycited by 11
  7. 2025ATLAS: Automated Toolkit for Large-Scale Verified Code Synthesiscited by 8
  8. 2025Specification-Guided Repair of Arithmetic Errors in Dafny Programs using LLMscited by 4
  9. 2026Automatic Generation of Formal Specification and Verification Annotations Using LLMs and Test Oraclescited by 4
  10. 2023Case studies of development of verified programs with Dafny for accessibility assessmentcited by 3
  11. 2025MINIF2F-DAFNY: LLM-Guided Mathematical Theorem Proving via Auto-Active Verificationcited by 3
  12. 2025What Challenges Do Developers Face When Using Verification-Aware Programming Languages?cited by 2
4 more
  1. 2019Correct and Efficient Antichain Algorithms for Refinement Checkingcited by 1
  2. 2019A simpler O(m log n) algorithm for branching bisimilarity on labelled transition systemscited by 1
  3. 2024Incremental Proof Development in Dafny with Module-Based Inductioncited by 1
  4. 2024A Formal Correctness Proof of Edmonds' Blossom Shrinking Algorithmcited by 1

Built on by

Not cited yet.