src/HOL/HOLCF/Tools/Domain/domain_induction.ML
changeset 42361 23f352990944
parent 42151 4da4fc77664b
child 42364 8c674b3b8e44
equal deleted inserted replaced
42360:da8817d01e7c 42361:23f352990944
   223       fun one_eq bot (constr_info : Domain_Constructors.constr_info) =
   223       fun one_eq bot (constr_info : Domain_Constructors.constr_info) =
   224         let fun name_of (c, args) = Long_Name.base_name (fst (dest_Const c))
   224         let fun name_of (c, args) = Long_Name.base_name (fst (dest_Const c))
   225         in bot :: map name_of (#con_specs constr_info) end
   225         in bot :: map name_of (#con_specs constr_info) end
   226     in adms @ flat (map2 one_eq bottoms constr_infos) end
   226     in adms @ flat (map2 one_eq bottoms constr_infos) end
   227 
   227 
   228   val inducts = Project_Rule.projections (ProofContext.init_global thy) ind
   228   val inducts = Project_Rule.projections (Proof_Context.init_global thy) ind
   229   fun ind_rule (dname, rule) =
   229   fun ind_rule (dname, rule) =
   230       ((Binding.empty, rule),
   230       ((Binding.empty, rule),
   231        [Rule_Cases.case_names case_ns, Induct.induct_type dname])
   231        [Rule_Cases.case_names case_ns, Induct.induct_type dname])
   232 
   232 
   233 in
   233 in