src/Tools/coherent.ML
changeset 36946 4eba866311df
parent 36945 9bec62c10714
child 41228 e1fce873b814
--- a/src/Tools/coherent.ML	Sat May 15 21:50:05 2010 +0200
+++ b/src/Tools/coherent.ML	Sat May 15 21:57:27 2010 +0200
@@ -41,17 +41,13 @@
 
 val is_atomic = not o exists_Const (member (op =) Data.operator_names o #1);
 
-local open Conv in
-
 fun rulify_elim_conv ct =
-  if is_atomic (Logic.strip_imp_concl (term_of ct)) then all_conv ct
-  else concl_conv (length (Logic.strip_imp_prems (term_of ct)))
-    (rewr_conv (Thm.symmetric Data.atomize_elimL) then_conv
+  if is_atomic (Logic.strip_imp_concl (term_of ct)) then Conv.all_conv ct
+  else Conv.concl_conv (length (Logic.strip_imp_prems (term_of ct)))
+    (Conv.rewr_conv (Thm.symmetric Data.atomize_elimL) then_conv
      MetaSimplifier.rewrite true (map Thm.symmetric
        [Data.atomize_exL, Data.atomize_conjL, Data.atomize_disjL])) ct
 
-end;
-
 fun rulify_elim th = Simplifier.norm_hhf (Conv.fconv_rule rulify_elim_conv th);
 
 (* Decompose elimination rule of the form