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#

ToolChecksNeedsCounterexamples
python -m temporal_typingWell-formedness: levels, bindings, domainsPythonNone: diagnostics only
TLA⁺ by hand + TLCEvery reachable state of a separate specA JVMTLA⁺ traces
TannyEvery reachable state, liveness, contracts, refinement, and the code's conformanceNothing: one binaryPython 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 ERROR of kind internal, never a FAIL.
  • 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 translate prints the TLA⁺ Manyan checks, so a verdict can be read down to the last step.