src/HOL/Tools/datatype_package.ML
changeset 24959 119793c84647
parent 24867 e5b55d7be9bb
child 25458 ba8f5e4fa336
equal deleted inserted replaced
24958:ff15f76741bd 24959:119793c84647
   515     |> add args
   515     |> add args
   516     |> Theory.add_finals_i false specs
   516     |> Theory.add_finals_i false specs
   517   end;
   517   end;
   518 
   518 
   519 val specify_consts = gen_specify_consts Sign.add_consts_i;
   519 val specify_consts = gen_specify_consts Sign.add_consts_i;
   520 val specify_consts_authentic = gen_specify_consts (Sign.add_consts_authentic []);
   520 val specify_consts_authentic = gen_specify_consts (fold (snd oo Sign.declare_const []));
   521 
   521 
   522 structure DatatypeInterpretation = InterpretationFun(type T = string list val eq = op =);
   522 structure DatatypeInterpretation = InterpretationFun(type T = string list val eq = op =);
   523 val interpretation = DatatypeInterpretation.interpretation;
   523 val interpretation = DatatypeInterpretation.interpretation;
   524 
   524 
   525 fun add_datatype_axm flat_names new_type_names descr sorts types_syntax constr_syntax dt_info
   525 fun add_datatype_axm flat_names new_type_names descr sorts types_syntax constr_syntax dt_info