src/HOL/Tools/TFL/casesplit.ML
changeset 32035 8e77b6a250d5
parent 31784 bd3486c57ba3
child 32091 30e2ffbba718
--- a/src/HOL/Tools/TFL/casesplit.ML	Fri Jul 17 22:54:11 2009 +0200
+++ b/src/HOL/Tools/TFL/casesplit.ML	Fri Jul 17 23:11:40 2009 +0200
@@ -129,8 +129,8 @@
           | _ => error "not a valid case thm";
       val type_cinsts = map (fn (ixn, (S, T)) => (ctypify (TVar (ixn, S)), ctypify T))
         (Vartab.dest type_insts);
-      val cPv = ctermify (Envir.subst_TVars type_insts Pv);
-      val cDv = ctermify (Envir.subst_TVars type_insts Dv);
+      val cPv = ctermify (Envir.subst_term_types type_insts Pv);
+      val cDv = ctermify (Envir.subst_term_types type_insts Dv);
     in
       (beta_eta_contract
          (case_thm