/vibe-verify:leanfrom vibe-verify
Testing and verification techniques for Lean 4 — the full ladder from
Ships in vibe-verify. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Base path:
${CLAUDE_PLUGIN_ROOT}/skills/lean
Lean is the one language in vibe-verify where the ladder of evidence has an actual top rung. A property test is not the end state; it is a stepping stone to a theorem. The characteristic arc is: #guard example → Plausible property check → decide / native_decide on a finite instance → general tactic proof. This skill covers every rung and, above all, when to climb.
Make correctness a checked artifact, not a belief. Every property you care about should be something a machine re-checks on every change — a type, a model, a property, a fuzz target, a contract — and the code should be shaped so that checking it is cheap. The question is never "should I test this?" but "what is the strongest checker that can hold this property, and what does the code need to look like for that checker to reach it?" Treat these as defaults to apply with judgment, not as absolute rules.
catalog/00-overview.md, catalog/T23-test-to-type-promotion.mdcatalog/T23-test-to-type-promotion.md, usecases/UC17-promote-to-types.mdcatalog/T02-property-based-testing.md, usecases/UC01-pure-function-spec.mdcatalog/T04-stateful-model-based.mdusecases/UC03-state-machine-protocol.mdcatalog/T15-functional-core.mdcatalog/T15-functional-core.md (Lean has no monkey-patching; the seam is a parameter or a type class instance)catalog/T16-deterministic-time-random.mdusecases/UC02-parser-decoder.md (Lean has no coverage-guided fuzzer; Plausible generators plus a proof of totality stand in)catalog/T03-generators-shrinking.mdcatalog/T02-property-based-testing.md, catalog/T23-test-to-type-promotion.mdusecases/UC18-suite-quality.md (Lean has no mutation-testing tool; a proved theorem is immune to the question, a #guard is not)usecases/UC18-suite-quality.md#guard, #eval, lake test executables) — a specific input yields a specific output, checked at elaboration time or in a test binary → catalog/T01-example-tests.mdplausible tactic and Testable; formerly slim_check → catalog/T02-property-based-testing.mdSampleableExt, Shrinkable, Gen) — input distributions reach the interesting cases; failures minimize → catalog/T03-generators-shrinking.mdcatalog/T04-stateful-model-based.md{x // P x} as a checked contract → catalog/T11-contracts.mdIO marks the shell → catalog/T15-functional-core.mdStdGen seeding; the clock and randomness passed in as values → catalog/T16-deterministic-time-random.md#guard in documentation) — documentation examples stay true because the elaborator runs them → catalog/T22-doctests.mdby decide, then a general theorem; the test is deleted → catalog/T23-test-to-type-promotion.mddecide, native_decide, omega) — a finite or decidable property discharged by computation inside the checker → catalog/T33-proof-by-decision.mdTechniques with no entry here (coverage-guided fuzzing, mutation testing, snapshot tests, and others) have no native Lean tooling; the coverage matrix in taxonomy/techniques.md shows the gaps.
usecases/UC01-pure-function-spec.mdparse ∘ print = id for a small grammar → usecases/UC02-parser-decoder.mdvibe-verify:quint → usecases/UC03-state-machine-protocol.mdusecases/UC17-promote-to-types.mdusecases/UC18-suite-quality.mdvibe-types:lean is the sibling skill for rung 1. When a property in this skill graduates to a type or a theorem, the destination patterns live there: vibe-types:T26-refinement-types (subtypes), vibe-types:T29-propositions-as-types (invariants as Prop), vibe-types:T09-dependent-types (indexed data), vibe-types:T28-termination (provable termination), vibe-types:T30-proof-automation (the tactics that discharge the obligations).vibe-verify:quint takes over when the property is temporal or the state space is concurrent or distributed. Lean proves ∀ over infinite domains but demands the proof from you; Quint searches a finite state space exhaustively and demands nothing but the model. Use Quint to find the design bug, then Lean to prove the fixed design. See usecases/UC03-state-machine-protocol.md.projects/lean-project/ (Lean 4 pinned by lean-toolchain, Plausible as the one dependency).README.md (opens in a new tab)catalog/00-overview.md (opens in a new tab)catalog/T01-example-tests.md (opens in a new tab)catalog/T02-property-based-testing.md (opens in a new tab)catalog/T03-generators-shrinking.md (opens in a new tab)catalog/T04-stateful-model-based.md (opens in a new tab)catalog/T11-contracts.md (opens in a new tab)catalog/T15-functional-core.md (opens in a new tab)catalog/T16-deterministic-time-random.md (opens in a new tab)catalog/T22-doctests.md (opens in a new tab)catalog/T23-test-to-type-promotion.md (opens in a new tab)catalog/T33-proof-by-decision.md (opens in a new tab)usecases/00-overview.md (opens in a new tab)usecases/UC01-pure-function-spec.md (opens in a new tab)usecases/UC02-parser-decoder.md (opens in a new tab)usecases/UC03-state-machine-protocol.md (opens in a new tab)usecases/UC17-promote-to-types.md (opens in a new tab)usecases/UC18-suite-quality.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
6 skills in this plugin
/pythonvibe-verify:pythonPython verification techniques — property-based testing, fuzzing, model-based testing, mutation testing, and the code structure that makes them reach. Use this skill whenever the user writes tests in Python, mentions pytest, fixtures, Hypothesis, @given, property-based testing, strategies, shrinking, RuleBasedStateMachine, stateful testing, fuzzing Python, pythonfuzz, Atheris, mutmut, mutation testing, syrupy, snapshot tests, doctest, mock.patch, monkeypatch, unittest.mock, mocking, test doubles, dependency injection for tests, flaky tests, or testing untyped/legacy Python code. Also use when reviewing Python test suites or deciding what kind of test to write./quintvibe-verify:quintFormal modeling and model checking with Quint (the modern TLA+ surface syntax by Informal Systems) — quint run/test/verify, Apalache, TLC, invariants, temporal properties, ITF traces. Use this skill whenever the user mentions Quint, TLA+, Apalache, model checking, a formal spec or formal specification, temporal properties, invariants of a protocol, a state machine spec, leader election, consensus protocol design, distributed protocol bugs, race conditions in a protocol, or says "model this protocol". Also use it BEFORE implementing anything concurrent, distributed, protocol-shaped, or lifecycle-heavy, and when a bug only reproduces under rare interleavings.npx claudepluginhub jpablo/vibe-verify --plugin vibe-verify