IDP-Z3 is a reasoning engine for knowledge represented using the FO(.) language.
Project description
idp-engine is a reasoning engine for knowledge represented using the FO(.) language. FO(.) is First Order logic, with various extensions to make it more expressive: types, arithmetic, inductive definitions, aggregates, and intensional objects. The idp-engine uses the Z3 SMT solver as a back-end.
It is developed by the Knowledge Representation group at KU Leuven in Leuven, Belgium, and made available under the GNU LGPL v3 License.
See more information at www.IDP-Z3.be.
Installation
idp_engine
can be installed from pypi.org, e.g. using pip:
pip install idp_engine
Get started
The following code illustrates how to run inferences on the IDP knowledge.
from idp_engine import IDP, model_expand
kb = IDP.parse("path/to/file.idp")
T, S = kb.get_blocks("T, S")
for model in model_expand(T,S):
print(model)
For more information, please read the documentation.
Contribute
Contributions are welcome! The repository is on GitLab.
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 idp_engine-0.8.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5285e6ac3616626d9012da0a7e7de088f6e909f6c3bf7e8f6cff5575779e1f64 |
|
MD5 | 81a81ed167cf5124d996881d99c6a864 |
|
BLAKE2b-256 | 029caac9cdc821a4869cabf99a926957d6b9e0a6a4ea6a144f78e8255916bd48 |