src/HOL/Tools/Sledgehammer/sledgehammer.ML
changeset 57384 085e85cc6eea
parent 57368 b89937ed6099
child 57387 2b6fe2a48352
--- a/src/HOL/Tools/Sledgehammer/sledgehammer.ML	Thu Jun 26 16:41:43 2014 +0200
+++ b/src/HOL/Tools/Sledgehammer/sledgehammer.ML	Thu Jun 26 18:57:20 2014 +0200
@@ -192,19 +192,12 @@
 val auto_try_max_facts_divisor = 2 (* FUDGE *)
 
 fun string_of_facts facts =
-  "Including " ^ string_of_int (length facts) ^ " relevant fact" ^ plural_s (length facts) ^ ":\n" ^
+  "Including " ^ string_of_int (length facts) ^ " relevant fact" ^ plural_s (length facts) ^ ": " ^
   (facts |> map (fst o fst) |> space_implode " ") ^ "."
 
 fun string_of_factss factss =
-  if forall (null o snd) factss then
-    "Found no relevant facts."
-  else
-    (case factss of
-      [(_, facts)] => string_of_facts facts
-    | _ =>
-      factss
-      |> map (fn (filter, facts) => quote filter ^ ": " ^ string_of_facts facts)
-      |> space_implode "\n\n")
+  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)
 
 fun run_sledgehammer (params as {verbose, spy, blocking, provers, max_facts, ...}) mode
     output_result i (fact_override as {only, ...}) minimize_command state =