Skip to content

A simple language for making propositional proofs in a Fitch-style natural deduction system

License

Notifications You must be signed in to change notification settings

Cubix1729/python-fitch-proof

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fitch

Fitch is a simple language for making propositional proofs in a Fitch-style natural deduction system. The interpreter parses the proofs, renders them as text, and optionally generates a LaTex document. You can find over 40 example proofs in total in the examples folder.

Usage

See the detailed langage explanation in the documentation.

The CLI interface program can be found in src/fitch_cli.py.

usage: fitch_cli.py [-h] [-l LATEX] [-v] filename

A small language to write, verify and format Fitch-style proofs in propositional logic

positional arguments:
  filename           the path to the file containing the proofs to interpret

options:
  -h, --help         show this help message and exit
  -l, --latex LATEX  write a LaTex document with all the proofs, using the 'fitch' package
  -v, --verify       if used, the output is printed only in case of error in the proof file given

Dependencies

  • lark for parsing logical expression and Fitch-style rules

The code was formatted using black, with line length 120. The generated LaTex output uses the fitch package, available on CTAN.

About

A simple language for making propositional proofs in a Fitch-style natural deduction system

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages