1 (* Title: HOL/TPTP/MaSh_Export.thy
2 Author: Jasmin Blanchette, TU Muenchen
5 header {* MaSh Exporter *}
11 ML_file "mash_export.ML"
14 [provers = spass, max_relevant = 32, strict, dont_slice, type_enc = mono_native,
15 lam_trans = combs_and_lifting, timeout = 2, dont_preplay, minimize]
22 val do_it = false (* switch to "true" to generate the files *)
23 val thys = [@{theory List}]
24 val params as {provers, ...} = Sledgehammer_Isar.default_params @{context} []
25 val prover = hd provers
26 val dir = space_implode "__" (map Context.theory_name thys)
27 val prefix = "/tmp/" ^ dir ^ "/"
32 Isabelle_System.mkdir (Path.explode prefix)
39 generate_accessibility @{context} thys false (prefix ^ "mash_accessibility")
46 generate_features @{context} prover thys false (prefix ^ "mash_features")
53 generate_isar_dependencies @{context} thys false (prefix ^ "mash_dependencies")
60 generate_isar_commands @{context} prover thys (prefix ^ "mash_commands")
67 generate_mepo_suggestions @{context} params thys 1024 (prefix ^ "mash_mepo_suggestions")
74 generate_atp_dependencies @{context} params thys false (prefix ^ "mash_atp_dependencies")
81 generate_atp_commands @{context} params thys (prefix ^ "mash_atp_commands")