Skip to main content

Yet Another Python SAturation Prover

Project description

PyPI versionCircleCIDocumentation Statuscodecov

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yapsap-0.0.2.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

yapsap-0.0.2-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

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

Hashes for yapsap-0.0.2.tar.gz
Algorithm Hash digest
SHA256 7d1e42ec9a8d7af1b02329e48f012168b639682fcc92cc0708f13d6f875294b3
MD5 7cf9974fd99974c9b04d584c519642f1
BLAKE2b-256 325bac05ace0b0512db2b7cda048ad1c270f6c7a464cdc86cfa0b95bc1c80dac

See more details on using hashes here.

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

Hashes for yapsap-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6f5df208d96dd3f087ddca62a9cb1d310fad21240243afe34291f060ba9e0eeb
MD5 28c27ec8db7a5aa11b5cdfd975c1d674
BLAKE2b-256 69739301e0b37e2e56355f07411e18344c1549fbfcc10fef40572bd573db1634

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page