ci / tests (macos-latest, python 3.11) (push) Canceled after 0s
ci / tests (macos-latest, python 3.13) (push) Canceled after 0s
ci / tests (macos-latest, python 3.9) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.11) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.13) (push) Canceled after 0s
ci / tests (ubuntu-latest, python 3.9) (push) Canceled after 0s
Contracts with a ladder of checks, an end-of-turn gate, retrospectives and shared lessons, time-to-delivery measurement, a library of 140 verification techniques and 20 recipes, personal data kept outside the clone, and releases with rollback. Standard library only. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2.5 KiB
2.5 KiB
id, title, answers, rung, section, languages, kinds, cost, detect, ran_here, verified
| id | title | answers | rung | section | languages | kinds | cost | detect | ran_here | verified |
|---|---|---|---|---|---|---|---|---|---|---|
| quint | Quint specifications with a simulator and Apalache model checker | Can I describe my state machine in a typed, programmer-style language and have a tool explore its states for violations? | 1 | design | any | state-machine, concurrency | medium | quint --version | no | docs |
Use when
- You want the TLA+ style of design check but with types, modules and a syntax close to TypeScript or Rust.
- You want a fast random simulation first (seconds) and an exhaustive bounded check second.
- The team will keep the spec in the repo and edit it; readability and a type checker matter.
Do not use when
- You need liveness proofs or the full TLA+ toolbox. Use
tlaplus. - The design is relational/structural. Use
alloy.
Set up
npm install -g @informalsystems/quint (version 0.34.0 tried). quint verify downloads Apalache on first use and needs Java 21 or newer; with Java 17 it fails with UnsupportedClassVersionError.
Minimal example
lock.qnt:
module lock {
var holder: str
action init = holder' = "none"
action enter(p) = all { holder == "none", holder' = p }
action leave = all { holder != "none", holder' = "none" }
action step = any { enter("a"), enter("b"), leave }
val ok = (holder == "none") or (holder == "a") or (holder == "b")
}
Run
quint typecheck lock.qnt
quint run lock.qnt --init=init --step=step --invariant=ok --max-samples=200 --max-steps=10
quint verify lock.qnt --init=init --step=step --invariant=ok
Passing looks like: typecheck and run exit 0; run prints [ok] No violation found. A violated invariant prints [violation] Found an issue, the states, and exits 1 (seen with val ok = holder != "b"). verify should exit 0 with [ok] No violation found; not run here because Java 21 was unavailable, so that line is unconfirmed.
As a contract check
{"id": "design-lock-quint", "claim": "In every run of the lock model, holder is always none, a or b", "kind": "state-machine", "rung": 1, "cmd": "quint verify lock.qnt --init=init --step=step --invariant=ok", "expect": {"exit": 0}, "tier": "deep", "timeout_s": 900}
Use quint run in the contract only if you accept rung 2, since it samples.
What a pass does not prove
quint runis random sampling: rung 2. Onlyquint verifyexplores exhaustively, and only up to--max-steps(default 10).- It checks the spec, not the code. See
model-coverage. - An invariant that is always true is a vacuous pass; confirm a deliberately wrong invariant fails.