equal
deleted
inserted
replaced
20 val ascii_of = ATP_Translate.ascii_of |
20 val ascii_of = ATP_Translate.ascii_of |
21 |
21 |
22 val fact_name_of = prefix ATP_Translate.fact_prefix o ascii_of |
22 val fact_name_of = prefix ATP_Translate.fact_prefix o ascii_of |
23 |
23 |
24 fun facts_of thy = |
24 fun facts_of thy = |
25 Sledgehammer_Filter.all_facts (ProofContext.init_global thy) Symtab.empty |
25 Sledgehammer_Filter.all_facts (Proof_Context.init_global thy) Symtab.empty |
26 true (K true) [] [] |
26 true (K true) [] [] |
27 |
27 |
28 fun fold_body_thms f = |
28 fun fold_body_thms f = |
29 let |
29 let |
30 fun app n (PBody {thms, ...}) = thms |> fold (fn (i, (name, prop, body)) => fn (x, seen) => |
30 fun app n (PBody {thms, ...}) = thms |> fold (fn (i, (name, prop, body)) => fn (x, seen) => |
42 val names = |
42 val names = |
43 [] |> fold_body_thms collect [Thm.proof_body_of thm] |> map fact_name_of |
43 [] |> fold_body_thms collect [Thm.proof_body_of thm] |> map fact_name_of |
44 in names end |
44 in names end |
45 |
45 |
46 fun interesting_const_names ctxt = |
46 fun interesting_const_names ctxt = |
47 let val thy = ProofContext.theory_of ctxt in |
47 let val thy = Proof_Context.theory_of ctxt in |
48 Sledgehammer_Filter.const_names_in_fact thy |
48 Sledgehammer_Filter.const_names_in_fact thy |
49 (Sledgehammer_Provers.is_built_in_const_for_prover ctxt ATP_Systems.eN) |
49 (Sledgehammer_Provers.is_built_in_const_for_prover ctxt ATP_Systems.eN) |
50 end |
50 end |
51 |
51 |
52 fun generate_tptp_graph_file_for_theory ctxt thy file_name = |
52 fun generate_tptp_graph_file_for_theory ctxt thy file_name = |