now rejects degenerate (looping) cases
authorpaulson
Mon, 06 Sep 2004 16:45:10 +0200
changeset 15183 66da80cad4a2
parent 15182 5cea84e10f3e
child 15184 d2c19aea17bc
now rejects degenerate (looping) cases
src/Provers/Arith/abel_cancel.ML
--- a/src/Provers/Arith/abel_cancel.ML	Mon Sep 06 15:57:58 2004 +0200
+++ b/src/Provers/Arith/abel_cancel.ML	Mon Sep 06 16:45:10 2004 +0200
@@ -166,6 +166,8 @@
        and rt' = cancelled rtms
 
        val rhs = rel$lt'$rt'
+       val _ = if lhs aconv rhs then raise Cancel  (*nothing to do*)
+                                     else ()
        val _ = if !trace then
                  tracing ("RHS = " ^ string_of_cterm (Thm.cterm_of sg rhs))
                else ()