siddhartha-gadgil/leanaide/correctness

Claude Code and agent skill by siddhartha-gadgil/leanaide

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Install

npx vskill@latest install siddhartha-gadgil/leanaide/correctness

SKILL.md

Skill: Algorithmic Correctness

Pre-condition: Apply this skill when the statement is proved by giving a procedure, recursive definition, decision method, computation, or constructive algorithm.

Goal: Prove that the algorithm terminates and returns an output satisfying the specification.

Instructions:

  1. Specify Inputs and Outputs: State preconditions and postconditions precisely.
  2. Define the Algorithm: Give enough detail that every step is deterministic or its allowed choices are specified.
  3. Termination: Exhibit a decreasing measure, well-founded recursion, finite search space, or loop variant.
  4. Partial Correctness: Prove that if the algorithm terminates, the output satisfies the specification.
  5. Maintain Invariants: For loops or iterative procedures, state and prove the loop invariant.
  6. Conclude Total Correctness: Combine termination and partial correctness.

Common Failure Modes:

  • Proving correctness only for examples.
  • Omitting termination for recursive or iterative procedures.
  • Using an invariant that is not strong enough to imply the postcondition.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
119
Repository forks
17
7-day trend score
24

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/siddhartha-gadgil/leanaide/correctness/badge)](https://verified-skill.com/skills/siddhartha-gadgil/leanaide/correctness)

Something wrong with this skill or its page? Tell us.