| author | huffman |
| Thu, 14 Oct 2010 09:34:00 -0700 | |
| changeset 40013 | 9db8fb58fddc |
| parent 32261 | 05e687ddbcee |
| 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 |
|
|
32149
ef59550a55d3
renamed simpset_of to global_simpset_of, and local_simpset_of to simpset_of -- same for claset and clasimpset;
wenzelm
parents:
31974
diff
changeset
|
22 |
ML_Antiquote.value "claset" (Scan.succeed "Cla.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 |