This repository was archived by the owner on Dec 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresults.txt
More file actions
220 lines (218 loc) · 11.6 KB
/
results.txt
File metadata and controls
220 lines (218 loc) · 11.6 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
---------------------------proof_engine outputs------------------------------------------
CK's EXAMPLES:
------1---------
Proof:
(((not b) and (not a)) -> (not a))
≡ (not (not b and not a) or not a) Implication Law
≡ ((not not b or not not a) or not a) DeMorgan Law 2
≡ ((b or not not a) or not a) Simplification Law (Double Negation)
≡ ((b or a) or not a) Simplification Law (Double Negation)
≡ (b or (a or not a)) Associative Law OR
≡ (b or 1) Negation Law OR
≡ (1) Simplification Law
------2---------
Proof:
not((a or (a and b)) -> a)
≡ (not (not (a or a and b) or a)) Implication Law
≡ (not (a or not (a or a and b))) Commutative Law OR
≡ (not (a or not a)) Absorption Law 1
≡ (not 1) Negation Law OR
≡ (0) Simplification Law
-----3----------
Proof:
(a or (a and b)) -> a
≡ (not (a or a and b) or a) Implication Law
≡ (not a or a) Absorption Law 1
≡ (1) Negation Law OR
-----4----------
expr = "(((y and x) or x) and y)" # NOT TAUTOLOGY
Proof:
(((y and x) or x) and y)
≡ (y and (x and y or x)) Commutative Law AND
≡ ((x and y or x) and y) Commutative Law AND
≡ (x and y) Absorption Law 1
-----5----------
Proof:
not ((c or 1) -> (a and not ((b or (not b)) and (a and (a or b)))))
≡ (not (not (c or 1) or a and not ((b or not b) and (a and (a or b))))) Implication Law
≡ (not (a and (not (b or not b) or not (a and (a or b))) or not (c or 1))) Commutative Law OR
≡ (not (a and (not (b or not b) or not (a and (a or b))) or not 1)) Simplification Law
≡ (not (a and (not (b or not b) or not a) or not 1)) Absorption Law 2
≡ (not (a and (not (b or not b) or not a) or 0)) Simplification Law
≡ (not (a and (not 1 or not a) or 0)) Negation Law OR
≡ (not (a and (not 1 or not a))) Simplification Law
≡ (not (a and (0 or not a))) Simplification Law
≡ (not (not a or 0) or not a) Commutative Law OR
≡ (not (not a) or not a) Simplification Law
≡ (1) Negation Law OR
-----6----------
Proof:
not not ((b or not b) and (a and (a or b)))
≡ (not not (1 and (a and (a or b)))) Negation Law OR
≡ (1 and (a and (a or b))) Simplification Law (Double Negation)
≡ (a and (a or b)) Simplification Law
≡ a Absorption Law 2
-----7----------
Proof:
(c or (b or not b)) or ((not (c and (c or b)) > (c or 1)) and (a and not a))
≡ ((c or (b or not b)) or not (c and (c or b)) > (c or 1) and 0) Negation Law AND
≡ ((c or (b or not b)) or 0) Simplification Law
≡ ((c or (b or not b)) or 0) Simplification Law
≡ ((c or 1) or 0) Negation Law OR
≡ (c or 1) Simplification Law
≡ (1) Simplification Law
-----8----------
(((d and (d and ( d or a))) or (not c or c)) > (c and not c )) > (b and not b)
≡ (((d and d or (not c or c)) > (c and not c)) > (b and not b)) Absorption Law 2
≡ (((d or (not c or c)) > (c and not c)) > (b and not b)) Idempotent Law AND
≡ ((((c or not c) or d) > (c and not c)) > (b and not b)) Commutative Law OR
≡ (((1 or d) > (c and not c)) > (b and not b)) Negation Law OR
≡ ((1 > (c and not c)) > (b and not b)) Simplification Law
≡ (not (not 1 or c and not c) or b and not b) Implication Law
≡ (not (0 or c and not c) or b and not b) Simplification Law
≡ (b and not b or not (0 or c and not c)) Commutative Law OR
≡ (b and not b or not (c and not c)) Simplification Law
≡ (0 or not 0) Negation Law AND
≡ (not 0) Simplification Law
≡ (1) Simplification Law
-----9----------
Proof:
(not ((a or a) and (a or b) or (a and b) and b) or ((a or a) and (a or b) or (a and b) and b))
≡ (not ((a or a) and (a or b)) and not ((a and b) and b) or ((a or a) and (a or
b) or (a and b) and b)) DeMorgan Law 1
≡ (not ((a or a) and (a or b)) and not ((a and b) and b) or ((a or a) and (a or
b) or a and (b and b))) Associative Law AND
≡ (not ((a or a) and (a or b)) and not ((a and b) and b) or (a and (a or b) or
a and (b and b))) Idempotent Law OR
≡ (not ((a or a) and (a or b)) and not (a and (b and b)) or (a and (a or b) or
a and (b and b))) Associative Law AND
≡ (not ((a or a) and (a or b)) and not (a and (b and b)) or (a or a and (b and
b))) Absorption Law 2
≡ (not ((a or a) and (a or b)) and not (a and (b and b)) or a) Absorption Law 1
≡ (not (a and (a or b)) and not (a and (b and b)) or a) Idempotent Law OR
≡ (not a and not (a and (b and b)) or a) Absorption Law 2
≡ (not a and (not a or not (b and b)) or a) DeMorgan Law 2
≡ ((not a) or a) Absorption Law 2
≡ (1) Negation Law OR
≡ TAUTOLOGY
-----10----------
(P and (P > Q)) > Q
≡ (not (P and (not P or Q)) or Q) Implication Law
≡ (not ((not P or Q) and P) or Q) Commutative Law AND
≡ (Q or not ((not P or Q) and P)) Commutative Law OR
≡ (not ((not P or Q) and P) or Q) Commutative Law OR
≡ (not (P and (not P or Q)) or Q) Commutative Law AND
≡ ((not P or not (not P or Q)) or Q) DeMorgan Law 2
≡ (not P or (not (not P or Q) or Q)) Associative Law OR
≡ (not P or (not not P and not Q or Q)) DeMorgan Law 1
≡ (not P or (P and not Q or Q)) Simplification Law (Double Negation)
≡ (not P or (not Q and P or Q)) Commutative Law AND
≡ ((not Q and P or Q) or not P) Commutative Law OR
≡ (not Q and P or (Q or not P)) Associative Law OR
≡ (P and not Q or (Q or not P)) Commutative Law AND
≡ (not Q and P or (Q or not P)) Commutative Law AND
≡ ((Q or not P) or not Q and P) Commutative Law OR
≡ (((Q or not P) or not Q) and ((Q or not P) or P)) Distributive Law OR
≡ ((Q or (not P or not Q)) and (Q or (not P or P))) Associative Law OR
≡ ((Q or (not P or not Q)) and (Q or 1)) Negation Law OR
≡ ((Q or (not P or not Q)) and 1) Simplification Law
≡ (((not P or not Q) or Q) and 1) Commutative Law OR
≡ ((not P or not Q) or Q) Simplification Law
≡ (not P or (not Q or Q)) Associative Law OR
≡ (not P or 1) Negation Law OR
≡ (1) Simplification Law
≡ TAUTOLOGY
-----11----------
((P > Q) and not Q) > (not P)
≡ ((not Q and P > Q) > (not P)) Commutative Law AND
≡ (not (not Q and (not P or Q)) or not P) Implication Law
≡ ((not not Q or not (not P or Q)) or not P) DeMorgan Law 2
≡ ((Q or not (not P or Q)) or not P) Simplification Law (Double Negation)
≡ ((Q or not not P and not Q) or not P) DeMorgan Law 1
≡ ((Q or P and not Q) or not P) Simplification Law (Double Negation)
≡ (not P or (Q or P and not Q)) Commutative Law OR
≡ (P > (Q or P and not Q)) Implication Law RHS
≡ (P > (P and not Q or Q)) Commutative Law OR
≡ (not P or (P and not Q or Q)) Implication Law
≡ (not P or (not Q and P or Q)) Commutative Law AND
≡ (not P or (P and not Q or Q)) Commutative Law AND
≡ (P > (P and not Q or Q)) Implication Law RHS
≡ (P > (Q or P and not Q)) Commutative Law OR
≡ (P > (P and not Q or Q)) Commutative Law OR
≡ (not P or (P and not Q or Q)) Implication Law
≡ ((P and not Q or Q) or not P) Commutative Law OR
≡ (not P or (Q or P and not Q)) Commutative Law OR
≡ (not P or (Q or P) and (Q or not Q)) Distributive Law OR
≡ ((not P or (Q or P)) and (not P or (Q or not Q))) Distributive Law OR
≡ (((Q or P) or not P) and (not P or (Q or not Q))) Commutative Law OR
≡ (((Q or P) or not P) and (not P or 1)) Negation Law OR
≡ (((Q or P) or not P) and 1) Simplification Law
≡ ((Q or P) or not P) Identity Law
≡ (Q or (P or not P)) Associative Law OR
≡ (Q or 1) Negation Law OR
≡ (1) Simplification Law
≡ TAUTOLOGY
-----12----------
((P or Q) and not P ) > Q
≡ (not ((P or Q) and not P) or Q) Implication Law
≡ ((not (P or Q) or not not P) or Q) DeMorgan Law 2
≡ ((not (P or Q) or P) or Q) Simplification Law (Double Negation)
≡ ((not P and not Q or P) or Q) DeMorgan Law 1
≡ ((not (P or Q) or P) or Q) DeMorgan Law RHS 1
≡ ((not P and not Q or P) or Q) DeMorgan Law 1
≡ (not P and not Q or (P or Q)) Associative Law OR
≡ (not (P or Q) or (P or Q)) DeMorgan Law RHS 1
≡ (1) Negation Law OR
≡ TAUTOLOGY
-----13----------
(P > C) > (not P)
≡ (not (not P or C) or not P) Implication Law
≡ (not P or not (not P or C)) Commutative Law OR
≡ (not (P and (not P or C))) DeMorgan Law RHS 2
≡ (not ((not P or C) and P)) Commutative Law AND
≡ (not (P and (not P or C))) Commutative Law AND
≡ (not (P and not P or P and C)) Distributive Law AND
≡ (not (0 or P and C)) Negation Law AND
≡ (not (P and C)) Simplification Law
≡ NOT TAUTOLOGY
-----14----------
(P > Q) > ((P or R) > (Q or R))
≡ ((P > Q) > ((R or P) > (Q or R))) Commutative Law OR
≡ (not (not P or Q) or (not (R or P) or (Q or R))) Implication Law
≡ (((Q or R) or not (R or P)) or not (not P or Q)) Commutative Law OR
≡ (not (not P or Q) or ((Q or R) or not (R or P))) Commutative Law OR
≡ (not (not P or Q) or (Q or (R or not (R or P)))) Associative Law OR
≡ (not not P and not Q or (Q or (R or not (R or P)))) DeMorgan Law 1
≡ (P and not Q or (Q or (R or not (R or P)))) Simplification Law (Double Negation)
≡ (P and not Q or (Q or (R or not R and not P))) DeMorgan Law 1
≡ (((R or not R and not P) or Q) or P and not Q) Commutative Law OR
≡ (P and not Q or (Q or (R or not R and not P))) Commutative Law OR
≡ (P and not Q or (Q or (R or not R) and (R or not P))) Distributive Law OR
≡ (P and not Q or (Q or (R or not R)) and (Q or (R or not P))) Distributive Law OR
≡ (P and not Q or (Q or (R or not R) and (R or not P))) Distributive Law RHS OR
≡ (P and not Q or (Q or (R or not R)) and (Q or (R or not P))) Distributive Law OR
≡ (P and not Q or (Q or 1) and (Q or (R or not P))) Negation Law OR
≡ (P and not Q or 1 and (Q or (R or not P))) Simplification Law
≡ (1 and (Q or (R or not P)) or P and not Q) Commutative Law OR
≡ ((Q or (R or not P)) or P and not Q) Simplification Law
≡ (((Q or (R or not P)) or P) and ((Q or (R or not P)) or not Q)) Distributive Law OR
≡ ((Q or ((R or not P) or P)) and ((Q or (R or not P)) or not Q)) Associative Law OR
≡ (Q or ((R or not P) or P) and not Q) Distributive Law RHS OR
≡ ((Q or ((R or not P) or P)) and (Q or not Q)) Distributive Law OR
≡ ((Q or (R or (not P or P))) and (Q or not Q)) Associative Law OR
≡ ((Q or not Q) and (Q or (R or (not P or P)))) Commutative Law AND
≡ (1 and (Q or (R or (not P or P)))) Negation Law OR
≡ (Q or (R or (not P or P))) Simplification Law
≡ (Q or (R or 1)) Negation Law OR
≡ (Q or 1) Simplification Law
≡ (1 or Q) Commutative Law OR
≡ (1) Simplification Law
≡ TAUTOLOGY
------------------------pure llm results---------------------------------------------
Pure llm (no symbolic) results:
python3 guide/proof_engine.py --early_stop --verbose --expr="(a or (a and b)) -> a"
Proof:
(a or (a and b)) -> a Absorption
≡ (a or (a and b)) -> a Simplification
≡ a -> a Identity
≡ a