src/HOL/HOL.ML
author urbanc
Wed, 01 Nov 2006 19:03:30 +0100
changeset 21142 a56a839e9feb
parent 21009 0eae3fb48936
child 21150 405ebd7ba881
permissions -rw-r--r--
changed to not compile Iteration and Recursion, but Lam_Funs instead
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12999
wenzelm
parents: 11977
diff changeset
     1
(* legacy ML bindings *)
11749
fc8afdc58b26 added ML bindings from former theory Ord;
wenzelm
parents: 11588
diff changeset
     2
21009
0eae3fb48936 lifted claset setup from ML to Isar level
haftmann
parents: 20973
diff changeset
     3
val prop_cs = HOL.claset_prop;
20973
0b8e436ed071 cleaned up HOL bootstrap
haftmann
parents: 20944
diff changeset
     4
val HOL_cs = HOL.claset;
0b8e436ed071 cleaned up HOL bootstrap
haftmann
parents: 20944
diff changeset
     5
val HOL_basic_ss = HOL.simpset_basic;
0b8e436ed071 cleaned up HOL bootstrap
haftmann
parents: 20944
diff changeset
     6
val HOL_ss = HOL.simpset;
0b8e436ed071 cleaned up HOL bootstrap
haftmann
parents: 20944
diff changeset
     7
val HOL_css = (HOL.claset, HOL.simpset);
0b8e436ed071 cleaned up HOL bootstrap
haftmann
parents: 20944
diff changeset
     8
val hol_simplify = HOL.simplify;
0b8e436ed071 cleaned up HOL bootstrap
haftmann
parents: 20944
diff changeset
     9
0b8e436ed071 cleaned up HOL bootstrap
haftmann
parents: 20944
diff changeset
    10
val split_tac        = Splitter.split_tac;
0b8e436ed071 cleaned up HOL bootstrap
haftmann
parents: 20944
diff changeset
    11
val split_inside_tac = Splitter.split_inside_tac;
0b8e436ed071 cleaned up HOL bootstrap
haftmann
parents: 20944
diff changeset
    12
val split_asm_tac    = Splitter.split_asm_tac;
0b8e436ed071 cleaned up HOL bootstrap
haftmann
parents: 20944
diff changeset
    13
val op addsplits     = Splitter.addsplits;
0b8e436ed071 cleaned up HOL bootstrap
haftmann
parents: 20944
diff changeset
    14
val op delsplits     = Splitter.delsplits;
0b8e436ed071 cleaned up HOL bootstrap
haftmann
parents: 20944
diff changeset
    15
val Addsplits        = Splitter.Addsplits;
0b8e436ed071 cleaned up HOL bootstrap
haftmann
parents: 20944
diff changeset
    16
val Delsplits        = Splitter.Delsplits;
0b8e436ed071 cleaned up HOL bootstrap
haftmann
parents: 20944
diff changeset
    17
20944
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    18
open HOL;
20973
0b8e436ed071 cleaned up HOL bootstrap
haftmann
parents: 20944
diff changeset
    19
val claset = Classical.claset;
0b8e436ed071 cleaned up HOL bootstrap
haftmann
parents: 20944
diff changeset
    20
val simpset = Simplifier.simpset;
0b8e436ed071 cleaned up HOL bootstrap
haftmann
parents: 20944
diff changeset
    21
val simplify = Simplifier.simplify;
21009
0eae3fb48936 lifted claset setup from ML to Isar level
haftmann
parents: 20973
diff changeset
    22
open Hypsubst;
0eae3fb48936 lifted claset setup from ML to Isar level
haftmann
parents: 20973
diff changeset
    23
open BasicClassical;
20973
0b8e436ed071 cleaned up HOL bootstrap
haftmann
parents: 20944
diff changeset
    24
open Clasimp;
12999
wenzelm
parents: 11977
diff changeset
    25
20944
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    26
val ext = thm "ext"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    27
val True_def = thm "True_def"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    28
val All_def = thm "All_def"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    29
val Ex_def = thm "Ex_def"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    30
val False_def = thm "False_def"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    31
val not_def = thm "not_def"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    32
val and_def = thm "and_def"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    33
val or_def = thm "or_def"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    34
val Ex1_def = thm "Ex1_def"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    35
val iff = thm "iff"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    36
val True_or_False = thm "True_or_False"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    37
val Let_def = thm "Let_def"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    38
val if_def = thm "if_def"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    39
val ssubst = thm "ssubst"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    40
val box_equals = thm "box_equals"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    41
val fun_cong = thm "fun_cong"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    42
val cong = thm "cong"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    43
val rev_iffD2 = thm "rev_iffD2"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    44
val rev_iffD1 = thm "rev_iffD1"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    45
val iffE = thm "iffE"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    46
val eqTrueI = thm "eqTrueI"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    47
val eqTrueE = thm "eqTrueE"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    48
val all_dupE = thm "all_dupE"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    49
val FalseE = thm "FalseE"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    50
val False_neq_True = thm "False_neq_True"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    51
val False_not_True = thm "False_not_True"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    52
val True_not_False = thm "True_not_False"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    53
val notI2 = thm "notI2"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    54
val impE = thm "impE"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    55
val not_sym = thm "not_sym"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    56
val rev_contrapos = thm "rev_contrapos"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    57
val conjE = thm "conjE"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    58
val context_conjI = thm "context_conjI"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    59
val disjI1 = thm "disjI1"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    60
val disjI2 = thm "disjI2"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    61
val rev_notE = thm "rev_notE"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    62
val ex1I = thm "ex1I"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    63
val ex1E = thm "ex1E"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    64
val ex1_implies_ex = thm "ex1_implies_ex"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    65
val the_equality = thm "the_equality"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    66
val theI = thm "theI"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    67
val theI' = thm "theI'"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    68
val theI2 = thm "theI2"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    69
val the1_equality = thm "the1_equality"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    70
val excluded_middle = thm "excluded_middle"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    71
val case_split_thm = thm "case_split_thm"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    72
val exCI = thm "exCI"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    73
val choice_eq = thm "choice_eq"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    74
val eq_cong2 = thm "eq_cong2"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    75
val if_cong = thm "if_cong"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    76
val if_weak_cong = thm "if_weak_cong"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    77
val let_weak_cong = thm "let_weak_cong"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    78
val eq_cong2 = thm "eq_cong2"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    79
val if_distrib = thm "if_distrib"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    80
val expand_case = thm "expand_case"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    81
val restrict_to_left = thm "restrict_to_left"
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    82
val all_conj_distrib = thm "all_conj_distrib";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    83
val atomize_not = thm "atomize_not";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    84
val split_if = thm "split_if";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    85
val split_if_asm = thm "split_if_asm";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    86
val rev_conj_cong = thm "rev_conj_cong";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    87
val not_all = thm "not_all";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    88
val not_ex = thm "not_ex";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    89
val not_iff = thm "not_iff";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    90
val not_imp = thm "not_imp";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    91
val not_not = thm "not_not";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    92
val eta_contract_eq = thm "eta_contract_eq";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    93
val eq_ac = thms "eq_ac";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    94
val eq_commute = thm "eq_commute";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    95
val eq_sym_conv = thm "eq_commute";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    96
val neq_commute = thm "neq_commute";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    97
val conj_comms = thms "conj_comms";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    98
val conj_commute = thm "conj_commute";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
    99
val conj_cong = thm "conj_cong";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   100
val conj_disj_distribL = thm "conj_disj_distribL";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   101
val conj_disj_distribR = thm "conj_disj_distribR";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   102
val conj_left_commute = thm "conj_left_commute";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   103
val disj_comms = thms "disj_comms";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   104
val disj_commute = thm "disj_commute";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   105
val disj_cong = thm "disj_cong";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   106
val disj_conj_distribL = thm "disj_conj_distribL";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   107
val disj_conj_distribR = thm "disj_conj_distribR";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   108
val disj_left_commute = thm "disj_left_commute";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   109
val eq_assoc = thm "eq_assoc";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   110
val eq_left_commute = thm "eq_left_commute";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   111
val ex_disj_distrib = thm "ex_disj_distrib";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   112
val if_P = thm "if_P";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   113
val if_bool_eq_disj = thm "if_bool_eq_disj";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   114
val if_def2 = thm "if_bool_eq_conj";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   115
val if_not_P = thm "if_not_P";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   116
val if_splits = thms "if_splits";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   117
val imp_all = thm "imp_all";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   118
val imp_conjL = thm "imp_conjL";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   119
val imp_conjR = thm "imp_conjR";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   120
val imp_disj_not1 = thm "imp_disj_not1";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   121
val imp_disj_not2 = thm "imp_disj_not2";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   122
val imp_ex = thm "imp_ex";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   123
val meta_eq_to_obj_eq = thm "def_imp_eq";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   124
val ex_simps = thms "ex_simps";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   125
val all_simps = thms "all_simps";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   126
val simp_thms = thms "simp_thms";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   127
val Eq_FalseI = thm "Eq_FalseI";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   128
val Eq_TrueI = thm "Eq_TrueI";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   129
val cases_simp = thm "cases_simp";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   130
val conj_assoc = thm "conj_assoc";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   131
val de_Morgan_conj = thm "de_Morgan_conj";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   132
val de_Morgan_disj = thm "de_Morgan_disj";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   133
val disj_assoc = thm "disj_assoc";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   134
val disj_not1 = thm "disj_not1";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   135
val disj_not2 = thm "disj_not2";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   136
val if_False = thm "if_False";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   137
val if_True = thm "if_True";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   138
val if_bool_eq_conj = thm "if_bool_eq_conj";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   139
val if_cancel = thm "if_cancel";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   140
val if_eq_cancel = thm "if_eq_cancel";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   141
val iff_conv_conj_imp = thm "iff_conv_conj_imp";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   142
val imp_cong = thm "imp_cong";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   143
val imp_conv_disj = thm "imp_conv_disj";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   144
val imp_disj1 = thm "imp_disj1";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   145
val imp_disj2 = thm "imp_disj2";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   146
val imp_disjL = thm "imp_disjL";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   147
val simp_impliesI = thm "simp_impliesI";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   148
val simp_implies_cong = thm "simp_implies_cong";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   149
val simp_implies_def = thm "simp_implies_def";
34b2c1bb7178 cleanup basic HOL bootstrap
haftmann
parents: 18916
diff changeset
   150
val True_implies_equals = thm "True_implies_equals";
18916
fda5b8dbbef6 no toplevel 'thy' anymore
haftmann
parents: 17274
diff changeset
   151
fda5b8dbbef6 no toplevel 'thy' anymore
haftmann
parents: 17274
diff changeset
   152
structure HOL =
fda5b8dbbef6 no toplevel 'thy' anymore
haftmann
parents: 17274
diff changeset
   153
struct
fda5b8dbbef6 no toplevel 'thy' anymore
haftmann
parents: 17274
diff changeset
   154
fda5b8dbbef6 no toplevel 'thy' anymore
haftmann
parents: 17274
diff changeset
   155
open HOL;
fda5b8dbbef6 no toplevel 'thy' anymore
haftmann
parents: 17274
diff changeset
   156
fda5b8dbbef6 no toplevel 'thy' anymore
haftmann
parents: 17274
diff changeset
   157
val thy = the_context ();
fda5b8dbbef6 no toplevel 'thy' anymore
haftmann
parents: 17274
diff changeset
   158
fda5b8dbbef6 no toplevel 'thy' anymore
haftmann
parents: 17274
diff changeset
   159
end;