A Tour of Temporal Typing Table of Contents
Start Tour →

A Tour of Temporal Typing

Learn how to write behavioural specifications directly on Python code using temporal-typing — invariants, actions, conformance, refined types, ghost state, function contracts, fairness, liveness, and refinement, with the semantics of TLA⁺. Every page is a standalone interactive lesson you can edit and check right in your browser.

Start the Tour → 5 modules · 25 interactive pages · works offline

1. Welcome

Start here: your first specification, plain Python execution, and TLA⁺ semantics.

2. Specifications & State

Classes as state machines: State, Init, Action, Requires, Invariant, Constant, Assume, and counterexamples.

3. Code, Contracts & Types

Verify real Python bodies, conformance, refined types with Where, Ghost state, Pure operators, and function contracts.

4. Liveness & Fairness

Model values, temporal properties, stuttering, weak fairness, strong fairness, and Two-Phase Commit.

5. Refinement & Models

Refinement mappings, finite domains, symmetry reduction, constraints, front-end diagnostics, and next steps.