A hyperintensional model checker for counterfactual conditionals
Project description
Model Checker
This project draws on the Z3 theorem prover to provide tools for proving theorems and finding countermodels for counterfactual conditional and modal claims.
Semantics
The semantics included is hyperintensional insofar as sentences are evaluated at states which may be partial rather than total as in intensional semantic theories.
States are modeled by bitvectors (e.g., #b00101
) of a specified length, where state fusion is modeled by the bitwise OR operator |
.
More information can be found in the GitHub repository. For the background hyperintensional theory, see this paper.
Syntax
The language currently includes operators for the counterfactual conditional boxright
, modal operators for necessity Box
and possibility Diamond
, and the extensional operators for conjunction wedge
, disjunction vee
, material conditional rightarrow
, material biconditional leftrightarrow
, and negation neg
.
Instructions
To generate a test file run model-checker
without arguments.
Alternatively, run model-checker path/to/test_file.py
if the test_file.py
already exists.
A number of examples are provided in the GitHub repository.
Each file must specify a set of premises
which are treated conjunctively, conclusions
which are treated disjunctively, and the number N
of atomic states to include in each model.
Optionally, the user can specify whether to print the Z3 constraints when a model is found, or the unsatisfiable core when no model exists.
Project details
Release history Release notifications | RSS feed
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
Hashes for model_checker-0.2.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed9e9852b27e59319bdd3fea1d16adb984299b31a3035d5dcc38b8419a44d0ab |
|
MD5 | c9833b7cfe7730bdfc43c911591cda79 |
|
BLAKE2b-256 | d27813696c3870fb7381abe4368b41fdfc1d0c838b588b3a4cd77b379b459fea |