src/Pure/proof_general.ML
changeset 13545 fcdbd6cf5f9f
parent 13538 359c085c4def
child 13646 46ed3d042ba5
--- a/src/Pure/proof_general.ML	Wed Aug 28 13:08:50 2002 +0200
+++ b/src/Pure/proof_general.ML	Wed Aug 28 15:27:43 2002 +0200
@@ -165,18 +165,18 @@
 
 local
 
+val spaces_quote = space_implode " " o map quote;
+
 fun tell_thm_deps ths =
   conditional (thm_depsN mem_string ! print_mode) (fn () =>
     let
-      val names = map Thm.name_of_thm ths;
-      val refs =
-        foldl (uncurry Proofterm.thms_of_proof) (Symtab.empty, map Thm.proof_of ths)
-        |> Symtab.keys;
-      val deps = refs \\ names \ "";
+      val names = map Thm.name_of_thm ths \ "";
+      val deps = Symtab.keys (foldl (uncurry Proofterm.thms_of_proof)
+          (Symtab.empty, map Thm.proof_of ths)) \ "";
     in
-      if null deps then ()
-      else notify ("Proof General, theorem dependencies are: "
-        ^ space_implode " " (map quote deps))    (* FIXME output names \ "" as well!? *)
+      if null names orelse null deps then ()
+      else notify ("Proof General, theorem dependencies of " ^ spaces_quote names ^ " are "
+        ^ spaces_quote deps)
     end);
 
 in