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.
Metadata
Release files for yapsap 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| yapsap-0.0.2.tar.gz | 17.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yapsap-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 41.4 kB
Release files / yapsap-0.0.2.tar.gz
| Download URL | yapsap-0.0.2.tar.gz |
|---|---|
| Size | 17.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7d1e42ec9a8d7af1b02329e48f012168b639682fcc92cc0708f13d6f875294b3
|
|
BLAKE2b-256 checksum How to use checksums |
325bac05ace0b0512db2b7cda048ad1c270f6c7a464cdc86cfa0b95bc1c80dac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.10.12 Linux/6.2.0-34-generic
|
Release files / yapsap-0.0.2-py3-none-any.whl
| Download URL | yapsap-0.0.2-py3-none-any.whl |
|---|---|
| Size | 24.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6f5df208d96dd3f087ddca62a9cb1d310fad21240243afe34291f060ba9e0eeb
|
|
BLAKE2b-256 checksum How to use checksums |
69739301e0b37e2e56355f07411e18344c1549fbfcc10fef40572bd573db1634
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.10.12 Linux/6.2.0-34-generic
|
Security for yapsap 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.