--- a/src/HOL/Tools/inductive_package.ML Wed Jul 13 10:44:51 2005 +0200
+++ b/src/HOL/Tools/inductive_package.ML Wed Jul 13 10:48:21 2005 +0200
@@ -178,8 +178,8 @@
fun unify_consts thy cs intr_ts =
(let
val tsig = Sign.tsig_of thy;
- fun add_term_consts_2 (x, y) =
- fold_aterms (fn (Const c) => curry (op ins) c | _ => I) y x;
+ val add_term_consts_2 =
+ foldl_aterms (fn (cs, Const c) => c ins cs | (cs, _) => cs);
fun varify (t, (i, ts)) =
let val t' = map_term_types (incr_tvar (i + 1)) (#1 (Type.varify (t, [])))
in (maxidx_of_term t', t'::ts) end;