src/Pure/Tools/codegen_theorems.ML
changeset 19571 0d673faf560c
parent 19482 9f11af8f7ef9
child 19597 8ced57ffc090
--- a/src/Pure/Tools/codegen_theorems.ML	Fri May 05 19:32:34 2006 +0200
+++ b/src/Pure/Tools/codegen_theorems.ML	Fri May 05 19:32:35 2006 +0200
@@ -439,9 +439,9 @@
       |> filter_typ;
     val thms = case thms_funs
      of [] =>
-          Defs.specifications_of (Theory.defs_of thy) c
-          |> map (PureThy.get_thms thy o Name o fst o snd)
-          |> flat
+          Theory.definitions_of thy c
+          (* FIXME avoid dynamic name space lookup!? (via Thm.get_axiom_i etc.??) *)
+          |> maps (PureThy.get_thms thy o Name o #name)
           |> append (getf_first_list (map (fn f => f thy) (the_funs_extrs thy)) (c, ty))
           |> map (dest_fun thy)
           |> filter_typ