Skip to main content

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:

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

vitamin_model_checker-1.6.5.tar.gz (251.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vitamin_model_checker-1.6.5-py3-none-any.whl (397.2 kB view details)

Uploaded Python 3

File details

Details for the file vitamin_model_checker-1.6.5.tar.gz.

File metadata

  • Download URL: vitamin_model_checker-1.6.5.tar.gz
  • Upload date:
  • Size: 251.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.7

File hashes

Hashes for vitamin_model_checker-1.6.5.tar.gz
Algorithm Hash digest
SHA256 7deef9ce53e8f08e00b537de29b60ec7bf2a932b9baad6780b165044b52d9440
MD5 d805b8695ea812c2d1aed3ec3ba5bc77
BLAKE2b-256 1a24ef584817680e0af6d938192bf027a472cdad1ffb4816d4d9d364b5a7bc2c

See more details on using hashes here.

File details

Details for the file vitamin_model_checker-1.6.5-py3-none-any.whl.

File metadata

File hashes

Hashes for vitamin_model_checker-1.6.5-py3-none-any.whl
Algorithm Hash digest
SHA256 bcb72802fffc35a3eaa60c3fccbe25d5cbccfbfd15062705a3fe15ebf5d38202
MD5 afba491bf0c3bb0b69018cc379b26e2e
BLAKE2b-256 eef8bbe12834dd4acdcf83522536468a3197f6a08cca88c1bc5c2cf98883b2c1

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.6.5 This release

2 files

1.6.4

2 files

1.6.3

2 files

1.6.2

2 files

1.6.1

2 files

1.6.0

2 files

1.5

1 file

1.4

1 file

1.3

1 file

0.8

1 file

0.7

1 file

0.6

1 file

0.5

1 file

0.4

1 file

0.3

1 file

0.2

1 file

0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page