dup_elim: improved error reporting;
authorwenzelm
Tue, 27 Aug 2002 11:04:00 +0200
changeset 13525 cafd1f98d658
parent 13524 604d0f3622d6
child 13526 9269275e5da6
dup_elim: improved error reporting;
src/Provers/classical.ML
--- a/src/Provers/classical.ML	Tue Aug 27 11:03:05 2002 +0200
+++ b/src/Provers/classical.ML	Tue Aug 27 11:04:00 2002 +0200
@@ -205,9 +205,9 @@
 fun dup_intr th = zero_var_indexes (th RS classical);
 
 fun dup_elim th =
-  (case try
-      (rule_by_tactic (TRYALL (etac revcut_rl)))
-      (th RSN (2, revcut_rl) |> assumption 2 |> Seq.hd) of
+  (case try (fn () =>
+    rule_by_tactic (TRYALL (etac revcut_rl))
+      (th RSN (2, revcut_rl) |> assumption 2 |> Seq.hd)) () of
     Some th' => th'
   | _ => error ("Bad format for elimination rule\n" ^ string_of_thm th));