Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Covers Quint and TLA+/PlusCal model syntax, check commands, and state-space limits for writing runnable formal verification models.
95% 100%+5 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 21 of 22 without it.
This test ran on v1. v4 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
Quint for state machines and invariants (fast quint run). TLA+/TLC for liveness under fairness, PlusCal processes, or when Quint's backend cannot finish. Start with safety, add liveness after.
module counter {
var n: int
action init = n' = 0
action step = any { all { n < 3, n' = n + 1 }, all { n > 0, n' = n - 1 } }
val inRange = n >= 0 and n <= 3
}
init sets every variable with x' = ...; any { a, b } is a choice; all { guard, update } is one atomic step and assigns every variable.val. Temporal: temporal p = eventually(q); also always, weakFair(action, vars), strongFair(action, vars). Nondeterminism: nondet x = oneOf(Set(1, 2)).| Purpose | Command |
|---|---|
| Typecheck | quint typecheck M.qnt |
| Counterexample search | quint run M.qnt --invariant=inRange --max-steps=20 --max-samples=1000 |
Bounded symbolic safety check (Apalache): no violation within --max-steps steps, not a proof for all depths | quint verify M.qnt --init=init --step=step --invariant=inRange --max-steps=N |
| Liveness | quint verify M.qnt --init=init --step=step --temporal=PROP --backend tlc |
If the sandbox refuses the backend server: quint compile --target json M.qnt > M.qnt.json, then apalache-mc check --init=init --next=step --inv=inRange --length=10 M.qnt.json (safety only).
---- MODULE M ---- ... ====; VARIABLES x; Init == x = 0; Next == \/ A \/ B; Spec == Init /\ [][Next]_x /\ WF_x(A).Inv == x \in 0..3; Live == <>(x = 3); WF_x(A) weak, SF_x(A) strong fairness.M.cfg: SPECIFICATION Spec, INVARIANT Inv, PROPERTY Live, CONSTANT N = 2, optional SYMMETRY, CONSTRAINT.java -jar tla2tools.jar -config M.cfg -workers auto M.tla; large models: add -simulate -depth 100.fair process is weakly fair; either/or chooses; await blocks. Example:process Transfer \in 1..2
begin
Next to this one in the catalogue, plus more from the same author.