| author | haftmann |
| Mon, 10 Nov 2008 08:18:57 +0100 | |
| changeset 28725 | 4a71cc58b203 |
| parent 27849 | c74905423895 |
| child 31974 | e81979a703a4 |
| 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 |
(*** Applying ClassicalFun to create a classical prover ***) |
|
10 |
structure Classical_Data = |
|
| 26411 | 11 |
struct |
12 |
val imp_elim = @{thm imp_elim}
|
|
| 26287 | 13 |
val not_elim = @{thm notE}
|
| 26411 | 14 |
val swap = @{thm swap}
|
| 26287 | 15 |
val classical = @{thm classical}
|
| 9158 | 16 |
val sizef = size_of_thm |
| 2469 | 17 |
val hyp_subst_tacs=[hyp_subst_tac] |
| 26411 | 18 |
end; |
| 2469 | 19 |
|
20 |
structure Cla = ClassicalFun(Classical_Data); |
|
| 8099 | 21 |
structure BasicClassical: BASIC_CLASSICAL = Cla; open BasicClassical; |
| 2469 | 22 |
|
| 27338 | 23 |
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
|
24 |
|
| 2844 | 25 |
|
|
4305
03d7de40ee4f
The change from iffE to iffCE means fewer case splits in most cases. Very few
paulson
parents:
4095
diff
changeset
|
26 |
(*Propositional rules*) |
| 21539 | 27 |
val prop_cs = empty_cs |
| 26287 | 28 |
addSIs [@{thm refl}, @{thm TrueI}, @{thm conjI}, @{thm disjCI}, @{thm impI},
|
29 |
@{thm notI}, @{thm iffI}]
|
|
30 |
addSEs [@{thm conjE}, @{thm disjE}, @{thm impCE}, @{thm FalseE}, @{thm iffCE}];
|
|
| 2469 | 31 |
|
32 |
(*Quantifier rules*) |
|
| 26287 | 33 |
val FOL_cs = prop_cs addSIs [@{thm allI}, @{thm ex_ex1I}] addIs [@{thm exI}]
|
34 |
addSEs [@{thm exE}, @{thm alt_ex1E}] addEs [@{thm allE}];
|
|
| 2469 | 35 |
|
|
26496
49ae9456eba9
purely functional setup of claset/simpset/clasimpset;
wenzelm
parents:
26411
diff
changeset
|
36 |
val cla_setup = Cla.map_claset (K FOL_cs); |