equal
deleted
inserted
replaced
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) |