author | hoelzl |
Thu, 04 Dec 2014 17:05:58 +0100 | |
changeset 59088 | ff2bd4a14ddb |
parent 58957 | c9e744ea8a38 |
child 59755 | f8d164ab0dc1 |
permissions | -rw-r--r-- |
9487 | 1 |
(* Title: FOL/FOL.thy |
2 |
Author: Lawrence C Paulson and Markus Wenzel |
|
11678 | 3 |
*) |
9487 | 4 |
|
58889 | 5 |
section {* Classical first-order logic *} |
4093 | 6 |
|
18456 | 7 |
theory FOL |
15481 | 8 |
imports IFOL |
46950
d0181abdbdac
declare command keywords via theory header, including strict checking outside Pure;
wenzelm
parents:
45654
diff
changeset
|
9 |
keywords "print_claset" "print_induct_rules" :: diag |
18456 | 10 |
begin |
9487 | 11 |
|
48891 | 12 |
ML_file "~~/src/Provers/classical.ML" |
13 |
ML_file "~~/src/Provers/blast.ML" |
|
14 |
ML_file "~~/src/Provers/clasimp.ML" |
|
15 |
||
9487 | 16 |
|
17 |
subsection {* The classical axiom *} |
|
4093 | 18 |
|
41779 | 19 |
axiomatization where |
7355
4c43090659ca
proper bootstrap of IFOL/FOL theories and packages;
wenzelm
parents:
5887
diff
changeset
|
20 |
classical: "(~P ==> P) ==> P" |
4093 | 21 |
|
9487 | 22 |
|
11678 | 23 |
subsection {* Lemmas and proof tools *} |
9487 | 24 |
|
21539 | 25 |
lemma ccontr: "(\<not> P \<Longrightarrow> False) \<Longrightarrow> P" |
26 |
by (erule FalseE [THEN classical]) |
|
27 |
||
28 |
(*** Classical introduction rules for | and EX ***) |
|
29 |
||
30 |
lemma disjCI: "(~Q ==> P) ==> P|Q" |
|
31 |
apply (rule classical) |
|
32 |
apply (assumption | erule meta_mp | rule disjI1 notI)+ |
|
33 |
apply (erule notE disjI2)+ |
|
34 |
done |
|
35 |
||
36 |
(*introduction rule involving only EX*) |
|
37 |
lemma ex_classical: |
|
38 |
assumes r: "~(EX x. P(x)) ==> P(a)" |
|
39 |
shows "EX x. P(x)" |
|
40 |
apply (rule classical) |
|
41 |
apply (rule exI, erule r) |
|
42 |
done |
|
43 |
||
44 |
(*version of above, simplifying ~EX to ALL~ *) |
|
45 |
lemma exCI: |
|
46 |
assumes r: "ALL x. ~P(x) ==> P(a)" |
|
47 |
shows "EX x. P(x)" |
|
48 |
apply (rule ex_classical) |
|
49 |
apply (rule notI [THEN allI, THEN r]) |
|
50 |
apply (erule notE) |
|
51 |
apply (erule exI) |
|
52 |
done |
|
53 |
||
54 |
lemma excluded_middle: "~P | P" |
|
55 |
apply (rule disjCI) |
|
56 |
apply assumption |
|
57 |
done |
|
58 |
||
27115
0dcafa5c9e3f
eliminated obsolete case_split_thm -- use case_split;
wenzelm
parents:
26496
diff
changeset
|
59 |
lemma case_split [case_names True False]: |
21539 | 60 |
assumes r1: "P ==> Q" |
61 |
and r2: "~P ==> Q" |
|
62 |
shows Q |
|
63 |
apply (rule excluded_middle [THEN disjE]) |
|
64 |
apply (erule r2) |
|
65 |
apply (erule r1) |
|
66 |
done |
|
67 |
||
68 |
ML {* |
|
27239 | 69 |
fun case_tac ctxt a = res_inst_tac ctxt [(("P", 0), a)] @{thm case_split} |
21539 | 70 |
*} |
71 |
||
30549 | 72 |
method_setup case_tac = {* |
55111 | 73 |
Args.goal_spec -- Scan.lift Args.name_inner_syntax >> |
42814 | 74 |
(fn (quant, s) => fn ctxt => SIMPLE_METHOD'' quant (case_tac ctxt s)) |
30549 | 75 |
*} "case_tac emulation (dynamic instantiation!)" |
27211 | 76 |
|
21539 | 77 |
|
78 |
(*** Special elimination rules *) |
|
79 |
||
80 |
||
81 |
(*Classical implies (-->) elimination. *) |
|
82 |
lemma impCE: |
|
83 |
assumes major: "P-->Q" |
|
84 |
and r1: "~P ==> R" |
|
85 |
and r2: "Q ==> R" |
|
86 |
shows R |
|
87 |
apply (rule excluded_middle [THEN disjE]) |
|
88 |
apply (erule r1) |
|
89 |
apply (rule r2) |
|
90 |
apply (erule major [THEN mp]) |
|
91 |
done |
|
92 |
||
93 |
(*This version of --> elimination works on Q before P. It works best for |
|
94 |
those cases in which P holds "almost everywhere". Can't install as |
|
95 |
default: would break old proofs.*) |
|
96 |
lemma impCE': |
|
97 |
assumes major: "P-->Q" |
|
98 |
and r1: "Q ==> R" |
|
99 |
and r2: "~P ==> R" |
|
100 |
shows R |
|
101 |
apply (rule excluded_middle [THEN disjE]) |
|
102 |
apply (erule r2) |
|
103 |
apply (rule r1) |
|
104 |
apply (erule major [THEN mp]) |
|
105 |
done |
|
106 |
||
107 |
(*Double negation law*) |
|
108 |
lemma notnotD: "~~P ==> P" |
|
109 |
apply (rule classical) |
|
110 |
apply (erule notE) |
|
111 |
apply assumption |
|
112 |
done |
|
113 |
||
114 |
lemma contrapos2: "[| Q; ~ P ==> ~ Q |] ==> P" |
|
115 |
apply (rule classical) |
|
116 |
apply (drule (1) meta_mp) |
|
117 |
apply (erule (1) notE) |
|
118 |
done |
|
119 |
||
120 |
(*** Tactics for implication and contradiction ***) |
|
121 |
||
42453 | 122 |
(*Classical <-> elimination. Proof substitutes P=Q in |
21539 | 123 |
~P ==> ~Q and P ==> Q *) |
124 |
lemma iffCE: |
|
125 |
assumes major: "P<->Q" |
|
126 |
and r1: "[| P; Q |] ==> R" |
|
127 |
and r2: "[| ~P; ~Q |] ==> R" |
|
128 |
shows R |
|
129 |
apply (rule major [unfolded iff_def, THEN conjE]) |
|
130 |
apply (elim impCE) |
|
131 |
apply (erule (1) r2) |
|
132 |
apply (erule (1) notE)+ |
|
133 |
apply (erule (1) r1) |
|
134 |
done |
|
135 |
||
136 |
||
137 |
(*Better for fast_tac: needs no quantifier duplication!*) |
|
138 |
lemma alt_ex1E: |
|
139 |
assumes major: "EX! x. P(x)" |
|
140 |
and r: "!!x. [| P(x); ALL y y'. P(y) & P(y') --> y=y' |] ==> R" |
|
141 |
shows R |
|
142 |
using major |
|
143 |
proof (rule ex1E) |
|
144 |
fix x |
|
145 |
assume * : "\<forall>y. P(y) \<longrightarrow> y = x" |
|
146 |
assume "P(x)" |
|
147 |
then show R |
|
148 |
proof (rule r) |
|
149 |
{ fix y y' |
|
150 |
assume "P(y)" and "P(y')" |
|
51798 | 151 |
with * have "x = y" and "x = y'" by - (tactic "IntPr.fast_tac @{context} 1")+ |
21539 | 152 |
then have "y = y'" by (rule subst) |
153 |
} note r' = this |
|
154 |
show "\<forall>y y'. P(y) \<and> P(y') \<longrightarrow> y = y'" by (intro strip, elim conjE) (rule r') |
|
155 |
qed |
|
156 |
qed |
|
9525 | 157 |
|
26411 | 158 |
lemma imp_elim: "P --> Q ==> (~ R ==> P) ==> (Q ==> R) ==> R" |
159 |
by (rule classical) iprover |
|
160 |
||
161 |
lemma swap: "~ P ==> (~ R ==> P) ==> R" |
|
162 |
by (rule classical) iprover |
|
163 |
||
27849 | 164 |
|
165 |
section {* Classical Reasoner *} |
|
166 |
||
42793 | 167 |
ML {* |
42799 | 168 |
structure Cla = Classical |
42793 | 169 |
( |
170 |
val imp_elim = @{thm imp_elim} |
|
171 |
val not_elim = @{thm notE} |
|
172 |
val swap = @{thm swap} |
|
173 |
val classical = @{thm classical} |
|
174 |
val sizef = size_of_thm |
|
175 |
val hyp_subst_tacs = [hyp_subst_tac] |
|
176 |
); |
|
177 |
||
178 |
structure Basic_Classical: BASIC_CLASSICAL = Cla; |
|
179 |
open Basic_Classical; |
|
180 |
*} |
|
181 |
||
182 |
(*Propositional rules*) |
|
183 |
lemmas [intro!] = refl TrueI conjI disjCI impI notI iffI |
|
184 |
and [elim!] = conjE disjE impCE FalseE iffCE |
|
51687
3d8720271ebf
discontinued obsolete ML antiquotation @{claset};
wenzelm
parents:
48891
diff
changeset
|
185 |
ML {* val prop_cs = claset_of @{context} *} |
42793 | 186 |
|
187 |
(*Quantifier rules*) |
|
188 |
lemmas [intro!] = allI ex_ex1I |
|
189 |
and [intro] = exI |
|
190 |
and [elim!] = exE alt_ex1E |
|
191 |
and [elim] = allE |
|
51687
3d8720271ebf
discontinued obsolete ML antiquotation @{claset};
wenzelm
parents:
48891
diff
changeset
|
192 |
ML {* val FOL_cs = claset_of @{context} *} |
10383 | 193 |
|
32176
893614e2c35c
renamed functor BlastFun to Blast, require explicit theory;
wenzelm
parents:
32171
diff
changeset
|
194 |
ML {* |
893614e2c35c
renamed functor BlastFun to Blast, require explicit theory;
wenzelm
parents:
32171
diff
changeset
|
195 |
structure Blast = Blast |
893614e2c35c
renamed functor BlastFun to Blast, require explicit theory;
wenzelm
parents:
32171
diff
changeset
|
196 |
( |
42477 | 197 |
structure Classical = Cla |
42802 | 198 |
val Trueprop_const = dest_Const @{const Trueprop} |
41310 | 199 |
val equality_name = @{const_name eq} |
32176
893614e2c35c
renamed functor BlastFun to Blast, require explicit theory;
wenzelm
parents:
32171
diff
changeset
|
200 |
val not_name = @{const_name Not} |
32960
69916a850301
eliminated hard tabulators, guessing at each author's individual tab-width;
wenzelm
parents:
32261
diff
changeset
|
201 |
val notE = @{thm notE} |
69916a850301
eliminated hard tabulators, guessing at each author's individual tab-width;
wenzelm
parents:
32261
diff
changeset
|
202 |
val ccontr = @{thm ccontr} |
32176
893614e2c35c
renamed functor BlastFun to Blast, require explicit theory;
wenzelm
parents:
32171
diff
changeset
|
203 |
val hyp_subst_tac = Hypsubst.blast_hyp_subst_tac |
893614e2c35c
renamed functor BlastFun to Blast, require explicit theory;
wenzelm
parents:
32171
diff
changeset
|
204 |
); |
893614e2c35c
renamed functor BlastFun to Blast, require explicit theory;
wenzelm
parents:
32171
diff
changeset
|
205 |
val blast_tac = Blast.blast_tac; |
893614e2c35c
renamed functor BlastFun to Blast, require explicit theory;
wenzelm
parents:
32171
diff
changeset
|
206 |
*} |
893614e2c35c
renamed functor BlastFun to Blast, require explicit theory;
wenzelm
parents:
32171
diff
changeset
|
207 |
|
13550 | 208 |
|
209 |
lemma ex1_functional: "[| EX! z. P(a,z); P(a,b); P(a,c) |] ==> b = c" |
|
21539 | 210 |
by blast |
20223 | 211 |
|
212 |
(* Elimination of True from asumptions: *) |
|
213 |
lemma True_implies_equals: "(True ==> PROP P) == PROP P" |
|
214 |
proof |
|
215 |
assume "True \<Longrightarrow> PROP P" |
|
216 |
from this and TrueI show "PROP P" . |
|
217 |
next |
|
218 |
assume "PROP P" |
|
219 |
then show "PROP P" . |
|
220 |
qed |
|
9487 | 221 |
|
21539 | 222 |
lemma uncurry: "P --> Q --> R ==> P & Q --> R" |
223 |
by blast |
|
224 |
||
225 |
lemma iff_allI: "(!!x. P(x) <-> Q(x)) ==> (ALL x. P(x)) <-> (ALL x. Q(x))" |
|
226 |
by blast |
|
227 |
||
228 |
lemma iff_exI: "(!!x. P(x) <-> Q(x)) ==> (EX x. P(x)) <-> (EX x. Q(x))" |
|
229 |
by blast |
|
230 |
||
231 |
lemma all_comm: "(ALL x y. P(x,y)) <-> (ALL y x. P(x,y))" by blast |
|
232 |
||
233 |
lemma ex_comm: "(EX x y. P(x,y)) <-> (EX y x. P(x,y))" by blast |
|
234 |
||
26286 | 235 |
|
236 |
||
237 |
(*** Classical simplification rules ***) |
|
238 |
||
239 |
(*Avoids duplication of subgoals after expand_if, when the true and false |
|
240 |
cases boil down to the same thing.*) |
|
241 |
lemma cases_simp: "(P --> Q) & (~P --> Q) <-> Q" by blast |
|
242 |
||
243 |
||
244 |
(*** Miniscoping: pushing quantifiers in |
|
245 |
We do NOT distribute of ALL over &, or dually that of EX over | |
|
246 |
Baaz and Leitsch, On Skolemization and Proof Complexity (1994) |
|
247 |
show that this step can increase proof length! |
|
248 |
***) |
|
249 |
||
250 |
(*existential miniscoping*) |
|
251 |
lemma int_ex_simps: |
|
252 |
"!!P Q. (EX x. P(x) & Q) <-> (EX x. P(x)) & Q" |
|
253 |
"!!P Q. (EX x. P & Q(x)) <-> P & (EX x. Q(x))" |
|
254 |
"!!P Q. (EX x. P(x) | Q) <-> (EX x. P(x)) | Q" |
|
255 |
"!!P Q. (EX x. P | Q(x)) <-> P | (EX x. Q(x))" |
|
256 |
by iprover+ |
|
257 |
||
258 |
(*classical rules*) |
|
259 |
lemma cla_ex_simps: |
|
260 |
"!!P Q. (EX x. P(x) --> Q) <-> (ALL x. P(x)) --> Q" |
|
261 |
"!!P Q. (EX x. P --> Q(x)) <-> P --> (EX x. Q(x))" |
|
262 |
by blast+ |
|
263 |
||
264 |
lemmas ex_simps = int_ex_simps cla_ex_simps |
|
265 |
||
266 |
(*universal miniscoping*) |
|
267 |
lemma int_all_simps: |
|
268 |
"!!P Q. (ALL x. P(x) & Q) <-> (ALL x. P(x)) & Q" |
|
269 |
"!!P Q. (ALL x. P & Q(x)) <-> P & (ALL x. Q(x))" |
|
270 |
"!!P Q. (ALL x. P(x) --> Q) <-> (EX x. P(x)) --> Q" |
|
271 |
"!!P Q. (ALL x. P --> Q(x)) <-> P --> (ALL x. Q(x))" |
|
272 |
by iprover+ |
|
273 |
||
274 |
(*classical rules*) |
|
275 |
lemma cla_all_simps: |
|
276 |
"!!P Q. (ALL x. P(x) | Q) <-> (ALL x. P(x)) | Q" |
|
277 |
"!!P Q. (ALL x. P | Q(x)) <-> P | (ALL x. Q(x))" |
|
278 |
by blast+ |
|
279 |
||
280 |
lemmas all_simps = int_all_simps cla_all_simps |
|
281 |
||
282 |
||
283 |
(*** Named rewrite rules proved for IFOL ***) |
|
284 |
||
285 |
lemma imp_disj1: "(P-->Q) | R <-> (P-->Q | R)" by blast |
|
286 |
lemma imp_disj2: "Q | (P-->R) <-> (P-->Q | R)" by blast |
|
287 |
||
288 |
lemma de_Morgan_conj: "(~(P & Q)) <-> (~P | ~Q)" by blast |
|
289 |
||
290 |
lemma not_imp: "~(P --> Q) <-> (P & ~Q)" by blast |
|
291 |
lemma not_iff: "~(P <-> Q) <-> (P <-> ~Q)" by blast |
|
292 |
||
293 |
lemma not_all: "(~ (ALL x. P(x))) <-> (EX x.~P(x))" by blast |
|
294 |
lemma imp_all: "((ALL x. P(x)) --> Q) <-> (EX x. P(x) --> Q)" by blast |
|
295 |
||
296 |
||
297 |
lemmas meta_simps = |
|
298 |
triv_forall_equality (* prunes params *) |
|
299 |
True_implies_equals (* prune asms `True' *) |
|
300 |
||
301 |
lemmas IFOL_simps = |
|
302 |
refl [THEN P_iff_T] conj_simps disj_simps not_simps |
|
303 |
imp_simps iff_simps quant_simps |
|
304 |
||
305 |
lemma notFalseI: "~False" by iprover |
|
306 |
||
307 |
lemma cla_simps_misc: |
|
308 |
"~(P&Q) <-> ~P | ~Q" |
|
309 |
"P | ~P" |
|
310 |
"~P | P" |
|
311 |
"~ ~ P <-> P" |
|
312 |
"(~P --> P) <-> P" |
|
313 |
"(~P <-> ~Q) <-> (P<->Q)" by blast+ |
|
314 |
||
315 |
lemmas cla_simps = |
|
316 |
de_Morgan_conj de_Morgan_disj imp_disj1 imp_disj2 |
|
317 |
not_imp not_all not_ex cases_simp cla_simps_misc |
|
318 |
||
319 |
||
48891 | 320 |
ML_file "simpdata.ML" |
42455 | 321 |
|
42459 | 322 |
simproc_setup defined_Ex ("EX x. P(x)") = {* fn _ => Quantifier1.rearrange_ex *} |
323 |
simproc_setup defined_All ("ALL x. P(x)") = {* fn _ => Quantifier1.rearrange_all *} |
|
42455 | 324 |
|
42453 | 325 |
ML {* |
326 |
(*intuitionistic simprules only*) |
|
327 |
val IFOL_ss = |
|
51717
9e7d1c139569
simplifier uses proper Proof.context instead of historic type simpset;
wenzelm
parents:
51687
diff
changeset
|
328 |
put_simpset FOL_basic_ss @{context} |
45654 | 329 |
addsimps @{thms meta_simps IFOL_simps int_ex_simps int_all_simps} |
42455 | 330 |
addsimprocs [@{simproc defined_All}, @{simproc defined_Ex}] |
51717
9e7d1c139569
simplifier uses proper Proof.context instead of historic type simpset;
wenzelm
parents:
51687
diff
changeset
|
331 |
|> Simplifier.add_cong @{thm imp_cong} |
9e7d1c139569
simplifier uses proper Proof.context instead of historic type simpset;
wenzelm
parents:
51687
diff
changeset
|
332 |
|> simpset_of; |
42453 | 333 |
|
334 |
(*classical simprules too*) |
|
51717
9e7d1c139569
simplifier uses proper Proof.context instead of historic type simpset;
wenzelm
parents:
51687
diff
changeset
|
335 |
val FOL_ss = |
9e7d1c139569
simplifier uses proper Proof.context instead of historic type simpset;
wenzelm
parents:
51687
diff
changeset
|
336 |
put_simpset IFOL_ss @{context} |
9e7d1c139569
simplifier uses proper Proof.context instead of historic type simpset;
wenzelm
parents:
51687
diff
changeset
|
337 |
addsimps @{thms cla_simps cla_ex_simps cla_all_simps} |
9e7d1c139569
simplifier uses proper Proof.context instead of historic type simpset;
wenzelm
parents:
51687
diff
changeset
|
338 |
|> simpset_of; |
42453 | 339 |
*} |
340 |
||
58826 | 341 |
setup {* |
342 |
map_theory_simpset (put_simpset FOL_ss) #> |
|
343 |
Simplifier.method_setup Splitter.split_modifiers |
|
344 |
*} |
|
52241 | 345 |
|
346 |
ML_file "~~/src/Tools/eqsubst.ML" |
|
15481 | 347 |
|
348 |
||
14085 | 349 |
subsection {* Other simple lemmas *} |
350 |
||
351 |
lemma [simp]: "((P-->R) <-> (Q-->R)) <-> ((P<->Q) | R)" |
|
352 |
by blast |
|
353 |
||
354 |
lemma [simp]: "((P-->Q) <-> (P-->R)) <-> (P --> (Q<->R))" |
|
355 |
by blast |
|
356 |
||
357 |
lemma not_disj_iff_imp: "~P | Q <-> (P-->Q)" |
|
358 |
by blast |
|
359 |
||
360 |
(** Monotonicity of implications **) |
|
361 |
||
362 |
lemma conj_mono: "[| P1-->Q1; P2-->Q2 |] ==> (P1&P2) --> (Q1&Q2)" |
|
363 |
by fast (*or (IntPr.fast_tac 1)*) |
|
364 |
||
365 |
lemma disj_mono: "[| P1-->Q1; P2-->Q2 |] ==> (P1|P2) --> (Q1|Q2)" |
|
366 |
by fast (*or (IntPr.fast_tac 1)*) |
|
367 |
||
368 |
lemma imp_mono: "[| Q1-->P1; P2-->Q2 |] ==> (P1-->P2)-->(Q1-->Q2)" |
|
369 |
by fast (*or (IntPr.fast_tac 1)*) |
|
370 |
||
371 |
lemma imp_refl: "P-->P" |
|
372 |
by (rule impI, assumption) |
|
373 |
||
374 |
(*The quantifier monotonicity rules are also intuitionistically valid*) |
|
375 |
lemma ex_mono: "(!!x. P(x) --> Q(x)) ==> (EX x. P(x)) --> (EX x. Q(x))" |
|
376 |
by blast |
|
377 |
||
378 |
lemma all_mono: "(!!x. P(x) --> Q(x)) ==> (ALL x. P(x)) --> (ALL x. Q(x))" |
|
379 |
by blast |
|
380 |
||
11678 | 381 |
|
382 |
subsection {* Proof by cases and induction *} |
|
383 |
||
384 |
text {* Proper handling of non-atomic rule statements. *} |
|
385 |
||
36866 | 386 |
definition "induct_forall(P) == \<forall>x. P(x)" |
387 |
definition "induct_implies(A, B) == A \<longrightarrow> B" |
|
388 |
definition "induct_equal(x, y) == x = y" |
|
389 |
definition "induct_conj(A, B) == A \<and> B" |
|
11678 | 390 |
|
391 |
lemma induct_forall_eq: "(!!x. P(x)) == Trueprop(induct_forall(\<lambda>x. P(x)))" |
|
18816 | 392 |
unfolding atomize_all induct_forall_def . |
11678 | 393 |
|
394 |
lemma induct_implies_eq: "(A ==> B) == Trueprop(induct_implies(A, B))" |
|
18816 | 395 |
unfolding atomize_imp induct_implies_def . |
11678 | 396 |
|
397 |
lemma induct_equal_eq: "(x == y) == Trueprop(induct_equal(x, y))" |
|
18816 | 398 |
unfolding atomize_eq induct_equal_def . |
11678 | 399 |
|
28856
5e009a80fe6d
Pure syntax: more coherent treatment of aprop, permanent TERM and &&&;
wenzelm
parents:
28699
diff
changeset
|
400 |
lemma induct_conj_eq: "(A &&& B) == Trueprop(induct_conj(A, B))" |
18816 | 401 |
unfolding atomize_conj induct_conj_def . |
11988 | 402 |
|
18456 | 403 |
lemmas induct_atomize = induct_forall_eq induct_implies_eq induct_equal_eq induct_conj_eq |
45594 | 404 |
lemmas induct_rulify [symmetric] = induct_atomize |
18456 | 405 |
lemmas induct_rulify_fallback = |
406 |
induct_forall_def induct_implies_def induct_equal_def induct_conj_def |
|
11678 | 407 |
|
36176
3fe7e97ccca8
replaced generic 'hide' command by more conventional 'hide_class', 'hide_type', 'hide_const', 'hide_fact' -- frees some popular keywords;
wenzelm
parents:
34989
diff
changeset
|
408 |
hide_const induct_forall induct_implies induct_equal induct_conj |
11678 | 409 |
|
410 |
||
411 |
text {* Method setup. *} |
|
412 |
||
58826 | 413 |
ML_file "~~/src/Tools/induct.ML" |
11678 | 414 |
ML {* |
32171 | 415 |
structure Induct = Induct |
24830
a7b3ab44d993
moved Pure/Isar/induct_attrib.ML and Provers/induct_method.ML to Tools/induct.ML;
wenzelm
parents:
24097
diff
changeset
|
416 |
( |
22139 | 417 |
val cases_default = @{thm case_split} |
418 |
val atomize = @{thms induct_atomize} |
|
419 |
val rulify = @{thms induct_rulify} |
|
420 |
val rulify_fallback = @{thms induct_rulify_fallback} |
|
34989 | 421 |
val equal_def = @{thm induct_equal_def} |
34914 | 422 |
fun dest_def _ = NONE |
58957 | 423 |
fun trivial_tac _ _ = no_tac |
24830
a7b3ab44d993
moved Pure/Isar/induct_attrib.ML and Provers/induct_method.ML to Tools/induct.ML;
wenzelm
parents:
24097
diff
changeset
|
424 |
); |
11678 | 425 |
*} |
426 |
||
24830
a7b3ab44d993
moved Pure/Isar/induct_attrib.ML and Provers/induct_method.ML to Tools/induct.ML;
wenzelm
parents:
24097
diff
changeset
|
427 |
declare case_split [cases type: o] |
11678 | 428 |
|
58826 | 429 |
ML_file "~~/src/Tools/case_product.ML" |
41827 | 430 |
|
41310 | 431 |
|
432 |
hide_const (open) eq |
|
433 |
||
4854 | 434 |
end |