--- a/src/HOL/Tools/BNF/bnf_fp_n2m_sugar.ML Sat Nov 08 16:42:04 2014 +0100
+++ b/src/HOL/Tools/BNF/bnf_fp_n2m_sugar.ML Sat Nov 08 16:55:41 2014 +0100
@@ -442,8 +442,8 @@
let
val unify_pairs = split_list (maps (curry (op ~~) gen_tyargs) gen_tyargss_tl);
val mgu = Type.raw_unifys unify_pairs Vartab.empty;
- val gen_tyargs' = map (Envir.subst_type mgu) gen_tyargs;
- val gen_seen' = map (Envir.subst_type mgu) gen_seen;
+ val gen_tyargs' = map (Envir.norm_type mgu) gen_tyargs;
+ val gen_seen' = map (Envir.norm_type mgu) gen_seen;
in
(rho, gen_tyargs', gen_seen', lthy)
end)