proper use of Sign.full_name;
authorwenzelm
Tue, 31 May 2005 11:53:16 +0200
changeset 16125 bd13a0017137
parent 16124 8340f7ca96d0
child 16126 3ba9eb7ea366
proper use of Sign.full_name;
src/HOL/Tools/res_axioms.ML
--- a/src/HOL/Tools/res_axioms.ML	Tue May 31 11:53:15 2005 +0200
+++ b/src/HOL/Tools/res_axioms.ML	Tue May 31 11:53:16 2005 +0200
@@ -201,8 +201,7 @@
 		val args = term_frees xtp  (*get the formal parameter list*)
 		val Ts = map type_of args
 		val cT = Ts ---> T
-		val c = Const(NameSpace.append (PureThy.get_name thy) cname, cT)
-		        (*Generates a compound constant name in the given theory*)
+		val c = Const (Sign.full_name (Theory.sign_of thy) cname, cT)
 		val rhs = list_abs_free (map dest_Free args, HOLogic.choice_const T $ xtp)
 		        (*Forms a lambda-abstraction over the formal parameters*)
 		val def = equals cT $ c $ rhs