Manyan

Manyan logo: a dragon and a koi in a circle

A fast model checker for TLA⁺, compatible with TLC and Apalache.

Manyan checks TLA⁺ specifications and model configurations as TLC does, with the same semantics, output and exit statuses, and checks them symbolically and type-checks them as Apalache does, without a JVM. It is an independent implementation in C11, made for fast feedback, predictable results, and embedding in other tools. TLC 1.8.0 and Apalache 0.63.0 are its oracles: every expected output in its tests comes from them.

Try it in your browser, with nothing installed.

Install

pip install manyan               # the executable, onto your PATH; or uv tool install manyan
npm install @soasme/manyan       # compiled to WebAssembly, for a web page or Node.js

Each release also has manyan built for macOS, Linux and Windows, and make builds it from source with a C11 compiler.

Use

$ manyan examples/DieHard
manyan version 0.14.0
Finished computing initial states: 1 distinct state generated.
Error: Invariant NotSolved is violated.
Error: The behavior up to this point is:
State 1: <Initial predicate>
/\ big = 0
/\ small = 0
...

manyan -workers auto SPEC checks with one worker per core; the output is the same for any number of workers. Scripts and CI written for TLC run it as they run TLC.

Why Manyan

Documentation

Manyan (曼衍, màn yǎn, said "mahn-yen") comes from Zhuangzi's Qi Wu Lun: “和之以天倪,因之以曼衍.” It evokes continuous unfolding and transformation, as of the states of a system.