A Tour of Temporal Typing Refinement & Models · 5/5
Refinement & Models · Page 5 of 5

Where to Go From Here

Congratulations — you've completed A Tour of Temporal Typing!

You now know how to specify state machines, invariants, conforming Python implementations, refined types, ghost variables, function contracts, temporal properties, weak and strong fairness, refinement mappings, and finite models.

Try it on your own machine

pip install temporal-typing
python -m temporal_typing path/to/your_spec.py

Checkers & further reading

Sandbox: The editor on the right is a free playground. Try editing Playground — add a state variable, an invariant, or a second action — and click Check!
Click Check (or press Shift+Enter) to run the front-end and check this specification. Switch to TLA⁺ to view its TLA⁺ meaning.
---- MODULE Playground ----
EXTENDS Integers
VARIABLE count

Init == count = 0
Inc   == count < 10 /\ count' = count + 1
Reset == count' = 0
Next  == Inc \/ Reset
Spec  == Init /\ [][Next]_count

InBounds == 0 <= count /\ count <= 10
====