open BasicThmDatabase;
authorwenzelm
Wed, 03 Feb 1999 17:23:35 +0100
changeset 6204 c7ad5b27894f
parent 6203 328b4377755c
child 6205 dd3d3da0f458
open BasicThmDatabase; Present.thm;
src/Pure/Thy/thm_database.ML
--- a/src/Pure/Thy/thm_database.ML	Wed Feb 03 17:23:04 1999 +0100
+++ b/src/Pure/Thy/thm_database.ML	Wed Feb 03 17:23:35 1999 +0100
@@ -5,10 +5,8 @@
 User level interface to thm database (see also Pure/pure_thy.ML).
 *)
 
-signature THM_DATABASE =
+signature BASIC_THM_DATABASE =
 sig
-  val ml_store_thm: string * thm -> unit
-  val is_ml_identifier: string -> bool
   val store_thm: string * thm -> thm
   val qed_thm: thm option ref
   val bind_thm: string * thm -> unit
@@ -22,6 +20,13 @@
   val findE: int -> int -> (string * thm) list
 end;
 
+signature THM_DATABASE =
+sig
+  include BASIC_THM_DATABASE
+  val ml_store_thm: string * thm -> unit
+  val is_ml_identifier: string -> bool
+end;
+
 structure ThmDatabase: THM_DATABASE =
 struct
 
@@ -30,9 +35,8 @@
 (* store in theory and generate HTML *)
 
 fun store_thm (name, thm) =
-  let val thm' = PureThy.smart_store_thm (name, thm) in
-    BrowserInfo.thm_to_html thm' name; thm'
-  end;
+  let val thm' = PureThy.smart_store_thm (name, thm)
+  in Present.thm name thm'; thm' end;
 
 
 (* store on ML toplevel *)
@@ -181,3 +185,7 @@
 
 
 end;
+
+
+structure BasicThmDatabase: BASIC_THM_DATABASE = ThmDatabase;
+open BasicThmDatabase;