Changelog
0.3.0#
- Pass all 177 new Python conformance tests mirroring Manyan's tests/spec suite (
temporal-typing0.7.0). - Enforce constant level in
Assumeclauses and rejectweak_fairness/strong_fairnessoutsideFairness. - Report the failing
Assumeclause name on assumption failures, and stop blaming the preceding action for runtime errors in invariants or constraints. - Emit unselected action definitions for
enabled(...), preserve primes onprime(enabled(...)), enumerateprime(s.x) in (...), and keep property names foralways(False). - Implement
choose,enumerate,zip, multi-forcomprehensions,(k, v)dict comprehensions, and string+/len(str). - Match
temporal-typing's front-end across all models, errors, compiler syntax errors, undefined-name order, andsymmetry-droppedlocations. - Support WebAssembly execution in the browser (
javascript/),tanny translate --json, andunreaddiagnostics intanny check --json.
0.2.0#
- temporal-typing 0.6.0, and Manyan 0.20.1 (the
manyan-sysbindings take its newmessages_as_errorsoption). - Verdicts are Python's in 21 cases that tanny 0.1.0 got wrong, 9 of
them a PASS where Python fails. Among them:
**,boolmixed withint, tuple unpacking, aliasing of collections, defaults fromfield(), names TLA⁺ reserves, and awhileloop that does not stop. - Module constants (
N = 3), and swaps such asa[i], a[j] = a[j], a[i]. s.x in range(...)in anInitclause is enumerated.- A specification with no state variable is checked, as Python has it.
- An
orin a guard or a body reads its right side only when its left is false, as Python's does. - A class or function defined twice is its last definition, as Python binds it.
dict.getgives its value's type or its default's;eventually(1), as any temporal operand, is tested for truth.- Refused, where 0.1.0 gave an internal error or a PASS: values Python
cannot order or add, a value stored or returned that is not of its
declared type, a bool stored as an int, a body that falls off its end
where a result is declared,
prime,unchangedandenabledoutside a predicate, and an integer past what TLA⁺ holds. - A refinement whose initial state the abstract specification does not allow is FAIL refinement init.
- The front-end reads
limits.py400 times faster. - A harness (
docs/testing.md): regressions and random specifications checked against CPython, TLA⁺ models of the lowering and ofPy.tlawith planted bugs, and a benchmark gate (docs/benchmark.md).
Release checks:
make check: 87/87 verdicts as expected; 51 regressions and 300 random specifications agree with Python; 14/14 planted bugs found.make fuzz RUNS=3000 SEED=35: 3000 random specifications, 0 differ; 3000 mutants, no internal error, 70 timeouts, each of a model built unbounded or large (duplicate/,imports/,limit = 10**9). Seeds 31 to 34 found the bugs above, each now a regression.make tla-oracle: Manyan and TLC agree on MCLowering (70545 states) and MCPy (7110); 14/14 planted bugs found.make bench-check: 5 measured, 0 worse (counters 0.91 s, two_phase 0.60 s,limits.pyread in 0.17 s).
0.1.0#
tanny check: a verdict for each model of temporal-typing 0.5.0, checked by Manyan 0.19.1 in process.tanny translate: the TLA⁺ a model is checked as.- The
manyanandmanyan-syscrates: Manyan from Rust.