VITAMIN Model Checker
Core Python library for model checking multi-agent systems: given a model of agents that act together and a formula, it says whether the formula holds in the initial state and, for most logics, in which states it holds. It covers CTL, ATL, LTL and the other logics in Supported logics, with algorithms that work on the whole model in memory and visit its states directly (explicit-state).
The base model type is the concurrent game structure (CGS): states, agents, the joint actions that move between states, and the propositions true in each state. Most other model types add sections to it.
It needs Python 3.11 or later.
Install
pip install vitamin-model-checker
Development install from a checkout, with uv:
uv sync --extra dev --extra docs
ATL* and the vendored automata library (model_checker/automata/) need the
Spot automata library. On Linux, both install commands above also install spottl;
on macOS use conda-forge (details in
Requires Spot). Other logics do
not require Spot.
Quick start
From the repository root of a checkout, this checks the CTL formula EF q (some
path reaches a state where q holds) on a 4-state test model (format in
file formats):
from model_checker.algorithms.explicit.CTL.CTL import model_checking
result = model_checking("EF q", "model_checker/tests/fixtures/CGS/CTL/ctl_1agent_4states.txt")
print(result)
It prints a dict: res lists the states where the formula holds,
initial_state says whether the model's initial state is one of them, and
formula and model echo the input:
{'res': "Result: ('s0', 's1', 's2', 's3')", 'initial_state': 'Initial state s0: True', 'formula': 'EF q', 'model': 'model_checker/tests/fixtures/CGS/CTL/ctl_1agent_4states.txt'}
Most logics expose the same model_checking(formula, filename) entry point and
return a plain dict suitable for serialization. The exceptions, and the shared
pipeline execute_model_checking_with_parser that the package also exports,
are in Engine layer.
Supported logics
The 19 built-in logics are ATL, ATLF, ATL_STAR, CapATL, COTL, CTL, IATL, ICTL,
LTL, NatATL, NatATLF, NatSL, OATL, OL, RABATL, RBATL, TCTL, TOL and Wallet_ATL;
NatATL_Recall is a variant of NatATL with its own entry. Each logic has a page
in docs/algorithms/. The model types, the logics
that use each and their file layout are in
Supported model types.
The pyproject.toml entry points (vitamin.parsers, vitamin.models,
vitamin.benchmarks, vitamin.metadata) hold the full registry.
Related projects
Table 1 lists the projects around this library.
Table 1: The VITAMIN projects.
| Project | Role |
|---|---|
vitamin-model-checker |
Core Python library. |
vitamin-benchmark-model-checker |
pyperf benchmark tool for this package. |
vitamin-module-integrator |
Validates logic bundles and applies them to this repo. |
vitamin-workbench |
User-facing web/API application that calls the model checker. |
Links:
- Homepage: https://github.com/VITAMIN-organisation/vitamin-model-checker
- PyPI: https://pypi.org/project/vitamin-model-checker/
- Issues: https://github.com/VITAMIN-organisation/vitamin-model-checker/issues
Run tests
uv run pytest model_checker/tests/
Test-suite details live in model_checker/tests/README.md.
Docker
The Docker setup gives a clean Python 3.11 environment for building and testing the library:
cd docker
make build
make test
See docker/README.md for the Docker workflow.
Contributing and AI usage
The rules for using AI tools in a contribution are in CONTRIBUTING.md. How the maintainer used AI tools is in AIUSE.md. The people who have contributed are listed in CONTRIBUTORS.md.
License
Distributed under the SOURCE-AVAILABLE NON-COMMERCIAL LICENSE. See
LICENSE for the full text. Commercial use requires prior written permission from the
copyright holder. The vendored automata library in model_checker/automata/ is
under the MIT License instead; see
model_checker/automata/NOTICE.md.
Metadata
Release files for vitamin-model-checker 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vitamin_model_checker-2.0.0.tar.gz | 534.5 kB | Without provenance | Details for vitamin_model_checker-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vitamin_model_checker-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for vitamin_model_checker-2.0.0-py3-none-any.whl |
Total release size: 1.2 MB
Release files / vitamin_model_checker-2.0.0.tar.gz
| Download URL | vitamin_model_checker-2.0.0.tar.gz |
|---|---|
| Size | 534.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
13deac9d413a52a7eab0333e28f8e4e84d59a7dfd048523e4781f484dce79c6a
|
|
BLAKE2b-256 checksum How to use checksums |
90a7b95f1409907003a7ecd52aa4054e477ad8f00cd8123e9dbfa6140c81b150
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / vitamin_model_checker-2.0.0-py3-none-any.whl
| Download URL | vitamin_model_checker-2.0.0-py3-none-any.whl |
|---|---|
| Size | 682.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1ffa3fd875354d1c7fc25f3ff7cde64514bed4204da902b2faa5ba630e80c681
|
|
BLAKE2b-256 checksum How to use checksums |
79c639b438baeadf4453dfe1b9a623490f72dadc0fbbc98e7612215defd3583b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for vitamin-model-checker 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.