author | ballarin |
Thu, 28 Nov 2002 15:44:34 +0100 | |
changeset 13736 | 6ea0e7c43c4f |
parent 6799 | 95abcc002a21 |
permissions | -rw-r--r-- |
1462 | 1 |
(* Title: FOL/ex/cla.ML |
0 | 2 |
ID: $Id$ |
1459 | 3 |
Author: Lawrence C Paulson, Cambridge University Computer Laboratory |
665
97e9ad6c1c4a
FOL/ex/cla: proofs now use deepen_tac instead of best_tac FOL_dup_cs
lcp
parents:
644
diff
changeset
|
4 |
Copyright 1994 University of Cambridge |
0 | 5 |
|
6 |
Classical First-Order Logic |
|
7 |
*) |
|
8 |
||
1462 | 9 |
writeln"File FOL/ex/cla.ML"; |
0 | 10 |
|
5150 | 11 |
context FOL.thy; |
12 |
||
2601
b301958c465d
Renamed structure Int (intuitionistic prover) to IntPr to prevent clash
paulson
parents:
2574
diff
changeset
|
13 |
open Cla; (*in case structure IntPr is open!*) |
0 | 14 |
|
5150 | 15 |
Goal "(P --> Q | R) --> (P-->Q) | (P-->R)"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
16 |
by (Blast_tac 1); |
0 | 17 |
result(); |
18 |
||
19 |
(*If and only if*) |
|
20 |
||
5150 | 21 |
Goal "(P<->Q) <-> (Q<->P)"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
22 |
by (Blast_tac 1); |
0 | 23 |
result(); |
24 |
||
5150 | 25 |
Goal "~ (P <-> ~P)"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
26 |
by (Blast_tac 1); |
0 | 27 |
result(); |
28 |
||
29 |
||
30 |
(*Sample problems from |
|
31 |
F. J. Pelletier, |
|
32 |
Seventy-Five Problems for Testing Automatic Theorem Provers, |
|
33 |
J. Automated Reasoning 2 (1986), 191-216. |
|
34 |
Errata, JAR 4 (1988), 236-236. |
|
35 |
||
36 |
The hardest problems -- judging by experience with several theorem provers, |
|
37 |
including matrix ones -- are 34 and 43. |
|
38 |
*) |
|
39 |
||
40 |
writeln"Pelletier's examples"; |
|
41 |
(*1*) |
|
5150 | 42 |
Goal "(P-->Q) <-> (~Q --> ~P)"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
43 |
by (Blast_tac 1); |
0 | 44 |
result(); |
45 |
||
46 |
(*2*) |
|
5150 | 47 |
Goal "~ ~ P <-> P"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
48 |
by (Blast_tac 1); |
0 | 49 |
result(); |
50 |
||
51 |
(*3*) |
|
5150 | 52 |
Goal "~(P-->Q) --> (Q-->P)"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
53 |
by (Blast_tac 1); |
0 | 54 |
result(); |
55 |
||
56 |
(*4*) |
|
5150 | 57 |
Goal "(~P-->Q) <-> (~Q --> P)"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
58 |
by (Blast_tac 1); |
0 | 59 |
result(); |
60 |
||
61 |
(*5*) |
|
5150 | 62 |
Goal "((P|Q)-->(P|R)) --> (P|(Q-->R))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
63 |
by (Blast_tac 1); |
0 | 64 |
result(); |
65 |
||
66 |
(*6*) |
|
5150 | 67 |
Goal "P | ~ P"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
68 |
by (Blast_tac 1); |
0 | 69 |
result(); |
70 |
||
71 |
(*7*) |
|
5150 | 72 |
Goal "P | ~ ~ ~ P"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
73 |
by (Blast_tac 1); |
0 | 74 |
result(); |
75 |
||
76 |
(*8. Peirce's law*) |
|
5150 | 77 |
Goal "((P-->Q) --> P) --> P"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
78 |
by (Blast_tac 1); |
0 | 79 |
result(); |
80 |
||
81 |
(*9*) |
|
5150 | 82 |
Goal "((P|Q) & (~P|Q) & (P| ~Q)) --> ~ (~P | ~Q)"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
83 |
by (Blast_tac 1); |
0 | 84 |
result(); |
85 |
||
86 |
(*10*) |
|
5150 | 87 |
Goal "(Q-->R) & (R-->P&Q) & (P-->Q|R) --> (P<->Q)"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
88 |
by (Blast_tac 1); |
0 | 89 |
result(); |
90 |
||
91 |
(*11. Proved in each direction (incorrectly, says Pelletier!!) *) |
|
5150 | 92 |
Goal "P<->P"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
93 |
by (Blast_tac 1); |
0 | 94 |
result(); |
95 |
||
96 |
(*12. "Dijkstra's law"*) |
|
5150 | 97 |
Goal "((P <-> Q) <-> R) <-> (P <-> (Q <-> R))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
98 |
by (Blast_tac 1); |
0 | 99 |
result(); |
100 |
||
101 |
(*13. Distributive law*) |
|
5150 | 102 |
Goal "P | (Q & R) <-> (P | Q) & (P | R)"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
103 |
by (Blast_tac 1); |
0 | 104 |
result(); |
105 |
||
106 |
(*14*) |
|
5150 | 107 |
Goal "(P <-> Q) <-> ((Q | ~P) & (~Q|P))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
108 |
by (Blast_tac 1); |
0 | 109 |
result(); |
110 |
||
111 |
(*15*) |
|
5150 | 112 |
Goal "(P --> Q) <-> (~P | Q)"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
113 |
by (Blast_tac 1); |
0 | 114 |
result(); |
115 |
||
116 |
(*16*) |
|
5150 | 117 |
Goal "(P-->Q) | (Q-->P)"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
118 |
by (Blast_tac 1); |
0 | 119 |
result(); |
120 |
||
121 |
(*17*) |
|
5150 | 122 |
Goal "((P & (Q-->R))-->S) <-> ((~P | Q | S) & (~P | ~R | S))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
123 |
by (Blast_tac 1); |
0 | 124 |
result(); |
125 |
||
126 |
writeln"Classical Logic: examples with quantifiers"; |
|
127 |
||
5150 | 128 |
Goal "(ALL x. P(x) & Q(x)) <-> (ALL x. P(x)) & (ALL x. Q(x))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
129 |
by (Blast_tac 1); |
0 | 130 |
result(); |
131 |
||
5150 | 132 |
Goal "(EX x. P-->Q(x)) <-> (P --> (EX x. Q(x)))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
133 |
by (Blast_tac 1); |
0 | 134 |
result(); |
135 |
||
5150 | 136 |
Goal "(EX x. P(x)-->Q) <-> (ALL x. P(x)) --> Q"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
137 |
by (Blast_tac 1); |
0 | 138 |
result(); |
139 |
||
5150 | 140 |
Goal "(ALL x. P(x)) | Q <-> (ALL x. P(x) | Q)"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
141 |
by (Blast_tac 1); |
0 | 142 |
result(); |
143 |
||
13
b73f7e42135e
Added example from Avron: Gentzen-Type Systems, Resolution and Tableaux, JAR 10
lcp
parents:
0
diff
changeset
|
144 |
(*Discussed in Avron, Gentzen-Type Systems, Resolution and Tableaux, |
b73f7e42135e
Added example from Avron: Gentzen-Type Systems, Resolution and Tableaux, JAR 10
lcp
parents:
0
diff
changeset
|
145 |
JAR 10 (265-281), 1993. Proof is trivial!*) |
6645 | 146 |
Goal "~((EX x.~P(x)) & ((EX x. P(x)) | (EX x. P(x) & Q(x))) & ~ (EX x. P(x)))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
147 |
by (Blast_tac 1); |
13
b73f7e42135e
Added example from Avron: Gentzen-Type Systems, Resolution and Tableaux, JAR 10
lcp
parents:
0
diff
changeset
|
148 |
result(); |
b73f7e42135e
Added example from Avron: Gentzen-Type Systems, Resolution and Tableaux, JAR 10
lcp
parents:
0
diff
changeset
|
149 |
|
0 | 150 |
writeln"Problems requiring quantifier duplication"; |
151 |
||
5150 | 152 |
(*Theorem B of Peter Andrews, Theorem Proving via General Matings, |
153 |
JACM 28 (1981).*) |
|
154 |
Goal "(EX x. ALL y. P(x) <-> P(y)) --> ((EX x. P(x)) <-> (ALL y. P(y)))"; |
|
155 |
by (Blast_tac 1); |
|
156 |
result(); |
|
157 |
||
0 | 158 |
(*Needs multiple instantiation of ALL.*) |
5150 | 159 |
Goal "(ALL x. P(x)-->P(f(x))) & P(d)-->P(f(f(f(d))))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
160 |
by (Blast_tac 1); |
0 | 161 |
result(); |
162 |
||
163 |
(*Needs double instantiation of the quantifier*) |
|
5150 | 164 |
Goal "EX x. P(x) --> P(a) & P(b)"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
165 |
by (Blast_tac 1); |
0 | 166 |
result(); |
167 |
||
5150 | 168 |
Goal "EX z. P(z) --> (ALL x. P(x))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
169 |
by (Blast_tac 1); |
0 | 170 |
result(); |
171 |
||
5150 | 172 |
Goal "EX x. (EX y. P(y)) --> P(x)"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
173 |
by (Blast_tac 1); |
492 | 174 |
result(); |
175 |
||
665
97e9ad6c1c4a
FOL/ex/cla: proofs now use deepen_tac instead of best_tac FOL_dup_cs
lcp
parents:
644
diff
changeset
|
176 |
(*V. Lifschitz, What Is the Inverse Method?, JAR 5 (1989), 1--23. NOT PROVED*) |
5150 | 177 |
Goal "EX x x'. ALL y. EX z z'. \ |
0 | 178 |
\ (~P(y,y) | P(x,x) | ~S(z,x)) & \ |
179 |
\ (S(x,y) | ~S(y,z) | Q(z',z')) & \ |
|
180 |
\ (Q(x',y) | ~Q(y,z') | S(x',x'))"; |
|
181 |
||
5150 | 182 |
|
183 |
||
0 | 184 |
writeln"Hard examples with quantifiers"; |
185 |
||
186 |
writeln"Problem 18"; |
|
5150 | 187 |
Goal "EX y. ALL x. P(y)-->P(x)"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
188 |
by (Blast_tac 1); |
0 | 189 |
result(); |
190 |
||
191 |
writeln"Problem 19"; |
|
5150 | 192 |
Goal "EX x. ALL y z. (P(y)-->Q(z)) --> (P(x)-->Q(x))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
193 |
by (Blast_tac 1); |
0 | 194 |
result(); |
195 |
||
196 |
writeln"Problem 20"; |
|
5150 | 197 |
Goal "(ALL x y. EX z. ALL w. (P(x)&Q(y)-->R(z)&S(w))) \ |
0 | 198 |
\ --> (EX x y. P(x) & Q(y)) --> (EX z. R(z))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
199 |
by (Blast_tac 1); |
0 | 200 |
result(); |
201 |
||
202 |
writeln"Problem 21"; |
|
5150 | 203 |
Goal "(EX x. P-->Q(x)) & (EX x. Q(x)-->P) --> (EX x. P<->Q(x))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
204 |
by (Blast_tac 1); |
0 | 205 |
result(); |
206 |
||
207 |
writeln"Problem 22"; |
|
5150 | 208 |
Goal "(ALL x. P <-> Q(x)) --> (P <-> (ALL x. Q(x)))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
209 |
by (Blast_tac 1); |
0 | 210 |
result(); |
211 |
||
212 |
writeln"Problem 23"; |
|
5150 | 213 |
Goal "(ALL x. P | Q(x)) <-> (P | (ALL x. Q(x)))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
214 |
by (Blast_tac 1); |
0 | 215 |
result(); |
216 |
||
217 |
writeln"Problem 24"; |
|
5150 | 218 |
Goal "~(EX x. S(x)&Q(x)) & (ALL x. P(x) --> Q(x)|R(x)) & \ |
6645 | 219 |
\ (~(EX x. P(x)) --> (EX x. Q(x))) & (ALL x. Q(x)|R(x) --> S(x)) \ |
0 | 220 |
\ --> (EX x. P(x)&R(x))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
221 |
by (Blast_tac 1); |
0 | 222 |
result(); |
223 |
||
224 |
writeln"Problem 25"; |
|
5150 | 225 |
Goal "(EX x. P(x)) & \ |
6645 | 226 |
\ (ALL x. L(x) --> ~ (M(x) & R(x))) & \ |
227 |
\ (ALL x. P(x) --> (M(x) & L(x))) & \ |
|
228 |
\ ((ALL x. P(x)-->Q(x)) | (EX x. P(x)&R(x))) \ |
|
0 | 229 |
\ --> (EX x. Q(x)&P(x))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
230 |
by (Blast_tac 1); |
0 | 231 |
result(); |
232 |
||
233 |
writeln"Problem 26"; |
|
5150 | 234 |
Goal "((EX x. p(x)) <-> (EX x. q(x))) & \ |
1459 | 235 |
\ (ALL x. ALL y. p(x) & q(y) --> (r(x) <-> s(y))) \ |
0 | 236 |
\ --> ((ALL x. p(x)-->r(x)) <-> (ALL x. q(x)-->s(x)))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
237 |
by (Blast_tac 1); |
0 | 238 |
result(); |
239 |
||
240 |
writeln"Problem 27"; |
|
5150 | 241 |
Goal "(EX x. P(x) & ~Q(x)) & \ |
6645 | 242 |
\ (ALL x. P(x) --> R(x)) & \ |
243 |
\ (ALL x. M(x) & L(x) --> P(x)) & \ |
|
244 |
\ ((EX x. R(x) & ~ Q(x)) --> (ALL x. L(x) --> ~ R(x))) \ |
|
245 |
\ --> (ALL x. M(x) --> ~L(x))"; |
|
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
246 |
by (Blast_tac 1); |
0 | 247 |
result(); |
248 |
||
249 |
writeln"Problem 28. AMENDED"; |
|
5150 | 250 |
Goal "(ALL x. P(x) --> (ALL x. Q(x))) & \ |
0 | 251 |
\ ((ALL x. Q(x)|R(x)) --> (EX x. Q(x)&S(x))) & \ |
3835 | 252 |
\ ((EX x. S(x)) --> (ALL x. L(x) --> M(x))) \ |
0 | 253 |
\ --> (ALL x. P(x) & L(x) --> M(x))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
254 |
by (Blast_tac 1); |
0 | 255 |
result(); |
256 |
||
257 |
writeln"Problem 29. Essentially the same as Principia Mathematica *11.71"; |
|
5150 | 258 |
Goal "(EX x. P(x)) & (EX y. Q(y)) \ |
0 | 259 |
\ --> ((ALL x. P(x)-->R(x)) & (ALL y. Q(y)-->S(y)) <-> \ |
260 |
\ (ALL x y. P(x) & Q(y) --> R(x) & S(y)))"; |
|
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
261 |
by (Blast_tac 1); |
0 | 262 |
result(); |
263 |
||
264 |
writeln"Problem 30"; |
|
5150 | 265 |
Goal "(ALL x. P(x) | Q(x) --> ~ R(x)) & \ |
6645 | 266 |
\ (ALL x. (Q(x) --> ~ S(x)) --> P(x) & R(x)) \ |
0 | 267 |
\ --> (ALL x. S(x))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
268 |
by (Blast_tac 1); |
0 | 269 |
result(); |
270 |
||
271 |
writeln"Problem 31"; |
|
5150 | 272 |
Goal "~(EX x. P(x) & (Q(x) | R(x))) & \ |
0 | 273 |
\ (EX x. L(x) & P(x)) & \ |
274 |
\ (ALL x. ~ R(x) --> M(x)) \ |
|
275 |
\ --> (EX x. L(x) & M(x))"; |
|
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
276 |
by (Blast_tac 1); |
0 | 277 |
result(); |
278 |
||
279 |
writeln"Problem 32"; |
|
5150 | 280 |
Goal "(ALL x. P(x) & (Q(x)|R(x))-->S(x)) & \ |
6645 | 281 |
\ (ALL x. S(x) & R(x) --> L(x)) & \ |
282 |
\ (ALL x. M(x) --> R(x)) \ |
|
283 |
\ --> (ALL x. P(x) & M(x) --> L(x))"; |
|
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
284 |
by (Blast_tac 1); |
0 | 285 |
result(); |
286 |
||
287 |
writeln"Problem 33"; |
|
5150 | 288 |
Goal "(ALL x. P(a) & (P(x)-->P(b))-->P(c)) <-> \ |
6645 | 289 |
\ (ALL x. (~P(a) | P(x) | P(c)) & (~P(a) | ~P(b) | P(c)))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
290 |
by (Blast_tac 1); |
0 | 291 |
result(); |
292 |
||
665
97e9ad6c1c4a
FOL/ex/cla: proofs now use deepen_tac instead of best_tac FOL_dup_cs
lcp
parents:
644
diff
changeset
|
293 |
writeln"Problem 34 AMENDED (TWICE!!)"; |
0 | 294 |
(*Andrews's challenge*) |
5150 | 295 |
Goal "((EX x. ALL y. p(x) <-> p(y)) <-> \ |
6645 | 296 |
\ ((EX x. q(x)) <-> (ALL y. p(y)))) <-> \ |
297 |
\ ((EX x. ALL y. q(x) <-> q(y)) <-> \ |
|
298 |
\ ((EX x. p(x)) <-> (ALL y. q(y))))"; |
|
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
299 |
by (Blast_tac 1); |
0 | 300 |
result(); |
301 |
||
302 |
writeln"Problem 35"; |
|
5150 | 303 |
Goal "EX x y. P(x,y) --> (ALL u v. P(u,v))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
304 |
by (Blast_tac 1); |
0 | 305 |
result(); |
306 |
||
307 |
writeln"Problem 36"; |
|
5723 | 308 |
Goal "(ALL x. EX y. J(x,y)) & \ |
0 | 309 |
\ (ALL x. EX y. G(x,y)) & \ |
310 |
\ (ALL x y. J(x,y) | G(x,y) --> (ALL z. J(y,z) | G(y,z) --> H(x,z))) \ |
|
311 |
\ --> (ALL x. EX y. H(x,y))"; |
|
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
312 |
by (Blast_tac 1); |
0 | 313 |
result(); |
314 |
||
315 |
writeln"Problem 37"; |
|
5150 | 316 |
Goal "(ALL z. EX w. ALL x. EX y. \ |
3835 | 317 |
\ (P(x,z)-->P(y,w)) & P(y,z) & (P(y,w) --> (EX u. Q(u,w)))) & \ |
6645 | 318 |
\ (ALL x z. ~P(x,z) --> (EX y. Q(y,z))) & \ |
319 |
\ ((EX x y. Q(x,y)) --> (ALL x. R(x,x))) \ |
|
320 |
\ --> (ALL x. EX y. R(x,y))"; |
|
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
321 |
by (Blast_tac 1); |
0 | 322 |
result(); |
323 |
||
428 | 324 |
writeln"Problem 38"; |
5723 | 325 |
Goal "(ALL x. p(a) & (p(x) --> (EX y. p(y) & r(x,y))) --> \ |
1459 | 326 |
\ (EX z. EX w. p(z) & r(x,w) & r(w,z))) <-> \ |
6645 | 327 |
\ (ALL x. (~p(a) | p(x) | (EX z. EX w. p(z) & r(x,w) & r(w,z))) & \ |
328 |
\ (~p(a) | ~(EX y. p(y) & r(x,y)) | \ |
|
0 | 329 |
\ (EX z. EX w. p(z) & r(x,w) & r(w,z))))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
330 |
by (Blast_tac 1); (*beats fast_tac!*) |
665
97e9ad6c1c4a
FOL/ex/cla: proofs now use deepen_tac instead of best_tac FOL_dup_cs
lcp
parents:
644
diff
changeset
|
331 |
result(); |
0 | 332 |
|
333 |
writeln"Problem 39"; |
|
5150 | 334 |
Goal "~ (EX x. ALL y. F(y,x) <-> ~F(y,y))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
335 |
by (Blast_tac 1); |
0 | 336 |
result(); |
337 |
||
338 |
writeln"Problem 40. AMENDED"; |
|
5150 | 339 |
Goal "(EX y. ALL x. F(x,y) <-> F(x,x)) --> \ |
0 | 340 |
\ ~(ALL x. EX y. ALL z. F(z,y) <-> ~ F(z,x))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
341 |
by (Blast_tac 1); |
0 | 342 |
result(); |
343 |
||
344 |
writeln"Problem 41"; |
|
5150 | 345 |
Goal "(ALL z. EX y. ALL x. f(x,y) <-> f(x,z) & ~ f(x,x)) \ |
0 | 346 |
\ --> ~ (EX z. ALL x. f(x,z))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
347 |
by (Blast_tac 1); |
0 | 348 |
result(); |
349 |
||
428 | 350 |
writeln"Problem 42"; |
5150 | 351 |
Goal "~ (EX y. ALL x. p(x,y) <-> ~ (EX z. p(x,z) & p(z,x)))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
352 |
by (Blast_tac 1); |
428 | 353 |
result(); |
0 | 354 |
|
732 | 355 |
writeln"Problem 43"; |
5150 | 356 |
Goal "(ALL x. ALL y. q(x,y) <-> (ALL z. p(z,x) <-> p(z,y))) \ |
665
97e9ad6c1c4a
FOL/ex/cla: proofs now use deepen_tac instead of best_tac FOL_dup_cs
lcp
parents:
644
diff
changeset
|
357 |
\ --> (ALL x. ALL y. q(x,y) <-> q(y,x))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
358 |
by (Blast_tac 1); |
3017 | 359 |
(*Other proofs: Can use Auto_tac(), which cheats by using rewriting! |
360 |
Deepen_tac alone requires 253 secs. Or |
|
2469 | 361 |
by (mini_tac 1 THEN Deepen_tac 5 1); |
732 | 362 |
*) |
665
97e9ad6c1c4a
FOL/ex/cla: proofs now use deepen_tac instead of best_tac FOL_dup_cs
lcp
parents:
644
diff
changeset
|
363 |
result(); |
0 | 364 |
|
365 |
writeln"Problem 44"; |
|
6645 | 366 |
Goal "(ALL x. f(x) --> (EX y. g(y) & h(x,y) & (EX y. g(y) & ~ h(x,y)))) & \ |
367 |
\ (EX x. j(x) & (ALL y. g(y) --> h(x,y))) \ |
|
368 |
\ --> (EX x. j(x) & ~f(x))"; |
|
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
369 |
by (Blast_tac 1); |
0 | 370 |
result(); |
371 |
||
372 |
writeln"Problem 45"; |
|
5150 | 373 |
Goal "(ALL x. f(x) & (ALL y. g(y) & h(x,y) --> j(x,y)) \ |
1459 | 374 |
\ --> (ALL y. g(y) & h(x,y) --> k(y))) & \ |
375 |
\ ~ (EX y. l(y) & k(y)) & \ |
|
376 |
\ (EX x. f(x) & (ALL y. h(x,y) --> l(y)) \ |
|
377 |
\ & (ALL y. g(y) & h(x,y) --> j(x,y))) \ |
|
0 | 378 |
\ --> (EX x. f(x) & ~ (EX y. g(y) & h(x,y)))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
379 |
by (Blast_tac 1); |
0 | 380 |
result(); |
381 |
||
382 |
||
4307 | 383 |
writeln"Problem 46"; |
5723 | 384 |
Goal "(ALL x. f(x) & (ALL y. f(y) & h(y,x) --> g(y)) --> g(x)) & \ |
6645 | 385 |
\ ((EX x. f(x) & ~g(x)) --> \ |
386 |
\ (EX x. f(x) & ~g(x) & (ALL y. f(y) & ~g(y) --> j(x,y)))) & \ |
|
387 |
\ (ALL x y. f(x) & f(y) & h(x,y) --> ~j(y,x)) \ |
|
388 |
\ --> (ALL x. f(x) --> g(x))"; |
|
4307 | 389 |
by (Blast_tac 1); |
390 |
result(); |
|
391 |
||
392 |
||
0 | 393 |
writeln"Problems (mainly) involving equality or functions"; |
394 |
||
395 |
writeln"Problem 48"; |
|
5150 | 396 |
Goal "(a=b | c=d) & (a=c | b=d) --> a=d | b=c"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
397 |
by (Blast_tac 1); |
0 | 398 |
result(); |
399 |
||
400 |
writeln"Problem 49 NOT PROVED AUTOMATICALLY"; |
|
401 |
(*Hard because it involves substitution for Vars; |
|
402 |
the type constraint ensures that x,y,z have the same type as a,b,u. *) |
|
5150 | 403 |
Goal "(EX x y::'a. ALL z. z=x | z=y) & P(a) & P(b) & a~=b \ |
3835 | 404 |
\ --> (ALL u::'a. P(u))"; |
3721 | 405 |
by Safe_tac; |
0 | 406 |
by (res_inst_tac [("x","a")] allE 1); |
1459 | 407 |
by (assume_tac 1); |
0 | 408 |
by (res_inst_tac [("x","b")] allE 1); |
1459 | 409 |
by (assume_tac 1); |
4348
c7f6b4256964
updated for latest Blast_tac, which fixes an equality bug
paulson
parents:
4330
diff
changeset
|
410 |
by (Fast_tac 1); (*Blast_tac's treatment of equality can't do it*) |
0 | 411 |
result(); |
412 |
||
413 |
writeln"Problem 50"; |
|
414 |
(*What has this to do with equality?*) |
|
5150 | 415 |
Goal "(ALL x. P(a,x) | (ALL y. P(x,y))) --> (EX x. ALL y. P(x,y))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
416 |
by (Blast_tac 1); |
0 | 417 |
result(); |
418 |
||
419 |
writeln"Problem 51"; |
|
5723 | 420 |
Goal "(EX z w. ALL x y. P(x,y) <-> (x=z & y=w)) --> \ |
6645 | 421 |
\ (EX z. ALL x. EX w. (ALL y. P(x,y) <-> y=w) <-> x=z)"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
422 |
by (Blast_tac 1); |
0 | 423 |
result(); |
424 |
||
425 |
writeln"Problem 52"; |
|
426 |
(*Almost the same as 51. *) |
|
5723 | 427 |
Goal "(EX z w. ALL x y. P(x,y) <-> (x=z & y=w)) --> \ |
6645 | 428 |
\ (EX w. ALL y. EX z. (ALL x. P(x,y) <-> x=z) <-> y=w)"; |
4348
c7f6b4256964
updated for latest Blast_tac, which fixes an equality bug
paulson
parents:
4330
diff
changeset
|
429 |
by (Blast_tac 1); |
0 | 430 |
result(); |
431 |
||
432 |
writeln"Problem 55"; |
|
433 |
||
434 |
(*Original, equational version by Len Schubert, via Pelletier *** NOT PROVED |
|
5723 | 435 |
Goal "(EX x. lives(x) & killed(x,agatha)) & \ |
0 | 436 |
\ lives(agatha) & lives(butler) & lives(charles) & \ |
437 |
\ (ALL x. lives(x) --> x=agatha | x=butler | x=charles) & \ |
|
438 |
\ (ALL x y. killed(x,y) --> hates(x,y)) & \ |
|
439 |
\ (ALL x y. killed(x,y) --> ~richer(x,y)) & \ |
|
440 |
\ (ALL x. hates(agatha,x) --> ~hates(charles,x)) & \ |
|
441 |
\ (ALL x. ~ x=butler --> hates(agatha,x)) & \ |
|
442 |
\ (ALL x. ~richer(x,agatha) --> hates(butler,x)) & \ |
|
443 |
\ (ALL x. hates(agatha,x) --> hates(butler,x)) & \ |
|
444 |
\ (ALL x. EX y. ~hates(x,y)) & \ |
|
445 |
\ ~ agatha=butler --> \ |
|
446 |
\ killed(?who,agatha)"; |
|
3721 | 447 |
by Safe_tac; |
0 | 448 |
by (dres_inst_tac [("x1","x")] (spec RS mp) 1); |
1459 | 449 |
by (assume_tac 1); |
450 |
by (etac (spec RS exE) 1); |
|
0 | 451 |
by (REPEAT (etac allE 1)); |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
452 |
by (Blast_tac 1); |
0 | 453 |
result(); |
454 |
****) |
|
455 |
||
456 |
(*Non-equational version, from Manthey and Bry, CADE-9 (Springer, 1988). |
|
457 |
fast_tac DISCOVERS who killed Agatha. *) |
|
5150 | 458 |
Goal "lives(agatha) & lives(butler) & lives(charles) & \ |
0 | 459 |
\ (killed(agatha,agatha) | killed(butler,agatha) | killed(charles,agatha)) & \ |
460 |
\ (ALL x y. killed(x,y) --> hates(x,y) & ~richer(x,y)) & \ |
|
461 |
\ (ALL x. hates(agatha,x) --> ~hates(charles,x)) & \ |
|
462 |
\ (hates(agatha,agatha) & hates(agatha,charles)) & \ |
|
463 |
\ (ALL x. lives(x) & ~richer(x,agatha) --> hates(butler,x)) & \ |
|
464 |
\ (ALL x. hates(agatha,x) --> hates(butler,x)) & \ |
|
465 |
\ (ALL x. ~hates(x,agatha) | ~hates(x,butler) | ~hates(x,charles)) --> \ |
|
466 |
\ killed(?who,agatha)"; |
|
5723 | 467 |
by (Fast_tac 1); |
468 |
(*MUCH faster than Blast_tac: 1.5s against ??s, mostly proof reconstruction*) |
|
0 | 469 |
result(); |
470 |
||
471 |
||
472 |
writeln"Problem 56"; |
|
5723 | 473 |
Goal "(ALL x. (EX y. P(y) & x=f(y)) --> P(x)) <-> (ALL x. P(x) --> P(f(x)))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
474 |
by (Blast_tac 1); |
0 | 475 |
result(); |
476 |
||
477 |
writeln"Problem 57"; |
|
5723 | 478 |
Goal "P(f(a,b), f(b,c)) & P(f(b,c), f(a,c)) & \ |
0 | 479 |
\ (ALL x y z. P(x,y) & P(y,z) --> P(x,z)) --> P(f(a,b), f(a,c))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
480 |
by (Blast_tac 1); |
0 | 481 |
result(); |
482 |
||
483 |
writeln"Problem 58 NOT PROVED AUTOMATICALLY"; |
|
5150 | 484 |
Goal "(ALL x y. f(x)=g(y)) --> (ALL x y. f(f(x))=f(g(y)))"; |
4091 | 485 |
by (slow_tac (claset() addEs [subst_context]) 1); |
0 | 486 |
result(); |
487 |
||
488 |
writeln"Problem 59"; |
|
5150 | 489 |
Goal "(ALL x. P(x) <-> ~P(f(x))) --> (EX x. P(x) & ~P(f(x)))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
490 |
by (Blast_tac 1); |
0 | 491 |
result(); |
492 |
||
493 |
writeln"Problem 60"; |
|
5723 | 494 |
Goal "ALL x. P(x,f(x)) <-> (EX y. (ALL z. P(z,y) --> P(z,f(x))) & P(x,y))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
495 |
by (Blast_tac 1); |
0 | 496 |
result(); |
497 |
||
2715 | 498 |
writeln"Problem 62 as corrected in JAR 18 (1997), page 135"; |
5723 | 499 |
Goal "(ALL x. p(a) & (p(x) --> p(f(x))) --> p(f(f(x)))) <-> \ |
6645 | 500 |
\ (ALL x. (~p(a) | p(x) | p(f(f(x)))) & \ |
501 |
\ (~p(a) | ~p(f(x)) | p(f(f(x)))))"; |
|
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
502 |
by (Blast_tac 1); |
1404 | 503 |
result(); |
504 |
||
4465 | 505 |
(*From Davis, Obvious Logical Inferences, IJCAI-81, 530-531 |
506 |
Fast_tac indeed copes!*) |
|
5150 | 507 |
Goal "(ALL x. F(x) & ~G(x) --> (EX y. H(x,y) & J(y))) & \ |
4465 | 508 |
\ (EX x. K(x) & F(x) & (ALL y. H(x,y) --> K(y))) & \ |
509 |
\ (ALL x. K(x) --> ~G(x)) --> (EX x. K(x) & J(x))"; |
|
510 |
by (Fast_tac 1); |
|
511 |
result(); |
|
512 |
||
513 |
(*From Rudnicki, Obvious Inferences, JAR 3 (1987), 383-393. |
|
514 |
It does seem obvious!*) |
|
5723 | 515 |
Goal "(ALL x. F(x) & ~G(x) --> (EX y. H(x,y) & J(y))) & \ |
6645 | 516 |
\ (EX x. K(x) & F(x) & (ALL y. H(x,y) --> K(y))) & \ |
517 |
\ (ALL x. K(x) --> ~G(x)) --> (EX x. K(x) --> ~G(x))"; |
|
4465 | 518 |
by (Fast_tac 1); |
519 |
result(); |
|
520 |
||
1560 | 521 |
(*Halting problem: Formulation of Li Dafa (AAR Newsletter 27, Oct 1994.) |
522 |
author U. Egly*) |
|
5723 | 523 |
Goal "((EX x. A(x) & (ALL y. C(y) --> (ALL z. D(x,y,z)))) --> \ |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
524 |
\ (EX w. C(w) & (ALL y. C(y) --> (ALL z. D(w,y,z))))) \ |
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
525 |
\ & \ |
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
526 |
\ (ALL w. C(w) & (ALL u. C(u) --> (ALL v. D(w,u,v))) --> \ |
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
527 |
\ (ALL y z. \ |
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
528 |
\ (C(y) & P(y,z) --> Q(w,y,z) & OO(w,g)) & \ |
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
529 |
\ (C(y) & ~P(y,z) --> Q(w,y,z) & OO(w,b)))) \ |
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
530 |
\ & \ |
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
531 |
\ (ALL w. C(w) & \ |
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
532 |
\ (ALL y z. \ |
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
533 |
\ (C(y) & P(y,z) --> Q(w,y,z) & OO(w,g)) & \ |
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
534 |
\ (C(y) & ~P(y,z) --> Q(w,y,z) & OO(w,b))) --> \ |
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
535 |
\ (EX v. C(v) & \ |
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
536 |
\ (ALL y. ((C(y) & Q(w,y,y)) & OO(w,g) --> ~P(v,y)) & \ |
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
537 |
\ ((C(y) & Q(w,y,y)) & OO(w,b) --> P(v,y) & OO(v,b))))) \ |
1560 | 538 |
\ --> \ |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
539 |
\ ~ (EX x. A(x) & (ALL y. C(y) --> (ALL z. D(x,y,z))))"; |
4091 | 540 |
by (Blast.depth_tac (claset()) 12 1); |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
541 |
result(); |
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
542 |
|
1560 | 543 |
|
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
544 |
(*Halting problem II: credited to M. Bruschi by Li Dafa in JAR 18(1), p.105*) |
5723 | 545 |
Goal "((EX x. A(x) & (ALL y. C(y) --> (ALL z. D(x,y,z)))) --> \ |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
546 |
\ (EX w. C(w) & (ALL y. C(y) --> (ALL z. D(w,y,z))))) \ |
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
547 |
\ & \ |
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
548 |
\ (ALL w. C(w) & (ALL u. C(u) --> (ALL v. D(w,u,v))) --> \ |
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
549 |
\ (ALL y z. \ |
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
550 |
\ (C(y) & P(y,z) --> Q(w,y,z) & OO(w,g)) & \ |
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
551 |
\ (C(y) & ~P(y,z) --> Q(w,y,z) & OO(w,b)))) \ |
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
552 |
\ & \ |
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
553 |
\ ((EX w. C(w) & (ALL y. (C(y) & P(y,y) --> Q(w,y,y) & OO(w,g)) &\ |
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
554 |
\ (C(y) & ~P(y,y) --> Q(w,y,y) & OO(w,b)))) \ |
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
555 |
\ --> \ |
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
556 |
\ (EX v. C(v) & (ALL y. (C(y) & P(y,y) --> P(v,y) & OO(v,g)) & \ |
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
557 |
\ (C(y) & ~P(y,y) --> P(v,y) & OO(v,b))))) \ |
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
558 |
\ --> \ |
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
559 |
\ ((EX v. C(v) & (ALL y. (C(y) & P(y,y) --> P(v,y) & OO(v,g)) & \ |
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
560 |
\ (C(y) & ~P(y,y) --> P(v,y) & OO(v,b)))) \ |
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
561 |
\ --> \ |
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
562 |
\ (EX u. C(u) & (ALL y. (C(y) & P(y,y) --> ~P(u,y)) & \ |
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
563 |
\ (C(y) & ~P(y,y) --> P(u,y) & OO(u,b))))) \ |
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
564 |
\ --> \ |
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
565 |
\ ~ (EX x. A(x) & (ALL y. C(y) --> (ALL z. D(x,y,z))))"; |
4091 | 566 |
by (Blast.depth_tac(claset()) 7 1); |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
567 |
result(); |
0 | 568 |
|
2614 | 569 |
(* Challenge found on info-hol *) |
5150 | 570 |
Goal "ALL x. EX v w. ALL y z. P(x) & Q(y) --> (P(v) | R(w)) & (R(z) --> Q(v))"; |
2888
e551e4bd262a
Now calls Blast_tac and has some hard examples (Halting Problem
paulson
parents:
2729
diff
changeset
|
571 |
by (Blast_tac 1); |
2614 | 572 |
result(); |
573 |
||
6799
95abcc002a21
new classical example from Lewis Carroll via S G Pulman
paulson
parents:
6645
diff
changeset
|
574 |
(*Attributed to Lewis Carroll by S. G. Pulman. The first or last assumption |
95abcc002a21
new classical example from Lewis Carroll via S G Pulman
paulson
parents:
6645
diff
changeset
|
575 |
can be deleted.*) |
95abcc002a21
new classical example from Lewis Carroll via S G Pulman
paulson
parents:
6645
diff
changeset
|
576 |
Goal "(ALL x. honest(x) & industrious(x) --> healthy(x)) & \ |
95abcc002a21
new classical example from Lewis Carroll via S G Pulman
paulson
parents:
6645
diff
changeset
|
577 |
\ ~ (EX x. grocer(x) & healthy(x)) & \ |
95abcc002a21
new classical example from Lewis Carroll via S G Pulman
paulson
parents:
6645
diff
changeset
|
578 |
\ (ALL x. industrious(x) & grocer(x) --> honest(x)) & \ |
95abcc002a21
new classical example from Lewis Carroll via S G Pulman
paulson
parents:
6645
diff
changeset
|
579 |
\ (ALL x. cyclist(x) --> industrious(x)) & \ |
95abcc002a21
new classical example from Lewis Carroll via S G Pulman
paulson
parents:
6645
diff
changeset
|
580 |
\ (ALL x. ~healthy(x) & cyclist(x) --> ~honest(x)) \ |
95abcc002a21
new classical example from Lewis Carroll via S G Pulman
paulson
parents:
6645
diff
changeset
|
581 |
\ --> (ALL x. grocer(x) --> ~cyclist(x))"; |
95abcc002a21
new classical example from Lewis Carroll via S G Pulman
paulson
parents:
6645
diff
changeset
|
582 |
by (Blast_tac 1); |
95abcc002a21
new classical example from Lewis Carroll via S G Pulman
paulson
parents:
6645
diff
changeset
|
583 |
result(); |
95abcc002a21
new classical example from Lewis Carroll via S G Pulman
paulson
parents:
6645
diff
changeset
|
584 |
|
95abcc002a21
new classical example from Lewis Carroll via S G Pulman
paulson
parents:
6645
diff
changeset
|
585 |
|
0 | 586 |
writeln"Reached end of file."; |
587 |
||
732 | 588 |
(*Thu Jul 23 1992: loaded in 467s using iffE [on SPARC2] *) |
589 |
(*Mon Nov 14 1994: loaded in 144s [on SPARC10, with deepen_tac] *) |
|
590 |
(*Wed Nov 16 1994: loaded in 138s [after addition of norm_term_skip] *) |
|
591 |
(*Mon Nov 21 1994: loaded in 131s [DEPTH_FIRST suppressing repetitions] *) |
|
592 |
||
4465 | 593 |
(*Further runtimes on pochard*) |
594 |
(*Tue Mar 4 1997: loaded in 93s (version 94-7) *) |
|
595 |
(*Tue Mar 4 1997: loaded in 89s*) |
|
596 |
(*Thu Apr 3 1997: loaded in 44s--using mostly Blast_tac*) |
|
597 |
(*Thu Apr 3 1997: loaded in 96s--addition of two Halting Probs*) |
|
598 |
(*Thu Apr 3 1997: loaded in 98s--using lim-1 for all haz rules*) |
|
599 |
(*Tue Dec 2 1997: loaded in 107s--added 46; new equalSubst*) |
|
600 |
(*Fri Dec 12 1997: loaded in 91s--faster proof reconstruction*) |
|
601 |
(*Thu Dec 18 1997: loaded in 94s--two new "obvious theorems" (??)*) |
|
2729 | 602 |