Logic.is_all;
authorwenzelm
Mon, 23 Jun 2008 23:45:45 +0200
changeset 27332 94790a9620c3
parent 27331 5c66afff695e
child 27333 7095f775131a
Logic.is_all;
src/Pure/conv.ML
src/Pure/old_goals.ML
--- a/src/Pure/conv.ML	Mon Jun 23 23:45:44 2008 +0200
+++ b/src/Pure/conv.ML	Mon Jun 23 23:45:45 2008 +0200
@@ -133,7 +133,7 @@
 
 (*rewrite B in !!x1 ... xn. B*)
 fun params_conv n cv ctxt ct =
-  if n <> 0 andalso can Logic.dest_all (Thm.term_of ct)
+  if n <> 0 andalso Logic.is_all (Thm.term_of ct)
   then arg_conv (abs_conv (params_conv (n - 1) cv o #2) ctxt) ct
   else cv ctxt ct;
 
--- a/src/Pure/old_goals.ML	Mon Jun 23 23:45:44 2008 +0200
+++ b/src/Pure/old_goals.ML	Mon Jun 23 23:45:45 2008 +0200
@@ -155,7 +155,7 @@
       val _ = Term.no_dummy_patterns horn handle TERM (msg, _) => error msg;
       val (As, B) = Logic.strip_horn horn;
       val atoms = atomic andalso
-            forall (fn t => not (can Logic.dest_implies t orelse can Logic.dest_all t)) As;
+            forall (fn t => not (can Logic.dest_implies t orelse Logic.is_all t)) As;
       val (As,B) = if atoms then ([],horn) else (As,B);
       val cAs = map (cterm_of thy) As;
       val prems = map (rewrite_rule rths o Thm.forall_elim_vars 0 o Thm.assume) cAs;