src/HOL/Tools/Sledgehammer/sledgehammer.ML
changeset 57464 3e94eb1124b0
parent 57387 2b6fe2a48352
child 57557 242ce8d3d16b
--- a/src/HOL/Tools/Sledgehammer/sledgehammer.ML	Tue Jul 01 16:47:10 2014 +0200
+++ b/src/HOL/Tools/Sledgehammer/sledgehammer.ML	Tue Jul 01 16:47:10 2014 +0200
@@ -196,8 +196,11 @@
   (facts |> map (fst o fst) |> space_implode " ") ^ "."
 
 fun string_of_factss factss =
-  if forall (null o snd) factss then "Found no relevant facts."
-  else cat_lines (map (fn (filter, facts) => quote filter ^ ": " ^ string_of_facts facts) factss)
+  if forall (null o snd) factss then
+    "Found no relevant facts."
+  else
+    cat_lines (map (fn (filter, facts) =>
+      (if filter = "" then "" else quote filter ^ ": ") ^ string_of_facts facts) factss)
 
 fun run_sledgehammer (params as {verbose, spy, blocking, provers, max_facts, ...}) mode
     output_result i (fact_override as {only, ...}) minimize_command state =