src/HOL/Tools/hologic.ML
changeset 32339 40612b7ace87
parent 32287 65d5c5b30747
child 32342 3fabf5b5fc83
--- a/src/HOL/Tools/hologic.ML	Thu Jul 30 08:18:22 2009 +0200
+++ b/src/HOL/Tools/hologic.ML	Thu Jul 30 13:52:17 2009 +0200
@@ -118,6 +118,8 @@
   val mk_literal: string -> term
   val dest_literal: term -> string
   val mk_typerep: typ -> term
+  val termT: typ
+  val term_of_const: typ -> term
   val mk_term_of: typ -> term -> term
   val reflect_term: term -> term
   val mk_valtermify_app: string -> (string * typ) list -> typ -> term
@@ -591,7 +593,9 @@
 
 val termT = Type ("Code_Eval.term", []);
 
-fun mk_term_of T t = Const ("Code_Eval.term_of_class.term_of", T --> termT) $ t;
+fun term_of_const T = Const ("Code_Eval.term_of_class.term_of", T --> termT);
+
+fun mk_term_of T t = term_of_const T $ t;
 
 fun reflect_term (Const (c, T)) =
       Const ("Code_Eval.Const", literalT --> typerepT --> termT)