src/Tools/induct.ML
changeset 60642 48dd1cefb4ae
parent 60576 51f1d213079c
child 60784 4f590c08fd5d
--- a/src/Tools/induct.ML	Fri Jul 03 16:19:45 2015 +0200
+++ b/src/Tools/induct.ML	Sun Jul 05 15:02:30 2015 +0200
@@ -573,8 +573,8 @@
     val pairs = Vartab.dest (Envir.term_env env);
     val types = Vartab.dest (Envir.type_env env);
     val ts = map (Thm.cterm_of ctxt o Envir.norm_term env o #2 o #2) pairs;
-    val xs = map2 (curry (Thm.cterm_of ctxt o Var)) (map #1 pairs) (map Thm.typ_of_cterm ts);
-  in (map (fn (xi, (S, T)) => apply2 (Thm.ctyp_of ctxt) (TVar (xi, S), T)) types, xs ~~ ts) end;
+    val xs = map #1 pairs ~~ map Thm.typ_of_cterm ts;
+  in (map (fn (ai, (S, T)) => ((ai, S), Thm.ctyp_of ctxt T)) types, xs ~~ ts) end;
 
 in