Apalache gaps

What -symbolic does not yet do that Apalache 0.63.0 does, measured on Apalache's own integration tests (test/tla/cli-integration-tests.md), which tests/apalache_port.py ports to tests/symbolic/apalache. Manyan aims to give Apalache's verdict: no error, the violated invariant or property, or deadlock, and the length of the counterexample. It prints in TLC's format, with TLC's exit statuses.

apalache-mc check

245 checks in all.

checks
ported, giving Apalache's verdict 191 invariants (state, action, trace), temporal properties, deadlock, --cinit, Gen, --max-error with --view
ported, refused as Apalache refuses them 35 below
skipped 5 below
not ported 14 12 repeat a check ported but for options that do not change the outcome, such as --out-dir and --tuning-options; 2 check Quint's JSON, not TLA+

Skipped

The reason is in SKIP of tests/apalache_port.py.

Specifications Apalache refuses

-symbolic refuses, as Apalache does: a type error; a missing Init, Next or invariant; a recursive operator or function; a set or <<>> whose type is left open; a Repeat whose count is no literal; a constant the configuration gives a value not of its type; -max-error without a VIEW; a set of sets of functions, {[S -> T] : x \in U}, which it would expand; a cycle its OVERRIDE_ definitions make; a LET definition of an extended module named as a variable or constant of the root; a disjunct, or an arm of IF or CASE, that assigns other variables than its siblings, or a Next that leaves a variable unassigned, as Apalache finds assignments, by the syntax alone, though TLC never takes it. These 35 checks expect Apalache's refusal, which tests/symbolic_runner.py compares as Refused, without the message. Where the assignments go through an instance's variables or a LAMBDA, Manyan does not check that rule, so it may check a specification Apalache rejects.

Differences in what is checked

Other commands

command tests
typecheck 75 -typecheck: all give Apalache's outcome (tests/typecheck/apalache)
parse 17 Apalache's own parser and its outputs (JSON, TLA+)
simulate 2 random symbolic runs
test, server, version, help 6

Only typecheck is implemented, by decision:

On the 62 annotated modules of tlaplus/Examples, -typecheck gives Apalache's outcome on all, with TLAPS's library beside the two that extend it (APEWD840, EWD998). Where declarations lack annotations, it names the one Apalache names: a variable before a constant, the last in the order of SANY's table of the module's names. -symbolic uses the types for Gen and for refusing what Apalache refuses. A Gen in an operator whose parameters leave its type open has the type each call instantiates.

Output

Manyan prints TLC's format and exit statuses: a deadlock exits with 11 and a temporal property's violation with 13, where Apalache exits with 12 for every violation. With -run-dir, Manyan writes the counterexamples in ITF as Apalache does. By decision it does not write Apalache's violation*.tla and violation*.json, the same trace again in Apalache's own TLA+ and JSON forms, nor Apalache's own variables in a lasso, those of its tableau, which ends with ITF's loop instead. vars is in declaration order, where Apalache's is its own.