author | blanchet |
Wed, 18 Jul 2012 08:44:03 +0200 | |
changeset 48302 | 6cf5e58f1185 |
parent 48301 | e5c5037a3104 |
child 48375 | 48628962976b |
permissions | -rw-r--r-- |
46321 | 1 |
(* Title: HOL/TPTP/ATP_Theory_Export.thy |
2 |
Author: Jasmin Blanchette, TU Muenchen |
|
3 |
*) |
|
4 |
||
5 |
header {* ATP Theory Exporter *} |
|
6 |
||
7 |
theory ATP_Theory_Export |
|
48302 | 8 |
imports Complex_Main |
46321 | 9 |
uses "atp_theory_export.ML" |
42602
a2db47fa015e
added TPTP exporter facility -- useful to do experiments with machine learning
blanchet
parents:
diff
changeset
|
10 |
begin |
a2db47fa015e
added TPTP exporter facility -- useful to do experiments with machine learning
blanchet
parents:
diff
changeset
|
11 |
|
42607
c8673078f915
fix ROOT.ML and handle "readable_names" reference slightly more cleanly
blanchet
parents:
42602
diff
changeset
|
12 |
ML {* |
45305 | 13 |
open ATP_Problem; |
46321 | 14 |
open ATP_Theory_Export; |
45305 | 15 |
*} |
16 |
||
17 |
ML {* |
|
48302 | 18 |
val do_it = false; (* switch to "true" to generate the files *) |
48301 | 19 |
val thy = @{theory List}; |
42602
a2db47fa015e
added TPTP exporter facility -- useful to do experiments with machine learning
blanchet
parents:
diff
changeset
|
20 |
val ctxt = @{context} |
a2db47fa015e
added TPTP exporter facility -- useful to do experiments with machine learning
blanchet
parents:
diff
changeset
|
21 |
*} |
a2db47fa015e
added TPTP exporter facility -- useful to do experiments with machine learning
blanchet
parents:
diff
changeset
|
22 |
|
a2db47fa015e
added TPTP exporter facility -- useful to do experiments with machine learning
blanchet
parents:
diff
changeset
|
23 |
ML {* |
42646
4781fcd53572
replaced some Unsynchronized.refs with Config.Ts
blanchet
parents:
42607
diff
changeset
|
24 |
if do_it then |
48301 | 25 |
"/tmp/axs_tc_native.dfg" |
26 |
|> generate_atp_inference_file_for_theory ctxt thy (DFG Polymorphic) |
|
27 |
"tc_native" |
|
28 |
else |
|
29 |
() |
|
30 |
*} |
|
31 |
||
32 |
ML {* |
|
33 |
if do_it then |
|
48213
d20add034f64
first go at generating files for MaSh (machine-learning Sledgehammer)
blanchet
parents:
48145
diff
changeset
|
34 |
"/tmp/infs_poly_guards_query_query.tptp" |
48234 | 35 |
|> generate_atp_inference_file_for_theory ctxt thy FOF |
48217
8994afe09c18
more precise dependencies -- eliminate tautologies
blanchet
parents:
48216
diff
changeset
|
36 |
"poly_guards_query_query" |
43400
3d03f4472883
use more appropriate type systems for ATP exporter
blanchet
parents:
43223
diff
changeset
|
37 |
else |
3d03f4472883
use more appropriate type systems for ATP exporter
blanchet
parents:
43223
diff
changeset
|
38 |
() |
3d03f4472883
use more appropriate type systems for ATP exporter
blanchet
parents:
43223
diff
changeset
|
39 |
*} |
3d03f4472883
use more appropriate type systems for ATP exporter
blanchet
parents:
43223
diff
changeset
|
40 |
|
3d03f4472883
use more appropriate type systems for ATP exporter
blanchet
parents:
43223
diff
changeset
|
41 |
ML {* |
3d03f4472883
use more appropriate type systems for ATP exporter
blanchet
parents:
43223
diff
changeset
|
42 |
if do_it then |
48145 | 43 |
"/tmp/infs_poly_tags_query_query.tptp" |
48234 | 44 |
|> generate_atp_inference_file_for_theory ctxt thy FOF |
48217
8994afe09c18
more precise dependencies -- eliminate tautologies
blanchet
parents:
48216
diff
changeset
|
45 |
"poly_tags_query_query" |
45305 | 46 |
else |
47 |
() |
|
48 |
*} |
|
49 |
||
42602
a2db47fa015e
added TPTP exporter facility -- useful to do experiments with machine learning
blanchet
parents:
diff
changeset
|
50 |
end |