equal
deleted
inserted
replaced
113 let |
113 let |
114 val thy = Proof_Context.theory_of ctxt |
114 val thy = Proof_Context.theory_of ctxt |
115 val prob_file = File.tmp_path (Path.explode "prob.tptp") |
115 val prob_file = File.tmp_path (Path.explode "prob.tptp") |
116 val {exec, arguments, proof_delims, known_failures, ...} = |
116 val {exec, arguments, proof_delims, known_failures, ...} = |
117 get_atp thy spassN |
117 get_atp thy spassN |
118 val _ = problem |> tptp_lines_for_atp_problem FOF |
118 val _ = problem |> lines_for_atp_problem FOF |> File.write_list prob_file |
119 |> File.write_list prob_file |
|
120 val command = |
119 val command = |
121 File.shell_path (Path.explode (getenv (fst exec) ^ "/" ^ snd exec)) ^ |
120 File.shell_path (Path.explode (getenv (fst exec) ^ "/" ^ snd exec)) ^ |
122 " " ^ arguments ctxt false "" (seconds 1.0) (K []) ^ " " ^ |
121 " " ^ arguments ctxt false "" (seconds 1.0) (K []) ^ " " ^ |
123 File.shell_path prob_file |
122 File.shell_path prob_file |
124 in |
123 in |
187 (ordered_names ~~ (1 upto length ordered_names)) |
186 (ordered_names ~~ (1 upto length ordered_names)) |
188 val name_ord = int_ord o pairself (the o Symtab.lookup order_tab) |
187 val name_ord = int_ord o pairself (the o Symtab.lookup order_tab) |
189 val atp_problem = |
188 val atp_problem = |
190 atp_problem |> add_inferences_to_problem infers |
189 atp_problem |> add_inferences_to_problem infers |
191 |> order_problem_facts name_ord |
190 |> order_problem_facts name_ord |
192 val ss = tptp_lines_for_atp_problem FOF atp_problem |
191 val ss = lines_for_atp_problem FOF atp_problem |
193 val _ = app (File.append path) ss |
192 val _ = app (File.append path) ss |
194 in () end |
193 in () end |
195 |
194 |
196 end; |
195 end; |