src/HOL/Finite_Set.ML
author paulson
Tue, 19 Apr 2005 18:08:44 +0200
changeset 15774 9df37a0e935d
parent 15402 97204f3b4705
child 16733 236dfafbeb63
permissions -rw-r--r--
more tidying of libraries in Reconstruction
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12396
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
     1
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
     2
(* legacy ML bindings *)
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
     3
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
     4
structure Finites =
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
     5
struct
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
     6
  val intrs = thms "Finites.intros";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
     7
  val elims = thms "Finites.cases";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
     8
  val elim = thm "Finites.cases";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
     9
  val induct = thm "Finites.induct";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    10
  val mk_cases = InductivePackage.the_mk_cases (the_context ()) "Finite_Set.Finites";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    11
  val [emptyI, insertI] = thms "Finites.intros";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    12
end;
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    13
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    14
structure foldSet =
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    15
struct
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    16
  val intrs = thms "foldSet.intros";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    17
  val elims = thms "foldSet.cases";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    18
  val elim = thm "foldSet.cases";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    19
  val induct = thm "foldSet.induct";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    20
  val mk_cases = InductivePackage.the_mk_cases (the_context ()) "Finite_Set.foldSet";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    21
  val [emptyI, insertI] = thms "foldSet.intros";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    22
end;
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    23
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    24
val card_0_eq = thm "card_0_eq";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    25
val card_Diff1_le = thm "card_Diff1_le";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    26
val card_Diff1_less = thm "card_Diff1_less";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    27
val card_Diff2_less = thm "card_Diff2_less";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    28
val card_Diff_singleton = thm "card_Diff_singleton";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    29
val card_Diff_singleton_if = thm "card_Diff_singleton_if";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    30
val card_Diff_subset = thm "card_Diff_subset";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    31
val card_Pow = thm "card_Pow";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    32
val card_Suc_Diff1 = thm "card_Suc_Diff1";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    33
val card_Un_Int = thm "card_Un_Int";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    34
val card_Un_disjoint = thm "card_Un_disjoint";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    35
val card_bij_eq = thm "card_bij_eq";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    36
val card_def = thm "card_def";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    37
val card_empty = thm "card_empty";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    38
val card_eq_setsum = thm "card_eq_setsum";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    39
val card_image = thm "card_image";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    40
val card_image_le = thm "card_image_le";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    41
val card_inj_on_le = thm "card_inj_on_le";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    42
val card_insert = thm "card_insert";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    43
val card_insert_disjoint = thm "card_insert_disjoint";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    44
val card_insert_if = thm "card_insert_if";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    45
val card_insert_le = thm "card_insert_le";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    46
val card_mono = thm "card_mono";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    47
val card_psubset = thm "card_psubset";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    48
val card_s_0_eq_empty = thm "card_s_0_eq_empty";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    49
val card_seteq = thm "card_seteq";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    50
val choose_deconstruct = thm "choose_deconstruct";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    51
val constr_bij = thm "constr_bij";
15392
290bc97038c7 First step in reorganizing Finite_Set
nipkow
parents: 15376
diff changeset
    52
val Diff1_foldSet = thm "Diff1_foldSet";
12396
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    53
val dvd_partition = thm "dvd_partition";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    54
val empty_foldSetE = thm "empty_foldSetE";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    55
val endo_inj_surj = thm "endo_inj_surj";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    56
val finite = thm "finite";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    57
val finiteI = thm "finiteI";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    58
val finite_Diff = thm "finite_Diff";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    59
val finite_Diff_insert = thm "finite_Diff_insert";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    60
val finite_Field = thm "finite_Field";
15392
290bc97038c7 First step in reorganizing Finite_Set
nipkow
parents: 15376
diff changeset
    61
val finite_imp_foldSet = thm "finite_imp_foldSet";
12396
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    62
val finite_Int = thm "finite_Int";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    63
val finite_Pow_iff = thm "finite_Pow_iff";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    64
val finite_Prod_UNIV = thm "finite_Prod_UNIV";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    65
val finite_SigmaI = thm "finite_SigmaI";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    66
val finite_UN = thm "finite_UN";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    67
val finite_UN_I = thm "finite_UN_I";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    68
val finite_Un = thm "finite_Un";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    69
val finite_UnI = thm "finite_UnI";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    70
val finite_converse = thm "finite_converse";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    71
val finite_empty_induct = thm "finite_empty_induct";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    72
val finite_imageD = thm "finite_imageD";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    73
val finite_imageI = thm "finite_imageI";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    74
val finite_induct = thm "finite_induct";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    75
val finite_insert = thm "finite_insert";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    76
val finite_range_imageI = thm "finite_range_imageI";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    77
val finite_subset = thm "finite_subset";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    78
val finite_subset_induct = thm "finite_subset_induct";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    79
val finite_trancl = thm "finite_trancl";
15392
290bc97038c7 First step in reorganizing Finite_Set
nipkow
parents: 15376
diff changeset
    80
val foldSet_determ = thm "ACf.foldSet_determ";
12396
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    81
val foldSet_imp_finite = thm "foldSet_imp_finite";
12693
827818b891c7 qualified exports from locales;
wenzelm
parents: 12396
diff changeset
    82
val fold_Un_Int = thm "ACe.fold_Un_Int";
827818b891c7 qualified exports from locales;
wenzelm
parents: 12396
diff changeset
    83
val fold_Un_disjoint = thm "ACe.fold_Un_disjoint";
15392
290bc97038c7 First step in reorganizing Finite_Set
nipkow
parents: 15376
diff changeset
    84
val fold_Un_disjoint2 = thm "ACe.fold_Un_disjoint";
290bc97038c7 First step in reorganizing Finite_Set
nipkow
parents: 15376
diff changeset
    85
val fold_commute = thm "ACf.fold_commute";
12396
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    86
val fold_def = thm "fold_def";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    87
val fold_empty = thm "fold_empty";
15392
290bc97038c7 First step in reorganizing Finite_Set
nipkow
parents: 15376
diff changeset
    88
val fold_equality = thm "ACf.fold_equality";
290bc97038c7 First step in reorganizing Finite_Set
nipkow
parents: 15376
diff changeset
    89
val fold_insert = thm "ACf.fold_insert";
290bc97038c7 First step in reorganizing Finite_Set
nipkow
parents: 15376
diff changeset
    90
val fold_nest_Un_Int = thm "ACf.fold_nest_Un_Int";
290bc97038c7 First step in reorganizing Finite_Set
nipkow
parents: 15376
diff changeset
    91
val fold_nest_Un_disjoint = thm "ACf.fold_nest_Un_disjoint";
12396
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    92
val n_sub_lemma = thm "n_sub_lemma";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    93
val n_subsets = thm "n_subsets";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    94
val psubset_card_mono = thm "psubset_card_mono";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    95
val setsum_0 = thm "setsum_0";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    96
val setsum_SucD = thm "setsum_SucD";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    97
val setsum_UN_disjoint = thm "setsum_UN_disjoint";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    98
val setsum_Un = thm "setsum_Un";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
    99
val setsum_Un_Int = thm "setsum_Un_Int";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
   100
val setsum_Un_disjoint = thm "setsum_Un_disjoint";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
   101
val setsum_addf = thm "setsum_addf";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
   102
val setsum_cong = thm "setsum_cong";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
   103
val setsum_def = thm "setsum_def";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
   104
val setsum_diff1 = thm "setsum_diff1";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
   105
val setsum_empty = thm "setsum_empty";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
   106
val setsum_eq_0_iff = thm "setsum_eq_0_iff";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
   107
val setsum_insert = thm "setsum_insert";
2298d5b8e530 renamed theory Finite to Finite_Set and converted;
wenzelm
parents:
diff changeset
   108
val trancl_subset_Field2 = thm "trancl_subset_Field2";