minor performance tuning;
authorwenzelm
Wed, 13 Dec 2023 14:58:49 +0100
changeset 79257 d33ec0c3672e
parent 79256 4a97f2daf2c0
child 79258 479f31c4b367
minor performance tuning;
src/Pure/thm.ML
--- a/src/Pure/thm.ML	Mon Dec 11 22:08:43 2023 +0100
+++ b/src/Pure/thm.ML	Wed Dec 13 14:58:49 2023 +0100
@@ -2208,8 +2208,8 @@
 (* strip_apply f B A strips off all assumptions/parameters from A
    introduced by lifting over B, and applies f to remaining part of A*)
 fun strip_apply f =
-  let fun strip (Const ("Pure.imp", _) $ _  $ B1)
-                (Const ("Pure.imp", _) $ A2 $ B2) = Logic.mk_implies (A2, strip B1 B2)
+  let fun strip ((c as Const ("Pure.imp", _)) $ _  $ B1)
+                (Const ("Pure.imp", _) $ A2 $ B2) = c $ A2 $ strip B1 B2
         | strip ((c as Const ("Pure.all", _)) $ Abs (_, _, t1))
                 (      Const ("Pure.all", _)  $ Abs (a, T, t2)) = c $ Abs (a, T, strip t1 t2)
         | strip _ A = f A