src/Pure/conv.ML
changeset 38668 e8236c4aff16
parent 36936 c52d1c130898
child 41248 bb28bf635202
--- a/src/Pure/conv.ML	Mon Aug 23 11:09:48 2010 +0200
+++ b/src/Pure/conv.ML	Mon Aug 23 11:09:48 2010 +0200
@@ -48,6 +48,7 @@
   val concl_conv: int -> conv -> conv
   val fconv_rule: conv -> thm -> thm
   val gconv_rule: conv -> int -> thm -> thm
+  val tap_thy: (theory -> conv) -> conv
 end;
 
 structure Conv: CONV =
@@ -211,6 +212,9 @@
       end
   | NONE => raise THM ("gconv_rule", i, [th]));
 
+
+fun tap_thy conv ct = conv (Thm.theory_of_cterm ct) ct;
+
 end;
 
 structure Basic_Conv: BASIC_CONV = Conv;