Skip to content

Propositional Logic Theorem Prover using Resolution-Refutation takes Knowledge Base (i.e., formulae) and Query as input and implement a refutation proof (by first converting the given formulae into CNF), and report the result (1 if the query holds, and 0 otherwise). Additionally, the program have an option to print the resolution steps used in t…

Notifications You must be signed in to change notification settings

ChakshuGupta13/propositional-logic-theorem-prover-using-resolution-refutation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Propositional Logic Theorem Prover using Resolution-Refutation

Build Status

Method main in main.py is responsible for taking Knowledge Base (i.e., formulae) and Query as input and implement a refutation proof (by first converting the given formulae into CNF), and report the result (1 if the query holds, and 0 otherwise). Additionally, the program have an option to print the resolution steps used in the proof.

Input Format

  • First line contains two integer value 'n' the number of formulae and 'm' the mode.
  • Followed by the formulae (propositional sentences) in the next 'n' lines.
  • Last line would contain the propositional sentence that needs to be proved.
  • We will use the following characters for different operators/symbols:
    • OR : |
    • AND : &
    • NOT : !
    • IMPLIES : >
    • IFF (bidirectional) : =
    • OPENING BRACKET : (
    • CLOSING BRACKET : )

About

Propositional Logic Theorem Prover using Resolution-Refutation takes Knowledge Base (i.e., formulae) and Query as input and implement a refutation proof (by first converting the given formulae into CNF), and report the result (1 if the query holds, and 0 otherwise). Additionally, the program have an option to print the resolution steps used in t…

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages