Why Tanny?
typing declares the values a program takes and mypy checks them. Temporal Typing declares how a program's state may change; Tanny checks it. It explores every reachable state of a Model and either proves each obligation within the model's bounds or gives the shortest trace that breaks one.
Specifications Next to the Code#
A TLA⁺ specification in its own file drifts from the code it describes. With Temporal Typing the specification is on the Python class, and Tanny checks the method bodies against it: when an action has both an Action(...) predicate and a body, a body that does something else is a conformance failure.
How It Compares#
| Tool | Checks | Needs | Counterexamples |
|---|---|---|---|
python -m temporal_typing | Well-formedness: levels, bindings, domains | Python | None: diagnostics only |
| TLA⁺ by hand + TLC | Every reachable state of a separate spec | A JVM | TLA⁺ traces |
| Tanny | Every reachable state, liveness, contracts, refinement, and the code's conformance | Nothing: one binary | Python traces |
The Rules It Keeps#
Never PASS for a check not made
Tanny implements the Temporal Typing checker specification: a construct it cannot give its exact Python meaning is an ERROR, never a silent PASS.
- The user's FAIL is the user's. A translation Manyan rejects is Tanny's bug: an
ERRORof kindinternal, never aFAIL. - Tested against an oracle. Every verdict Temporal Typing's conformance suite states must agree with Tanny's, and random specifications are checked against Python itself. See Testing.
- Inspectable.
tanny translateprints the TLA⁺ Manyan checks, so a verdict can be read down to the last step.