src/HOL/TPTP/ATP_Theory_Export.thy
author wenzelm
Mon, 16 Apr 2012 19:38:48 +0200
changeset 47496 a43f207f216f
parent 46435 e9c90516bc0d
child 48129 933d43c31689
permissions -rw-r--r--
repaired some damage caused by merging with version from 12 days ago (cf. 8c8f27864ed1);

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

header {* ATP Theory Exporter *}

theory ATP_Theory_Export
imports Complex_Main
uses "atp_theory_export.ML"
begin

ML {*
open ATP_Problem;
open ATP_Theory_Export;
*}

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

ML {*
if do_it then
  "/tmp/axs_mono_native.dfg"
  |> generate_tptp_inference_file_for_theory ctxt thy (DFG DFG_Sorted)
         "mono_native"
else
  ()
*}

ML {*
if do_it then
  "/tmp/infs_poly_guards.tptp"
  |> generate_tptp_inference_file_for_theory ctxt thy FOF "poly_guards"
else
  ()
*}

ML {*
if do_it then
  "/tmp/infs_poly_tags.tptp"
  |> generate_tptp_inference_file_for_theory ctxt thy FOF "poly_tags"
else
  ()
*}

ML {*
if do_it then
  "/tmp/infs_poly_tags_uniform.tptp"
  |> generate_tptp_inference_file_for_theory ctxt thy FOF "poly_tags_uniform"
else
  ()
*}

ML {*
if do_it then
  "/tmp/graph.out" |> generate_tptp_graph_file_for_theory ctxt thy
else
  ()
*}

end