refer to imp_cong from HOL, not Drule (!) -- cf. 4ed94d92ae19;
--- 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;