src/Pure/sign.ML
changeset 26268 80aaf4d034be
parent 25476 03da46cfab9e
child 26631 d6b6c74a8bcf
--- a/src/Pure/sign.ML	Fri Mar 14 08:52:52 2008 +0100
+++ b/src/Pure/sign.ML	Fri Mar 14 08:52:53 2008 +0100
@@ -95,6 +95,7 @@
   val const_syntax_name: theory -> string -> string
   val const_typargs: theory -> string * typ -> typ list
   val const_instance: theory -> string * typ list -> typ
+  val mk_const: theory -> string * typ list -> term
   val class_space: theory -> NameSpace.T
   val type_space: theory -> NameSpace.T
   val const_space: theory -> NameSpace.T
@@ -264,6 +265,8 @@
 val const_typargs = Consts.typargs o consts_of;
 val const_instance = Consts.instance o consts_of;
 
+fun mk_const thy (c, Ts) = Const (c, const_instance thy (c, Ts));
+
 val declared_tyname = Symtab.defined o #2 o #types o Type.rep_tsig o tsig_of;
 val declared_const = can o the_const_constraint;