src/HOL/Tools/ATP_Manager/atp_wrapper.ML
author blanchet
Thu Apr 22 16:30:04 2010 +0200 (2010-04-22)
changeset 36289 f75b6a3e1450
parent 36287 96f45c5ffb36
child 36369 d2cd0d04b8e6
permissions -rw-r--r--
set "atps" reference's default value to "(remote_)e (remote_)spass (remote_)vampire", based on what is installed
wenzelm@32327
     1
(*  Title:      HOL/Tools/ATP_Manager/atp_wrapper.ML
wenzelm@28592
     2
    Author:     Fabian Immler, TU Muenchen
wenzelm@28592
     3
wenzelm@28592
     4
Wrapper functions for external ATPs.
wenzelm@28592
     5
*)
wenzelm@28592
     6
wenzelm@28592
     7
signature ATP_WRAPPER =
wenzelm@28592
     8
sig
blanchet@35867
     9
  type prover = ATP_Manager.prover
boehmes@32864
    10
blanchet@35867
    11
  (* hooks for problem files *)
blanchet@35867
    12
  val destdir : string Config.T
blanchet@35867
    13
  val problem_prefix : string Config.T
blanchet@35867
    14
  val measure_runtime : bool Config.T
boehmes@32864
    15
blanchet@35867
    16
  val refresh_systems_on_tptp : unit -> unit
blanchet@35867
    17
  val setup : theory -> theory
wenzelm@28592
    18
end;
wenzelm@28592
    19
blanchet@35865
    20
structure ATP_Wrapper : ATP_WRAPPER =
wenzelm@28592
    21
struct
wenzelm@28596
    22
blanchet@36187
    23
open Sledgehammer_Util
blanchet@35969
    24
open Sledgehammer_Fact_Preprocessor
blanchet@35865
    25
open Sledgehammer_HOL_Clause
blanchet@35865
    26
open Sledgehammer_Fact_Filter
blanchet@35865
    27
open Sledgehammer_Proof_Reconstruct
blanchet@35867
    28
open ATP_Manager
blanchet@35826
    29
wenzelm@28596
    30
(** generic ATP wrapper **)
wenzelm@28596
    31
wenzelm@32944
    32
(* external problem files *)
boehmes@32864
    33
wenzelm@36001
    34
val (destdir, destdir_setup) = Attrib.config_string "atp_destdir" (K "");
boehmes@32864
    35
  (*Empty string means create files in Isabelle's temporary files directory.*)
boehmes@32864
    36
boehmes@32864
    37
val (problem_prefix, problem_prefix_setup) =
wenzelm@36001
    38
  Attrib.config_string "atp_problem_prefix" (K "prob");
boehmes@32864
    39
boehmes@33247
    40
val (measure_runtime, measure_runtime_setup) =
wenzelm@36001
    41
  Attrib.config_bool "atp_measure_runtime" (K false);
boehmes@33247
    42
boehmes@32864
    43
blanchet@35867
    44
(* prover configuration *)
boehmes@32864
    45
blanchet@36289
    46
val remotify = prefix "remote_"
blanchet@36289
    47
wenzelm@32941
    48
type prover_config =
blanchet@36289
    49
 {home: string,
blanchet@36289
    50
  executable: string,
blanchet@35969
    51
  arguments: Time.time -> string,
blanchet@36265
    52
  known_failures: (string list * string) list,
boehmes@32864
    53
  max_new_clauses: int,
blanchet@36289
    54
  prefers_theory_relevant: bool};
wenzelm@28596
    55
wenzelm@28596
    56
wenzelm@28596
    57
(* basic template *)
wenzelm@28596
    58
boehmes@32458
    59
fun with_path cleanup after f path =
boehmes@32458
    60
  Exn.capture f path
boehmes@32458
    61
  |> tap (fn _ => cleanup path)
boehmes@32458
    62
  |> Exn.release
wenzelm@32941
    63
  |> tap (after path);
boehmes@32458
    64
blanchet@36265
    65
fun find_known_failure known_failures proof =
blanchet@36265
    66
  case map_filter (fn (patterns, message) =>
blanchet@36265
    67
                      if exists (fn pattern => String.isSubstring pattern proof)
blanchet@36265
    68
                                patterns then
blanchet@36265
    69
                        SOME message
blanchet@36265
    70
                      else
blanchet@36265
    71
                        NONE) known_failures of
blanchet@36265
    72
    [] => if is_proof_well_formed proof then ""
blanchet@36265
    73
          else "Error: The ATP output is ill-formed."
blanchet@36265
    74
  | (message :: _) => message
blanchet@35865
    75
blanchet@36289
    76
fun generic_prover overlord get_facts prepare write_file home executable args
blanchet@36289
    77
        known_failures name
blanchet@36287
    78
        ({debug, full_types, explicit_apply, isar_proof, modulus, sorts, ...}
blanchet@36287
    79
         : params) minimize_command
blanchet@35969
    80
        ({subgoal, goal, relevance_override, axiom_clauses, filtered_clauses}
blanchet@35969
    81
         : problem) =
wenzelm@28596
    82
  let
immler@31750
    83
    (* get clauses and prepare them for writing *)
wenzelm@32942
    84
    val (ctxt, (chain_ths, th)) = goal;
wenzelm@32942
    85
    val thy = ProofContext.theory_of ctxt;
blanchet@35865
    86
    val chain_ths = map (Thm.put_name_hint chained_hint) chain_ths;
blanchet@35969
    87
    val goal_cls = #1 (neg_conjecture_clauses ctxt th subgoal);
immler@31752
    88
    val the_filtered_clauses =
wenzelm@32942
    89
      (case filtered_clauses of
blanchet@35969
    90
        NONE => get_facts relevance_override goal goal_cls
wenzelm@32942
    91
      | SOME fcls => fcls);
immler@31409
    92
    val the_axiom_clauses =
wenzelm@32942
    93
      (case axiom_clauses of
wenzelm@32942
    94
        NONE => the_filtered_clauses
wenzelm@32942
    95
      | SOME axcls => axcls);
blanchet@35969
    96
    val (internal_thm_names, clauses) =
wenzelm@32942
    97
      prepare goal_cls chain_ths the_axiom_clauses the_filtered_clauses thy;
immler@31750
    98
boehmes@32864
    99
    (* path to unique problem file *)
blanchet@36143
   100
    val destdir' = if overlord then getenv "ISABELLE_HOME_USER"
blanchet@36143
   101
                   else Config.get ctxt destdir;
wenzelm@32942
   102
    val problem_prefix' = Config.get ctxt problem_prefix;
boehmes@32864
   103
    fun prob_pathname nr =
blanchet@36143
   104
      let
blanchet@36143
   105
        val probfile =
blanchet@36143
   106
          Path.basic (problem_prefix' ^
blanchet@36143
   107
                      (if overlord then "_" ^ name else serial_string ())
blanchet@36143
   108
                      ^ "_" ^ string_of_int nr)
wenzelm@32942
   109
      in
wenzelm@32942
   110
        if destdir' = "" then File.tmp_path probfile
wenzelm@35570
   111
        else if File.exists (Path.explode destdir')
blanchet@36281
   112
        then Path.append (Path.explode destdir') probfile
blanchet@36169
   113
        else error ("No such directory: " ^ destdir' ^ ".")
wenzelm@32942
   114
      end;
boehmes@32864
   115
blanchet@36289
   116
    val command = Path.explode (home ^ "/" ^ executable)
immler@31750
   117
    (* write out problem file and call prover *)
blanchet@36289
   118
    fun command_line probfile =
blanchet@36284
   119
      (if Config.get ctxt measure_runtime then
blanchet@36289
   120
         "TIMEFORMAT='%3U'; { time " ^
blanchet@36289
   121
         space_implode " " [File.shell_path command, args,
blanchet@36289
   122
                            File.shell_path probfile] ^ " ; } 2>&1"
blanchet@36284
   123
       else
blanchet@36289
   124
         space_implode " " ["exec", File.shell_path command, args,
blanchet@36289
   125
                            File.shell_path probfile, "2>&1"]) ^
blanchet@36284
   126
      (if overlord then
blanchet@36286
   127
         " | sed 's/,/, /g' \
blanchet@36286
   128
         \| sed 's/\\([^!=]\\)\\([=|]\\)\\([^=]\\)/\\1 \\2 \\3/g' \
blanchet@36286
   129
         \| sed 's/! =/ !=/g' \
blanchet@36286
   130
         \| sed 's/  / /g' | sed 's/| |/||/g' \
blanchet@36286
   131
         \| sed 's/ = = =/===/g' \
blanchet@36286
   132
         \| sed 's/= = /== /g'"
blanchet@36284
   133
       else
blanchet@36284
   134
         "")
boehmes@32510
   135
    fun split_time s =
boehmes@32510
   136
      let
wenzelm@32942
   137
        val split = String.tokens (fn c => str c = "\n");
wenzelm@32942
   138
        val (proof, t) = s |> split |> split_last |> apfst cat_lines;
wenzelm@32942
   139
        fun as_num f = f >> (fst o read_int);
wenzelm@32942
   140
        val num = as_num (Scan.many1 Symbol.is_ascii_digit);
wenzelm@32942
   141
        val digit = Scan.one Symbol.is_ascii_digit;
wenzelm@32942
   142
        val num3 = as_num (digit ::: digit ::: (digit >> single));
wenzelm@32942
   143
        val time = num --| Scan.$$ "." -- num3 >> (fn (a, b) => a * 1000 + b);
wenzelm@32942
   144
        val as_time = the_default 0 o Scan.read Symbol.stopper time o explode;
wenzelm@32942
   145
      in (proof, as_time t) end;
boehmes@33247
   146
    fun split_time' s =
boehmes@33247
   147
      if Config.get ctxt measure_runtime then split_time s else (s, 0)
boehmes@32458
   148
    fun run_on probfile =
blanchet@36289
   149
      if File.exists command then
blanchet@36235
   150
        write_file full_types explicit_apply probfile clauses
blanchet@36289
   151
        |> pair (apfst split_time' (bash_output (command_line probfile)))
blanchet@36289
   152
      else error ("Bad executable: " ^ Path.implode command ^ ".");
wenzelm@28592
   153
blanchet@36167
   154
    (* If the problem file has not been exported, remove it; otherwise, export
blanchet@36167
   155
       the proof file too. *)
wenzelm@32942
   156
    fun cleanup probfile = if destdir' = "" then try File.rm probfile else NONE;
wenzelm@32942
   157
    fun export probfile (((proof, _), _), _) =
blanchet@36187
   158
      if destdir' = "" then
blanchet@36187
   159
        ()
blanchet@36187
   160
      else
blanchet@36187
   161
        File.write (Path.explode (Path.implode probfile ^ "_proof"))
blanchet@36282
   162
                   ((if overlord then
blanchet@36289
   163
                       "% " ^ command_line probfile ^ "\n% " ^ timestamp () ^
blanchet@36289
   164
                       "\n"
blanchet@36282
   165
                     else
blanchet@36282
   166
                        "") ^ proof)
wenzelm@32257
   167
blanchet@36231
   168
    val (((proof, atp_run_time_in_msecs), rc), _) =
wenzelm@35570
   169
      with_path cleanup export run_on (prob_pathname subgoal);
boehmes@32458
   170
blanchet@36167
   171
    (* Check for success and print out some information on failure. *)
blanchet@36265
   172
    val failure = find_known_failure known_failures proof;
blanchet@36265
   173
    val success = rc = 0 andalso failure = "";
blanchet@35969
   174
    val (message, relevant_thm_names) =
blanchet@36265
   175
      if success then
blanchet@36289
   176
        proof_text isar_proof debug modulus sorts ctxt
blanchet@36287
   177
                   (minimize_command, proof, internal_thm_names, th, subgoal)
blanchet@36265
   178
      else if failure <> "" then
blanchet@36284
   179
        (failure ^ "\n", [])
blanchet@36265
   180
      else
blanchet@36265
   181
        ("Unknown ATP error: " ^ proof ^ ".\n", [])
boehmes@32864
   182
  in
blanchet@36231
   183
    {success = success, message = message,
blanchet@35969
   184
     relevant_thm_names = relevant_thm_names,
blanchet@35969
   185
     atp_run_time_in_msecs = atp_run_time_in_msecs, proof = proof,
blanchet@35969
   186
     internal_thm_names = internal_thm_names,
blanchet@35969
   187
     filtered_clauses = the_filtered_clauses}
wenzelm@32942
   188
  end;
wenzelm@28592
   189
wenzelm@28596
   190
wenzelm@28596
   191
(* generic TPTP-based provers *)
wenzelm@28596
   192
blanchet@35865
   193
fun generic_tptp_prover
blanchet@36289
   194
        (name, {home, executable, arguments, known_failures, max_new_clauses,
blanchet@36289
   195
                prefers_theory_relevant})
blanchet@36264
   196
        (params as {debug, overlord, respect_no_atp, relevance_threshold,
blanchet@36264
   197
                    convergence, theory_relevant, higher_order, follow_defs,
blanchet@36287
   198
                    isar_proof, ...})
blanchet@36281
   199
        minimize_command timeout =
blanchet@36143
   200
  generic_prover overlord
blanchet@36058
   201
      (get_relevant_facts respect_no_atp relevance_threshold convergence
blanchet@36058
   202
                          higher_order follow_defs max_new_clauses
blanchet@36220
   203
                          (the_default prefers_theory_relevant theory_relevant))
blanchet@36222
   204
      (prepare_clauses higher_order false)
blanchet@36289
   205
      (write_tptp_file (debug andalso overlord andalso not isar_proof)) home
blanchet@36289
   206
      executable (arguments timeout) known_failures name params minimize_command
wenzelm@28596
   207
blanchet@35969
   208
fun tptp_prover name p = (name, generic_tptp_prover (name, p));
wenzelm@28596
   209
wenzelm@32941
   210
boehmes@32864
   211
(** common provers **)
wenzelm@28592
   212
blanchet@36142
   213
fun generous_to_secs time = (Time.toMilliseconds time + 999) div 1000
blanchet@36142
   214
wenzelm@28596
   215
(* Vampire *)
wenzelm@28596
   216
blanchet@36289
   217
(* Vampire requires an explicit time limit. *)
wenzelm@28596
   218
blanchet@35969
   219
val vampire_config : prover_config =
blanchet@36289
   220
  {home = getenv "VAMPIRE_HOME",
blanchet@36289
   221
   executable = "vampire",
blanchet@35969
   222
   arguments = (fn timeout => "--output_syntax tptp --mode casc -t " ^
blanchet@36142
   223
                              string_of_int (generous_to_secs timeout)),
blanchet@36265
   224
   known_failures =
blanchet@36265
   225
     [(["Satisfiability detected", "CANNOT PROVE"],
blanchet@36265
   226
       "The ATP problem is unprovable."),
blanchet@36265
   227
      (["Refutation not found"],
blanchet@36265
   228
       "The ATP failed to determine the problem's status.")],
blanchet@35969
   229
   max_new_clauses = 60,
blanchet@36289
   230
   prefers_theory_relevant = false}
blanchet@35969
   231
val vampire = tptp_prover "vampire" vampire_config
wenzelm@28596
   232
wenzelm@28592
   233
wenzelm@28596
   234
(* E prover *)
wenzelm@28596
   235
blanchet@35969
   236
val e_config : prover_config =
blanchet@36289
   237
  {home = getenv "E_HOME",
blanchet@36289
   238
   executable = "eproof",
blanchet@35969
   239
   arguments = (fn timeout => "--tstp-in --tstp-out -l5 -xAutoDev \
blanchet@35969
   240
                              \-tAutoDev --silent --cpu-limit=" ^
blanchet@36142
   241
                              string_of_int (generous_to_secs timeout)),
blanchet@36265
   242
   known_failures =
blanchet@36265
   243
       [(["SZS status: Satisfiable", "SZS status Satisfiable"],
blanchet@36265
   244
         "The ATP problem is unprovable."),
blanchet@36265
   245
        (["SZS status: ResourceOut", "SZS status ResourceOut"],
blanchet@36265
   246
         "The ATP ran out of resources."),
blanchet@36265
   247
        (["# Cannot determine problem status"],
blanchet@36265
   248
         "The ATP failed to determine the problem's status.")],
blanchet@35969
   249
   max_new_clauses = 100,
blanchet@36289
   250
   prefers_theory_relevant = false}
blanchet@35969
   251
val e = tptp_prover "e" e_config
wenzelm@28596
   252
wenzelm@28596
   253
wenzelm@28596
   254
(* SPASS *)
wenzelm@28592
   255
blanchet@35865
   256
fun generic_dfg_prover
blanchet@36289
   257
        (name, {home, executable, arguments, known_failures, max_new_clauses,
blanchet@36289
   258
                prefers_theory_relevant})
blanchet@36143
   259
        (params as {overlord, respect_no_atp, relevance_threshold, convergence,
blanchet@36220
   260
                    theory_relevant, higher_order, follow_defs, ...})
blanchet@36281
   261
        minimize_command timeout =
blanchet@36143
   262
  generic_prover overlord
blanchet@36058
   263
      (get_relevant_facts respect_no_atp relevance_threshold convergence
blanchet@36058
   264
                          higher_order follow_defs max_new_clauses
blanchet@36220
   265
                          (the_default prefers_theory_relevant theory_relevant))
blanchet@36289
   266
      (prepare_clauses higher_order true) write_dfg_file home executable
blanchet@36289
   267
      (arguments timeout) known_failures name params minimize_command
boehmes@32869
   268
blanchet@36264
   269
fun dfg_prover name p = (name, generic_dfg_prover (name, p))
boehmes@32869
   270
blanchet@36219
   271
(* The "-VarWeight=3" option helps the higher-order problems, probably by
blanchet@36219
   272
   counteracting the presence of "hAPP". *)
blanchet@36059
   273
val spass_config : prover_config =
blanchet@36289
   274
  {home = getenv "SPASS_HOME",
blanchet@36289
   275
   executable = "SPASS",
blanchet@36289
   276
   arguments = (fn timeout => "-Auto -SOS=1 -PGiven=0 -PProblem=0 -Splits=0" ^
blanchet@36289
   277
     " -FullRed=0 -DocProof -VarWeight=3 -TimeLimit=" ^
blanchet@36289
   278
     string_of_int (generous_to_secs timeout)),
blanchet@36289
   279
   known_failures =
blanchet@36289
   280
     [(["SPASS beiseite: Completion found."], "The ATP problem is unprovable."),
blanchet@36289
   281
      (["SPASS beiseite: Ran out of time."], "The ATP timed out."),
blanchet@36289
   282
      (["SPASS beiseite: Maximal number of loops exceeded."],
blanchet@36289
   283
       "The ATP hit its loop limit.")],
blanchet@36289
   284
   max_new_clauses = 40,
blanchet@36289
   285
   prefers_theory_relevant = true}
blanchet@36264
   286
val spass = dfg_prover "spass" spass_config
blanchet@36264
   287
blanchet@36264
   288
(* SPASS 3.7 supports both the DFG and the TPTP syntax, whereas SPASS 3.0
blanchet@36264
   289
   supports only the DFG syntax. As soon as all Isabelle repository/snapshot
blanchet@36264
   290
   users have upgraded to 3.7, we can kill "spass" (and all DFG support in
blanchet@36264
   291
   Sledgehammer) and rename "spass_tptp" "spass". *)
blanchet@35969
   292
blanchet@36265
   293
(* FIXME: Change the error message below to point to the Isabelle download
blanchet@36265
   294
   page once the package is there (around the Isabelle2010 release). *)
blanchet@36265
   295
blanchet@36264
   296
val spass_tptp_config =
blanchet@36289
   297
  {home = #home spass_config,
blanchet@36289
   298
   executable = #executable spass_config,
blanchet@36264
   299
   arguments = prefix "-TPTP " o #arguments spass_config,
blanchet@36265
   300
   known_failures =
blanchet@36265
   301
     #known_failures spass_config @
blanchet@36265
   302
     [(["unrecognized option `-TPTP'", "Unrecognized option TPTP"],
blanchet@36265
   303
       "Warning: Sledgehammer requires a more recent version of SPASS with \
blanchet@36265
   304
       \support for the TPTP syntax. To install it, download and untar the \
blanchet@36265
   305
       \package \"http://isabelle.in.tum.de/~blanchet/spass-3.7.tgz\" and add \
blanchet@36265
   306
       \the \"spass-3.7\" directory's full path to \"" ^
blanchet@36265
   307
       Path.implode (Path.expand (Path.appends
blanchet@36265
   308
           (Path.variable "ISABELLE_HOME_USER" ::
blanchet@36265
   309
            map Path.basic ["etc", "components"]))) ^
blanchet@36265
   310
       "\" on a line of its own.")],
blanchet@36264
   311
   max_new_clauses = #max_new_clauses spass_config,
blanchet@36289
   312
   prefers_theory_relevant = #prefers_theory_relevant spass_config}
blanchet@36264
   313
val spass_tptp = tptp_prover "spass_tptp" spass_tptp_config
wenzelm@28596
   314
wenzelm@28596
   315
(* remote prover invocation via SystemOnTPTP *)
wenzelm@28596
   316
wenzelm@32942
   317
val systems = Synchronized.var "atp_wrapper_systems" ([]: string list);
immler@31835
   318
immler@31835
   319
fun get_systems () =
immler@31835
   320
  let
blanchet@35969
   321
    val (answer, rc) = bash_output "\"$ISABELLE_ATP_MANAGER/SystemOnTPTP\" -w"
immler@31835
   322
  in
blanchet@35969
   323
    if rc <> 0 then
blanchet@35969
   324
      error ("Failed to get available systems at SystemOnTPTP:\n" ^ answer)
blanchet@35969
   325
    else
blanchet@35969
   326
      split_lines answer
immler@31835
   327
  end;
immler@31835
   328
blanchet@35867
   329
fun refresh_systems_on_tptp () =
blanchet@35867
   330
  Synchronized.change systems (fn _ => get_systems ());
immler@31835
   331
immler@31835
   332
fun get_system prefix = Synchronized.change_result systems (fn systems =>
boehmes@32864
   333
  (if null systems then get_systems () else systems)
wenzelm@32942
   334
  |> `(find_first (String.isPrefix prefix)));
boehmes@32864
   335
wenzelm@32948
   336
fun the_system prefix =
boehmes@32864
   337
  (case get_system prefix of
blanchet@35826
   338
    NONE => error ("System " ^ quote prefix ^ " not available at SystemOnTPTP")
wenzelm@32942
   339
  | SOME sys => sys);
immler@31835
   340
blanchet@36265
   341
val remote_known_failures =
blanchet@36265
   342
  [(["Remote-script could not extract proof"],
blanchet@36265
   343
    "Error: The remote ATP proof is ill-formed.")]
blanchet@35865
   344
blanchet@36059
   345
fun remote_prover_config prover_prefix args
blanchet@36289
   346
        ({known_failures, max_new_clauses, prefers_theory_relevant, ...}
blanchet@36059
   347
         : prover_config) : prover_config =
blanchet@36289
   348
  {home = getenv "ISABELLE_ATP_MANAGER",
blanchet@36289
   349
   executable = "SystemOnTPTP",
blanchet@35969
   350
   arguments = (fn timeout =>
blanchet@36142
   351
     args ^ " -t " ^ string_of_int (generous_to_secs timeout) ^ " -s " ^
blanchet@35969
   352
     the_system prover_prefix),
blanchet@36265
   353
   known_failures = remote_known_failures @ known_failures,
blanchet@35969
   354
   max_new_clauses = max_new_clauses,
blanchet@36289
   355
   prefers_theory_relevant = prefers_theory_relevant}
wenzelm@28596
   356
blanchet@35969
   357
val remote_vampire =
blanchet@36289
   358
  tptp_prover (remotify (fst vampire))
blanchet@36059
   359
              (remote_prover_config "Vampire---9" "" vampire_config)
boehmes@32864
   360
blanchet@35969
   361
val remote_e =
blanchet@36289
   362
  tptp_prover (remotify (fst e))
blanchet@36289
   363
              (remote_prover_config "EP---" "" e_config)
boehmes@32864
   364
blanchet@35969
   365
val remote_spass =
blanchet@36289
   366
  tptp_prover (remotify (fst spass))
blanchet@36289
   367
              (remote_prover_config "SPASS---" "-x" spass_config)
wenzelm@28592
   368
blanchet@36289
   369
val provers =
blanchet@36289
   370
  [spass, spass_tptp, vampire, e, remote_vampire, remote_spass, remote_e]
blanchet@35867
   371
val prover_setup = fold add_prover provers
blanchet@35867
   372
blanchet@35867
   373
val setup =
blanchet@35867
   374
  destdir_setup
blanchet@35867
   375
  #> problem_prefix_setup
blanchet@35867
   376
  #> measure_runtime_setup
blanchet@35867
   377
  #> prover_setup;
blanchet@35867
   378
blanchet@36289
   379
fun maybe_remote (name, _) ({home, ...} : prover_config) =
blanchet@36289
   380
  name |> home = "" ? remotify
blanchet@36289
   381
blanchet@36289
   382
val _ = atps := ([maybe_remote e e_config, maybe_remote spass spass_config,
blanchet@36289
   383
                  remotify (fst vampire)] |> space_implode " ")
wenzelm@28592
   384
end;