author | haftmann |
Tue, 22 May 2007 14:43:54 +0200 | |
changeset 23072 | f64df9399329 |
parent 22127 | 025dfa637f78 |
child 26287 | df8e5362cff9 |
permissions | -rw-r--r-- |
2469 | 1 |
(* Title: FOL/cladata.ML |
2 |
ID: $Id$ |
|
3 |
Author: Tobias Nipkow |
|
4 |
Copyright 1996 University of Cambridge |
|
5 |
||
7355
4c43090659ca
proper bootstrap of IFOL/FOL theories and packages;
wenzelm
parents:
7156
diff
changeset
|
6 |
Setting up the classical reasoner. |
2469 | 7 |
*) |
8 |
||
9 |
section "Classical Reasoner"; |
|
10 |
||
11 |
(*** Applying ClassicalFun to create a classical prover ***) |
|
12 |
structure Classical_Data = |
|
13 |
struct |
|
14 |
val mp = mp |
|
15 |
val not_elim = notE |
|
21539 | 16 |
val classical = thm "classical" |
9158 | 17 |
val sizef = size_of_thm |
2469 | 18 |
val hyp_subst_tacs=[hyp_subst_tac] |
19 |
end; |
|
20 |
||
21 |
structure Cla = ClassicalFun(Classical_Data); |
|
8099 | 22 |
structure BasicClassical: BASIC_CLASSICAL = Cla; open BasicClassical; |
2469 | 23 |
|
22127 | 24 |
ML_Context.value_antiq "claset" |
25 |
(Scan.succeed ("claset", "Cla.local_claset_of (ML_Context.the_local_context ())")); |
|
7355
4c43090659ca
proper bootstrap of IFOL/FOL theories and packages;
wenzelm
parents:
7156
diff
changeset
|
26 |
|
2844 | 27 |
|
4305
03d7de40ee4f
The change from iffE to iffCE means fewer case splits in most cases. Very few
paulson
parents:
4095
diff
changeset
|
28 |
(*Propositional rules*) |
21539 | 29 |
val prop_cs = empty_cs |
30 |
addSIs [refl, TrueI, conjI, thm "disjCI", impI, notI, iffI] |
|
31 |
addSEs [conjE, disjE, thm "impCE", FalseE, thm "iffCE"]; |
|
2469 | 32 |
|
33 |
(*Quantifier rules*) |
|
21539 | 34 |
val FOL_cs = prop_cs addSIs [allI, thm "ex_ex1I"] addIs [exI] |
35 |
addSEs [exE, thm "alt_ex1E"] addEs [allE]; |
|
2469 | 36 |
|
18708 | 37 |
val cla_setup = (fn thy => (change_claset_of thy (fn _ => FOL_cs); thy)); |
14156 | 38 |
|
39 |
val case_setup = |
|
18708 | 40 |
(Method.add_methods |
14156 | 41 |
[("case_tac", Method.goal_args Args.name case_tac, |
18708 | 42 |
"case_tac emulation (dynamic instantiation!)")]); |