judge: Tableau-based theorem prover.

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.


An implementation of a decision procedure for classical logic and justification logic.

[Skip to ReadMe]


Change logCHANGELOG.md
Dependenciesaeson (>= && <, ansi-wl-pprint (>= && <, attoparsec (>= && <, base (>=4.7 && <5), bytestring (>= && <, containers (>= && <, directory (>= && <, filepath (>= && <, judge, mtl (==2.2.1), optparse-applicative (>= && <, pointedlist (==0.6.1), terminal-size (==, texmath (>=0.10.1 && <0.11.0), text (==, transformers (==, unordered-containers (==, utf8-string (==, vector (>= && <, yaml (>=0.8.23 && <0.8.26) [details]
Home pagehttps://github.com/slakkenhuis/judge#readme
Source repositoryhead: git clone https://github.com/slakkenhuis/judge
UploadedMon Feb 5 15:14:08 UTC 2018 by slakkenhuis




Maintainers' corner

For package maintainers and hackage trustees

Readme for judge-

[back to package description]


judge is a modular implementation of a decision procedure for classical and justification logics, through a tableau-based theorem prover.


After cloning the repository, the recommended installation method is through Stack:

stack install judge

Alternatively, judge can be installed through Cabal.


judge expects a logical system to be defined in the YAML or JSON format. This file will specify the type of proof system and the logical family (although at the moment, only the respective values tableau and justification are recognised). It also provides the rules of inference. See the logic directory for examples.

If no target formula(s) are provided via -g, formulas are read off the standard input. If no output file is provided via -o, the result is written to the standard output. By default, the format is plain text; add -f LaTeX to obtain LaTeX code instead.

For example, the following will construct proofs for theorems of the logic Jcs (with c:(A→B→A) ∊ CS), and produces a PDF file to visualise them:

judge logic/J.yml \
    -a "c:(A->B->A)" \
    -f LaTeX \
     < formulas.txt \
     | pdflatex


Notable missing features are detailed on the issue tracker (export).

Contributions that extend judge to different logical families (modal, first order...) or proof systems (sequent, natural deduction...) are welcomed.