author | wenzelm |
Thu, 09 Jul 2009 22:09:58 +0200 | |
changeset 31974 | e81979a703a4 |
parent 27849 | c74905423895 |
child 32149 | ef59550a55d3 |
permissions | -rw-r--r-- |
2469 | 1 |
(* Title: FOL/cladata.ML |
2 |
Author: Tobias Nipkow |
|
3 |
Copyright 1996 University of Cambridge |
|
4 |
||
7355
4c43090659ca
proper bootstrap of IFOL/FOL theories and packages;
wenzelm
parents:
7156
diff
changeset
|
5 |
Setting up the classical reasoner. |
2469 | 6 |
*) |
7 |
||
8 |
(*** Applying ClassicalFun to create a classical prover ***) |
|
9 |
structure Classical_Data = |
|
26411 | 10 |
struct |
11 |
val imp_elim = @{thm imp_elim} |
|
26287 | 12 |
val not_elim = @{thm notE} |
26411 | 13 |
val swap = @{thm swap} |
26287 | 14 |
val classical = @{thm classical} |
9158 | 15 |
val sizef = size_of_thm |
2469 | 16 |
val hyp_subst_tacs=[hyp_subst_tac] |
26411 | 17 |
end; |
2469 | 18 |
|
19 |
structure Cla = ClassicalFun(Classical_Data); |
|
8099 | 20 |
structure BasicClassical: BASIC_CLASSICAL = Cla; open BasicClassical; |
2469 | 21 |
|
27338 | 22 |
ML_Antiquote.value "claset" (Scan.succeed "Cla.local_claset_of (ML_Context.the_local_context ())"); |
7355
4c43090659ca
proper bootstrap of IFOL/FOL theories and packages;
wenzelm
parents:
7156
diff
changeset
|
23 |
|
2844 | 24 |
|
4305
03d7de40ee4f
The change from iffE to iffCE means fewer case splits in most cases. Very few
paulson
parents:
4095
diff
changeset
|
25 |
(*Propositional rules*) |
21539 | 26 |
val prop_cs = empty_cs |
26287 | 27 |
addSIs [@{thm refl}, @{thm TrueI}, @{thm conjI}, @{thm disjCI}, @{thm impI}, |
28 |
@{thm notI}, @{thm iffI}] |
|
29 |
addSEs [@{thm conjE}, @{thm disjE}, @{thm impCE}, @{thm FalseE}, @{thm iffCE}]; |
|
2469 | 30 |
|
31 |
(*Quantifier rules*) |
|
26287 | 32 |
val FOL_cs = prop_cs addSIs [@{thm allI}, @{thm ex_ex1I}] addIs [@{thm exI}] |
33 |
addSEs [@{thm exE}, @{thm alt_ex1E}] addEs [@{thm allE}]; |
|
2469 | 34 |
|
26496
49ae9456eba9
purely functional setup of claset/simpset/clasimpset;
wenzelm
parents:
26411
diff
changeset
|
35 |
val cla_setup = Cla.map_claset (K FOL_cs); |