author | wenzelm |
Sat, 25 Apr 2009 20:31:27 +0200 | |
changeset 30979 | 10eb446df3c7 |
parent 30899 | d394a17d4fdb |
child 31037 | ac8669134e7a |
permissions | -rw-r--r-- |
28592 | 1 |
(* Title: HOL/Tools/atp_wrapper.ML |
2 |
Author: Fabian Immler, TU Muenchen |
|
3 |
||
4 |
Wrapper functions for external ATPs. |
|
5 |
*) |
|
6 |
||
7 |
signature ATP_WRAPPER = |
|
8 |
sig |
|
9 |
val destdir: string ref |
|
10 |
val problem_name: string ref |
|
11 |
val external_prover: |
|
30536
07b4f050e4df
split relevance-filter and writing of problem-files;
immler@in.tum.de
parents:
30535
diff
changeset
|
12 |
(thm * (string * int)) list -> |
07b4f050e4df
split relevance-filter and writing of problem-files;
immler@in.tum.de
parents:
30535
diff
changeset
|
13 |
(Path.T -> thm -> int -> (thm * (string * int)) list -> theory -> string vector) -> |
07b4f050e4df
split relevance-filter and writing of problem-files;
immler@in.tum.de
parents:
30535
diff
changeset
|
14 |
Path.T * string -> (string -> string option) -> |
28592 | 15 |
(string * string vector * Proof.context * thm * int -> string) -> |
28596
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
16 |
AtpManager.prover |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
17 |
val tptp_prover_opts_full: int -> bool -> bool -> Path.T * string -> AtpManager.prover |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
18 |
val tptp_prover_opts: int -> bool -> Path.T * string -> AtpManager.prover |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
19 |
val tptp_prover: Path.T * string -> AtpManager.prover |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
20 |
val full_prover_opts: int -> bool -> Path.T * string -> AtpManager.prover |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
21 |
val full_prover: Path.T * string -> AtpManager.prover |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
22 |
val vampire_opts: int -> bool -> AtpManager.prover |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
23 |
val vampire: AtpManager.prover |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
24 |
val vampire_opts_full: int -> bool -> AtpManager.prover |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
25 |
val vampire_full: AtpManager.prover |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
26 |
val eprover_opts: int -> bool -> AtpManager.prover |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
27 |
val eprover: AtpManager.prover |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
28 |
val eprover_opts_full: int -> bool -> AtpManager.prover |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
29 |
val eprover_full: AtpManager.prover |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
30 |
val spass_opts: int -> bool -> AtpManager.prover |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
31 |
val spass: AtpManager.prover |
29590 | 32 |
val remote_prover_opts: int -> bool -> string -> AtpManager.prover |
33 |
val remote_prover: string -> AtpManager.prover |
|
28592 | 34 |
end; |
35 |
||
36 |
structure AtpWrapper: ATP_WRAPPER = |
|
37 |
struct |
|
28596
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
38 |
|
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
39 |
(** generic ATP wrapper **) |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
40 |
|
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
41 |
(* global hooks for writing problemfiles *) |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
42 |
|
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
43 |
val destdir = ref ""; (*Empty means write files to /tmp*) |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
44 |
val problem_name = ref "prob"; |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
45 |
|
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
46 |
|
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
47 |
(* basic template *) |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
48 |
|
30537 | 49 |
fun external_prover axiom_clauses write_problem_file (cmd, args) find_failure produce_answer timeout subgoalno goal = |
28596
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
50 |
let |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
51 |
(* path to unique problem file *) |
28592 | 52 |
val destdir' = ! destdir |
53 |
val problem_name' = ! problem_name |
|
54 |
fun prob_pathname nr = |
|
28596
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
55 |
let val probfile = Path.basic (problem_name' ^ serial_string () ^ "_" ^ string_of_int nr) |
28592 | 56 |
in if destdir' = "" then File.tmp_path probfile |
57 |
else if File.exists (Path.explode (destdir')) |
|
58 |
then Path.append (Path.explode (destdir')) probfile |
|
59 |
else error ("No such directory: " ^ destdir') |
|
60 |
end |
|
28596
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
61 |
|
28592 | 62 |
(* write out problem file and call prover *) |
30537 | 63 |
val (ctxt, (chain_ths, th)) = goal |
30536
07b4f050e4df
split relevance-filter and writing of problem-files;
immler@in.tum.de
parents:
30535
diff
changeset
|
64 |
val thy = ProofContext.theory_of ctxt |
28596
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
65 |
val chain_ths = map (Thm.put_name_hint ResReconstruct.chained_hint) chain_ths |
30536
07b4f050e4df
split relevance-filter and writing of problem-files;
immler@in.tum.de
parents:
30535
diff
changeset
|
66 |
val probfile = prob_pathname subgoalno |
07b4f050e4df
split relevance-filter and writing of problem-files;
immler@in.tum.de
parents:
30535
diff
changeset
|
67 |
val fname = File.platform_path probfile |
30537 | 68 |
val thm_names = write_problem_file probfile th subgoalno axiom_clauses thy |
28596
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
69 |
val cmdline = |
30899
d394a17d4fdb
external_prover: "exec" the command line, in order to preserve the exact process context of the "system" invocation (this recovers interruptibility of E-1.0, which assumes to be the process group leader);
wenzelm
parents:
30896
diff
changeset
|
70 |
if File.exists cmd then "exec " ^ File.shell_path cmd ^ " " ^ args |
28596
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
71 |
else error ("Bad executable: " ^ Path.implode cmd) |
30536
07b4f050e4df
split relevance-filter and writing of problem-files;
immler@in.tum.de
parents:
30535
diff
changeset
|
72 |
val (proof, rc) = system_out (cmdline ^ " " ^ fname) |
28592 | 73 |
|
28596
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
74 |
(* remove *temporary* files *) |
30536
07b4f050e4df
split relevance-filter and writing of problem-files;
immler@in.tum.de
parents:
30535
diff
changeset
|
75 |
val _ = if destdir' = "" then OS.FileSys.remove fname else () |
29590 | 76 |
|
77 |
(* check for success and print out some information on failure *) |
|
78 |
val failure = find_failure proof |
|
29597 | 79 |
val success = rc = 0 andalso is_none failure |
28596
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
80 |
val message = |
30896
ec3f33437fe3
more generic error message, which also covers more fundamental failure;
wenzelm
parents:
30874
diff
changeset
|
81 |
if is_some failure then "External prover failed." |
ec3f33437fe3
more generic error message, which also covers more fundamental failure;
wenzelm
parents:
30874
diff
changeset
|
82 |
else if rc <> 0 then "External prover failed: " ^ proof |
30537 | 83 |
else "Try this command: " ^ produce_answer (proof, thm_names, ctxt, th, subgoalno) |
30535 | 84 |
|
30896
ec3f33437fe3
more generic error message, which also covers more fundamental failure;
wenzelm
parents:
30874
diff
changeset
|
85 |
val _ = |
ec3f33437fe3
more generic error message, which also covers more fundamental failure;
wenzelm
parents:
30874
diff
changeset
|
86 |
if is_some failure |
30015
1baeda435aa6
detailed information on atp-failure via Output.debug
immler@in.tum.de
parents:
29597
diff
changeset
|
87 |
then Output.debug (fn () => "Sledgehammer failure: " ^ the failure ^ "\nOutput: " ^ proof) |
1baeda435aa6
detailed information on atp-failure via Output.debug
immler@in.tum.de
parents:
29597
diff
changeset
|
88 |
else () |
30896
ec3f33437fe3
more generic error message, which also covers more fundamental failure;
wenzelm
parents:
30874
diff
changeset
|
89 |
val _ = |
ec3f33437fe3
more generic error message, which also covers more fundamental failure;
wenzelm
parents:
30874
diff
changeset
|
90 |
if rc <> 0 |
30015
1baeda435aa6
detailed information on atp-failure via Output.debug
immler@in.tum.de
parents:
29597
diff
changeset
|
91 |
then Output.debug (fn () => "Sledgehammer exited with return code " ^ string_of_int rc ^ ":\n" ^ proof) |
1baeda435aa6
detailed information on atp-failure via Output.debug
immler@in.tum.de
parents:
29597
diff
changeset
|
92 |
else () |
28596
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
93 |
in (success, message) end; |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
94 |
|
28592 | 95 |
|
28596
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
96 |
|
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
97 |
(** common provers **) |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
98 |
|
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
99 |
(* generic TPTP-based provers *) |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
100 |
|
30537 | 101 |
fun tptp_prover_opts_full max_new theory_const full command timeout n goal = |
28596
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
102 |
external_prover |
30537 | 103 |
(ResAtp.get_relevant max_new theory_const goal n) |
30536
07b4f050e4df
split relevance-filter and writing of problem-files;
immler@in.tum.de
parents:
30535
diff
changeset
|
104 |
(ResAtp.write_problem_file false) |
28592 | 105 |
command |
30874
34927a1e0ae8
reverted to explicitly check the presence of a refutation
immler@in.tum.de
parents:
30542
diff
changeset
|
106 |
ResReconstruct.find_failure |
30536
07b4f050e4df
split relevance-filter and writing of problem-files;
immler@in.tum.de
parents:
30535
diff
changeset
|
107 |
(if full then ResReconstruct.structured_proof else ResReconstruct.lemma_list_tstp) |
30537 | 108 |
timeout n goal; |
28596
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
109 |
|
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
110 |
(*arbitrary ATP with TPTP input/output and problemfile as last argument*) |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
111 |
fun tptp_prover_opts max_new theory_const = |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
112 |
tptp_prover_opts_full max_new theory_const false; |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
113 |
|
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
114 |
val tptp_prover = tptp_prover_opts 60 true; |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
115 |
|
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
116 |
(*for structured proofs: prover must support TSTP*) |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
117 |
fun full_prover_opts max_new theory_const = |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
118 |
tptp_prover_opts_full max_new theory_const true; |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
119 |
|
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
120 |
val full_prover = full_prover_opts 60 true; |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
121 |
|
28592 | 122 |
|
28596
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
123 |
(* Vampire *) |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
124 |
|
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
125 |
(*NB: Vampire does not work without explicit timelimit*) |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
126 |
|
29593 | 127 |
fun vampire_opts max_new theory_const timeout = tptp_prover_opts |
28596
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
128 |
max_new theory_const |
29593 | 129 |
(Path.explode "$VAMPIRE_HOME/vampire", |
130 |
("--output_syntax tptp --mode casc -t " ^ string_of_int timeout)) |
|
131 |
timeout; |
|
28596
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
132 |
|
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
133 |
val vampire = vampire_opts 60 false; |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
134 |
|
29593 | 135 |
fun vampire_opts_full max_new theory_const timeout = full_prover_opts |
28596
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
136 |
max_new theory_const |
29593 | 137 |
(Path.explode "$VAMPIRE_HOME/vampire", |
138 |
("--output_syntax tptp --mode casc -t " ^ string_of_int timeout)) |
|
139 |
timeout; |
|
28596
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
140 |
|
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
141 |
val vampire_full = vampire_opts 60 false; |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
142 |
|
28592 | 143 |
|
28596
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
144 |
(* E prover *) |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
145 |
|
30536
07b4f050e4df
split relevance-filter and writing of problem-files;
immler@in.tum.de
parents:
30535
diff
changeset
|
146 |
fun eprover_opts max_new theory_const timeout = tptp_prover_opts |
28596
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
147 |
max_new theory_const |
30536
07b4f050e4df
split relevance-filter and writing of problem-files;
immler@in.tum.de
parents:
30535
diff
changeset
|
148 |
(Path.explode "$E_HOME/eproof", |
07b4f050e4df
split relevance-filter and writing of problem-files;
immler@in.tum.de
parents:
30535
diff
changeset
|
149 |
"--tstp-in --tstp-out -l5 -xAutoDev -tAutoDev --silent --cpu-limit=" ^ string_of_int timeout) |
07b4f050e4df
split relevance-filter and writing of problem-files;
immler@in.tum.de
parents:
30535
diff
changeset
|
150 |
timeout; |
28596
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
151 |
|
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
152 |
val eprover = eprover_opts 100 false; |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
153 |
|
30536
07b4f050e4df
split relevance-filter and writing of problem-files;
immler@in.tum.de
parents:
30535
diff
changeset
|
154 |
fun eprover_opts_full max_new theory_const timeout = full_prover_opts |
28596
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
155 |
max_new theory_const |
30536
07b4f050e4df
split relevance-filter and writing of problem-files;
immler@in.tum.de
parents:
30535
diff
changeset
|
156 |
(Path.explode "$E_HOME/eproof", |
07b4f050e4df
split relevance-filter and writing of problem-files;
immler@in.tum.de
parents:
30535
diff
changeset
|
157 |
"--tstp-in --tstp-out -l5 -xAutoDev -tAutoDev --silent --cpu-limit=" ^ string_of_int timeout) |
07b4f050e4df
split relevance-filter and writing of problem-files;
immler@in.tum.de
parents:
30535
diff
changeset
|
158 |
timeout; |
28596
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
159 |
|
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
160 |
val eprover_full = eprover_opts_full 100 false; |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
161 |
|
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
162 |
|
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
163 |
(* SPASS *) |
28592 | 164 |
|
30537 | 165 |
fun spass_opts max_new theory_const timeout n goal = external_prover |
166 |
(ResAtp.get_relevant max_new theory_const goal n) |
|
30536
07b4f050e4df
split relevance-filter and writing of problem-files;
immler@in.tum.de
parents:
30535
diff
changeset
|
167 |
(ResAtp.write_problem_file true) |
07b4f050e4df
split relevance-filter and writing of problem-files;
immler@in.tum.de
parents:
30535
diff
changeset
|
168 |
(Path.explode "$SPASS_HOME/SPASS", |
07b4f050e4df
split relevance-filter and writing of problem-files;
immler@in.tum.de
parents:
30535
diff
changeset
|
169 |
"-Auto -SOS=1 -PGiven=0 -PProblem=0 -Splits=0 -FullRed=0 -DocProof -TimeLimit=" ^ string_of_int timeout) |
30874
34927a1e0ae8
reverted to explicitly check the presence of a refutation
immler@in.tum.de
parents:
30542
diff
changeset
|
170 |
ResReconstruct.find_failure |
30536
07b4f050e4df
split relevance-filter and writing of problem-files;
immler@in.tum.de
parents:
30535
diff
changeset
|
171 |
ResReconstruct.lemma_list_dfg |
30537 | 172 |
timeout n goal; |
28596
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
173 |
|
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
174 |
val spass = spass_opts 40 true; |
28592 | 175 |
|
28596
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
176 |
|
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
177 |
(* remote prover invocation via SystemOnTPTP *) |
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
178 |
|
29593 | 179 |
fun remote_prover_opts max_new theory_const args timeout = |
28596
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
180 |
tptp_prover_opts max_new theory_const |
30979
10eb446df3c7
renamed contrib/SystemOnTPTP/remote to lib/script/SystemOnTPTP, thus leaving contrib empty within the official distribution;
wenzelm
parents:
30899
diff
changeset
|
181 |
(Path.explode "$ISABELLE_HOME/lib/scripts/SystemOnTPTP", args ^ " -t " ^ string_of_int timeout) |
29593 | 182 |
timeout; |
28596
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
183 |
|
fcd463a6b6de
tuned interfaces -- plain prover function, without thread;
wenzelm
parents:
28592
diff
changeset
|
184 |
val remote_prover = remote_prover_opts 60 false; |
28592 | 185 |
|
186 |
end; |
|
30536
07b4f050e4df
split relevance-filter and writing of problem-files;
immler@in.tum.de
parents:
30535
diff
changeset
|
187 |
|
07b4f050e4df
split relevance-filter and writing of problem-files;
immler@in.tum.de
parents:
30535
diff
changeset
|
188 |