Context.check_thy;
authorwenzelm
Wed, 06 Jul 2005 20:00:31 +0200
changeset 16723 9a9c034f1d57
parent 16722 040728f6a103
child 16724 1c8317722b4c
Context.check_thy;
src/Pure/sign.ML
--- a/src/Pure/sign.ML	Wed Jul 06 20:00:29 2005 +0200
+++ b/src/Pure/sign.ML	Wed Jul 06 20:00:31 2005 +0200
@@ -352,7 +352,7 @@
 
 (* certify wrt. type signature *)
 
-fun certify cert = cert o tsig_of o Context.check_thy "Sign.certify";
+fun certify cert = cert o tsig_of o Context.check_thy;
 
 val certify_class      = certify Type.cert_class;
 val certify_sort       = certify Type.cert_sort;
@@ -397,7 +397,7 @@
 
 fun certify_term pp thy tm =
   let
-    val _ = Context.check_thy "Sign.certify_term" thy;
+    val _ = Context.check_thy thy;
 
     val tm' = map_term_types (certify_typ thy) tm;
     val tm' = if tm = tm' then tm else tm';  (*avoid copying of already normal term*)
@@ -439,7 +439,7 @@
 
 fun read_sort' syn thy str =
   let
-    val _ = Context.check_thy "Sign.read_sort'" thy;
+    val _ = Context.check_thy thy;
     val S = intern_sort thy (Syntax.read_sort thy syn str);
   in certify_sort thy S handle TYPE (msg, _, _) => error msg end;
 
@@ -452,7 +452,7 @@
 
 fun gen_read_typ' cert syn (thy, def_sort) str =
   let
-    val _ = Context.check_thy "Sign.gen_read_typ'" thy;
+    val _ = Context.check_thy thy;
     val get_sort = TypeInfer.get_sort (tsig_of thy) def_sort (intern_sort thy);
     val T = intern_tycons thy (Syntax.read_typ thy syn get_sort (intern_sort thy) str);
   in cert thy T handle TYPE (msg, _, _) => error msg end