Yet Another Python SAturation Prover
Project description
yapsap
yapsap is Yet Another Python SAturation-style Prover. Currently, it can only prove theorems in TPTP library formal language in clausal normal form. yapsap implements the given clause algorithm and was inspired by PyRes.
How to Install
The best way to install this package is to use pip:
pip install git+https://github.com/inpefess/yapsap.git
How to use
from random import choice, seed
from yapsap import YapsaProver
class RandomProver(YapsaProver):
def proof_attempt(self) -> None:
while not self.proof_found:
self._step(choice(list(self.state.keys())))
prover = RandomProver(
"./yapsap/resources/TPTP-mock/Problems/TST/TST001-1.p"
)
seed(0)
prover.proof_attempt()
print(prover.state)
How to Contribute
Pull requests are welcome. To start:
git clone https://github.com/inpefess/yapsap
cd yapsap
# activate python virtual environment with Python 3.8+
pip install -U pip
pip install -U setuptools wheel poetry
poetry install
# recommended but not necessary
pre-commit install
To check the code quality before creating a pull request, one might run the script local-build.sh. It locally does nearly the same as the CI pipeline after the PR is created.
Reporting issues or problems with the software
Questions and bug reports are welcome on the tracker.
More documentation
More documentation can be found here.
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
File details
Details for the file yapsap-0.0.2.tar.gz
.
File metadata
- Download URL: yapsap-0.0.2.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.12 Linux/6.2.0-34-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d1e42ec9a8d7af1b02329e48f012168b639682fcc92cc0708f13d6f875294b3 |
|
MD5 | 7cf9974fd99974c9b04d584c519642f1 |
|
BLAKE2b-256 | 325bac05ace0b0512db2b7cda048ad1c270f6c7a464cdc86cfa0b95bc1c80dac |
File details
Details for the file yapsap-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: yapsap-0.0.2-py3-none-any.whl
- Upload date:
- Size: 24.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.10.12 Linux/6.2.0-34-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f5df208d96dd3f087ddca62a9cb1d310fad21240243afe34291f060ba9e0eeb |
|
MD5 | 28c27ec8db7a5aa11b5cdfd975c1d674 |
|
BLAKE2b-256 | 69739301e0b37e2e56355f07411e18344c1549fbfcc10fef40572bd573db1634 |