export is_concealed;
authorwenzelm
Sun, 25 Oct 2009 19:14:25 +0100
changeset 33163 351fc13613f2
parent 33162 d11b89e7afd9
child 33164 b8fd9b6bba7c
export is_concealed; tuned;
src/Pure/facts.ML
--- a/src/Pure/facts.ML	Sun Oct 25 19:14:11 2009 +0100
+++ b/src/Pure/facts.ML	Sun Oct 25 19:14:25 2009 +0100
@@ -21,6 +21,7 @@
   type T
   val empty: T
   val space_of: T -> Name_Space.T
+  val is_concealed: T -> string -> bool
   val intern: T -> xstring -> string
   val extern: T -> string -> xstring
   val lookup: Context.generic -> T -> string -> (bool * thm list) option
@@ -44,7 +45,7 @@
 (** fact references **)
 
 fun the_single _ [th] : thm = th
-  | the_single name _ = error ("Single theorem expected " ^ quote name);
+  | the_single name _ = error ("Expected singleton fact " ^ quote name);
 
 
 (* datatype interval *)
@@ -126,6 +127,7 @@
   props: thm Net.net};
 
 fun make_facts facts props = Facts {facts = facts, props = props};
+
 val empty = make_facts (Name_Space.empty_table "fact") Net.empty;
 
 
@@ -136,6 +138,8 @@
 val space_of = #1 o facts_of;
 val table_of = #2 o facts_of;
 
+val is_concealed = Name_Space.is_concealed o space_of;
+
 val intern = Name_Space.intern o space_of;
 val extern = Name_Space.extern o space_of;
 
@@ -216,7 +220,7 @@
 
 fun del name (Facts {facts = (space, tab), props}) =
   let
-    val space' = Name_Space.hide true name space handle ERROR _ => space;  (* FIXME handle?? *)
+    val space' = Name_Space.hide true name space handle ERROR _ => space;
     val tab' = Symtab.delete_safe name tab;
   in make_facts (space', tab') props end;