src/HOL/Datatype.ML
author kleing
Mon Jun 21 10:25:57 2004 +0200 (2004-06-21)
changeset 14981 e73f8140af78
parent 12918 bca45be2d25b
permissions -rw-r--r--
Merged in license change from Isabelle2004
berghofe@7293
     1
(*  Title:      HOL/Datatype.ML
berghofe@7293
     2
    ID:         $Id$
wenzelm@11954
     3
    Author:     Stefan Berghofer and Markus Wenzel, TU Muenchen
berghofe@7293
     4
*)
berghofe@7293
     5
wenzelm@11954
     6
(** legacy ML bindings **)
wenzelm@11954
     7
wenzelm@11954
     8
structure bool =
wenzelm@11954
     9
struct
wenzelm@11954
    10
  val distinct = thms "bool.distinct";
wenzelm@11954
    11
  val inject = thms "bool.inject";
wenzelm@11954
    12
  val exhaust = thm "bool.exhaust";
wenzelm@11954
    13
  val cases = thms "bool.cases";
wenzelm@11954
    14
  val split = thm "bool.split";
wenzelm@11954
    15
  val split_asm = thm "bool.split_asm";
wenzelm@11954
    16
  val induct = thm "bool.induct";
wenzelm@11954
    17
  val recs = thms "bool.recs";
wenzelm@11954
    18
  val simps = thms "bool.simps";
wenzelm@11954
    19
  val size = thms "bool.size";
wenzelm@11954
    20
end;
wenzelm@11954
    21
wenzelm@11954
    22
structure sum =
wenzelm@11954
    23
struct
wenzelm@11954
    24
  val distinct = thms "sum.distinct";
wenzelm@11954
    25
  val inject = thms "sum.inject";
wenzelm@11954
    26
  val exhaust = thm "sum.exhaust";
wenzelm@11954
    27
  val cases = thms "sum.cases";
wenzelm@11954
    28
  val split = thm "sum.split";
wenzelm@11954
    29
  val split_asm = thm "sum.split_asm";
wenzelm@11954
    30
  val induct = thm "sum.induct";
wenzelm@11954
    31
  val recs = thms "sum.recs";
wenzelm@11954
    32
  val simps = thms "sum.simps";
wenzelm@11954
    33
  val size = thms "sum.size";
wenzelm@11954
    34
end;
wenzelm@11954
    35
wenzelm@11954
    36
structure unit =
wenzelm@11954
    37
struct
wenzelm@11954
    38
  val distinct = thms "unit.distinct";
wenzelm@11954
    39
  val inject = thms "unit.inject";
wenzelm@11954
    40
  val exhaust = thm "unit.exhaust";
wenzelm@11954
    41
  val cases = thms "unit.cases";
wenzelm@11954
    42
  val split = thm "unit.split";
wenzelm@11954
    43
  val split_asm = thm "unit.split_asm";
wenzelm@11954
    44
  val induct = thm "unit.induct";
wenzelm@11954
    45
  val recs = thms "unit.recs";
wenzelm@11954
    46
  val simps = thms "unit.simps";
wenzelm@11954
    47
  val size = thms "unit.size";
wenzelm@11954
    48
end;
wenzelm@11954
    49
wenzelm@11954
    50
structure prod =
wenzelm@11954
    51
struct
wenzelm@11954
    52
  val distinct = thms "prod.distinct";
wenzelm@11954
    53
  val inject = thms "prod.inject";
wenzelm@11954
    54
  val exhaust = thm "prod.exhaust";
wenzelm@11954
    55
  val cases = thms "prod.cases";
wenzelm@11954
    56
  val split = thm "prod.split";
wenzelm@11954
    57
  val split_asm = thm "prod.split_asm";
wenzelm@11954
    58
  val induct = thm "prod.induct";
wenzelm@11954
    59
  val recs = thms "prod.recs";
wenzelm@11954
    60
  val simps = thms "prod.simps";
wenzelm@11954
    61
  val size = thms "prod.size";
wenzelm@11954
    62
end;
wenzelm@11954
    63
wenzelm@12918
    64
structure option =
wenzelm@12918
    65
struct
wenzelm@12918
    66
  val distinct = thms "option.distinct";
wenzelm@12918
    67
  val inject = thms "option.inject";
wenzelm@12918
    68
  val exhaust = thm "option.exhaust";
wenzelm@12918
    69
  val cases = thms "option.cases";
wenzelm@12918
    70
  val split = thm "option.split";
wenzelm@12918
    71
  val split_asm = thm "option.split_asm";
wenzelm@12918
    72
  val induct = thm "option.induct";
wenzelm@12918
    73
  val recs = thms "option.recs";
wenzelm@12918
    74
  val simps = thms "option.simps";
wenzelm@12918
    75
  val size = thms "option.size";
wenzelm@12918
    76
end;
berghofe@7293
    77
wenzelm@12918
    78
val elem_o2s = thm "elem_o2s";
wenzelm@12918
    79
val not_None_eq = thm "not_None_eq";
wenzelm@12918
    80
val not_Some_eq = thm "not_Some_eq";
wenzelm@12918
    81
val o2s_empty_eq = thm "o2s_empty_eq";
wenzelm@12918
    82
val option_caseE = thm "option_caseE";
wenzelm@12918
    83
val option_map_None = thm "option_map_None";
wenzelm@12918
    84
val option_map_Some = thm "option_map_Some";
wenzelm@12918
    85
val option_map_def = thm "option_map_def";
wenzelm@12918
    86
val option_map_eq_Some = thm "option_map_eq_Some";
wenzelm@12918
    87
val option_map_o_sum_case = thm "option_map_o_sum_case";
wenzelm@12918
    88
val ospec = thm "ospec";
wenzelm@12918
    89
val sum_case_inject = thm "sum_case_inject";
wenzelm@12918
    90
val sum_case_weak_cong = thm "sum_case_weak_cong";
wenzelm@12918
    91
val surjective_sum = thm "surjective_sum";