midspiral/lemmafit/lemmafit-proofs
Claude Code and agent skill by midspiral/lemmafit
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Proof-maximizing workflow for writing Dafny lemmas, postconditions, and invariants. Load this skill before writing any lemmas, ensures clauses, or when deciding between axioms and lemmas. Covers postcondition-first development, scaffolding, biconditional completeness, and input validation patterns.
Install
npx vskill@latest install midspiral/lemmafit/lemmafit-proofsSKILL.md
Lemmafit Proofs
Proof-Maximizing Workflow
- Postconditions first — Write
ensuresclauses before function bodies. The postcondition is the contract; the body is the implementation. This forces you to think about what a function guarantees before how it works.
- Scaffold before proving — Create lemma signatures with empty bodies (
lemma Foo() ensures P() {}) so the Claims panel tracks them as "scaffolded". Fill in proofs afterward. This ensures no claim is forgotten.
- Biconditional completeness — For every "if X then Y" claim, also prove "if not X then not Y" (or document why the converse is unnecessary). One-directional implications leave blind spots.
- Input validation predicates — Every trust-boundary datatype gets a
Valid_*predicate (e.g.,predicate Valid_SetWeight(w: int) { w > 0 && w <= 1000 }). TheStepfunction shouldrequires Valid_*(input)for external inputs.
- Invariant tightness — Every code guard or clamp (e.g.,
if x > MAX then MAX else x) should have a matching bound inInvat full strength (e.g.,0 <= x <= MAX). Loose invariants hide bugs.
- Standalone lemmas for compositions — Don't rely on implicit composition. If feature A and feature B interact, write a lemma proving their combined properties explicitly (e.g.,
lemma UndoRedoRoundTrip).
- Prefer lemmas over axioms —
[verified]= lemma with proof body,[assumed]= axiom with justification comment. Every axiom is technical debt. When you add an axiom, add a comment explaining why a proof is infeasible and what would need to change to prove it.
- Prove application-specific lemmas beyond the general requirements — For the step
Applyfunction, you should prove something specific for each action. Prove strong properties about your program, both generic and domain-specific. Example: proving the Replay kernelStepPreservesInv(after Normalization) is a weak property. Try to prove that applying more specific actions results in desired properties (e.g. Inv even without Normalization)
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/lemmafit-proofs/SKILL.md
Popularity
- Repository stars
- 52
- Repository forks
- 3
- 7-day trend score
- 20
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
[](https://verified-skill.com/skills/midspiral/lemmafit/lemmafit-proofs)