have Mirabelle produce more output
authorblanchet
Sun, 13 Jan 2013 21:42:39 +0100
changeset 50867 48836c35d636
parent 50866 e12ebcb859a7
child 50868 4b30d461b3a6
child 50870 b8606dd29783
have Mirabelle produce more output
src/HOL/Mirabelle/Tools/mirabelle_sledgehammer.ML
--- a/src/HOL/Mirabelle/Tools/mirabelle_sledgehammer.ML	Sun Jan 13 21:42:38 2013 +0100
+++ b/src/HOL/Mirabelle/Tools/mirabelle_sledgehammer.ML	Sun Jan 13 21:42:39 2013 +0100
@@ -477,12 +477,20 @@
           |> Sledgehammer_MaSh.relevant_facts ctxt params prover_name
                  (the_default default_max_facts max_facts)
                  Sledgehammer_Fact.no_fact_override hyp_ts concl_t
+          |> map (apfst (apfst (fn name => name ())))
+          |> tap (fn facts =>
+                     (if null facts then
+                        "Found no relevant facts."
+                      else
+                        "Including " ^ string_of_int (length facts) ^
+                        " relevant fact(s):\n" ^
+                        (facts |> map (fst o fst) |> space_implode " ") ^ ".")
+                     |> Output.urgent_message)
         val prover = get_prover ctxt prover_name params goal facts
         val problem =
           {state = st', goal = goal, subgoal = i,
            subgoal_count = Sledgehammer_Util.subgoal_count st,
-           facts = facts |> map (apfst (apfst (fn name => name ())))
-                         |> map Sledgehammer_Provers.Untranslated_Fact}
+           facts = facts |> map Sledgehammer_Provers.Untranslated_Fact}
       in prover params (K (K (K ""))) problem end)) ()
       handle TimeLimit.TimeOut => failed ATP_Proof.TimedOut
            | Fail "inappropriate" => failed ATP_Proof.Inappropriate