Skip to content

Propositional logic prover producing natural deduction proofs

License

Notifications You must be signed in to change notification settings

mr-ohman/ndprover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NDProver

NDProver is a propositional logic prover producing natural deduction proofs.

Example runs

$ echo "~p, ~q |- ~(p | q)" | ./ndprover
~p, ~q |- ~(p | q) has proof:
~p ::: Premise
~q ::: Premise
p -> _ ::: ~e ~p
q -> _ ::: ~e ~q
------OPENING-----------------------------
  p | q ::: Assumption
  ------OPENING-----------------------------
    p ::: Assumption
    _ ::: ->e p, p -> _
  ------CLOSING-----------------------------
  ------OPENING-----------------------------
    q ::: Assumption
    _ ::: ->e q, q -> _
  ------CLOSING-----------------------------
  _ ::: |e p | q
------CLOSING-----------------------------
p | q -> _ ::: ->i
~(p | q) ::: ~i p | q -> _
$ echo "p -> q, q -> p |- p & q" | ./ndprover
p -> q, q -> p |- p & q has counterexample:
p = False
q = False

About

Propositional logic prover producing natural deduction proofs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published