CONVERSION tactical;
authorwenzelm
Tue, 03 Jul 2007 17:17:15 +0200
changeset 23540 77886dfbfa33
parent 23539 df5440e241a1
child 23541 f8c5e218e4d8
CONVERSION tactical; MetaSimplifier.rewrite_goal_tac;
src/Pure/Isar/object_logic.ML
--- a/src/Pure/Isar/object_logic.ML	Tue Jul 03 17:17:13 2007 +0200
+++ b/src/Pure/Isar/object_logic.ML	Tue Jul 03 17:17:15 2007 +0200
@@ -141,10 +141,8 @@
 
 (* atomize *)
 
-fun rewrite_prems_tac rews i = PRIMITIVE (Conv.fconv_rule
-  (Conv.goals_conv (Library.equal i)
-    (Conv.forall_conv ~1
-      (Conv.goals_conv (K true) (MetaSimplifier.rewrite true rews)))));
+fun rewrite_prems_tac rews =
+  CONVERSION (Conv.forall_conv ~1 (Conv.prems_conv ~1 (K (MetaSimplifier.rewrite true rews))));
 
 fun atomize_term thy =
   drop_judgment thy o MetaSimplifier.rewrite_term thy (get_atomize thy) [];
@@ -158,7 +156,7 @@
   else all_tac st;
 
 fun full_atomize_tac i st =
-  Goal.rewrite_goal_tac (get_atomize (Thm.theory_of_thm st)) i st;
+  MetaSimplifier.rewrite_goal_tac (get_atomize (Thm.theory_of_thm st)) i st;
 
 fun atomize_goal i st =
   (case Seq.pull (atomize_tac i st) of NONE => st | SOME (st', _) => st');
@@ -167,7 +165,7 @@
 (* rulify *)
 
 fun rulify_term thy = MetaSimplifier.rewrite_term thy (get_rulify thy) [];
-fun rulify_tac i st = Goal.rewrite_goal_tac (get_rulify (Thm.theory_of_thm st)) i st;
+fun rulify_tac i st = MetaSimplifier.rewrite_goal_tac (get_rulify (Thm.theory_of_thm st)) i st;
 
 fun gen_rulify full thm =
   MetaSimplifier.simplify full (get_rulify (Thm.theory_of_thm thm)) thm