Cosmetic update of induct_tac; test first now.
authornipkow
Mon, 05 May 1997 18:09:31 +0200
changeset 3105 1a5bfa2ab1d1
parent 3104 86f8e75c2296
child 3106 5396e99c02af
Cosmetic update of induct_tac; test first now.
src/HOL/datatype.ML
--- a/src/HOL/datatype.ML	Mon May 05 13:24:38 1997 +0200
+++ b/src/HOL/datatype.ML	Mon May 05 18:09:31 1997 +0200
@@ -840,10 +840,11 @@
      fun const s = Const(s, the(Sign.const_type sign s))
      val case_rewrites = map (fn c => get_fact thy (ty^"_case_"^c)) cl
      val {nchotomy,case_cong} = case_thms sign case_rewrites itac
-     fun induct_tac a i = itac a i THEN
+     fun induct_tac a i =
            COND (Datatype.occs_in_prems a i)
              (warning "Induction variable occurs also among premises!";
               all_tac) all_tac
+           THEN itac a i
  in
   (ty, {constructors = map(fn s => const s handle _ => const("op "^s)) cl,
         case_const = const (ty^"_case"),