Pitia

On-demand TLA+ model-based testing for Erlang and Elixir using PropEr state machines.

v0.1.0 Erlang MIT

Pitia compiles a supported subset of TLA+ into an immutable executable model and derives PropEr state-machine tests for Erlang and Elixir — with no code generation step, no Java installation, and no external TLA+ tools.

  • Native BEAM compiler & evaluator: lexer, parser, compiler, and evaluator written in pure Erlang/OTP (0-deps in runtime).
  • Sequential & parallel testing: supports sequential state-machine checks, parallel model testing, and temporal safety monitoring.
  • Erlang & Elixir APIs: call directly from EUnit, Common Test, or ExUnit.

Installation

Add pitia to your rebar.config test profile:

{profiles, [
    {test, [
        {deps, [
            {pitia, "0.1.0"},
            {proper, "~> 1.5"}
        ]}
    ]}
]}.

Or in mix.exs:

def deps do
  [
    {:pitia, "~> 0.1.0", only: :test},
    {:proper, "~> 1.5", only: :test}
  ]
end