/quint:quint-verificationfrom quint
Plans and runs verification of Quint spec properties using model checking, induction, Lean proofs, or simulation. Use when asked to check or prove properties of a .qnt spec.
Ships in quint. 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.
A plan picks one method for each property of a spec, together with the user, and a run verifies each
property by its method. Use the quint CLI for system properties and Lean in a workspace with
Quint for standalone function theorems. references/methods.md gives the
commands, claims and limits of each method.
Do not edit the project while planning or running verification. The only exceptions are the report
and the Lean file of obligations. Follow the user's AGENTS.md or CLAUDE.md for where to put those
files. Ask the user if the instructions do not specify a location.
For the Veil checks, quint verify --backend veil downloads Lean and Veil at its first run.
A standalone function proof needs a Lean workspace that can import Quint, but no model check.
Read the spec. The system properties are the invariant, temporal and observation definitions of
the main module, which is the module that the user names, or else the module that is named after
the file. List the constants of the main module, and the instances: the modules that import the
main module with a value for every constant, such as
import two_phase_commit(participants = Set("p1", "p2", "p3")).*. Model checking and simulation run
on one instance, and the smallest one is picked unless the user names another.
Also inventory the contracts the user requests or the spec explicitly states about pure
functions. Follow imports to the defining module, and read the contract even when it appears
only in documentation. List a contract about all arguments as a function theorem, not as a
state invariant. Don't invent a contract for every helper. This step ends when every property
and contract in scope is listed with its kind.
Probe. Run the probes of methods.md one at a time, since a model-checking probe can use every core. Probe state properties only. An instance can exercise calls to a pure function but cannot probe its universal contract. This step ends when every applicable probe has passed, failed, or been stopped at its cap.
Report a violation first. When a probe found a violation, name the property that was violated before anything else. Say that the violation points to a bug in the spec, or in the code that the spec models, and show its trace.
Show the options. For each property, show a table with one line for each method. The line gives the following:
For a function theorem, list direct Lean as the proof method. Name the defining module in the
quint_library declaration and give the lake env lean check command, even in a plan made
before probes. Explain why execution of the caller cannot prove the contract for all arguments.
methods.md gives the words of each cell.
Recommend. Under each table, recommend one possible method, with a reason of one or two sentences. A claim for every value of the constants, which induction or Lean makes, is stronger than a claim for one instance, which model checking makes. Both are stronger than a claim about the traces that simulation ran. The recommendation follows this procedure for each property:
holds% or model check a caller as a
substitute. A separate proof about a caller can reuse the theorem.A spec looks small enough for the agent's search when these hold:
Lists, arithmetic on unbounded integers, nested collections and many interleaving actions make the search a lot of work. These are signals, not thresholds. Whenever an invariant gets the synthesizer's probe, the plan says in one sentence which way the spec looks. It says so even when the synthesizer found a strengthening, because the run turns to the agent's search when the translation of the clauses into Quint does not check.
Whether the SMT solver is trusted is recommended from what the spec describes. For a protocol or a
system at a high level, recommend trusting it, so that a Lean proof is checked with --trust-smt
and the solver's answers count without Lean's kernel checking them. For low-level or mathematical
work, such as arithmetic, recommend that Lean's kernel checks every answer. Say it in one sentence
below the tables, with the flag, the reason, and how the user changes it. No row of a table is
added for it.
When no option of a property is possible, say that the property cannot be checked yet, and quote each reason.
Agree. Ask the user whether each property is verified by the recommended method, or by another method that is possible. Nothing runs before the user agrees. The plan is the agreed method of each property, with the reason that was given for it. A property that the user leaves out is not checked. When the user changes whether the SMT solver is trusted, recommend again. Without that trust, Lean is preferred to induction for a claim for every value of the constants, since induction always trusts the solver.
For example, the options of consistency in a two-phase commit could be shown as this table:
| Method | Possible | Claim | Drawback, or why not | Probe |
|---|---|---|---|---|
| model checking | yes | consistency holds in every reachable state with 3 participants (p1, p2, p3). | It covers only 3 participants, not any number of participants. | 288 states in 22.7 s |
| induction | yes | consistency holds in every reachable state, for any number of participants. | It is not inductive on its own, so the run checks it together with the strengthening that Veil's synthesizer found. | The inductive step fails after aborts. Veil's synthesizer found 8 strengthening clauses in 6.7 minutes. |
| lean | yes | consistency holds in every reachable state, for any number of participants. | You or your agent write the proof, which can take hours. | |
| simulation | yes | No violation of consistency is seen in the 10000 traces that are run with 3 participants. | A violation that none of the traces reaches is missed. | 1000 traces in 0.8 s, no violation |
Induction would then be recommended, with the strengthening that the synthesizer found. Below the tables, the plan would say: "Lean proofs trust the
SMT solver (--trust-smt), since two-phase commit is a protocol at a high level. Say if you want Lean's
kernel to check every answer instead, and the flag is left out."
The fallback makes two bounded claims, which cover each other's gap. Model checking covers executions of any length for the values of the instance. The bounded symbolic check covers every value of the constants, for executions of up to 8 steps. It runs where the SMT encoding loads the spec, and the report gives both results. methods.md gives the commands of the fallback.
Run the checks. Run the command of each agreed method, with its budget, as methods.md gives it. When a check finds a violation, tell the user at once, with the property and the length of its trace, and go on with the other checks. This step is done when every property of the plan has a result.
Summarize. Give each result in its word from methods.md. A
tested or checked result is never called proved.
Write the report. The report has one table, with a line for each property. The line gives the method, the result, what the result holds for in the spec's terms, and the time of the final check. Below the table, each result gets a section that is written from this template:
### <property>: <result>, by <method>
Claim: <the claim of the method, in the spec's terms>.
Trust surface: <what the result relies on besides the spec, from methods.md>.
How it was found: <only for a strengthening: by Veil's invariant synthesizer, or by the agent's
search in <n> rounds, with the time it took>.
To check it again:
<the command>
The invariants of a strengthening are listed after its section. For example:
### consistency: proved, by induction
Claim: consistency holds in every reachable state, for any number of participants.
Trust surface: the embedding of Quint in Lean, Veil, and the SMT solver, whose answers Lean's kernel
doesn't check. Veil's synthesizer certified its clauses with Lean's kernel, but the check of their
Quint translation trusts the solver.
How it was found: by Veil's invariant synthesizer, which found 8 clauses in 6.7 minutes.
To check it again:
quint verify two_phase_commit.strengthened.qnt --backend veil --main two_phase_commit --inductive-invariant consistencyInductive --invariants consistency
The report names the commit of the spec, and whether the spec had changes that were not committed. A spec that is in no commit is named by the SHA-256 of its contents. Place the report as described above.
For example, a run of a plan for two-phase commit could be reported as this table:
| Property | Method | Result | Holds for | Time |
|---|---|---|---|---|
commitStays | model checking | checked | 3 participants | 44.4 s |
consistency | induction | proved | any number of participants | 15.9 s |
allCommitted | model checking | reached | 3 participants | 38.8 s |
The properties that the plan proves in Lean wait for their proofs. For a standalone function
contract, state a theorem in a library proof file and use the
direct Lean check. The holds% obligations and
quint verify --proofs below are for state and temporal properties only.
sorry. The statement of a theorem is never changed. Neither are the options of
quint_module, except invariants, smt and declared. The names of the properties stay in
(invariants := [...]) and (temporalProps := [...]), since the check refuses a property that the file
does not name there. A temporal property is proved with prove_temporal_by, as
lean-proofs.md says, and its theorem needs a proof of
each invariant that the file names.
A proof goes over the steps that #gen_steps states, and grind closes them, as
lean-proofs.md says. A proof over the steps calls no SMT solver.
When a proof uses the solver for what grind leaves, and the plan trusts the solver, the file keeps
Veil's default, and the command of step 4 has --trust-smt. Otherwise
set_option veil.smt.trust false is set above quint_module, because a trusted answer then counts
as a sorry. The option has no effect below quint_module. A proof
names an invariant that states the keys of a map, such as
val stagesDomain = stages.keys() == participants, only when the proof uses it, since
quint verify --proofs adds none by itself. A sorry that is written in a file of the proof never
counts.quint_module options takes only the time of the proofs. Fix the proofs until every property is
proved.proved.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub quint-co/quint --plugin quint3 skills in this plugin
/quint-langQuint language and CLI reference — the expert on Quint syntax, operators, types, `basicSpells`, the toolchain (typecheck/run/test/verify), and how to read simulation and counterexample output. Use when writing or debugging Quint (`.qnt`) files, fixing a typecheck/parse error, looking up an operator or idiom, analyzing an invariant violation or counterexample trace, or optimizing state-space exploration. For building a new model end-to-end from some source (including translating TLA+, or modeling code/requirements/an idea), use quint-modeling instead — it consults this reference for syntax as needed.
/quint-modelingBuild a Quint model of a system, protocol, or algorithm. Use whenever the user wants to model, spec out, formally describe, model-check, or verify a system in Quint — e.g. "model this protocol in Quint", "spec out this design", "translate this TLA+", "formally check this Rust code" — even if they never say "specification." If the goal is to verify or model-check a design and no Quint model exists yet, writing it is the required first step, so start here. It generates the spec from whatever the user has — an idea, requirements, source code (Rust, Go, TypeScript, etc.), or an existing TLA+ spec — and walks the modelling flow (state, actions, invariants), adapting to the source. Also use this to **review or audit an existing Quint spec** — "review my .qnt", "is this model any good" — it carries the review checklist. For pure Quint syntax/CLI/debugging questions with no new model to build, use quint-lang instead.
Other plugins' skills for the same job