src/ZF/Tools/datatype_package.ML
changeset 21350 6e58289b6685
parent 20046 9c8909fc5865
child 22101 6d13239d5f52
equal deleted inserted replaced
21349:09c3af731e27 21350:6e58289b6685
   394     val dom_sum =
   394     val dom_sum =
   395       if sdom = "" then Ind_Syntax.data_domain coind (rec_tms, con_ty_lists)
   395       if sdom = "" then Ind_Syntax.data_domain coind (rec_tms, con_ty_lists)
   396       else read_i sdom;
   396       else read_i sdom;
   397   in
   397   in
   398     thy
   398     thy
   399     |> IsarThy.apply_theorems raw_monos
   399     |> IsarCmd.apply_theorems raw_monos
   400     ||>> IsarThy.apply_theorems raw_type_intrs
   400     ||>> IsarCmd.apply_theorems raw_type_intrs
   401     ||>> IsarThy.apply_theorems raw_type_elims
   401     ||>> IsarCmd.apply_theorems raw_type_elims
   402     |-> (fn ((monos, type_intrs), type_elims) =>
   402     |-> (fn ((monos, type_intrs), type_elims) =>
   403           add_datatype_i (dom_sum, rec_tms) con_ty_lists (monos, type_intrs, type_elims))
   403           add_datatype_i (dom_sum, rec_tms) con_ty_lists (monos, type_intrs, type_elims))
   404   end;
   404   end;
   405 
   405 
   406 (* outer syntax *)
   406 (* outer syntax *)