src/HOL/Tools/Function/fun.ML
changeset 58826 2ed2eaabe3df
parent 56254 a2dd9200854d
child 59159 9312710451f5
equal deleted inserted replaced
58825:2065f49da190 58826:2ed2eaabe3df
    12     (Attrib.binding * term) list -> Function_Common.function_config ->
    12     (Attrib.binding * term) list -> Function_Common.function_config ->
    13     local_theory -> Proof.context
    13     local_theory -> Proof.context
    14   val add_fun_cmd : (binding * string option * mixfix) list ->
    14   val add_fun_cmd : (binding * string option * mixfix) list ->
    15     (Attrib.binding * string) list -> Function_Common.function_config ->
    15     (Attrib.binding * string) list -> Function_Common.function_config ->
    16     bool -> local_theory -> Proof.context
    16     bool -> local_theory -> Proof.context
    17 
       
    18   val setup : theory -> theory
       
    19 end
    17 end
    20 
    18 
    21 structure Function_Fun : FUNCTION_FUN =
    19 structure Function_Fun : FUNCTION_FUN =
    22 struct
    20 struct
    23 
    21 
   146       (flat spliteqs, restore_spec, sort, case_names)
   144       (flat spliteqs, restore_spec, sort, case_names)
   147     end
   145     end
   148   else
   146   else
   149     Function_Common.empty_preproc check_defs config ctxt fixes spec
   147     Function_Common.empty_preproc check_defs config ctxt fixes spec
   150 
   148 
   151 val setup =
   149 val _ = Theory.setup (Context.theory_map (Function_Common.set_preproc sequential_preproc))
   152   Context.theory_map (Function_Common.set_preproc sequential_preproc)
   150 
   153 
   151 
   154 
   152 
   155 val fun_config = FunctionConfig { sequential=true, default=NONE,
   153 val fun_config = FunctionConfig { sequential=true, default=NONE,
   156   domintros=false, partials=false }
   154   domintros=false, partials=false }
   157 
   155