improved theorems print method: transfer_sg;
authorwenzelm
Thu, 20 Nov 1997 15:30:37 +0100
changeset 4258 f2ca5a87f0a7
parent 4257 1663f9056045
child 4259 adbe3f4e7caf
improved theorems print method: transfer_sg;
src/Pure/pure_thy.ML
--- a/src/Pure/pure_thy.ML	Thu Nov 20 15:30:03 1997 +0100
+++ b/src/Pure/pure_thy.ML	Thu Nov 20 15:30:37 1997 +0100
@@ -52,9 +52,9 @@
   Theorems (ref {space = NameSpace.empty,
     thms_tab = Symtab.null, const_idx = (0, Symtab.null)});
 
-fun print (Theorems (ref {space, thms_tab, const_idx = _})) =
+fun print sg (Theorems (ref {space, thms_tab, const_idx = _})) =
   let
-    val prt_thm = Pretty.quote o Display.pretty_thm;
+    val prt_thm = Pretty.quote o Display.pretty_thm o Thm.transfer_sg sg;
     fun prt_thms (name, [th]) =
           Pretty.block [Pretty.str (name ^ ":"), Pretty.brk 1, prt_thm th]
       | prt_thms (name, ths) = Pretty.big_list (name ^ ":") (map prt_thm ths);
@@ -70,7 +70,7 @@
 in
 
 val theorems_data: string * (object * (object -> object) *
-  (object * object -> object) * (object -> unit)) =
+  (object * object -> object) * (Sign.sg -> object -> unit)) =
     (theoremsK, (mk_empty (), mk_empty, mk_empty, print));
 
 end;