src/HOL/TPTP/mash_eval.ML
changeset 48615 d5c9917ff5b6
parent 48530 d443166f9520
child 50358 b7d3319409b7
equal deleted inserted replaced
48614:6004f4575645 48615:d5c9917ff5b6
    44     val mash_ok = Unsynchronized.ref 0
    44     val mash_ok = Unsynchronized.ref 0
    45     val mesh_ok = Unsynchronized.ref 0
    45     val mesh_ok = Unsynchronized.ref 0
    46     val isar_ok = Unsynchronized.ref 0
    46     val isar_ok = Unsynchronized.ref 0
    47     fun with_index facts s = (find_index (curry (op =) s) facts + 1, s)
    47     fun with_index facts s = (find_index (curry (op =) s) facts + 1, s)
    48     fun index_string (j, s) = s ^ "@" ^ string_of_int j
    48     fun index_string (j, s) = s ^ "@" ^ string_of_int j
    49     fun str_of_res label facts {outcome, run_time, used_facts, ...} =
    49     fun str_of_res label facts ({outcome, run_time, used_facts, ...}: Sledgehammer_Provers.prover_result) =
    50       let val facts = facts |> map (fn ((name, _), _) => name ()) in
    50       let val facts = facts |> map (fn ((name, _), _) => name ()) in
    51         "  " ^ label ^ ": " ^
    51         "  " ^ label ^ ": " ^
    52         (if is_none outcome then
    52         (if is_none outcome then
    53            "Success (" ^ ATP_Util.string_from_time run_time ^ "): " ^
    53            "Success (" ^ ATP_Util.string_from_time run_time ^ "): " ^
    54            (used_facts |> map (with_index facts o fst)
    54            (used_facts |> map (with_index facts o fst)