src/HOL/Tools/inductive_set.ML
changeset 49324 4f28543ae7fa
parent 49170 03bee3a6a1b7
child 50774 ac53370dfae1
equal deleted inserted replaced
49323:6dff6b1f5417 49324:4f28543ae7fa
    19     local_theory -> Inductive.inductive_result * local_theory
    19     local_theory -> Inductive.inductive_result * local_theory
    20   val add_inductive: bool -> bool ->
    20   val add_inductive: bool -> bool ->
    21     (binding * string option * mixfix) list ->
    21     (binding * string option * mixfix) list ->
    22     (binding * string option * mixfix) list ->
    22     (binding * string option * mixfix) list ->
    23     (Attrib.binding * string) list -> (Facts.ref * Attrib.src list) list ->
    23     (Attrib.binding * string) list -> (Facts.ref * Attrib.src list) list ->
    24     bool -> local_theory -> Inductive.inductive_result * local_theory
    24     local_theory -> Inductive.inductive_result * local_theory
    25   val mono_add: attribute
    25   val mono_add: attribute
    26   val mono_del: attribute
    26   val mono_del: attribute
    27   val codegen_preproc: theory -> thm list -> thm list
    27   val codegen_preproc: theory -> thm list -> thm list
    28   val setup: theory -> theory
    28   val setup: theory -> theory
    29 end;
    29 end;
   572 (* outer syntax *)
   572 (* outer syntax *)
   573 
   573 
   574 val ind_set_decl = Inductive.gen_ind_decl add_ind_set_def;
   574 val ind_set_decl = Inductive.gen_ind_decl add_ind_set_def;
   575 
   575 
   576 val _ =
   576 val _ =
   577   Outer_Syntax.local_theory' @{command_spec "inductive_set"} "define inductive sets"
   577   Outer_Syntax.local_theory @{command_spec "inductive_set"} "define inductive sets"
   578     (ind_set_decl false);
   578     (ind_set_decl false);
   579 
   579 
   580 val _ =
   580 val _ =
   581   Outer_Syntax.local_theory' @{command_spec "coinductive_set"} "define coinductive sets"
   581   Outer_Syntax.local_theory @{command_spec "coinductive_set"} "define coinductive sets"
   582     (ind_set_decl true);
   582     (ind_set_decl true);
   583 
   583 
   584 end;
   584 end;