improved tracing of rewrite rule application;
authorwenzelm
Fri, 30 Jan 1998 11:33:01 +0100
changeset 4589 543e867efe40
parent 4588 42bf47c1de1f
child 4590 9f8f931e0089
improved tracing of rewrite rule application;
src/Pure/thm.ML
--- a/src/Pure/thm.ML	Fri Jan 30 11:32:19 1998 +0100
+++ b/src/Pure/thm.ML	Fri Jan 30 11:33:01 1998 +0100
@@ -1800,14 +1800,17 @@
                            prop = prop',
                            maxidx = maxidx'}
             val (lhs',rhs') = Logic.dest_equals(Logic.strip_imp_concl prop')
-        in if perm andalso not(termless(rhs',lhs')) then None else
-           if unconditional
-           then (trace_thm false "Rewriting:" thm'; 
-                 Some(shyps', hyps', rhs', der'::ders))
-           else (trace_thm false "Trying to rewrite:" thm';
-                 case prover mss thm' of
-                   None       => (trace_thm false "FAILED" thm'; None)
-                 | Some(thm2) => check_conv(thm2,prop',ders))
+        in
+          if perm andalso not(termless(rhs',lhs')) then None
+          else
+           (trace_thm false "Applying instance of rewrite rule:" thm;
+            if unconditional
+            then (trace_thm false "Rewriting:" thm'; 
+                  Some(shyps', hyps', rhs', der'::ders))
+            else (trace_thm false "Trying to rewrite:" thm';
+                  case prover mss thm' of
+                    None       => (trace_thm false "FAILED" thm'; None)
+                  | Some(thm2) => check_conv(thm2,prop',ders)))
         end
 
       fun rews [] = None