author | blanchet |
Sat, 15 Dec 2012 21:34:32 +0100 | |
changeset 50559 | 89c0d2f13cca |
parent 50519 | 2951841ec011 |
child 50814 | 4247cbd78aaf |
permissions | -rw-r--r-- |
48234 | 1 |
(* Title: HOL/TPTP/MaSh_Export.thy |
2 |
Author: Jasmin Blanchette, TU Muenchen |
|
3 |
*) |
|
4 |
||
5 |
header {* MaSh Exporter *} |
|
6 |
||
7 |
theory MaSh_Export |
|
50350
136d5318b1fe
tuned MaSh exporter -- and don't make temp directories unless explicitly told so
blanchet
parents:
50349
diff
changeset
|
8 |
imports Main |
48234 | 9 |
begin |
10 |
||
48891 | 11 |
ML_file "mash_export.ML" |
12 |
||
48245 | 13 |
sledgehammer_params |
50519 | 14 |
[provers = spass, max_facts = 32, strict, dont_slice, type_enc = mono_native, |
50411 | 15 |
lam_trans = combs_and_lifting, timeout = 2, dont_preplay, minimize] |
48239
0016290f904c
generate Meng--Paulson facts for evaluation purposes
blanchet
parents:
48235
diff
changeset
|
16 |
|
50434
960a3429615c
more MaSh tweaking -- in particular, export the same facts in "MaSh_Export" as are later tried in "MaSh_Eval"
blanchet
parents:
50411
diff
changeset
|
17 |
declare [[sledgehammer_instantiate_inducts]] |
960a3429615c
more MaSh tweaking -- in particular, export the same facts in "MaSh_Export" as are later tried in "MaSh_Eval"
blanchet
parents:
50411
diff
changeset
|
18 |
|
48234 | 19 |
ML {* |
50519 | 20 |
!Multithreading.max_threads |
21 |
*} |
|
22 |
||
23 |
ML {* |
|
48234 | 24 |
open MaSh_Export |
25 |
*} |
|
26 |
||
27 |
ML {* |
|
48333 | 28 |
val do_it = false (* switch to "true" to generate the files *) |
50350
136d5318b1fe
tuned MaSh exporter -- and don't make temp directories unless explicitly told so
blanchet
parents:
50349
diff
changeset
|
29 |
val thys = [@{theory List}] |
48333 | 30 |
val params as {provers, ...} = Sledgehammer_Isar.default_params @{context} [] |
31 |
val prover = hd provers |
|
50513 | 32 |
val dir = "List" |
50349 | 33 |
val prefix = "/tmp/" ^ dir ^ "/" |
50337 | 34 |
*} |
35 |
||
36 |
ML {* |
|
50350
136d5318b1fe
tuned MaSh exporter -- and don't make temp directories unless explicitly told so
blanchet
parents:
50349
diff
changeset
|
37 |
if do_it then |
136d5318b1fe
tuned MaSh exporter -- and don't make temp directories unless explicitly told so
blanchet
parents:
50349
diff
changeset
|
38 |
Isabelle_System.mkdir (Path.explode prefix) |
136d5318b1fe
tuned MaSh exporter -- and don't make temp directories unless explicitly told so
blanchet
parents:
50349
diff
changeset
|
39 |
else |
136d5318b1fe
tuned MaSh exporter -- and don't make temp directories unless explicitly told so
blanchet
parents:
50349
diff
changeset
|
40 |
() |
48246
fb11c09d7729
add Isabelle dependencies to tweak relevance filter
blanchet
parents:
48245
diff
changeset
|
41 |
*} |
48531 | 42 |
|
48246
fb11c09d7729
add Isabelle dependencies to tweak relevance filter
blanchet
parents:
48245
diff
changeset
|
43 |
ML {* |
48245 | 44 |
if do_it then |
50349 | 45 |
generate_accessibility @{context} thys false (prefix ^ "mash_accessibility") |
48245 | 46 |
else |
47 |
() |
|
48 |
*} |
|
49 |
||
50 |
ML {* |
|
51 |
if do_it then |
|
50349 | 52 |
generate_features @{context} prover thys false (prefix ^ "mash_features") |
48245 | 53 |
else |
54 |
() |
|
48239
0016290f904c
generate Meng--Paulson facts for evaluation purposes
blanchet
parents:
48235
diff
changeset
|
55 |
*} |
0016290f904c
generate Meng--Paulson facts for evaluation purposes
blanchet
parents:
48235
diff
changeset
|
56 |
|
0016290f904c
generate Meng--Paulson facts for evaluation purposes
blanchet
parents:
48235
diff
changeset
|
57 |
ML {* |
48245 | 58 |
if do_it then |
50484
8ec31bdb9d36
adopt the neutral "prover" terminology for MaSh rather than the ambiguous/wrong ATP terminology (which sometimes excludes SMT solvers)
blanchet
parents:
50434
diff
changeset
|
59 |
generate_isar_dependencies @{context} thys false |
8ec31bdb9d36
adopt the neutral "prover" terminology for MaSh rather than the ambiguous/wrong ATP terminology (which sometimes excludes SMT solvers)
blanchet
parents:
50434
diff
changeset
|
60 |
(prefix ^ "mash_dependencies") |
48333 | 61 |
else |
62 |
() |
|
63 |
*} |
|
64 |
||
65 |
ML {* |
|
66 |
if do_it then |
|
50411 | 67 |
generate_isar_commands @{context} prover thys (prefix ^ "mash_commands") |
48333 | 68 |
else |
69 |
() |
|
70 |
*} |
|
71 |
||
72 |
ML {* |
|
73 |
if do_it then |
|
50484
8ec31bdb9d36
adopt the neutral "prover" terminology for MaSh rather than the ambiguous/wrong ATP terminology (which sometimes excludes SMT solvers)
blanchet
parents:
50434
diff
changeset
|
74 |
generate_mepo_suggestions @{context} params thys 1024 |
8ec31bdb9d36
adopt the neutral "prover" terminology for MaSh rather than the ambiguous/wrong ATP terminology (which sometimes excludes SMT solvers)
blanchet
parents:
50434
diff
changeset
|
75 |
(prefix ^ "mash_mepo_suggestions") |
48245 | 76 |
else |
77 |
() |
|
78 |
*} |
|
79 |
||
80 |
ML {* |
|
81 |
if do_it then |
|
50559
89c0d2f13cca
MaSh exporter can now export subsets of the facts, as consecutive ranges
blanchet
parents:
50519
diff
changeset
|
82 |
generate_prover_dependencies @{context} params (1, NONE) thys false |
50484
8ec31bdb9d36
adopt the neutral "prover" terminology for MaSh rather than the ambiguous/wrong ATP terminology (which sometimes excludes SMT solvers)
blanchet
parents:
50434
diff
changeset
|
83 |
(prefix ^ "mash_prover_dependencies") |
48245 | 84 |
else |
85 |
() |
|
48234 | 86 |
*} |
87 |
||
50411 | 88 |
ML {* |
89 |
if do_it then |
|
50559
89c0d2f13cca
MaSh exporter can now export subsets of the facts, as consecutive ranges
blanchet
parents:
50519
diff
changeset
|
90 |
generate_prover_commands @{context} params (1, NONE) thys |
50484
8ec31bdb9d36
adopt the neutral "prover" terminology for MaSh rather than the ambiguous/wrong ATP terminology (which sometimes excludes SMT solvers)
blanchet
parents:
50434
diff
changeset
|
91 |
(prefix ^ "mash_prover_commands") |
50411 | 92 |
else |
93 |
() |
|
94 |
*} |
|
95 |
||
48234 | 96 |
end |