generate-verified

Generate Dafny implementations that satisfy specified formal properties.

5|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/nicholls-inc/claude-code-marketplace --skill generate-verified
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate-verified
Source: https://github.com/nicholls-inc/claude-code-marketplace/tree/main/crosscheck/skills/generate-verified
Command: npx skills add https://github.com/nicholls-inc/claude-code-marketplace --skill generate-verified

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Validates that Dafny implementations meet their specifications through rigorous formal verification, ensuring correctness and safety.

Core Features & Use Cases

  • Automated Verification: Checks Dafny code against its specifications, confirming proof obligations are satisfied.
  • Iterative Proof Refinement: Iteratively enhances implementation and proof strategies until verification succeeds.
  • Use Case: Use this Skill to guarantee that a data structure implementation correctly maintains invariants under all operations, critical for safety-critical systems.

Quick Start

Input your Dafny specification, and the generate-verified Skill will produce a verified implementation ready for deployment.

Frequently Asked Questions about generate-verified

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I verify Dafny code meets its formal specifications?

To verify Dafny code, you need a tool that checks implementations against formal specifications and iteratively refines proof strategies until all proof obligations are satisfied. This Skill automates that exact verification process.

What is formal verification for safety-critical software?

Formal verification mathematically proves that software implementations meet specified invariants and properties under all operations. It ensures algorithm correctness and safety guarantees critical for safety-critical systems.

How do I generate implementation code that satisfies formal properties in Dafny?

You input your Dafny specification into a verification tool, which generates implementation code that satisfies the specified formal properties. The tool iteratively enhances proof strategies until verification succeeds.

Can I use formal verification for data structure invariants?

Yes, formal verification is suitable for guaranteeing that a data structure implementation correctly maintains invariants under all operations. It checks Dafny code against specifications to confirm proof obligations are satisfied.

Do I need a specific verification environment to check Dafny program correctness?

Yes, verifying Dafny program correctness requires Dafny source code and verification environment compatibility. You must ensure your environment supports the formal methods and proof automation needed for the task.

Why does Dafny verification fail on my implementation?

Dafny verification fails when implementation code does not satisfy specified formal properties. Iterative proof refinement enhances implementation and proof strategies until proof obligations are met and verification succeeds.