src/Pure/type.ML
changeset 2617 b94dadf5b6be
parent 2604 605e54988d50
child 2672 85d7e800d754
equal deleted inserted replaced
2616:704b6c7432cf 2617:b94dadf5b6be
   325               Some U => (check_has_sort(tsig, U, S); U)
   325               Some U => (check_has_sort(tsig, U, S); U)
   326             | None => TVar(var)
   326             | None => TVar(var)
   327   in map_type_tvar inst end;
   327   in map_type_tvar inst end;
   328 
   328 
   329 (*Instantiation of type variables in terms *)
   329 (*Instantiation of type variables in terms *)
   330 fun inst_term_tvars(tsig, tye) = map_term_types (inst_typ_tvars(tsig, tye));
   330 fun inst_term_tvars (_,[]) t = t
       
   331   | inst_term_tvars arg    t = map_term_types (inst_typ_tvars arg) t;
   331 
   332 
   332 
   333 
   333 (* norm_typ *)
   334 (* norm_typ *)
   334 
   335 
   335 fun norm_typ (TySg {abbrs, ...}) ty =
   336 fun norm_typ (TySg {abbrs, ...}) ty =