src/HOL/Tools/Datatype/rep_datatype.ML
changeset 55958 4ec984df4f45
parent 55955 e8f1bf005661
child 55990 41c6b99c5fb7
equal deleted inserted replaced
55957:cffb46aea3d1 55958:4ec984df4f45
   533       ((Binding.empty, [Rule_Cases.inner_rule, Induct.induct_type ""]), [([induct], [])]))
   533       ((Binding.empty, [Rule_Cases.inner_rule, Induct.induct_type ""]), [([induct], [])]))
   534         (drop (length dt_names) inducts);
   534         (drop (length dt_names) inducts);
   535 
   535 
   536     val ctxt = Proof_Context.init_global thy9;
   536     val ctxt = Proof_Context.init_global thy9;
   537     val case_combs =
   537     val case_combs =
   538       map (Proof_Context.read_const ctxt {proper = false, strict = false}) case_names;
   538       map (Proof_Context.read_const ctxt {proper = true, strict = true}) case_names;
   539     val constrss = map (fn (dtname, {descr, index, ...}) =>
   539     val constrss = map (fn (dtname, {descr, index, ...}) =>
   540       map (Proof_Context.read_const ctxt {proper = false, strict = false} o fst)
   540       map (Proof_Context.read_const ctxt {proper = true, strict = true} o fst)
   541         (#3 (the (AList.lookup op = descr index)))) dt_infos;
   541         (#3 (the (AList.lookup op = descr index)))) dt_infos;
   542   in
   542   in
   543     thy9
   543     thy9
   544     |> Global_Theory.note_thmss ""
   544     |> Global_Theory.note_thmss ""
   545       ([((prfx (Binding.name "simps"), []), [(simps, [])]),
   545       ([((prfx (Binding.name "simps"), []), [(simps, [])]),