HOLogic.dest_concls, InductAttrib.vars_of;
authorwenzelm
Fri, 12 Oct 2001 12:06:10 +0200
changeset 11725 d0c37d04906b
parent 11724 f727aa96ae2e
child 11726 2b2a45abe876
HOLogic.dest_concls, InductAttrib.vars_of;
src/HOL/Tools/datatype_package.ML
--- a/src/HOL/Tools/datatype_package.ML	Fri Oct 12 12:05:46 2001 +0200
+++ b/src/HOL/Tools/datatype_package.ML	Fri Oct 12 12:06:10 2001 +0200
@@ -183,7 +183,7 @@
   | prep_var _ = None;
 
 fun prep_inst (concl, xs) =	(*exception LIST*)
-  let val vs = InductMethod.vars_of concl
+  let val vs = InductAttrib.vars_of concl
   in mapfilter prep_var (Library.drop (length vs - length xs, vs) ~~ xs) end;
 
 in
@@ -199,7 +199,7 @@
           let val tn = find_tname (hd (mapfilter I (flat varss))) Bi
           in (#induction (datatype_info_sg_err sign tn), "Induction rule for type " ^ tn) end);
 
-    val concls = InductMethod.concls_of rule;
+    val concls = HOLogic.dest_concls (Thm.concl_of rule);
     val insts = flat (map prep_inst (concls ~~ varss)) handle LIST _ =>
       error (rule_name ^ " has different numbers of variables");
   in occs_in_prems (Tactic.res_inst_tac insts rule) (map #2 insts) i state end;