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@49348
|
8 |
imports Complex_Main
|
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@49447
|
14 |
lam_trans = combs_and_lifting, timeout = 1, 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@49348
|
21 |
val do_it = false (* switch to "true" to generate the files *)
|
blanchet@49348
|
22 |
val thy = @{theory List}
|
blanchet@49348
|
23 |
val params as {provers, ...} = Sledgehammer_Isar.default_params @{context} []
|
blanchet@49348
|
24 |
val prover = hd provers
|
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@49348
|
35 |
generate_features @{context} prover 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@49348
|
42 |
generate_isar_dependencies thy false "/tmp/mash_dependencies"
|
blanchet@49348
|
43 |
else
|
blanchet@49348
|
44 |
()
|
blanchet@49348
|
45 |
*}
|
blanchet@49348
|
46 |
|
blanchet@49348
|
47 |
ML {*
|
blanchet@49348
|
48 |
if do_it then
|
blanchet@49544
|
49 |
generate_commands @{context} params thy "/tmp/mash_commands"
|
blanchet@49348
|
50 |
else
|
blanchet@49348
|
51 |
()
|
blanchet@49348
|
52 |
*}
|
blanchet@49348
|
53 |
|
blanchet@49348
|
54 |
ML {*
|
blanchet@49348
|
55 |
if do_it then
|
blanchet@49394
|
56 |
generate_mepo_suggestions @{context} params thy 500 "/tmp/mash_mepo_suggestions"
|
blanchet@49260
|
57 |
else
|
blanchet@49260
|
58 |
()
|
blanchet@49249
|
59 |
*}
|
blanchet@49249
|
60 |
|
blanchet@49249
|
61 |
ML {*
|
blanchet@49260
|
62 |
if do_it then
|
blanchet@49266
|
63 |
generate_atp_dependencies @{context} params thy false "/tmp/mash_atp_dependencies"
|
blanchet@49260
|
64 |
else
|
blanchet@49260
|
65 |
()
|
blanchet@49260
|
66 |
*}
|
blanchet@49260
|
67 |
|
blanchet@49249
|
68 |
end
|