tuned Type.unify;
authorwenzelm
Tue, 18 Dec 2001 02:20:02 +0100
changeset 12530 c32d201d7c08
parent 12529 d99716a53f59
child 12531 adc39b100e9a
tuned Type.unify; do *not* declare TVar names as used;
src/Pure/Isar/proof_context.ML
--- a/src/Pure/Isar/proof_context.ML	Tue Dec 18 02:19:31 2001 +0100
+++ b/src/Pure/Isar/proof_context.ML	Tue Dec 18 02:20:02 2001 +0100
@@ -499,7 +499,7 @@
 
 fun unifyT ctxt (T, U) =
   let val maxidx = Int.max (Term.maxidx_of_typ T, Term.maxidx_of_typ U)
-  in #1 (Type.unify (Sign.tsig_of (sign_of ctxt)) maxidx Vartab.empty (T, U)) end;
+  in #1 (Type.unify (Sign.tsig_of (sign_of ctxt)) (Vartab.empty, maxidx) (T, U)) end;
 
 fun norm_term (ctxt as Context {binds, ...}) schematic =
   let
@@ -602,7 +602,6 @@
 
 val ins_used = foldl_term_types (fn t => foldl_atyps
   (fn (used, TFree (x, _)) => x ins_string used
-    | (used, TVar ((x, _), _)) => x ins_string used
     | (used, _) => used));
 
 val ins_occs = foldl_term_types (fn t => foldl_atyps