--- a/src/HOL/Tools/datatype_prop.ML Tue Oct 23 11:48:10 2007 +0200
+++ b/src/HOL/Tools/datatype_prop.ML Tue Oct 23 11:48:11 2007 +0200
@@ -45,8 +45,8 @@
let
fun index (x :: xs) tab =
(case AList.lookup (op =) tab x of
- NONE => if x mem xs then (x ^ "1") :: index xs ((x, 2) :: tab) else x :: index xs tab
- | SOME i => (x ^ Library.string_of_int i) :: index xs ((x, i + 1) :: tab))
+ NONE => if member (op =) xs x then (x ^ "1") :: index xs ((x, 2) :: tab) else x :: index xs tab
+ | SOME i => (x ^ string_of_int i) :: index xs ((x, i + 1) :: tab))
| index [] _ = [];
in index names [] end;