src/HOL/Tools/Datatype/datatype_aux.ML
changeset 42364 8c674b3b8e44
parent 42290 b1f544c84040
child 42368 3b8498ac2314
--- a/src/HOL/Tools/Datatype/datatype_aux.ML	Sat Apr 16 16:37:21 2011 +0200
+++ b/src/HOL/Tools/Datatype/datatype_aux.ML	Sat Apr 16 18:11:20 2011 +0200
@@ -132,7 +132,7 @@
   let
     val ts = HOLogic.dest_conj (HOLogic.dest_Trueprop (concl_of indrule));
     val ts' = HOLogic.dest_conj (HOLogic.dest_Trueprop
-      (Logic.strip_imp_concl (List.nth (prems_of st, i - 1))));
+      (Logic.strip_imp_concl (nth (prems_of st) (i - 1))));
     val getP = if can HOLogic.dest_imp (hd ts) then
       (apfst SOME) o HOLogic.dest_imp else pair NONE;
     val flt = if null indnames then I else