src/HOL/Tools/Quotient/quotient_term.ML
changeset 46416 5f5665a0b973
parent 45797 977cf00fb8d3
child 47095 b43ddeea727f
--- a/src/HOL/Tools/Quotient/quotient_term.ML	Sat Feb 04 17:01:25 2012 +0100
+++ b/src/HOL/Tools/Quotient/quotient_term.ML	Sun Feb 05 07:05:34 2012 +0100
@@ -728,7 +728,7 @@
           | matches ((rty, qty)::tail) =
               (case try (Sign.typ_match thy (rty, rty')) Vartab.empty of
                 NONE => matches tail
-              | SOME inst => Envir.subst_type inst qty)
+              | SOME inst => subst_typ ctxt ty_subst (Envir.subst_type inst qty))
       in
         matches ty_subst
       end
@@ -749,7 +749,7 @@
           | matches ((rconst, qconst)::tail) =
               (case try (Pattern.match thy (rconst, rtrm)) (Vartab.empty, Vartab.empty) of
                 NONE => matches tail
-              | SOME inst => Envir.subst_term inst qconst)
+              | SOME inst => subst_trm ctxt ty_subst trm_subst (Envir.subst_term inst qconst))
       in
         matches trm_subst
       end