src/Pure/Isar/attrib.ML
changeset 17184 3d80209e9a53
parent 17105 1b07a176a880
child 17221 6cd180204582
--- a/src/Pure/Isar/attrib.ML	Mon Aug 29 16:18:03 2005 +0200
+++ b/src/Pure/Isar/attrib.ML	Mon Aug 29 16:18:04 2005 +0200
@@ -338,18 +338,18 @@
     val external_insts''' = xs ~~ ts;
     val term_insts''' = internal_insts''' @ external_insts''';
     val thm''' = instantiate thy inferred external_insts''' thm'';
-  in
+
 
     (* assign internalized values *)
 
-    mixed_insts |> List.app (fn (arg, (xi, _)) =>
-      if is_tvar xi then
-        Args.assign (SOME (Args.Typ (the (assoc (type_insts''', xi))))) arg
-      else
-        Args.assign (SOME (Args.Term (the (assoc (term_insts''', xi))))) arg);
+    val _ =
+      mixed_insts |> List.app (fn (arg, (xi, _)) =>
+        if is_tvar xi then
+          Args.assign (SOME (Args.Typ (the (AList.lookup (op =) type_insts''' xi)))) arg
+        else
+          Args.assign (SOME (Args.Term (the (AList.lookup (op =) term_insts''' xi)))) arg);
 
-    (context, thm''' |> RuleCases.save thm)
-  end;
+  in (context, thm''' |> RuleCases.save thm) end;
 
 end;