src/HOL/TPTP/ATP_Theory_Export.thy
author wenzelm
Sat, 23 May 2015 17:19:37 +0200
changeset 60299 5ae2a2e74c93
parent 58889 5b7a9633cfa8
child 61323 99b3a17a7eab
permissions -rw-r--r--
clarified NEWS: document_files are officially required since Isabelle2014, but the absence was tolerated as legacy feature;

(*  Title:      HOL/TPTP/ATP_Theory_Export.thy
    Author:     Jasmin Blanchette, TU Muenchen
*)

section {* ATP Theory Exporter *}

theory ATP_Theory_Export
imports Complex_Main
begin

ML_file "atp_theory_export.ML"

ML {*
open ATP_Problem
open ATP_Theory_Export
*}

ML {*
val do_it = false (* switch to "true" to generate the files *)
val ctxt = @{context}
val thy = @{theory List}
val infer_policy = Unchecked_Inferences
*}

ML {*
if do_it then
  "/tmp/axs_tc_native.dfg"
  |> generate_atp_inference_file_for_theory ctxt thy (DFG Polymorphic)
         infer_policy "tc_native"
else
  ()
*}

ML {*
if do_it then
  "/tmp/infs_poly_guards_query_query.tptp"
  |> generate_atp_inference_file_for_theory ctxt thy FOF infer_policy
         "poly_guards??"
else
  ()
*}

ML {*
if do_it then
  "/tmp/infs_poly_tags_query_query.tptp"
  |> generate_atp_inference_file_for_theory ctxt thy FOF infer_policy
         "poly_tags??"
else
  ()
*}

ML {*
if do_it then
  "/tmp/casc_ltb_isa"
  |> generate_casc_lbt_isa_files_for_theory ctxt thy FOF infer_policy
         "poly_tags??"
else
  ()
*}

end