attribute: Context.mapping;
authorwenzelm
Mon, 09 Oct 2006 02:20:05 +0200
changeset 20912 380663e636a8
parent 20911 8fc5850446ed
child 20913 7a4dceafab2d
attribute: Context.mapping; removed Drule.strip_shyps_warning;
src/Pure/Isar/object_logic.ML
--- a/src/Pure/Isar/object_logic.ML	Mon Oct 09 02:20:04 2006 +0200
+++ b/src/Pure/Isar/object_logic.ML	Mon Oct 09 02:20:05 2006 +0200
@@ -136,13 +136,11 @@
 val get_atomize = #1 o #2 o ObjectLogicData.get;
 val get_rulify = #2 o #2 o ObjectLogicData.get;
 
-val declare_atomize =
-  Thm.declaration_attribute (Context.map_theory o ObjectLogicData.map o
-    Library.apsnd o Library.apfst o Drule.add_rule);
+val declare_atomize = Thm.declaration_attribute (fn th =>
+  Context.mapping (ObjectLogicData.map (apsnd (apfst (Drule.add_rule th)))) I);
 
-val declare_rulify =
-  Thm.declaration_attribute (Context.map_theory o ObjectLogicData.map o
-    Library.apsnd o Library.apsnd o Drule.add_rule);
+val declare_rulify = Thm.declaration_attribute (fn th =>
+  Context.mapping (ObjectLogicData.map (apsnd (apsnd (Drule.add_rule th)))) I);
 
 
 (* atomize *)
@@ -177,7 +175,7 @@
 
 fun gen_rulify full thm =
   Tactic.simplify full (get_rulify (Thm.theory_of_thm thm)) thm
-  |> Drule.gen_all |> Drule.strip_shyps_warning |> Drule.zero_var_indexes;
+  |> Drule.gen_all |> Thm.strip_shyps |> Drule.zero_var_indexes;
 
 val rulify = gen_rulify true;
 val rulify_no_asm = gen_rulify false;