2-1, CS-F214, Logic in CS Assignment II. We have to make
a framework to check the
proof of natural deduction
in Propositional Logic/ Predicate Logic.
- Premise
- AND introduction/elimination
- OR introduction
- IMPLIES elimination
- MT
::= p | ¬p | ¬() | ( ∧ ) | ( ∨ ) | ( → ) ::= ∧i | ∧e1 | ∧e2 | ∨i1 | ∨i2 | →e |P
First line: n (number of statements) Next n lines: /< rule >[ /line1[ /line2 ] ] (parameter in [] is optional whose existence will be determined by < rule > )
Valid Proof (or) Invalid Proof
- Line number starts from 1.
- should be
perfectly parenthesized
, e.g. ((a ∧ b) ∧ c) is valid, (a ∧ b) ∧ c is invalid, ((a ∧ b)) is invalid, (a ∧ b) is valid, (a ∧ b ∧ c) is invalid, p is valid, (p) is invalid. - ¬ can be succeeded by a literal or ‘(‘ only.
- C++
- Doxygen
navigate to html folder
open index.html