Welcome · Page 3 of 3

TLA⁺ Semantics & Verdicts

Every specification class defines a TLA⁺ state machine:

Spec ≡ Init ∧ □[Next]vars ∧ Fairness

Here vars is every State and Ghost field, Init describes the starting states, Next is the disjunction of all actions, and Fairness states scheduler assumptions. Every Invariant, ActionInvariant, and Property is a claim about Spec.

Checking a Model produces one of three verdicts:

VerdictMeaning
PASSHolds for every reachable state of the finite model (for those constants, domains, and constraints).
FAILFound a violation, reported with a step-by-step counterexample trace in Python terms.
ERRORNothing was checked — a static front-end diagnostic (e.g., level error or missing domain).
Try it: Click Check on Countdown. It fails strictly_positive because step() reaches n == 0! Fix either the invariant (s.n >= 0) or the guard (s.n > 1) and check again to see PASS.
Click Check (or press Shift+Enter) to run the front-end and check this specification. Switch to TLA⁺ to view its TLA⁺ meaning.
---- MODULE Countdown ----
EXTENDS Integers
VARIABLE n

Init == n = 3
Step == n > 0 /\ n' = n - 1
Next == Step
Spec == Init /\ [][Next]_n

StrictlyPositive == n > 0  \* Violated at n = 0!
====