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