added const_instance;
authorwenzelm
Mon, 14 Nov 2005 14:37:48 +0100
changeset 18164 eb4206c930cd
parent 18163 9b729737bf14
child 18165 cbed396ecb1c
added const_instance;
src/Pure/sign.ML
--- a/src/Pure/sign.ML	Mon Nov 14 14:37:38 2005 +0100
+++ b/src/Pure/sign.ML	Mon Nov 14 14:37:48 2005 +0100
@@ -115,6 +115,7 @@
   val declared_const: theory -> string -> bool
   val const_monomorphic: theory -> string -> bool
   val const_typargs: theory -> string * typ -> typ list
+  val const_instance: theory -> string * typ list -> typ
   val class_space: theory -> NameSpace.T
   val type_space: theory -> NameSpace.T
   val const_space: theory -> NameSpace.T
@@ -280,6 +281,7 @@
 val const_type = try o the_const_type;
 val const_monomorphic = Consts.monomorphic o consts_of;
 val const_typargs = Consts.typargs o consts_of;
+val const_instance = Consts.instance o consts_of;
 
 val declared_tyname = Symtab.defined o #2 o #types o Type.rep_tsig o tsig_of;
 val declared_const = is_some oo const_type;