VITAMIN Model Checker
Core Python library for model checking multi-agent systems. It provides formula parsers, game-structure parsers, and explicit-state algorithms for CTL, ATL, LTL, and many extensions.
Requirements: Python 3.11+
Install
pip install vitamin-model-checker
Development install from a checkout:
python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev,docs]"
Quick start
from model_checker.algorithms.explicit.CTL.CTL import model_checking
result = model_checking("AG p", "path/to/model.txt")
print(result)
Most logics expose the same model_checking(formula, filename) entry point and
return a plain dict suitable for serialization.
Higher-level helpers are available from the public API:
from model_checker import FormulaParserFactory, execute_model_checking_with_parser
parser = FormulaParserFactory.get_parser("CTL")
# execute_model_checking_with_parser(...) for integrated workflows
Supported logics
Built-in formula logics include ATL, ATLF, CapATL, COTL, CTL, IATL, ICTL, LTL,
NatATL, NatATLF, NatSL, OATL, OL, RABATL, RBATL, TCTL, TOL, and Wallet_ATL. Model
structures include CGS, BCGS, CostCGS, CapCGS, WalletCGS, and timedCGS. See
pyproject.toml entry points (vitamin.parsers, vitamin.models,
vitamin.benchmarks) for the full registry.
Repository role
| 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. |
For the cross-project view, see docs/vitamin-stack.md.
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
pytest model_checker/tests/unit/
pytest model_checker/tests/integration/
pytest model_checker/tests/
make test # unit + integration style suite, excluding slow tests
Test-suite details live in model_checker/tests/README.md.
Docker
Docker is mainly for isolated build/test checks:
cd docker
make build
make test
See docker/README.md for the Docker workflow.
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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vitamin_model_checker-1.6.3.tar.gz.
File metadata
- Download URL: vitamin_model_checker-1.6.3.tar.gz
- Upload date:
- Size: 256.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
565945d9d3988961977b1897058dc10b773f5b80aeca6555d6e36b3b9c1db47f
|
|
| MD5 |
4f7c969e237b19ae15ce0d8a50c81e91
|
|
| BLAKE2b-256 |
fdb2d4d7a883ca92fab4d72f988b231fc6142e2aae75e22f8bdef23c61c2042a
|
File details
Details for the file vitamin_model_checker-1.6.3-py3-none-any.whl.
File metadata
- Download URL: vitamin_model_checker-1.6.3-py3-none-any.whl
- Upload date:
- Size: 400.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12d21f133cf7168769f92ab31bda7aa13eb5a43aaa27397808148dedb7755816
|
|
| MD5 |
fd01899565eb66e3b7f49a3cc1c56ac5
|
|
| BLAKE2b-256 |
0ce38540cb404a45c3c62a44fa9e1e16d8354423669c75a2e74ee8c9e4e707ee
|