Now catch ERROR exception thrown by find and friends
authorchaieb
Wed, 04 Feb 2009 11:31:05 +0000
changeset 29800 f73a68c9d810
parent 29792 c566b63ce76a
child 29801 67266b31cd46
Now catch ERROR exception thrown by find and friends
src/HOL/Tools/Groebner_Basis/groebner.ML
--- a/src/HOL/Tools/Groebner_Basis/groebner.ML	Tue Feb 03 18:34:49 2009 +0100
+++ b/src/HOL/Tools/Groebner_Basis/groebner.ML	Wed Feb 04 11:31:05 2009 +0000
@@ -712,7 +712,7 @@
 
 fun refute tm =
  if tm aconvc false_tm then assume_Trueprop tm else
-  let
+ ((let
    val (nths0,eths0) = List.partition (is_neg o concl) (HOLogic.conj_elims (assume_Trueprop tm))
    val  nths = filter (is_eq o dest_arg o concl) nths0
    val eths = filter (is_eq o concl) eths0
@@ -767,7 +767,7 @@
                         (equal_elim (arg_cong_rule cTrp (eqF_intr th4))
                    (reflexive l |> mk_object_eq))
    end
-  end
+  end) handle ERROR _ => raise CTERM ("Gorbner-refute: unable to refute",[tm]))
 
 fun ring tm =
  let