# HG changeset patch # User wenzelm # Date 1570698267 -7200 # Node ID 37062fe191758c7e3fd7f052a85359e948a06410 # Parent dd675800469d3e6294ce1f0daa94613268997613 unused; diff -r dd675800469d -r 37062fe19175 src/Pure/logic.ML --- a/src/Pure/logic.ML Wed Oct 09 14:51:54 2019 +0000 +++ b/src/Pure/logic.ML Thu Oct 10 11:04:27 2019 +0200 @@ -62,7 +62,6 @@ constraints_map: (sort * typ) list, atyp_map: typ -> typ, map_atyps: typ -> typ, - map_atyps': typ -> typ, constraints: ((typ * class) * term) list, outer_constraints: (typ * class) list}; val unconstrainT: sort list -> term -> unconstrain_context * term @@ -355,7 +354,6 @@ constraints_map: (sort * typ) list, atyp_map: typ -> typ, map_atyps: typ -> typ, - map_atyps': typ -> typ, constraints: ((typ * class) * term) list, outer_constraints: (typ * class) list}; @@ -373,9 +371,6 @@ map2 (fn (_, S) => fn a => (S, TVar ((a, 0), S))) present names1 @ map2 (fn S => fn a => (S, TVar ((a, 0), S))) extra names2; - val present_map' = map (fn (T, T') => (Type.strip_sorts T', T)) present_map; - val constraints_map' = map (fn (S, T') => (Type.strip_sorts T', dummy_tfree S)) constraints_map; - fun atyp_map T = (case AList.lookup (op =) present_map T of SOME U => U @@ -384,16 +379,7 @@ SOME U => U | NONE => raise TYPE ("Dangling type variable ", [T], [prop]))); - fun atyp_map' T = - (case AList.lookup (op =) present_map' T of - SOME U => U - | NONE => - (case AList.lookup (op =) constraints_map' T of - SOME U => U - | NONE => raise TYPE ("Dangling type variable", [T], [prop]))); - val map_atyps = Term.map_atyps (Type.strip_sorts o atyp_map); - val map_atyps' = Term.map_atyps atyp_map'; val constraints = constraints_map |> maps (fn (_, T as TVar (ai, S)) => @@ -407,7 +393,6 @@ constraints_map = constraints_map, atyp_map = atyp_map, map_atyps = map_atyps, - map_atyps' = map_atyps', constraints = constraints, outer_constraints = outer_constraints}; val prop' = prop