src/Pure/Isar/code.ML
changeset 58635 010b610eb55d
parent 58559 d230e7075bcf
child 58663 93d177cd03e2
--- a/src/Pure/Isar/code.ML	Wed Oct 08 17:09:07 2014 +0200
+++ b/src/Pure/Isar/code.ML	Wed Oct 08 17:37:20 2014 +0200
@@ -545,7 +545,7 @@
       else bad_thm ("Projection mismatch: " ^ quote rep_const ^ " vs. " ^ quote rep');
     val _ = check_eqn thy { allow_nonlinear = false,
       allow_consts = false, allow_pats = false } thm (lhs, rhs);
-    val _ = if forall2 (fn T => fn (_, sort) => Sign.of_sort thy (T, sort)) Ts vs' then ()
+    val _ = if ListPair.all (fn (T, (_, sort)) => Sign.of_sort thy (T, sort)) (Ts, vs') then ()
       else error ("Type arguments do not satisfy sort constraints of abstype certificate.");
   in (thm, tyco) end;