find_theorems: respect conceal flag
authorkrauss
Mon, 02 Nov 2009 16:44:18 +0100
changeset 33381 81269c72321a
parent 33380 cd6023a9a922
child 33382 7d2c6e7f91bd
find_theorems: respect conceal flag
src/Pure/Tools/find_theorems.ML
--- a/src/Pure/Tools/find_theorems.ML	Mon Nov 02 17:30:38 2009 +0100
+++ b/src/Pure/Tools/find_theorems.ML	Mon Nov 02 16:44:18 2009 +0100
@@ -375,9 +375,15 @@
 (* print_theorems *)
 
 fun all_facts_of ctxt =
-  maps Facts.selections
-   (Facts.dest_static [] (PureThy.facts_of (ProofContext.theory_of ctxt)) @
-    Facts.dest_static [] (ProofContext.facts_of ctxt));
+  let
+    fun visible_facts facttab =
+      Facts.dest_static [] facttab
+      |> filter_out (Facts.is_concealed facttab o #1)
+  in
+    maps Facts.selections
+     (visible_facts (PureThy.facts_of (ProofContext.theory_of ctxt)) @
+      visible_facts (ProofContext.facts_of ctxt))
+  end;
 
 val limit = Unsynchronized.ref 40;