src/HOL/TPTP/atp_theory_export.ML
changeset 46734 6256e064f8fa
parent 46667 318b669fe660
child 47038 2409b484e1cc
--- a/src/HOL/TPTP/atp_theory_export.ML	Tue Feb 28 15:54:51 2012 +0100
+++ b/src/HOL/TPTP/atp_theory_export.ML	Tue Feb 28 15:54:51 2012 +0100
@@ -29,10 +29,13 @@
 val fact_name_of = prefix fact_prefix o ascii_of
 
 fun facts_of thy =
-  Sledgehammer_Filter.all_facts (Proof_Context.init_global thy) false
-                                Symtab.empty true [] []
-  |> filter (curry (op =) @{typ bool} o fastype_of
-             o Object_Logic.atomize_term thy o prop_of o snd)
+  let val ctxt = Proof_Context.init_global thy in
+    Sledgehammer_Filter.all_facts ctxt false
+        Symtab.empty true [] []
+        (Sledgehammer_Filter.clasimpset_rule_table_of ctxt)
+    |> filter (curry (op =) @{typ bool} o fastype_of
+               o Object_Logic.atomize_term thy o prop_of o snd)
+  end
 
 (* FIXME: Similar yet different code in "mirabelle.ML". The code here has a few
    fixes that seem to be missing over there; or maybe the two code portions are