                                                         PHASE RELATIONS AND PYRAMIDS

                                                                            MIGUEL N. WALSH
arXiv:2304.09792v1 [math.NT] 19 Apr 2023




                                                   Abstract. We develop tools to study the averaged Fourier uniformity
                                                   conjecture and extend its known range of validity to intervals of length
                                                   at least exppCplog Xq1{2 plog log Xq1{2 q.



                                                                           1. Introduction
                                             In this article we shall establish the following result.
                                           Theorem 1.1. Given 0 ă ρ ă 1 and η ą 0, there exists some C ą 0
                                           such that, for every exppCplog Xq1{2 plog log Xq1{2 q ď H ď X 1{2 and every
                                           complex-valued multiplicative function g with |g| ď 1 satisfying
                                                             ż 2X     ˇ                   ˇ
                                                                      ˇ ÿ                 ˇ
                                                                  sup ˇ        gpnqepαnqˇ dx ě ηHX,               (1.1)
                                                                      ˇ                   ˇ
                                                              X    α  ˇ                   ˇ
                                                                         xďnďx`H

                                           we have Dpg; CX 2 {H 2´ρ , Cq ď C.
                                             Here, we are writing Dpg; T, Qq for the ’pretentious’ distance [1]:
                                                                         ˜                          ¸1{2
                                                                            ÿ 1 ´ Repgppqpit χppqq
                                                        Dpg; T, Qq “ inf                                 ,
                                                                           pďT
                                                                                         p

                                           with the inﬁmum taken over all |t| ď T and all Dirichlet characters of
                                           modulus at most Q. In particular, Theorem 1.1 implies that (1.1) cannot
                                           hold for the Möbius and Liouville functions.
                                              Theorem 1.1 improves on estimates obtained in [5] and [6], where it was
                                           shown that for any ε ą 0 the result holds for intervals of length at least
                                           X ε and exppplog Xq5{8`ε q, respectively. The methods of this article should
                                           adapt to nilsequences, thus yielding corresponding progress on the higher
                                           uniformity conjecture. It is known that after passing to logarithmic averages,
                                           establishing this conjecture for intervals of length at least plog Xqε , for every
                                           ε ą 0, would imply both Chowla’s and Sarnak’s conjectures [6, 7].
                                              We will proceed through the same general framework as in previous ar-
                                           ticles [5, 6, 8], where it is shown that a function g satisfying (1.1), for the
                                           corresponding values of H, must correlate with n ÞÑ epan{qqn2πiT on many
                                           of these intervals and for certain ﬁxed choices of T and q. The results of
                                           [2, 3, 4] then imply that g must behave globally like a function of this form,
                                           yielding the desired conclusion.
                                              To obtain this local correlation one exploits Elliott’s inequality and the
                                           large sieve (see [5, 6]), which combined guarantee that under (1.1) we may
                                           associate to many intervals I Ď rX, 2Xs a frequency αI P R in such a
                                           way that we may ﬁnd many quadruples consisting of a pair of intervals
                                                                                      1
I “ rx, x ` Hs, J “ ry, y ` Hs and a pair of primes p, q ď H, such that
|x{p ´ y{q| is small and pαI close to qαJ mod Q, for some large integer Q.
The problem then becomes that of showing that these relations force αI to
be close mod 1 to mqI ` Tx for certain mI , q P N and T P R, which would
then imply the desired local correlation.
   To accomplish this we begin in Section 2 by studying ’pre-paths’ consisting
of a sequence of elements α1 , . . . , αk`1 P Z{QZ and primes p1 , . . . , pk , q1 , . . . , qk
with pi αi close to qi αi`1 , for every 1 ď i ď k. Building on ideas of [8], we
show how to construct certain ’pyramids’ of frequencies that help relate the
elements of´the sequence and,   ¯ in particular, a ’top’ element α such that αi
             śi´1 śk
is close to     j“1 pj   j“i qj α, for every 1 ď i ď k ` 1, with an error that
depends on the relative sizes of the primes involved.
   After developing our general setting further in Section 3, we proceed in
Section 4 to show how the additional ’physical’ information that |x{p ´ y{q|
is small can be used to obtain uniform bounds for the approximations of
the previous paragraph. In particular, the conclusions attained would work
equally well for H in the poly-logarithmic range and seem likely to be useful
tools for future work on these problems.
   The purpose of Section 5 is then to show that for many of the intervals
we are studying the corresponding frequencies are connected by paths of the
above form. Some connectedness of this type seems necessary in order to be
able to ﬁnd a ﬁxed choice of q and T that works for many of these intervals
and here is where the required lower bound on H in Theorem 1.1 emerges.
The reason for it is that when studying paths of length k, one is naturally led
to some losses of the order of C k in the bounds, for some absolute constant
C ą 1. Such losses become problematic once C k is comparable to H and
                                                        log X
since one needs to consider paths of length around log      H in order to be able
to have enough of the intervals connected with each other, we end up in
that situation once H goes below exppCplog Xq1{2 q (essentially the same
observation can already be found in [5, 6]). In fact, due to the density of
prime numbers one is also led to some additional factors of the order of
plog Hqk , which is the reason for the exact lower bound on H in Theorem
1.1.
   Finally, we complete the proof in Section 6. Once enough intervals have
been connected to a ﬁxed interval I0 , one can relatively easy use the prop-
erties of the ’pyramids’ obtained in the ﬁrst sections to show that a ﬁxed
choice of q and T works for many of the intervals.
   We notice that the methods of this article end up using auxiliary phases
as in [8], but also the advantage of working with higher moduli as in [5, 6].
As such, they can be seen as a middle point between both arguments. On
the other hand, an outcome of this article is that neither the contagion
arguments of [8] nor the mixing lemmas of [5, 6] end up being necessary to
cover the natural range of exppplog Xq1{2`ε q. However, such tools may very
well end up being useful when trying to lower the value of H further.

Notation 1.2. We will write X À Y or X “ OpY q to mean that there
is some absolute constant C with |X| ď CY and X „ Y if both X À Y
and Y À X hold. If the implicit constants depend on some additional
                                   2
parameters, we shall use a subscript to indicate this. For a ﬁnite set S we
write |S| for its cardinality. We abbreviate epxq :“ e2πix and given Q P N
we write } ¨ }Q for the distance to 0 in R{QZ.

                                      2. Pyramids
   We begin with the following extension of [8, Lemma 2.1].
Lemma 2.1. Let ǫ1 , ǫ2 ą 0 and let Q P N. Let α1 , α2 P R{QZ and let p1 , p2
be distinct primes not dividing Q with }p1 α1 ´ p2 α2 }Q ă ǫ1 ` ǫ2 . Then, there
                                      ǫ
exists α P R{QZ with }pi α ´ αj }Q ă pjj if i ‰ j.

Proof. For ti, ju “ t1, 2u, let αpiq P R{QZ be such that pi αpiq “ αj . Adding
integer multiples of Q{pi to αpiq we may assume that }αp1q ´ αp2q }Q ď 2pQ1 p2 .
On the other hand, we have by hypothesis that }p1 p2 pαp1q ´αp2q q}Q ă ǫ1 `ǫ2 .
Combining both estimates we see that it must in fact be }αp1q ´ αp2q }Q ă
ǫ1 `ǫ2               p1q ´ ǫ2 pαp1q ´ αp2q q we obtain the result.
 p1 p2 . Taking α “ α       ǫ1 `ǫ2                                           

   Lemma 2.1 immediately implies the following corollary.
Lemma 2.2. Let ǫj , ǫ1j ą 0 for every 1 ď j ď k and let Q P N. Let
  p1q            p1q        p0q         p0q
pα1 , . . . , αk`1 q and pα2 , . . . , αk`1 q be tuples of elements of R{QZ and let
p1 , . . . , pk , q1 , . . . , qk be a sequence of distinct primes not dividing Q such
                                                      p1q     p0q                 p1q
that, for every 1 ď j ď k, we have }qj αj`1 ´ αj`1 }Q ă ǫj and }pj αj ´
 p0q                                                 p2q            p2q
αj`1 }Q ă ǫ1j . Then, there exists a tuple pα1 , . . . , αk q of elements of R{QZ
                                                        p2q         p1q             ǫ                   p2q
such that, for every 1 ď j ď k, we have }pj αj ´ αj`1 }Q ă qjj and }qj αj ´
 p1q        ǫ1
αj }Q ă pjj .

  This can be iterated in the following way: after we have used sets of fre-
           pjq          pjq        pj´1q            pj´1q
quencies pα1 , . . . , αk`2´j q, pα2     , . . . , αk`2´j q and primes p1 , . . . , pk`1´j ,
                                                               pj`1q                    pj`1q
qj , . . . , qk not dividing Q to obtain a new set pα1                    , . . . , αk`1´j q, we can
                                          pj`1q            pj`1q            pjq             pjq
then use the sets of frequencies pα1              , . . . , αk`1´j q, pα2 , . . . , αk`1´j q and
                                                                          pj`2q                 pj`2q
primes p1 , . . . , pk´j , qj`1 , . . . , qk to obtain a new set pα1              , . . . , αk´j q. We
                                                              pjq             pjq
thus arrive, for every 1 ď j ď k ` 1, at a tuple pα1 , . . . , αk`2´j q of elements
of R{QZ. It will be convenient to name these objects.
                                                                                                 p1q          p1q
Definition 2.3. A pre-path mod Q is a choice of (ordered) tuples pα1 , . . . , αk`1 q,
  p0q            p0q
pα2 , . . . , αk`1 q of elements of R{QZ, real numbers ǫ1 , . . . , ǫk , ǫ11 , . . . , ǫ1k ą 0
and distinct primes p1 , . . . , pk , q1 , . . . , qk not dividing Q satisfying the hy-
                                                                             pjq
pothesis of Lemma 2.2. We say a corresponding sequence pα1 q1ďjďk`1
obtained as in the previous paragraph is a pyramid associated with this pre-
                    pk`1q
path. We call α1           the top element of the pyramid and k the length of the
pre-path.
   The following will be our main input for the study of pre-paths.

                                              3
Lemma 2.4. Let 0 ă ǫ ă 1. Given a pre-path of length k with ǫi “ ǫ1i “ ǫ
                                                                        pjq
for every 1 ď i ď k, we have that any associated pyramid pα1 q1ďjďk`1
satisfies
                                 ¨                ˛´1 ¨                ˛´1
                                   tpj´1q{2u`1          rpj´1q{2s
               pj`1q    pjq
                                       ź                   ź
          }qj α1     ´ α1 }Q ă ǫ ˝             pi ‚ ˝             qj´i ‚ ,
                                          i“1                  i“1

for every 1 ď j ď k.
Proof. We will proceed by induction on the length of the pre-path. If k “ 1
the claim is immediate from Lemma 2.2, so we let k ě 2 and assume the
result has already been established for all pre-paths of length at most k ´ 1.
                                                         p1q      p1q    p0q     p0q
If j ď k ´ 1 observe that the parameters pα1 , . . . , αj`1 q, pα2 , . . . , αj`1 q,
p1 , . . . , pj , q1 , . . . , qj and ǫ1 “ ǫ11 “ . . . “ ǫj “ ǫ1j “ ǫ form a pre-path
                      piq
of length j and pα1 q1ďiďj`1 is a pyramid for this pre-path, so the result
follows by induction in this case. We thus only need to treat j “ k. By
Lemma 2.2 we know that
                                              pkq    pk´1q
                         pk`1q    pkq    }p1 α1 ´ α2       }Q
                    }qk α1     ´ α1 }Q ď                      .                     (2.1)
                                                  p1
Here we are using that, after iterating Lemma 2.2, qk and p1 are the primes
                             pk`1q           pkq         pkq
that end up relating α1             with α1 and α2 , respectively. Notice now
                                         p1q         p1q     p0q      p0q
that the ’inverted’ parameters pαk , . . . , α1 q, pαk , . . . , α2 q, qk´1 , . . . , q1 ,
                                                                          pjq
pk´1 , . . . , p1 and ǫ form a pre-path of length k ´ 1 and that pαk`1´j q1ďjďk
is a pyramid for this pre-path (notice that the roles of the primes pi and qi
have also been inverted). It thus follows by induction that the right-hand
side of (2.1) is
                          ¨            ˛´1 ¨                        ˛´1
                            tk{2u             rk{2´1s
                        ǫ ˝  ź                   ź
                    ă             qk´i ‚ ˝             ppkq´pk´1´iq ‚ .
                       p1 i“1                    i“1

The result then follows upon rearranging.                                              

                               3. General setting
   In this section we will invoke some results from [5] and [6] that will serve
as the setting for our approach and will also establish a regularity estimate
that will be useful in the rest of the article.
   As mentioned in the introduction, once we have shown that g correlates
with n ÞÑ epan{qqn2πiT on many of the intervals and for a certain ﬁxed choice
of q and T , Theorem 1.1 will then follow from the results of Matömaki and
Radziwill [2, 3, 4]. More precisely, we will be using the following reduction
which follows from the last part of [6, Section 6] and relies on the power
saving bounds of [3].
Proposition 3.1. Let g be a complex-valued multiplicative function with
|g| ď 1. Let ρ ą 0 be sufficiently small, C ą 0 sufficiently large with respect
to ρ and X ě 1 sufficiently large with respect to ρ and C. Let H be as in The-
orem 1.1. Also, let T P R and q P N satisfy |T | ď CX 2 {H 2´ρ and q ď CH ρ .
                                       4
Assume that for ě X{H 1`ρ disjoint intervals IřĎ rX, 2Xs of length H ˚ P
rH 1´ρ , Hs we can find some integer aI with | nPI gpnqn2πiT epaI n{qq| ě
cH ˚ , for some c ą 0. Then Dpg; BX 2 {H 2´ρ , Bq “ Oρ,C,c p1q for some
B “ Oρ,C,c p1q.
  Our task is then reduced to establishing the following estimate.
Theorem 3.2. Let g, ρ, η and H be as in Theorem 1.1. Then, if C is suffi-
ciently large with respect to η and ρ and X is sufficiently large with respect
to C, we can find T P R and q P N with |T | ď CX 2 {H 2´ρ and q ď CH ρ
such that, for ě HX                                        ˚           ρ
                     1`ρ disjoint intervals Ix “ rx, x ` H s Ď rX{H , 2Xs of

length H ˚ P rH 1´ρ , Hs there exists an integer ax with | nPIx gpnqep pn´xqax
                                                          ř
                                                                          q    `
pn´xqT
   x   q| ě H ˚ {C.
   Using Theorem 3.2, the Taylor expansion of pn{xq2πiT and the pigeonhole
principle, we can then locate an appropriate dyadic interval in rX{H ρ , 2Xs
where the hypothesis of Proposition 3.1 are satisﬁed, after adjusting X, C,
H ˚ and ρ if necessary. Thus, in order to prove Theorem 1.1, it will suﬃce
to establish Theorem 3.2.
Definition 3.3. Given R ą 1, c ą 0 and an interval I Ď R, we say a
ﬁnite set J Ď I ˆ R is a pc, Rq-conﬁguration if |J | ě c|I|{R and the ﬁrst
coordinates are R-separated points in I (i.e. |x ´ y| ě R if x ‰ y).
   If g satisﬁes (1.1), then one can use Elliott’s inequality and the large
sieve to obtain a conﬁguration as in Deﬁnition 3.3 for which its elements are
highly related to each other through a set of primes whose size is a small
power of H. Concretely, we have the following estimate from [5].
Lemma 3.4 ([5], Proposition 3.2). Let the notation and assumptions be as
in Theorem 3.2. Let c0 , ε ą 0 be sufficiently small with respect to η and ρ and
X sufficiently large with respect to c0 and ε. Then, there exists a pc0 , H{Kq-
                                                                      2
configuration J Ď rX{p10Kq, 2X{Ks ˆ R, for some K P rH ε , H ε s, such
that for every px, αq P J we have
                          ˇ                       ˇ
                          ˇ       ÿ               ˇ
                          ˇ                       ˇ
                          ˇ
                          ˇ             gpnqepαnqˇˇ Á H{K,
                          ˇxďnďx`H{K              ˇ
                                2
                                                                             ´      ¯2
                  1           ε           1
and a pair P, P Áρ,η H with P P “ K such that, for Áρ,η H log P           X     P

choices of px1 , α1 q, px2 , α2 q P J and p, q primes in rP, 2P s, we
                                                                   ´ have   ¯ |x1 {p ´
                                                                      P 1
x2 {q| Àρ,η H{pP Kq and }pα1 ´ qα2 }p1 Àρ,η P K{H for Áρ,η log P 1 primes
p1 P rP 1 , 2P 1 s. Furthermore, there exist disjoint sets P1 , P2 Ď rP, 2P s of size
Áρ,η logP P such that the same claim holds (up to the implicit constants) if
we additionally require pp, qq P P1 ˆ P2 .
Proof. The proof proceeds exactly as in Proposition 3.2 of [5], except for the
last claim which simply follows from the pigeonhole principle.              
Notation 3.5. For the rest of this article we will work with a speciﬁc
of η, ρ, X and H as in Theorem 3.2 and of c0 , ε, P, P 1 , K, J , P1 and P2 as
provided in Lemma 3.4. All implicit constants will be allowed to depend on
η and ρ, but will be uniform in our choice of X and H.
                                     5
   We will require the following deﬁnition in order to study the properties
of pre-paths arising from the conﬁguration J .
Definition 3.6. Let Q P N and J 1 Ď J . We deﬁne a path mod Q
of length k in J 1 to be a pre-path mod Q of length k with parameters
                                                                                     p1q k`1
ǫ1 , ǫ11 , . . . , ǫk , ǫ1k À P K{H, p1 , . . . , pk , q1 , . . . , qk P rP, 2P s, pαi qi“1  Ď R{QZ
                                                                              1                   p1q
and a set of elements px1 , α1 q, . . . , pxk`1 , αk`1 q P J such that αi ” αi
(mod Q) for every 1 ď i ď k ` 1 and xi pqii “ xi`1 ` OpH{Kq for ev-
ery 1 ď i ď k. We then say px1 , α1 q and pxk`1 , αk`1 q are connected by
a path mod Q of length k in J 1 . We call px1 , α1 q the initial point and
pxk`1 , αk`1 q the end point of the path. We additionally say the path is split
if p1 , . . . , pk P P1 and q1 , . . . , qk P P2 .
Notation 3.7. Given a path ℓ mod Q of length k consisting of elements
px1 , α1 q, . . . , pxk`1 , αk`1 q and primes pp1 , . . . , pk , q1 , . . . , qk q we will some-
times need to consider the ’inverted’ path ℓ´1 having initial point pxk`1 , αk`1 q
and end point px1 , α1 q, with the corresponding ordered set of primes given by
pqk , . . . , q1 , pk , . . . , p1 q. Notice that if α is the top element of a pyramid asso-
ciated to ℓ, then it is also the top element of a pyramid associated with ℓ´1 .
Also, suppose we are given an additional path ℓ1 mod Q of length m consist-
ing of elements py1 , β1 q, . . . , pym`1 , βm`1 q. If py1 , β1 q “ pxk`1 , αk`1 q, we may
consider the combined path ℓ ` ℓ1 of length k ` m with initial point px1 , α1 q
                                                              pjq
and endpoint pym`1 , βm`1 q. Notice that if pα1 q1ďjďk`1 is a pyramid asso-
                                                                  pjq                  pjq    pjq
ciated to ℓ, then ℓ ` ℓ1 will admit a pyramid pβ1 qk`m`1              j“1       with α1 “ β1
for every 1 ď j ď k ` 1. Finally, we observe that pℓ ` ℓ1 q´1 “ pℓ1 q´1 ` ℓ´1 .
Definition 3.8. Let Q P N and c ą 0. We say J 1 Ď J is a pc, Qq-regular
                                                                               2
subset of J if |J 1 | ě c|J | and every px, αq P J 1 is connected to ě c plogP P q2
other elements of J 1 by a split path mod Q of length 1.
   We ﬁnish this section with the following combinatorial estimate which
plays the role of the Blakley-Roy inequality in [5, 6] and turns out to be
rather advantageous in practice.
                                                                     1
Lemma 3.9. There exists c „ 1 such that, for Á logP P 1 primes p1 P rP 1 , 2P 1 s,
we can find a pc, p1 q-regular subset Jp1 of J .
Proof. For each prime p1 P rP 1 , 2P 1 s let Ap1 be the number of quadruples
ppx1 , α1 q, px2 , α2 q, p, qq P J ˆ J ˆ P1 ˆ P2 with }pα1 ´ qα2 }p1 À P K{H and
|x1 {p ´ x2 {q| À H{pP Kq. By construction of J , we know that
                                                    ˙2
                                                         P1
                                             ˆ
                               ÿ           X    P
                                     Ap1 Á                     .
                            1   1  1
                                           H log P     log P 1
                          p PrP ,2P s
                                                                                        1
By the prime number theorem, this means that we can ﬁnd Á logP P 1 primes
                                    ´     ¯2
p1 P rP 1 , 2P 1 s with Ap1 ě c1 X     P
                                  H log P    , for some c1 Á 1. In particular, we
                ´        ¯2
             X       P
have ě c1 H        log P    paths mod p1 of length 1 in J .
  Fix now such a choice of p1 . Let δ ą 0 be a suﬃciently small constant
and let J1 be the set of elements of J that are connected by a path mod p1
                                      6
                                    2
of length 1 to at most δ plogP P q2 elements of J . Recursively, let Jk be the set
                     Ťk´1
of elements of J z j“1     Jj that are connected by a path mod p1 of length 1
                   2                     Ťk´1
to at most δ plogP P q2 elements of J z j“1    Jj . Let k0 be the largest integer
such that Jk0 is nonempty (which exists, since J is ﬁnite). Clearly, this
means that every element of Jp1 :“ J z kj“1
                                           Ť 0
                                                   Jj is connected by a path mod
                                            2
p1 of length 1 to at least δ plogP P q2 elements of Jp1 . Furthermore, since given
px1 , α1 q, px2 , α2 q P J there is at most one choice of pp, qq P rP, 2P s with
|x1 {p ´ x2 {q| À H{pP Kq, the number of paths mod p1 of length 1 in Jp1 is
at least
                                         k0
                P2 X             P2     ÿ                         P2 X
          c1             ´ 2δ               |J j | ě pc1 ´ 4δq             .
             plog P q2 H      plog P q2 j“1                    plog P q2 H
                                                                             2
Since every element of Jp1 belongs to at most À plogP P q2 paths mod p1 of
length 1, if δ is suﬃciently small it must be |Jp1 | Á X{H. The result
follows.                                                                


                                        4. Uniformity
   In this section we will boost the results of Section 2 by exploiting the
additional information that paths have on the relative sizes of the primes
involved. We begin with the following observation in this direction.

Lemma 4.1. There exists c Á 1 such that, given a path mod Q in J of
length
 śm       k ď c logpX{Hq consisting of primes p1 , . . . , pk , q1 , . . . , qk , we have
      q i
śmi“1
      pi
          „ 1 for every 1 ď m ď k.
  i“1

Proof. Fix the path and a choice of 1 ď m ď k. Since for each 1 ď i ď m we
have that there is some pair xi , xi`1 in rX{p10Kq, 2X{Ks with pqi {pi qxi “
xi`1 ` OpH{Kq, we have that
                                           ˆ ˙
                           qi     xi`1       H
                              “        `O       .
                           pi      xi        X
In particular,
                         m                  m ˆ             ˆ       ˙˙
                         ź qi               ź   xi`1            H
                                        “              `O                .
                         i“1
                               pi           i“1
                                                  xi            X
We expand the product in the right into 2m terms, the ﬁrst    ś of which isk
xm`1 {x1 „ 1. Since for every S Ď t1, . . . , mu it is clearly iPS xxi`1
                                                                      i
                                                                         ÀB
with B „ 1, if we choose c Á 1 suﬃciently small in the statement of the
current lemma we see that the contribution of the remaining terms is at
most
                                    H
                             À p2Bqk À 1.
                                    X
                    śm
                    i“1 i q
This proves that śm        À 1, while the reverse inequality follows from con-
                    i“1 pi
sidering the ’inverted’ path and applying the same reasoning.               
                                       7
Corollary 4.2. Let the hypothesis be as in Lemma 4.1. Let 1 ď i ă j ď
k ` 1. If pxi , αi q, pxj , αj q are ith and jth elements of the path, then
                          j´1
                          ź
                    |xi         qt {pt ´ xj | “ Oppj ´ iqH{Kq.
                          t“i
Proof. This follows immediately upon iterating the relation xt`1 “ xt qt {pt `
OpH{Kq and using Lemma 4.1.                                                  
  We now insert this information into our previous estimate on pre-paths.
Lemma 4.3. Let the hypothesis be as in Lemma 4.1. Then, for every pyra-
      pjq
mid pα1 q1ďjďk`1 associated to the path and every 2 ď j ď k ` 1 and
1 ď m ă j, we have
                  ˜ j´1 ¸
                    ź      pjq    pmq      K     1
                }      qi α1 ´ α1 }Q À k śm´1 .
                   i“m
                                           H i“1 qi
Proof. By considering shorter paths inside the original path, it will suﬃce
                              pjq
to cover the case in which α1 is the top element of a pyramid associated
                                                                     pt`1q
to a path of length j ´ 1. For every m ď t ď j ´ 1 we have that qt α1      ”
  ptq
α1 ` ct pmod Qq, where by Lemma 2.4 and Lemma 4.1 we know that ct
can be taken to be a real number satisfying
                                                tpt´1q{2u
                 ˜       ¸
                   t´1
                   ź          PK        1          ź              K
             |ct       qi | À                             qi {pi À .
                   i“1
                               H  p tpt´1q{2u`1    i“1
                                                                  H
In particular,                  ˜              ¸
                                    t´1
                                    ź K      1
                          |ct            śm´1 .
                                          qi       |À
                           i“m
                                      H i“1 qi
                                   ´ś       ¯        ´ś       ¯
                                      j´1      pjq      j´2     pj´1q
The result then follows evaluating        q
                                      i“m i   α1   “    i“m i pα1
                                                            q         `
cj´1 q recursively.                                                   
  This, in turn, leads to the following bound.
Lemma 4.4. Let the hypothesis be as in Lemma 4.1. Then
                 ˜j´1          ¸
                          k
                  ź ź            pk`1q    p1q     K
               }      pi     qi α1     ´ αj }Q À k ,
                  i“1    i“j
                                                  H
for every 1 ď j ď k ` 1.
Proof. By Lemma 4.3 we know that
                ˜       ¸
                   k
                  ź       pk`1q    pjq     K  1
              }       qi α1     ´ α1 }Q À k śj´1 .
                  i“j
                                           H i“1 qi
                                                         p1q     p1q
Considering the ’inverted’ path that goes from αj to α1                and applying
Lemma 4.3 again, we also see that
                       ˜j´1 ¸
                         ź       pjq   p1q      K
                     }       pi α1 ´ αj }Q À k .
                         i“1
                                                H
The result then follows from the triangle inequality and Lemma 4.1.              
                                     8
                                       5. Connectedness
   The purpose of this section is to show that a signiﬁcant proportion of the
elements of J can be connected with each other through a path of reasonable
length. Our ﬁrst observation is that once the initial point of a path of short
length is ﬁxed, there are only a few ways of reaching the same end point.
                                       log Xqq
Lemma 5.1. Let 1 ď k ď logpX{pHB2 logp2P q     for some sufficiently large con-
stant B „ 1. Then, for each pair px, αq, py, βq P J , there are at most p2kq!
paths mod 1 of length k that connect them.
Proof. It will suﬃce to show that if px, αq, py, βq P J are connected by two
paths consisting of primes tp1 , . . . , pk , q1 , . . . , qk u and tp11 , . . . , p1k , q11 , . . . , qk1 u,
respectively, then these two sets of primes must coincide. Let us proceed by
contradiction. By Corollary 4.2 we know that
                           ˇ˜           ¸           ˇ
                               k
                           ˇ ź      qi              ˇ kH
                                          x   ´   y ˇÀ          .
                           ˇ                        ˇ
                                   p                        K
                           ˇ
                           ˇ
                              i“1     i             ˇ
Similarly, considering the other path and using Lemma 4.1 we see that we
must also have            ˇ˜        ¸       ˇ
                              k   1
                          ˇ ź   p i
                                            ˇ kH
                                      y ´ x ˇÀ   .
                          ˇ                 ˇ
                          ˇ i“1 qi1            K
                          ˇ
                                            ˇ
Combining both estimates using Lemma 4.1 again and the triangle inequal-
ity, we obtain         ˇ                 ˇ
                         k      k
                       ˇź   qi ź p1i     ˇ kH
                                      ´ 1ˇÀ   .                    (5.1)
                       ˇ                 ˇ
                                    1
                       ˇi“1 pi i“1 qi
                       ˇ
                                         ˇ  X
Since the primes in each path are all distinct by deﬁnition and the paths do
not consist of exactly the same primes, the left-hand side cannot be 0. But
this means it must have size at least p2P q´2k . The result then follows from
our size hypothesis on k.                                                   
   We will be needing the following bound from [6].
Lemma 5.2 ([6], Lemma 6.1). Let r P N, A ě 1 and P0 , N ě 3. Then,
the number of 2r-tuples of primes pp1,1 , . . . , p1,r , p2,1 , . . . , p2,r q Ď rP0 , 2P0 s2r
satisfying             ˇ                      ˇ
                         r           r
                       ˇź           ź         ˇ     p2P0 qr
                            p     ´     p 2,i ˇ ď A
                       ˇ                      ˇ
                              1,i
                                                       N
                       ˇ
                       ˇi“1         i“1
                                              ˇ
is bounded by
                                                           p2P0 qr
                                                       ˆ             ˙
                                          2        r
                                 À Ar! p2P0 q                      `1 .
                                                             N
   The use of this lemma is that it will allow us to assume that no pair of
paths mod 1 of reasonable length that connect the same points share any
primes in common. Essentially the same argument was already used in [5, 6].
Precisely, we have the following bound on the number of exceptions.
Corollary 5.3. Let px, αq P J and let k be as in Lemma 4.1. Then, the
number of pairs of split paths mod 1 of length k with initial point px, αq,
                                   9
sharing the same end point and having at least one prime in common is
bounded by
                                2k
                                   ˆ                ˙
                         2 p2P q     kH      2k´1
                  À p2kq!               p2P q     `1 .
                            log P     X
Proof. Let pp1 , . . . , pk , q1 , . . . , qk q and pp11 , . . . , p1k , q11 , . . . , qk1 q be the sets of
distincts primes corresponding to two paths with initial point px, αq and
common end point py, βq, for some py, βq P J . Using Corollary 4.2 as in the
proof of Lemma 5.1 we obtain (5.1), which we may rewrite as
                           ˇ                             ˇ
                           ˇź k               źk         ˇ kH
                                        1              1ˇ
                           ˇ q i pi ´             pi q i ˇ À      p2P q2k .
                           ˇ
                           ˇ
                             i“1              i“1
                                                         ˇ   X
Since P1 and P2 are disjoint and the paths share at least a prime in com-
mon, we can ﬁnd a prime appearing in both products on the left-hand side.
                                                                                     X
Factoring it out and applying Lemma 5.2 with r “ 2k ´ 1 and N “ kH                       , we
see that the ordered tuple of 4k ´ 2 remaining primes belongs to a set S of
size                                                     ˆ                 ˙
                                              2     2k´1 kH         2k´1
                               À p2k ´ 1q! p2P q               p2P q     `1 .
                                                            X
The result follows observing that, for each such element of S, there are at
most p2kq2 logP P choices of ordered sets of primes pp1 , . . . , pk , q1 , . . . , qk q and
pp11 , . . . , p1k , q11 , . . . , qk1 q that can lead to it in the above manner.           
   We now come to the main estimate of this section, which shows that
a large number of elements py, βq P J can be connected to a ﬁxed element
px0 , α0 q P J through two diﬀerent paths of small length. In the next section,
these two paths will be combined to a single path going through py, βq and
having px0 , α0 q as both its initial and end point.
                                        log Xqq
Lemma 5.4. Let k0 “ t logpX{pHB  2 logp2P q     u for some sufficiently large B „ 1.
Fix δ ą 0. Assume ε ą 0 in Lemma 3.4 is sufficiently small with respect to
δ, H ě exppCplog Xq1{2 plog log Xq1{2 q with C sufficiently large with respect
to δ and ε and X is sufficiently large with respect to δ, ε and C. Then,
there exist τ „ 1, px0 , α0 q P J and J0 Ď J with |J0 | Á HX           1`δ such that
the following holds. For every py, βq P J0 there exists some Qy which is
                           1
the product of Á τ k0 logP P 1 different primes in rP 1 , 2P 1 s and such that there
are two split paths mod Qy of length k0 ` 2 connecting px0 , α0 q with py, βq.
Furthermore, the two paths share no prime in common.
Proof. During the proof we will let c „ 1 denote a constant that may
change at each occurrence. By Lemma 3.9 and the pigeonhole principle,
                                                                         1
we may locate some px0 , α0 q P J that belongs to Jp1 for Á logP P 1 primes
p1 P rP 1 , 2P 1 s. By regularity of Jp1 this means that for each such p1 there
             ´      ¯2k0 `4
are Á ck0 logP P            split paths mod p1 of length k0 ` 2 in Jp1 with initial
point px0 , α0 q.
                                        ´    ¯2k0 `4
   Since there are at most ď D k0 logP P              such paths mod 1 in J for
                                                     ´    ¯2k0 `4
some D „ 1, we conclude that there are Á ck0 logP P               split paths mod
                                          10
1 of length k0 ` 2 with initial point px0 , α0 q that are also split paths mod
                  1
p1 for Á ck0 logP P 1 choices of p1 P rP 1 , 2P 1 s (which depend on each path). In
particular, this means they are split paths mod Q, where Q is the product
of such primes. Write R for this set of paths.
   Write Ry for the paths in R that have endpoint py, βq. By construction of
R and the Cauchy-Schwarz inequality, we see that there must be Á ck0 |Ry |2
pairs of paths in Ry such that both paths are split paths mod p1 for Á
         1
ck0 logP P 1 primes p1 P rP 1 , 2P 1 s in common. In particular, they will both be
split paths mod Q, with Q the product of these primes. It follows that the
number of pairs of paths in R having the same endpoint and with both being
                                      1
split paths mod p1 for Á ck0 logP P 1 primes p1 P rP 1 , 2P 1 s is, by Cauchy-Schwarz,
at least
                                                          ˙4k0 `8
                                |R|2 H
                                                   ˆ
                                               H      P
                        Á ck0            Á ck0                     .
                                  X            X log P
Since by our hypothesis on ε, C and X we have that
                c´k0 p2pk0 ` 2qq!2 k0 plog P q4k0 `7 plog Xq ă P 1{2 ,
say, it also follows from Corollary 5.3 and our choice of k0 that at least half
of these pairs of paths, say, do not share any primes from rP, 2P s in common.
   Let now py, βq P J . If ℓ is a path mod 1 in Ry , it can be written as
ℓ0 ` ℓ1 , where ℓ0 is a path mod 1 of length´k0 and  ¯ ℓ1 is a path mod 1 of
                                                            4
length 2 with end point py, βq. There are À logP P    choices of ℓ1 and each
such choice ﬁxes the end point of ℓ0 . On the other hand, by Lemma 5.1 we
know that there are at most p2k0 q! choices of ℓ0 with the same endpoint.
                                                                      ´     ¯8
We thus conclude that py, βq is the common endpoint of À p2k0 q!2 logP P
of the pairs of paths we have constructed and therefore, by our lower bound
on |R| and our choice of k0 , there are
                               ˙´8
          ck0 |R|2 H                    ck0
                       ˆ
                           P                     X
     Á         2
                                   Á                    P ´4 plog P q´4k0 ,
        p2k0 q!   X      log P               2
                                      p2k0 q! Hplog Xq2
diﬀerent elements py, βq P J that are connected to px0 , α0 q by a pair of paths
of the desired form. The result then follows, since
                     c´k0 p2k0 q!2 P 4 plog P q4k0 plog Xq2 ă H δ ,
under our hypothesis on ε, H and X.                                                

                     6. Creating a global frequency
  In this section we conclude the proof of Theorem 1.1. We begin by ﬁnding
choices of Ty and qy that work for each py, βq P J0 and then deduce that a
common choice of T and q works for many of these elements.
Proposition 6.1. Let the notation be as in Lemma 5.4. Then, for every
py, βq P J0 there exists some Ty P R with |Ty | À X 2 {H 2´δ such that
                           ay      Ty
                    α0 ”      Qy `    ` OpH δ´1 q pmod Qy q,                    (6.1)
                           dy      x0
                                       11
and
                                by      Ty
                         β”        Qy `    ` OpH 2δ´1 q pmod Qy q,                                   (6.2)
                                dy      y
for some integers ay , by , dy À H δ .
Proof. Fix py, βq P J0 . Write ℓ1 and ℓ2 for a pair of paths mod Qy of length
k :“ k0 `2 of the kind provided by Lemma 5.4. If we write pp1 , . . . , pk , q1 , . . . , qk q
and pp11 , . . . , p1k , q11 , . . . , qk1 q for the primes in rP, 2P s associated to ℓ1 and ℓ2
respectively, then ℓ1 `pℓ2 q´1 will be a path mod Qy of length 2k consisting of
(distinct) primes pp1 , . . . , pk , qk1 , . . . , q11 , q1 , . . . , qk , p1k , . . . , p11 q having px0 , α0 q
as its initial and end point. If αy P R{Qy Z is the top element of a pyra-
mid associated to this path, then by Lemma 4.4 applied with j “ 1 and
j “ 2k ` 1 and the triangle inequality, we see that
                                    ˜                           ¸
                                         k             k
                                       ź
                                                  1
                                                      ź
                                                              1                  K
                                 }           pi q i ´     qi pi αy }Qy À k ,
                                       i“1            i“1
                                                                                 H
and therefore
                                         ˆ    ˙
                               uy          K
                          αy ”    Qy ` O k       pmod Qy q
                               dy          H
                               uy          Ty
                             ”    Q y ` śk           pmod Qy q,
                               dy      x0 i“1 qi p1i
for some Ty P R that by our choice of k can be taken to satisfy
                        ˜            ¸
                           k
                                                                   X2
                                                ˆ          ˙
                   K      ź
                                   1        KX X
          |Ty | À k x0        q i pi À k             p2P q4 À 2´δ ,
                   H      i“1
                                            HK H                  H
                                                         ˇś                ˇ
                                                         ˇ k        1
                                                                      śk 1
and for some integers |uy | ď dy with dy dividing ˇ i“1 pi qi ´ i“1 qi pi ˇ.
                                                                           ˇ

Using Corollary 4.2 as in the deduction of (5.1) we see that
                 ˇ                      ˇ
                 ˇźk        źk          ˇ kH
                 ˇ pi qi1 ´      qi p1i ˇ À   p2P q2k À kp2P q4 ,
                 ˇ                      ˇ
                 ˇi“1       i“1
                                        ˇ   X

by our choice of k. In particular, we have |dy | À H δ . Applying Lemma 4.4
with j “ 1 again, we deduce that we can ﬁnd some integer |ay | ď dy with
        ˜           ¸
           k              ˆ     ˙
          ź
                  1           K       ay      Ty        ´     ¯
  α0 ”        qi pi αy ` O k       ” Qy `         ` O H δ´1 pmod Qy q.
          i“1
                              H       dy       x0
Similarly, applying Lemma 4.4 with j “ k ` 1, we obtain an integer |by | ď dy
with
                        Ty ki“1 pi p1i
                           ś
                  by                      ´       ¯
             β ” Qy `      śk          ` O H δ´1 pmod Qy q.
                  dy    x0 i“1 qi p1i
Removing the primes p11 , . . . , p1k appearing in both numerator and denomi-
nator, and using that by Lemma 4.1 and Corollary 4.2 we have
        ˇ ś               ˇ                 ˇ    ˜           ¸ ˇ
              k                                     k
        ˇ y i“1 pi Ty ˇ
        ˇT                ˇ          |Ty | ˇˇ      ź             ˇ
                    ´ ˇÀ                    ˇy ´       qi {pi x0 ˇ À H 2δ´1 ,
                                                                 ˇ
        ˇ śk
        ˇ x0 i“1 qi    y ˇ pX{Kq2 ˇ                i“1
                                                                 ˇ
we obtain the result.                                                                                    
                                                    12
   We can now conclude the proof of Theorem 3.2. Let δ ą 0 be suﬃciently
small and let the notation be as in Lemma 5.4. By Cauchy-Schwarz and the
pigeonhole principle, we know from Lemma 5.4 that can ﬁnd some c „ 1
and py0 , β0 q P J0 such that
                                                       P1
                                                 ck0 log
                Q̃y :“ gcdpQy0 , Qy q ě pP 1 q           P1   ě exppck0 P 1 q
for ě ck0 |J0 | Á H ´δ |J0 | elements py, βq P J0 . If we deﬁne T :“ Ty0 , Q :“
Qy0 , a :“ ay0 and d “ dy0 , we see from (6.1) that for each such py, βq P J0
we have
             ay       Ty                  a     T
       α0 ” Qy `          ` OpH δ´1 q ” Q `         ` OpH δ´1 q pmod Q̃y q.
             dy       x0                  d     x0
From our bounds on the individual quantities involved, it follows that it
must necessarily be
                              ay       a
                                 Qy ” Q pmod Q̃y q,
                              dy       d
and therefore it must also be |T ´ Ty | À |x0 |{H 1´δ . We then conclude from
(6.2) that
                          by       T
                    β ” Qy ` ` OpH 2δ´1 q pmod Q̃y q.                       (6.3)
                          dy       y
By the pigeonhole principle, it follows that there is some q À H δ such that
(6.3) holds with dy “ q for Á H ´2δ |J0 | Á X{H 1`3δ elements py, βq P J . For
each such py, βq, we know by construction of J and the triangle inequality
that we can ﬁnd some interval rz, z ` H ˚ s Ď ry, y ` H{Ks of length H ˚ :“
H 1´3δ with                     ÿ
                                      gpnqepβnq Á H ˚ .
                          zďnăz`H ˚
Since |T {y ´ T {z| À H 2δ´1 , it then follows that
                    ÿ                pn ´ zqby      pn ´ zqT
                            gpnqep             Qy `          q Á H ˚.
               zďnďz`H ˚
                                         q              z
Choosing δ suﬃciently small with respect to ρ, this concludes the proof of
Theorem 3.2 and therefore of Theorem 1.1.

                                      References
 [1] A. Granville, K. Soundararajan. Large character sums: pretentious characters and
     the Polya-Vinogradov theorem. J. Amer. Math. Soc., 20 (2) (2007), 357-384.
 [2] K. Matomäki, M. Radziwill. Multiplicative functions in short intervals. Ann. of Math.
     (2), 183 (3) (2016), 1015-1056.
 [3] K. Matomäki, M. Radziwill. Multiplicative functions in short intervals II,
     arXiv:2007.04290.
 [4] K. Matomäki, M. Radziwill, T. Tao. An averaged form of Chowla’s conjecture. Alge-
     bra & Number Theory, 9 (9) (2015), 2167-2196.
 [5] K. Matomäki, M. Radziwill, T. Tao. Fourier uniformity of bounded multiplicative
     functions in short intervals on average, Invent. Math., 220 (1) (2020) 1-58.
 [6] K. Matomäki, M. Radziwill, T. Tao, J. Teräväinen, T. Ziegler. Higher uniformity of
     bounded multiplicative functions in short intervals on average, Ann. Math. (2) 197
     (2) (2023), 739-857.
 [7] T. Tao. Equivalence of the logarithmically averaged Chowla and Sarnak conjectures.
     In Number theory - Diophantine problems, uniform distribution and applications,
     391-421. Springer, 2017.
                                            13
[8] M. Walsh, Local uniformity through larger scales, Geom. Funct. Anal. 31 (2021),
    981-991.

  Departamento de Matemática e IMAS-CONICET, Facultad de Ciencias Ex-
actas y Naturales, Universidad de Buenos Aires, 1428 Buenos Aires, Argentina
  Email address: mwalsh@dm.uba.ar




                                       14
