author | blanchet |
Wed, 18 Jul 2012 08:44:04 +0200 | |
changeset 49319 | 50e64af9c829 |
parent 49316 | e5c5037a3104 |
child 49348 | 2250197977dc |
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@49316 | 8 |
imports (* ### Complex_Main *) "~~/src/HOL/Sledgehammer2d" |
blanchet@49249 | 9 |
uses "mash_export.ML" |
blanchet@49249 | 10 |
begin |
blanchet@49249 | 11 |
|
blanchet@49260 | 12 |
sledgehammer_params |
blanchet@49260 | 13 |
[provers = e, max_relevant = 40, strict, dont_slice, type_enc = poly_guards??, |
blanchet@49260 | 14 |
lam_trans = combs_and_lifting, timeout = 5, dont_preplay, minimize] |
blanchet@49254 | 15 |
|
blanchet@49249 | 16 |
ML {* |
blanchet@49249 | 17 |
open MaSh_Export |
blanchet@49249 | 18 |
*} |
blanchet@49249 | 19 |
|
blanchet@49249 | 20 |
ML {* |
blanchet@49265 | 21 |
val do_it = false (* switch to "true" to generate the files *); |
blanchet@49311 | 22 |
val thy = @{theory List}; |
blanchet@49266 | 23 |
val params = Sledgehammer_Isar.default_params @{context} [] |
blanchet@49261 | 24 |
*} |
blanchet@49261 | 25 |
|
blanchet@49261 | 26 |
ML {* |
blanchet@49260 | 27 |
if do_it then |
blanchet@49319 | 28 |
generate_accessibility thy false "/tmp/mash_accessibility" |
blanchet@49260 | 29 |
else |
blanchet@49260 | 30 |
() |
blanchet@49249 | 31 |
*} |
blanchet@49249 | 32 |
|
blanchet@49249 | 33 |
ML {* |
blanchet@49260 | 34 |
if do_it then |
blanchet@49314 | 35 |
generate_features @{context} thy false "/tmp/mash_features" |
blanchet@49260 | 36 |
else |
blanchet@49260 | 37 |
() |
blanchet@49249 | 38 |
*} |
blanchet@49249 | 39 |
|
blanchet@49249 | 40 |
ML {* |
blanchet@49260 | 41 |
if do_it then |
blanchet@49319 | 42 |
generate_isa_dependencies thy false "/tmp/mash_isa_dependencies" |
blanchet@49260 | 43 |
else |
blanchet@49260 | 44 |
() |
blanchet@49249 | 45 |
*} |
blanchet@49249 | 46 |
|
blanchet@49249 | 47 |
ML {* |
blanchet@49260 | 48 |
if do_it then |
blanchet@49266 | 49 |
generate_atp_dependencies @{context} params thy false "/tmp/mash_atp_dependencies" |
blanchet@49260 | 50 |
else |
blanchet@49260 | 51 |
() |
blanchet@49260 | 52 |
*} |
blanchet@49260 | 53 |
|
blanchet@49260 | 54 |
ML {* |
blanchet@49260 | 55 |
if do_it then |
blanchet@49314 | 56 |
generate_commands @{context} thy "/tmp/mash_commands" |
blanchet@49260 | 57 |
else |
blanchet@49260 | 58 |
() |
blanchet@49260 | 59 |
*} |
blanchet@49260 | 60 |
|
blanchet@49260 | 61 |
ML {* |
blanchet@49260 | 62 |
if do_it then |
blanchet@49266 | 63 |
generate_iter_suggestions @{context} params thy 500 "/tmp/mash_iter_suggestions" |
blanchet@49260 | 64 |
else |
blanchet@49260 | 65 |
() |
blanchet@49250 | 66 |
*} |
blanchet@49250 | 67 |
|
blanchet@49249 | 68 |
end |