src/HOL/Import/hol4rews.ML
changeset 21546 268b6bed0cc8
parent 21056 2cfe839e8d58
child 21858 05f57309170c
--- a/src/HOL/Import/hol4rews.ML	Mon Nov 27 13:42:30 2006 +0100
+++ b/src/HOL/Import/hol4rews.ML	Mon Nov 27 13:42:33 2006 +0100
@@ -261,17 +261,21 @@
 val hol4_debug = 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 HOL.eq_reflection
+	val th1 = th RS 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
     in
 	(Context.Theory updated_thy,th1)
     end
-  | add_hol4_rewrite (context, th) = (context, th RS HOL.eq_reflection);
+  | add_hol4_rewrite (context, th) = (context, th RS eq_reflection);
+end
 
 fun ignore_hol4 bthy bthm thy =
     let