The Design of an Interactive Proof Mode for Dafny

📅 2025-12-23
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
Dafny’s automated verification lacks flexibility and debuggability for complex program properties—e.g., loop invariant refinement and inductive hypothesis selection. To address this, we design and implement the first Interactive Proof Mode (IPM) deeply integrated into the Dafny compiler framework. Methodologically, we introduce a hierarchical imperative proof protocol and an incremental state synchronization mechanism to enable fine-grained user intervention; extend SMT solver interaction, support proof-state snapshot management, and define a structured command language—all while preserving Dafny’s existing verification pipeline. Evaluation on multiple benchmarks demonstrates that our prototype significantly improves verification controllability and efficiency. This work establishes a novel human–machine collaboration paradigm for formal verification tools, advancing interactive theorem proving within industrial-strength program verifiers.

Technology Category

Knowledge Representation and Reasoning: Automated Reasoning and Theorem ProvingConstraint Satisfaction and Optimization: Satisfiability Modulo TheoriesReasoning under Uncertainty: Probabilistic Programming

Application Category

User Modeling, Personalization and Recommendation: User modeling and simulation for interactive and conversational systemsSemantics and Knowledge: Data modeling to support human-machine intelligence, including LLMs agents, intelligent system behavior, explanations, and user-friendly interactionsSecurity and Privacy: Data transparency and provenance
📝 Abstract
We propose to extend the Dafny system with an interactive proof mode. We present a motivating example, how the IPM works, including the main design choices we make, and a prototype implementation.
Problem

Research questions and friction points this paper is trying to address.

Extend Dafny with interactive proof mode
Present design choices for interactive functionality
Implement prototype of interactive proof system
Innovation

Methods, ideas, or system contributions that make the work stand out.

Extends Dafny with interactive proof mode
Presents main design choices and prototype
Demonstrates how the IPM works
Ş
Ştefan Ciobâcă
Alexandru Ioan Cuza University, Iași, Romania
K
K. Rustan M. Leino
Amazon Web Services Inc, Seattle, WA, USA
Ş
Ştefan-Alexandru Mercaș
Alexandru Ioan Cuza University, Iași, Romania
R
Roxana-Mihaela Timon
Alexandru Ioan Cuza University, Iași, Romania