tuned;
authorwenzelm
Wed, 03 Apr 2013 22:30:25 +0200
changeset 51608 9c01df6a9843
parent 51607 ee3398dfee9a
child 51609 0f26c787a7a4
tuned;
src/Pure/goal.ML
--- a/src/Pure/goal.ML	Wed Apr 03 22:05:24 2013 +0200
+++ b/src/Pure/goal.ML	Wed Apr 03 22:30:25 2013 +0200
@@ -95,10 +95,10 @@
    C
 *)
 fun check_finished ctxt th =
-  (case Thm.nprems_of th of
-    0 => th
-  | n => raise THM ("Proof failed.\n" ^
-      Pretty.string_of (Goal_Display.pretty_goal {main = true, limit = false} ctxt th), 0, [th]));
+  if Thm.no_prems th then th
+  else
+    raise THM ("Proof failed.\n" ^
+      Pretty.string_of (Goal_Display.pretty_goal {main = true, limit = false} ctxt th), 0, [th]);
 
 fun finish ctxt = check_finished ctxt #> conclude;
 
@@ -184,7 +184,7 @@
   Inttab.lookup_list (#3 (Synchronized.value forked_proofs)) id;
 
 fun reset_futures () =
-  Synchronized.change_result forked_proofs (fn (m, groups, tab) =>
+  Synchronized.change_result forked_proofs (fn (_, groups, _) =>
     (Future.forked_proofs := 0; (groups, (0, [], Inttab.empty))));
 
 fun shutdown_futures () =