
blanchet@49249: (*  Title:      HOL/TPTP/MaSh_Export.thy
blanchet@49249:     Author:     Jasmin Blanchette, TU Muenchen
blanchet@49249: *)
blanchet@49249: 
blanchet@49249: header {* MaSh Exporter *}
blanchet@49249: 
blanchet@49249: theory MaSh_Export
blanchet@49249: imports ATP_Theory_Export
blanchet@49249: uses "mash_export.ML"
blanchet@49249: begin
blanchet@49249: 
blanchet@49260: sledgehammer_params
blanchet@49260:   [provers = e, max_relevant = 40, strict, dont_slice, type_enc = poly_guards??,
blanchet@49260:    lam_trans = combs_and_lifting, timeout = 5, dont_preplay, minimize]
blanchet@49254: 
blanchet@49249: ML {*
blanchet@49266: open Sledgehammer_Filter_MaSh
blanchet@49249: open MaSh_Export
blanchet@49249: *}
blanchet@49249: 
blanchet@49249: ML {*
blanchet@49265: val do_it = false (* switch to "true" to generate the files *);
blanchet@49266: val thy = @{theory Nat};
blanchet@49266: val params = Sledgehammer_Isar.default_params @{context} []
blanchet@49261: *}
blanchet@49261: 
blanchet@49261: ML {*
blanchet@49260: if do_it then
blanchet@49266:   generate_accessibility thy false "/tmp/mash_accessibility"
blanchet@49260: else
blanchet@49260:   ()
blanchet@49249: *}
blanchet@49249: 
blanchet@49249: ML {*
blanchet@49260: if do_it then
blanchet@49260:   generate_features thy false "/tmp/mash_features"
blanchet@49260: else
blanchet@49260:   ()
blanchet@49249: *}
blanchet@49249: 
blanchet@49249: ML {*
blanchet@49260: if do_it then
blanchet@49260:   generate_isa_dependencies thy false "/tmp/mash_isa_dependencies"
blanchet@49260: else
blanchet@49260:   ()
blanchet@49249: *}
blanchet@49249: 
blanchet@49249: ML {*
blanchet@49260: if do_it then
blanchet@49266:   generate_atp_dependencies @{context} params thy false "/tmp/mash_atp_dependencies"
blanchet@49260: else
blanchet@49260:   ()
blanchet@49260: *}
blanchet@49260: 
blanchet@49260: ML {*
blanchet@49260: if do_it then
blanchet@49260:   generate_commands thy "/tmp/mash_commands"
blanchet@49260: else
blanchet@49260:   ()
blanchet@49260: *}
blanchet@49260: 
blanchet@49260: ML {*
blanchet@49260: if do_it then
blanchet@49266:   generate_iter_suggestions @{context} params thy 500 "/tmp/mash_iter_suggestions"
blanchet@49260: else
blanchet@49260:   ()
blanchet@49250: *}
blanchet@49250: 
blanchet@49249: end




