                                              FOURIER UNIFORMITY OF BOUNDED MULTIPLICATIVE
                                                 FUNCTIONS IN SHORT INTERVALS ON AVERAGE

                                                      KAISA MATOMÄKI, MAKSYM RADZIWILL, AND TERENCE TAO
arXiv:1812.01224v1 [math.NT] 4 Dec 2018




                                                  Abstract. Let λ denote the Liouville function. We show that as X → ∞,
                                                                 Z 2X         X
                                                                      sup            λ(n)e(−αn) dx = o(XH)
                                                                      X     α
                                                                                x<n≤x+H
                                                                θ
                                                  for all H ≥ X with θ > 0 fixed but arbitrarily small. Previously, this was only
                                                  known for θ > 5/8. For smaller values of θ this is the first “non-trivial” case of
                                                  local Fourier uniformity on average at this scale. We also obtain the analogous
                                                  statement for (non-pretentious) 1-bounded multiplicative functions.
                                                     We illustrate the strength of the result by obtaining cancellations in the sum of
                                                  λ(n)Λ(n + h)Λ(n + 2h) over the ranges h < X θ and n < X, and where Λ is the
                                                  von Mangoldt function.




                                                                                 1. Introduction
                                            Let λ denote1 the Liouville function, that is, a completely multiplicative function
                                          with λ(p) = −1 at all primes p. Among bounded multiplicative functions, λ plays a
                                          distinguished role since the prime number theorem is equivalent to2
                                                                             X
                                                                                λ(n) = o(x)                                 (1)
                                                                                  n≤x

                                          as x → ∞, and the Riemann Hypothesis is equivalent to
                                                               X
                                                                  λ(n) = Oε (x1/2+ε ) for all ε > 0.
                                                                      n≤x

                                          A far reaching generalization of (1) is Chowla’s conjecture [4], according to which,
                                          for any sequence of distinct integers h1 , h2 , . . . , hk , one has
                                                                    X
                                                                        λ(n + h1 ) · · · λ(n + hk ) = o(x)                 (2)
                                                                          n≤x

                                            1All the results for λ discussed here are also applicable to the Möbius function µ with only minor
                                          changes to the arguments; we leave the details to the interested reader.
                                            2Our conventions for asymptotic notation are given at the end of this introduction.
                                                                                           1
2                  KAISA MATOMÄKI, MAKSYM RADZIWILL, AND TERENCE TAO

as x → ∞, where we adopt the convention that λ(n) = 0 for n ≤ 0. Because of the
equivalence of (1) and the prime number theorem, Chowla’s conjecture is frequently
viewed as a “higher order” prime number theorem.
   In recent years there has been a substantial amount of progress on Chowla’s con-
jecture. Following the work of the first two authors [23] the authors established in
[24] an averaged form3 of this conjecture in the case k = 2, namely,
                           X X
                                    λ(n)λ(n + h) = o(Hx)                         (3)
                                     |h|≤H    n≤x

provided that H → ∞ as x → ∞; see also [1, 18, 19, 26, 12, 7, 25] for some other
averaged forms of Chowla’s conjecture (as well as the closely related Elliott and
Hardy-Littlewood conjectures). An equivalent form of (3) (for related discussion,
see [32]) states that
                          Z 2X X
                      sup           λ(n)e(−αn) dx = o(HX)                      (4)
                               α    X        x<n≤x+H

provided that H → ∞ as X → ∞. The estimate (4) along with the entropy decre-
ment argument was used by the third author [31] to establish a logarithmically
averaged version of Chowla’s conjecture, that is,
                           X λ(n)λ(n + h)
                                              = o(log x)
                           n≤x
                                     n

as x → ∞, for any fixed integer h 6= 0. Subsequently for odd k, the third author and
Teräväinen [34] used the entropy decrement argument and the Gowers uniformity of
the (W -tricked) von Mangoldt function (but avoiding the use of (4)), to show that
                                   X λ(n + h1 ) . . . λ(n + hk )
                                                                   = o(log x)                     (5)
                                   n≤x
                                                          n

as x → ∞, for any distinct integers h1 , . . . , hk and k odd. Their argument only
partially generalizes to arbitrary multiplicative functions (see [33]); in the case of the
Liouville function, it relies crucially on the assumption that k is odd.
   In order to establish (5) for all k it is necessary to establish (the logarithmically av-
eraged version of) what we call the local (higher order) Fourier uniformity conjecture
(see [32]).

    3By applying Hölder’s inequality to (3), it is also possible to obtain an averaged version of (2)
over all shifts h1 , . . . , hk ; see [24] for details.
                                     FOURIER UNIFORMITY                                 3

Conjecture 1.1 (Local higher order Fourier Uniformity). Let s ≥ 0. Let G\Γ be
an s-step nilmanifold. Let F : G\Γ → C be Lipschitz continuous and let x0 ∈ G\Γ.
Then             Z 2X        X
                       sup         λ(n)F (g n−bxc x0 ) dx = o(HX)
                    X       g∈G
                                  x<n≤x+H
as soon as H → ∞ with X → ∞.
   We refer to [14] for the definition of the terms above, however we will not need
these notions in this paper. Informally, the conjecture asserts that on most short
intervals, λ does not exhibit significant correlation with any s-step nilsequence (of
bounded complexity). The estimate (4) proven in [24] essentially corresponds to the
case s = 0 of Conjecture 1.1; this is currently the only case of the conjecture that is
completely settled.
   In this paper we make a first step in going beyond the case of s = 0 and establish
the case s = 1 of Conjecture 1.1 when H = X θ with θ > 0 fixed but otherwise
arbitrarily small. Let us first re-state our main result for the Liouville function in a
more elementary fashion.
Theorem 1.2 (Local Fourier Uniformity for s = 1 at scale X θ ). Let θ ∈ (0, 1) be
given and set H = X θ . Then
                  Z 2X       X
                        sup      λ(n)e(−αn) dx = o(XH).
                        X     α
                                   x<n≤x+H

as X → ∞.
   We restrict attention here to the regime θ ∈ (0, 1), since the case θ ≥ 1 follows
from the classical work of Davenport [5] (and see [11], [13] for the s = 2 and s > 2
cases respectively of Conjecture 1.1 for this range of θ). Informally, Theorem 1.2
asserts that on most intervals of the form [x, x + xθ ], the Liouville function λ(n) does
not exhibit singificant correlation with linear phases e(αn); it can easily be shown to
imply the s = 1 case of Conjecture 1.1 in the range H ≥ X θ by approximating the
1-step nilsequence n 7→ F (g n−bxc x0 ) by a Fourier series.
   Previously, Theorem 1.2 was known unconditionally only      P for θ > 5/8 from the
work of Zhan [36], who showed that as X → ∞ the bound x<n≤x+H λ(n)e(−αn) =
o(XH) holds pointwise in x ∈ [X, 2X] for H > X 5/8+ε . It is likely that our method
can be pushed to reach H = exp((log x)1−δ ) for some δ > 0, and conditionally on
the Riemann Hypothesis one should in principle be able to reach H = (log X)ψ(X)
for any function ψ(X) going to infinity arbitrarily slowly with X, although this may
require a more careful reworking of the arguments here. It may be possible to extend
the methods to this paper to also cover the s > 1 case (again with H = X θ for any
fixed θ > 0); we plan to investigate this direction in future work.
4             KAISA MATOMÄKI, MAKSYM RADZIWILL, AND TERENCE TAO

  Theorem 1.2 allows us to obtain cancellations in rather general triple correlations
such as those of the form λ(n)a(n + h)b(n + 2h), for sequences a(·) and b(·) for which
sharp sieve majorants can be constructed. We illustrate the flavor of these results in
the corollary below.
Corollary 1.3. Let θ ∈ (0, 1) be given. Let H = X θ . Then
              X            
                        |h| X
                    1−             λ(n)Λ(n + h)Λ(n + 2h) = o(HX)
                         H n≤X
                |h|≤H

as X → ∞.
    Interestingly we are unable to obtain an asymptotic for
                         X           
                                   |h| X
                               1−           Λ(n + h)Λ(n + 2h)
                                    H n≤X
                        |h|≤H

for this range ofPH, since this latter problem is essentially equivalent to evaluating
asymptotically x≤n<x+H Λ(n) for almost all x ≤ X. The best result in this direction
allows one to take H > X 1/6−ε(X) with ε(X) tending to zero arbitrarily slowly as
X → ∞. This is due to Zaccagnini [35], building on ideas of Heath-Brown [15] and
Huxley [16]. Thus, Corollary 1.3 gives a rare example of a sum involving the Liouville
function that becomes harder to control when the Liouville function is removed!
   In a subsequent paper we will obtain variants of Theorem 1.2 and Corollary 1.3
for unbounded multiplicative functions such as the divisor function or coefficients of
automorphic forms. This will improve (in the H aspect) earlier results of Blomer [3]
that allowed one to take H = X 1/3+ε in the triple correlations of the divisor function;
however, in contrast to the results of [3], we will not obtain power-savings in the error
terms.
   Theorem 1.2 can in fact be generalized to almost all multiplicative functions f :
N → C with |f | ≤ 1 (we call such multiplicative functions 1-bounded ). There is
however one obstruction: if f (n) = nit χ(n) with |t| ≤ εX 2 /H 2 for a small absolute
constant ε > 0 and χ a Dirichlet character of bounded conductor q, then one can
check (using a Taylor expansion) that
                      Z 2X         X
                           sup             f (n)e(−αn) dx  XH.                       (6)
                        X       α
                                    x<n≤x+H

In fact for each x ∈ [X, 2X] one can set α equal to xt + aq for some integer a coprime to
q, and then f (n)e(−αn) ≈ χ(n)e(−an/q)xit will typically have a mean of magnitude
     √
 1/ q if χ is primitive.
   Therefore the proper analogue of Theorem 1.2 can only hold for multiplicative
functions f that “do not pretend” to be any multiplicative function of the form
                                      FOURIER UNIFORMITY                                            5

n 7→ nit χ(n) with |t| ≤ X 2 /H 2 and χ of bounded conductor. To quantify this notion
of “pretentiousness”, we follow Granville and Soundararajan [9] and introduce the
distance function
                                          X 1 − Re(f (p)pit χ(p)) 1/2
                 D(f ; X; Q) := inf                                     .
                                 χ mod q
                                           p≤X
                                                      p
                                        q≤Q
                                       |t|≤X

In particular D(f ; X; Q) is small whenever f is close to n 7→ nit χ(n) with4 |t| ≤ X
and χ of conductor ≤ Q.
   Our main theorem, stated below, confirms that n 7→ nit χ(n) with |t| ≤ X 2 /H 2−o(1)
and χ of bounded conductor are essentially the only examples of 1-bounded multi-
plicative functions for which (6) can happen.
Theorem 1.4 (Main theorem). Let θ ∈ (0, 1) and η > 0. Let f : N → C be a
multiplicative function with |f | ≤ 1. Suppose that, for H = X θ , we have
                     Z 2X          X
                          sup            f (n)e(−αn) dx ≥ ηHX.
                           X    α
                                     x<n≤x+H

Then, for any ρ ∈ (0, 81 ),
                                    D(f ; X 2 /H 2−ρ ; Q) η,θ,ρ 1
for some Q η,θ,ρ 1.
  Theorem 1.4 yields an analogous result to Corollary 1.3 for general multiplicative
functions. Without going into full generality we highlight that the result holds for
correlations f (n)a(n + h)b(n + 2h) and sequences a(n), b(n) that admit sharp sieve
majorants. We illustrate this principle in the corollary below.
Corollary 1.5. Let θ ∈ (0, 1). Let f : N → C be a 1-bounded multiplicative function.
Suppose that a(n), b(n) are sequences such that a(n), b(n)  1 + Λ(n) for all n ≥ 1.
  If
                X             
                            |h| X
                       1−            f (n)a(n + h)b(n + 2h) > ηXH
                            H n≤X
                   |h|≤H

with H = X , then for any ρ ∈ (0, 81 ),
              θ


                                    D(f ; X 2 /H 2−ρ ; Q) η,θ,ρ 1
for some Q η,θ,ρ 1.
  4The role of the parameter X here is mostly to control the size of t. It is not important that the
sum over p runs up to X; it could run up to X B for any B > 0, since primes in (X α , X β ] contribute
only Oα,β (1) to the distance.
6              KAISA MATOMÄKI, MAKSYM RADZIWILL, AND TERENCE TAO

  The claim holds also when f (n)a(n+h)b(n+2h) is replaced by a(n)f (n+h)b(n+2h)
or by a(n)b(n + h)f (n + 2h).
   We give the short derivation of Corollary 1.5 from Theorem 1.4 in Section 6. It is
possible to extend Corollary 1.5 to sequences b(n) or a(n) equal to a multiplicative
function h : N → C such that |h(n)| ≤ dk (n) for all n ≥ 1 and k ≥ 1 a fixed integer.
Since we will obtain a stronger result along these lines in a follow-up paper we do
not include the details here.
   It is immediate from Corollary 1.5 that given 1-bounded multiplicative functions
f1 , f2 , f3 , the correlations
                          X          
                                   |h| X
                                1−       f1 (n)f2 (n + h)f3 (n + 2h)
                                   H n≤X
                    |h|≤H

vanish asymptotically whenever at least one of the fi is non-pretentious in the sense
that D(fi ; X, Q) → ∞ as X → ∞ for each Q. In the remaining case that all of the fi
are pretentious, an asymptotic for the correlations, without an average over h, can
be obtained using the method of [20] (see also the references therein).

1.1. An overview of the proof. We now describe in some detail the main ideas
behind the proof of Theorem 1.4. Our presentation here is somewhat oversimplified
to avoid technical issues; the actual rigorous argument will not quite follow the
outline given here, but uses essentially the same ideas, despite being arranged slightly
differently to resolve these technicalities.
   First we notice that, by the “analytic” large sieve inequality (or more precisely,
a maximal version of this inequality due to Montgomery [28]), given an interval
I = (x, x + H], there are at most  η −2 values αI (modulo 1 and up to perturbations
by O(1/H)) for which
                                X
                                    f (n)e(−αI n) > ηH                               (7)
                                n∈I 0
           0
for some I ⊂ I; see Lemma 2.2. For sake of this informal presentation, one can
pretend that in fact there is only one such value αI (modulo 1 and perturbations by
O(1/H)). Thus, if there are two subintervals I10 , I20 of I (or of a slight dilate of I)
and two frequencies αI,1 , αI,2 obeying (7), one can pretend that
                                            
                                              1
                           αI,1 = αI,2 + O          (mod 1).                         (8)
                                             H
   Informally, the estimate (7) asserts that f exhibits significant oscillation at fre-
quency αI on the interval I (or a large subinterval of this interval). We depict this
situation schematically in Figure 1. In the schematic depictions we are pretending
                                  FOURIER UNIFORMITY                                       7




       Figure 1. A schematic depiction of an interval I in which f oscillates
       with frequency αI .

that if two such intervals I1 , I2 overlap (or are very near to each other), then their
associated frequencies αI1 , αI2 are close modulo 1 in the sense of (8).
   At this point we point out a key example: if f (n) = nit for some t = o(X 2 /H 2 ),
some Taylor expansion of the phase n 7→ t log n of f in I reveals that one has the
above inequality for some η  1 and αI = xtI , where xI denotes the starting point
of I. Thus, under the hypotheses of Theorem 1.4, we expect αI to vary in I in a
manner which is “inversely proportional” to the location of I in some sense. The bulk
of our argument is devoted to rigorously verifying some version of this expectation;
the main obstacle to overcome arises from the fact that αI is only determined up
modulo 1 and up to perturbations by O(1/H).
   Next, we recall an observation of Elliott [6] that by an application of the arithmetic
large sieve inequality for a big set of primes P = PI ⊂ [2, H 1/2 ], we have, for all p ∈ P,

                     1 X                   X
                           f (n)e(−αI n) ≈   f (n)e(−αI np) ;                           (9)
                     p n∈I
                                               n∈I/p

see Proposition 2.5. To make things simpler we proceed in this outline as if the
approximation (9) held for all primes p  P with P := H ε and some small absolute
constant ε > 0. Informally, (9) asserts that if f (n) behaves like a constant multiple of
e(αI n) for n ∈ I, then f (m) behaves like a constant multiple of e(αI mp) for m ∈ I/p.
Heuristically, this follows from the relationship f (mp) = f (p)f (m) (at least when
m is coprime to p). We describe the estimate (9) schematically by the diagram in
Figure 2. Note that this is consistent with the previous heuristic that αI should be
inversely proportional to the location of I.
  By the hypotheses of Theorem 1.4, we have some frequencies α(x,x+H] for which
                     Z 2X    X
                                   f (n)e(−α(x,x+H] n) dx ≥ ηXH,
                      X    x<n≤x+H

and hence by a pigeonhole principle argument, we can find a large ( X/H) set
of disjoint intervals I of length H in [X, 2X] for which (7) holds (after modifying
η slightly). From this, (9), and the Cauchy-Schwarz inequality, we will be able to
locate a large set of quadruples (I, J, p, q) with I and J disjoint intervals of length
8            KAISA MATOMÄKI, MAKSYM RADZIWILL, AND TERENCE TAO




      Figure 2. If f oscillates at frequency αI on a long interval I, then
      one expects f to oscillate at frequency pαI on the shorter interval I/p.
      (The intervals are not drawn to scale.) The dotted arrow indicates the
      fact that if one dilates I/p by p one returns to the interval I.




      Figure 3. If f oscillates at frequencies αI , αJ on I, J respectively,
      and I/p overlaps J/q, then one expects pαI and qαJ to often be close
      to each other (modulo integers).

H = X ε for which
               X                              X
                      f (n)e(−αI n)  H and         f (n)e(−αJ n)  H            (10)
                n∈I                           n∈J

and p, q  P = H ε are primes for which (9) holds and such that I/p ∩ J/q 6= ∅; see
Figure 3.
  Since the intervals I/p and J/q are nearby and the frequencies pαI , qαJ lead to
very large values of the short trigonometric polynomial supported respectively on
I/p and J/q, we conclude from (8) that these frequencies lie (modulo 1 and up to
perturbations by O(P/H)) in a bounded set of  1 frequencies. In particular by
                                      FOURIER UNIFORMITY                                            9

the pigeonhole principle it follows that, for a positive proportion of disjoint intervals
I, J of length H and primes p, q of size P = H ε with I/p ∩ J/q 6= ∅, we have the
fundamental approximate equation
                                 pαI ≡ qαJ + O(P/H)         (mod 1)                              (11)
relating the frequencies αI , αJ associated to these intervals. The number of such
quadruples (I, J, p, q) is  (X/H) · (P/ log P )2 , since once I, p, q are chosen, J is
essentially determined by I/p ∩ J/q 6= ∅.
    It would be nice if the congruence (11) held (mod p) rather than just (mod 1),
as one could then profitably divide by p. Fortunately, by the Chinese remainder
theorem there exists a (potentially very large!) integer k depending on J and q such
that if we redefine αJ by shifting it by k, then we do indeed have
                                                
                                                 P
                                 pαI ≡ qαJ + O          (mod p)
                                                 H
or equivalently                                  
                                      q           1
                                αI ≡ · αJ + O            (mod 1)
                                      p          H
for all p  P , with p 6= q. Importantly, shifting αJ by k ∈ Z maintains the property
(10), no matter how large k is. The dependence of the integer k on q is a bit
problematic; however let us suppose for sake of discussion that k is independent of
q (we essentially end up achieving this through a different argument that involves
two consecutive applications of the arithmetic large sieve). Then applying Cauchy-
Schwarz we conclude that, for a positive proportion of intervals J1 , J2 and primes
q1 , q2  P with5 Jq11 ∩ Jq22 6= ∅, we have
                                                  
                              q1        q2          1
                                 αJ1 ≡ αJ2 + O            (mod 1)                      (12)
                               p        p          H
for many primes p  P . This is essentially the outcome of Section 3, though the
argument there proceeds using a somewhat different arrangement of the above in-
gredients, most notably in that the prime p ends up being at a different scale to the
primes q1 , q2 , and the intervals J1 , J2 have length a bit less than H (and are located
at spatial scales a bit less than X). For sake of this discussion we assume that for the
data J1 , J2 , q1 , q2 as above, the relation (12) holds for all p  P , not just for many
such primes. We depict this relationship in graph theoretic language by connecting
J1 to J2 by an edge which we label by the ratio qq21 of the primes needed to get from
J1 to (the vicinity of) J2 by multiplication; see the dashed line in Figure 4. The
  5More precisely, J1 and J2 will both intersect a third interval I , but this is almost the same as
                    q1      q2                                      p
requiring that these intervals intersect each other, as they are all of comparable size; see Figure 4.
For sake of this discussion, we ignore this technical distinction.
10            KAISA MATOMÄKI, MAKSYM RADZIWILL, AND TERENCE TAO




       Figure 4. A pair of intervals J1 , J2 and primes q1 , q2 such that J1 /q1
       and J2 /q2 both meet I/p for many pairs (I, p), and are thus close to
       each other. The frequencies αJ1 , αJ2 have been adjusted by suitable
       integers so that qp1 αJ1 , qp2 αJ2 are both close (modulo integers) to αI ,
       and thus also close to each other (again modulo integers). When one
       has the above diagram for all (or most) p  P , we draw a dashed line
       from J1 to J2 as indicated. Note that if one dilates J1 by qq12 then one
       will end up with an interval close to J2 .

resulting graph G is essentially undirected (except that if one wanted to get from
J2 to J1 one would use the label qq21 rather than qq12 ) and multiplicity-free (the ratios
q2
q1
   for q1 6= q2 are all well separated from each other, so each pair J1 , J2 of distinct
intervals may be connected by at most one such ratio).
   Notice that the number of intervals J1 , J2 and primes q1 , q2  P constructed above
is  (X/H) · (P/ log P )2 ; thus the graph G described above has  X/H vertices and
average degree  (P/ log P )2 . We begin Section 4 by applying Hölder’s inequality
on G in a way that is motivated by Sidorenko’s conjecture (see [30]). We choose k
to be the first even integer for which
                                       2k−2  2
                                    P              X
                                               ≥          .
                                  log P            H
Because of our hypotheses H = X θ and P = H ε , we can take k to be independent
of X. Roughly speaking, k is the first integer at which we expect to see a very large
number of non-trivial cycles of length 2k in the graph G . After many applications of
Hölder’s ineqality, we can conclude that, for a positive proportion of disjoint intervals
I1 , J1 ⊂ [X, 2X] of length H and primes p1 , q1  P with I1 /p1 ∩ J1 /q1 6= ∅, there
                                            FOURIER UNIFORMITY                                                 11

exist                                                    4k
                                          H2
                                                 
                                                     P
                                       2                    1
                                          X        log P
“chains” of intervals I2 . . . , Ik , J2 . . . , Jk ⊂ [X, 2X] of length H and primes
                 p1,1 , . . . , pk,1 , p1,2 , . . . , pk,2 , q1,1 , . . . , qk,1 , q1,2 , . . . , qk,2  P
such that, for all ` = 1, 2, . . . , k,
                              I`       I`+1                      J`    J`+1
                                    ∩        6= ∅,                   ∩      6= ∅                             (13)
                            p`,1        p`,2                    q`,1   q`,2
and furthermore the approximate identities
                                                         
                              p`,1       p`,2             1
                                   αI` ≡      αI`+1 + O       mod 1
                               p          p               H
                                                         
                              q`,1       q`,2             1
                                   αJ` ≡      αJ`+1 + O       mod 1                                          (14)
                               p          p               H
                                                      
                               p1        q1             1
                                   αI1 ≡ αJ1 + O            (mod 1)
                                p        p             H
hold for all p  P , where we adopt the cyclic conventions Ik+1 = I1 , Jk+1 = J1 . The
above set of relationships corresponds to two cycles of length k in G connected by a
further edge in G; see Figure 5. The choice of k is just large enough to ensure that
the configuration in this figure will usually be non-degenerate in the sense that the
primes p1,1 , . . . , qk,2 , p1 , q1 that arise are all distinct for most of the configurations.
Since the primes p in our case are of size P = H ε = X εθ , it suffices to take k bounded
in terms of ε, θ to guarantee the existence of a large number of such chains.
   Notice that we can interpret each of the relationships in (14) as holding (mod p)
instead of (mod 1) by multiplying by p, thus obtaining the system of equations
                                                            
                                                            P
                                 p`,1 αI` ≡ p`,2 αI`+1 + O         mod p
                                                            H
                                                            
                                                            P
                                 q`,1 αJ` ≡ q`,2 αJ`+1 + O         mod p                    (15)
                                                            H
                                                         
                                                          P
                                   p1 αI1 ≡ q1 αJ1 + O          mod p
                                                          H
for all p  P . We can then use the Chinese remainder       Q theorem to replace the
(mod p) congruences in (15) with (mod Q) where Q := pP p. A key point for later
analysis is that Q is going to be extremely large (of size about exp(P ) = exp(X εθ )), so
much so that we will eventually be able to drop the congruence (mod Q) altogether,
once we obtain some more control on the location of the αI .
12             KAISA MATOMÄKI, MAKSYM RADZIWILL, AND TERENCE TAO




       Figure 5. Two cycles of length k = 4 connected by an edge. Each
       dashed line corresponds to a situation of the form described in Figure 4
       (for all p  P ). The frequencies αI` , αJ` are not depicted here to reduce
       clutter; however, they will obey the approximate identities (14).


  After applying some algebra to (15) to eliminate all frequencies except αI1 , αJ1 ,
we eventually conclude the estimates
                                       k
                         0               P
                       q1 αI1 ≡ O               (mod Q)                         (16)
                                         H
                                       k
                         0               P
                       q 2 α J1 ≡ O             (mod Q)                         (17)
                                         H
                                                
                                                 P
                       p 1 α I1 ≡ q 1 α J1 + O        (mod Q)                   (18)
                                                 H
               Qk              Qk                       Qk            Qk
where q10 :=      `=1 p`,1 −    `=1 p`,2   and q20 :=    `=1 q`,1 −  `=1 q`,2 . The integers
q10 , q20 are small; in fact the condition (13) will give the bound q10 , q20  H O(ε) . We can
also assume that these integers are non-zero, because the number of intervals I` , J`
and primes pi,j , qi,j for which qj0 could be zero is negligible. It follows then from (16),
                                   FOURIER UNIFORMITY                                       13

(17) that
                                    a1    TI
                               αI1 ≡ 0
                                       Q+ 1          (mod Q)
                                    q1    xI 1
                                    a2    TJ
                               αJ1 ≡ 0 Q + 1         (mod Q)
                                    q2    xJ1
for some a1 , a2 ∈ Z, 0 < q10 , q20  H O(ε) , and TI1 , TJ1  X 2 /H 2−ρ , where xI1 , xJ1 the
starting points of the intervals I1 , J1 , respectively.
   Suppose now for simplicity that q10 = q20 = 1, so that
                                        TI1
                                   αI1 ≡     (mod Q)                                      (19)
                                        xI1
                                        TJ
                                   αJ1 ≡ 1 . (mod Q)                                      (20)
                                        xJ1
Notice that since I1 ∩ pq11 J1 6= ∅ we have xI1 ≈ pq11 xJ1 . Combining (19), (20) with (18)
we obtain the key relationship
                            TI1 = TJ1 + O(P X/H)         (mod Q);
since TI1 , TJ1 are much smaller in magnitude than Q, we may now drop the congru-
ence and conclude in fact that
                                  TI1 = TJ1 + O(P X/H);
informally speaking, this means that the map I 7→ TI is approximately locally con-
stant on the graph G. Obtaining these quadruples (I1 , I2 , p1 , p2 ) with all the described
properties is essentially the content of Section 4.
   A Taylor expansion shows that if αI1 is as in (19), then e(−αI1 n) ≈ eiθI1 n2πiTI1
with θI1 ∈ R depending only on I1 . Similarly for (20). Thus there exists a positive
proportion set of disjoint intervals I, J connected by an edge in G such that
                    X                              X
                          f (n)n2πiTI  H and            f (n)n2πiTJ  H.
                    n∈I                            n∈J

for some TI , TJ  X 2 /H 2 with TI = TJ + O(P X/H). To proceed further, we claim
that the graph G is essentially an “expander graph” and in particular that it has one
very large and highly connected component. This is the content of Section 5.
   To see this claim, notice that taking a O(P X/H)-spaced set of values V in the
range {T : T = O(X 2 /H 2−ρ )}, we can group the intervals I into subsets A(V )
of those intervals I for which TI = V + O(P X/H). Then, because many pairs of
intervals I, J connected by an edge in G belong to the same A(V ), we obtain a large
14              KAISA MATOMÄKI, MAKSYM RADZIWILL, AND TERENCE TAO

lower bound of the form
                                                                      
                                                                   
                                         2                       
                        X           P            X X X 
                          ·                                      1            (21)
                        H         log P          V
                                                   
                                                    p,qP I∈A(V ) 
                                                                    
                                                           J∈A(V )
                                                                   
                                                              I J
                                                               ∩ 6=∅
                                                              p q



where P := H ε . That is we obtain a lower bound that corresponds to a positive
proportion of disjoint intervals I, J ⊂ [X, 2X] ofPlength H and primes p, q  P such
     I   J
that p ∩ q 6= ∅. Now, since the exponential sum pH ε pit exhibits cancellations, we
can (using a bit of harmonic analysis) essentially bound the above by
                                                         2 !
                             X               H        P
                                  #A(V )2 ·    ·
                              V
                                             X      log P
                P
Noticing that     V #A(V)  X/H, we see that the above expression is in turn
                                                        2
                                                       P
                                      sup #A(V ) ·           ,                  (22)
                                        V            log P

and therefore, combining (21) and (22), there exists a value V for which #A(V ) 
X/H. That is, there exists a universal T  X 2 /H 2 (up to non-essential perturba-
tions by O(P X/H) that we can ignore) such that for a positive proportion of disjoint
intervals I of length H we have,

                                        X
                                               f (n)niT  H
                                        n∈I

Averaging over such intervals it follows that, there exists T ∈ R such that |T | 
X 2 /H 2 and
                        Z 2X     X
                                       f (n)niT dx  XH.
                           X       x<n≤x+H

By the main theorem of [23] (or rather more precisely its extension to complex valued
functions as in [24, Theorem A.3]) this implies that f has to behave essentially as
n−iT χ(n) with χ a Dirichlet character of bounded conductor and |T |  X 2 /H 2 , thus
finishing the proof.
                                 FOURIER UNIFORMITY                                     15

1.2. Some final remarks. It is very likely that it is possible, at the expense of ad-
ditional technical difficulties, to push our argument down to H = exp((log X)1−δ ) for
some δ > 0. However we start running into difficulties when H hits exp((log X)2/3+ε )
and our argument appears to hit a hard limit when H enters the neighborhood of
powers of log X.
   The first obstruction occurs because we require    the set of primes P ⊂ [1, H] to be
sufficiently dense so that at the very least p∈P p > X 2 . This implies that H needs
                                              Q
to be larger than log X.
                                                                              2/3
   The second obstruction which prevents   PH fromit going below exp((log X) ) occurs
because we require the exponential sum pH ε p to exhibit cancellations for t of size
X. This is only known for H > exp((log X)2/3+ε ) following the work of Vinogradov-
Korobov. This obstruction can be circumvented (in the case of the Liouville function,
at
P least)itby assuming the Riemann Hypothesis. In that case the exponential sum
   pH ε p will be non-trivially small provided that H is a large power of the logarithm
(specifically H > (log X)3/ε ). However, we have not verified that the remaining
portions of the argument extend to this range (among other things, one would need
to make more precise the dependence of various implied constants on the parameter
k, which now must grow with X instead of being fixed).

Notational conventions. As usual f  g, g  f or f = O(g) means that there
is an absolute constant C > 0 such that |f | ≤ Cg. If C needs to depend on some
parameters then we indicate this by subscripts, for instance f η g denotes the
estimate |f | ≤ Cη g for some Cη depending on g. If we write f = o(g) as X → ∞ this
means that |f | ≤ c(X)g where c(X) is a quantity that goes to zero as X tends to
infinity (which may make other quantities dependent on X, such as H, go to infinity
also). We also write f  g for f  g  f .
   We set e(x) := e2πix . The symbol p always denotes a prime, and so do p0 , p00 . Given
an interval I = [a, b] we define I/p := [a/p, b/p]. Whenever we write α ≡ β + O(η)
(mod 1) we mean that there exists an absolute constant C such that, kα − βk ≤ C|η|
where kxk denotes the distance of x from the nearest integer. Similarly whenever
we write α ≡ β + O(η) (mod q) we mean α/q ≡ β/q + O(η/q) (mod 1). Given two
intervals I = [a, b] and J = [c, d] with b < c, whenever we write dist(I, J) ≤ η, we
mean that |c − b| ≤ η. If I = [a, b] and c > 0, we write cI := [ca, cb], thus for instance
I/p = [a/p, b/p].

Acknowledgments. KM was supported by Academy of Finland grant no. 285894.
MR was supported by an NSERC DG grant, the CRC program and a Sloan Fellow-
ship. TT was supported by a Simons Investigator grant, the James and Carol Collins
Chair, the Mathematical Analysis & Application Research Fund Endowment, and by
16                KAISA MATOMÄKI, MAKSYM RADZIWILL, AND TERENCE TAO

NSF grant DMS-1266164. Part of this paper was written while the authors were in
residence at MSRI in Spring 2017, which is supported by NSF grant DMS-1440140.

                                       2. Auxiliary results
   We collect here some standard results that will be used (mostly) in section 3.
                                                                     6
   In order to use someR 2X tools from graph theory, it is convenient to replace the
continuous integral X dx in Theorem 1.4 by something more discrete. Given
X, H, define a (X, H)-family of intervals to be a finite collection I of intervals
I = [xI , xI + H] of length H contained in [X/10, 10X], such that any pair of intervals
in I are separated by a distance at least 500H; in particular, the intervals in I are
disjoint, and thus the cardinality of I cannot exceed X/H.
   We then have
Lemma 2.1 (Discretizing). Let a(n) be a sequence of complex numbers with |a(n)| ≤
1 for all integers n ≥ 1. Let η > 0 and X ≥ H ≥ 1. Suppose that
                      Z 2X        X
                           sup         a(n)e(−αn) dx ≥ ηHX.                  (23)
                            X    α∈R
                                       x<n≤x+H
                                                                   ηX
Then there exist an (X, H)-family of intervals I of cardinality ≥ 1000H and real
numbers αI associated to each I ∈ I such that, for all I ∈ I,
                                       X                       ηH
                                             a(n)e(−αI n) ≥       .                                (24)
                                       n∈I
                                                                2

Proof. It follows from (23) and the pigeonhole principle that there exists y ∈ [0, H)
such that                                                  
                   X                 X
                        sup                  a(n)e(−αn)  ≥ ηX                  (25)
                                 α∈R
                     0≤`<X/H           `H+y<n≤(`+1)H+y

Given 0 ≤ v < 500, let Iv be the sub-collection of intervals I = ((500` + v)H +
                              X          X
y, (500` + v + 1)H + y] with 500H ≤ ` ≤ 250H for which

                                         X                                     ηH
                     sup                                   a(n)e(−αn) ≥           .
                     α∈R                                                        2
                           (500`+v)H+y<n≤(500`+v+1)H+y

     6It should also be possible to work in a purely continuous setting, replacing various summations in
our arguments with appropriately normalized integrals, using Fubini’s theorem in place of double
counting arguments, allowing the intervals under consideration to overlap each other, and with
various graph-theoretic inequalities replaced by their continuous counterparts. We leave the details
of this alternate arrangement of the argument to the interested reader.
                                    FOURIER UNIFORMITY                                         17
          S
Let I =       0≤v<500 Iv . It follows from (25) and the trivial bound |a(n)| ≤ 1, that

                                      X X                         ηX
                          |I| · H ≥                a(n)e(−αn) ≥      .
                                      I∈I    n∈I
                                                                   2

Thus there exists an 0 ≤ v < 500 for which Iv is an (X, H)-family of intervals of
               ηX
cardinality ≥ 1000H . Setting I = Iv , we obtain the claim.                    

   The frequency αI in the above proposition is not unique: one can shift it by
any integer, and one can also perturb it by up to a small multiple of η/H without
significantly affecting (24). However, it turns out that modulo these freedoms, there
are only a bounded number of choices for αI (if one views η as being fixed). More
precisely, one has
Lemma 2.2 (Maximal large sieve). Let H ≥ 1 and let I be an interval of length 10H.
Let η > 0 be given. Let |a(n)| ≤ 1 be a sequence of complex numbers. Suppose that
there exist J ≥ 1, frequencies α1 , α2 , . . . , αJ ∈ R and sub-intervals I1 , I2 , . . . , IJ ⊂ I
of length at most H such that

                                   X
                                          a(n)e(−αj n) ≥ ηH
                                   n∈Ij

for all j = 1, . . . , J. Assume H sufficiently large depending on η. Then there exist
a natural number K ≤ Cη −2 with C an absolute constant and frequencies β1 , . . . , βK
depending only on η > 0, the sequence {a(·)} and the interval I, such that, for each
1 ≤ j ≤ J, there exists k ∈ {1, . . . , K} with
                                                         1
                                          kαj − βk k ≤
                                                         H
where we recall that kxk = dist(x, Z).
Proof. Let γ1 be the frequency γ that maximizes the quantity
                                            X
                                    sup           a(n)e(−γn) .                               (26)
                                    L⊂I
                                            n∈L

with the supremum taken over all sub-intervals L of I. For i ≥S2 we define γi
inductively as the frequency that maximizes (26) in the region [0, 1]\ i−1        1
                                                                        j=1 [γj − H , γj +
 1
H
   ]. We thus obtain frequencies γ1 , . . . , γR with R a parameter to be chosen later,
and moreover kγi − γj k > H1 for i 6= j.
18               KAISA MATOMÄKI, MAKSYM RADZIWILL, AND TERENCE TAO

  Using the Carleson-Hunt theorem, it was proven by Montgomery [28, Theorem 2]
that one has the maximal large sieve inequality7
                     R                                  2
                     X            X                                      X
                         sup            a(n)e(−γr n)        ≤ C(R + H)         |a(n)|2
                     r=1 L⊂I      n∈L                                    n∈I

with C an absolute constant. The right-hand side is O(H(R + H)). Choosing R to
be a large multiple of η −2 , it follows that there are at most K  η −2 frequencies γi
for which
                                           X
                                    sup           a(n)e(−γr n) ≥ ηH.
                                    L⊂I
                                           n∈Ij

Therefore for any α lying outside of
                                K                
                               [        1       1
                                    γi − , γi +
                               i=1
                                        H       H

we have
                                           X
                                    sup           a(n)e(−αn) < ηH.
                                     L⊂I
                                           n∈L

Our assumption is that for each αj with 1 ≤ j ≤ J there exists an interval Ij with
Ij ⊂ I for which
                                         X
                                                a(n)e(−αj n) ≥ ηH
                                         n∈Ij
                              SK            1        1
Therefore α1 , . . . , αJ ∈       i=1 [γi − H , γi + H ] and the claim follows.                

     We record also the following variant of the large sieve that we will need in Section
5.
Lemma 2.3 (Variant of large sieve). Let 1 ≤ H ≤ X and R ∈ N. Let x1 , . . . , xR ∈
[1, X] be H-separated (thus |xi − xj | ≥ H for all 1 ≤ i < j ≤ R). Then
                              Z            R                  2
                                           X                               X
                                                  e(it log xn ) dt  R ·     .               (27)
                               |t|≤X/H n=1                                 H

     7At the cost of worsening the dependence on η slightly, one could also use the standard large
sieve inequality [27] here, combined with Lemma 2.4 below.
                                  FOURIER UNIFORMITY                                    19

Proof. Let Φ(t) be a smooth function such that Φ(t) ≥ 1 for |t| ≤ 1 and with
     b ⊂ (−1, 1). Then the left-hand side of (27) is
supp Φ
       Z X  R               2                                  
                                  tH       X X b X             xn       X
              e(it log xn ) · Φ     dt =            Φ     log      R·
         R n=1                    X        H 1≤m,n≤R     H     xm       H
as claimed.                                                                             
  We will also need the following tool from harmonic analysis.
Lemma 2.4 (Completion of sums). There exists an absolute constant η0 > 0 such
that the following holds. Let J be an interval of length H and a(n) complex coefficients
with |a(n)| ≤ 1 for all integers n ≥ 1. Let I be an interval with I ⊂ J. Suppose that
η ∈ (0, η0 ) and α ∈ R are such that
                                  X
                                        a(n)e(−αn) > ηH.
                                  n∈I

Then there exists θ ∈ R such that |θ| ≤ η21H and
                            X
                                  a(n)e(−(α + θ)n) > η 4 H.
                            n∈J

Proof. Let y, z ∈ R be chosen so that I = [y, z]. Let f be a smooth function with
f (n) = 1 for n ∈ I , |f (n)| ≤ 1 for all integers n, and compactly supported in
       η           η
[y − 100 · H, z + 100 · H]. Moreover we can ensure that f is a Schwartz function with
                    −j
   (j)
                                                                R
|f (x)| j (ηH) for all x ∈ R and therefore with |fb(x)| = | R f (u)e(−xu)du| A
H(1 + ηH|x|)−A for all A ∈ N. Let
                                         X
                                 g(β) :=    f (n)e(nβ).
                                                 n

Applying Poisson summation to g(β) and using the above bound on fb we see that
    Z                          Z                          2
                                             X
                         2
                   |g(β)| dβ =                   fb(m + β) dβ  Hη 4 .     (28)
      1− 21 >|β|> 21                    1− 21 >|β|> 21     m
         η H         η H                  η H        η H

Moreover by construction of g,
                               Z                               !
          X                                X                                  η
   ηH ≤       a(n)e(−αn) ≤                       a(n)e(−(α + β)n) g(β)dβ +       · H.
               n∈I                  T      n∈J
                                                                             100
  We split the integral on the right-hand side into two parts, namely |β| ≤ η21H and
the complement. We estimate the part over |β| < η21H trivially only using the bound
20             KAISA MATOMÄKI, MAKSYM RADZIWILL, AND TERENCE TAO

|g(β)| < 2H. On the second part we apply Cauchy-Schwarz, Plancherel and (28) to
see that it is bounded by  η 2 H. Collecting these estimates we conclude that
                             Z         X
                    ηH < 4H                a(n)e(−(α + β)n) dβ
                                              |β|< 21    n∈J
                                                  η H

Therefore there exists β ∈ R such that |β| < η21H and
                                    X
                                              a(n)e(−(α + β)n) > η 4 H
                                    n∈J

as needed.                                                                                                    
  In section 3 we will frequently relate the Fourier behavior of f on an interval I
with the behavior on dilated intervals I/p for various primes p. The key tool here is
Proposition 2.5 (Mean scales down). Let x ≥ H ≥ 1, and let f : (x, x + H] → C
obey the bound                X
                                    |f (n)|2  H
                                              n∈(x,x+H]

(thus f = O(1) on average on (x, x + H] in an L2 sense). Then
                                                                                        2
                   X                X                           1     X
                         p·                       f (pm) −                      f (n)        H 2.          (29)
                   p≤H
                                                                p
                               m∈( x
                                   p
                                     , x+H
                                        p
                                           ]                        n∈(x,x+H]

In particular, by Markov’s inequality, for any δ > 0 we have
                                                              
                     X                 1 X                   H
                            f (pm) =             f (n) + O δ
                      x x+H
                                       p                     p
                     m∈( p ,        ]                     n∈(x,x+H]
                                p

                                                                                                         1    −2
                                                                                                     P
for all primes p ≤ H outside of an exceptional set P of primes with                                  p∈P p  δ .

Proof. See [6, Lemma 4.7].                                                                                    
   We will also need the following number-theoretic estimate, in particular to dispose
of some degenerate cases.
Lemma 2.6 (Counting nearby products of primes). Let k ∈ N and P 0 , N ≥ 3 be
such that (P 0 )k−1  N . Write d = P 02 /(log P 0 )2 . Then the number of 2k-tuples
(p01,1 , . . . , p01,k , p02,1 , . . . , p02,k ) of primes in [P 0 , 2P 0 ] obeying the condition
                                        k               k
                                        Y               Y                   (P 0 )k
                                              p02,j −         p01,j ≤ C ·                                   (30)
                                        j=1             j=1
                                                                             N
                                          FOURIER UNIFORMITY                                       21

                                                                  0 2k                k
with C > 0 a constant, is at most Ok,C ( N (P )
                                           log2k P 0
                                                     ) = Ok,C ( dN ).
  If we also impose the additional condition
                                         k
                                         Y                k
                                                          Y
                                               p02,j =            p01,j mod q                    (31)
                                         j=1              j=1

for some modulus q ∈ N, then the number of tuples is bounded by
                                k               
                                 d    1       1
                          Ok,C           +             .
                                 N ϕ(q) log N
Proof. Since the first claim follows from the second by specializing to q = 1 it is
enough to prove the second claim.
   First notice that without loss of generality we can assume that q ≤ (log N )3k since
otherwise the claim is trivial by replacing products of primes by integers (i.e., using
the crude bound that every integer has at most Ok (1) representations as a product
of k primes) and counting trivially.
   Let w be a smooth function such that w(x) = 1 for |x| ≤ 100C. Then, the number
of primes p01,j , p02,` for which (30) and (31) hold is
                                                                          !
                                    X                   p01,1 . . . p01,k
                                                w N log 0                         (32)
                               0    0    0  0
                                                        p2,1 . . . p02,k
                                 p1,1 ,...,p1,k ∈[P ,2P ]
                                 p02,1 ,...,p02,k ∈[P 0 ,2P 0 ]
                          p01,1 ...p01,k ≡p02,1 ...p02,k mod q

Since q < P 0 and all of the p01,j , p02,` are primes, we can express the congruence
condition using Dirichlet characters, thus
                                              1   X
     1p01,1 ...p01,k ≡p02,1 ...p02,k mod q =        χ(p01,1 ) . . . χ(p01,k )χ(p02,1 ) . . . χ(p02,k )
                                             ϕ(q)
                                                   χ    (mod q)

where the sum is over all Dirichlet characters
                                     R          of period q. Using this identity and
                                              2πixt
the Fourier inversion formula w(x) = R w(t)e
                                        b           dt, we see that the expression (32)
is equal to
                                                                  2k
                                 Z     
                    1      X            t         X
                                    w
                                    b       ·             pit χ(p) dt,
                 ϕ(q)N            R    N            0   0
                              χ   (mod q)                                p∈[P ,2P ]

Since q ≤ (log N )3k k (log P 0 )3k , the zero-free region for L(s, χ) gives
            X                  P0          1
                  pit χ(p)            ·
                                     0 1 + |t|
                                               · δχ=χ0 + P 0 exp(−(log P 0 )1/100 );
             0  0
                             log  P
           p∈[P ,2P ]
22                KAISA MATOMÄKI, MAKSYM RADZIWILL, AND TERENCE TAO

see for instance [21, Lemma 2.4]. Using this pointwise estimate it follows that
                                                                                     2k
                                                                                                               P 02k         dk
                        Z
  1           X                                             X                                           1
                                                                        pit χ(p)          dt                            =       .
ϕ(q)N                   |t|exp((log P 0 )1/100 ) p∈[P 0 ,2P 0 ]                                      ϕ(q)N (log P 0 )2k   ϕ(q)N
          χ   (mod q)

To bound the part of the integral with large |t| we notice that for arbitrary coefficients
a(n), we have the L2 mean value theorem
               Z                           2
                       t      X
                                          it
                                                             X
                  w
                  b        ·        a(n)n       (N + B)           |a(n)|2            (33)
                R     N      A≤n≤B                          A≤n≤B

(see e.g., [17, Theorem 9.1]), while from the pointwise estimate we have
                                                                                                      2k
                        Z                                          
  1           X                                                 t          X
                                                        w
                                                        b                                pit χ(p)          dt
ϕ(q)N                   |t|exp((log P 0 )1/100 )               N
          χ   (mod q)                                                   p∈[P 0 ,2P 0 ]
                                                                                                                                            2k−2
                                                                                         Z                
                                                          1                                           t            X
                  P 02 exp(−(log P 0 )1/100 ) · sup                                          w
                                                                                              b                                  pit χ(p)          dt
                                                χ (mod q) N                               R           N
                                                                                                                p∈[P 0 ,2P 0 ]

Since
                                                        2k−2                                                       2
                               X                                               X
                                             pit χ(p)           =                                 a(n)nit
                            p∈[P 0 ,2P 0 ]                          n∈[(P 0 )k−1 ,(2P 0 )k−1 ]

where                                                               X
                            a(n) := χ(n)                                                      1 = Ok (1)
                                                   p1 ,...,pk−1 ∈[P 0 ,2P 0 ]:n=p1 ...pk−1

we may thus bound the part of the integral with |t| > exp((log P 0 )1/100 ) using (33)
by
                              1                          P 02k
                                · (N + P 0k−1 )P 0k−1 k
     k P 02 exp(−(log P 0 )1/100 ) ·                          exp(−(log P 0 )1/100 )
                             N                            N
as required. Combining the two bounds, the claim follows.                             

                                        3. Intervals and frequencies
  Assume we have the hypotheses of Theorem 1.4, thus there exists an η > 0 such
that
                  Z 2X       X
                       sup         f (n)e(−αn) dx ≥ ηXH.
                                  X          α
                                                 x<n≤x+H
                                         FOURIER UNIFORMITY                                                  23

Informally speaking, the main purpose of this section is to produce a large set I 00 of
disjoint intervals I 00 , each of length comparable to some quantity L (which will be
slightly shorter than H), as well as associated frequencies αI0000 with
                                       X
                                                f (n)e(−αI0000 n) η L,
                                       n∈I 00

and a scale P 0 with the following property: For a positive proportion of quadruples
                                                                                                  0
(I 00 , J 00 , p0 , q 0 ) ∈ I 2 × [P 0 , 2P 0 ]2 with p0 , q 0 prime such that I 00 is close to pq0 J 00 we have

                                       q 0 00    p0 00
                                          α 00 ≈ 00 αJ 00     (mod 1)
                                       p00 I    p
for a positive proportion of primes p00 in some range [P 00 /2, P 00 ] (compare with (12)).
Moreover the ranges P 00 , P 0 , L are all related by log P 00  log P 0  log L and L 
H/P 0 P 00 . This is the content of Proposition 3.2 below. We first need a preliminary
proposition.

Proposition 3.1 (Scaling down). Let 1 ≤ P ≤ Q ≤ H ≤ X and η > 0, and
let f : N → C be a 1-bounded multiplicative function. Assume that P and log    Q
                                                                           log P
                                                                                  are
sufficiently large depending on η. Suppose that there exist an (X, H)-family I of
intervals of cardinality η X/H and a real number αI associated to each I ∈ I such
that
                               X
                                  f (n)e(−αI n) η H                             (34)
                                        n∈I

for all I ∈ I. Then there exist P 0 ∈ [P, Q/2], an ( PX0 , PH0 )-family I 0 of intervals of
cardinality η X/H, and a real number αI0 0 associated to each I 0 ∈ I 0 , such that

                                       X                              H
                                                f (n)e(−αI0 0 n) η
                                       n∈I 0
                                                                      P0
                                                                                           0
for all I 0 ∈ I 0 . Furthermore, for each I 0 ∈ I 0 , one can find η logP P 0 pairs (I, p0 ),
where I is an interval in I and p0 is a prime in [P 0 , 2P 0 ], such that I/p0 lies within
3 PH0 of I 0 , and such that
                                               0
                              0       0         P
                             p αI = αI 0 + Oη           mod 1.
                                                H
   The conclusions of Proposition 3.1 are depicted schematically in Figure 6.
24            KAISA MATOMÄKI, MAKSYM RADZIWILL, AND TERENCE TAO




       Figure 6. A depiction of Proposition 3.1; the frequencies p0 αI and
       αI0 0 will be close modulo integers, and each I 0 ∈ I 0 will be associated
       to many pairs (I, p0 ) in this fashion. Compare this with Figure 2.

Proof. For each I ∈ I, we apply Proposition 2.5 to the function n 7→ f (n)e(−αI n)
on I, and with δ sufficiently small depending on η, to conclude that
                                  X                                H
                                          f (np0 )e(−αI np0 ) η                           (35)
                                                                   P0
                                 n∈I/p0

for all primes p0 ∈ [P, Q] outside of an exceptional set PI with
                                       X 1
                                               η 1.
                                      p0 ∈P
                                            p0
                                                I

Summing over all I ∈ I (recalling that this collection of intervals has cardinality at
most X/H), we conclude
                        X 1                               X
                                 0
                                   #{I ∈ I : p0 ∈ PI } η .
                      P ≤p0 ≤Q
                               p                          H

From Mertens’ theorem and the pigeonhole principle, we may thus find P 0 ∈ [P, Q/2]
such that
                   X                                X         P0
                        #{I ∈ I : p0 ∈ PI } η                      .
                 0  0 0
                   p ∈[P ,2P ]
                                               H log log  Q log P 0
                                                      log P

Fix this quantity P 0 . If log Q
                           log P
                                  is large enough, we conclude from the prime number
theorem that
                          X                               X P0
                                  #{I ∈ I : p0 6∈ PI } η           ,
                        0  0    0
                                                          H log P 0
                        p ∈[P ,2P ]
                                            0
and thus we have (35) for η X   P
                             H log P 0
                                       pairs (I, p0 ) with I ∈ I and p0 ∈ [P 0 , 2P 0 ].
                                            FOURIER UNIFORMITY                                           25

   As f is multiplicative, we have f (np0 ) = f (n)f (p0 ) unless n is a multiple of p0 . The
latter contributes at most O( pH0 P ) to the left-hand side of (35), which is negligible
compared to the right-hand side as P (and hence p0 ) is large. Thus we may freely
replace f (np0 ) by f (n)f (p0 ), and conclude that

                                        X                                  H
                                                  f (n)e(−αI np0 ) η                                 (36)
                                                                           P0
                                      n∈I/p0

               0
for η X      P
         H log P 0
                   pairs (I, p0 ). (Compare with Figure 2.)
   Let S denote the collection of these pairs (I, p0 ), and let I1 denote the collection
of all intervals of the form I/p0 where (I, p0 ) ∈ S. These are intervals in [0, 10X/P 0 ]
of length between H/2P 0 and H/P 0 . By a simple greedy algorithm, we may find
a subfamily I2 of these intervals which are separated by distance at least 2H/P 0 ,
with the property that every interval in I1 lies within a distance 3H/P 0 of one of the
intervals in I2 .
   By (36) and Lemma 2.2, we can associate to each interval I 0 ∈ I2 some real
numbers βI 0 ,1 , . . . , βI 0 ,K(I 0 ) for some K(I 0 ) η 1, with the property that, for each
pair (I, p0 ) ∈ S with I/p0 within 3H/P 0 of I 0 , one has
                                                            0
                                         0                  P
                                       p αI = βI 0 ,k + Oη      mod 1
                                                            H

for some 1 ≤ k ≤ K(I 0 ). By adding dummy values of β if necessary we may take
K = K(I 0 ) independent of I 0 . By the pigeonhole principle, we may find 1 ≤ k0 ≤ K
such that one has
                                                0
                           0                    P
                          p αI = βI 0 ,k0 + Oη       mod 1                       (37)
                                                H
               0
for η X        P
           H log P 0
                     triples (I, p0 , I 0 ) with (I, p0 ) ∈ S and I 0 ∈ I2 with p10 I within distance
3 PH0 of I 0 . If we let T be the collection of such triples, then one can find a subset I3
                                                                                                          0
of I2 of cardinality η X      H
                                  with the property that for each I 0 ∈ I3 , there are η logP P 0
pairs (I, p0 ) ∈ S with (I, p0 , I 0 ) ∈ T .
    For I 0 ∈ I3 , pick one of the pairs (I(I 0 ), p0 (I 0 )) ∈ S with (I(I 0 ), p0 (I 0 ), I 0 ) ∈ T , then
from (36) we have

                                  X                                                 H
                                                  f (n)e(−αI(I 0 ) np0 (I 0 )) η                     (38)
                                   1         0
                                                                                    P0
                             n∈ p0 (I 0 ) I(I )
26               KAISA MATOMÄKI, MAKSYM RADZIWILL, AND TERENCE TAO

while from (37) we have
                                                                           P0
                                                                               
                                 0                 0    0
                                p αI = p (I )αI(I 0 ) + Oη                          mod 1
                                                                           H
whenever (I, p0 ) ∈ S with (I, p0 , I 0 ) ∈ T .
  The interval I(I 0 )/p0 (I 0 ) lies in [0, 10X/P 0 ] with length between H/2P 0 and H/P 0 .
Let J(I 0 ) be an interval in [0, 10X/P 0 ] of length exactly H/P 0 containing I(I 0 )/p0 (I 0 ).
By Lemma 2.4 and (38), we have

                                           X
                                                                0                       H
                                                       f (n)e(−αJ(I 0 ) n) η
                                                                                        P0
                                      n∈J(I 0 )

for some real number
                                                                                   P0
                                                                                       
                                      0          0 0
                                     αJ(I 0 ) = p (I )αI(I 0 ) + Oη                          .
                                                                                   H
In particular
                                                                      P0
                                                                          
                                      0      0
                                     p αI = αJ(I 0 ) + Oη                       mod 1
                                                                      H
whenever (I, p0 ) ∈ S with (I, p0 , I 0 ) ∈ T .
  Setting I 0 to be a 500H/P 0 -separated collection of  X/H intervals of the form
J(I 0 ) with I 0 ∈ I3 , we obtain the claim.                                      
     We are now ready to prove the main result of this section.
Proposition 3.2. Let X ≥ 2, θ ∈ (0, 1), η > 0, and ρ ∈ (0, 1/8). Let f : N → C be
a multiplicative function with |f | ≤ 1. Suppose that, for H = X θ , we have
                     Z 2X          X
                          sup            f (n)e(−αn) dx ≥ ηHX.
                            X        α
                                             x<n≤x+H

Let ε ∈ (0, ρ/100) be sufficiently small depending on θ and η, and assume X is
                                                                                         2
sufficiently large depending on θ, η, ρ, and ε. Then there exist P 0 , P 00 ∈ [X ε , X ε ],
                                    00
an ( P X          H
       0 P 00 , P 0 P 00 )-family I    of intervals of cardinality  X/H, and a real number αI0000
associated to each I 00 ∈ I 00 such that
                                          X                                      H
                                                   f (n)e(−αI0000 n) η
                                          n∈I 00
                                                                                P 0 P 00
                                                                       0
for all I 00 ∈ I 00 . Furthermore, there exist η ( logP P 0 )2 X H
                                                                    quadruples (I100 , I200 , p01 , p02 ) with
I100 , I200 distinct intervals in I 00 and p01 , p02 distinct primes in [P 0 , 2P 0 ], such that I100 lies
                                         FOURIER UNIFORMITY                                                     27

                      p0
                       2 00
within 50 P H
            0 P 00 of p0 I2 , and such that
                       1

                                                                (P 0 )2 P 00
                                                                              
                           p02 αI00100 − p01 αI00200 = Oη                          mod p00                    (39)
                                                                   H
             00
for η logP P 00 primes p00 ∈ [P 00 /2, P 00 ].
Proof. By Lemma 2.1, one can find (X, H)-family I of intervals of cardinality 
ηX/H and a real number αI associated to each I ∈ I such that
                                       X
                                              f (n)e(−αI n)  ηH
                                       n∈I
                                                                                             2
for all I ∈ I. Applying Proposition 3.1, one can find P 0 ∈ [X ε , X ε ], an ( PX0 , PH0 )-
family I 0 of intervals of cardinality η X/H, and a real number αI0 0 associated to
each I 0 ∈ I 0 , such that
                                X                        H
                                      f (n)e(−αI0 0 n) η 0
                                n∈I 0
                                                         P
                                                                                                      0
for all I 0 ∈ I 0 . Furthermore, for each I 0 ∈ I 0 , one can find η logP P 0 pairs (I, p0 ),
where I is an interval in I and p0 is a prime in [P 0 , 2P 0 ], such that I/p0 lies within
3 PH0 of I 0 and
                                               0
                              0       0         P
                             p αI = αI 0 + Oη           mod 1.
                                                H
                                                                                                          2
  By a second application of Proposition 3.1, one can find P 00 ∈ [(X/P 0 )ε , (X/P 0 )ε ],
                                    00
an ( P X          H
       0 P 00 , P 0 P 00 )-family I    of intervals of cardinality η X/H, and a real number αI0000
associated to each I 00 ∈ I 00 , such that
                                    X                                           H
                                             f (n)e(−αI0000 n) η                                             (40)
                                    n∈I 00
                                                                               P 0 P 00
                                                                                                 00
for all I 00 ∈ I 00 . Furthermore, for each I 00 ∈ I 00 , one can find η logP P 00 pairs (I 0 , p00 ),
where I 0 is an interval in I 0 and p00 is a prime in [P 00 /2, P 00 ], such that I 0 /p00 lies
                        00
within 3 P H 0 P 00 of I , and such that
                                                    0 00 
                                 00 0    00         PP
                               p αI 0 = αI 00 + Oη            mod 1.                            (41)
                                                     H
Also, since the I 0 are 500H-separated, we see that each prime p00 is associated to at
most one I 0 in this fashion (for a fixed choice of I 00 ). The above situation is depicted
in Figure 7.
28               KAISA MATOMÄKI, MAKSYM RADZIWILL, AND TERENCE TAO




         Figure 7. The relationship between the intervals I, I 0 , I 00 , primes
         p0 , p00 , and frequencies αI , αI0 0 , αI0000 .


  Note that if I 00 ∈ I 00 , then one can add an arbitrary integer to each real number αI0000
without affecting any of the above properties. In particular, if one adds an integer
with an appropriate residue class mod p00 , one can upgrade (41) to
                                                   0 00 
                               00 0     00         PP
                              p αI 0 = αI 00 + Oη          mod p00                    (42)
                                                    H

for any pair (I 0 , p00 ) appearing previously. By the Chinese remainder theorem, we
may thus select αI0000 so that (42) holds for all pairs (I 0 , p00 ) appearing previously.
                                                                                         0      00
   Combining the above properties, we see that we can find η logP P 0 logP P 00 X                   H
                                                                                                       quintu-
           0 00 0 00                           0     0   00          00   0
plets (I, I , I , p , p ), where I ∈ I, I ∈ I , I ∈ I , p is a prime in [P , 2P 0 ], p00 is       0

a prime in [P 00 /2, P 00 ], p10 I lies within 3 PH0 of I 0 , p100 I 0 lies within 3 P H            00
                                                                                       0 P 00 of I , and one

has the equations
                                                        0
                                     0       0           P
                                    p αI = αI 0 + Oη                mod 1
                                                         H
and
                                                           P 0 P 00
                                                                     
                                 00
                               p αI0 0 = αI0000 + Oη                      mod p00 .
                                                            H
                                             FOURIER UNIFORMITY                                                       29

Multiplying the first equation by p00 and combining with the second equation, we
conclude in particular that
                                             0 00 
                         0 00     00         PP
                        p p αI = αI 00 + Oη          mod p00 .
                                              H
                                                                                                   00
  The number of possible choices for (I, p00 ) is (trivially) at most logP P 00 X           H
                                                                                              . Applying
                                                                                            P0      00
the Cauchy-Schwarz inequality, we conclude that we can find η ( log P 0 )2 logP P 00 X                H
octuplets (I, I10 , I20 , I100 , I200 , p01 , p02 , p00 ), where
     • I ∈ I, I10 , I20 ∈ I 0 , I100 , I200 ∈ I 00 ;
     • p01 , p02 are primes in [P 0 , 2P 0 ], and p00 is a prime in [P 00 /2, P 00 ];
     • For i = 1, 2, p10 I lies within 3 PH0 of Ii0 , and p100 Ii0 lies within 3 P H            00
                                                                                     0 P 00 of Ii .
                               i
     • We have                                                    0 00 
                                       0 00               00       PP
                                    p1 p αI = αI100 + Oη                  mod p00                    (43)
                                                                    H
       and                                                        0 00 
                                      0 00               00        PP
                                   p2 p αI = αI200 + Oη                   mod p00 .                  (44)
                                                                    H
  See Figure 8.
  Multiplying (43) by p02 and (44) by p01 and then subtracting, we see that
                                                                 0 2 00 
                                  0 00             0 00           (P ) P
                                p2 αI100 − p1 αI200 = Oη                   mod p00 .                 (45)
                                                                     H
Also, p01 I10 lies within 6H of p01 p00 I100 and p02 I20 lies within 6H of p02 p00 I200 , so by the triangle
inequality p01 p00 I100 and p02 p00 I200 lie at distance at most 24H from each other. Hence,
                                        p0
on dividing by p01 p00 , I100 and p02 I200 lie at distance at most 48 P H      0 P 00 from each other. In
                                         1
                      0    0              00    00                     0     0
particular, if p1 = p2 , then I1 = I2 , and similarly I1 = I2 . As a consequence, the
                                                                           0     00                                     2
number of octuplets with this property is at most O( logP P 0 logP P 00 X             H
                                                                                        ). Since P 0 ≥ X ε
and X is sufficiently large depending on ε, the contribution of this case is thus
                                                   0       00
negligible, so that there are η ( logP P 0 )2 logP P 00 X    H
                                                                octuplets (I, I10 , I20 , I100 , I200 , p01 , p02 , p00 )
with p01 6= p02 .
   Observe that if I100 , I200 , p01 , p02 are fixed, then I, I10 , I20 are completely determined by
                                                                                                                   00
p00 thanks to the separation properties of I and I 00 ; in particular, there are O( logP P 00 )
ways to complete the quadruplet (I100 , I200 , p01 , p02 ) to an octuplet. Similarly, I100 is com-
pletely determined by I200 , p01 , p02 (since there is at most one interval in I 00 that lies
                           p02 00                                                             00 00 0            0
within 48 P H  0 P 00 from p0 I2 ). Thus the number of eligible quadruplets (I1 , I2 , p1 , p2 ) is
                              1
         0                                                               0
O(( logP P 0 )2 X
                H
                  ). We conclude that there exist η ( logP P 0 )2 X
                                                                   H
                                                                     quadruplets (I100 , I200 , p01 , p02 ),
                                                                     00
each of which can be completed to an octuplet in η logP P 00 ways. In particular, for
30              KAISA MATOMÄKI, MAKSYM RADZIWILL, AND TERENCE TAO




        Figure 8. The relationship between the intervals I, I10 , I20 , I100 , I200 ,
        primes p01 , p002 , p00 , and frequencies αI , αI0000 , αI0000 . Some frequencies are
                                                           1        2
        omitted from the figure to reduce clutter. If this situation occurs for
        many values of p00 , we draw a dashed line from I100 to I200 labeled by
        p01 /p02 . Compare with Figure 4.
                                                 00
such a quadruplet, (45) holds for η logP P 00 choices of p00 (recalling that I, I10 , I20 are
completely determined by the remaining coefficients of the octuplet). The claim
follows.                                                                                    

                                4. Local structure of α00
   We now analyse the structure of the function α00 appearing in Proposition 3.2.
The main result of this section asserts that αI0000 locally behaves like xT00 with T “not
                                                                              I
too large” (and up to a shift aq with small denominator), where xI 00 denotes the left
endpoint of the interval I 00 . Crucially, T will not vary much with I 00 , at least “locally”.
It is here that we will rely on the hypothesis H = X θ that H is of polynomial size
in X.
Proposition
          4.1.       Let θ, η, ρ, X, H, f, ε, P 0 , P 00 , I 00 , α00 be as in Proposition 3.2. Then,
                   2
            P0
for ε X
       H  log P 0
                       of the pairs (I100 , I200 ) of intervals in (I 00 )2 , there exist a natural
                                        FOURIER UNIFORMITY                                               31

number
                                                1 ≤ q  H ρ,
integers a1 , a2 , a real number
                                                         X2
                                           T θ,η,ε,ρ         ,
                                                        H 2−ρ
                                                                                     00
and a set P(I100 , I200 ) of primes in [P 00 /2, P 00 ] of cardinality θ,η,ε,ρ logP P 00 such that
                                                                   
          00        T        aj   Y
                                            00                  1               Y
         αIj00 =          +                p + Oθ,η,ε,ρ         1−ρ
                                                                      mod                  p00
                   xIj00     q 00    00 00
                                                             H               00      00 00
                                p ∈P(I1 ,I2 )                                   p ∈P(I1 ,I2 )

for j = 1, 2. Furthermore, for each such pair, there exist primes p01 , p02 ∈ [P 0 , 2P 0 ]
                                           p02 00
such that I100 lies within 100 P H
                                 0 P 00 of p0 I2 , and such that
                                                1

                                          p02 a1 = p01 a2 mod q.                                      (46)
Proof. Let θ, η, ρ, X, H, f, ε, P 0 , P 00 , I 00 , α00 be as in Proposition 3.2. Thus for instance
we now have P 00 , P 0 ≤ H ρ/100 . Henceforth we allow implied constants to depend on
θ, η, ε, ρ. We abbreviate
                                                               X
                                           N := #I 00 
                                                               H
for the cardinality of I 00 and d for the quantity
                                                              2
                                                        P0
                                                    
                                          d :=                   ,
                                                      log P 0
thus the number of quadruples (I100 , I200 , p01 , p02 ) in Proposition 3.2 is  dN . We con-
struct a graph G = (V, E) whose vertices are just the intervals in I 00 (thus V = I 00
has N vertices), and the edges e are those unordered pairs e = {I100 , I200 } for which
there exist distinct primes p01 , p02 in [P 0 , 2P 0 ] such that p01 I100 lies within 100 PH00 of p02 I200 ,
and such that                                        0 2 00 
                             0 00      0 00            (P ) P
                           p2 αI100 − p1 αI200 = Oη                  mod p00                       (47)
                                                          H
                                                                                00
for a set P(e) of primes p00 in [P 00 /2, P 00 ] of cardinality  logP P 00 (note that these
properties are symmetric in I100 and I200 ). Observe that the primes p01 , p02 are uniquely
determined by I100 , I200 , for if there was another pair of primes p03 , p04 with the same
                  p0             p0
properties, then p20 I200 and p40 I200 would lie within 200 P H 0 P 00 of each other, which implies
                   1               3
that
                                        p02 p04
                                                         
                                                          H
                                          0
                                             − 0 =O           ,
                                        p 1 p3            X
                                                                                                          2
but if (p01 , p02 ) 6= (p03 , p04 ) then the left-hand side has magnitude at least p01p0  X −2ε ,
                                                                                    3 1
which leads to a contradiction if ε is small enough and X is large enough. Thus, by
32                KAISA MATOMÄKI, MAKSYM RADZIWILL, AND TERENCE TAO

Proposition 3.2, we see that the number of edges in G is  dN . On the other hand,
the degree of each vertex in G is O(d), since for fixed I100 there are only O(d) choices
for p01 and p02 , and I200 is uniquely determined by these choices. Thus G has  dN
edges and the mean degree of G is  d.
   At present, the sets P(e) of primes associated to each edge e are large, but the
intersections P(e1 ) ∩ · · · ∩ P(ek ) could be small. This will cause difficulties later.
To get around this problem we use a random refinement trick of Gowers [8]. Let p00
be a prime in [P 00 /2, P 00 ] selected uniformly at random, and let G = (V, E) be the
subgraph of G consisting of the same vertex set V as G, and with the edge set E
consisting of all edges e ∈ E with P(e) containing p. By the prime number theorem,
each edge has probability  1 of lying in G, so by linearity of expectation the
expected number of edges in G is  dN . In particular, we see that with probability
 1, the random graph G has  dN edges. Of course, G has maximum degree
O(d) since it is a subgraph of G. As we shall see later, the advantage of working with
G instead of G is that the intersections P(e1 ) ∩ · · · ∩ P(ek ) have a high probability
of being large when e1 , . . . , ek are all constrained to lie in G.
   If A is the adjacency matrix of G, then by the preceding discussion we have
1T A1  dN (where 1 denotes the all-ones column vector) with probability  1.
By the Blakley-Roy inequality [2], we now see that for any natural number k, we
have 1T Ak 1 k dk N with probability  1. That is to say, with probability  1,
                                                                                00
the number of (k + 1)-tuples (I000 , . . . , Ik00 ) in V k+1 such that {Ij00 , Ij+1 } ∈ E for j =
                        k
0, . . . , k − 1 is k d N .
   Now let k be the first even integer for which
                                                  dk ≥ N 2 · d.
Then (since P 0 , P 00 ≤ X ε ) we have k = O(1) and
                                             N 2 d ≤ dk ≤ N 2 d3 .                                         (48)
In particular, we may allow implied constants to depend8 on k. From the preceding
discussion, with probability  1, the number of (k + 2)-tuples
                                 00               00     00             00
                               (Ik/2,1 , . . . , I0,1 , I0,2 , . . . , Ik/2,2 ) ∈ V k+2                    (49)
             00     00         00     00          00     00
such that {Ij,1  , Ij+1,1 }, {Ij,2 , Ij+1,2 }, {I0,1 , I0,2 } ∈ E for j = 0, . . . , k/2−1 is  dk+1 N .
This situation is depicted in Figure 9.
                                                                      00       00     00     00
   The number of possible choices for the quadruplet (Ik/2,1              , I0,1   , I0,2 , Ik/2,2 ) is O(dN 3 ),
                                         00       00     00                 00
since there are N 3 choices for Ik/2,1         , I0,1 , Ik/2,2 , and once I0,1    is fixed there are O(d)
              00
choices for I0,2 . Thus by the Cauchy-Schwarz inequality, with probability  1, we
have there are  (dk+1 N )2 /(dN 3 ) = d2k+1 /N pairs of such tuples with a common
     8If one were to extend the arguments here to smaller values of H, one would need to pay more
attention as to the precise dependence of these constants on k.
                                         FOURIER UNIFORMITY                                              33




         Figure 9. A tuple (49) in G with k = 4. Here we discard any
         orientation or labeling of the edges of G.

             00       00     00      00
quadruplet (Ik/2,1 , I0,1 , I0,2 , Ik/2,2 ). Relabeling, we conclude9 that with probability
 1, the number of 2k-tuples
                                I~00 := (I 00 )j∈{0,1,...,k−1};i=1,2 ∈ V 2k
                                           j,i                                        (50)
            00     00         00     00
such that {Ij,i , Ij+1,i }, {I0,1 , I0,2 } ∈ E for j = 0, . . . , k − 1, i = 1, 2 is  d2k+1 /N ,
                                                    00      00
where we adopt the periodic convention Ik,i            = I0,i    for i = 1, 2. In particular, by
definition of G, we have
                                     00     00                 00     00
                             p ∈ P({I0,1 , I0,2 }) and p ∈ P({Ij,i , Ij+1,i })
for all j = 0, 1, . . . , k − 1 and i = 1, 2. The situation is depicted in Figure 10.
   Call the 2k-tuples I~00 of the above form good, thus there are  d2k+1 /N good
                                                  00    00
tuples. Given a good tuple, to each edge {Ij,i       , Ij+1,i } we have (uniquely determined)
                                                                                         p0
                                                      00
primes p01,j,i , p02,j,i in [P 0 , 2P 0 ], such that Ij+1,i lies within 100 P H          1,j,i 00
                                                                              0 P 00 of p0     Ij,i for j =
                                                                                         2,j,i
0, 1, . . . , k − 1 and i = 1, 2; we also have primes p01 , p02 ∈ [P 0 , 2P 0 ] such that I0,2       00
                                                                                                        lies
                           0
                          p1 00
                 H
within 100 P 0 P 00 of p0 I0,1 . Again, we refer the reader to Figure 10 for a depiction of
                         2

   9This bound also follows from the work of Sidorenko [30], as the graph consisting of two k-cycles
(with k even) connected by an edge is one of the confirmed cases of Sidorenko’s conjecture.
34              KAISA MATOMÄKI, MAKSYM RADZIWILL, AND TERENCE TAO




        Figure 10. A tuple (50) in G with k = 4, with the orientation and
        labels restored. Compare with Figure 5.

                                                              00
these relationships. Iterating the former claim, we see that I0,i lies within O( P H
                                                                                   0 P 00 )
      Qk
           p0
           2,j,i 00
from Qj=1
      k    0     I0,i for i = 1, 2, thus
      j=1 p1,j,i
                         Qk       0
                            j=1 p2,j,i
                                                             
                                                H              1
                         Qk            = 1 + O     = 1 + Oε,k     .
                                p 0
                            j=1 1,j,i
                                                X              N
Multiplying out, we conclude that
                  k                 k
                  Y                 Y                 (P 0 )k    dk/2 (log P 0 )k
                        p02,j,i −         p01,j,i            ε                  ε d2    (51)
                  j=1               j=1
                                                       N                N
thanks to (48).
    We now eliminate some degenerate cases. Suppose kj=1 p02,j,1 − kj=1 p01,j,1 = 0.
                                                               Q            Q
Then, by the fundamental theorem of arithmetic, the p01,j,1 are a permutation of
the p02,j,1 . By the prime number theorem, the total number of possibilities for the
p01,j,1 , p02,j,1 is then at most k (P 0 / log P 0 )k  dk/2 . By Lemma 2.6, there are
O(dk /N ) choices for p01,j,2 , p02,j,2 , and finally there are O(d) possibilities for p01 , p02
                                  00                    00
and O(N ) possibilities for I0,1     . All the other Ij,i  are uniquely determined by this
                                      FOURIER UNIFORMITY                                            35
                                             Qk    0
                                                             Qk    0
data, so the number of tuples with            j=1 p2,j,1 −    j=1 p1,j,1 = 0 is

                                           dk
                                      dk/2   dN = d3k/2+1
                                           N
                                      2k+1
which is negligible compared to d          /N thanks to (48). Thus there are  d2k+1 /N
good tuples for which j=1 p02,j,1 − kj=1 p01,j,1 does not vanish. Repeating this argu-
                        Qk              Q

ment for kj=1 p02,j,2 − kj=1 p01,j,2 , we may see that with probability  1, there are
          Q              Q

 d2k+1 /N good tuples for which kj=1 p02,j,i − kj=1 p01,j,i 6= 0 for i = 1, 2. We will
                                        Q                 Q
call such good tuples non-degenerate.
  Another case we would like to exclude is when the set
                            \k \
                      ~00
                   P(I ) :=                   00
                                        P({Ij,i     00
                                                 , Ij+1,i          00
                                                          }) ∩ P({I0,1    00
                                                                       , I0,2 })
                                 j=1 i=1,2

is unusually small, say
                                                          P0
                                        #P(I~00 ) ≤ δ                                              (52)
                                                        log P 0
for some small δ > 0 depending on ε, θ, ρ, η) to be chosen later. Define a candidate tu-
ple to be a tuple I~00 = (Ij,i
                            00                                      00
                               )j∈{0,1,...,k−1};i=1,2 ∈ V 2k with {I0,1    00
                                                                        , I0,2          00
                                                                               } ∈ E, {Ij,i    00
                                                                                            , Ij+1,i }∈
                                                                           Qk                  k
E for j = 0, . . . , k − 1, and i = 1, 2 obeying (52) and with j=1 p2,j,i − j=1 p01,j,i
                                                                                   0
                                                                                           Q

non-vanishing for i = 1, 2. Observe that a tuple I~00 is a non-degenerate good tuple
obeying (52) precisely if it is a candidate tuple with p ∈ P(I~00 ). In particular, the
probability that a given candidate tuple is actually good is O(δ). On the other hand,
from two applications of Lemma 2.6, the number of candidate tuples is at most
                                                dk 2
                                 ε N × d × (       ) = d2k+1 /N,
                                                N
and so, by linearity of expectation, the expected number of good tuples obeying
(52) is O( δd2k+1 /N ). On the other hand, with probability  1 we have  d2k+1 /N
non-degenerate good tuples. With X large enough (which makes P 0 large compared
with η, ε, ρ, θ), and setting δ sufficiently small depending on η, ε, ρ, θ, we thus have
with positive probability that there are  d2k+1 /N non-degenerate good tuples I~00
for which
                                                        P0
                                      #P(I~00 ) > δ           .                             (53)
                                                      log P 0
Let us call such tuples very good, thus we can find a deterministic choice of p such
that there are  d2k+1 /N very good tuples.
   Henceforth p is chosen deterministically as above. Let I~00 be a very good tuple,
with attendant primes p01,j,i , p02,j,i and p01 , p02 for j ∈ {0, 1, . . . , k − 1} and i = 1, 2.
36             KAISA MATOMÄKI, MAKSYM RADZIWILL, AND TERENCE TAO

From (47), (53) we see that there is a collection P(I~00 ) of primes in [P 00 /2, P 00 ] of
cardinality
                                                            P0
                                           #P(I~00 ) 
                                                          log P 0
such that                                                  0 2 00 
                       0      00       0       00           (P ) P
                                00 − p1,j,i αI 00
                      p2,j,i αIj,i                     =O            mod p00
                                                 j+1,i          H
and                                                      0 2 00 
                           0 00          0 00             (P ) P
                         p2 αI0,100 − p1 αI 00 = Oη                mod p00
                                             0,2             H
for all p00 ∈ P(I~00 ), j ∈ {0, 1, . . . , k − 1}, and i = 1, 2. For X large enough, the
                    0 2   00
error term Oη ( (P H       ) P
                                ) is less than 1/2 in magnitude; thus the nearest integer to
p2,j,i αI 00 − p1,j,i αI 00 is divisible by all the primes in P(I~00 ), and is hence divisible by
 0      00      0      00
          j,i            j+1,i
the product Q := p00 ∈P(I~00 ) p00 of all the primes. Thus
                           Q
                                                               0 2 00 
                              0     00      0      00          (P ) P
                                      00 − p1,j,i αI 00
                            p2,j,i αIj,i                   =O            mod Q
                                                     j+1,i        H
for all j = 0, 1, . . . , k − 1 and i = 1, 2 and similarly
                                                      0 2 00 
                             0 00        0 00           (P ) P
                                   00 − p1 αI 00 = O
                            p2 αI0,1                             mod Q.                (54)
                                             0,2           H
We multiply the former equation by 0≤j 0 <j p01,j 0 ,i j<j 0 <k p02,j 0 ,i and sum the tele-
                                                  Q            Q
scoping series for j = 0, . . . , k − 1 to conclude that
              k−1
                           !             k−1
                                                   !           0 k+1 00 
              Y
                      0        00
                                         Y
                                                0    00        (P ) P
                   p2,j,i αI0,i  00 −                  00 = O
                                             p1,j,i αI0,i                  mod Q.
              j=0                        j=0
                                                                   H

This implies that
                                        (P 0 )k+1 P 00
                                                                    
                               qi αI000,i
                                      00 = O                             mod Q              (55)
                                              H
for i = 1, 2, where qi is the non-negative integer
                                           k
                                           Y                   k
                                                               Y
                                   qi :=           p02,j,i −         p01,j,i .
                                           j=1                 j=1

As I~00 is non-degenerate, qi is strictly positive. From (51) we conclude that
                                           1 ≤ qi  d2 .
                                 FOURIER UNIFORMITY                                                        37

From (55), we may write
                                                (P 0 )k+1 P 00
                                                                
                                bi
                       αI000,i
                           00 =    Q+O                               mod Q                               (56)
                                qi                    H
for i = 1, 2 and some integers b1 , b2 . Inserting this into (54), we conclude that
                                               0 k+2 00 
                         0 b1      0 b2           (P ) P
                        p2 − p1           Q=O                  mod Q
                           q1        q2               H
or equivalently                               0 k+2 00 
                           0 b1      0 b2      (P ) P
                         p2 − p1 = O                        mod 1.
                             q1        q2         QH
The left-hand side is a rational of denominator at most O(d4 ). Meanwhile, since
                                0
P(I~00 ) has cardinality  logP P 0  X ε / log X, we have
                                          2


                                                         2
                                     Q  exp(cX ε )                                                      (57)
                                                                             (P 0 )k+2 P 00
for some c > 0 depending on ε, ρ, θ, η. Thus the expression O(                   QH
                                                                                              ) is far smaller
than the denominator on the left-hand side, and hence
                                 b1      b2
                             p02 − p01 = 0 mod 1.
                                 q1      q2
Since we can modify qb11 and qb22 by arbitrary integers without affecting the claimed
properties, and p01 , p02 are distinct, we may in fact assume without loss of generality
that
                                         b1    b2
                                      p02 − p01 = 0,
                                         q1    q2
                        ap0
thus we can write qbii = q i for some integer a, some 1 ≤ q  d2 , and for i = 1, 2. In
particular, from (56) we have
                                ap0i
                                           0 k+1 00 
                         00                (P ) P
                           00 =
                        αI0,i        Q+O                mod Q
                                 q              H
for i = 1, 2; from (48) we thus have
                                ap0i
                                                    
                                                   X
                       αI000,i
                           00 =      Q+O      3 00
                                             d P · 2 mod Q.
                                q                  H
We can then write
                                         ap01     T
                              αI000,1
                                  00 =        Q+       mod Q
                                          q      xI0,1
                                                   00


for some real number
                                           X2
                                                            
                                                3   00
                                 T =O d P · 2                    ,                                       (58)
                                           H
38              KAISA MATOMÄKI, MAKSYM RADZIWILL, AND TERENCE TAO

and we then write
                                         ap02     T
                              αI000,2
                                  00 =        Q+       + θ mod Q
                                          q      xI0,2
                                                   00



for some real number
                                                
                                          3 00 X
                                     θ=O d P · 2 .                                     (59)
                                               H
Inserting these equations back into (54), we obtain
                                   !
                       p02    p01
                                                 0 2 00 
                                        0        (P ) P
                  T        −         − p1 θ = O            mod Q.
                     xI0,1
                        00   xI0,2
                               00                   H

       00                              p0
                                        1 00
Since I0,2 lies within 100 P H
                             0 P 00 of p0 I0,1 , we have
                                         2


                                         p01
                                                                       
                                                              H
                                    00 =
                                  xI0,2      xI 00 + O
                                         p02 0,1             P 0 P 00

and hence by (58)
                                               (P 0 )2 P 00
                                          3                
                                          d
                             p01 θ = O       +                mod Q.
                                          H       H
Combining this with (59), (57) we conclude that

                                          (P 0 )2 P 00
                                    3                 
                                     d
                             θ=O        +
                                     H       H
and thus
                             ap0i                       (P 0 )2 P 00
                                                   3                
                                        T          d
                    αI000,i
                        00 =      Q+         +O       +                mod Q
                              q        xI0,i
                                         00        H       H
for i = 1, 2.
                                                             00    00
   Finally, by two applications of Lemma 2.6, each pair (I0,1   , I0,2 ) is associated to at
           dk
                 2                                     2k+1
most (O( N )) very good tuples; since there are  d         /N such tuples, the number
             00    00
of pairs (I0,1  , I0,2 ) that arise in this fashion is
                                                                            2
                              d2k+1 /N                             P0
                                                             
                                               X
                                   k    dN                                    .
                                ( dN )2        H                 log P 0

The claim follows.                                                                        
                                             FOURIER UNIFORMITY                                        39

                                  5. Global structure of α00
  Proposition 4.1 gives some control on α00 , but it is currently “local” because the
parameters T, q that arise in this control depend on the pair I100 , I200 . Fortunately, one
can use the “mixing” or “ergodicity” properties of the graph of such pairs to convert
this local control to global control. To do this we first need a lemma.
Lemma 5.1 (Mixing lemma). Let θ, η, X, H, f, ρ, ε, P 0 , P 00 , I 00 , α00 be as in Proposi-
tion 3.2. We allow implied constants to depend on θ, η, ρ, ε. Let A1 , A2 be two subsets
of I 00 . Then the number of quadruplets (I100 , I200 , p01 , p02 ) with I100 ∈ A1 , I200 ∈ A2 , p01 , p02
                                                               p02 00
primes in [P 0 , 2P 0 ], and I100 lying within 100 P H
                                                     0 P 00 of p0 I2 is
                                                                 1
                                        2                                     2
                                 P0                                     P0
                                                                  
                         H
      (#A1 )(#A2 )                               1/2
                                          + (#A1 ) (#A2 )       1/2
                                                                                 log−100 P 0 .    (60)
                         X log P 0                                    log P 0

        R ψ : R → R be a non-negative Schwartz function whose Fourier
Proof. Let                                                                      transform
                                                                          00 00
ψ̂(ξ) := R ψ(x)e(−xξ) dx is supported on [−1, 1]. Observe that if (I1 , I2 , p01 , p02 ) is a
quadruplet of the required form, then
                                                                  
                      X                               0        0
                                                                 
                 ψ       log xI200 − log xI100 + log p2 − log p1      1.
                      H
Thus it will suffice to bound the expression
                                                                                
              X            X         X                               0        0
                                                                                
                                 ψ      log xI200 − log xI100 + log p2 − log p1
          00     00    0 0  0  0
                                     H
           I1 ∈A1 ,I2 ∈A2 p1 ,p2 ∈[P ,2P ]
                                                        R
by (60). Using the Fourier inversion formula ψ(x) = R ψ̂(ξ)e(xξ) dξ, we can write
this expression as
Z          X X                    ! X                                             2
                                             X                   X        X
   ψ̂(ξ)       e     · ξ log xI 00   ·     e   · ξ log xI 00 ·        e     · ξ log p0    dξ,
 R         00
          I ∈A
                   H                   00
                                      I ∈A
                                             H                 0  0 0
                                                                          H
                 1                                      2                           p ∈[P ,2P ]

which after a change of variable can be bounded by
                              Z
                           H
                                    |S1 (ξ)||S2 (ξ)||T (ξ)|2 dξ
                           X |ξ|≤ XH
where                                                   X
                                       Si (ξ) :=                  e(ξ log xI 00 )
                                                    I 00 ∈A   i

for i = 1, 2 and                                            X
                                             T (ξ) :=                    p2πiξ .
                                                        p∈[P 0 ,2P 0 ]
40                   KAISA MATOMÄKI, MAKSYM RADZIWILL, AND TERENCE TAO

From the triangle inequality we have
                                              sup |Si (ξ)|  #Ai
                                              ξ∈R

while from the large sieve inequality (Lemma 2.3) we have
                              Z
                                                     X
                                      |Si (ξ)|2  #Ai .
                               |ξ|≤ X
                                    H
                                                     H

Furthermore from [22, Lemma 2] we have
                                P0
                                                          
                                         1          −100 0
                      T (ξ)                  + log     P .
                              log P 0 1 + |ξ|
for |ξ| ≤ X
          H
            . The claim now follows from the triangle inequality and the Cauchy-
Schwarz inequality.                                                           

  Using this lemma, we have the following tool for converting local approximate
constancy to global approximate constancy. The corollary will allow us to show that
many of the intervals I 00 in Proposition 4.1 share essentially same values of T and q.
Corollary 5.2 (Approximate ergodicity). Let θ, η, X, H, f, ρ, ε, P 0 , P 00 , I 00 , α00 be as in
Proposition 3.2. We allow implied constants to depend on θ, η, ρ, ε. Let M, K, δ > 0.
Let (Z, d) be a metric space, and let r > 0 be a radius with the property that every
ball of radius 5r/2 can contain at most M disjoint balls of radius r/2. For each
I 00 ∈ I 00 , let F(I 00 ) be a finite subset of Z with cardinality at most K. Let S be a
collection of sextuples (I100 , I200 , z1 , z2 , p01 , p02 ) with I100 , I200 ∈ I 00 with z1 ∈ F(I100 ), z2 ∈
F(I200 ), d(z1 , z2 ) ≤ r, and p01 , p02 distinct primes in [P 0 , 2P 0 ] with I100 lying within
                 p02 00
100 P H0 P 00 of p0 I2 . Suppose that
                 1


                                       #S ≥ δ(X/H)(P 0 / log P 0 )2 .                                           (61)
Then either
                                   M K3
                                           log100 P 0                                  (62)
                                     δ
or else there exists z0 ∈ Z and a collection T of pairs (I 00 , z) with I 00 ∈ I, z ∈ F(I 00 ),
and d(z, z0 ) ≤ 2r such that
                                              δ X
                                   #T              ,
                                           M K3 H
                                       2
and such that there are  MδK 4 X          H
                                             (P 0 / log P 0 )2 sextuples (I100 , I200 , z1 , z2 , p01 , p02 ) ∈ S such
that (I100 , z1 ), (I200 , z2 ) both lie in T .
                                                 FOURIER UNIFORMITY                                             41

Proof. For technical reasons we first need to refine the set S. Let T0 be the set of all
pairs (I100 , z1 ) with I100 ∈ I 00 and z1 ∈ F(I 00 ). From (61) we have
                               X
                                      N (I100 , z1 ) ≥ δ(X/H)(P 0 / log P 0 )2
                               (I100 ,z1 )∈T0

where
                  N (I100 , z1 ) := #{(I200 , z2 , p01 , p02 ) : (I100 , I200 , z1 , z2 , p01 , p02 ) ∈ S}.
We have #T0 ≤ 10KX/H. We conclude that there is a subset T1 of T0 with
                                                                     δ
                                          N (I100 , z1 )              (P 0 / log P 0 )2                      (63)
                                                                     K
for all (I100 , z1 ) ∈ T1 , such that
                               X
                                     N (I100 , z1 )  δ(X/H)(P 0 / log P 0 )2 .                               (64)
                              (I100 ,z1 )∈T1

  Let Ω be a maximal r-separated net in Z, thus every point in Z lies within distance
r of at least one point in Ω. From (64) and the triangle inequality we conclude that
          X          X                 X
                                                  1  δ(X/H)(P 0 / log P 0 )2 .  (65)
           z0 ∈Ω (I200 ,z2 )∈T0 :z2 ∈B(z0 ,2r)          p01 ,p02 ∈[P 0 ,2P 0 ]
                  (I100 ,z1 )∈T1 :z1 ∈B(z0 ,r)              p0
                                                 dist(I100 , p02 I200 )≤100 P 0HP 00
                                                              1

If we define
                A1 (z0 ) := {I100 ∈ I 00 : ∃z1 ∈ B(z0 , r) such that (I100 , z1 ) ∈ T1 }
and
               A2 (z0 ) := {I200 ∈ I 00 : ∃z2 ∈ B(z0 , 2r) such that (I200 , z2 ) ∈ T0 }
then the left-hand side of (65) is bounded by
                             X X              X
                         K2                                                                              1
                                         z0 ∈Ω I100 ∈A1 (z0 )           p01 ,p02 ∈[P 0 ,2P 0 ]
                                               I200 ∈A2 (z0 )                  p0
                                                                   dist(I100 , p02 I200 )≤100 P 0HP 00
                                                                                1

which by Lemma 5.1 is bounded by
                        2  X
                  P0
              
            2                                           H
        K            0
                                 (#A1 (z0 ))(#A2 (z0 ))
                log P       z0 ∈Ω
                                                        X
                                    X                                     
                                                  1/2         1/2  −100 0
                                  +    (#A1 (z0 )) (#A2 (z0 )) log     P .
                                                      z0 ∈Ω
42               KAISA MATOMÄKI, MAKSYM RADZIWILL, AND TERENCE TAO

Any pair (I200 , z2 ) ∈ T0 can contribute to A2 (z0 ) only if B(z0 , r/2) is contained in
B(z2 , 5r/2). As the balls B(z0 , r/2) with z0 ∈ Ω are disjoint, we conclude that each
such pair contributes to at most M sets A2 (z0 ), and hence
                                       X                           X
                                              #A2 (z0 )  M K
                                      z0 ∈Ω
                                                                   H

and similarly
                                      X                            X
                                              #A1 (z0 )  M K        .
                                      z0 ∈Ω
                                                                   H

By Cauchy-Schwarz, we may thus bound the left-hand side of (65) by
                               2 
                           P0
                                                              
                    3X                           H      −100 0
              MK                   sup #A1 (z0 ) + log      P
                     H log P 0     z0 ∈Ω         X
and hence
                                               H                  δ
                             sup #A1 (z0 )       + log−100 P 0       .
                             z0 ∈Ω             X                 M K3
Thus, either (62) holds, or there exists z0 ∈ Ω with
                                                          δ X
                                        #A1 (z0 )              .
                                                         M K3 H
Suppose the latter claim is true. If we now let T2 denote the collection of those
(I100 , z1 ) ∈ T1 with I100 ∈ A1 (z0 ) and z1 ∈ B(z0 , r), then we have
                                                        δ X
                                           #T2               .
                                                       M K3 H
From (63) there exist  MδK 3 X     HK
                                      δ
                                        (P 0 / log P 0 )2 sextuples (I100 , I200 , z1 , z2 , p01 , p02 ) ∈ S
             00
such that (I1 , z1 ) ∈ T2 . Since z1 ∈ B(z0 , r) and d(z1 , z2 ) ≤ r, we have z2 ∈ B(z0 , 2r).
Thus, if we take T to be the collection of those (I100 , z1 ) ∈ T0 with I100 ∈ A2 (z0 ) and
z1 ∈ B(z0 , 2r), we obtain the claim.                                                                      

  Let θ, η, X, H, f, ε, ρ, P 0 , P 00 , I 00 , α00 be as in Proposition 3.2. Let δ > 0 be a small
quantity (depending on θ, η, ε) which we will specify in a moment. Inspired by
Proposition 4.1, define a good quadruple to be a quadruple (I 00 , T, q, a), where I 00 is
an interval in I 00 ∈ I 00 , T is a real number with
                                                       1 X2
                                              |T | ≤           ,                                      (66)
                                                       δ H 2−ρ
                                    FOURIER UNIFORMITY                                          43

q is a natural number with 1 ≤ q ≤ H ρ /δ, a ∈ {0, . . . , q − 1} is coprime to q, and
there exists a real number θ with |θ| ≤ 1δ H 1−ρ 1
                                                    such that
                                T      a Y 00                  Y
                      αI0000 =       +          p + θ mod            p00           (67)
                               xI 00   q p00 ∈P               p00 ∈P
                                                                           00
for a set P of primes in [P 00 /2, P 00 ] of cardinality at least δ logP P 00 . Proposition 4.1
guarantees that once δ is chosen sufficiently small in terms of θ, ε, η, ρ there exist
 X/H good quadruples. Throughout we fix δ sufficiently small so that this holds;
in particular, implied constants may now depend on δ in addition to θ, ε, η, ρ.
   We have some limitations on how many good quadruples can be associated to a
single interval I 00 :
Proposition 5.3. Let δ, ρ be as above, and let I 00 be an interval in I 00 . Let K ≥ 2δ ,
and let (I 00 , Tj , qj , aj ) for j = 1, . . . , K be a collection of good quadruples. Then there
exist 1 ≤ j < j 0 ≤ K with the following properties:
     (i) qj = qj 0 .
    (ii) aj = aj 0 .
   (iii) Tj = Tj 0 + O HX
                                    
                                 1−ρ .


Proof. Without loss of generality we may take K = d 2δ e. For j = 1, . . . , K, let Pj be
the set of primes in [P 00 /2, P 00 ] associated to the good quadruple (I 00 , Tj , qj , aj ). Then
                                         K
                                                     !
                         X              X                     P 00        P 00
                                            1p00 ∈Pj ≥ Kδ           ≥ 2
                                                           log P 00     log P 00
                   p00 ∈[P 00 /2,P 00 ] j=1

and K
     P
           1Pj ≤ K  1/δ. From this and the prime number theorem we conclude
      Pj=1
        K                                         00
that j=1 1Pj ≥ 2 for at least  logP P 00 primes in [P 0 , 2P 0 ]; this implies that there
exist distinct indices j, j 0 ∈ {1, . . . , K} such that
                                                          P 00
                                        #(Pj ∩ Pj 0 )           .
                                                        log P 00
If one writes Q := p00 ∈Pj ∩Pj0 p00 , we then have
                    Q

                                                                2
                                Q  exp(cδ P 00 ) ≥ exp(cδ X ε )                              (68)
for some cδ > 0. On the other hand, from (67) one has
                                                     
                       00     Tj     aj           1
                     αI 00 =       + Q+O                mod Q                                 (69)
                             xI 00    qj        H 1−ρ
and                                                  
                      00     Tj 0    aj 0         1
                     αI 00 =       +      Q+O           mod Q.                                (70)
                             xI 00   qj 0       H 1−ρ
44                KAISA MATOMÄKI, MAKSYM RADZIWILL, AND TERENCE TAO

In particular,                                    2 
                             aj    aj 0             X
                           ( −          )Q = O             mod Q
                             qj    qj 0            H 2−ρ
which when combined with (68) (and noting that the denominator on the left-hand
side is at most Oδ (H 2ρ )) forces
                                    aj     aj 0
                                         −      = 0 mod 1.
                                    qj     qj 0
Since aj /qj and aj 0 /qj 0 are in lowest terms and in [0, 1), this implies that aj = aj 0
and qj = qj 0 . Subtracting (69) from (70), we conclude that
                                                   
                               Tj − Tj 0        1
                                         =O           mod Q;
                                 xI 00        H 1−ρ
                              2
since |Tj − Tj 0 | ≤ 2δ HX2−ρ , we conclude from (68) that
                                                         
                                     Tj − Tj 0        1
                                               =O           ,
                                       xI 00        H 1−ρ
and hence Tj − Tj 0 δ HX
                        1−ρ . The claim follows.                                                                 
     From the above proposition and the greedy algorithm, we conclude
Corollary 5.4. For each I 00 ∈ I 00 , there exists a set F(I 00 ) of triples (T, q, a) of
cardinality
                                                   2
                                     #F(I 00 ) ≤ ,
                                                   δ
                                    00
such that, for any good quadruple (I , T, q, a), there exists T 0 ∈ R such that (T 0 , q, a) ∈
F(I 00 ) and                                          
                                       0          X
                               T =T +O                   .
                                                 H 1−ρ
     On the other hand, Proposition 4.1 provides us with a large number of quadruples:
Proposition 5.5. Let δ be as above and X sufficiently large depending on δ and ε.
All implied constants may depend on ε, η, θ, ρ. Then, for  (X/H) · (P 0 / log P 0 )2 of
the pairs (I100 , I200 ) of intervals (I 00 )2 , there exist T1 , T2 , q 0 , a01 , a02 such that (T1 , q 0 , a01 ) ∈
F(I100 ) and (T2 , q 0 , a02 ) ∈ F(I200 ), and
                                                                 
                                                             X
                                          T2 = T1 + O                 .                                       (71)
                                                           H 1−ρ
Furthermore, for each such pair, there exist primes p01 , p02 ∈ [P 0 , 2P 0 ] coprime to q 0
                                           p02 00
such that I100 lies within 100 P H
                                 0 P 00 of p0 I2 , and such that
                                                  1

                                            p02 a01 = p01 a02 mod q 0 .                                       (72)
                                            FOURIER UNIFORMITY                                                45

Proof. This is almost immediate from Proposition 4.1; the main difficulty is that the
integers a, q provided by that proposition need not be coprime.
    We resolve this as follows. If I 00 ∈ I 00 and (T, q, a) ∈ F(I 00 ), then q has at most
      log X
O( log   P 00
              ) = Oε (1) prime factors in [P 00 /2, P 00 ]. Thus, for each I 00 ∈ I 00 , there are at
most O(1) primes that divide q for some (T, q, a) ∈ F(I 00 ).
                                                      0 2
    Proposition 4.1 provides us with  X           H
                                                          P
                                                      log P 0
                                                                  pairs (I100 , I200 ) of intervals (I 00 )2 ,
together with associated primes p01 , p02 , obeying the properties of that proposition. It
could happen that p01 or p02 divides q for some (T, q, a) in F(I100 ) or F(I200 ), but by
                                                                                                        P0
the preceding paragraph, the number of times this can happen is at most O( X                        H log P 0
                                                                                                              ),
                                                                                           0 2
which is a negligible portion when X is large enough. Thus for  X                      H
                                                                                              P
                                                                                            log P 0
                                                                                                      of the
above pairs, p01 or p02 do not divide any such q.
    From Proposition 4.1, we have
                                                                 
                                  00     T      aj            1
                                αIj00 =       + Q+O                  mod Q
                                        xIj00    q          H 1−ρ
for j = 1, 2, where Q := p00 ∈P(I 00 ,I 00 ) p00 . We write a1 /q in lowest terms as a01 /q 0 .
                                      Q
                                               1 2
Then (I100 , T, q 0 , a01 ) is a good quadruple and p01 , p02 do not divide q 0 . From (46) we
may thus also write a2 /q in lowest terms as a02 /q 0 and still have that (72) holds. Then
(I200 , T, q 0 , a02 ) is a good quadruple, and the claim follows from Corollary 5.4.                         
  Let Z be the collection of triples (T, q, a) with T ∈ R, q ≥ 1, and a coprime to q,
endowed with the metric10
                                         H 1−ρ                          1
                                               |T1 − T2 | + 1q1 6=q2 +
        d((T1 , q1 , a1 ), (T2 , q2 , a2 )) := c(δ)                       1a 6=a . (73)
                                           X                           100 1 2
and some sufficiently small constant c(δ) > 0 depending on δ (and thus ultimately
on θ, η, ρ, ε). Let S be the collection of sextuples
                                (I100 , I200 , (T1 , q 0 , a1 ), (T2 , q 0 , a2 ), p01 , p02 )
with I100 , I200 ∈ I 00 , (T1 , q 0 , a1 ) ∈ F(I100 ), (T2 , q 0 , a2 ) ∈ F(I200 ), and p01 , p02 distinct primes
                                                               p02 00
in [P 0 , 2P 0 ] with I100 lying within 100 P H                                                     0
                                                     0 P 00 of p0 I2 , with p1 , p2 coprime to q and obeying
                                                                 1
(72) and (71). In particular (for c(δ) sufficiently small) we have
                                                                                    1
                                    d((T1 , q 0 , a1 ), (T2 , q 0 , a2 )) ≤            .
                                                                                    10
   10The    1
                     term is present only to keep the metric Z from degenerating, but otherwise
           100 1a1 6=a2
plays no role in the argument; if one prefers, one could drop this term and observe that Corollary
5.2 also applies to degenerate metric spaces.
46                 KAISA MATOMÄKI, MAKSYM RADZIWILL, AND TERENCE TAO

From Proposition 5.5 we have #S  (X/H) · (P 0 / log P 0 )2 . Applying Corollary
                  1
5.2 with r = 10     , M = 100, K = 2δ , we conclude that there exists (T0 , q0 , a0 ) ∈ Z
and a collection T of quadruples (I 00 , T, q, a) with I 00 ∈ I, (T, q, a) ∈ F(I 00 ), and
d((T, q, a), (T0 , q0 , a0 )) ≤ 15 such that
                                                              X
                                                      #T        ,                                                  (74)
                                                              H
and there are  X       H
                           (P 0 / log P 0 )2 sextuples (I100 , I200 , (T1 , q1 , a1 ), (T2 , q2 , a2 ), p01 , p02 ) ∈ S
such that (I100 , T1 , q1 , a1 ), (I200 , T2 , q2 , a2 ) both lie in T .
   If (I 00 , T, q, a) ∈ T , then d((T, q, a), (T0 , q0 , a0 )) ≤ 51 , and hence by (73) we have
q = q0 and                                                           
                                                                 X
                                            T = T0 + O                  .                                           (75)
                                                               H 1−ρ
From (66) we thus have
                                                            X2
                                                    T0  2−ρ .                                                      (76)
                                                           H
   At present q0 obeys the bounds 1 ≤ q0  H ρ . We can improve the control on q0
significantly.
Proposition 5.6. q0  1.
Proof. Consider the graph G whose vertex set V is the set T as above, and whose
edge set E consists of pairs (I100 , T1 , q0 , a1 ), (I200 , T2 , q0 , a2 ) in T with
                               (I100 , I200 , (T1 , q0 , a1 ), (T2 , q0 , a2 ), p01 , p02 ) ∈ S
for some p01 and p02 . Then by the preceding dicussion G has  N vertices and  dN
edges, where N := X/H and d := (P 0 / log P 0 )2 .
   Now let k be the first even integer for which
                                                      dk ≥ N 2+ε .
Using the Blakley-Roy inequality as in Section 4, the number of ( k2 + 1)-tuples
                                            (Q0 , . . . , Qk/2 ) ∈ V k/2+1
such that {Qj , Qj+1 } ∈ E for 0 ≤ j < k/2 is  dk/2 N . The number of possible
values for the pair (Q0 , Qk/2 ) is O(N 2 ). Thus by the Cauchy-Schwarz inequality,
there are  dk pairs of k+2
                          2
                            -tuples of the above form with matching pairs (Q0 , Qk/2 ).
Relabeling, we conclude that there the number of k-tuples
                                               (Qj )j=0,1,...,k−1 ∈ V k
such that {Qj , Qj+1 } ∈ E for j = 0, 1, . . . , k − 1 is  dk . On the other hand, we may
upper bound the number of such tuples in a different way, as we will now do. Writing
                                         FOURIER UNIFORMITY                                                47

Qj = (Ij00 , Tj , q0 , aj ), we see from (72) that there are primes p0j,1 , p0j,2 ∈ [P 0 , 2P 0 ] such
that
                                       p0j,2 aj = p0j,1 aj+1 mod q0
                                                                                                    p0
(with the periodic convention ak = a0 ) and such that Ij00 lies within 100 P H          j,2 00
                                                                             0 P 00 of p0 Ij+1
                                                                                        j,1
for all j = 0, 1, . . . , k − 1. From the first claim we have
                                      k
                                      Y                k
                                                       Y
                                             p0j,2 =         p0j,1 mod q0 ,
                                      j=1              j=1

while from the second claim we have
                                     k                 k
                                     Y                 Y               (P 0 )k
                                             p02,j −         p01,j            .
                                     j=1               j=1
                                                                        N

by repeating the derivation of (51). By Lemma 2.6, the number of tuples of primes
                                                                                  k
(p01,1 , . . . , p0k,1 , p01,2 , . . . , p0k,2 ) obeying these constraints is  dN ( 1/2
                                                                                     1
                                                                                         + log1X )). There are
                                                                                      q0
 N choices for I100 , and this interval and the tuple of primes determine all the other
Ik00 . Since all the sets F(Ij00 ) have cardinality Oδ (1), we conclude that the number of
k-tuples (Qj )j=0,1,...,k−1 under consideration is
                                                            !
                                         dk    1        1
                                    N             +          .
                                         N q01/2 log X
Comparing the upper and lower bounds yields
                                               1           1
                                               1/2
                                                     +         1
                                              q0         log X
and the claim follows.                                                                                     
   From (67), (75) we see that whenever (I 00 , T, q0 , a) ∈ T , one has
                                                        
                         00     T0    b            1
                        αI 00 =      + +O                   mod 1                                        (77)
                                xI 00 q0         H 1−ρ
for some b ∈ Z/q0 Z. Since each I 00 is associated to O(1) quadruples in T , we conclude
from (74) that for ε,δ X/H intervals I 00 ∈ I 00 , one has (77) for some b ∈ Z/q0 Z.
   Let I 00 be one of these intervals, so that (see (40))
                                    X                                     H
                                             f (n)e(−αI0000 n)                   .
                                    n∈I 00
                                                                         P 0 P 00
48               KAISA MATOMÄKI, MAKSYM RADZIWILL, AND TERENCE TAO
                 1−2ρ
Let H ∗ := HP 0 P 00 . We may translate I 00 by any shift of size at most H ∗ without
affecting this estimate. Averaging over such shifts, we conclude that
                       Z        X                             H
                                       f (n)e(−αI0000 n) dx  0 00 H ∗
                        I 00 x<n≤x+H ∗                       PP

and thus by the triangle inequality
            Z       X                                                        H
                           f (n)e(−αI0000 (n − x) − bx/q0 ) dx              0 00
                                                                                  H∗
                  I 00 x<n≤x+H ∗                                            PP

From (77), (76) and Taylor expansion, we have
                                                 
                                          T0
               00
          e(−αI 00 (n − x) − bx/q0 ) = e − (n − x) e(bn/q0 ) + O(H −ρ )
                                          x
                                              = n−2πiT0 x2πiT0 e(bn/q0 ) + O(H −ρ ).
The contribution of the O(H −ρ ) is negligible, thus
                Z      X                                                H
                             f (n)n−2πiT0 e(bn/q0 ) dx                 0 00
                                                                             H ∗.
                         I 00 x<n≤x+H ∗                                PP

Recalling (b, q0 ) = 1 and Proposition 5.6, we can apply a Fourier decomposition
                      X X                                      1      X           bx 
      e(bn/q0 ) =             cb,χ 1q2 |n χ(n/q2 ) , cb,χ :=                χ(x)e
                    q =q q
                                                             ϕ(q1 ) x mod q        q1
                         0    1 2 χ (q1 )                                      1


where cb,χ  1 and χ ranges over Dirichlet characters of modulus q1 . From the
triangle inequality, we thus have
            X X Z              X                                        H
                                      f (n)n−2πiT0 1q2 |n χ(n/q2 ) dx  0 00 H ∗ .
          q =q q       I 00 x<n≤x+H ∗                                  PP
           0    1 2 χ (q1 )


Summing over the ε X/H intervals I 00 , we conclude that
     X X Z 10X/P 0 P 00    X                                                            X
                                  f (n)n−2πiT0 1q2 |n χ(n/q2 ) dx                              H ∗.
     q0 =q1 q2 χ (q1 )   X/10P 0 P 00   x<n≤x+H ∗
                                                                                       P 0 P 00

By the triangle inequality, there thus exist q0 = q1 q2 and χ (q1 ) such that
           Z 10X/P 0 P 00    X                                        X
                                    f (n)n−2πiT0 1q2 |n χ(n/q2 ) dx  0 00 H ∗ .
            X/10P 0 P 00  x<n≤x+H ∗
                                                                     PP
                                            FOURIER UNIFORMITY                                      49

Writing n = dm with d|q2∞ and (m, q2 ) = 1 we obtain by the triangle inequality

              X Z 10X/P 0 P 00              X                                    X
                                                       f (n)n−2πiT0 χ(n) dx             H ∗.
                      X/10P 0 P 00       x<dn≤x+H ∗
                                                                                P 0 P 00
              d|q2∞
              q2 |d                        (n,q2 )=1

where   d|q2∞ means that all the prime factors of d are also prime factors of q2 . Since
          −1
P
  d|q ∞ d     1 there exists an natural number d = O(1) such that,
      2


              Z 10X/dP 0 P 00            X                                       X
                                                 f (n)n−2πiT0 χ(n) dx η,ε,δ             H ∗.
               X/10dP 0 P 00                                                    P 0 P 00
                                x<n≤x+H ∗ /d
                                  (n,q2 )=1

Therefore by [24, Proposition A.3] we have D(f 1(n,q2 )=1 n−2πiT0 χ; T 0 ; Q)  1 for some
Q  1 and |T 0 |  X. Therefore D(f ; T ; Q)  1 for some |T |  X 2 /H 2−ρ and
Q  1 as claimed.

                 6. Proof of Corollary 1.5 and Corollary 1.3
  Now we prove Corollary 1.5 and Corollary 1.3. It is enough to prove the former
corollary since, for any fixed Q > 0 and A > 0, we have D(λ; X A ; Q) → ∞ as X → ∞
by the Vinogradov-Korobov zero-free region [29, §9.5].
  We restrict attention to the correlation for f (n)a(n + h)b(n + 2h), as the other
two correlations are handled similarly. The proof proceeds along classical lines by
noticing that
                X          |h|
                                
                       1−         f (n)a(n + h)b(n + 2h)
                            H
               |h|≤H

                        1 X 1
                           Z Z
                     =               Sx,f (α)Sx,b (α)Sx,a (−2α)dαdx + O(H)      (78)
                        H 1 0
where                                                   X
                                     Sx,g (α) :=              g(n)e(αn).
                                                   x<n≤x+2H
Notice that
 Z 1                                                  Z 1
                                                  1/3
     Sx,f (α)Sx,b (α)Sx,a (−2α)dα ≤ sup |Sx,f (α)|        |Sx,b (α)| · |Sx,a (−2α)| · |Sx,f (α)|2/3 dα
  0                                                α                  0
                                Z 1                    1/3 Z 1               1/3 Z 1               1/3
      ≤ sup |Sx,f (α)|1/3 ·                         3
                                          |Sx,b (α)| dα     ·               3
                                                                  |Sx,a (α)| dα     ·               2
                                                                                          |Sx,f (α)| dα      .
          α                          0                            0                             0
50              KAISA MATOMÄKI, MAKSYM RADZIWILL, AND TERENCE TAO

We now claim the bound                    Z 1
                                                |Sx,a (α)|3 dα  H 2
                                           0
If |a(n)|  Λ(n) then this bound follows from [10, Proposition 4.2]. On the other
hand if |a(n)|  1 for all integers n ≥ 1, then, by Hölder’s inequality,
Z 1                 Z 1               1/2 Z 1               1/2
              3                    2                       4
    |Sx,a (α)| dα ≤      |Sx,a (α)| dα     ·     |Sx,a (α)| dα       H 1/2 · H 3/2 = H 2 .
 0                            0                                 0

The general case a(n)  1 + Λ(n) now follows from the triangle inequality. Similarly
for b(n). Therefore,
              Z 1
                  Sx,f (α)Sx,b (α)Sx,a (−2α)dα  sup |Sx,f (α)|1/3 · H 5/3
                     0                                                  α

and finally,
                Z X                                 Z X                           1/3
                                      1/3
                         sup |Sx,f (α)|     dα ≤                sup |Sx,f (α)|dα          · X 2/3 .
                 1        α                             1           α

Thus,
 X                                           Z X                  1/3
       |h| X                           2/3 2/3
    1−       f (n)a(n + h)b(n + 2h) ≤ H ·X ·        sup |Sx,f (α)|dα
       H n≤X                                     1   α
 |h|≤H
                                                                                                      (79)
     Therefore if the left-hand side of (79) is ≥ ηHX, then,
                                          Z X
                                 3
                               cη HX ≤         sup |Sx,f (α)|dα
                                                    1       α

for some absolute constant c > 0. Hence, for some Y ∈ [cη 3 X/3, X], one has,
                          Z 2Y
                                                  cη 3
                               sup |Sx,f (α)|dα ≥      Y H.
                           Y    α                  2
Now the claim follows from Theorem 1.4.

                                                References
 [1] A. Balog. The prime k-tuplets conjecture on average. In Analytic number theory (Allerton
     Park, IL, 1989), volume 85 of Progr. Math., pages 47–75. Birkhäuser Boston, Boston, MA,
     1990.
 [2] G. R. Blakley and P. Roy. A Hölder type inequality for symmetric matrices with nonnegative
     entries. Proc. Amer. Math. Soc., 16:1244–1245, 1965.
 [3] V. Blomer. On triple correlations of divisor functions. Bull. Lond. Math. Soc., 49(1):10–22,
     2017.
                                      FOURIER UNIFORMITY                                           51

 [4] S. Chowla. The Riemann hypothesis and Hilbert’s tenth problem. Mathematics and Its Appli-
     cations, Vol. 4. Gordon and Breach Science Publishers, New York-London-Paris, 1965.
 [5] H. Davenport. On some infinite series involving arithmetical functions. ii. Quart. J. Math. Oxf.,
     8:313–320, 1937.
 [6] P. D. T. A. Elliott. Probabilistic number theory. I, volume 239 of Grundlehren der Mathematis-
     chen Wissenschaften [Fundamental Principles of Mathematical Science]. Springer-Verlag, New
     York-Berlin, 1979. Mean-value theorems.
 [7] N. Frantzikinakis and B. Host. Asymptotics for multilinear averages of multiplicative functions.
     Math. Proc. Cambridge Philos. Soc., 161(1):87–101, 2016.
 [8] W. T. Gowers. A new proof of Szemerédi’s theorem for arithmetic progressions of length four.
     Geom. Funct. Anal., 8(3):529–551, 1998.
 [9] A. Granville and K. Soundararajan. Large character sums: pretentious characters and the
     Pólya-Vinogradov theorem. J. Amer. Math. Soc., 20(2):357–384, 2007.
[10] B. Green and T. Tao. Restriction theory of the Selberg sieve, with applications. J. Théor.
     Nombres Bordeaux, 18(1):147–182, 2006.
[11] B. Green and T. Tao. Quadratic uniformity of the Möbius function. Ann. Inst. Fourier (Greno-
     ble), 58(6):1863–1935, 2008.
[12] B. Green and T. Tao. Linear equations in primes. Ann. of Math. (2), 171(3):1753–1850, 2010.
[13] B. Green and T. Tao. The Möbius function is strongly orthogonal to nilsequences. Ann. of
     Math. (2), 175(2):541–566, 2012.
[14] B. Green and T. Tao. The quantitative behaviour of polynomial orbits on nilmanifolds. Ann.
     of Math. (2), 175(2):465–540, 2012.
[15] D. R. Heath-Brown. The number of primes in a short interval. J. Reine Angew. Math., 389:22–
     63, 1988.
[16] M. N. Huxley. On the difference between consecutive primes. Invent. Math., 15:164–170, 1972.
[17] H. Iwaniec and E. Kowalski. Analytic number theory, volume 53 of American Mathematical
     Society Colloquium Publications. American Mathematical Society, Providence, RI, 2004.
[18] K. Kawada. The prime k-tuplets in arithmetic progressions. Tsukuba J. Math., 17(1):43–57,
     1993.
[19] K. Kawada. A Montgomery-Hooley type theorem for prime k-tuplets. Acta Math. Hungar.,
     66(3):177–200, 1995.
[20] O. Klurman. Correlations of multiplicative functions and applications. Compos. Math.,
     153(8):1622–1657, 2017.
[21] D. Koukoulopoulos. Pretentious multiplicative functions and the prime number theorem for
     arithmetic progressions. Compos. Math., 149(7):1129–1149, 2013.
[22] K. Matomäki and M. Radziwill. A note on the Liouville function in short intervals. arxiv:
     1502.02374, 2015.
[23] K. Matomäki and M. Radziwill. Multiplicative functions in short intervals. Ann. of Math. (2),
     183(3):1015–1056, 2016.
[24] K. Matomäki, M. Radziwill, and T. Tao. An averaged form of Chowla’s conjecture. Algebra
     Number Theory, 9(9):2167–2196, 2015.
[25] K. Matomäki, M. Radziwill, and T. Tao. Correlations of the von mangoldt and higher divisor
     functions i. long shift ranges. arXiv:1707.01315, 2017.
[26] H. Mikawa. On prime twins in arithmetic progressions. Tsukuba J. Math., 16(2):377–387, 1992.
[27] H. L. Montgomery. The analytic principle of the large sieve. Bull. Amer. Math. Soc., 84(4):547–
     567, 1978.
52              KAISA MATOMÄKI, MAKSYM RADZIWILL, AND TERENCE TAO

[28] H. L. Montgomery. Maximal variants of the large sieve. J. Fac. Sci. Univ. Tokyo Sect. IA
     Math., 28(3):805–812 (1982), 1981.
[29] H. L. Montgomery. Ten lectures on the interface between analytic number theory and har-
     monic analysis, volume 84 of CBMS Regional Conference Series in Mathematics. Published
     for the Conference Board of the Mathematical Sciences, Washington, DC; by the American
     Mathematical Society, Providence, RI, 1994.
[30] A. Sidorenko. A correlation inequality for bipartite graphs. Graphs Combin., 9(2):201–204,
     1993.
[31] T. Tao. The logarithmically averaged Chowla and Elliott conjectures for two-point correlations.
     Forum Math. Pi, 4:e8, 36, 2016.
[32] T. Tao. Equivalence of the logarithmically averaged Chowla and Sarnak conjectures. In Number
     theory—Diophantine problems, uniform distribution and applications, pages 391–421. Springer,
     Cham, 2017.
[33] T. Tao and J. Teräväinen. The structure of logarithmically averaged correlations of multiplica-
     tive functions, with applications to the Chowla and Elliott conjectures. arxiv: 1708.02610,
     2017.
[34] T. Tao and J. Teräväinen. Odd order cases of the logarithmically averaged Chowla conjecture.
     J. Théor. Nombres Bordeaux, 2018.
[35] A. Zaccagnini. Primes in almost all short intervals. Acta Arith., 84(3):225–244, 1998.
[36] T. Zhan. On the representation of large odd integer as a sum of three almost equal primes. Acta
     Math. Sinica (N.S.), 7(3):259–272, 1991. A Chinese summary appears in Acta Math. Sinica 35
     (1992), no. 4, 575.

  Department of Mathematics and Statistics, University of Turku, 20014 Turku,
Finland
  E-mail address: ksmato@utu.fi

  Department of Mathematics, Caltech, 1200 E California Blvd, Pasadena, CA,
91125
  E-mail address: maksym.radziwill@gmail.com

     Department of Mathematics, UCLA, 405 Hilgard Ave, Los Angeles CA 90095, USA
     E-mail address: tao@math.ucla.edu
