src/HOL/Tools/monomorph.ML
changeset 60642 48dd1cefb4ae
parent 59642 929984c529d3
child 67149 e61557884799
--- a/src/HOL/Tools/monomorph.ML	Fri Jul 03 16:19:45 2015 +0200
+++ b/src/HOL/Tools/monomorph.ML	Sun Jul 05 15:02:30 2015 +0200
@@ -159,7 +159,7 @@
 
 fun instantiate ctxt subst =
   let
-    fun cert (ix, (S, T)) = apply2 (Thm.ctyp_of ctxt) (TVar (ix, S), T)
+    fun cert (ix, (S, T)) = ((ix, S), Thm.ctyp_of ctxt T)
     fun cert' subst = Vartab.fold (cons o cert) subst []
   in Thm.instantiate (cert' subst, []) end