-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
40 lines (34 loc) · 1.3 KB
/
main.py
File metadata and controls
40 lines (34 loc) · 1.3 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
"""
Automated Theorem Proving in Propositional Calculus
Created By: Meline Mkrtchyan
Date: May 2023
"""
from controller import *
def main():
axioms = set()
lemmas = {}
controller(axioms, lemmas)
if __name__ == '__main__':
print("""
Automated theorem prover in Propositional Calculus(Logic)
Author: Meline Mkrtchyan
May 2023
Logic Language Elements:
x variable
f(t1, t2, ...) functor
P(t1, t2, ...) predicate, where t1, t2, ... are terms
not A negation
A and B conjunction
A or B disjunction
A implies B implication
forall x. A(x) universal quantification
exists x. A(x) existential quantification
Commands to work with axioms and lemmas:
axioms lists all existing axioms
lemmas lists all existing lemmas
axiom <formula> adds formula to axioms' list
lemma <formula> proves and adds formula to lemmas' list
remove <formula> deletes formula
reset resets lists of axioms and lemmas
""")
main()