https://github.com/csvitor-dev/pytableaux
Mini project of a Tableaux solver (deductive system for propositional logic) using Python 3.
https://github.com/csvitor-dev/pytableaux
Last synced: 10 months ago
JSON representation
Mini project of a Tableaux solver (deductive system for propositional logic) using Python 3.
- Host: GitHub
- URL: https://github.com/csvitor-dev/pytableaux
- Owner: csvitor-dev
- Created: 2024-08-23T14:45:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-14T21:06:03.000Z (over 1 year ago)
- Last Synced: 2025-02-02T06:16:34.656Z (12 months ago)
- Language: Python
- Size: 48.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PyTableaux | Tableaux solver with _Python_
Before anything else, set up your _**Python**_ environment (`venv`) with the follwing command in the current folder:
The first step is to install the version of _**Python**_ used in the project, which is contained in the file `.python-version`:
```bash
pyenv install
```
Now create the environment using this installed version:
```bash
pyenv virtualenv
pyenv activate
```
And install the dependencies:
```bash
pip install --require-virtualenv -r ./requirements.txt
```
To insert an input file, simpley enter the following in the terminal:
```bash
python main.py < ./inputs/.tab
```
For example, let's insert to first test file:
```bash
python main.py < ./inputs/example.tab
```
This example file will generate the following output:
```bash
satisfiable
```
Now, let's test a file that admits an **UNSAT** formula:
```
python main.py < ./inputs/example2.tab
```
Generating the following output:
```bash
unsatisfiable
Tp Fq
```