Changelog

0.3.0#

  • Pass all 177 new Python conformance tests mirroring Manyan's tests/spec suite (temporal-typing 0.7.0).
  • Enforce constant level in Assume clauses and reject weak_fairness/strong_fairness outside Fairness.
  • Report the failing Assume clause 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 on prime(enabled(...)), enumerate prime(s.x) in (...), and keep property names for always(False).
  • Implement choose, enumerate, zip, multi-for comprehensions, (k, v) dict comprehensions, and string + / len(str).
  • Match temporal-typing's front-end across all models, errors, compiler syntax errors, undefined-name order, and symmetry-dropped locations.
  • Support WebAssembly execution in the browser (javascript/), tanny translate --json, and unread diagnostics in tanny check --json.

0.2.0#

  • temporal-typing 0.6.0, and Manyan 0.20.1 (the manyan-sys bindings take its new messages_as_errors option).
  • Verdicts are Python's in 21 cases that tanny 0.1.0 got wrong, 9 of them a PASS where Python fails. Among them: **, bool mixed with int, tuple unpacking, aliasing of collections, defaults from field(), names TLA⁺ reserves, and a while loop that does not stop.
  • Module constants (N = 3), and swaps such as a[i], a[j] = a[j], a[i].
  • s.x in range(...) in an Init clause is enumerated.
  • A specification with no state variable is checked, as Python has it.
  • An or in 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.get gives 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, unchanged and enabled outside 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.py 400 times faster.
  • A harness (docs/testing.md): regressions and random specifications checked against CPython, TLA⁺ models of the lowering and of Py.tla with 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.py read 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 manyan and manyan-sys crates: Manyan from Rust.