equal
deleted
inserted
replaced
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 *) |