tuned; avoided intermediate lists
authordesharna
Thu, 27 Apr 2023 11:46:11 +0200
changeset 77917 a1abcf46eb24
parent 77916 ce09ea4c0f93
child 77918 55b81d14a1b8
tuned; avoided intermediate lists
src/HOL/Tools/ATP/atp_proof.ML
--- a/src/HOL/Tools/ATP/atp_proof.ML	Thu Apr 27 11:17:53 2023 +0200
+++ b/src/HOL/Tools/ATP/atp_proof.ML	Thu Apr 27 11:46:11 2023 +0200
@@ -438,7 +438,7 @@
 
 fun is_same_formula comm subst (AQuant (q1, xs1, phi1)) (AQuant (q2, xs2, phi2)) =
     q1 = q2 andalso length xs1 = length xs2 andalso
-    is_same_formula comm ((map fst xs1 ~~ map fst xs2) @ subst) phi1 phi2
+    is_same_formula comm (map2 (fn (x1, _) => fn (x2, _) => (x1, x2)) xs1 xs2 @ subst) phi1 phi2
   | is_same_formula comm subst (AConn (c1, phis1)) (AConn (c2, phis2)) =
     c1 = c2 andalso length phis1 = length phis2 andalso
     forall (uncurry (is_same_formula comm subst)) (phis1 ~~ phis2)