src/HOL/Tools/Function/function.ML
changeset 58816 aab139c0003f
parent 58112 8081087096ad
child 58826 2ed2eaabe3df
equal deleted inserted replaced
58815:fd3f893a40ea 58816:aab139c0003f
   269   let
   269   let
   270     val cong = #case_cong (Old_Datatype_Data.the_info thy n)
   270     val cong = #case_cong (Old_Datatype_Data.the_info thy n)
   271       |> safe_mk_meta_eq
   271       |> safe_mk_meta_eq
   272   in
   272   in
   273     Context.theory_map
   273     Context.theory_map
   274       (Function_Ctx_Tree.map_function_congs (Thm.add_thm cong)) thy
   274       (Function_Context_Tree.map_function_congs (Thm.add_thm cong)) thy
   275   end
   275   end
   276 
   276 
   277 val setup_case_cong = Old_Datatype_Data.interpretation (K (fold add_case_cong))
   277 val setup_case_cong = Old_Datatype_Data.interpretation (K (fold add_case_cong))
   278 
   278 
   279 
   279 
   280 (* setup *)
   280 (* setup *)
   281 
   281 
   282 val setup = setup_case_cong
   282 val setup = setup_case_cong
   283 
   283 
   284 val get_congs = Function_Ctx_Tree.get_function_congs
   284 val get_congs = Function_Context_Tree.get_function_congs
   285 
   285 
   286 fun get_info ctxt t = Item_Net.retrieve (get_function ctxt) t
   286 fun get_info ctxt t = Item_Net.retrieve (get_function ctxt) t
   287   |> the_single |> snd
   287   |> the_single |> snd
   288 
   288 
   289 
   289