-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.TXT
More file actions
49 lines (40 loc) · 1.17 KB
/
README.TXT
File metadata and controls
49 lines (40 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
PROJECT TITLE: Sequent calculus solver
GIT LINK: https://github.com/amartyads/sequent-solver.git
HOW TO START THIS PROJECT:
1) unzip the contents
2) navigate to folder
3) run by
java Main "<propositional logic formula>"
AUTHORS: Amartya DS 03694265, Arun S 03698283
USER INSTRUCTIONS:
The main method is in the Main class, and it takes one propositional logic formula as commandline argument.
At every step, the current sequent is shown, along with the rule that will be used next.
When the rules call for a split, it is shown as a left and right child.
If a formula does not hold, the prover exits.
The permissible alphabet is given below:
Top : T
Bottom : L
Atoms : A-Z (Except T and L)
Brackets: ()
Or: |
And: &
Implies: >
Not: ~
Turnstile: |-
Comma: ,
Please note: the system does not recognize operator precedence, please parenthesize accordingly.
Example:
java Main "((A>L)>A)>A"
Some tested formulae (some do not hold, included for demonstration):
"(A),(~B&C)|-~B"
"~(B&C)|-~B|~C"
"A|-~A" -Unsatisfiable
"(A|~A)|-(A&~A)" -Unsatisfiable
"(A>B)|-~A|B"
"~~A|-A"
"L|-A"
"(((B&A)&C)>A)"
"((A&B)>A)"
"(A>A)"
"(A)|-(A)"
"(A&(B|C))>((A&B)|(A&C))"