author | blanchet |
Tue, 10 Jul 2012 23:36:03 +0200 | |
changeset 49249 | 06216c789ac9 |
child 49250 | 40655464a93b |
permissions | -rw-r--r-- |
blanchet@49249 | 1 |
(* Title: HOL/TPTP/MaSh_Export.thy |
blanchet@49249 | 2 |
Author: Jasmin Blanchette, TU Muenchen |
blanchet@49249 | 3 |
*) |
blanchet@49249 | 4 |
|
blanchet@49249 | 5 |
header {* MaSh Exporter *} |
blanchet@49249 | 6 |
|
blanchet@49249 | 7 |
theory MaSh_Export |
blanchet@49249 | 8 |
imports ATP_Theory_Export |
blanchet@49249 | 9 |
uses "mash_export.ML" |
blanchet@49249 | 10 |
begin |
blanchet@49249 | 11 |
|
blanchet@49249 | 12 |
ML {* |
blanchet@49249 | 13 |
open MaSh_Export |
blanchet@49249 | 14 |
*} |
blanchet@49249 | 15 |
|
blanchet@49249 | 16 |
ML {* |
blanchet@49249 | 17 |
val do_it = false; (* switch to "true" to generate the files *) |
blanchet@49249 | 18 |
val thy = @{theory List}; |
blanchet@49249 | 19 |
val ctxt = @{context} |
blanchet@49249 | 20 |
*} |
blanchet@49249 | 21 |
|
blanchet@49249 | 22 |
ML {* |
blanchet@49249 | 23 |
if do_it then |
blanchet@49249 | 24 |
"/tmp/mash_sample_problem.out" |
blanchet@49249 | 25 |
|> generate_mash_problem_file_for_theory thy |
blanchet@49249 | 26 |
else |
blanchet@49249 | 27 |
() |
blanchet@49249 | 28 |
*} |
blanchet@49249 | 29 |
|
blanchet@49249 | 30 |
ML {* |
blanchet@49249 | 31 |
if do_it then |
blanchet@49249 | 32 |
"/tmp/mash_features.out" |
blanchet@49249 | 33 |
|> generate_mash_feature_file_for_theory thy false |
blanchet@49249 | 34 |
else |
blanchet@49249 | 35 |
() |
blanchet@49249 | 36 |
*} |
blanchet@49249 | 37 |
|
blanchet@49249 | 38 |
ML {* |
blanchet@49249 | 39 |
if do_it then |
blanchet@49249 | 40 |
"/tmp/mash_accessibility.out" |
blanchet@49249 | 41 |
|> generate_mash_accessibility_file_for_theory thy false |
blanchet@49249 | 42 |
else |
blanchet@49249 | 43 |
() |
blanchet@49249 | 44 |
*} |
blanchet@49249 | 45 |
|
blanchet@49249 | 46 |
ML {* |
blanchet@49249 | 47 |
if do_it then |
blanchet@49249 | 48 |
"/tmp/mash_dependencies.out" |
blanchet@49249 | 49 |
|> generate_mash_dependency_file_for_theory thy false |
blanchet@49249 | 50 |
else |
blanchet@49249 | 51 |
() |
blanchet@49249 | 52 |
*} |
blanchet@49249 | 53 |
|
blanchet@49249 | 54 |
end |