refer to imp_cong from HOL, not Drule (!) -- cf. 4ed94d92ae19;
authorwenzelm
Wed, 11 Jan 2012 16:23:59 +0100
changeset 46185 afda84cd4d4b
parent 46184 e81b5673ae01
child 46186 9ae331a1d8c5
refer to imp_cong from HOL, not Drule (!) -- cf. 4ed94d92ae19;
src/HOL/Tools/recdef.ML
--- a/src/HOL/Tools/recdef.ML	Wed Jan 11 15:12:57 2012 +0100
+++ b/src/HOL/Tools/recdef.ML	Wed Jan 11 16:23:59 2012 +0100
@@ -167,7 +167,7 @@
       | SOME src => #2 (Method.syntax (Method.sections recdef_modifiers) src ctxt0));
     val {simps, congs, wfs} = get_hints ctxt;
     val ctxt' = ctxt
-      |> Simplifier.map_simpset (fn ss => ss addsimps simps |> Simplifier.del_cong imp_cong);
+      |> Simplifier.map_simpset (fn ss => ss addsimps simps |> Simplifier.del_cong @{thm imp_cong});
   in (ctxt', rev (map snd congs), wfs) end;
 
 fun prepare_hints_i thy () =
@@ -175,7 +175,7 @@
     val ctxt = Proof_Context.init_global thy;
     val {simps, congs, wfs} = get_global_hints thy;
     val ctxt' = ctxt
-      |> Simplifier.map_simpset (fn ss => ss addsimps simps |> Simplifier.del_cong imp_cong);
+      |> Simplifier.map_simpset (fn ss => ss addsimps simps |> Simplifier.del_cong @{thm imp_cong});
   in (ctxt', rev (map snd congs), wfs) end;