tuned message
authorblanchet
Tue, 01 Jul 2014 16:47:10 +0200
changeset 57464 3e94eb1124b0
parent 57463 d6df9b63d385
child 57465 ed826e2053c9
tuned message
src/HOL/Tools/Sledgehammer/sledgehammer.ML
--- 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 =