src/HOL/Import/hol4rews.ML
changeset 39159 0dec18004e75
parent 38864 4abe644fcea5
child 39557 fe5722fce758
--- a/src/HOL/Import/hol4rews.ML	Mon Sep 06 19:11:01 2010 +0200
+++ b/src/HOL/Import/hol4rews.ML	Mon Sep 06 19:13:10 2010 +0200
@@ -156,13 +156,10 @@
 val hol4_debug = Unsynchronized.ref false
 fun message s = if !hol4_debug then writeln s else ()
 
-local
-  val eq_reflection = thm "eq_reflection"
-in
 fun add_hol4_rewrite (Context.Theory thy, th) =
     let
         val _ = message "Adding HOL4 rewrite"
-        val th1 = th RS eq_reflection
+        val th1 = th RS @{thm eq_reflection}
         val current_rews = HOL4Rewrites.get thy
         val new_rews = insert Thm.eq_thm th1 current_rews
         val updated_thy  = HOL4Rewrites.put new_rews thy
@@ -170,7 +167,6 @@
         (Context.Theory updated_thy,th1)
     end
   | add_hol4_rewrite (context, th) = (context, th RS eq_reflection);
-end
 
 fun ignore_hol4 bthy bthm thy =
     let