termT and term_of_const
authorhaftmann
Thu, 30 Jul 2009 13:52:17 +0200
changeset 32339 40612b7ace87
parent 32289 c14aeb0bcce4
child 32340 b4632820e74c
termT and term_of_const
src/HOL/Tools/hologic.ML
--- 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)