                                               HIGHER UNIFORMITY OF BOUNDED MULTIPLICATIVE
                                                 FUNCTIONS IN SHORT INTERVALS ON AVERAGE

                                              KAISA MATOMÄKI, MAKSYM RADZIWIŁŁ, TERENCE TAO, JONI TERÄVÄINEN,
                                                                   AND TAMAR ZIEGLER
arXiv:2007.15644v3 [math.NT] 9 Jun 2022




                                              Abstract. Let λ denote the Liouville function. We show that, as X → ∞,
                                                            Z 2X              X
                                                                    sup               λ(n)e(−P (n)) dx = o(XH)
                                                                 X   P (Y )∈R[Y ] x≤n≤x+H
                                                                      deg P ≤k

                                              for all ﬁxed k and X θ ≤ H ≤ X with 0 < θ < 1 ﬁxed but arbitrarily small. Previously this
                                              was only established for k ≤ 1. We obtain this result as a special case of the corresponding
                                              statement for (non-pretentious) 1-bounded multiplicative functions that we prove.
                                                 In fact, we are able to replace the polynomial phases e(−P (n)) by degree k nilsequences
                                              F (g(n)Γ). By the inverse theory for the Gowers norms this implies the higher order
                                              asymptotic uniformity result
                                                                            Z 2X
                                                                                  kλkU k+1 ([x,x+H]) dx = o(X)
                                                                            X
                                              in the same range of H.
                                                 We present applications of this result to patterns of various types in the Liouville se-
                                              quence. Firstly, we show that the number of sign patterns of the Liouville function is
                                              superpolynomial, making progress on a conjecture of Sarnak about the Liouville sequence
                                              having positive entropy. Secondly, we obtain cancellation in averages of λ over short poly-
                                              nomial progressions (n + P1 (m), . . . , n + Pk (m)), which in the case of linear polynomials
                                              yields a new averaged version of Chowla’s conjecture.
                                                 We are in fact able to prove our results on polynomial phases in the wider range
                                              H ≥ exp((log X)5/8+ε ), thus strengthening also previous work on the Fourier uniformity
                                              of the Liouville function.




                                                                                     Contents
                                          1. Introduction                                                                                      2
                                          2. Notation and preliminaries                                                                       16
                                          3. Local correlations with polynomial phases                                                        19
                                          4. Local correlation with nilsequences                                                              41
                                          5. Sign patterns                                                                                    78
                                          6. Reducing the length of the intervals                                                             85
                                          7. Polynomial averages of the Liouville function                                                    93
                                          Appendix A. Bernstein inequality for exponential polynomials                                        95
                                          Appendix B. The Baker–Campbell–Hausdorff formula and its consequences                               97
                                                                                            1
2                     MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

    Appendix C. Bezout’s identity and the Chinese remainder theorem for polynomial
                spaces                                                             101
    References                                                                     105



                                          1. Introduction
   Let λ : N → {−1, +1} denote the Liouville function, that is to say the completely mul-
tiplicative function with λ(p) = −1 for all primes p; we extend λ by zero to the integers.
In [23] it was shown that this function exhibited cancellation on almost all short intervals
[x, x + H] in the sense that1
                                  Z 2X      X
                                                   λ(n) dx = o(HX)                           (1)
                                   X     x≤n≤x+H

as X → ∞, whenever H = H(X) was a function of X that went to infinity as X → ∞;
see also [22] for a simpler proof of (1) in the case of “polynomially large intervals”, in which
H = X θ for a fixed 0 < θ < 1. In [23], [22] the qualitative gain o(HX) over the trivial
bound O(HX) was improved to a more quantitative bound, but in this paper we will focus
only on qualitative estimates. The bounds for λ also extend to the closely related Möbius
function µ, but for the sake of discussion we shall restrict attention initially to the Liouville
function λ.
   In [25] the estimate (1) was generalized to
                                 Z 2X     X
                           sup                    λ(n)e(−αn) dx = o(HX)                      (2)
                           α∈R X        x≤n≤x+H

as X → ∞, for any H = H(X) that went to infinity as X → ∞, where we adopt the usual
notation e(α) := e2πiα . Informally, this asserts that λ does not asymptotically exhibit any
correlation with a fixed linear phase n 7→ e(αn) in short intervals on average. The question
was then raised in [34, Section 4] as to whether the stronger estimate
                           Z 2X           X
                                  sup             λ(n)e(−αn) dx = o(HX)                      (3)
                            X     α∈R x≤n≤x+H

could be established. This is not known unconditionally, although as observed in [35] it can
be deduced from the Chowla conjecture [4]. However, in a recent paper [26] the bound (3)
was established in the regime where H = X θ for a fixed 0 < θ < 1; the case θ > 5/8 without
needing the x-average was previously established by Zhan in [41] (and Zhan’s result was
recently improved to θ > 3/5 in [28]).

    1See Section 2 for our asymptotic notation conventions.
                      HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                                       3

  For any non-negative integer k ≥ 0, any interval [x, x + H], and any function f : Z → C,
define the weak Gowers uniformity norm

                                                         1      X
                 kf kuk+1 ([x,x+H]) :=        sup                       λ(n)e(−P (n))                   (4)
                                         P ∈Poly≤k (R→R) H
                                                             x≤n≤x+H

where Poly≤k (R → R) is the k +1-dimensional vector space of polynomial maps2 P : R → R
of degree at most k. This norm is indeed much weaker than the usual Gowers norm, in the
sense that it is well known (see [11, §4]) that it does not control linear patterns of complexity
≥ 2. Nevertheless, we will need the weak Gowers uniformity result in Theorem 1.3 below
in order to establish the strong Gowers uniformity result in Theorem 1.5.
   The result in [26] is then equivalent to the bound
                                Z 2X
                                       kλku2 ([x,x+H]) dx = o(X)
                         X
                    θ
as X → ∞, with H = X for a fixed 0 < θ < 1; the corresponding (and weaker) bound
for the u1 norm follows from the earlier result in [23] or [22]. Our first main result extends
these bounds to higher orders of uniformity:
Corollary 1.1 (Liouville does not correlate with polynomial phases on short intervals on
average). Let k ≥ 0 be a non-negative integer, and let 0 < θ < 1 be fixed. Then we have
                            Z 2X
                                 kλkuk+1 ([x,x+H]) dx = o(X)                           (5)
                                   X
as X → ∞, where H := X θ .
Remark 1.2. In Theorem 1.8 below we show that Corollary 1.1 holds for H as small as
exp((log X)5/8+ε ) for any fixed ε > 0.
   We remark that previously this was known in the k ≥ 1 cases for θ > 2/3 by [27,
Theorem 1.4]. In fact, in this regime a uniform bound supx∈[X,2X] kλkuk+1 ([x,x+H]) = o(1)
is established. It is natural to conjecture that such uniform bounds extend to all θ > 0,
but this seems well beyond the reach of the methods in this paper.
   In fact (as in [26]), we can generalize Corollary 1.1 to the case where the Liouville function
λ is replaced by a more general “non-pretentious” 1-bounded multiplicative function. Recall
that a multiplicative function f : N → C is said to be 1-bounded if |f (n)| ≤ 1 for all n ∈ N.
To motivate the “non-pretentiousness” hypothesis, we consider (as was done in [26] in the
k = 1 case) the character
                                         f (n) := nit χ(n),                                   (6)
                                                                 it
formed by multiplying an “Archimedean character” n 7→ n for some real number t with
|t| ≤ εX k+1 /H k+1 for some small ε > 0, and a Dirichlet character χ of some bounded
conductor q. Observe that f is completely multiplicative and 1-bounded, and a Taylor
  2In the sum in (4), only the values of P on the integers Z are relevant, but in our later analysis it will
be convenient to evaluate such polynomials at non-integer values as well.
4                    MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

                                               t
expansion with remainder of the phase n 7→ 2π     log n of the Archimedean character nit =
    t
e( 2π log n) around a given point x ∈ [X, 2X] yields a decomposition of the form
                                       nit = e(Px (n)) + Ok (ε)                                      (7)
for all n ∈ [x, x + H] and some polynomial Px ∈ Poly≤k (R → R) depending on x (and t).
This together with the q-periodicity of χ can be used to imply that
                             Z 2X
                                   kf kuk+1 ([x,x+H]) dx ≫k,q X
                                   X
if 1 ≤ H ≤ X are sufficiently large.
   Our next result asserts that this is essentially the only obstruction to extending Corol-
lary 1.1 to more general 1-bounded multiplicative functions. Following Granville and
Soundararajan [12], we define the distance function
                                        X 1 − Re(f (p)g(p)) 1/2
                        D(f, g; X) :=                               ,
                                                      p
                                              p≤X
and further define the quantity
                       M (f ; X, Q) := inf       inf     D(f, n 7→ χ(n)nit ; X).
                                         |t|≤X χ mod q
                                                 q≤Q

Informally, M (f ; X, Q) is small whenever f is close to a function of the form (6) with
|t| ≤ X and χ of conductor at most Q. We then have
Theorem 1.3 (Non-pretentious multiplicative functions do not correlate with polynomial
phases on short intervals on average). Let k ≥ 0 be a non-negative integer, and let 0 <
θ < 1/2. Suppose that f : N → C is a multiplicative 1-bounded function, and suppose that
X ≥ 1, X θ ≤ H ≤ X 1−θ , and η > 0 are such that
                             Z 2X
                                  kf kuk+1 ([x,x+H]) dx ≥ ηX.
                                   X
Then one has
                                 M (f ; CX k+1 /H k+1 , Q) ≪k,η,θ 1
for some Q, C ≪k,η,θ 1.
   The upper bound H ≤ X 1−θ here is for minor technical reasons and it is likely that one
can replace it with H ≤ X; however our main interest is in the opposite regime when H
is as small as possible. Standard calculations regarding the “non-pretentious” nature of the
Liouville function (using the Vinogradov–Korobov zero-free region for L-functions) allow
one to deduce Corollary 1.1 from Theorem 1.3; see for instance [25, (1.12)]. The k = 0 case
of this theorem follows from the results in [23], and the k = 1 case is established3 in [26,
   3In that paper the constant C appearing in the above theorem was worsened to H ρ for some arbitrarily
small constant ρ > 0, but we have found a way to modify the arguments to eliminate that power loss in
this result. In fact, it will be important in the induction arguments used to establish Theorem 1.5 below
that such losses are avoided.
                     HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                                 5

Theorem 1.4]. Our focus here shall accordingly be on the higher order case k ≥ 2, which
we will establish by generalizing the techniques in [26] to the polynomial phase setting (and
in fact further to nilsequences, which are needed in proving our Theorem 1.5 on genuine
Gowers norms of multiplicative functions).
   As a corollary of Theorem 1.3 and the decomposition (7) we can also control the cor-
relation of non-pretentious multiplicative functions with Archimedean characters on short
intervals on average:
Corollary 1.4 (Non-pretentious multiplicative functions do not correlate with Archimedean
characters on short intervals on average). Let k ≥ 0 be a non-negative integer, and let
0 < θ < 1/2. Suppose that f : N → C is a multiplicative 1-bounded function, and suppose
that X ≥ 1, ε > 0, X θ ≤ H ≤ X 1−θ , and η > 0 are such that
                    Z 2X                  X
                              sup                f (n)nit dx ≥ ηHX.
                        X    |t|≤εX k+1 /H k+1 x≤n≤x+H

Then one has
                                M (f ; CX k+1 /H k+1 , Q) ≪k,η,ε,θ 1
for some Q, C ≪k,η,ε,θ 1.
  We also note that He and Wang [19] recently proved that
                            Z 2X    X
                    sup                    λ(n)e(−P (n)) dx = o(HX)
                 P ∈Poly≤k (R→R) X         x≤n≤x+H

for any H tending to infinity with X, and they also proved an analogous estimate for
nilsequences. This statement with the supremum outside the integral unfortunately does
not lead to control on Gowers norms (or weak Gowers norms) of λ over short intervals
and is accordingly closer in spirit to [25] than to the current paper. It is the case with the
supremum inside the integral (as in Theorems 1.3 and 4.3) that we need for the applications
in this paper, and such estimates would lead to a proof of the logarithmically averaged
Chowla and Sarnak conjectures (via [35, Theorem 1.8]) if one was able to take the interval
length H to grow sufficiently slowly in them; see Proposition 1.7.
   As indicated above, we can strengthen Theorem 1.3 further. For any non-negative integer
k ≥ 0, and any function f : Z → C with finite support, define the (unnormalized) Gowers
uniformity norm
                                                                                      1/2k+1
                           X            Y
      kf kU k+1 (Z) :=                        C |ω| f (y + ω1 h1 + · · · + ωk+1 hk+1 )
                        y,h1 ,...,hk+1 ∈Z ω∈{0,1}k+1

where ω = (ω1 , . . . , ωk+1 ), |ω| := ω1 + · · · + ωk+1 , and C : z 7→ z is the complex conjugation
map. Then for any interval [x, x + H] with H ≥ 1 and any f : Z → C (not necessarily of
finite support), define the Gowers uniformity norm over [x, x + H] by
                   kf kU k+1 ([x,x+H]) := kf 1[x,x+H]kU k+1 (Z) /k1[x,x+H] kU k+1 (Z)           (8)
6                  MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

where 1[x,x+H] : Z → C is the indicator function of [x, x + H]. We then have
Theorem 1.5 (Non-pretentious multiplicative functions are Gowers uniform on short in-
tervals on average). Let k ≥ 0 be a non-negative integer, and let 0 < θ < 1/2. Suppose
that f : N → C is a multiplicative 1-bounded function (extended by zero to the remaining
integers), and suppose that X ≥ 1, X θ ≤ H ≤ X 1−θ , and η > 0 are such that
                             Z 2X
                                  kf kU k+1 ([x,x+H]) dx ≥ ηX.
                                X
Then one has
                              M (f ; CX k+1 /H k+1 , Q) ≪k,η,θ 1                           (9)
for some Q, C ≪k,η,θ 1.
   The corresponding statement on correlations of f with nilsequences n 7→ F (g(n)Γ) on
intervals [x, x+ H], which we will use to derive Theorem 1.5 (and which in fact is equivalent
to it), is given as Theorem 4.3.
   In particular, using the non-pretentious nature of the Liouville function, this theorem
yields the following corollary.
Corollary 1.6 (Gowers uniformity of Liouville on short intervals on average). Let an integer
k ≥ 0 and 0 < θ ≤ 1 be fixed. Then for H ≥ X θ we have
                             Z 2X
                                  kλkU k+1 ([x,x+H]) dx = o(X).                         (10)
                               X
   Note that in the corollary above the case of larger values of H ≥ X 1−o(1) follows from
the case H = X θ by a simple averaging argument (by first using the inverse theorem for the
Gowers norms to express (10) in terms of the correlation of λ with nilsequences on [x, x+H],
and then partitioning this interval into subintervals of length ≍ X 1−ε ). This partially
verifies [35, Conjecture 1.6], which asserted that this estimate (or more precisely, a slightly
weaker logarithmically averaged version of this estimate) held whenever H = H(X) went to
infinity as X → ∞. Fully resolving this conjecture would have many implications, including
the (logarithmically averaged) Chowla and Sarnak conjectures; see [34], [37] and [10] for
the best currently known results in this direction). Correspondingly, the partial result (10)
allows us to make progress on some problems concerning the Liouville function, including
its word complexity and an averaged version of Chowla’s conjecture, which we discuss in
Subsection 1.2.
   Regarding previous results on Gowers norms of non-pretentious multiplicative functions,
a result of Frantzikinakis and Host [9] (generalizing work of Green and Tao [15]) establishes
the “long sum” endpoint case of Theorem 1.5 (corresponding to the case H = X, which
is strictly speaking not covered by the above theorem), showing that kf kU k+1 [1,X] = o(1)
under the assumption that D(f, n 7→ χ(n)nit ; X) → ∞ as X → ∞ for any fixed real number
t and Dirichlet character χ.
   It is not difficult to establish a general estimate of the form
                            kf kuk+1 ([x,x+H]) ≪k kf kU k+1 ([x,x+H])
                      HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                         7

for any f : Z → C; this can be established for instance by a minor modification of the
arguments in [38, §11.2]. Thus Theorem 1.5 implies Theorem 1.3. The converse implication
is also routine for k = 0, 1, but as is now well known (see e.g., [38, Proposition 11.8]),
for higher k the polynomial phases n 7→ e(P (n)) appearing in the definition of the weak
Gowers norms (4) are insufficient to control the full Gowers norms (8). To bridge the gap,
one needs to replace these polynomial phases by more general nilsequences n 7→ F (g(n)Γ).
The polynomial phases correspond to nilsequences on filtered nilmanifolds G/Γ with G
abelian. We will thus first prove Theorem 1.3 in Section 3 to treat the case of abelian G,
and then use a different and more delicate argument (presented in Section 4 and outlined
in Subsection 1.3) to handle the non-abelian case.
1.1. Connection with the Chowla and Sarnak conjectures. As already mentioned,
estimates such as (10) with slowly growing H are closely tied to the Chowla and Sarnak
conjectures. The logarithmically averaged Chowla conjecture states that
                        X λ(a1 n + b1 ) · · · λ(ak n + bk )
                                                            = o(log x)
                                         n
                             n≤x

whenever ai , bi are natural numbers4 with ai bj 6= aj bi for i 6= j. The logarithmically
averaged Sarnak conjecture in turn is the statement that
                                X λ(n)a(n)
                                               = o(log x)
                                         n
                                        n≤x

for every bounded, deterministic sequence a : N → C (in the sense that a has zero topological
entropy). See [6] for a survey of previous work on these two conjectures.
   In [35], it was shown that the logarithmically averaged Chowla conjecture and the log-
arithmically averaged Sarnak conjecture are equivalent, and that both would also follow
from (10) being true for every H = H(X) tending to infinity with X. In fact these two
conjectures are equivalent to the logarithmic version of (10) in this regime, which states
that
                               Z X
                                   kλkU k+1 [x,x+H]
                                                    dx = o(log X)                       (11)
                                1         x
whenever H = H(X) goes to infinity with X. Thus, a potential strategy towards proving
the logarithmic Chowla and Sarnak conjectures emerges from the possibility of lowering
the value of H = H(X) in Theorem 1.5. We observe in Section 5.3 that we in fact do not
need (11) for arbitrarily slowly growing H to deduce the logarithmic Chowla conjecture; it
instead suffices to prove it for H ≥ (log X)η for every η > 0.
Proposition 1.7. Suppose that for every natural number k and every η > 0 for H =
H(X) = (log X)η we have
                        Z X
                             kλkU k+1 [x,x+H]
                                              dx = o(log X).
                          1         x
  4In this paper the natural numbers N = {1, 2, 3, . . . } begin with 1.
8                  MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

Then the logarithmic Chowla conjecture holds.

   This proposition will be proved in Subsection 5.3.
   Thus, in order to prove the logarithmic Chowla conjecture, it would suffice to bridge the
gap between H ≥ X η (which is the range where Corollary 1.6 is valid) and H ≤ (log X)η in
Proposition 1.7. In Section 6, we already show that, at least in the case of our result on the
weak Gowers norms (Theorem 1.3), we may lower the admissible H to H ≥ exp((log X)c )
for some c > 0.

Theorem 1.8 (Shortening the intervals). Let k be a natural number, and let θ > 5/8 and
ρ > 0 be fixed. Suppose that f : N → C is a multiplicative 1-bounded function (extended by
zero to the remaining integers), and suppose that X ≥ 1, X θ ≥ H ≥ exp((log X)θ ), and
η > 0 are such that
                              Z 2X
                                   kf kuk+1 ([x,x+H]) dx ≥ ηX.                        (12)
                                 X

Then one has
                              M (f ; X k+1 /H k+1−ρ , Q) ≪k,η,θ 1                          (13)
for some Q ≪k,η,θ,ρ 1.

   It is conceivable that a careful reworking of the nilsequence part of our arguments in
Section 4 would yield a similar regime H ≥ exp((log X)1−δ ) for Theorem 1.5; we do not
pursue this here, however (see however Remark 4.27).
   The exponent 5/8 appearing in Theorem 1.8 is significant as it shows that it is possible
to control kf kuk+1 [x,x+H] on average over x without establishing cancellations in short sums
over primes of the form H≤p≤2H pit (with t of size X k ). Instead, we show using general
                           P

                                                                                 P polyno-
Dirichlet polynomial techniques that the set of points t at which the above Dirichlet
mial exhibits no cancellation is sparse. We note that the smallest H for which H≤p≤2H pit
is known to exhibit cancellations for t of size X k is H = exp((log X)2/3+ε ). We also note
that the proof of Theorem 1.8 crucially relies on cancellation in short sums of multiplicative
functions outside a power-saving exceptional set, proved in [24] as an improvement to [23].
See Remark 6.7 on how in the case of f = λ the weaker range H ≥ exp((log X)2/3+ε ) and
can be obtained using only the method of [22].
   It seems nonetheless that the lower bound for H in Theorem 1.8 is close to the breaking
point of several arguments in our proof. Firstly, for H much smaller than exp((log X)c )
with c > 0 it appears difficult to show (using general Dirichlet polynomial techniques) that
for a large proportion of values |t| ≤ X O(1) the sum H≤p≤2H pit exhibits cancellations.
                                                         P

Secondly, in the graph-theoretic part of our arguments factors of the type ℓ! with ℓ ≍ log     X
                                                                                           log H
arise, and while these are harmless for H ≥ X η , they become problematic in the regime
H ≤ exp((log X)θ ), in particular if θ < 1/2. Despite these limitations, at least if one works
with certain model cases of the problem (such as a “99% version” of Theorem 1.5, where η
is very close to 1) and assumes GRH, then one should be able to push H further down.
                    HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                            9

                                                −1
   Handling the regime H ∈ [(log X)η , (log X)η ], at the very least, would likely necessitate
an entirely new idea for several reasons. Firstly, even under GRH cancellation in the Dirich-
                                                                                           −1
let polynomials H ε ≤p≤2H ε χ(p)pit is known essentially only for H ≫ε,κ (log X)(2+κ)ε .
                  P
Secondly, the arguments for solving “approximate functional equations” involving phase
functions that are used in this paper do not Q  seem to work (even in model cases) for such
H, as such arguments rely on the “modulus” H ε ≤p≤2H ε p being much larger than X (see
footnote 14). Thirdly, the entropy decrement argument (which is applied to prove Propo-
sition 1.7 that the H ≥ (log X)η range of (11) implies the logarithmic Chowla conjecture)
                                          η
                  Q regime H ≤ (log X) , as it is based on equidistribution of the integers
is restricted to the
in [1, X] modulo H A ≤p≤2H A p for A ≥ 1 large enough (see however the recent work [1] for
a quantitatively stronger alternative replacement to the entropy decrement method in the
case of two-point correlations).
1.2. Applications.
1.2.1. Sign patterns of the Liouville function. Let
         s(k) := |{v ∈ {−1, +1}k : v = (λ(n + 1), . . . , λ(n + k)) for some n ∈ N}|     (14)
be the number of sign patterns of length k in the Liouville sequence. A direct consequence
of Chowla’s conjecture (or its logarithmic version) is that s(k) = 2k for all k and that
each pattern of length k occurs with positive lower density; yet, this remains unknown
(apart from the k ≤ 4 cases handled in [37]). In fact, known lower bounds on s(k) are far
from exponential; Frantzikinakis and Host [10] proved that s(k)/k → ∞ as k → ∞, and
recently this was improved by McNamara [29] to s(k) ≫ k2 . In fact, both in [29] and [10]
a stronger result was proved, namely that λ is orthogonal (with logarithmic averages) to
any sequence having o(k2 ) (respectively O(k)) sign patterns of length k. Let us also remark
that the validity of the 2j-point Chowla conjecture for any fixed j implies by a simple
moment computation that there are ≫ k j sign patterns of length k that occur with positive
density (so, in particular, s(k) ≫ kj ). As an application of Theorem 1.5, we prove a
superpolynomial lower bound on s(k).
Theorem 1.9 (The Liouville function has superpolynomial number of patterns). We have
s(k) ≫A kA for every A ≥ 1.
   In fact, we prove a more general result (Theorem 5.1), which shows that any improvement
in the range of validity of (10) leads to an improvement in the lower bound on s(k).
                                                                               δ/(1−δ)−ε
In particular, if (10) holds for H ≥ exp((log X)1−δ ), then s(k) ≫ε k(log k)             . See
also Theorem 5.4 for a generalization to multiplicative functions other than the Liouville
function.
   Theorem 1.9 can be viewed as progress towards a conjecture of Sarnak in [32] that the
Furstenberg systems of the Liouville function have positive entropy (so that in particular
s(k) ≫ ck for some c > 1). Sarnak highlighted this as a key special case of his Möbius
randomness conjecture. It is worth noting that, as was observed in [32], one easily sees
that the Möbius system has positive entropy, but this amounts solely to the fact that the
distribution of squarefree numbers is very well understood and therefore this does not imply
10                  MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

anything about the Liouville system (indeed, Sarnak says in [32] that it appears “pretty
hard to show that λ is not deterministic”). In this connection, it would be very interesting
to say more about the frequency of the superpolynomially many patterns produced by
Theorem 1.9.
   The proof of Theorem 1.9 involves a different approach than the previous sign pattern
arguments, utilizing a type of “structure and randomness” dichotomy (meaning that if there
are few sign patterns, then the Liouville function is easier to understand, and we can leverage
this to eventually get a contradiction); see Section 5 for the proof and Subsection 1.3.2 for
its outline.

1.2.2. Polynomial averages of the Liouville function. As another application of Theorem 1.5,
we use it to establish cancellation in averages
                         En≤X Em≤X 1/d λ(n + P1 (m)) · · · λ(n + Pk (m))

of the Liouville function along polynomial progressions (n + P1 (m), . . . , n + Pk (m)) (with
d being the maximum degree of the polynomials Pi ). Averages along polynomial progres-
sions are natural objects in additive combinatorics and ergodic theory, and a particularly
important result concerning them is the polynomial Szemerédi theorem of Bergelson and
Leibman [2] that guarantees for any non-constant polynomials Pi (x) ∈ Z[x] with Pi (0) = 0
the existence of a polynomial progression n + P1 (m), . . . , n + Pk (m) inside any positive
density subset of the integers. This was generalized to polynomial progressions inside the
primes in [39]. However, when one is considering polynomial progressions weighted by an
oscillating function (such as λ), these results do not apply (as they are lower bound results).
   It was later shown in [40, Theorem 1.4] that if the assumption Pi (0) = 0 for all i is
replaced with the polynomials Pi −Pj having degree d for all i 6= j (where d is the maximum
of the degrees of Pl ) one has an asymptotic for polynomial patterns (n + P1 (m), . . . , n +
Pk (m)) weighted by the von Mangoldt function (and the same argument works for the
Liouville function). Here we remove this assumption on the degree d coefficients of the
Pi being distinct in the case of the Liouville weight, thus obtaining a result that works
for any polynomial patterns (that are not of “infinite complexity”, such as the pattern
(n + 1, n + 2, . . . , n + k)). Moreover, we can take the m average in our results to be of
subpolynomial size, which is important for Corollary 1.11 below.
Theorem 1.10 (Polynomial averages of the Liouville function). Let k, r ≥ 1 be integers,
and let P1 , . . . , Pk be polynomials in Z[x1 , . . . , xr ] with degrees ≤ d. Suppose that Pi − Pj is
nonconstant for all i 6= j. Then for any fixed 0 < ε < 1/d we have
                    Em∈[X ε ]r |En≤X λ(n + P1 (m)) · · · λ(n + Pk (m))| = o(1).

Here, [N ]r stands for the r-dimensional discrete box {1, . . . , N }r .
  Specializing to linear polynomials, the following result on Chowla’s conjecture with a
short one-variable average is an immediate corollary (in fact, this corollary could also be
obtained more directly from our Gowers uniformity result, Corollary 1.6; see footnote 22).
                      HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                                      11

Corollary 1.11 (Chowla’s conjecture with a short average). Let k ≥ 1 be an integer, and
let a1 , . . . , ak ≥ 0 be distinct. Let ε > 0 be arbitrary. Then we have
                         Eh≤X ε |En≤X λ(n + a1 h) · · · λ(n + ak h)| = o(1).
   We remark that the Theorem 1.10 (and hence Corollary 1.11) continues to hold, with
essentially the same proof, if k − 1 of the k occurrences of λ in the correlation average are
replaced with arbitrary fixed 1-bounded sequences.
   Taking h bounded in Corollary 1.11 would amount to settling Chowla’s conjecture. Pre-
viously, the result of Corollary 1.11 was only known for k ≤ 2 (using the main result of [25]),
and for k = 3 without the absolute values around the n average (using [26, Corollary 1.5]).
Note that for k ≥ 3 the averaged Chowla conjecture of [25] is not applicable in the setting
above, since that result requires averaging over k − 1 independent short variables.
   We can also prove an asymptotic similar to the one in Theorem 1.10 for averages of
the von Mangoldt function if one of the terms in the progression is assigned the Liouville
weight (but perhaps surprisingly the proof does not apply if the weight λ is replaced with
the constant weight 1).
Theorem 1.12 (Polynomial averages of the von Mangoldt function with Liouville twist).
Let k, r ≥ 1 be integers, and let P1 , . . . , Pk be non-constant polynomials in Z[x1 , . . . , xr ] with
degrees ≤ d. Suppose that Pi − Pj is nonconstant for all i 6= j. Let Λ be the von Mangoldt
function. Then for any fixed 0 < ε < 1/d we have
            Em∈[X ε ]r |En≤X λ(n + P1 (m))Λ(n + P2 (m)) · · · Λ(n + Pk (m))| = o(1).
  We remark that the theorem continues to hold, with essentially the same proof, when
the occurrences of Λ in the correlation average are replaced with arbitrary fixed sequences
that are bounded by Λ in modulus.
  These results will be established in Section 7.
1.3. Overview of proofs.
1.3.1. The higher order uniformity theorem. Let us outline the proof of Corollary 1.6; the
proof of the more general Theorem 1.5 follows along similar lines. By the inverse theorem
for the Gowers norms, Corollary 1.6 is equivalent to a discorrelation estimate between the
Liouville function and nilsequences; more precisely
                  Z 2X                X
                           sup              λ(n)F (g(n)Γ) dx = o(HX),                 (15)
                     X    g∈Poly(Z→G) n∈[x,x+H]

where G/Γ is any fixed5 degree k filtered nilmanifold, F : G/Γ → C is any fixed Lipschitz
function, and the supremum is over all polynomial sequences g(n) taking values in the Lie
group G (for all the relevant definitions and for the precise statement, see Section 4).
  5We note that the notion of “complexity” of nilmanifolds plays no role in this paper, unlike in e.g. [15],
since the inverse theorem supplies us with a single nilmanifold Gη /Γη such that kf kU k [N] ≥ η with f
1-bounded implies that f correlates with a nilsequence on Gη /Γη .
12                    MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

   By using an induction on the dimension of G we may assume that the function F is
“irreducible” in a certain technical sense, which roughly means that the nilsequences n 7→
F (g(n)Γ) are “orthogonal” to all lower dimensional nilsequences. We split the proof of this
estimate (15) into two cases that are analyzed separately, the case of abelian G and the
case of non-abelian G.
   For abelian G, the nilsequences that arise on the filtered nilmanifold G/Γ are (Lipschitz
functions of) polynomial phases n 7→ e(P (n)) with deg(P ) ≤ k, so this case reduces to the
polynomial phase case. This case is handled in Section 3 and is already sufficient for proving
Corollary 1.1. Here the task is to establish structure in phase functions Px ∈ Poly≤k (Z → R)
satisfying
                                      X
                                               λ(n)e(Px (n)) dx ≫ H                                     (16)
                                   n∈[x,x+H]

for ≫ X choices of x ∈ [X, 2X] ∩ Z, and eventually to exploit that structure to show
that such functions do not exist. In order to talk about polynomials being equal up to
negligible contributions, we introduce an equivalence relation on them; in this sketch, we
say that Px ∼ Qx if6 Px (n) = ε(n)Qx (n) holds on the underlying interval [x, x + H] for
some polynomial ε(n) which is “smooth” in the sense that |ε(ℓ) (n)| ≪ H −ℓ for all ℓ ≤ k.
Note that if we can show that
                                                   
                                     T
                     e(Px (n)) ≈ e      log n + γ(n) , n ∈ [x, x + H],                (17)
                                     2π
with γ ∈ Poly ≤k (R → R) being a O(1)-integral polynomial (that is, it maps from qZ to Z
for some q = O(1)) and T independent of x and of polynomial size in X, then e(Px (n))
is essentially a twist of the Archimedean character n 7→ niT , so we can use the results
from [23], [25] to obtain the desired contradiction.
   As in the linear phase case handled in [26], we begin by establishing an “approximate
functional equation” 7 for the polynomial function Px (n) in (16). Note that if p ≤ H ε is a
prime, then if λ correlates with e(Px (n)) on [x, x + H], then λ correlates with e(Px (pn)) on
[x/p, (x + H)/p], for “most” choices of p (this is a standard Turán–Kubilius argument; see
Proposition 3.4). Similarly, for “most” y ∈ [X, 2X] and primes q ≤ H ε , we must have that
λ correlates with e(Py (qn)) on [y/q, (y + H)/q]. Now, if |x/p − y/q| ≤ H/(2 max{p, q}),
then the intervals [x/p, (x + H)/p], [y/q, (y + H)/q] have large intersection, and since by
the large sieve for polynomial phases (Proposition 3.3) there can only be boundedly many
polynomial phases that λ correlates with on an interval, we can say that
                          e(Px (pn)) ≈ e(Py (qn)),       n ∈ [x/p, (x + H)/p]

   6The actual equivalence relation used in Section 3 is slightly more elaborate; it also allows for a factor
γ(n) which is a rational polynomial. To show ideas, let us work with this slightly simpler equivalence in
which we allow the “Archimedean” error ε but not the “non-Archimedean” error γ.
   7Our use of the term approximate functional equation of course diﬀers from its meaning in the context
of L-functions.
                    HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                              13

for “most” p, q ∈ [P, 2P ] and x, y ∈ [X, 2X] with x/p = y/q + O(H/P ) for some P ≤ H ε .
This corresponds to an approximate equality of polynomials modulo 1, but using a suitable
version of the Chinese remainder theorem (Proposition 3.5), and shifting Px , Py by integer
             Q is always
amounts, which              allowable, we can eventually upgrade this to an equality modulo
                     ′
the product p′ ∈P p , where P is a “large” set of primes in [P, 2P ], and thus with our choice
of H the modulus is enormous compared to X, so we can essentially treat this as a genuine
equality in R. In this way, we can essentially pass to the approximate functional equation
                                       Px (pn) ∼ Py (qn)                                    (18)
for “most” p, q ∈ [P, 2P ] and x, y ∈ [X, 2X] with x/p = y/q + O(H/P ).
   If we now form a graph G on [X, 2X]∩Z by connecting x, y whenever x/p = y/q+O(H/P )
and x, y, p, q are satisfying the above conditions, we obtain a graph whose structure governs
the solutions to (18). In particular, (a known case of) Sidorenko’s conjecture tells us that
G contains many configurations C consisting of two ℓ-cycles and an edge between them, for
ℓ > log X/ log P . When we unwrap what this means in terms of approximate functional
equations, we obtain (in Proposition 3.7) the approximate dilation invariance
                                      Px (ax n) ∼ Px (bx n)                                 (19)
for many pairs (ax , bx ) that are of polynomial size in X (more precisely, products of ℓ primes
from [P, 2P ]), and relatively close to each other (with axa−b x
                                                                 x  H
                                                                   ≍X ).
   We then “solve” the approximate equation (19) using properties of the underlying poly-
nomial algebra, with the conclusion that Px must locally “pretend” to be a character:
                                                                 
                                                Tx
                                e(Px (n)) ≈ e      log n + γx (n) ,
                                                2π
where γx is O(X O(1) )-rational (in a sense specified in Section 4) and Tx = O(X k+1 /H k+1 );
see Proposition 3.8 for a precise statement. Moreover, the quantities Tx can now be shown
to satisfy the approximate functional equation
                                      Tx = Ty + O(X/H)
when x/p = y/q + O( PHX ), for “most” x, y, p, q. As in [26], using mixing properties of the
graph G arising from cancellation in P ≤p≤2P pit for |t| ≪ X O(1) , we may deduce from
                                     P

this that Tx = T0 + O(X/H) for some T0 of polynomial size and for a “most” values of x.
Further, we also have (modulo integer-valued polynomials) the relation
                                       γx (pn) = γy (qn)
for the same tuples (x, y, p, q), and solving this eventually leads to γx (n) being O(1)-rational
(with a bit more work than in [25], where γx (n) was just of the form qa′ n). Putting everything
together, we reach the relation (17), which was enough for finishing the proof.
   For G non-abelian, we can use some of the above arguments, but certain additional
difficulties (indicated below) arise that necessitate a more involved analysis involving quan-
titative nilalgebra and some refinements on the graph theory side. Note that by the factor-
ization theorem for nilsequences [16], we have a similar splitting of polynomials g : Z → G
14                 MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

to a smooth part, an equidistributed part and a rational part, so we may define a similar
equivalence relation for these sequences as for polynomial phases. Moreover, we can make
sense of the sequence g(n) evaluated at real n and we can define the size of an element of
G; see Section 4 for details.
   Up until the approximate functional equation (18) (now with gx (n) in place of Px (n)),
the arguments in the polynomial phase case are sufficiently general to work equally well for
nilsequences. We can also obtain the analogue of (19) similarly but, perhaps surprisingly, in
the nilsequence setting the solutions to (19) for a given pair (ax , bx ) are not all approximate
characters (see (95) for a counterexample). We thus must proceed more carefully and extract
more information from the fact that (19) holds for an extremely large family of pairs (ax , bx ).
It turns out that the pathological solutions to (19) for a given (ax , bx ) generally do not obey
(19) for other pairs (a′x , b′x ), but demonstrating that requires some work.
   The way we obtain the required extra information is by generalizing the graph theory
argument from [26] a bit (to configurations of two cycles of unequal length connected by
an edge), and this extra flexibility allows us to obtain
                         gx ((1 + θ)t) ∼ gx (t)γx,θ (t),       t ∈ [x, x + H]               (20)
for t ∈ R and for a “very dense” set of real numbersQθ = O(H/X) (as opposed to just a few
such numbers), where γx,θ is Q-rational with Q ≫ p∈[P,2P ] pε (this notion makes sense in
Lie algebras; see Section 4). This is the outcome of Proposition 4.19.
Remark 1.13. As indicated above, while in the case of polynomial phases it suffices to
have equation (20) hold for a single θ, in the more general nilsequence case this condition
is insufficient due to the existence of exotic "approximately multiplicative" nilsequences.
Consider for example φ(n) = F (g(n)Γ) where
                                                               T T
                                                            − 1 2 (log n)2
                              g(n) = eT1 1 log n eT2 2 log n e12 2
where here e1 , e2 , e12 are the generators of the free 2-step 3 dimensional nilpotent Lie group,
Γ the standard lattice. By Taylor approximation of the logarithm function, g(n) differs from
a polynomial sequence by a negligible amount. Moreover, g((1 + θ)t) = g(1 + θ)g(t) so that
so one would get φ((1 + θ)n) ∼ φ(n) if g(1 + θ) is very close to Γ, independent of n.
   It is a fact (following from the Baker–Campbell–Hausdorff formula) that if n 7→ γx,θ (n)
is simultaneously very rational and of polynomial size, then it is a constant; thus, γx,θ (n) =:
γx,θ . Make in (20) the change of variables 1 + θx = eα/N with α ∼ 1 restricted to a very
dense set of numbers and with N = X/H. Then
                           gx (eα/N t) ∼ gx (t)γx,α ,       t = x + O(H),
so by iterating
                                                           n
                                     gx (enα/N t) ∼ gx (t)γx,α
for all integers n = O(1). In fact, by an interpolation lemma (Lemma 2.3), we will be able
to boost this to real n as well. Now we essentially have a two-variable functional equation
                    HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                           15

for gx , which after some manipulation gives us

                            gx (y) ∼ T N log(y/x) ,   y = x + O(H),                      (21)

and for some T = Tx ∈ G of polynomial size. Here, T is given by the relation
                                                     s
                                             T αs ∼ γx,α

for s = O(1) and for a dense set of α ∼ 1 (cf. Proposition 4.20). This is still not enough for
us, since when G is non-abelian, y 7→ F (T N log(y/x) Γ) need not resemble a character at all.
With some extra work, which involves quantitative equidistribution theory of nilsequences
and the mixing lemma to carefully analyze the compatibility between (20) and (21), we
eventually show that T = O(1)T0 , where T0 is of polynomial size and lies either in the
center of G or in a proper rational subgroup of G. In the case that G is non-abelian,
the former case is contained in the latter. This is then finally enough, since the O(1)
error turns out to be negligible by Taylor expansion, and if T lies in a proper rational
subgroup, we ascend to a group of lower dimension, so we can apply induction to conclude.
Thus n 7→ T N log(n/x) must essentially be a polynomial function on an abelian nilmanifold,
meaning that it is a classical polynomial. This reduces us back to the polynomial phase
case, whose proof we outlined above.

1.3.2. The sign patterns result. We then sketch the proof of Theorem 1.9. Suppose for the
sake of contradiction that s(k) ≪ kA for some A and for k belonging to an infinite set K.
Then, expanding the (logarithmic) density of each sign pattern of length k as a correlation,
we must have
                                  1 X λ(n + h1 ) · · · λ(n + hj )
                        C :=                                      ≫k 1
                                log x             n
                                     n≤x

for k ∈ K and for some distinct h1 , . . . , hj ∈ [1, k]. The entropy decrement argument
developed in [34] (see also [37]), allows one to write C as a double average:

                        log P    X          1 X λ(n + ph1 ) · · · λ(n + phj )
            C = (−1)k                                                         + o(1),    (22)
                          P               log x              n
                                P ≤p≤2P        n≤x


where P = P (x) is suitable. However, P has to be very small here (namely P ≪ (log x)o(1) ),
which is by far too small in order to apply Corollary 1.6. Instead, we leverage the assumption
that λ is assumed to have few sign patterns to show that the entropy decrement argument
can be replaced with a quantitatively much stronger method of moments computation, and
this eventually allows us to obtain (22) for P ≫ X ε (along a suitable sequence of values
of X depending on K). Then we are in a position to apply Corollary 1.6, and we conclude
from the generalized von Neumann theorem that actually C = o(1), which is the desired
contradiction.
16                    MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

1.4. Acknowledgments. This work was initiated at the American Institute of Mathemat-
ics workshop on Sarnak’s conjecture in December 2018. KM was supported by Academy
of Finland grant no. 285894. MR acknowledges the support of NSF grant DMS-1902063
and a Sloan Fellowship. TT was supported by a Simons Investigator grant, the James and
Carol Collins Chair, the Mathematical Analysis & Application Research Fund Endowment,
and by NSF grant DMS-1764034. JT was supported by a Titchmarsh Fellowship. TZ was
supported by ERC grant ErgComNum 682150.
   We are grateful to the anonymous referees for their extremely careful reading of the
paper and for numerous helpful comments and remarks that improved the presentation of
this paper. We thank Amita Malik, Redmond McNamara and Peter Sarnak for helpful
discussions.

                                2. Notation and preliminaries
    We use the asymptotic notation X ≪ Y , X = O(Y ) or Y ≫ X to denote the estimate
|X| ≤ CY for some absolute constant C (in case of Y ≫ X we also require that X ≥ 0).
If we allow the constant C to depend on parameters, we will indicate this by subscripts
unless otherwise specified, thus for instance X = Ok (Y ) denotes the estimate |X| ≤ Ck Y
for some Ck depending on k. We also write X ≍ Y for X ≪ Y ≪ X.
    Several of the concepts defined in this paper (e.g., “large family”, “smooth polynomial”,
“comparable interval”, etc.) will rely on the above notation, and thus involve some unspec-
ified implicit constants. If a proposition involves such notation in both its hypotheses and
conclusion, then the implied constants in the conclusions are always permitted to depend
on the implied constants in the hypotheses.
    All intervals in this paper will be closed. If I is an interval, we use |I| to denote its
Lebesgue measure and xI to denote its midpoint, thus I = [xI − |I|                |I|
                                                                         2 , xI + 2 ]. For any
x ∈ R, we define the normalized distance
                                                   diam(I ∪ {x})
                                        hxiI :=                                                       (23)
                                                        |I|
and similarly for an interval J
                                                   diam(I ∪ J)
                                         hJiI :=               .                                      (24)
                                                       |I|
We say that two intervals I, J are comparable 8 , and write I ∼ J, if we have hIiJ , hJiI ≪ 1,
or equivalently if |I| ≍ |J| ≍ diam(I ∪ J). Note that this is an equivalence relation up to
modification of the implied constants; for instance if I ∼ J and J ∼ K then I ∼ K, where
the implied constants in the latter relation can differ from those in the former.
   If F is a finite set, we use #F to denote its cardinality. If E is a set, we use 1E to denote
its indicator function, thus 1E (n) = 1 when n ∈ E and 1E (n) = 0 otherwise. Similarly, for
any statement S, we define the indicator 1S to equal 1 when S is true and 0 otherwise.

     8Here and throughout the paper, deﬁnitions such as this one that depend on an implicit asymptotic
parameter are only called in the presence of such parameters (which will be the parameters in Theorem 1.5).
                    HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                             17

   For any subset E of the real line, we use a + E := {a + x : x ∈ E} to denote the
translation of E by a shift a ∈ R, and λE := {λx : x ∈ E} to denote the dilation of E by
a factor λ > 0. For instance if I, J are intervals, then I ∼ J if and only if λI ∼ λJ. If
f : R → S is any function taking values in some set S, we use f (λ·) : R → S to denote the
dilated function t 7→ f (λt). For
                                 an interval I and function g, we also use the pushforward
notation λ∗ (I, g) := λI, g λ1 · .
   If a, b are elements of an additive group (G, +), and H is a subgroup of G, we write
a = b mod H to denote the claim that a − b ∈ H; by abuse of notation we also use a mod H
to denote the element a + H of the quotient group G/H. Similarly, if G = (G, ·) is a
multiplicative group and H is a normal subgroup, we write a = b mod H to denote the
claim that ab−1 ∈ H.
   Summations and products over the symbol p (or p′ , etc.) are always understood to be
over primes unless otherwise specified, and similarly sums over n are understood to be over
integers unless otherwise specified.
   In Section 5, we will need some averaging notation. For a function f : A → C defined on
a set A with A ⊂ N nonempty, define its unweighted and logarithmic average over A by
                             1 X                            1    X f (n)
            En∈A f (n) :=        f (n) and Elog
                                            n∈A f (n) := P     1         ,
                            |A|                            n∈A n     n
                               n∈A                                      n∈A

respectively. Thus in particular for a bounded function f : N → C we have
                   1 X f (n)                                         1
  Elog
                                                                          X
   n≤x f (n) =               + o(1),     and Ex≤p≤2xf (p) =                 f (p) + o(1).
                 log x   n                                       x/ log x
                     n≤x                                                 x≤p≤2x
                                                    Q
  If P is a collection of prime numbers, we use P to denote the product of its elements:
                                      Y        Y
                                          P :=   p.
                                                    p∈P

For any P ≥ 2, we let π0 (P ) denote the quantity
                                                      P
                                       π0 (P ) :=         .
                                                    log P
Note that from the prime number theorem, we see that for sufficiently large P , the number
of primes in [P, 2P ] or [P/2, P ] is comparable to π0 (P ). Accordingly, we say that a set of
primes in [P, 2P ] or [P/2, P ] is large if its cardinality is ≫ π0 (P ). Observe that if P is a
large set of primes in [P, 2P ] or [P/2, P ], then we have an exponential lower bound
                                        Y
                                             P ≫ exp(cP )                                  (25)
                                                                Q
for some c ≫ 1. In practice, this lower bound means that P is so large compared with
the many “polynomial size” quantities we will encounter in the course of our arguments that
this modulus is effectively infinite.
18                  MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

   For a smooth function f : R → C, we use f (j) to denote the j th derivative for j ≥ 0. We
recall the Bernstein inequality (see e.g., [31, p. 146])

                                 sup |f (1) (t)| ≪k |I|−1 sup |f (t)|                           (26)
                                  t∈I                        t∈I


for all polynomials f ∈ Poly≤k (R → R), and hence on iteration

                                 sup |f (j) (t)| ≪k |I|−j sup |f (t)|                           (27)
                                  t∈I                        t∈I


for any j ≥ 0 (note that f (j) vanishes for j > k). From Taylor expansion we then also have

                               |f (j) (t′ )| ≪k |I|−j ht′ iIk−j sup |f (t)|                     (28)
                                                               t∈I


for any t′ ∈ R and j ≥ 0, using the notation (23).
   If δ > 0, we use Poly ≤k (δZ → Z) to denote the subgroup of the additive group
Poly≤k (R → R) consisting of polynomials γ such that γ(δZ) ⊂ Z; we refer to these polyno-
mials as 1δ -integral polynomials. We have the following explicit description of these groups:

Lemma 2.1 (Discrete Taylor expansion). For any δ > 0 and k ≥ 0, the space Poly≤k (δZ →
Z) consists precisely of those functions γ : R → R of the form
                                                   k      
                                                  X         t/δ
                                          γ(t) :=     cj
                                                             j
                                                  j=0

for some integers c0 , . . . , ck , where xj := x(x−1)...(x−j+1)
                                            
                                                         j!      .

  In some parts of the paper we will also use a non-abelian version of Lemma 2.1 (see
Lemma B.2).


Proof. By rescaling we may take δ = 1. The claim is trivial for k = 0, so suppose inductively
that k ≥ 1 and that the claim has already been proven for k−1. The polynomials j· for j =
                                                                                            

0, . . . , k all lie in Poly ≤k (Z → Z), and hence so do all integer linear combinations kj=0 cj j· .
                                                                                         P         

Conversely, suppose that γ ∈ Poly≤k (Z → Z). On taking kth divided differences, we see that
the kth derivative       γ (k) (which is a constant) is equal to an integer ck . Thus the polynomial
            ·
γ − ck k has vanishing kth derivative and thus lies in Poly≤k−1 (Z → Z). The claim now
              

follows from the induction hypothesis.                                                             


     We will need the following application of Bezout’s identity:
                     HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                                19

Lemma 2.2 (Bezout identity). Let a, b be coprime natural numbers, and let k ≥ 0. Then
for any λ > 0 we have
                                                
                       λ                    λ
              Poly≤k     Z → Z + Poly ≤k      Z → Z = Poly≤k (λZ → Z)
                       a                    b
and                                                               
                     λ                   λ                    λ
            Poly≤k     Z → Z ∩ Poly≤k      Z → Z = Poly≤k        Z→Z .
                     a                   b                    ab
   Thus for instance every 1-integral polynomial can be decomposed as the sum of an a-
integral and a b-integral polynomial, and a polynomial is ab-integral if and only if it is both
a-integral and b-integral.


Proof. See Appendix C.                                                                            


   We will need a variant of the Bernstein inequality for exponential polynomials, that is to
say real linear combinations of exponential monomials t 7→ tj exp(αt) for some non-negative
integers j and real numbers α:
Lemma 2.3 (Bernstein inequality for exponential polynomials). Let d1 , . . . , dk be non-
negative integers, and let N0 be a sufficiently large natural number depending on
k, d1 , . . . , dk . Let α1 , . . . , αk be real numbers whose absolute values are sufficiently small
depending on k, d1 , . . . , dk , N0 . Let P : R → R be a real linear combination of the exponen-
tial monomials t 7→ tj exp(αi t) for i = 1, . . . , k and 0 ≤ j ≤ di . Then for any interval I
and any non-negative integer m one has, for all t ∈ I,
                           |P (m) (t)| ≪k,d1 ,...,dk ,m,N0 ,I     sup        |P (n)|.           (29)
                                                                n=1,...,N0

Proof. See Appendix A.                                                                            



                   3. Local correlations with polynomial phases
   In this section, we establish Theorem 1.3, which implies Corollary 1.1 as a special case.
Our arguments shall follow those in [26] (although they will be reformulated in a more
general and algebraic setting that applies to relevant collections of phase functions, such
as polynomial phases and later to nilsequences in Section 4). Some familiarity with the
arguments in [26] will be presumed in this section.
   Let k, θ, f, X, η, H be as in Theorem 1.3. To simplify the notation we now allow all
implied constants in the asymptotic notation to depend on k, θ, η, thus for instance
                                  Z 2X
                                         kf kuk+1 ([x,x+H]) dx ≫ X.                             (30)
                                    X
20                    MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

We can assume that X is sufficiently large depending on k, θ, η, since the claim is trivial
otherwise. We can also assume9 k ≥ 1, since the k = 0 case follows similarly to [25, Theorem
A.1]10.
   It will be convenient to abstract the properties of the polynomial phases one is testing
against, as this will allow us to easily generalize many of the arguments in this section to
the case of nilsequence correlations in Section 4. Define a local polynomial phase to be a
pair φ = (I, P ), where I is an interval in R and P ∈ Poly≤k (R → R) is a polynomial. We
let Φ denote the set of all local polynomial phases (I, P ), and ΦI the set of local polynomial
phases (I, P ) with a given I. Intuitively, (I, P ) should be viewed as an abstraction of the
phase function t 7→ e(P (t)) on the interval I. If φ = (I, P ) is a local polynomial phase and
f : Z → C is a function, we define the correlation
                                           1 X
                                hf, φi :=        f (n)e(−P (n)).                           (31)
                                          |I|
                                                     n∈I

Thus we have
                                 kf kuk+1 ([x,x+H]) =         sup       |hf, φi|
                                                           φ∈Φ[x,x+H]

and thus from (30)
                                    Z 2X
                                               sup      |hf, φi| dx ≫ X.                                 (32)
                                     X     φ∈Φ[x,x+H]

Recall from Section 2 that given any local polynomial phase φ = (I, P ) ∈ Φ and a scaling
factor λ > 0, we define the rescaling (or pushforward) λ∗ φ ∈ Φ by the formula
                                                 
                                                   1
                                   λ∗ φ := λI, P     ·  .
                                                   λ
Note that this gives a multiplicative action on Φ, in the sense that
                                         (λ1 )∗ ((λ2 )∗ φ) = (λ1 λ2 )∗ φ
whenever φ ∈ Φ and λ1 , λ2 > 0.
   Following [26, §2], we perform a convenient discretization. Define an (X, H)-family of
intervals to be a finite collection I of intervals of length H contained in [X/10, 10X] such
that any pair of intervals in I are separated by a distance at least 500H. We say that such
a family I is large if #I ≫ X/H. By repeating the proof of [26, Lemma 2.1] (which is a
pigeonholing argument) using (32) as a starting point, one obtains a large (X, H)-family of
intervals I, such that for each I ∈ I one can find φI ∈ ΦI such that
                                                |hf, φI i| ≫ 1.                                          (33)

    9Indeed, from the results in [26] we can almost assume k ≥ 2, except for the problem that those results
contain an additional loss of H ρ in the conclusion that is not conceded here. In any case, the arguments
here will also recover the k = 1 case without diﬃculty.
    10The only diﬀerence is that one needs to, in the formula below [25, Theorem A.2], treat the integral over
|t| ≥ CX/(2H) by the mean value theorem to be able to work with M (f ; CX/H, Q) instead of M (f ; X, Q).
                    HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                           21

We remark that this step does not require any properties of the polynomial space Poly≤k (R →
R), as it only uses the fact that e(P (n)) is 1-bounded for every P in this space.
  The next step is to use the multiplicativity of f to relate the various φI to each other.
We need a key definition, given as Definition 3.1 below. Given an interval I in R, we say
that a map ε ∈ Poly≤k (R → R) is smooth on I if one has the bound
                                          |ε(t)| ≪ 1
for all t ∈ I, which by (28) also implies that
                                    dj
                                       j
                                         ε(t) ≪ |I|−j htiIk−j
                                    dt
for all j ≥ 0 and t ∈ R. In particular, if ε is smooth on I, then it is also smooth on I ′ for
any I ′ ∼ I.
Definition 3.1 (Comparability of polynomial phases). Given two local polynomial phases
φ1 = (I1 , P1 ), φ2 = (I2 , P2 ) of Φ and a scaling factor δ > 0, we define the relation
                                           φ1 ∼δ φ2
to hold if I1 ∼ I2 , and we have a splitting
                                       P1 = ε + P2 + γ,
where ε, γ ∈ Poly≤k (R → R) are polynomials obeying the following axioms:
    (i) (ε smooth) ε is smooth on I1 .
   (ii) (γ is 1δ -integral) γ ∈ Poly≤k (δZ → Z).
   Informally, the relation φ1 ∼δ φ2 asserts that φ1 “pretends to be” φ2 on the discrete set
I1 ∩ δZ. Technically, this is not a single relation, but a family of relations, depending on
the choices of implied constants appearing in (i), but we shall abuse notation by referring
to ∼δ as a single relation. It obeys the following basic properties:
Proposition 3.2 (Basic properties of ∼δ ). Let δ > 0, and let φ, φ′ , φ′′ ∈ Φ.
    (i) (Equivalence relation) We have φ ∼δ φ, and if φ ∼δ φ′ then φ′ ∼δ φ. Finally, if
        φ ∼δ φ′ and φ′ ∼δ φ′′ then φ ∼δ φ′′ , where we allow the implied constants in the
        latter relations to depend on the implied constants in the former relations.
   (ii) (Dilation invariance) If φ ∼δ φ′ and λ > 0, then λ∗ φ ∼λδ λ∗ φ′ .
  (iii) (Sparsification) If φ ∼δ φ′ , then φ ∼ℓδ φ′ for any natural number ℓ.
Proof. These are immediate from Definition 3.1, together with the previously made obser-
vation that a polynomial smooth on an interval I is automatically smooth on all comparable
intervals I ′ ∼ I.                                                                      
  The relevance of this relation to the correlations (33) comes from the following lemma.
Proposition 3.3 (Large sieve). Let I be an interval of some length |I| ≥ 1, and let f :
Z → C be a function bounded in magnitude by 1. Suppose that for each i = 1, . . . , K there
is an interval Ii ∼ I and a local polynomial phase φi ∈ ΦIi such that
                                         |hf, φi i| ≫ 1.
22                 MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

Then either
                                                   K≪1
or there exists 1 ≤ i < j ≤ K such that
                                                  φi ∼1 φj .
Proof. Write φi = (Ii , Pi ) and H = |I|. By (31), for each 1 ≤ i ≤ K, we can find a real
number θi such that                                     
                                        X
                             Re e(θi )   f (n)e(−Pi (n)) ≫ H
                                            n∈Ii
and hence on summing in i and rearranging
                                          K
                                                                                 !
                            X             X
                      Re          f (n)         1Ii (n)e(θi )e(−Pi (n))              ≫ HK.
                            n∈I           i=1
By Cauchy-Schwarz we conclude that
                             K                                        2
                           X X
                                      1Ii (n)e(θi )e(−Pi (n))                ≫ HK 2 .
                           n∈I i=1
The left-hand side can be rearranged as
                             K
                           K X
                           X                         X
                                     e(θj − θi )               e(Pi (n) − Pj (n)).
                           i=1 j=1                 n∈Ii ∩Ij

Thus, by the pigeonhole principle and triangle inequality, there exists 1 ≤ i ≤ K such that
                             K
                             X       X
                                                e(Pi (n) − Pj (n)) ≫ HK,
                             j=1 n∈Ii ∩Ij

and hence
                                     X
                                              e(Pi (n) − Pj (n)) ≫ H                         (34)
                                   n∈Ii ∩Ij
for ≫ K choices of j = 1, . . . , K. Fix this choice of i.
   Let nI denote an integer point in I. For each j such that (34) holds, we write
                                                         k
                                                         X
                                  Pi (t) − Pj (t) =            αj,l (t − nI )l
                                                         l=0
for some real coefficients αj,l . Then we have
                                                          k
                                                                             !
                                      X                   X
                                                                         l
                                                     e          αj,l n           ≫H
                             n∈(Ii −nI )∩(Ij −nI )        l=0
                        HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                                        23

Applying Weyl sum estimates such as [33, Lemma 1.1.16], we conclude that there exists a
natural number 1 ≤ qj ≪ 1 such that
                                               kqj αj,l kR/Z ≪ H −l
for l = 0, . . . , k, where kxkR/Z denotes the distance of x to the nearest integer. In particular
there exist natural numbers 1 ≤ aj,l ≤ qj such that
                                                      aj,l
                                             αj,l −                ≪ H −l .
                                                      qj     R/Z

The total number of tuples (qj , aj,1 , . . . , aj,k ) is O(1). Thus by the pigeonhole principle,
either K ≪ 1, or else there exist 1 ≤ j < j ′ ≤ K such that qj = qj ′ and aj,l = aj ′ ,l for all
l = 0, . . . , K. In particular, by the triangle inequality we have
                                           kαj,l − αj ′ ,l kR/Z ≪ H −l
for l = 0, . . . , K, so we can write αj ′ ,l = εj,j ′ ,l + αj,l + γj,j ′ ,l for some integer γj,j ′ ,l and some
real number εj,j ′ ,l = O(H −l ). This gives the decomposition
                                 k
                                 X                                         k
                                                                           X
                      Pj (t) =         εj,j ′ ,l (t − nI )l + Pj ′ (t) +         γj,j ′ ,l (t − nI )l .
                                 l=0                                       l=0

Comparing this with Definition 3.1, we see that
                                                      φj ∼1 φj ′ ,
and the proposition follows.                                                                                 

   Using this proposition, we can obtain
Proposition 3.4 (Scaling down). Let 2 ≤ P ≤ Q ≤ H ≤ X and let f : N → C be a
1-bounded multiplicative function. Suppose there exists a large (X, H)-family I and a local
polynomial phase φI ∈ ΦI associated to each interval I ∈ I such that
                                                   |hf, φI i| ≫ 1
                                     log Q
for all I ∈ I. Assuming that P, log      P are sufficiently large (depending on the implied con-
stants in the above hypotheses), there exist P ′ ∈ [P, Q/2], a large ( PX′ , PH′ )-family I ′ , and a
function φ′I ′ ∈ ΦI ′ associated to each I ′ ∈ I ′ , such that
                                                   |hf, φ′I ′ i| ≫ 1
for all I ′ ∈ I ′ . Furthermore, for each I ′ ∈ I ′ , one can find ≫ π0 (P ′ ) pairs (I, p′ ), where
I ∈ I and p′ is a prime in [P ′ , 2P ′ ], such that the rescaled interval p1′ I lies within 3 PH′ of
I ′ , and such that
                                           1
                                          ( ′ )∗ φI ∼1 φ′I ′ .                                  (35)
                                           p
24                     MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

Proof. From Proposition 3.3 and the greedy algorithm, we can associate to each interval I
of length H ≥ 1 and any η ′ > 0 a family φ1 , . . . , φK ∈ ΦI of local polynomial phases with
K = Oη′ (1) such that whenever one has
                                               |hf, φi| ≥ η ′
for some φ ∈ ΦJ with J ⊂ I and |J| ≥ η ′ |I|, then one has
                                                  φ ∼1 φi
for some i = 1, . . . , K (if we permit implied constants in the ∼1 notation to depend on η ′ ).
The claim now follows by repeating the proof of [26, Proposition 3.1] (which is a Turán–
Kubilius argument), using the above claim as a substitute for [26, Lemma 2.2]. For the
convenience of the reader we sketch the main ideas of this argument as follows. First, by
using [26, Proposition 2.5] and the multiplicative nature of f , one can deduce that
                                                  1
                                            |hf, ( ′ )∗ φI i| ≫ 1
                                                  p
for many I ∈ I and many primes p′ ∈ [P, Q], and thence (by the pigeonhole principle) for
many I ∈ I and p′ ∈ [P ′ , 2P ′ ] for a suitable P ′ . By further pigeonholing, we may arrange
matters so that the intervals p1′ I lie close to intervals I ′ in a suitable large ( PX′ , PH′ )-family
I ′ . Using the previously mentioned claim, one can then show that many of the ( p1′ )∗ φI
associated to a given interval I ′ are related via the ∼1 relation to a suitable phase φ′I ′ ,
which will give the claim.                                                                           
  We also need the following version of the Chinese remainder theorem11. This proposition
turns out to be very useful in what follows, since it allows us to upgrade equivalences
between different exponential phases up to the point where the modulus is so large that we
must have a genuine equality in R.
Proposition 3.5 (Chinese remainder theorem). Let I be an interval of some length |I| ≥ 1,
and let P be a finite collection of primes.
    (i) Suppose that φ ∈ ΦI , and that for each p ∈ P there exists φp ∈ Φ such that
                                                 φp ∼1 φ.
          Then there exists φ̃ ∈ ΦI such that
                                                 φp ∼ 1 φ̃
                                                       p


           for all p ∈ P, and furthermore hf, φi = hf, φ̃i for all f : Z → C.
      (ii) Suppose that φ ∈ ΦI and φ′ ∈ Φ are such that
                                                  φ ∼ 1 φ′
                                                      p


     11The reason we call this a Chinese remainder theorem is that it allows us to combine mod p conditions
for diﬀerent primes p.
                           HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                                           25

         for all p ∈ P, and suppose |I| is sufficiently large (depending on the implied constants
         in the ∼ 1 notation). Then
                      p
                                                    φ ∼ Q1 φ′ .
                                                             P

Proof. See Appendix C.                                                                                             
   One can now conclude
Proposition 3.6 (Building a family of related local polynomial phases). Let the hypotheses
be as in Theorem 1.3. Let ε > 0 be sufficiently small depending on k, θ, η, and suppose that
                                                                                          2
X is sufficiently large depending on θ, η, ε, k. Then there exist P ′ , P ′′ ∈ [X ε /2 , X ε ], a large
(PX           H                ′′                              ′′
   ′ P ′′ , P ′ P ′′ )-family I , and local polynomial phases φI ′′ ∈ ΦI ′′ for each I
                                                                                       ′′ ∈ I ′′ such that

                                                  |hf, φ′′I ′′ i| ≫ 1                                           (36)
for all   I ′′    I ′′ .
                      ∈         Furthermore, there exists a collection Q of ≫             π0 (P ′ )2 X
                                                                                                     H quadruples
(I1′′ , I2′′ , p′1 , p′2 ) with I1′′ , I2′′ distinct intervals in I ′′ and p′1 , p′2 distinct primes in [P ′ , 2P ′ ],
                                                     p′
such that I1′′ lies within 50 P ′HP ′′ of p2′ I2′′ (so in particular p1′ I1′′ ∼ p1′ I2′′ ), and such that
                                              1                                  2    1

                                             1                    1
                                           ( ′ )∗ φ′′I ′′ ∼ 1′′ ( ′ )∗ φ′′I ′′                                  (37)
                                            p2        1    p     p1        2


for a large set of primes p′′ in [P ′′ /2, P ′′ ]. (The implied constants in the conclusions may
depend on the implied constants in the hypotheses.)
Proof. One basically repeats [26, Proof of Proposition 3.2] more or less verbatim, but re-
placing [26, Proposition 3.1] by Proposition 3.4. For the convenience of the reader we
now outline some more details of the argument. By two applications of Proposition 3.4
(arguing exactly as in the proof of [26, Proposition 3.2] down to [26, (41)]), we can find
          2                                 2                        2
P ′ ∈ [X ε , X ε ] and P ′′ ∈ [(X/P ′ )ε , (X/P ′ )ε ] ⊂ [X ε /2 , X ε ], an (X/P ′ , H/P ′ )-family I ′ of
intervals, an (X/P ′ P ′′ , H/P ′ P ′′ )-family I ′′ of intervals, and functions φ′I ′ , φ′′I ′′ ∈ Φ associ-
ated to each I ′ ∈ I ′ , I ′′ ∈ I ′′ with the following properties:
      • One has (36) for all I ′′ ∈ I ′′ .
      • For each I ′ ∈ I ′ , there are ≫ π0 (P ′ ) pairs (I, p′ ) with I ∈ I and p′ a prime in
        [P ′ , 2P ′ ] such that I/p′ lies within 3H/P ′ of I ′ and
                                                  1
                                                ( ′ )∗ φI ∼1 φ′I ′ .                                    (38)
                                                  p
      • For each I ′′ ∈ I ′′ , there are ≫ π0 (P ′′ ) pairs (I ′ , p′′ ) with I ′ ∈ I ′ and p′′ a prime in
        [P ′′ /2, P ′′ ] such that I ′ /p′′ lies within 3 P ′HP ′′ of I ′′ , and
                                                 1
                                               ( ′′ )∗ φI ′ ∼1 φ′′I ′′ .                                (39)
                                                p
Note that the property (36) only depends on the values of φ′′I ′′ on the integers. Thus, by
Proposition 3.5(i), we may without loss of generality upgrade (39) to
                                                 1
                                              ( ′′ )∗ φI ′ ∼ 1′′ φ′′I ′′                                (40)
                                                p            p
26                      MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

without impacting (36) or any of the other properties listed above. Henceforth we shall
assume that (40) holds. Applying Cauchy-Schwarz (as in the continuation of the proof
                                                                                                                12
of [26, Proposition 3.2] down to [26, (43)]), we can now find ≫ π0 (P ′ )2 π0 (P ′′ ) X             H octuplets
(I, I1′ , I2′ , I1′′ , I2′′ , p′1 , p′2 , p′′ ) where
         • I ∈ I, I1′ , I2′ ∈ I ′ , I1′′ , I2′′ ∈ I ′′ ;
         • p′1 , p′2 are primes in [P ′ , 2P ′ ], and p′′ is a prime in [P ′′ /2, P ′′ ], with p′1 6= p′2 ;
         • For i = 1, 2, p1′ I lies within 3 PH′ of Ii′ , and p1′′ Ii′ lies within 3 P ′HP ′′ of Ii′′ .
                                         i
         • For each i = 1, 2, we have
                                                  1
                                                 ( ′ )∗ φI ∼1 φ′I ′                                           (41)
                                                  pi             i


           and
                                        1
                                      ( ′′ )∗ φ′I ′ ∼ 1′′ φ′′I ′′ .                                           (42)
                                       p         i   p        i

     From (41) and Proposition 3.2(ii) we have for i = 1, 2 that
                                              1                 1
                                           ( ′ ′′ )∗ φI ∼ 1′′ ( ′′ )∗ φ′I ′
                                            pi p         p     p         i


and hence by (42) and Proposition 3.2(i)
                                                  1
                                               ( ′ ′′ )∗ φI ∼ 1′′ φ′′I ′′
                                                pi p         p        i


     and thus by Proposition 3.2(ii), (iii)
                                            1                   1
                                        ( ′ ′ ′′ )∗ φI ∼ 1′′ ( ′ )∗ φ′′I ′′
                                         p1 p2 p        p     p3−i      i


and thus by Proposition 3.2(i) we obtain (37). The proposition now follows by repeating the
remainder of the proof of [26, Proposition 3.2] (where one estimates how many quadruples
arise from these octuplets).                                                             
   One should think of the set Q of quadruples e = (I1′′ , I2′′ , p′1 , p′2 ) produced by the above
proposition as a family of “edges” of a certain graph with vertex set I ′′ . Now, we adapt the
graph-theoretic arguments in [26, §4] to locate lots of quadruples e = (I1′′ , I2′′ , p′1 , p′2 ) in Q
for which one has a lot of structural control on the local polynomial phases φ′′I ′′ , φ′′I ′′ , and
                                                                                         1     2
their relationship to each other. For the rest of this section we introduce the quantities
                                                     X
                                   N := #I ′′ ≍            and d := π0 (P ′ )2 .                              (43)
                                                     H
We say that a quantity a is of polynomial size if one has a = O(X O(1) ). For instance,
P ′ , P ′′ , H, X, N, d are all of polynomial size.

     12For a visualization of the dependencies between the intervals I, I ′ , I ′′ , I ′ and I ′′ , we refer to [26,
                                                                               1   1   2       2
Figure 8].
                      HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                                        27

Proposition 3.7 (Local structure of φ′′ ). Let the hypotheses be as in Theorem 1.3, and let
ε, X, P ′ , P ′′ , I ′′ , φ′′I ′′ , Q be as in Proposition 3.6. Let ℓ1 , ℓ2 be even integers such that
                                              dℓ1 , dℓ2 ≥ N 2 d10 .                                     (44)
(Note from the lower bound on P ′ that we can choose ℓ1 , ℓ2 = Oε (1)). We allow implied
constants to depend on ε, ℓ1 , ℓ2 . Then, for a subset Q′ of the quadruples e = (I1′′ , I2′′ , p′1 , p′2 )
in Q of cardinality ≫ dN , one can find a collection Ae of quadruples ~a = (a1 , a2 , b1 , b2 )
of natural numbers of cardinality ≍ dℓ1 +ℓ2 /N 2 , and a large collection Pe,~a of primes in
[P ′′ /2, P ′′ ] associated to each ~a ∈ Ae , with the following properties:
       (i) One has
                                         1                    1
                                       ( ′ )∗ φ′′I ′′ ∼ Q 1 ( ′ )∗ φ′′I ′′ .                       (45)
                                        p2        1      Pe,~
                                                            a p 1
                                                                       2

           Here the implied constants in the equivalence relation do not depend on ℓ1 or ℓ2 .
      (ii) For i = 1, 2, ai , bi are products of ℓi primes in [P ′ , 2P ′ ]; in particular
                                                ai , bi ≍ (P ′ )ℓi ,                                    (46)
         so ai , bi are of polynomial size. Furthermore, we have
                                                    1
                                          a i − bi ≍ a i .                                              (47)
                                                    N
   (iii) For i = 1, 2, we have the approximate dilation invariance
                                          1                     1
                                      (      )∗ φ′′I ′′ ∼ Q 1 ( )∗ φ′′I ′′ .                            (48)
                                          ai        i      Pe,~
                                                              a bi     i


        Here the implied constants in the equivalence relation may depend on ℓi , but not on
        the complementary parameter ℓ3−i .
   For the arguments in this section, one could take the parameters ℓ1 , ℓ2 to be equal to
each other, but in the next section it will be convenient to allow ℓ1 , ℓ2 to be distinct (in fact
in that section we will take ℓ1 to be very large compared to ℓ2 ). The specified dependence
of parameters in (45), (48) on ℓ1 , ℓ2 will be of no relevance in the current arguments, but
will be crucially exploited in the next section.
Proof. Running the proof of [26, Proposition 4.1] all the way down to [26, (53)] (with the
role of k replaced by ℓ1 and ℓ2 , noting that the argument works perfectly well when the
two cycles in the graph have different length), with Proposition 3.6 playing the role of [26,
Proposition 3.2], we conclude that we can find ≫ dℓ1 +ℓ2 +1 /N (ℓ1 + ℓ2 )-tuples
                             I~′′ := (Ij,i
                                       ′′
                                           )i=1,2;j∈{0,1,...,ℓi −1} ∈ (I ′′ )ℓ1 +ℓ2
which are “non-degenerate and very good” in the sense that they obey the following axioms:
    (i) If i = 1, 2 and j = 0, . . . , ℓi − 1 then there exist (uniquely determined) distinct
                                                                                              p′
        primes p′1,j,i , p′2,j,i ∈ [P ′ , 2P ′ ] such that Ij+1,i
                                                            ′′    lies within 100 P ′HP ′′ of p1,j,i
                                                                                               ′
                                                                                                      ′′ (with
                                                                                                     Ij,i
                                                                                               2,j,i
                                                                 1
                                          ′′ ). In particular
        the cyclic convention Iℓ′′i ,i = I0,i                 p′
                                                                    ′′
                                                                   Ij+1,i ∼ p′ 1 Ij,i
                                                                                  ′′ .
                                                                         1,j,i        2,j,i
28                      MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

                                                                                 ′′ , I ′′ , p′ , p′ ) ∈ Q.
     (ii) There also exist distinct primes p′1 , p′2 ∈ [P ′ , 2P ′ ] such that (I0,1   0,2 1 2
                                                                         p′
                               ′′ lies within 100 H of 1 I ′′ and hence 1 I ′′ ∼ 1 I ′′ .
           In particular, I0,2                   P ′ P ′′ p′2 0,1            p′1 0,2 p′2 0,1
                                           ′
     (iii) For i = 1, 2, the primes p1,j,i, j = 0, . . . , ℓi − 1 are distinct from the primes p′2,j,i ,
           j = 0, . . . , ℓi − 1. In particular we have the non-degeneracy condition
                                              i −1
                                             ℓY                   i −1
                                                                 ℓY
                                                     p′2,j,i −           p′1,j,i 6= 0                 (49)
                                               j=0                 j=0
          for i = 1, 2.
     (iv) There exists a large collection P(I~′′ ) of primes in [P ′′ /2, P ′′ ] such that
                                    1                   1
                                 ( ′ )∗ φ′′I ′′ ∼ 1 ( ′ )∗ φ′′I ′′                                    (50)
                                  p2,j,i    j,i   Q   p1,j,i   j+1,i


          for all j = 0, . . . , ℓi − 1 and i = 1, 2, and similarly
                                           1                  1
                                         ( ′ )∗ φ′′I ′′ ∼ 1 ( ′ )∗ φ′′I ′′ ,                          (51)
                                          p2        0,1   Q  p1        0,2

          where Q is the modulus
                                                           P(I~′′ ).
                                                        Y
                                               Q :=                                                   (52)
  The relationships between the intervals Ij,i′′ can be schematically described by an ℓ -cycle
                                                                                       1
and an ℓ2 -cycle linked by an edge; see [26, Figure 10] for an example of this diagram in the
case ℓ1 = ℓ2 = 4.
  We note that in [26] the distinctness of the primes p′1,j,i and the primes p′2,j,i in (iii)
was not established. However one can obtain this reduction as follows. For the sake of
notation we eliminate the contribution of the case when one has a collision p′1,0,1 = p′2,0,1 ;
the other cases are treated similarly. Firstly observe that from iterating axiom (i) using the
equivalence relation and dilation invariance properties of ∼, we have
                                     Qℓi −1 ′
                                       j=0 p1,j,i ′′     ′′
                                     Qℓi −1 ′ I0,i ∼ I0,i
                                            p
                                       j=0 2,j,i
and hence
                                        i −1
                                       ℓY                   i −1
                                                           ℓY
                                                                               1 ′ ℓi
                                               p′2,j,i −           p′1,j,i .     (P )                 (53)
                                                                               N
                                       j=0                 j=0
for i = 1, 2. If p′1,0,1 = p′2,0,1 , we can cancel one factor in the i = 1 case and conclude that
                                     1 −1
                                    ℓY                   1 −1
                                                        ℓY
                                                                              1 ′ ℓ1 −1
                                            p′2,j,1 −           p′1,j,1 .       (P )    .
                                                                              N
                                    j=1                 j=1

Using [26, Lemma 2.6], the number of primes p′1,j,i , p′2,j,i that can obey all these constraints
is bounded by
                                        dℓ1 −1 dℓ2    dℓ1 +ℓ2 −1/2
                            ≪ π0 (P ′ )            ≪               .
                                         N N               N2
                         HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                                  29


Since the tuple I~′′ is determined by the quadruple (I0,1    ′′ , I ′′ , p′ , p′ ) ∈ Q and the above
                                                                   0,2 1 2
                     ′′   ′′                      ′    ′
primes, and since I0,1 , I0,2 uniquely determine p1 , p2 , we conclude that the number of tuples
of this type is bounded by O(dℓ1 +ℓ2 +1/2 /N ), and so these tuples can be removed without
significantly affecting the total number of tuples. Similarly for other collisions.
   In a similar spirit, we may improve the non-degeneracy bound property (49) to
                                     i −1
                                    ℓY                     i −1
                                                          ℓY
                                                                                1 ′ ℓi
                                            p′2,j,i −             p′1,j,i ≫       (P )                (54)
                                                                                N
                                    j=0                   j=0

by the following argument. Suppose that we had
                                     i −1
                                    ℓY                   i −1
                                                        ℓY
                                                                                1 ′ ℓi
                                            p′2,j,i −           p′1,j,i ≤ c       (P )
                                                                                N
                                    j=0                   j=0

for some i = 1, 2, and some c > 0 to be chosen later. From (53) with i replaced by 3 − i we
also have
                             ℓ3−i −1                    ℓ3−i −1
                              Y                           Y                            1 ′ ℓ3−i
                                       p′2,j,3−i −                 p′1,j,3−i .           (P )         (55)
                                                                                       N
                              j=0                         j=0

By two applications of [26, Lemma 2.6], the number of tuples (p′l,j,i )l,i=1,2;j=0,...,ℓi −1 of
primes in [P ′ , 2P ′ ] with these properties is O(cdℓ1 +ℓ2 /N 2 ). Since the tuple I~′′ is determined
by (I ′′ , I ′′ , p′ , p′ ) and the above primes, we conclude that the number of tuples I~′′ arising
     0,1   0,2   1   2
in this fashion is at most O(cdℓ1 +ℓ2 +1 /N ). For c small enough, this is less than (say) half of
the tuples of I~′′ currently under consideration, so on removing those tuples we obtain the
bound (54).
   If we apply Proposition 3.2(ii) to (50) with the dilation factor
                                                                   
                                   Y                     Y
                                         p′1,j ′ ,i     p′2,j ′ ,i 
                                         0≤j ′ <j                   j<j ′ <ℓi

we conclude that
                                          1                      1
                                     (        )∗ φ′′I ′′ ∼ 1 (        )∗ φ′′I ′′
                                         aj,i        j,i   Q   aj+1,i        j+1,i


for j = 0, . . . , ℓ − 1, where
                                                                                            
                                                 Y                           Y
                              aj,i :=                    p′1,j ′ ,i                 p′2,j ′ ,i 
                                               0≤j ′ <j                    j≤j ′ <ℓi

                                                          ′′ all have length ≍ (P ′ )−ℓi H
for j = 0, . . . , ℓi . Observe that the intervals a1j,i Ij,i                           P ′ P ′′ and are
comparable to each other in the sense of the relation ∼. Applying Proposition 3.2(i), (iii)
30                     MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

O(ℓi ) times, we conclude that
                                             1                     1
                                        (        )∗ φ′′I ′′ ∼ 1 (        )∗ φ′′I ′′ .
                                            a0,i        0,i   Q   aℓi ,i        0,i


Since a0,i , aℓi ,i are the product of ℓi distinct primes in [P ′ , 2P ′ ], we have
                                                  a0,i , aℓi ,i ≍ (P ′ )ℓi .                                    (56)
Also, from the fundamental theorem of arithmetic, once one fixes I0,1                      ′′ , I ′′ , each quadruplet
                                                                                                 0,2
                                                                                    ~ ′′
(a0,1 , aℓ1 ,1 , a0,2 , aℓ2 ,2 ) is associated to at most O(1) tuples I (note that from the above
axiom (i) that Ij+1,i    ′′     is uniquely determined by Ij,i     ′′ , p′        ′
                                                                         1,j,i , p2,j,i ).
                                           1 ′′
  On the other hand, since a0,i              I0,i ∼ aℓ1 ,i I0,i
                                                            ′′ , we have
                                                      i
                                                 
                                      1        1                 X                       H
                                           −        (P ′ )−ℓi ′ ′′ ≪ (P ′ )−ℓi ′ ′′
                                     aℓi ,i a0,i                PP                     PP
which simplifies using (56), (43) to
                                                     (P ′ )ℓi
                                               aℓi ,i − a0,i ≪.
                                                       N
From (54) we get the corresponding lower bound. If we set ai to be the larger of aℓi ,i , a0,i
and bi to be the smaller, then we have the properties claimed in (ii), (iii) of the proposition,
while (i) follows from (51).
   The counting argument at the end of the proof of [26, Proposition 4.1] (which is based
on the estimate in [26, Lemma 2.6]) shows that each quadruple e in Q is associated to at
most O(dℓ1 +ℓ2 /N 2 ) tuples I~′′ of the above form, and Q has cardinality O(dN ), hence there
is a subset Q′ of Q of cardinality ≫ dN such that each e ∈ Q′ is associated to ≍ dℓ1 +ℓ2 /N 2
tuples I~′′ , which by the previous discussion generates ≍ dℓ1 +ℓ2 /N 2 quadruples (a1 , b1 , a2 , b2 )
obeying the required properties (i), (ii), (iii). The claim follows.                                
   In this section the precise values of ℓ1 , ℓ2 are not important; we can select them to be
any bounded even integers obeying (44). In [26], ℓ1 , ℓ2 were essentially chosen to be the
minimal even integer obeying (44), so that one could make ai − bi as small as possible;
however this will convey no significant advantage in our current arguments.
   While the above proposition produces a large family Ae of quadruples ~a associated to
each e ∈ Q′ , in the argument below it will suffice to just use a single such quadruple ~a; this
was also the case in the previous paper [26]. However, when we work with nilsequences in
the next section, it will become necessary to use multiple quadruples ~a for each e ∈ Q′ .
   Thus far we have not exploited the polynomial phase structure of functions in P beyond
the properties in Proposition 3.2 and Proposition 3.3. Now we make heavier use of this
structure in order to “solve” the approximate dilation invariance relation (48) produced by
Proposition 3.7, using just a single quadruple from Ae . The following proposition asserts,
roughly speaking, that this equation is only solvable when the local polynomial phases φ′′I ′′ (t)
                                                                                                                i
“pretend” to be like the character tiT on Ii′′ for some real number T = TI1′′ ,I2′′ . Let us say that
                        HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                                           31

a polynomial γ ∈ Poly≤k (R → R) is Q-rational for some Q if it lies in Poly≤k ( Qq Z → Z)
for some natural number q of polynomial size.
Proposition 3.8 (Solving the approximate dilation invariance). Let the notation and hy-
potheses be as in Proposition 3.7, and write φ′′I ′′ = (I ′′ , PI ′′ ) for each I ′′ . Then for any of
the quadruples e = (I1′′ , I2′′ , p′1 , p′2 ) ∈ Q′ , and any ~a = (a1 , b1 , a2 , b2 ) in Ae , there exists a
real number
                                              T = TI1′′ ,I2′′ ≪ N k+1
and decompositions
                                                T
                                     PIi′′ (t) = εi (t) +
                                                   log t + γi (t)
                                                2π
for i = 1, 2 and t > 0, where εi : R+ → R is a smooth function obeying the derivative bounds
                                                     (j)
                                                    εi (t) ≪j |Ii′′ |−j
for all j ≥ 0 and t ∈ Ii′′ , and γi is a Q-rational polynomial with
                                                Y
                                          Q :=      Pe,~a .
Here T, εi and γi may depend on e and ~a.
  Also, we have
                         γ1 (p′2 ·) = γ2 (p′1 ·) mod Poly≤k (Z → Z).                                         (57)
Proof. We abbreviate PIi′′ as Pi . From (48) we have an identity of the form
                                     Pi (ai t) = ε′′i (t) + Pi (bi t) + γi′ (t)
                                                                     1
where ε′′i ∈ Poly≤k (R → R) is smooth on a1i I1′′ and γi′ ∈ Poly≤k ( Q Z → Z) is Q-integral; by
a change of variables, we can write this as
                                    Pi (ai t) = ε′i (ai t) + Pi (bi t) + γi′ (t)                             (58)
where ε′i ∈ Poly≤k (R → R) is now smooth on I1′′ . Taking kth derivatives to make all
functions independent of t, we conclude in particular that
                                       (k)                             (k)
                                  aki Pi      = aki (ε′i )(k) + bki Pi       + (γi′ )(k)
or equivalently
                                               (k)
                                           qi Pi     = aki (ε′i )(k) + (γi′ )(k)                             (59)
       13
where qi := aki − bki . As γi is Q-integral, we see on taking kth divided differences (or using
                   (k)
Lemma 2.1) that γi is an integer multiple ci Qk of Qk . Thus
                                              (k)
                                       qi Pi        = O(aki |Ii′′ |−k ) + ci Qk

   13Note that this choice of q explains why our bound on q in this lemma is a lot weaker that in [26,
                               i                           i
Proposition 4.1], even if we try to take ℓ1 , ℓ2 to be as small as possible. Indeed, if qi = aki − bki with ai − bi
small, aki − bki may still be relatively large.
32                    MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

From (46) we also know that qi is a natural number of polynomial size; and from the mean
value theorem and (47) we have
                                          a i − bi k    1
                                    qi ≍           ai ≍ aki .
                                               ai       N
We thus have
                                   (k)    ci
                                 Pi = Qk + O(N |Ii′′ |−k ).
                                          qi
Recalling that xIi′′ is the midpoint of Ii′′ , we can write the above estimate as

                                   (k)       ci k (−1)k−1 (k − 1)! Ti
                                 Pi      =      Q +                                             (60)
                                             qi         2π        xkI′′
                                                                                   i

for some real number Ti with the bounds
                                             k
                                      X
                           Ti ≪ N                |Ii′′ |−k ≪ N k+1 .
                                     P ′ P ′′
Motivated by the Taylor expansion around xIi′′ , we write
                                           Ti
                               Pi (t) = ε̃i (t) +
                                              log t + P̃i (t) + γ̃i (t)                         (61)
                                           2π
for t ∈ R+ , where ε̃i : R+ → R is the Taylor remainder
                                                                k
                                                       X (−1)j−1 Ti (t − xI ′′ )            j
                               Ti       Ti                                    i
                    ε̃i (t) = − log t +    log xIi′′ +
                               2π       2π                 2πj
                                                               j=1      xj ′′          Ii

which is a smooth function obeying the bounds
                                             (j)
                                         ε̃i (t) ≪j (H/P ′ P ′′ )−j
for j ≥ 0 and t ∈ Ii′′ , and γ̃i ∈ Poly ≤k (R → R) is the function
                                                         
                                                      ci Qt
                                           γ̃i (t) :=          ,
                                                      qi k
and
                                                k                          j
                                             X      (−1)j−1 Ti (t − xIi′′ )    Ti
               P̃i (t) := Pi (t) − γ̃i (t) −                         j
                                                                             −    log xIi′′
                                                      2πj          x   ′′
                                                                               2π
                                              j=1                    I         i
is an element of Poly ≤k−1 (R → R). We can then write by (58) and (61)
                                  P̃i (ai t) = ε∗i (ai t) + P̃i (bi t) + γi∗ (t)                (62)
for t ∈ R+ , where                                                             
                                                                     Ti      bi
                          γi∗ (t) := γi′ (t) + γ̃i (bi t) − γ̃i (ai t) + log
                                                                    2π       ai
and                                                                          
                          ∗         ′            bi                 Ti       bi
                         εi (t) := εi (t) + ε̃i     t − ε̃i (t) +       log       .
                                                 ai                 2π       ai
                     HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                               33

By construction, γi∗ is an element of Poly≤k ( qQi Z → Z) that has vanishing kth derivative,
so γi∗ in fact lies in Poly≤k−1 (R → R). From (62) we conclude that ε∗i (ai t) also lies in
Poly≤k−1 (R → R), and from the triangle inequality we have
                                    (ε∗i )(j) (t) ≪ (H/P ′ P ′′ )−j
for all j ≥ 0 and t ∈ Ii′′ . In conclusion, P̃i obeys similar properties to Pi except that all
polynomials involved have degree at most k − 1 instead of at most k, and the polynomial γi∗
lies in Poly≤k−1 ( qQi Z → Z) rather than Poly ≤k−1 ( Q1 Z → Z). One can iterate this procedure
k times and after collecting terms in the telescoping series, one ends up with a decomposition
of the form
                                              Ti∗∗
                            Pi (t) = ε∗∗
                                      i (t) +      log t + Pi∗∗ + γi∗∗ (t)
                                              2π
for t ∈ R+ , where Ti∗∗ is a real number with
                                            Ti∗∗ ≪ N k+1 ,
ε∗∗   +
 i : R → R is a smooth function obeying the derivative estimates

                                   (ε∗∗ (j)         ′ ′′ −j
                                     i ) (t) ≪j (H/P P )

for all j ≥ 0 and t ∈ Ii′′ , Pi∗∗ ∈ R is a constant, and γi∗∗ is Q-rational. By splitting Pi∗∗ into
integer and fractional parts and redistributing these parts to γi∗∗ and ε∗∗    i respectively, we
may assume that Pi∗∗ = 0, thus
                                                     Ti∗∗
                               Pi (t) = ε∗∗
                                         i (t) +          log t + γi∗∗ (t)                    (63)
                                                     2π
for t ∈ R+ .
   This is almost what we need for the claims of the proposition (excluding (57)), except
that the two real numbers T1∗∗ , T2∗∗ are allowed to be unequal. From (51) and Definition 3.1
we have
                           P1 (p′2 t) = ε† (p′2 t) + P2 (p′1 t) + γ † (t)
                                                      ′′ , and γ † is Q-integral. Inserting
for t ∈ R+ , where ε† ∈ Poly ≤k (R → R) is smooth on I0,1
(63), we conclude that
                        T1∗∗                           T ∗∗
                             log(p′2 t) = ε†† (p′2 t) + 2 log(p′1 t) + γ †† (t)
                        2π                              2π
where ε†† : R+ → R is given by the formula
                            ε†† (p′2 t) := ε† (p′2 t) + ε∗∗  ′       ∗∗ ′
                                                         2 (p1 t) − ε1 (p2 t)

and obeys the derivative estimates
                                   (ε†† )(j) (t) ≪j (H/P ′ P ′′ )−j
for all j ≥ 0 and t ∈ Ii′′ , and γ †† is given by the formula
                             γ †† (t) := γ † (t) + γ2∗∗ (p′1 t) − γ1∗∗ (p′2 t).               (64)
34                    MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

and in particular is Q-rational. Let nI0,1
                                       ′′
                                                                   ′′ . From Lemma 2.1 we
                                           be an integer point of I0,1
                                                                 Q
see that the first derivative (γ †† )′ (nI0,1
                                          ′′ ) takes values in k Z for some q of polynomial size.
                                                                q k!
We conclude that
                           T1∗∗
                                          ′ ′′ 
                                            PP           T2∗∗         Q
                                  =O                +            mod k Z.                   (65)
                         2πnI0,1
                               ′′             H        2πnI0,1
                                                             ′′      q k!
Since PI1′′ ,I2′′ is a large set of primes in [P ′′ /2, P ′′ ], we see from (25) that Q ≫ exp(cP ′′ ) for
some c ≫ 1, so in particular14 Q exceeds X C for any fixed C if X is large enough. But
both sides of (65) are of polynomial size, and thus have magnitude less than 2qQk k! for X
large enough. Hence we may remove the modulus restriction and conclude that
                                       T1∗∗
                                                    ′ ′′ 
                                                      PP             T2∗∗
                                              =O                 +
                                     2πnI0,1
                                           ′′           H           2πnI0,1
                                                                         ′′


which we can rearrange using (43) as
                                          T1∗∗ = T2∗∗ + O(N ).
If we set T := T1∗∗ ,
                    ∗∗
                                                              Ti∗∗ − T
                                                                              ∗∗              
                    T −T                                                       Ti − T
γi (t) := γi∗∗ (t)+ i    log nI0,1
                               ′′    , and εi (t) := ε∗∗
                                                      i  (t)+          log t−         log n I0,1 ,
                                                                                             ′′
                      2π                                         2π              2π
   we obtain all the required claims except for (57). But observe that the previous argument
                                                                                      ′′ , and
in fact showed that the first derivative of γ †† vanished at all integer points of I0,1
thus vanished identically thanks to Lagrange interpolation; hence γ †† is in fact an integer
constant. The claim (57) now follows from (64) since γ † is already 1-integral.              
   We now follow the arguments in [26, §5] (starting after the proof of [26, Corollary 5.2].
Let δ > 0 be a sufficiently small quantity (depending on k, ε, η, θ) to be chosen later. We
assume X (and hence H) to be sufficiently large depending on δ, and allow implied constants
to depend on δ. Define a good quadruple to be a tuple (I ′′ , T, q, γ) with I ′′ ∈ I ′′ , T a real
number with
                                                   1
                                            |T | ≤ N k+1 ,                                    (66)
                                                   δ
and q a natural number with
                                            1 ≤ q ≤ X 1/δ                                     (67)
                                  q                                                  ′′      ′′
and γ an element of Poly≤k ( Q P Z → Z) for some collection P of primes in [P /2, P ] of
cardinality ≥ δπ0 (P ′′ ) that do not divide q, such that we have a decomposition
                                                     T
                                 PI ′′ (t) = ε(t) +     log t + γ(t)                          (68)
                                                     2π
     14We remark that it is this need for Q to be bigger than X that puts a limit on the range of H where
one could possibly prove Theorem 1.3 using the strategy of this paper. Since P ′′ ≤ H ε , we must have
H ≥ (log x)A for any ﬁxed A. It turns out that there are further restrictions on the size of H in our
proof, coming from the graph theory part of the proof, where factors of ℓ! appear, and also from the
Vinogradov–Korobov zero-free region. For these reasons, H actually needs to be at least exp((log X)c ) for
some c ≥ 1/2.
                      HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                                  35

for all t > 0, where φ′′I ′′ = (I ′′ , PI ′′ ), and ε : R+ → R is a smooth function obeying the
estimates
                                                    1
                                       |ε(j) (t)| ≤ (H/P ′ P ′′ )−j                        (69)
                                                    δ
for t ∈ I ′′ and 0 ≤ j ≤ k. We also require that q is the least natural number for which
γ ∈ Poly ≤k (qZ → Z).
   We will shortly show that Proposition 3.7 yields a lot of pairs of “compatible” good
quadruples.
   Each interval I ′′ is only associated with a small number of essentially distinct good
quadruples. Indeed, we have

Proposition 3.9. Let I ′′ ∈ I ′′ , let K be a sufficiently large natural number depending on
δ, and let (I ′′ , Tj , qj , γj ), j = 1, . . . , K be a collection of good quadruples associated to the
interval I ′′ . Then there exist 1 ≤ j < j ′ ≤ K with the following properties:
     (i) qj = qj ′ .
    (ii) γj = γj ′ mod Z. (Here we view Z ⊂ Poly≤k (R → R) as the group of constant
         integer functions).
   (iii) Tj = Tj ′ + O(N ).
(Recall that we allow implied constants to depend on δ.)

Proof. We modify the proof of [26, Proposition 5.3]. For j = 1, . . . , K, let Pj denote the
set of primes in [P ′′ /2, P ′′ ] associated to the good quadruple (I ′′ , Tj , qj , γj ). Then

                                     X           K
                                                 X
                                                          1p′′ ∈Pj ≫ Kδπ0 (P ′′ )
                               p′′ ∈[P ′′ /2,P ′′ ] j=1

and hence by the prime number theorem we have that
                                              K
                                              X
                                                    1p′′ ∈Pj ≫ Kδ
                                              j=1

for ≫ δπ0 (P ′′ ) primes p′′ ∈ [P ′′ /2, P ′′ ]. For K large in terms of δ, we can then find
j, j ′ ∈ {1, . . . , K} such that P := Pj ∩ Pj ′ contains ≫δ π0 (P ′′ ) primes p′′ ∈ [P ′′ /2, P ′′ ].
    From (68), we have for all j = 1, . . . , K that
                                                             Tj
                                  PI ′′ (t) = εj (t) +          log t + γj (t)
                                                             2π
                                                                                    (l)
for all t > 0, where φ′′I ′′ = (I ′′ , P ′′ ) and εj : R+ → R is smooth with εj (t) ≪ (H/P ′ P ′′ )−l
for all t ∈ I ′′ and 0 ≤ l ≤ k. Taking first derivatives, we see that the function
                                                          Tj
                                            ε′j (t) +         + γj′ (t)                            (70)
                                                          2πt
36                   MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

is independent of Qj. We now specialize t to an integer point nI ′′ of I ′′ . From Lemma 2.1,
          ′           P
we have γj (nI ) ∈ qk k! Z. Thus we have
                    j
                                                ′ ′′       Q
                            Tj       Tj ′       PP               P
                                  =         +O          mod k k Z
                          2πnI ′′   2πnI ′′      H          qj qj ′ k!
for all j, j ′Q∈ {1, . . . , K}. Both sides of this equation are of polynomial size, while the
modulus qk qkPk! is far larger than this thanks to (25). We may thus remove the modulus
            j j′
and conclude that
                                                                P ′ P ′′
                                                                          
                                     Tj       Tj ′
                                           =         +O
                                   2πnI ′′   2πnI ′′             H
and hence by (43)
                                        Tj ′ = Tj + O(N ),
giving the conclusion (iii). If we now return to the independence of (70) in j, we conclude
that                                                     ′ ′′ 
                                   ′         ′           PP
                                  γj (t) − γj ′ (t) = O
                                                          H
             ′′
for all t ∈ I . By the Bernstein inequality (27), we can thus obtain the bound
                                                          ′ ′′ l !
                              (l)         (l)              PP
                             γj (nI ) − γj ′ (nI ) = O
                                                            H
                                                                                                 Q
for all 1 ≤ l ≤ k. On the other hand, from Lemma 2.1 the left-hand side lies in qk qkPk! Z.
                                                                                                 j j′
Using (25) as before, we conclude that
                                         (l)          (l)
                                        γj (nI ) − γj ′ (nI ) = 0
for 1 ≤ l ≤ k, hence by Taylor expansion γj and γj ′ differ by a constant, which must lie in
Z since γj , γj ′ ∈ Poly≤k (qj qj ′ Z → Z). This gives the conclusion (ii). Finally, since qj is the
minimal natural number for which γj ∈ Poly≤k (qj Z → Z), and γj , γj ′ differ by an integer
shift, we conclude (i).                                                                           
   From this and the greedy algorithm, we conclude the following analogue of [26, Corollary
5.4]:
Corollary 3.10. For each I ′′ ∈ I ′′ there exists a set F(I ′′ ) of triples (T ′ , q, γ ′ ) of cardinality
                                               #F(I ′′ ) ≪ 1
such that for any good quadruple (I ′′ , T, q, γ) there exists a real number T ′ and a γ ′ =
γ mod Z such that (T ′ , q, γ ′ ) ∈ F(I ′′ ) and
                                           T = T ′ + O(N ).
  Henceforth we fix the finite sets F(I ′′ ). Now we can obtain many pairs of compatible
good quadruples:
                        HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                                            37

Proposition 3.11. For ≫ N π0 (P ′ )2 pairs (I1′′ , I2′′ ) ∈ (I ′′ )2 , there exist T1 , T2 , q, γ1 , γ2 with
(Ti , q, γi ) ∈ F(Ii′′ ) for i = 1, 2 and
                                               T2 = T1 + O(N )                                                (71)
Furthermore, for each such pair, there exist primes p′1 , p′2 ∈ [P ′ , 2P ′ ] coprime to q such that
                                 p′2 ′′
I1′′ lies within 100 P H
                       ′ P ′′ of p′ I2 with
                                   1

                                 γ1 (p′2 ·) = γ2 (p′1 ·) mod Poly≤k (Z → Z).                                  (72)
Proof. This will be a modification of the arguments used to establish [26, Proposition
5.5]. From Propositions 3.7 and 3.8, we can find a collection Q′ of quadruples e =
(I1′′ , I2′′ , p′1 , p′2 ) in Q of cardinality ≫ N π0 (P ′ )2 , such that to each such quadruple e there
exists T, ε1 , ε2 , γ1 , γ2 , Q obeying the conclusions of Proposition 3.8 (for some quadruple ~a,
which will play no further role in the arguments). In particular, each e ∈ Q′ generates
a pair of good quadruples (I1′′ , T1 , q1 , γ1 ), (I2′′ , T2 , q2 , γ2 ) for some γ1 ∈ Poly≤k (q1 Z → Z),
γ2 ∈ Poly≤k (q2 Z → Z) obeying (71), (72). By Corollary 3.10 we may adjust these good
quadruples so that (Ti , qi , γi ) ∈ F(Ii′′ ) for i = 1, 2.
    At present it is possible that p′i divides qj for some i, j = 1, 2. But, as noted in [26,
Proposition 5.5], for each qj there are only at most O(1) such p′i that can do this, and by
the bounded cardinality of the F(Ii′′ ), the total number of quadruples e = (I1′′ , I2′′ , p′1 , p′2 )
that generate such a situation is O(N π0 (P ′ )), which is negligible compared to the cardinality
of Q′ . Thus by refining Q′ we may assume that p′1 , p′2 do not divide q1 or q2 .
    We now claim that q1 and q2 are equal. By the definition of a good quadruple, γ1 lies
in Poly≤k (q1 Z → Z); by (72) this implies that γ2 lies in Poly ≤k (p′2 q1 Z → Z). On the
other hand, q2 is the minimal natural number for which γ2 lies in Poly≤k (q2 Z → Z); by
Lemma 2.2, this implies that q2 divides p′2 q1 , and similarly q1 divides p′1 q2 . Since p′1 , p′2 do
not divide q1 , q2 , we obtain q1 = q2 , and the claim follows.                                        
   As in [26, §5], on the space Z of triples (T, q, γ) with T ∈ R, q ≥ 1, γ ∈ Poly(qZ → Z)
we define the metric
                                                              1                              1
                 d((T1 , q1 , γ1 ), (T2 , q2 , γ2 )) := c(δ) |T1 − T2 | + 1q1 6=q2 +            1γ 6=γ
                                                              N                             100 1 2
with some sufficiently small constant c(δ) > 0. Proposition 3.11 provides one with a
collection S of sextuples (I1′′ , I2′′ , (T1 , q1 , γ1 ), (T2 , q2 , γ2 ), p′1 , p′2 ) of cardinality ≫ N π0 (P ′ )2
such that
                                                                                1
                                         d((T1 , q1 , γ1 ), (T2 , q2 , γ2 )) ≤    .
                                                                               10
Applying the mixing lemma in [26, Corollary 5.2], we conclude that there exists a triple
(T0 , q0 , γ0 ) ∈ Z and a collection T of quadruples (I ′′ , T, q, γ) with I ′′ ∈ I ′′ , (T, q, γ) ∈ F(I ′′ ),
and d((T, q, γ), (T0 , q0 , γ0 )) ≤ 15 such that
                                                   #T ≫ N
and such that there are ≫ N d sextuples (I1′′ , I2′′ , (T1 , q ′ , γ1 ), (T2 , q ′ , γ2 ), p′1 , p′2 ) such that
(Ii′′ , Ti , q ′ , γi ) ∈ T and p′1 , p′2 distinct primes in [P ′ , 2P ′ ] with I1′′ lying within 100 P ′HP ′′ of
38                     MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

p′2 ′′                    ′′  p′2 ′′          ′    ′             ′
p′1 I2 (so in particular I1 ∼ p′1 I2 ), with p1 , p2 coprime to q , and obeying the properties
(71), (72).
  In particular, if (I ′′ , T, q, γ) ∈ T , then q = q0 and
                                                 T = T0 + O(N ).                                                (73)
From this and (66), we conclude in particular that
                                                    T0 ≪ N k+1 .                                                (74)
At present our upper bound (67) on q = q0 is quite large (and significantly worse than
in [26]). Nevertheless, we can improve the bound on q0 after first establishing the following
variant of [26, Lemma 2.6]:

Lemma 3.12. Let m, ℓ ∈ N and P ′ , N ≥ 3 be such that (P ′ )ℓ−1 ≫ N . Let q ≥ 1. Then the
number of 2ℓ-tuples (p′1,1 , . . . , p′1,ℓ , p′2,1 , . . . , p′2,ℓ ) of primes in [P ′ , 2P ′ ] not dividing q obeying
the condition
                                           ℓ                 ℓ
                                         Y
                                                 ′
                                                           Y                (P ′ )ℓ
                                               p2,j −            p′1,j ≤ C
                                                                             N
                                         j=1           j=1
and
                                       ℓ
                                       Y                 ℓ
                                                         Y
                                           (p′2,j )m =       (p′1,j )m mod q
                                       j=1               j=1
for some C ≥ 1 is bounded by
                                                                            !
                                              dℓ         mω(q)     1
                                       ≪ℓ,C,m                  +                ,
                                              N          φ(q)    log N
where ω(q) denotes the number of prime factors of q.
Proof. This follows the same Dirichlet character argument used to prove [26, Lemma 2.6],
with the one main difference being that the indicator 1χ=χ0 is replaced by 1χm =χ0 . This
latter condition is attained for at most mω(q) characters χ with period q, explaining the
additional factor of mω(q) here compared with [26, Lemma 2.6].                         
     We now have
Proposition 3.13. q0 ≪ 1.
Proof. This will be a modification of the proof of [26, Proposition 5.6], using Lemma 3.12
in place of [26, Lemma 2.6]. Let ℓ be the first even natural number such that dℓ ≥ N 2+ε .
Arguing as in the proof of [26, Proposition 5.6], we can find ≫ dℓ tuples
                                               (Q0 , . . . , Qℓ−1 ) ∈ T ℓ
such that if we write Qj = (Ij′′ , Tj , q0 , γj ) for j = 0, . . . , ℓ (with the convention Qℓ = Q0 )
then for each j = 0, . . . , ℓ − 1, there exist primes p′j,1 , p′j,2 ∈ [P ′ , 2P ′ ] such that
                               γj (p′j,2 ·) = γj+1 (p′j,1 ·) mod Poly≤k (Z → Z)
                     HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                                        39

                         p′
and such that Ij′′ ∼ p′j,2 Ij+1
                            ′′ . From the first claim we have
                        j,1
                                                                
           j−1
            Y          ℓ−1
                       Y                     Yj        ℓ−1
                                                       Y
      γj (    p′i,1 )( p′i,2 )· = γj+1 ( p′i,1 )(       p′i,2 )· mod Poly ≤k (Z → Z)
             i=0         i=j                                  i=0            i=j+1

for j = 0, . . . , ℓ − 1, which by transitivity implies that
                           ℓ−1                 ℓ−1
                                    !                  !
                           Y                   Y
                      γ0 ( p′i,2 )· = γ0 ( p′i,1 )· mod Poly ≤k (Z → Z).                                (75)
                              i=0                            i=0
                             Qℓ−1 ′
                         ′′       pi,2 ′′
Similarly, we have that I0 ∼ Qi=0
                              ℓ−1 ′ I0 , which implies that
                                  p         i=0    i,1

                                              ℓ−1             ℓ−1
                                              Y               Y                  (P ′ )ℓ
                                                    p′i,2 −         p′i,1 ≪              .
                                                                                  N
                                              i=0             i=0
  Now we analyze the condition (75). We write the polynomial γ0 as
                                                                   k
                                                                   X am
                                                       γ0 (t) =                  tm
                                                                            bm
                                                                   m=0
where bm are natural numbers and each am is an integer coprime to bm . Clearly γ0 ∈
Poly≤k (b1 . . . bk Z → Z), and hence q0 ≤ b1 . . . bk . In particular, there exists 1 ≤ m ≤ k
                   1/k
such that bm ≥ q0 . From (75) and Lemma 2.1, and extracting the tm coefficient, we see
that                             !m                 !m
                       ℓ−1                ℓ−1
                       Y            a m
                                          Y            am    1
                           p′i,2        =     p′i,1       mod Z
                                    bm                 bm    k!
                                i=0                               i=0
and hence                                         !m                        !m
                                    ℓ−1                      ℓ−1
                                    Y                        Y                              bm
                                          p′i,2          =          p′i,1        mod                .
                                                                                          (bm , k!)
                                    i=0                      i=0
                                          ω(q)
By Lemma 3.12 (and bounding mφ(q) ≪ q −1/2 , say), we conclude that the total number of
tuples of primes (p′i,1 , p′i,2 )0≤i<ℓ is at most
                                                dℓ
                                                                                     
                                                              −1/2k           1
                                              ≪              q0     +                     .
                                                N                           log X
Since there are ≪ N choices for the interval I1′′ , and I1′′ and (p′i,1 , p′i,2 )0≤i<ℓ determine the
other Ij′′ , and we have #F (Ij′′ ) ≪ 1, we deduce that the number of tuples (Q0 , . . . , Qℓ−1 ) ∈
                         −1/2k
T ℓ is in fact ≪ dℓ (q0  + (log X)−1 ). Comparing with the lower bound we had for the
number of these tuples, we must have
                                  −1/2k     1
                                 q0     +       ≫ 1,
                                          log X
40                    MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

giving the claim.                                                                             

     Let (I ′′ , T, q0 , γ) ∈ T , then from (36) one has
                                         X
                                                 f (n)e(−PI ′′ (n)) ≫ |I ′′ |.
                                        n∈I ′′

Let H ∗ := c P H
               ′ P ′′ for a sufficiently small c > 0. Then one has

                                          1
           X                                Z      X
                  f (n)e(−PI ′′ (n)) = ∗                  f (n)e(−PI ′′ (n)) dx + O(H ∗ )
               ′′
                                         H   I ′′
                                                        ∗
             n∈I                                        n∈[x,x+H ]

and thus by the triangle inequality we have (for c small enough)
                           Z           X
                                                   f (n)e(−PI ′′ (n)) dx ≫ |I ′′ |H ∗ .     (76)
                               I ′′ n∈[x,x+H ∗ ]

For n ∈ [x, x + H ∗ ] ∩ Z, we have from (68) that
                                                             T
                                     PI ′′ (n) = ε(n) +         log n + γ(n);
                                                             2π
from (69) we have
                                                 ε(n) = ε(x) + O(c)
while from (73) one has
                          T           T0          T − T0
                             log n =     log n +            log x + O(c).
                         2π          2π              2π
The effect of the O(c) error to (76) is negligible if c is small enough, and the constant terms
ε(x), T −T
        2π log x disappear once the absolute value signs in (76) are applied. We conclude
          0

that
                     Z        X
                                     f (n)n−iT0 e(−γ(n)) dx ≫ |I ′′ |H ∗ .
                           I ′′ n∈[x,x+H ∗ ]

The function e(−γ(n)) is periodic modulo q0 . Since q0 = O(1), we can expand e(γ(n)) as a
linear combination of O(1) functions of the form 1q1 |n χ(n/q1 ), where q1 divides q0 and χ is
a Dirichlet character of period q0 /q1 . We conclude that there exists q1 , χ of this form such
that
                    Z       X
                                    f (n)n−iT0 1q1 |n χ(n/q1 ) dx ≫ |I ′′ |H ∗ .
                         I ′′ n∈[x,x+H ∗ ]

Since each I ′′ is associated to O(1) quadruples in T , there are ≫ X/H intervals I ′′ ∈ I ′′
for which we have an estimate of this form. At present q1 , χ can depend on I ′′ , but there
are only O(1) choices for these quantities, so by the pigeonhole principle we may make q1 , χ
                       HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                              41

independent of I ′′ , while still retaining ≫ X/H intervals. Summing in these intervals, we
conclude that
               Z 4X/P ′ P ′′      X                                              X
                                              f (n)n−iT0 1q1 |n χ(n/q1 ) dx ≫            H ∗.
                X/4P ′ P ′′                                                     P ′ P ′′
                               n∈[x,x+H ∗ ]

Arguing exactly as in the final part of [26, §5] (namely, applying the complex-valued ver-
sion [25] of the main result from [23]), we conclude that

                                               M (f ; T, Q) ≪ 1
             X   k+1
for some T ≪ H k+1 and Q ≪ 1, and Theorem 1.3 follows.




                        4. Local correlation with nilsequences
4.1. The set-up. In this section we prove Theorem 1.5. Our argument shall closely follow
in large parts the proof of Theorem 1.3, except that the space Φ of local polynomial phases
will be replaced by a different family Ψ of local nilsequences, and significantly more effort
needs to be expended to “solve” the approximate dilation invariance “equations”.
   Recall that a degree k filtered nilmanifold G/Γ is a quotient space G/Γ, where
     • G is a connected, simply connected Lie group equipped with a filtration G• =
       (Gi )i≥0 of closed connected subgroups Gi , with G0 = G1 = G, Gi ⊃ Gi+1 for all i,
       Gi = {1} for i > k, and [Gi , Gj ] ⊂ Gi+j for i, j ≥ 0 (note in particular that this
       implies that G is nilpotent);
     • Γ is a discrete subgroup of G such that the subgroups Γi := Gi ∩ Γ are cocompact
       subgroups of Gi for each i, so that the quotient spaces Gi /Γi are all compact.
  Let G be a connected, simply connected nilpotent Lie group. Then G is isomorphic to
a matrix Lie group (a Lie group consisting of invertible n × n complex matrices for some
n); see e.g., [20, Proposition 16.2.6], and so for the following discussion we may assume
without loss of generality that G is a matrix Lie group. The Lie algebra of G, defined as
the tangent space of G at the identity, will be denoted log G. The matrix exponential map
exp : log G → G is then a diffeomorphism (see e.g., [20, Corollary 11.2.7]), and hence we
have a well-defined logarithm map log : G → log G inverting this map; similarly we have
the diffeomorphism log : Gi → log Gi where log Gi is the Lie algebra of Gi . We define
exponentiation g t for any g ∈ G and t ∈ R by the familiar formula

                                              gt := exp(t log g),                               (77)

so in particular log(g t ) = t log g. We place an arbitrary Euclidean metric on the vector
space log G, and allow implied constants to depend on G and this metric. If g ∈ G and
X > 0, we then write g = O(X) as shorthand for | log g| = O(X). We also place an
arbitrary smooth metric d on G/Γ (for instance, one could take the Carnot–Carathéodory
metric associated to the metric on log G, although it is not essential here that we do so),
42                MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

and define the Lipschitz norm of a function F : G/Γ → C to be
                                                            |F (x) − F (y)|
                    kF kLip := sup |F (x)| +       sup
                              x∈G/Γ            x,y∈G/Γ:x6=y     d(x, y)
and call a function F Lipschitz continuous if its Lipschitz norm is finite.
  The presence of the logarithm here may seem strange to those accustomed to more
“abelian” analysis, but for nilpotent groups (written multiplicatively) one should view log,
exp, and (g, t) 7→ gt as polynomial maps, as the following example illustrates:
                                                                                        
                                                                                 1 R R
Example 4.1 (Heisenberg group). Take G to be the Heisenberg group G = 0 1 R,
                                                                               0 0 1
                                                                         
                                        1 0 R                  1 0 0 
with filtration G0 = G1 = G, G2 = 0 1 0 , and Gi = 0 1 0 for all i > 2.
                                        0 0 1                     0 0 1
                                                                           
                         
                  0 R R
Then log G = 0 0 R and
                  0 0 0
                                                 1 x z + xy
                                                           
                                  0 x z                     2
                            exp 0 0 y = 0 1            y ,
                                  0 0 0          0 0      1
and hence
                                               0 x z − xy
                                                         
                                  1 x z                   2
                             log 0 1 y  = 0 0       y 
                                  0 0 1        0 0      0
for any x, y, z ∈ R. In particular we have
                                    t 
                                           1 tx tz + t(t−1)
                                                             
                             1 x z                      2 xy
                           0 1 y  = 0 1           ty       
                             0 0 1         0 0        1
                                    
                              1 x z
for any x, y, z, t ∈ R, and 0 1 y  = O(X) if and only if x, y, z − xy
                                                                      2 = O(X).
                              0 0 1
   From the identity log g −1 = − log g we see that if g = O(X) then g −1 = O(X). Similarly,
from the Baker–Campbell–Hausdorff formula (175), (176) we see that that log(gh) is a
polynomial function of log g, log h (with degree and coefficients O(1)), and hence if g, h =
O(X) then gh = O(X O(1) ).
   We define Poly(R → G) to be the space of all maps g : R → G of the form
                                               Xk
                                   g(t) := exp(   Xi ti )
                                                 i=0
                    HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                              43

where Xi ∈ log Gi for i = 0, . . . , k. From the Baker–Campbell–Hausdorff formula (175),
(176), (179) we see that Poly(R → G) is a group with respect to multiplication. For any
δ > 0, we define Poly(δZ → G) to be the set of all maps g : δZ → G such that
                                      ∂h1 . . . ∂hi g(t) ∈ Gi
for all i ≥ 0 and h1 , . . . , hi , t ∈ δZ, where ∂h g(t) := g(t + h)g(t)−1 . We similarly define
Poly(δZ → Γ) by replacing Gi with Γi in the above definition; equivalently, Poly(δZ → Γ)
consists of those elements of Poly(δZ → G) that take values in Γ. We refer to elements of
Poly(R → G) and Poly(δZ → G) as polynomial maps. We have the following basic fact:
Lemma 4.2. Let δ > 0. Then every element g̃ of Poly(R → G) restricts to an element g
of Poly(δZ → G); conversely, every element g of Poly(δZ → G) has a unique extension to
an element g̃ of Poly(R → G). Finally, Poly(δZ → Γ) forms a group.
Proof. See Appendix B.                                                                         
  In view of this lemma we shall abuse notation by identifying Poly(δZ → G) with
Poly(R → G), and viewing each of the Poly(δZ → Γ) as subgroups of Poly(R → G).
We will refer to polynomial maps in Poly(δZ → Γ) as being 1δ -integral.
  Applying the inverse conjecture for the Gowers norms as in [35, §4], [17, §C] we see that
Theorem 1.5 follows from (and is in fact equivalent to) the following claim:
Theorem 4.3 (Non-pretentious multiplicative functions do not correlate with nilsequences
on short intervals on average). Let k ≥ 0 be a non-negative integer, and let 0 < θ < 1.
Let G/Γ be a degree k filtered nilmanifold, and let F : G/Γ → C be a Lipschitz function.
Suppose that f : N → C is a multiplicative 1-bounded function, and suppose that X ≥ 1,
X θ ≤ H ≤ X 1−θ , and η > 0 are such that
                   Z 2X                  X
                             sup                  f (n)F (g(n)Γ) dx ≥ ηHX.
                    X     g∈Poly(R→G) n∈[x,x+H]

Then one has
                             M (f ; CX k+1 /H k+1 , Q) ≪k,η,θ,F,G/Γ 1                       (78)
for some C, Q ≪k,η,θ,F,G/Γ 1.
   We note that in order to prove Theorem 1.5 it suffices to prove Theorem 4.3 with F
fixed since by Arzelà–Ascoli the family of Lipschitz functions F on G/Γ of bounded norm is
precompact in the uniform topology, and moreover we can modify F in the uniform norm by
anything less than η/10, say, without significantly affecting the assumption of Theorem 4.3
(i.e changing ≥ ηHX to ≥ ηHX/2, say). As a result we can restrict to a finite set of F ’s
and thus to a fixed F by pigeonholing.
   As in the previous section, at present it is only the values of g on Z that are relevant, but
once one begins exploiting the dilation structure of R it becomes convenient to view g as
a polynomial map on all of R and not just on Z. As remarked in the introduction, in [19]
a variant of this estimate was established in which the supremum in g was placed outside
44                     MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

the integral, and in which H was allowed to grow in X arbitrarily slowly rather than at a
polynomial rate; see also [7] for an earlier partial result in this direction.
   We prove Theorem 4.3 by induction on the dimension dim(G/Γ) = dim(G) of the nil-
manifold G/Γ (keeping k fixed). When dim(G/Γ) = 0, the function F (g(n)Γ) is constant,
and the claim corresponds to k = 0 case of Theorem 1.3 which in turn essentially followed
from the result in [25]. Hence we assume inductively that dim(G/Γ) ≥ 1, and that the
claim has already been proven for all G of smaller dimension. We now fix k, η, θ, F, G/Γ,
and allow implied constants to depend on these quantities. Thus we have
                       Z 2X                      X
                                    sup                  f (n)F (g(n)Γ) dx ≫ HX,                (79)
                         X       g∈Poly(R→G) n∈[x,x+H]

and our objective is to show that
                                        M (f ; CX k+1 /H k+1 , Q) ≪ 1
for some C, Q = O(1). We may normalize F to be bounded in magnitude by 1, so that the
sequences n 7→ F (g(n)Γ) are 1-bounded. As in the previous section, we also introduce a
small parameter ε > 0 that can depend on k, η, θ, F, G/Γ, and allow implied constants to
also depend on ε unless otherwise specified.

4.2. Initial reductions. We first make a minor but convenient reduction, namely that we
restrict to the case when f is completely multiplicative rather than merely multiplicative
(cf. [34, Proposition 10]). If we let f1 be the completely multiplicative function that equals f
at each prime p, then we can write f as a Dirichlet convolution f (n) = ∞                  n
                                                                            P
                                                                              d=1 d|n f1 ( d )h(d)
                                                                                  1
for some multiplicative function h with h(p) = 0 and |h(pj )| ≤ 2 for all j ≥ 2 (in fact
h(pj ) = f (pj ) − f (p)f (pj−1 )). From (79) and the triangle inequality, we thus have
           ∞               Z 2X
           X                                       X                n
                  |h(d)|               sup                 1d|n f1 ( )F (g(n)Γ) dx ≫ HX.
                             X     g∈Poly(R→G) n∈[x,x+H]            d
            d=1
                                          P∞     |h(d)|
From Euler products we see that              d=1 d2/3 ≪ 1 (say), so by the pigeonhole principle there
exists d ≥ 1 such that
              Z 2X                           X             n
                             sup                  1d|n f1 ( )F (g(n)Γ) dx ≫ d−2/3 HX.
                  X    g∈Poly(R→G) n∈[x,x+H]               d

The left-hand side can be trivially bounded by O(d−1 HX), hence d = O(1). Making the
change of variables n = dn′ and x = dx′ , we then have
           Z 2X/d                            X
                           sup                        f1 (n′ )F (g(dn′ )Γ) dx ≫ (H/d)(X/d).
            X/d       g∈Poly(R→G) n′ ∈[x′ ,x′ +H/d]
                       HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                         45

Note that if g lies in Poly(R → G) then the dilation g(d·) does also. Applying Theorem 4.3
for the completely multiplicative function f1 (adjusting θ slightly to retain the hypothesis
X θ ≤ H ≤ X 1−θ ), we conclude that
                                 M (f1 ; C(X/d)k+1 /(H/d)k+1 , Q) ≪ 1
and the claim follows.
   It remains to establish the claim for completely multiplicative f . Assume for contradic-
tion that this claim is false. Then we can find a sequence X = Xn ≥ 1 of real numbers and
a sequence f = fn of 1-bounded completely multiplicative functions, such that (79) holds
uniformly in n, but such that
                                       M (f ; CX k+1 /H k+1 , Q) → ∞                      (80)
as n → ∞ for any fixed Q, C, where H = Hn lies in the interval [Xnθ , Xn1−θ ]. Among other
things, this implies that X → ∞ as n → ∞. We now restrict attention to n sufficiently
large, so that X can be made larger than any fixed constant. Henceforth we suppress the
dependence of X, H, f on n. We refer to a quantity as fixed if it is independent of n, and
use the asymptotic notation Y = o(Z) to denote the claim |Y | ≤ c(n)Z for some quantity
c(n) that may depend on fixed quantities, but goes to zero as n → ∞. From the induction
hypothesis, we conclude that
                    Z 2X                      X
                                 sup                 f (n)F̃ (g̃(n)Γ̃) dx = o(HX)
                       X   g̃∈Poly(R→G̃) n∈[x,x+H]

whenever G̃/Γ̃ is a fixed degree k filtered nilmanifold of dimension strictly less than that of
G/Γ, and F̃ : G̃/Γ̃ → C is a fixed Lipschitz function. More generally, for any fixed Dirichlet
character χ, we see from (80) and enlarging Q that
                                   M (f χ; CX k+1 /H k+1 , Q) → ∞
for any fixed C, and hence
               Z 2X                        X
                             sup                  f (n)χ(n)F̃ (g̃(n)Γ̃) dx = o(HX).
                  X     g̃∈Poly(R→G̃) n∈[x,x+H]

By multiplicative Fourier expansion we thus have
             Z 2X                        X
                           sup                  f (n)1n=a mod q F̃ (g̃(n)Γ̃) dx = o(HX)   (81)
              X       g̃∈Poly(R→G̃) n∈[x,x+H]

for any fixed natural number q and any fixed a coprime to q. Because f is completely
multiplicative, we also see that the same claim is true when a shares a common factor d
with q, after rescaling X, H, x, n by d as before (and expressing sum over the shrunken
interval [x/d, x/d + H/d] as an average of sums over intervals of length (X/H)θ/2 , plus
negligible error).
46                      MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

   Among other things, this allows us to eliminate “major arc” cases of (79). Define a
rational subgroup of G to be a closed subgroup G̃ of G for which G̃ ∩ Γ is cocompact in G̃.
Proposition 4.4 (Major arc case). Assume that f satisfies (80). Let G̃ be a fixed connected
rational subgroup of G, and suppose that G̃ is a proper subgroup in the sense that dim(G̃) <
dim(G) (or equivalently15 , G̃ 6= G). We endow G̃ with the filtration G̃i := Gi ∩ G̃ induced
from G. Let q be a fixed natural number, and let E be a fixed compact subset of G̃. Then
               Z 2X                 X
                        sup               f (n)F (εg̃(n)γ(n)Γ) dx = o(HX).
                    X         ε∈E
                                       n∈[x,x+H]
                         g̃∈Poly(R→G̃)
                         γ∈Poly(qZ→Γ)

Proof. Since F is a Lipschitz function, and E is compact it suffices to verify the Theorem
for a single choice of ε. Next, we claim that the quotient space Poly(qZ → Γ)/Poly(Z → Γ)
is finite. Indeed, from Taylor expansion we see that if γ ∈ Poly(qZ → Γ), then γ(Z) takes
                                                        k
values in the group Γ′ generated by the roots {γ 1/q : γ ∈ Γ} of Γ. As noted at the end
of Appendix B, Γ has finite index in Γ′ , so there are only finitely many possibilities for
the tuple (γ(0), . . . , γ(k)) modulo right multiplication by elements of Γk+1 . As this tuple
uniquely determines the polynomial map γ, we conclude that there are only finitely many
possibilities for γ modulo right multiplication by elements of Poly(Z → Γ), giving the claim.
   Since the quantity F (g̃(n)γ(n)Γ) is unaffected if one multiplies γ on the right by an
element of Poly(Z → Γ), we see that we may restrict γ without loss of generality to a set
of coset representatives of the finite quotient space Poly(qZ → Γ)/Poly(Z → Γ). Thus, by
the triangle inequality, it suffices to prove the claim for a single fixed choice of γ.
   Fix γ. As Γ has finite index in Γ′ , there is a finite index subgroup Γ∗ of Γ which is
normal in Γ′ (for instance, one can take Γ∗ to be the kernel of the left-action of Γ on the
finite space Γ/Γ′ ).
   The sequence n 7→ γ(n)Γ∗ is then a polynomial map from Z to the finite group Γ′ /Γ∗
(it is the composition of γ ∈ Poly(Z → Γ′ ) with the quotient homomorphism π from Γ′ to
Γ′ /Γ∗ , where we equip Γ′ /Γ∗ with the filtration π(Γ′i )) and is hence periodic of some fixed
period Q; this implies that n 7→ γ(n)Γ depends only on the residue class n mod Q. By the
triangle inequality, it now suffices to show that
             Z 2X                  X
                         sup              f (n)1n=a mod Q F (g̃(n)γ0 Γ) dx = o(HX)         (82)
                X    g̃∈Poly(R→G̃) n∈[x,x+H]

for any fixed a and any fixed γ0 ∈ Γ′ .
   Since G̃ ∩ Γ is cocompact in G̃, so is G̃ ∩ Γ∗ . As Γ∗ is normalized by γ0 , this implies that
  −1
γ0 G̃γ0 ∩ Γ∗ is cocompact in γ0−1 G̃γ0 , so in particular the group γ0−1 G̃γ0 is rational. If we
let F̃ : γ0−1 G̃γ0 /(γ0−1 G̃γ0 ∩ Γ∗ ) → C be the function
                                         F̃ (γ0−1 g̃γ0 Γ∗ ) := F (g̃γ0 Γ)
     15This is because G̃ 6= G is equivalent to log G̃ being a proper subspace of log G.
                         HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                                   47


then F̃ is Lipschitz, and the left-hand side of (82) can be rewritten (after conjugating g̃ by
γ0 ) as
               Z 2X                      X
                           sup                  f (n)1n=a mod Q F̃ (g̃(n)Γ∗ ) dx.
                 X    g̃∈Poly(R→γ0−1 G̃γ0 ) n∈[x,x+H]

Here of course we give γ0−1 G̃γ0 the filtration (γ0−1 G̃γ0 )i = γ0−1 G̃i γ0 , and note that composi-
tion with the Lie group isomorphism g 7→ γ0−1 gγ0 gives an isomorphism between Poly(R →
G̃) and Poly(R → γ0−1 G̃γ0 ). Since the dimension of the nilmanifold γ0−1 G̃γ0 /(γ0−1 G̃γ0 ∩ Γ∗ )
is strictly less than that of G/Γ, the claim now follows from (81).                               
   We now eliminate some components of F that arise from lower dimensional nilmani-
folds16. Suppose that there is a non-trivial normal rational connected closed subgroup N
of G. Then inside the Hilbert space L2 (G/Γ) of square-integrable functions on G/Γ (with
respect to the Haar probability measure µG/Γ ) there is the closed subspace L2 (G/Γ)N of
functions that are invariant with respect to the left-action of N ; from normality this space
is also preserved by the left-action of G.
Proposition 4.5 (Invariant case). Assume that f satisfies (80). If N is a fixed non-
trivial normal connected rational subgroup of G, and FN ∈ L2 (G/Γ)N is a fixed Lipschitz
continuous function, then
                   Z 2X                     X
                              sup                  f (n)FN (g(n)Γ) dx = o(HX).
                     X    g∈Poly(R→G) n∈[x,x+H]

Proof. Let π : G → G/N be the quotient map from G to G/N . As N is normal, closed,
and connected, G/N is also a nilpotent connected, simply connected17 Lie group, with a
degree k filtration (G/N )j := π(Gj ). Because Γ is discrete and cocompact in G and N ∩ Γ
is discrete and cocompact in N , we see that π(Γ) ≡ Γ/(N ∩ Γ) is discrete and cocompact
in π(G) = G/N . Thus π(G)/π(Γ) is a degree k filtered nilmanifold, whose dimension
dim(G) − dim(N ) is strictly less than that of G/Γ. Then we can write FN = F̃ ◦ π̃ for some
F̃ : π(G)/π(Γ) → C with π̃ : G/Γ → π(G)/π(Γ) is the obvious projection; this function
FN can be seen to also be Lipschitz continuous by working in local coordinates. Since
π ◦ g ∈ Poly(R → π(G)) whenever g ∈ Poly(R → G), the claim now follows from (81). 
  We let F 7→ E(F |N ) denote the orthogonal projection from L2 (G/Γ) to L2 (G/Γ)N ; it
can be described explicitly as
                                     Z
                      E(F |N )(gΓ) =         F (gx) dµN/(N ∩Γ) (x)
                                               N/(N ∩Γ)

    16The need for dealing with these arises from the large sieve for nilsequences that we present as Propo-
sition 4.11.
    17Indeed, from the Baker–Campbell–Hausdorﬀ formula the space G/N is homeomorphic to the vector
space log G/ log N .
48                  MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

for almost every g ∈ G, where we view N/(N ∩ Γ) as a subset of G/Γ in the natural fashion.
One can check (using the normality of N and the uniqueness of the Haar probability measure
µN/(N ∩Γ) ) that this gives a well-defined self-adjoint projection from L2 (G/Γ) to L2 (G/Γ)N ,
and so must indeed agree with the orthogonal projection to the latter space. It is also clear
from this definition that if F is Lipschitz continuous then so is E(F |N ). In particular, from
Proposition 4.5 one can remove the component E(F |N ) from F while making a negligible
impact to (79). In our arguments we would like to perform this maneuver not for a single
N , but for a large (but fixed) finite collection of such N . To do this we need the following
observation:
Lemma 4.6 (Composition of projections). Let N1 , N2 be two normal connected rational
subgroups of G. Then N1 N2 is also a normal connected rational subgroup, and
                                  E(E(F |N1 )|N2 ) = E(F |N1 N2 )
for all F ∈ L2 (G/Γ). In particular (since N1 N2 = N2 N1 ), the projections F 7→ E(F |N1 )
and F 7→ E(F |N2 ) commute with each other.
Proof. It is clear that N1 N2 is a normal connected subgroup of G. Because N1 ∩ Γ is
cocompact in N1 and N2 ∩ Γ is cocompact in N2 , and N1 is normal, (N1 ∩ Γ)(N2 ∩ Γ) is
cocompact18 in N1 N2 , so N1 N2 is rational. The function
            F − E(E(F |N1 )|N2 ) = (F − E(F |N1 )) + (E(F |N1 ) − E(E(F |N1 )|N2 ))
is orthogonal to L2 (G/Γ)N1 ∩ L2 (G/Γ)N2 = L2 (G/Γ)N1 N2 . The function
                                          E(E(F |N1 )|N2 )
is clearly N2 -invariant, and can also be seen to be N1 -invariant using the normality of N2 .
Thus E(E(F |N1 )|N2 ) lies in L2 (G/Γ)N1 N2 , and is thus the orthogonal projection of F to
this space. The claim follows.                                                             
   Given any fixed finite collection N1 , . . . , Nℓ of non-trivial normal connected rational sub-
groups N1 , . . . , Nℓ of G, let ΠNj : L2 (G/Γ) → (L2 (G/Γ)Nj )⊥ denote the complementary
orthogonal projection to L2 (G/Γ)Nj , thus
                                      ΠNj F := F − E(F |Nj ).
From the above lemma, the ΠNj all commute with each other. Let ΠN1 ,...,Nℓ := ΠN1 . . . ΠNℓ
denote the composition of these projections. Then one can express F −ΠN1 ,...,Nℓ F as a finite
sum of Lipschitz functions, each of which lies in one of the L2 (G/Γ)Nj . From Proposition 4.5
and the triangle inequality, we thus have
          Z 2X                 X
                    sup               f (n)(F − ΠN1 ,...,Nℓ F )(g(n)Γ) dx = o(HX)         (83)
             X   g∈Poly(R→G) n∈[x,x+H]

as n → ∞.
     18Indeed, we have N = K (N ∩ Γ) and N = K (N ∩ Γ) for some compact K , K , hence N N =
                        1   1  1          2   2  2                       1   2         1 2
N1 K2 (N2 ∩ Γ) = K2 N1 (N2 ∩ Γ) = K2 K1 (N1 ∩ Γ)(N2 ∩ Γ), giving the cocompactness.
                      HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                          49

  We can also use Theorem 1.3, proven in the previous section, to obtain
Proposition 4.7. Let the hypotheses be as in Theorem 4.3, but assume that f satisfies
(80). Then G is not abelian.
Proof. Suppose for contradiction that G was abelian, then G/Γ is a connected abelian
Lie group and is therefore a torus (this follows for instance from Pontryagin duality).
One can approximate F uniformly by finite linear combinations of characters e(ξ), where
ξ : G/Γ → R/Z are continuous homomorphisms. By the triangle inequality (and passing to
a subsequence of X if necessary), we may thus find ξ such that
                 Z 2X                  X
                           sup                  f (n)e(−ξ(g(n)Γ)) dx ≫ HX.
                  X     g∈Poly(R→G) n∈[x,x+H]

But from Taylor expansion we see that t 7→ ξ(g(t)Γ) is of the form t 7→ P (t) mod Z for
some P ∈ Poly≤k (R → R), and Theorem 1.3 supplies the required contradiction.        

4.3. Studying the structure of local nilsequences. Now we start following the argu-
ments of the previous section. Define a local nilsequence to be a pair φ = (I, g), where I
is an interval and g ∈ Poly(R → G). We let Ψ be the collection of all local nilsequences
φ = (I, g), and ΨI to be the collection of local nilsequences (I, g) with a fixed choice of
I. One should view (I, g) as an abstraction of the function t 7→ F (g(t)Γ) on I. For any
φ = (I, g) ∈ Ψ and f : R → C, we define the correlation
                                        1 X
                             hf, φi :=        f (n)F (g(n)Γ),
                                       |I|
                                            n∈I

where F : G/Γ → C is understood to be a fixed Lipschitz function, with G/Γ a fixed filtered
nilmanifold. As before we have the dilation action
                                                   
                                                    1
                                λ∗ (I, g) := λI, g    ·
                                                    λ
for any (I, g) ∈ Ψ and λ > 0. The family Ψ will play the role of the family Φ from the
preceding section (which can be viewed as the special case when G/Γ = R/Z with the
filtration Gj = R for j ≤ k and Gj = {0} for j > k, and F (x) := e(x)). From (79) we have
                              Z 2X
                                     sup |hf, φi| dx ≫ X
                                 X   φ∈Ψ[x,x+H]

and hence by repeating the proof of [26, Lemma 2.1] as in the previous section, we can find
a large (X, H)-family of intervals I, such that for each I ∈ I one can find φI ∈ ΨI such
that |hf, φI i| ≫ 1.
   For subsequent analysis we will need to somehow import the decay estimates in Proposi-
tion 4.4 and (83) into this context. This is achieved via the following application of Markov’s
inequality. Call a (X, H)-family of intervals small if it has cardinality o(X/H).
50                    MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

Proposition 4.8 (Local decay outside of exceptional set). Assume that f satisfies (80).
Let 1 ≤ P ≤ X 2ε , and let I ′ be a (X/P, H/P )-family of intervals. Then there exists a small
exceptional subset E of I ′ such that the following properties hold uniformly for all I ∈ I ′ \E:
     (i) (Major arc estimate) If G̃ is a fixed connected closed proper rational subgroup of G,
         E is a fixed compact subset of G̃, and q is a fixed natural number, then

                                               X
                          sup          sup          f (n)F (εg̃(n)γ(n)Γ) dx = o(H/P )
                       ε∈E      I ′ ⊂500I n∈I ′
                  g̃∈Poly(R→G̃)
                  γ∈Poly(qZ→Γ)

          where I ′ ranges over all intervals contained in 500I.
     (ii) (Invariant estimate) For any fixed finite collection N1 , . . . , Nℓ of non-trivial normal
          connected rational subgroups N1 , . . . , Nℓ of G, one has

                                          X
                sup             sup                f (n)(F − ΠN1 ,...,Nℓ F )(g(n)Γ) = o(H/P ).
            g∈Poly(R→G) I ′ ⊂500I n∈[x,x+H]


Proof. We begin with (i). We will shortly establish that

                  X                                 X
                                sup          sup           f (n)F (εg̃(n)γ(n)Γ) = o(X/P )        (84)
                  I∈I ′      ε∈BG̃ (1,r) I ′ ⊂500I n∈I ′
                          g̃∈Poly(R→G̃)
                          γ∈Poly(qZ→Γ)


for each fixed G̃, q, r, where BG̃ (1, r) denotes the ball of radius r centred at the identity
in G̃, and the decay rate in the o(X) right-hand side may depend on G̃, q. Assuming this
bound for the moment, we can perform the following “diagonalization” argument. There
are only countably many rational subgroups G̃ of G (because log G̃ can be described as a
subspace of log G cut out by equations with rational coefficients). Enumerate the countable
set of triples (G̃, q, r) with r a natural number as (G̃i , qi , ri ). For each i, we see from (84),
the triangle inequality, and Markov’s inequality that we can find an exceptional set Ei ⊂ I
of cardinality at most 1i H X
                              , and a threshold xi , such that

                  X                                  X                                1
                                sup          sup             f (n)F (εg̃(n)γ(n)Γ) ≤     H/P
                             ε∈BG̃ (1,rj ) I ′ ⊂500I n∈I ′                            i
                  j≤i
                          g̃∈Poly(R→G̃j )
                          γ∈Poly(qj Z→Γ)

whenever x ≥ xi and I ∈ I\Ei . By increasing the xi as necessary we may assume that
xi+1 > xi for all i. If we now set E := Ei∗ , where i∗ is the largest natural number for which
x ≥ xi∗ , then E is well-defined for sufficiently large x, and the claim (i) follows (since any
compact set E is a subset of some ball BG̃ (1, r)).
                    HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                              51

   It remains to verify (84). Set H ∗ := (X/P )θ/2 . Then we can use the triangle inequality
to write
                                   1
       X                               Z     X
           f (n)F (εg̃(n)γ(n)Γ) ≪ ∗                   f (n)F (εg̃(n)γ(n)Γ) dx + O(H ∗ )
         ′
                                  H     I ′
                                                    ∗
      n∈I                                     n∈[x,x+H ]

and thus (since the intervals 500I     in I ′ have bounded overlap in [X/2P, 4X/P ]) we can
bound the left-hand side of (84) by
               Z 4X/P
           1                              X
                          sup                         f (n)F (εg̃(n)γ(n)Γ) dx + o(X/P )
          H ∗ X/2P        ε∈E
                                       n∈[x,x+H ∗ ]
                       g̃∈Poly(R→G̃)
                       γ∈Poly(qZ→Γ)

and the claim now follows from Proposition 4.4 (which is also valid if one replaces X by a
quantity comparable to X/P ).
   The claim (ii) is proven similarly (using (83) in place of Proposition 4.4), noting that there
are only countably many rational closed connected subgroups N of G (since such groups
are determined by their intersection N ∩ Γ with Γ, which is a finitely generated subgroup
of the countable group Γ), and hence only countably many finite tuples (N1 , . . . , Nℓ ). 
     Thus, for instance, using this proposition (with P = 1 and I ′ = I), we could now delete
a small set of intervals from I and assume without loss of generality that the conclusions
of this proposition hold for all I ∈ I. As it turns out, however, it will be more useful to
apply this proposition to a different family I ′ of intervals than I, as we shall shortly see.
     As in the preceding section, the next step is to relate the various φI to each other.
We need a variant of Definition 3.1. If I is an interval, we say that a polynomial map
ε ∈ Poly(R → G) is smooth on I if ε(t) = O(1) for all t ∈ I. Taking logarithms and
applying (28) to the polynomial map log ε : R → log G, this implies in particular that
  dj
| dt                 −j htiO(1) for all j ≥ 0 and t ∈ R. In particular ε is also smooth on any
    j log ε(t)| ≪ |I|      I
interval I ′ ∼ I that is comparable to I. Also observe from the Baker–Campbell–Hausdorff
formula (176) that if ε1 , ε2 are both smooth on I, then so are ε−1  1 and ε1 ε2 (with slightly
different implied constants).
Definition 4.9 (Comparability of nilsequences). Given two local nilsequences φ = (I, g), φ′ =
(I ′ , g′ ) ∈ Ψ and a scaling factor δ > 0, we define the relation
                                              φ ∼δ φ′
to hold if I ∼ I ′ , and we have the relation
                                       g(t) = ε(t)g′ (t)γ(t)
for all t ∈ R, where ε, γ ∈ Poly(R → G) are polynomials obeying the following axioms:
     (i) (ε smooth) ε is smooth on I.
    (ii) (γ is 1δ -integral) γ ∈ Poly(δZ → Γ).
  We have the following analogue of Proposition 3.2:
52                   MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

Proposition 4.10 (Basic properties of ∼δ ). Let δ > 0, and let φ, φ′ , φ′′ ∈ Ψ.
    (i) (Equivalence relation) We have φ ∼δ φ, and if φ ∼δ φ′ then φ′ ∼δ φ. Finally, if
        φ ∼δ φ′ and φ′ ∼δ φ′′ then φ ∼δ φ′′ , where we allow the implied constants in the
        latter relations to depend on the implied constants in the former relations.
   (ii) (Dilation invariance) If φ ∼δ φ′ and λ > 0, then λ∗ φ ∼λδ λ∗ φ′ .
  (iv) (Sparsification) If φ ∼δ φ, then φ ∼lδ φ for any natural number l.
Proof. These are immediate from Definition 4.9, together with the previous observation
that a polynomial map that is smooth on I is also smooth on I ′ for any I ′ ∼ I, and the
observation that the product of two polynomial maps smooth on I is also smooth on I. 
     Now we have the analogue of Proposition 3.3:
Proposition 4.11 (Large sieve). Let I be an interval of some length |I| ≥ 1, and let
f : Z → C be a function bounded in magnitude by 1. Suppose that for each i = 1, . . . , K
there is an interval Ii ∼ I and a local nilsequence φi ∈ ΨIi such that
                                                |hf, φi i| ≫ 1.                                 (85)
Then at least one of the following claims hold:
    (i) K ≪ 1.
   (ii) There exist 1 ≤ i < j ≤ K such that φi ∼1 φj .
  (iii) (Correlation with major arc nilsequence) There is a connected closed proper rational
        subgroup G̃ of G (drawn from a fixed finite collection of such subgroups) and a natural
        number q (drawn from a fixed finite collection of such numbers) and a compact subset
        E of G̃ (again drawn from a fixed finite collection) such that
                                             X
                          sup         sup            f (n)F (εg̃(n)γ(n)Γ) dx ≫ |I|.
                          ε∈E      I ′ ⊂500I n∈I ′
                     g̃∈Poly(R→G̃)
                     γ∈Poly(qZ→Γ)

     (iv) (Correlation with invariant nilsequence) There is a tuple (N1 , . . . , Nℓ ) of non-trivial
          normal connected rational subgroups N1 , . . . , Nℓ of G (drawn from a fixed finite
          collection of such subgroups) such that
                                         X
                      sup         sup           f (n)(F − ΠN1 ,...,Nℓ F )(g(n)Γ) ≫ |I|.
                  g∈Poly(R→G) I ′ ⊂500I n∈I ′

   As one might expect, we will be able to use Proposition 4.8 to eliminate the options (iii),
(iv) from this proposition, after removing a small set of exceptional intervals.
Proof. We let K0 be a sufficiently large fixed natural number (depending on F, G/Γ), to be
chosen later, and write φj = (Ij , gj ). We can assume that K ≥ K0 , since otherwise we are
in case (i). We will initially just analyze the first K0 local nilsequences φj , and return to
the remaining φj later.
   Let S : R+ → R+ be a sufficiently rapidly growing but fixed function depending on
F, G/Γ, K0 to be chosen later. The tuple ~g := (g1 , . . . , gK0 ) can be viewed as a polynomial
                        HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                                           53


map in the product group GK0 (endowed with the obvious filtration (GK0 )j := GK    0
                                                                                 j ). The
subgroup ΓK0 is a discrete cocompact lattice in GK0 . We may thus apply the quantitative
factorization theorem in [16, Theorem 1.19], using the function S in place of the function
M 7→ M A , to obtain a factorization
                                                   ~g = ~ε ~g′ ~γ                                            (86)
where ~ε, ~g′ , ~γ ∈ Poly(R → GK0 ) obey the following properties for some quantity 1 ≤
M ≪K0 ,S 1:
                                                                                   d               j
     (i) (Smoothness) One has | log ~ε(t)| ≤ M for all t ∈ I (and hence by (27), | dt      ε(t)| ≪
                                                                                     j log ~
               −j
         M |I| for all t ∈ I and j ≥ 0).
    (ii) (Equidistribution) ~g′ takes values in some rational connected closed subgroup G     ~ ′ of
           K
         G which is M -rational (in the sense of [16, Definition 2.5], using some arbitrarily
             0

         chosen Mal’cev basis on GK0 ), and is totally 1/S(M )-equidistributed in the sense
         that
                     1 X ~ ′ ~′                       ~ dµ ~ ′ ~ ′ ≤ 1 kF~ kLip
                                            Z
                             F (~g (n)Γ ) −           F   G /Γ
                    #P                        ~ ′ /~
                                              G    Γ′               S(M )
                            n∈P

                                         ~ ′ /~Γ′ → C, and any arithmetic progression P in I ∩ Z
         for any Lipschitz function F~ : G
                               1                       ~ ′ ∩ ΓK0 (and we endow G
                                                ~ ′ := G                           ~ ′ /~Γ′ with the
         of length at least S(M  ) |I|, where Γ
         metric induced from (G/Γ)K0 ).
   (iii) (Rationality) ~γ (Z)ΓK0 takes values in the set {~γ ΓK0 : ~γ q ∈ ΓK0 } for some 1 ≤ q ≤
         M , and the sequence n 7→ ~γ (n)ΓK0 is periodic on Z with period at most M .
Arguing as in the proof of [16, Corollary 1.20], this gives a summation formula of the form
                        s
                                                                                         !
  X                    X      Z
                                                                            kF~ kLip
       F~ (~g (n)~Γ) =     Ai                       ~ dµ ~ ′ K K + OM,K
                                                    F   xi G yi Γ 0 /Γ 0 0        1/2
                                                                                      |I|  (87)
     ′                 i=1      x i
                                    ~ ′ yi ΓK0 /ΓK0
                                    G                                      S(M   )
   n∈I

for any interval I ′ ⊂ I, where the Ai are positive quantities summing to O(|I|), the xi are
elements of G  ~ K0 with log xi = OM (1), of magnitude OM (1), and the yi are elements of
 ~ K         q
G    0 with yi ∈ Γ (the argument proceeds by splitting I ′ into OM,K0 (S(M )1/2 ) arithmetic
progressions of diameter OM,K0 ( S(M|I|)1/2 ) and spacing equal to the period of ~γ ΓK0 ). One
could be more precise about the values of Ai , xi , yi here, as well as provide upper bounds
on the quantity s but it will not be necessary for our argument to do so.
                                                            ′ ), and ~
   We write ~ε = (ε1 , . . . , εK0 ), ~g′ = (g1′ , . . . , gK 0
                                                                         γ = (γ1 , . . . , γK0 ). We now divide
into several cases, depending on the nature of G            ~ . For each 1 ≤ j ≤ K0 , let πj : GK0 → G be
                                                             ′

the projection to the j th factor of G. Then πj (G            ~ ′ ) is a closed connected rational subgroup
of G. Suppose that there exists j for which πj is not surjective, so that πj (G                   ~ ′ ) is a proper
subgroup of G. Because G      ~ is M -rational, it belongs to a fixed finite family of subgroups of
                                ′
   K                  ~ ′
G , and hence πj (G ) also belongs to a fixed finite family of subgroups. From (86), (85)
     0
54                  MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

we have
                              X
                                     f (n)F (εj (n)gj′ (n)γj (n)Γ) ≫ |I|,
                              n∈Ij

so in particular |Ij | ≫ |I|. Let σ > 0 be a small quantity to be chosen later. Then by
covering Ij by intervals Ij′ of length σ|I| and using the pigeonhole principle, we can find
one such interval Ij′ for which

                             X
                                     f (n)F (εj (n)gj′ (n)γj (n)Γ) ≫ σ|I|.
                             n∈Ij′

From property (i) and (26) we see that
                   F (εj (n)gj′ (n)γj (n)Γ) = F (εj (xIj′ )gj′ (n)γj (n)Γ) + OM (σ)
for n ∈ Ij′ . For σ sufficiently small depending on M (but with σ ≍M 1) we can then neglect
the error term and conclude that
                            X
                                    f (n)F (εj (xIj′ )gj′ (n)γj (n)Γ) ≫ σ|I|,
                            n∈Ij′

and now we have conclusion (iii) of the proposition.
  Henceforth we now assume that πj is surjective for all 1 ≤ j ≤ K0 . For distinct i, j ∈
{1, . . . , K0 }, consider the group
                                                       ~ ′ ; πj (~h) = 1}.
                               Ni,j := {πi (~h) : ~h ∈ G
This is a normal connected closed rational subgroup of G; indeed one can check that
                                                           ~ ′ ; π̃j (~h) = 0}
                           log Ni,j = {π̃i (~h) : ~h ∈ log G
where π̃i : log GK0 → log G are the coordinate projections, and then the claims are easily
verified. Let Π be the projection on L2 (G/Γ) formed by composing together the ΠNi,j for
                                                                                      ~ ′ belongs to
all distinct i, j ∈ {1, . . . , K0 } for which Ni,j is not trivial. Note that because G
                                             K
a fixed finite family of subgroups of G 0 , Ni,j belongs to a fixed finite family of subgroups
of G (depending on M, K0 ). Thus, if
                                X
                                       f (n)(F − ΠF )(gi (n)Γ) ≫ |I|
                                n∈Ii

for some i = 1, . . . , K0 , then we have conclusion (iv) of the proposition. Otherwise, by (85)
and the triangle inequality, we may assume that
                                      X
                                             f (n)ΠF (gi (n)Γ) ≫ |I|
                                      n∈Ii
                      HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                                55

for all i = 1, . . . , K0 . We may now apply Cauchy–Schwarz as in the proof of Proposition 3.3
and conclude that
                          K0
                       K0 X
                       X             X
                                            ΠF (gi (n)Γ)ΠF (gj (n)Γ) ≫ K02 |I|.                  (88)
                       i=1 j=1 n∈Ii ∩Ij

We now dispose of the diagonal terms by claiming that
                                X
                                   |ΠF (gi (n)Γ)|2 ≪ |I|                                         (89)
                                          n∈Ii
for each i. A key point here is that the implied constant does not depend on K0 , M . Here
we have a technical difficulty because ΠF is not well controlled in L∞ (G/Γ) norm (one
has a L∞ bound of OK0 ,M (1) rather than O(1)); however it is still bounded in L2 (G/Γ)
by 1 since Π is an orthogonal projection, and it also has a Lipschitz norm of OK0 ,M (1).
Nevertheless, by applying the formula (87), one can write the left-hand side of (89) as
           s                                                                               
                                                                                   1
         X      Z
             Aj                     |ΠF ◦ πi |2 dµxj G~ ′ yj ΓK0 /ΓK0 + OM,K0            |I|
         j=1
                    ~ ′ yj ΓK0 /ΓK0
                 xj G                                                           S(M )1/2

for some Aj , xj , yj (which can depend on i) with the properties listed after (87). As πi is
surjective, it pushes forward Haar measure to Haar measure by the uniqueness properties
of Haar measure, so the above estimate simplifies to
                        s                                                
                                                                 1
                       X      Z
                                           2
                           Aj       |ΠF | dµG/Γ + OM,K0                |I| .
                       j=1      G/Γ                           S(M )1/2

Since the L2 norm of ΠF is bounded by 1, and sj=1 Aj = O(|I|), we obtain the claim (89)
                                                      P
if S is chosen to be sufficiently rapidly growing.
   Using (89) to remove the diagonal terms from (88), we conclude (for K0 large enough)
that there exist distinct i, j ∈ {1, . . . , K0 } such that
                                 X
                                          ΠF (gi (n)Γ)ΠF (gj (n)Γ) ≫ |I|.
                               n∈Ii ∩Ij

Applying (87), we can bound the left-hand side by
        s                                                                                   
                                                                                        |I|
       X     Z
          Al                      (ΠF ◦ πi )(ΠF ◦ πj ) dµxl G~ ′ yl ΓK0 /ΓK0 + OM,K0
                  ~ ′ yl ΓK0 /ΓK0
               xl G                                                                    S(M )
        l=1
for some Al , xl , yl obeying the properties after (87); in particular, for S sufficiently rapidly
growing, there exists l such that
                      Z
                                   (ΠF ◦ πi )(ΠF ◦ πj ) dµxl G~ ′ yl ΓK0 /ΓK0 6= 0.
                        ~ ′ yl ΓK0 /ΓK0
                     xl G

We can project the nilmanifold xl G   ~ ′ yl ΓK0 /ΓK0 down to (G/Γ)2 using the projection map
(πi , πj ) to the i, j coordinates. The image of this nilmanifold is then invariant under the
56                 MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

left action of the normal group Ni,j × {1}. If Ni,j is non-trivial, then ΠF has mean zero
along all orbits of Ni,j by construction, and the above integral will vanish. Thus Ni,j must
be trivial. A similar argument shows that Nj,i is trivial.
   Now consider the subgroup
                                                                    ~ ′}
                               Gi,j := {(πi (~g ), πj (~g )) : ~g ∈ G
of G2 ; this is a closed connected rational subgroup of G2 . By the preceding discussion, the
projections π1 : Gi,j → G, π2 : Gi,j → G are both surjective and injective. By the Goursat
lemma, Gi,j then takes the form
                                  Gi,j = {(g, φi,j (g)) : g ∈ G}                            (90)
for some group isomorphism φi,j : G → G. As there are OK0 ,M (1) = OK0 ,S (1) possible
choices for G~ ′ , there are OK ,S (1) choices of φi,j . As Gi,j is rational, the map φi,j (when
                               0
expressed in the standard basis for log G) is a polynomial map with rational coefficients,
hence (by Baker–Campbell–Hausdorff) φi,j (Γ) is covered by finitely many translates of Γ,
and conversely; thus φi,j (Γ) must be commensurate with Γ, in the sense that φi,j (Γ) ∩ Γ
                                                             ~ ′ , we see from (90) that
has finite index in φi,j (Γ) or Γ. Since ~g′ takes values in G
                                          gj′ = φi,j (gi′ )
and thus by (86)
                                      gj = εi,j φi,j (gi )γi,j                              (91)
where
                                       εi,j := εj φij (εi )−1
and
                                  γi,j := φi,j (γi )−1 γj .
From the smoothness properties of εi , εj we see that
                                      log εi,j (t) ≪K0 ,M 1
for t ∈ I, and hence (since M = OK0 ,S (1))
                                      log εi,j (t) ≪K0 ,S 1.                                (92)
By rationality, the functions φi,j (γi )Γ, γj Γ each map Z to {γΓ : γ q ∈ Γ} for some q =
OK0 ,M (1) = OK0 ,S (1) and are also periodic with period OK0 ,S (1), which (as discussed at
the end of Appendix B) implies that
                                   γi,j (Z)Γ ⊂ {γΓ : γ q ∈ Γ}                               (93)
for some q = OK0 ,S (1), and γi,j is periodic with period OK0 ,S (1).
    Call a pair (i, j) of distinct elements of {1, . . . , K} good if there is an identity of the
form (91), where φi,j ranges over one of OK0 ,S (1) isomorphisms of G, εi,j obeys (92) on
I, and γi,j obeys (93) for some q = OK0 ,S (1) and is periodic with period OK0 ,S (1). By
relabeling, we have shown that every K0 -element subset of {1, . . . , K} contains a good pair
(i, j). Averaging over all such subsets, we conclude that there are ≫K0 K 2 good pairs. In
particular, by the pigeonhole principle, there exists i ∈ {1, . . . , K} such that (i, j) is good
                      HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                                   57

for ≫K0 K values of j. Note that there are only OK0 ,S (1) possible values of φi,j and of the
coset γi,j Poly(Z → Γ). Thus, if K is large enough, we see from the pigeonhole principle
that there exist distinct j, j ′ such that φi,j = φi,j ′ and γi,j Poly(Z → Γ) = γi,j ′ Poly(Z → Γ).
From (91) we conclude that
                                        gj = εi,j ε−1          −1
                                                   i,j ′ gj ′ γi,j ′ γi,j
and hence by Definition 4.9
                                                 φj ∼1 φj ′
and the claim follows.                                                                                

   Using this proposition as in the previous section (but now also using Proposition 4.8 to
eliminate the unwanted options (iii), (iv) from Proposition 4.11), we obtain the following
variant of Proposition 3.4.
Proposition 4.12 (Scaling down). Let 2 ≤ P ≤ Q ≤ H ≤ X and let f : N → C be
                                                                  log Q
a 1-bounded completely multiplicative function. Assume that P, log    P are sufficiently large
(depending on the parameters k, θ, η). Suppose there exists a large (X, H)-family I and a
local nilsequence φI ∈ ΨI associated to each interval I ∈ I such that
                                              |hf, φI i| ≫ 1
holds for all I ∈ I. Then there exist P ′ ∈ [P, Q/2], a large ( PX′ , PH′ )-family I ′ , and a local
nilsequence φ′I ′ ∈ ΨI ′ associated to each I ′ ∈ I ′ , such that
                                              |hf, φ′I ′ i| ≫ 1
for all I ′ ∈ I ′ . Furthermore, for each I ′ ∈ I ′ , one can find ≫ π0 (P ′ ) pairs (I, p′ ), where
I ∈ I and p′ is a prime in [P ′ , 2P ′ ], such that the rescaled interval p1′ I lies within 3 PH′ of
I ′ , and such that
                                           1
                                          ( ′ )∗ φI ∼1 φ′I ′ .                                  (94)
                                           p
Proof. Repeat the proof of [26, Proposition 3.1] down to the paragraph after (36). Then
one can find P ′ ∈ [P, Q/2], and a collection I2 of intervals in [0, 10X/P ′ ] that are separated
                                                                    X
by distance at least 2H/P ′ , with the property that for ≫ H          π0 (P ′ ) pairs (I, p′ ) with I ∈ I
and p′ a prime in [P ′ , 2P ′ ], p1′ I lies within 3 PH′ of some interval I ′ ∈ I2 , and furthermore
                                                1
                                          |hf, ( ′ )∗ φI i| ≫ 1.
                                                p
Note that each I ′ is associated to at most O(π0 (P ′ )) such pairs. In particular we have the
freedom to remove a small set of intervals from I ′ without significantly diminishing the set
of pairs (I, p′ ) in the above claims.
   From Proposition 4.11 and the greedy algorithm, we see that for each I ′ ∈ I2 , at least
one of the following claims hold:
58                   MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

      (i) There is a family φI ′ ,1 , . . . , φI ′ ,KI ′ ∈ Ψ of functions with KI ′ = O(1) such that
          whenever (I, p′ ) is one of the above pairs with p1′ I within 3 PH′ of I ′ , one has
                                                1
                                               ( ′ )∗ φI ∼1 φI ′ ,Ki
                                                p
          for some i = 1, . . . , KI ′ .
     (ii) There is a connected closed proper rational subgroup G̃ of G (drawn from a fixed
          finite collection of such subgroups) and a natural number q (drawn from a fixed
          finite collection of such numbers) and a compact subset E of G̃ (again drawn from
          a fixed finite collection) such that
                                                X                                 H
                         sup         sup              f (n)F (εg̃(n)γ(n)Γ) dx ≫      .
                         ε∈E        J⊂500I ′                                      P′
                                                n∈J
                    g̃∈Poly(R→G̃)
                    γ∈Poly(qZ→Γ)

     (iii) There is a tuple (N1 , . . . , Nℓ ) of non-trivial normal connected rational subgroups
           N1 , . . . , Nℓ of G (drawn from a fixed finite collection of such subgroups) such that
                                         X                                            H
                      sup       sup              f (n)(F − ΠN1 ,...,Nℓ F )(g(n)Γ) ≫      .
                 g∈Poly(R→G) J⊂500I ′ n∈J                                             P′

By Proposition 4.8, we can eliminate the options (ii), (iii) by removing a small set of intervals
from I2 , leaving only option (i). One can now continue the proof of [26, Proposition 3.1]
(making only the obvious changes) to conclude the proposition.                                 

  We continue to follow the line of argument from the previous section. We will need an
analogue of Lemma 2.2 for nilsequences:
Lemma 4.13 (Bezout identity). Let a, b be coprime natural numbers, and let λ > 0. Then
                       λ                 λ
                Poly( Z → Γ) · Poly( Z → Γ) = Poly(λZ → Γ)
                       a                 b
and
                     λ                  λ                 λ
               Poly( Z → Γ) ∩ Poly( Z → Γ) = Poly( Z → Γ).
                     a                  b                 ab
Proof. See Appendix C.                                                                            

   As a consequence, we can now establish the analogue of Proposition 3.5 for nilsequences
(though with a slightly weaker version of part (ii)):
Proposition 4.14 (Chinese remainder theorem). Let I be an interval of some length |I| ≥
1, and let P be a finite collection of primes.
      (i) Suppose that φ ∈ ΨI , and for each p ∈ P there exists φp ∈ Ψ such that
                                                    φp ∼1 φ.
                       HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                                      59

         Then there exists φ′ ∈ ΨI such that
                                                 φp ∼ 1 φ′
                                                       p

         for all p ∈ P, and furthermore hf, φi = hf, φ′ i for all f : Z → C.
    (ii) Suppose that φ ∈ ΨI and φ′ ∈ Ψ are such that
                                                 φ ∼ 1 φ′
                                                      p

         for all p ∈ P, and suppose |I| is sufficiently large (depending on the implied constants
         in the ∼ 1 notation). Then there is a subset P ′ of P with #P ′ ≫ #P such that
                   p

                                               φ ∼ Q1 ′ φ′ .
                                                      P

Proof. See Appendix C                                                                                     
   One can now conclude an analog of Proposition 3.6:
Proposition 4.15 (Building a family of related local nilsequences). Let the hypotheses be
as in Theorem 4.3. Let ε > 0 be sufficiently small depending on k, θ, η, and suppose that
                                                                                             2
X is sufficiently large depending on θ, η, ε, k. Then there exist P ′ , P ′′ ∈ [X ε /2 , X ε ], a large
( P ′XP ′′ , P H                 ′′                         ′′
               ′ P ′′ )-family I , and a local nilsequence φI ′′ ∈ ΨI ′′ for each I
                                                                                     ′′ ∈ I ′′ such that (36)

holds for all I ′′ ∈ I ′′ ; also, each I ′′ ∈ I ′′ obeys the conclusions (i), (ii) of Proposition 4.8
                                                                                                X
(with P = P ′ P ′′ ). Furthermore, there exist a collection Q of ≫ π0 (P ′ )2 H                   quadruples
   ′′     ′′   ′      ′
(I1 , I2 , p1 , p2 ) with I1 , I2 distinct intervals in I and p1 , p2 distinct primes in [P ′ , 2P ′ ],
                                ′′  ′′                      ′′        ′    ′
                                               p′                              p′
such that I1′′ lies within 50 P ′HP ′′ of p2′ I2′′ (so in particular I1′′ ∼ p2′ I2′′ ), and such that (37)
                                                1                               1
holds for a large set of primes p′′ in [P ′′ /2, P ′′ ].
Proof. One repeats the proof of Proposition 3.6 verbatim, using Propositions 4.10, 4.12, 4.14
in place of Propositions 3.2, 3.4, 3.5. To ensure the conclusions (i), (ii) of Proposition 4.8,
one simply removes the exceptional set produced by that proposition, which has only a
negligible impact on the cardinality of Q.                                                   
   For the rest of this section we introduce the quantities
                                                       X
                                        N := #I ′′ ≍
                                                       H
and
                                         d := π0 (P ′ )2
as in the previous section. We now establish an analog of Proposition 3.7:
Proposition 4.16 (Local structure of φ′′ ). Let the hypotheses be as in Theorem 4.3, and let
ε, X, P ′ , P ′′ , I ′′ , φ′′I ′′ be as in Proposition 4.15. Let ℓ1 , ℓ2 be bounded even integers obeying
(44). We allow implied constants to depend on ε, ℓ1 , ℓ2 . Then, for a subset Q′ of the
quadruples e = (I1′′ , I2′′ , p′1 , p′2 ) in Q of cardinality ≫ dN , one can find a collection Ae of
quadruples ~a = (a1 , a2 , b1 , b2 ) of natural numbers of cardinality ≍ dℓ1 +ℓ2 /N 2 , and a large
collection Pe,~a of primes in [P ′′ /2, P ′′ ] associated to each ~a ∈ Ae , obeying the properties (i),
60                    MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

(ii), (iii) of Proposition 3.7. In particular, the implied constants in (45) do not depend on
ℓ1 , ℓ2 , and the implied constants in (48) may depend on ℓi but do not depend on ℓ3−i .
Proof. One repeats the proof of Proposition 3.7, using Propositions 4.10, 4.15, 4.14 in place
of Propositions 3.2, 3.6, 3.5. Note that Proposition 4.14(ii) will force us to refine the set of
primes PI1′′ ,I2′′ somewhat, but it will still remain large.                                  
   In the previous section, the values of ℓ1 , ℓ2 were not of particular significance. In this
section it will be convenient to choose ℓ1 to be significantly larger than ℓ2 , because we will
need to work with many quadruples simultaneously.
4.4. Solving the approximate dilation invariance. The next step is to solve the ap-
proximate dilation invariance equation (48) for a given quadruple e. In the previous section,
we were able to obtain a satisfactory description of the solutions just by using a single choice
of ~a = (a1 , b1 , a2 , b2 ) ∈ Ae ; see Proposition 3.8. Here, however, the situation will be more
complicated, because for each ~a there can be some unwanted “exotic” solutions φ′′I ′′ to (48)
                                                                                                   i
that do not pretend to behave like a character tiT , and which therefore cannot be treated
using the results from [23], [25]. For instance, consider the situation in which
                                          φ′′I ′′ = (I1′′ , t 7→ γ P (t) )                               (95)
                                             1

for some γ = γa1 ,b1 ∈ Γ of polynomial size γ = X O(1) and some polynomial P (t) which is
                                                            log t
a partial Taylor expansion of the analytic function t 7→ log(a1 /b1 )
                                                                      around the midpoint xI1′′
of I1′′ . If the filtration Gi is defined suitably, t 7→ γ P (t) will be a polynomial map. On the
other hand, since
                                            log(a1 t)          log(b1 t)
                                     γ log(a1 /b1 ) = γ log(a1 /b1 ) γ
one can verify that the approximate dilation invariance (48) will be obeyed for i = 1 if P (t)
                                                                      log t
is a sufficiently long partial Taylor expansion of t 7→ log(a           1 /b1 )
                                                                                . If γ is a central element of
                                                                                iT
G, the local nilsequence (95) will then “pretend” to be like t for some T depending on
γ and log(a1 /b1 ), but if γ is not central then one would not expect this to be the case in
general. As a consequence, merely having (48) for a single tuple ~a will be insufficient for
our arguments. However, as we shall see, if have the approximate dilation invariance (48)
holds for a very “dense” collection of ratios a1 /b1 , then one cannot have a representation
such as (95) for all of these a1 /b1 simultaneously unless the bases γ involved are essentially
central, or if φ′′I ′′ can be modeled by a lower dimensional nilsequence. Actually the first
                   1
case is contained in the second thanks to Proposition 4.7, so we will be able to proceed via
Proposition 4.4.
   We now begin the formal arguments. The first step is to decouple the “continuous” (or
“Archimedean”) aspects of the equation (48) (associated to the smooth polynomial maps ε in
Definition 4.9 and the dilation structure in (48)) from the “rational” (or “non-Archimedean”)
aspects (associated to the rational maps γ in Definition 4.9).          Q It will be possible to do this
thanks to the exponentially large size of the modulus                       Pe,~a occurring in (48), which
enable a sort of “Lefschetz principle” to pass to the continuous setting. To describe this
                    HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                              61

more precisely we need some more notation. As in the previous section, a quantity a
(which could be a number or an element of G or log G) is said to be of polynomial size if
a = O(X O(1) ). We similarly say that a map g ∈ Poly(R → G) is of polynomial size if the
coefficients g0 , . . . , gk of the Taylor expansion
                                                ( t)       ( t)
                                     g(t) = g0 g1 1 . . . gkk
of g around the origin are all of polynomial size. Observe from many applications of the
Baker–Campbell–Hausdorff formula (Appendix B) that a polynomial map g ∈ Poly(R → G)
is of polynomial size if and only if the polynomial map log g : R → log G has all coefficients
of its Taylor expansion around the origin of polynomial size. In particular (from a further
application of Baker–Campbell–Hausdorff) if g, h ∈ Poly(R → G) are of polynomial size
then so are g −1 and gh (though with different implied constants in the O() notation); also
one has g(t) of polynomial size whenever g, t are. Next, for any modulus Q > 0, we say that
a map γ ∈ Poly(R → G) is Q-rational if γ ∈ Poly( Qq Z → Γ) for some natural number q of
polynomial size. From Lemma 4.13 (and a rescaling by q) we see that if γ, γ ′ ∈ Poly(R → G)
are Q-rational, then so are γ −1 and γγ ′ , again with different implied constants in the O()
notation. The key fact that allows us to decouple is the following “transversality” between
the collection of maps of polynomial size and the collection of maps that are extremely
rational.
                                                                          ′′ ]. Suppose that
Lemma 4.17 (Transversality). Let P be a large set of primes in [P ′′ /2, PQ
g ∈ Poly(R → G) is both of polynomial size and Q-rational, where Q = P. Then g is
equal to a constant g(t) = γ for some γ ∈ Γ of polynomial size.
Proof. The group element g(0) lies in Γ and is of polynomial size. By dividing this out we
may assume g(0) = 1. We first prove the claim for abelian groups G. Since g in a map in
Poly( Qq Z → Γ) we have
                                              k    
                                      q     X       t
                                   g( t) =      ai
                                      Q             i
                                                 i=0
with ai ∈ Z. So that
                                             k    Q 
                                            X         t
                                     g(t) =     ai q .
                                            i=0
                                                    i
Since g is polynomial size we conclude that [ Qq ]k k!
                                                    1
                                                       ak must be of polynomial size; as q is
also of polynomial size, we therefore have
                                     ak = O(X O(1) Q−k ).
On the other hand, as P is a large set of primes in [P ′′ /2, P ′′ ], we have from (25) that
                                                       2
                                       Q ≫ exp(X ε /3 )
(say). Since ak ∈ Z we conclude that ak = 0. Proceeding by induction we obtain that
ai = 0 for all i > 0.
62                   MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

  Now that if g ∈ Poly(R → G) is of polynomial size then ḡ = g[G, G] ∈ Poly(R →
                                                             (t)     (t)                   (t)         ( t)
G/[G, G]) is also of polynomial size, since if g(t) = g0 g1 1 . . . gkk then ḡ(t) = ḡ0 ḡ1 1 . . . ḡkk ,
where ḡi = gi [G, G]. Consider ḡ now as a polynomial map in Poly( Qq Z → Γ/[Γ, Γ]), then
by Lemma B.2 we have the Taylor expansion
                                      
                                       q           (t )        (t)
                                  ḡ     t = γ̄0 γ̄1 1 . . . γ̄k k
                                      Q
where γ̄i = γi [Γ, Γ]. By the claim for abelian groups we have for each i ≥ 1 that γ̄i = 1, so
that γi ∈ [Γ, Γ]. The claim now follows by induction on the derived sequence.               
     Using this lemma, we obtain the following.
Proposition 4.18 (Splitting). Let the notation and hypotheses be as in Proposition 4.16,
and assume ℓ1 ≥ ℓ2 . Let e = (I1′′ , I2′′ , p′1 , p′2 ) ∈ Q′ and ~a = (a1 , b1 , a2 , b2 ) in Ae , and write
φIi′′ = (Ii′′ , gIi′′ ) for i = 1, 2 and some gIi′′ ∈ Poly(R → G). Then we may factor
                                             gIi′′ = g̃e,~a,i γe,~a,i                                  (96)
for i = 1, 2, where g̃e,~a,i ∈ Poly(R → G) is of polynomial       Q size (with exponents that can
depend on ℓ2 , but are independent of ℓ1 ) and γe,~a,i is           Pe,~a -rational. Furthermore, we
have the approximate dilation invariance
                                              
                                              ai
                                    g̃e,~a,i     · = εi g̃e,~a,i γi                              (97)
                                              bi
for some γi = γi,e,~a ∈ Γ of polynomial size, and some εi = εi,e,~a ∈ Poly(R → G) that is
smooth on Ii′′ . In a similar vein we have
                                       g̃e,~a,1 (p′2 ·) = ε† g̃e,~a,2 (p′1 ·)                          (98)
for some ε† = ε†e,~a ∈ Poly(R → G) that is smooth on p1′ I1′′ , and
                                                                        2

                                       γe,~a,1 (p′2 ·) = γe,~a,2 (p′1 ·)γ †                            (99)
                †          Q1
for some γ † = γe,~
                  a ∈ Poly( Pe,~a Z → Γ).

   The fact that the polynomial size bounds for g̃e,~a,1 depend only on the smaller exponent
ℓ2 rather than the larger one ℓ1 will be crucial in our subsequent analysis.
                                  Q
Proof. Let i = 1, 2, and set Q := Pe,~a . From (48) and Definition 4.9 one has
                                        gIi′′ (ai ·) = ε∗i gIi′′ (bi ·)γi∗                           (100)
where γi∗ is Q-rational and ε∗i is smooth on a1i Ii′′ . Applying (28) to the polynomial log ε∗i
we conclude that ε∗i is of polynomial size (with exponents that do not depend on ℓ1 , ℓ2 ).
We now claim inductively for every j = 1, . . . , k + 1 that we can factor
                                       gIi′′ = g̃e,~a,i,j ge,~a,i,j γe,~a,i,j                        (101)
where g̃e,~a,i,j ∈ Poly(R → G) is of polynomial size (with exponents that may depend on ℓi
but not on ℓ3−i ), γe,~a,i,j ∈ Poly(R → G) is Q-rational, and ge,~a,i,j ∈ Poly(R → Gj ) takes
                       HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                                     63

values in Gj ; setting j = k + 1 then gives the desired claim (96) for i = 2 at least; for i = 1
we will have the issue that the exponents depend on ℓ1 rather than ℓ2 , but we will return
to fix this issue later.
   The inductive claim is trivial for j = 1 (set ge,~a,i,1 = gIi′′ with g̃e,~a,i,1 , γe,~a,i,1 trivial); now
suppose that the claim has been established for some 1 ≤ j ≤ k. In this argument all
exponents are allowed to depend on ℓi but not on ℓ3−i . Then from (100) we see that
                                      ge,~a,i,j (ai ·) = εj ge,~a,i,j (bi ·)γj
for some εj of polynomial size and Q-rational γj (we suppress the dependence of these maps
on e,~a, i for brevity). Quotienting by Gj we see that ε−1
                                                         j   and γj agree modulo Gj , and
hence by Lemma 4.17 applied to G/Gj are both equal modulo Gj to a constant γ ∈ Γ of
polynomial size. Thus we have
                                   ge,~a,i,j (ai ·) = ε̃j γ −1 ge,~a,i,j (bi ·)γγ̃j
for some ε̃j of polynomial size taking values in Gj , and Q-rational γ̃j taking values in Gj .
In the abelian group Gj /Gj+1 , we thus have the identity
                               ge,~a,i,j (ai ·) = ε̃j ge,~a,i,j (bi ·)γ̃j mod Gj+1
and thus on taking logarithms and working in the abelian Lie algebra log Gj / log Gj+1
(noting from Appendix B that the logarithm map is a homomorphism from Gj /Gj+1 to
log Gj / log Gj+1 ), we have from (180) that
                 log ge,~a,i,j (ai ·) = log ε̃j + log ge,~a,i,j (bi ·) + log γ̃j mod log Gj+1 .
For d = 0, . . . , j, we may differentiate d times at 0 and rearrange to conclude that
           (adi − bdi )(log ge,~a,i,j )(d) (0) = (log ε̃j )(d) (0) + (log γ̃j )(d) (0) mod log Gj+1 .
As ε̃j is of polynomial size, we have
                                        (log ε̃j )(d) (0) = O(X O(1) ).
Similarly, as γ̃j is Q-rational, (log γ̃j )(d) (0) mod log Gj+1 takes values in Qq log Γj mod log Gj+1
for some positive integer q of polynomial size. Since adi − bdi is also a positive integer of
polynomial size, we conclude that
                                                                    Q
                       (log ge,~a,i,j )(d) (0) = O(X O(1) ) +          γd mod log Gj+1
                                                                    qd
for some γd ∈ Γj and positive integer qd of polynomial size. By Taylor expansion (and
clearing denominators with the qd ), we may then write
                              log ge,~a,i,j = log gj∗ + log γj∗ mod log Gj+1
where gj∗ ∈ Poly(R → Gj ) is of polynomial size and γj∗ ∈ Poly(R → Gj ) is Q-rational.
Exponentiating (noting that Gj /Gj+1 is abelian), we conclude that
                                           ge,~a,i,j = gj∗ ge,~a,i,j+1 γj∗
64                    MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

for some ge,~a,i,j+1 ∈ Poly(R → Gj+1 ). Inserting this into (101) we close the induction and
establish (96) (with the above caveat regarding the exponents depending on ℓi rather than
ℓ2 ).
    From (45) we have
                                  gI1′′ (p′2 ·) = ε† gI2′′ (p1 ·)γ †
                                                                    1
for some ε† ∈ Poly(R → G) smooth on p1′ I1′′ , and some γ † ∈ Poly( Q Z → Γ); in particular,
                                                        2
γ † is Q-rational with exponents that do not depend on ℓ1 or ℓ2 . Combining this with (96)
and rearranging, we see that
                     g̃e,~a,2 (p′1 ·)−1 (ε† )−1 g̃e,~a,1 (p′2 ·) = γe,~a,2 (p′1 ·)γ † γe,~a,1 (p′2 ·)−1 .
The left-hand side is of polynomial size and the right-hand side is Q-rational. Here the
exponents depend on both ℓ1 , ℓ2 ; since ℓ1 ≥ ℓ2 , we can view these exponents as depending
on ℓ1 only. Applying Lemma 4.17, both sides are equal to a constant γ ∈ Γ of polynomial size
(with exponents depending on ℓ1 , ℓ2 ). By multiplying g̃e,~a,1 on the right by γ −1 (and γe,~a,1 on
the left by γ), we can assume that γ = 1, without significantly worsening any of the claimed
properties of these objects, thus we may assume without loss of generality that γ = 1. Once
one makes this normalization, one obtains the factorizations (98), (99). Furthermore, since
the right-hand side of (98) is of polynomial size with exponents depending only on ℓ2 , the
left-hand side is also. Hence we have now resolved the previously mentioned caveat in (96)
in that the exponents for the polynomial size nature of g̃e,~a,1 were depending on ℓ1 rather
than ℓ2 .
   Inserting (96) back into (100) and rearranging, we conclude that
                                                                                           −1
                     g̃e,~a,i (bi ·)−1 (ε∗i (t))−1 g̃e,~a,i (ai t) = γe,~a,i (bi t)γi∗ (t)γe,~
                                                                                             a,i (ai t).
As the left-hand side is of polynomial size and the right-hand side is Q-rational, we conclude
from Lemma 4.17 that both sides are equal to a constant γi ∈ Γ of polynomial size. This
rearranges to give
                                 g̃e,~a,i (ai t) = ε∗i (t)g̃e,~a,i (bi t)γi
and therefore the claim (97) follows from reparameterizing t and defining εi (t) := ε∗i (ai t).
                                                                                             
     At this point we encounter a minor technical complication due to the fact that the factors
g̃e,~a,i , γe,~a,i generated by the above proposition depend on ~a, so in particular as one varies
ai , bi the polynomial map g̃e,~a,i appearing in relations such as (97) also varies. Fortunately,
using some arguments of a graph theoretic nature, and taking advantage of the ability to
make the two parameters ℓ1 , ℓ2 differ significantly from each other, we can eliminate this
dependence:
Proposition 4.19 (Approximate dilation invariance for a dense set of dilations). Let e =
(I1′′ , I2′′ , p′1 , p′2 ) ∈ Q′ , and let gI1′′ , gI2′′ ∈ Poly(R → G) be the maps associated to φI1′′ , φI2′′ .
Assume that ℓ1 is sufficiently large depending on ℓ2 . Then there is a large set Pe of primes
in [P ′′ /2, P ′′ ] and a factorization
                                                         gIi′′ = g̃e,i γe,i                           (102)
                     HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                                  65
                                                                                     Q
for each i = 1, 2, where g̃e,i ∈ Poly(R → G) is of polynomial size and γe,i is           Pe -rational,
one has the relation
                                     g̃e,1 (p′2 ·) = ε† g̃e,2 (p1 ·)                            (103)
for some ε† ∈ Poly(R → G) that is smooth on p1′ I1′′ , and one has the relation
                                              2

                                       γe,1 (p′2 ·) = γe,2 (p′1 ·)γ †                           (104)
for some γ † ∈ Poly( Q1Pe Z → Γ). (In all these cases we permit the exponents to depend on
both ℓ1 and ℓ2 .) Furthermore:
                                                                 1      C
    (i) There exists a measurable subset Ωe of the interval [1+ CN , 1+ N ] for some fixed con-
        stant C > 0 of measure ≫ 1/N , such that for each α ∈ Ωe one has the approximate
        dilation invariance
                                    g̃e,1 (α·) = εα g̃e,1 γα                              (105)
        for some γα ∈ Γ of polynomial size, and some εα ∈ Poly(R → G) that is smooth on
        I1′′ .
   (ii) We have g̃e,1 (xI1′′ ) = O(1).

Proof. We first observe that we may drop the conclusion (ii) as follows. Suppose we have
already obtained all the conclusions of the proposition other than (ii). Then g̃e,1 (xI1′′ ) is
already of polynomial size. Since G/Γ is compact, we may write
                                         g̃e,1 (xI1′′ ) = O(1)γ
for some γ ∈ Γ of polynomial size. If we then multiply g̃e,1 on the right by γ −1 , multiply γe,1
and γ † on the left by γ, and replace the lattice element γα appearing in (105) by γγα γ −1 ,
we thus see that we may recover the claimed property (ii), without significantly impacting
any of the other claims.
   Henceforth we focus on establishing the remaining conclusions of the proposition. For
i = 1, 2, let Vi denote the set of ratios abii of coprime positive integers ai , bi that are products
of ℓi primes in [P ′ , 2P ′ ] with
                                        ai           1    H
                                             −1≍        ≍ .
                                        bi           N    X
By [26, Lemma 2.6], Vi has cardinality O(dℓi /N ). From Proposition 4.16, we see that for
any e ∈ Q′ , the set
                                                               
                                 a1 a2
                        Ee := ( , ) : (a1 , b1 , a2 , b2 ) ∈ Ae
                                 b1 b2
is a subset of V1 ×V2 of cardinality ≫ dℓ1 +ℓ2 /N 2 , thus #Vi ≍ dℓi /N and #Ee ≍ (#V1 )(#V2 ).
We view Ee as a dense bipartite graph on V1 , V2 . Each edge ~a = ( ab11 , ab22 ) in Ee is associated
to a large set of primes Pe,~a := Pe,(a1 ,b1 ,a2 ,b2 ) in [P ′′ /2, P ′′ ]. In particular
                                X
                                     #Pe,~a ≫ (#V1 )(#V2 )π0 (P ′′ )
                               ~a∈Ee
66                          MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

which we rearrange as
        X       X
                     #{v1 ∈ V1 : (v1 , v2 ) ∈ Ee ; p′′ ∈ Pe,(v1 ,v2 ) } ≫ π0 (P ′′ )(#V1 )(#V2 ).
      p′′ ∈[P ′′ /2,P ′′ ] v2 ∈V2

By Cauchy–Schwarz, this implies that
      X       X
                  #{v1 ∈ V1 : (v1 , v2 ) ∈ Ee ; p′′ ∈ Pe,(v1 ,v2 ) }2 ≫ π0 (P ′′ )(#V1 )2 (#V2 ),
     p′′ ∈[P ′′ /2,P ′′ ] v2 ∈V2

which we rearrange as
            X         X
                                                      #(Pe,(v1 ,v2 ) ∩ Pe,(v1′ ,v2 ) ) ≫ π0 (P ′′ )(#V1 )2 (#V2 ).
              (v1 ,v2 )∈Ee v1′ ∈V1 :(v1′ ,v2 )∈Ee

Hence by the pigeonhole principle there exists (v1 , v2 ) ∈ Ee for which
                       X
                                 #(Pe,(v1 ,v2 ) ∩ Pe,(v1′ ,v2 ) ) ≫ π0 (P ′′ )#V1
                             v1′ ∈V1 :(v1′ ,v2 )∈Ee

which implies that
                                           #(Pe,(v1 ,v2 ) ∩ Pe,(v1′ ,v2 ) ) ≫ π0 (P ′′ )
and (v1′ , v2 ) ∈ Ee for all v1′ in a subset Ve of V1 of cardinality ≫ #V1 ≫ dℓ1 /N .
   Set Pe := Pe,(v1 ,v2 ) . From Proposition 4.18 applied to the quadruple (v1 , v2 ), we obtain
factorizations
                                             gIi′′ = g̃e,i γe,i                            (106)
forQi = 1, 2, where g̃e,i = g̃e,(v1 ,v2 ),i ∈ Poly(R → G) is of polynomial size and γe,i = γe,(v1 ,v2 ),i
is Pe -rational, obeying
                                            g̃e,1 (p′2 ·) = ε† g̃e,2 (p1 ·)                     (107)
for some ε† = ε†e,(v1 ,v2 ) ∈ Poly(R → G) that is smooth on p1′ I1′′ . For any v1′ ∈ Ve , we also
                                                                                  2
have a factorization
                                       gI1′′ = g̃e,(v1′ ,v2 ),1 γe,(v1′ ,v2 ),1 ,                (108)
                                                                          Q
where g̃e,(v1′ ,v2 ),1 is of polynomial size and γe,(v1′ ,v2 ),1 is Pe,(v1′ ,v2 ) -rational, and
                                            g̃e,(v1′ ,v2 ),1 (v1′ ·) = εv1′ g̃e,(v1′ ,v2 ),1 γv1′                    (109)
for some εv1′ smooth on I1′′ and γv1′ ∈ Γ of polynomial size. From (106), (108) we have
                                                 −1                           −1
                                               g̃e,1 g̃e,(v1′ ,v2 ),1 = γe,1 γe,(v ′ ,v ),1 .
                                                                                       2
                                                                                      1
                                                                    Q
The left-hand side is of polynomial size and the right-hand side is (Pe,(v1 ,v2 ) ∩ Pe,(v1′ ,v2 ) )-
rational. By Lemma 4.17, both sides are then equal to a constant γv∗′ ∈ Γ of polynomial
                                                                      1
size, thus
                                    g̃e,(v1′ ,v2 ),1 = g̃e,1 γv∗′ .
                                                                                     1

We conclude from (109) that
                                                        g̃e,1 (v1′ ·) = εv1′ g̃e,1 γ̃v1′
                     HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                               67

for all t ∈ R, where γ̃v1′ := γv∗′ γv1′ (γv∗′ )−1 is an element of Γ of polynomial size. This gives
                                 1          1
the bound (105) for all α in the discrete set Ve . This is not yet what we need because Ve
has measure zero. However we can use the hypothesis that ℓ1 is large compared to ℓ2 to
remove the discretization as follows. Recall from Proposition 4.18 that g̃e,1 is of polynomial
size, with exponents depending only on the smaller parameter ℓ2 and not on the larger
parameter ℓ1 . As a consequence, if (105) holds for some real number α = 1 + O( N1 ), then
one can perturb α by at most d−ℓ1 /10 (say) and still retain (105) with only a negligible
change in all the implied constants. Hence we have (105) for all α ∈ Ωe , where Ωe is the
d−ℓ1 /10 -neighborhood of Ve . We have
               Z X
                       1[α−d−ℓ1 /10 ,α+d−ℓ1 /10 ] (β) dβ = 2d−ℓ1 /10 #Ve ≫ d9ℓ1 /10 /N.
               Ωe α∈V
                      e

To obtain the desired lower bound of ≫ 1/N on the measure of Ωe , it suffices to establish
the pointwise bound
                          X
                              1[α−d−ℓ1 /10 ,α+d−ℓ1 /10 ] (β) ≪ d9ℓ1 /10
                            α∈Ve
for any β = 1 + O(1/N ). The left-hand side can be written as
                                #{α ∈ Ve : |α − β| ≤ d−ℓ1 /10 }.
This in turn can be bounded by the number of pairs (a, b) ∈ S 2 with ab = β + O(d−ℓ1 /10 ),
where S is the collection of products of ℓ1 primes in [P ′ , 2P ′ ]. This can then be bounded
by
                                          Z ∞
                                                           dt
                                  dℓ1 /10     f (t)f (βt)
                                           0                t
where
                    f (t) := #(S ∩ [(1 − C1 d−ℓ1 /10 )t, (1 + C1 d−ℓ1 /10 )t])
for some absolute constant C1 > 0. By Cauchy–Schwarz, the previous expression may be
bounded by
                                          Z ∞
                                   ℓ1 /10            dt
                                  d           f (t)2
                                           0          t
which is in turn bounded by the number of pairs (a, b) ∈ S 2 with ab = 1 + O(d−ℓ1 /10 ).
Applying [26, Lemma 2.6], this quantity is O(d9ℓ1 /10 ), and the claim follows.      
   Now that we have established an approximate dilation invariance (105) for a large set of
dilation parameters α, we can begin solving this equation effectively. The first step is as
follows.
Proposition 4.20. Let e, I1′′ , g̃e,1 , Ωe , γα be as in Proposition 4.19. Then for any α ∈ Ωe ,
we have the estimate
                                                     log(t/x ′′ )
                                                             I
                                                              1
                                                        log α
                                    g̃e,1 (t) = O(1)γα                                       (110)
68                   MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

for real t with htiI1′′ ≪ 1. As a consequence, for any α, α′ ∈ Ωe , we have
                                                                  ′
                                                            s log α
                                            γαs ′ = O(1)γα log α .                       (111)
for all s = O(1).
Proof. From iterating (105) we see that for any fixed natural number n and any α ∈ Ωe we
have
                             g̃e,1 (αn xI1′′ ) = O(1)g̃e,1 (xI1′′ )γαn
which we rearrange as
                               g̃e,1 (exp(n log α)xI1′′ )γα−n = O(1).                    (112)
The left-hand side is a (matrix-valued) exponential polynomial in n, with the exponents
in the exponentials being bounded multiples of log α and thus of size O(1/N ). Applying
Lemma 2.3 to each component of this matrix-valued function, we conclude that (112) holds
for all real n = O(1). Rearranging using the fact that log α ≍ N1 , we conclude the estimate
(110). Applying this estimate twice we conclude that
                                                     ′
                                    g̃e,1 (es log α xI1′′ ) = O(1)γαs ′
and
                                                                          ′
                                         s log α′                  s log α
                                 g̃e,1 (e           xI1′′ ) = O(1)γα log α
for α, α′ ∈ Ωe and s = O(1), giving (111).                                                   
     Now we give some satisfactory control on g̃e,1 , which roughly speaking asserts that g̃e,1
                               log(t/x ′′ )
                                  I
“pretends to be like” t 7→ T       1  for some T which is either nearly central, or nearly
contained in a proper subgroup of G. Following [16], we define a horizontal character to
be a continuous additive homomorphism η : G → R/Z that annihilates Γ; its derivative
dη : log G → R at the identity is then a linear functional on log G, and is related to η by
the formula
                                 η(g) = dη(log g) mod Z,                              (113)
as can be seen by starting with the formula η(g) = nη(exp( n1 log g)) and taking limits as
n → ∞. In particular, η is the descent of the homomorphism dη ◦ log : G → R to R/Z.
Example 4.21. Let G be the Heisenberg group from Example 4.1, and let Γ be the lattice
                                              
                                       1 Z Z
                                Γ := 0 1 Z .
                                       0 0 1
Then every horizontal character η : G → R/Z takes the form
                                      
                                 1 x z
                           η 0 1 y  = ax + by mod 1
                                 0 0 1
                     HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                            69

for some integers a, b, and the corresponding map dη : log G → R is given by
                                           
                                      0 x z
                               dη 0 1 y  = ax + by.
                                      0 0 0
Proposition 4.22 (Description of g̃e,1 ). Let e, g̃e,1 , I1′′ be as in Proposition 4.19.
   (1) Then there exists T = Te ∈ G of polynomial size such that the map
                                                  − log(t/xI ′′ )
                                                                 
                              t 7→ log g̃e,1 (t)T              1                           (114)

       is bounded by O(1) and has a Lipschitz norm of O(|I1′′ |−1 ) whenever htiI1′′ ≪ 1.
   (2) There is a non-trivial horizontal character η = ηe : G → R/Z such that dη : log G →
       R has operator norm O(1), and such that
                                         dη(log T ) = O(N ).                               (115)
Proof. Let Ωe and γα be as in Proposition 4.19. Let α0 be an arbitrary element of Ωe , and
let T ∈ G be the quantity
                                                          1
                                                       log α
                                      T := γα0 0 .
Since γα is of polynomial size and α0 − 1 ≍ N1 , we see that T is also of polynomial size.
From (110) one has
                                                           log(t/x ′′ )
                                                           I
                                 g̃e,1 (t) = O(1)T          1                          (116)
whenever htiI1′′ ≪ 1. In particular, after making the substitution u := N log(t/xI1′′ ), the
function                                                       
                             u 7→ log g̃e,1 (eu/N xI1′′ )T −u/N
is bounded for u = O(1). By the Baker–Campbell–Hausdorff formula (see Appendix B), this
map is an exponential polynomial involving O(1) terms with exponents of order O(1/N ).
(Note that the quantity T −u/N = exp(−u log T /N ) is actually a polynomial in u, rather
than an exponential polynomial, due to the nilpotent nature of G.) Applying Lemma 2.3,
we conclude that this map has a Lipschitz constant of O(1). Undoing the substitution, we
obtain the claims regarding (114).
   Applying (110) again and combining with (116), we see that
                                           γαs = O(1)T s log α
for all α ∈ Ωe and s = O(1). If we then write
                                            gα := T log α γα−1
then gα = T log α mod Γ and gα = O(1). Furthermore, for any s = O(1) we have
                         T s log α gα T −s log α = T (s+1) log α γα−1 T −s log α
                                                = O(1)γαs+1 γα−1 (O(1)γαs )−1
                                                = O(1),
70                 MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

and thus
                                       T t gα T −t = O(1)
for all α ∈ Ωe and t = O( N1 ). Taking logarithms and applying the Lie algebra identity
(178), we may rewrite this as
                                    etadlog T log gα = O(1)                               (117)
for all t = O( N1 ) and α ∈ Ωe .
   Let C0 > 0 be a sufficiently large fixed quantity to be chosen later. Suppose first that
 1
N  ad log T has operator norm less than C0 . The map ad : X 7→ adX is a fixed linear map
from log G to the space End(log G) of linear endomorphisms of log G, and its kernel is
log Z(G) where Z(G) is the center of G. The image of N1 log T under this map has size
O(C0 ), hence N1 log T lies at a distance O(C0 ) from log Z(G). On the other hand, from
Proposition 4.7, log Z(G) is a proper normal subalgebra of the Lie algebra log G; using
Mal’cev bases (for definition, see Appendix B) it can also be seen to be rational. By lifting
a non-trivial horizontal character of G/Z(G) (which can be in turn obtained by lifting a
non-trivial character from the horizontal torus formed by quotienting out G/Z(G) by both
ΓZ(G)/Z(G) and the commutator group [G/Z(G), G/Z(G)]), we may thus find a fixed
non-trivial horizontal character η that annihilates log Z(G) and such that dη has operator
norm O(1), so that (115) holds, in which case we are done.
   Henceforth we may assume that N1 adlog T has operator norm at least C0 . As N1 adlog T
is nilpotent, we conclude (on finite Taylor expansion of the logarithm map) that the linear
         1
map e N adlog T has operator norm ≫ C0c for some constant c > 0. From this and the singular
value decomposition, we conclude that the set
                                                1
                            Ω = {x ∈ log G : e N adlog T x = O(1)}
lies in the O(C0−c )-neighbourhood of a hyperplane Π in log G. From (117) we conclude that
for α ∈ Ωe , log gα lies within O(C0−c )-neighbourhood of Π. Since we have gα = O(1) and
gα = T log α mod Γ, we thus have
            T log α Γ = gα Γ ∈ {κ exp(h)Γ : κ ∈ G; h ∈ Π; κ = O(C0−c ); h = O(1)}.        (118)
Thus, for t = O(1/N ) in a set of measure ≍ 1/N , T t Γ is contained in the O(C0−c )-
neighbourhood of the set
                             Σ := {exp(h)Γ : h ∈ Π; h = O(1)}.
Discretising this using the polynomial size of T , we conclude (for A > 0 a large enough
constant) that T t Γ lies in the O(C0−c ) neighbourhood of Σ for ≫ X A /N values of t =
                                                                                           −A
O(1/N ) with t ∈ X −A Z. If C0 is large enough, this implies that the sequence n 7→ T X n Γ
fails to be C0−C -equidistributed on the interval [−CX A /N, CX A /N ] ∩ Z for some fixed
C > 0, in the sense of [16, Definition 1.2] (by testing this equidistribution hypothesis against
a suitable cutoff function adapted to the O(C0−c )-neighbourhood of Σ). Applying [16,
Theorem 1.16], this implies that there is a non-trivial horizontal character η : G → R/Z
                       HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                                             71

                                                O(1)
with dη having operator norm19 O(C0                    ), such that
                                     −A n                −A (n−1)
                            kη(T X          ) − η(T X               )kR/Z ≪ X −A N

for n ∈[−CX A /N, CX A /N ] ∩ Z, which by (113) implies that
                                X −A dη(log T ) = O(X −A N ) mod Z.
For A large enough, both sides here are less than 1/2 in magnitude, so we may remove the
mod Z constraint. The claim follows.                                                  
Remark 4.23. Proposition 4.22(2) is the first place where the non-abelian nature of G
plays a role. Part (1) of Proposition 4.22 is valid for abelian groups as well. However in
part (2), if the group G is abelian, then we can not find a character η with the desired
properties since the action of adlog T is trivial.
   Having established satisfactory control on the “continuous” (or “Archimedean”) compo-
nent g̃e,1 on the factorization from Proposition 4.19, we now need to control the “rational”
(or “non-Archimedean”) component γe,i , with the ultimate aim being to establish an ana-
logue of Proposition 3.13. We begin with a variant of Corollary 3.10. We view Γ as a
subgroup of Poly(R → G), by identifying each element γ of Γ with the constant polynomial
map t 7→ γ. In particular we may form the quotient space Γ\Poly(R → G).
Proposition 4.24. For each I ′′ ∈ I ′′ there exists a set F(I ′′ ) of elements of the quotient
space Γ\Poly(R → G) of cardinality O(1) such that for any quadruple e = (I1′′ , I2′′ , p′1 , p′2 ) ∈
Q′ and functions γe,i as in Proposition 4.19, one has
                                                 Γγe,i ∈ F(I ′′ )                                            (119)
if i = 1, 2 and Ii′′ = I ′′ . Furthermore, each element in F(I ′′ ) is 1-rational, that is to say it
lies in Γ\Poly(qZ → Γ) for some positive integer q of polynomial size.
Proof. We just prove the claim for i = 1, as the i = 2 case is similar, and then we can
obtain the joint case i = 1, 2 by taking the union of the two sets F(I ′′ ) thus produced.
We let F(I ′′ ) be the collection of all cosets Γγe,1 whenever e = (I1′′ , I2′′ , p′1 , p′2 ) ∈ Q′ with
I1′′ = I ′′ . Since γe,i is Q-rational for some natural number Q, it is also 1-rational.
    Clearly we have the property (119) by definition for i = 1. To complete the proof of the
proposition, we need to show that F(I ′′ ) has cardinality O(1). Suppose for contradiction
that F(I ′′ ) has cardinality at least K for some large fixed K to be chosen later. By
construction, we can then find K quadruples ej = (I ′′ , I2,j       ′′ , p′ , p′ ) ∈ Q′ for j = 1, . . . , K
                                                                          1,j 2,j
and associated factorizations
                                             gI ′′ = g̃ej ,1 γej ,1                                  (120)

   19More precisely, [16, Theorem 1.16] shows that η, when expressed in Mal’cev coordinates, is given by a
                                       O(1)
linear functional with coeﬃcients O(C0        ), from which it is easy to verify that dη is also a linear functional
                      O(1)
with coeﬃcients O(C0 ).
72                    MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER
                                                                              Q
for j = 1, . . . , K, with g̃ej ,1 ∈ Poly(R → G) of polynomial size and γej ,1 Pej -rational for
some large set Pej of primes in [P ′′ /2, P ′′ ], and such that the cosets Γγej ,1 are all distinct.
As each Pj is large, we have
                                         XK
                                            #Pej ≫ Kπ0 (P ′′ ).
                                            j=1
                                    P
The left-hand side can be written as p∈[P ′′ /2,P ′′ ] #{1 ≤ j ≤ K : p ∈ Pj }. By Cauchy–
Schwarz we then have
                       X
                              #{1 ≤ j ≤ K : p ∈ Pej }2 ≫ K 2 π0 (P ′′ ).
                        p∈[P ′′ /2,P ′′ ]

The left-hand side may be written as
                                   X
                                                         #(Pej ∩ Pej′ ).
                                            1≤j,j ′ ≤K

For K large enough, we may delete the diagonal contribution j = j ′ and then use the
pigeonhole principle to conclude that there exists 1 ≤ j < j ′ ≤ K for which Pej ∩ Pej′ is
large. For this j, j ′ , we use (120) to conclude that
                                            g̃e−1
                                                j ′ ,1
                                                       g̃ej ,1 = γej′ ,1 γe−1
                                                                            j ,1
                                                                                 .
                                                                       Q
The left-hand side is of polynomial size, and the right-hand side is (Pej ∩ Pej′ )-rational.
By Lemma 4.17, we conclude that γej′ ,1 γe−1j ,1
                                                 ∈ Γ, thus Γγej ,1 = Γγej′ ,1 , contradicting the
construction of the ej . The claim follows.                                                    
  We can now establish an analogue of Proposition 3.13 that dramatically improves the
bound on q.
Proposition 4.25. There exists a subset Q′′ of Q′ of cardinality ≫ dN , such that for each
e ∈ Q′′ and functions γe,i as in Proposition 4.19, one has γe,1 ∈ Poly(qZ → Γ) for some
q = O(1).
Proof. Let q0 be a sufficiently large fixed quantity to be chosen later. Suppose for contra-
diction that the proposition fails, then we can find a subset Q′′ of Q′ of cardinality at least
1      ′                                                                     ′′ ′′ ′  ′      ′′
2 #Q ≫ dN such that γe,1 6∈ Poly(qZ → Γ) for any 1 ≤ q ≤ q0 and e = (I1 , I2 , p1 , p2 ) ∈ Q .
                                       ′′
By Proposition 4.24, Γγe,1 ∈ F(I1 ). By randomly selecting one element FI1′′ from each
F(I1′′ ) and using the probabilistic method, we conclude that for at least one such choice of
elements FI1′′ , there is a subset Q′′′ of Q′′ of cardinality ≫ dN such that
                                                     Γγe,i = FIi′′
for all e = (I1′′ , I2′′ , p′1 , p′2 ) ∈ Q′′′ and i = 1, 2. In particular, we have
                                            FI1′′ 6∈ Γ\Poly(qZ → Γ)
whenever e = (I1′′ , I2′′ , p′1 , p′2 ) ∈ Q′′′ and 1 ≤ q ≤ q0 .
  Let ℓ be a bounded integer, large enough so that dℓ ≥ N d10 . Viewing Q′′′ as a (directed)
graph with vertex set I ′′ and applying the Blakley–Roy inequality [3] (see also [30]) and
                        HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                                        73

Cauchy–Schwarz to count cycles of length 2ℓ in this graph, we conclude that there exist
≫ d2ℓ 2ℓ-tuples
                                ′′
                             (Ij,i )0≤j≤ℓ−1;i=1,2 ∈ (I ′′ )2ℓ                    (121)
with the property that for each 0 ≤ j ≤ ℓ − 1, there exists primes p′j,1 , p′j,2 , p′j,3 , p′j,4 ∈
[P ′ , 2P ′ ] such that
                             ′′     ′′
                           (Ij,1 , Ij,2                      ′′
                                        , p′j,1 , p′j,2 ), (Ij+1,1    ′′
                                                                   , Ij,2 , p′j,3 , p′j,4 ) ∈ Q′′′
                                                        ′′ = I ′′ . In particular, I ′′ lies within
for j = 0, . . . , ℓ − 1, with the periodic convention Iℓ,1   0,1                   j,1
               p′                                                                            p′
O( P ′HP ′′ ) of p′j,2 Ij,2
                         ′′ , and similarly I ′′                          H         j,4 ′′
                                               j+1,1 lies within O( P ′ P ′′ ) of p′j,3 Ij,2 . Iterating this we
                  j,1
                       ′′ lies within O( H ) of
                                                      Qℓ−1 p′j,4 p′j,1 ′′
conclude that I0,1                        P ′ P ′′      j=0 p′ p′ I0,1 , which implies that
                                                                    j,3 j,2

                                                                1 ′ 2ℓ
                                               |a − b| ≪          (P ) .                                 (122)
                                                                N
where
                                                          ℓ−1
                                                          Y
                                                  a :=          p′j,4 p′j,1
                                                          j=0
and
                                                         ℓ−1
                                                         Y
                                                  b :=         p′j,3 p′j,2 .
                                                         j=0
                                             ′′ ∈ I ′′ which is associated to a family T of
By the pigeonhole principle, we may find an I0,1
tuples (121) of cardinality
                                      #T ≫ d2ℓ /N.                                    (123)
                          ′′ and the family T .
We now fix this interval I0,1
 Let q be the least positive integer for which
                                             ′′ ∈ Γ\Poly(qZ → Γ).
                                           FI0,1
By construction we have
                                                 q0 < q ≪ X O(1) .
Intuitively, the lower bound q > q0 means that polynomials in the coset FI0,1 ′′ have at least
one coefficient with some “large denominator” nm . The strategy is to locate this coefficient
and this denominator, and then to study the equation (104) to obtain some non-trivial
congruence conditions relating a and b modulo nm which will restrict the size of T enough
to obtain a contradiction.
   We turn to the details. We arbitrarily select a coset representative γ0,1 ∈ Poly(qZ → Γ)
     ′′ . For any l = 1, . . . , k + 1, we let γ0,1 mod Gl be the projection to Poly(qZ →
of FI0,1
ΓGl /Gl ) ⊂ Poly(R → G/Gl ), and let ql be the least positive integer for which γ0,1 mod Gl ∈
Poly(ql Z → ΓGl /Gl ). Then q1 = 1, qk+1 = q ≥ q0 , and from Lemma 4.13 we have qi |qi+1
74                    MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

for i = 1, . . . , k. In particular, by the pigeonhole principle we can find l ∈ {1, . . . , k} such
that
                                                        i−1
                                               ql ≤ q0 k
and
                                                    i           1
                                         ql+1 > q0k ≥ q0k ql .                                 (124)
We now fix this l. By lifting the Taylor coefficients of γ0,1 mod Gl from G/Gl back to G,
we can factor
                                               ′   ′′
                                      γ0,1 = γ0,1 γ0,1                              (125)
         ′′ ∈ Poly(q Z → Γ) and γ ′                                  ′
where γ0,1            l             0,1 ∈ Poly(R → Gl ), hence also γ0,1 ∈ Poly(qZ → Γl ).
                                                             ′
We then see that ql+1 is the least multiple of ql for which γ0,1 mod Gl+1 ∈ Poly(ql+1 Z →
Γl Gl+1 /Gl+1 ). If we perform the Taylor expansion
                                       ′                            tk /k!
                                      γ0,1 (t) = g0 g1t . . . gk                               (126)
for g0 , . . . , gk ∈ Gl , then on setting t = 0 we conclude that g0 ∈ Γl ; also, by taking repeated
differences with spacing ql+1 , we see that for each m = 1, . . . , k we have gm       am ∈ Γ G
                                                                                               l l+1
for some positive integer am of polynomial size. Note that g1 , . . . , gm do not depend on
the choice of coset representative γ0,1 . If we let nm be the least positive integer such that
 nm qlm /m!
gm            ∈ ΓGl+1 , we see that each nm is of polynomial size and
                       ′
                      γ0,1 mod Gl+1 ∈ Poly(k!n1 . . . nk ql Z → Γl Gl+1 /Gl+1 )
and thus
                                         n1 . . . nk ql ≫ ql+1
so by (124) and the pigeonhole principle we can find m = 1, . . . , k such that
                                                        1/k 2
                                            nm ≫ q0             .                              (127)
Henceforth we fix this m. We will shortly use this large integer nm as a modulus to which
one can apply Lemma 3.12. A key technical point is that this modulus does not depend on
the tuples in T .
   Next, we claim that after removing a negligible fraction of tuples from the family T ,
we may assume that none of the p′j,i divide nm . For sake of notation let us just remove
the contribution where p′0,1 divides nm . There are O(N ) choices for I0,1          ′′ . As n
                                                                                              m is of
                             ′           ′    ′                                            ′
polynomial size and p0,1 ∈ [P , 2P ], we see that there are only O(1) choices for p0,1 . After
fixing this choice, there are at most O(π0 (P ′ )2ℓ−1 ) = O(dℓ−1/2 ) choices for the remaining
choices of p′j,4 , p′j,1 , j = 0, . . . , ℓ − 1. Then we see from (122) and the fundamental theorem
of arithmetic that there are O( N1 (P ′ )2ℓ ) = O(dℓ+o(1) /N ) choices for the p′j,3 , p′j,2 . After
making all these choices, the tuple (121) is fixed, so the total number of tuples generated
in this fashion is O(d2ℓ−1/2+o(1) /N ), which is negligible. Similarly for the cases when some
other prime p′j,i divides nm .
                     HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                                 75

   For each 0 ≤ j ≤ ℓ and i = 1, 2, let γj,i ∈ Poly(R → G) be a representative of the coset
  ′′ ∈ Γ\Poly(R → G), thus fI ′′ = Γγj,i ; for (j, i) = (0, 1) we use the same choice γ0,1 of
fIj,i                          j,i
coset representative that was made earlier. From (104) we have for all 0 ≤ j ≤ ℓ − 1 that
                                    γj,1 (p′j,2 ·) = γj γj,2 (p′j,1 ·)γj†

for some γj ∈ Γ, and some γj† ∈ Poly(Z → Γ), and similarly

                                  γj+1,1 (p′j,4 ·) = γ̃j γj,2 (p′j,3 ·)γ̃j†

for all t ∈ R and some γ̃j ∈ Γ, and some γ̃j† ∈ Poly(Z → Γ). Concatenating these estimates,
we conclude that
                                    γ0,1 (a·) = γγ0,1 (b·)γ †
for some γ ∈ Γ and γ † ∈ Poly(Z → Γ). By (125), this implies that
                                     ′            ′
                                    γ0,1 (a·) = γγ0,1 (b·)γ −1 γ̃ †
where γ̃ † ∈ Poly(ql Z → Γ). Since γ0,1 ′ (a·) and γγ ′ (b·)γ −1 both take values in G , γ̃ † does
                                                     0,1                               l
also, thus γ̃ † ∈ Poly(ql Z → Γl ). If we now project to the torus Gl /(Γl Gl+1 ), we see that
                               ′              ′
                              γ0,1 (aql n) = γ0,1 (bql n) mod Γl Gl+1
for all integers n. Using the Taylor expansion (126), we conclude on taking m divided
differences with spacing ql at the origin that
                                        m
                                   (aql )    (bql )   m
                                  gm      = gm            mod Γl Gl+1
and hence by definition of nm
                                         am = bm mod nm .
Applying Lemma 3.12, we can then bound the number #T of tuples as
                                                    !
                                  d2ℓ kω(nm )    1
                           #T ≪               +
                                  N    φ(nm ) log N
which by the divisor bound and (127) gives
                                                   d2ℓ− 1
                                          #T ≪ q0 2k2
                                                   N
which contradicts the lower bound (123) if q0 is large enough.                                     
   Note that each I1′′ appears in at most O(d) quadruples e = (I1′′ , I2′′ , p′1 , p′2 ) ∈ Q′′ . Com-
bining this observation with Propositions 4.25, 4.22, we conclude
Corollary 4.26. For all I ′′ in a large subcollection I ′′′ of I ′′ , we can find a representation
                                      F (gI ′′ Γ) = F (g̃I ′′ γI ′′ Γ)                         (128)
for some g̃I ′′ , γI ′′ ∈ Poly(R → G), and TI ′′ ∈ G of polynomial size such that
76                    MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

      (i) The map
                                                            − log(t/xI ′′ )
                                       t 7→ log(g̃I ′′ (t)TI ′′               )                         (129)
          is bounded by O(1) and has a Lipschitz norm of O(|I ′′ |−1 ) whenever htiI ′′ ≪ 1.
     (ii) There is a non-trivial horizontal character ηI ′′ : G → R/Z such that the derivative
          dηI ′′ : log G → R has operator norm O(1), and such that
                                         dηI ′′ (log TI ′′ ) = O(N ).                                   (130)
     (iii) γI ′′ ∈ Poly(qI ′′ Z → Γ) for some qI ′′ = O(1).
  Let I ′′ , g̃I ′′ , γI ′′ , TI ′′ , ηI ′′ , qI ′′ be as in the above corollary. Observe that as the number of
possible qI ′′ is bounded, we may refine the family I ′′′ of intervals in the above corollary by
a bounded factor to assume that
                                                    qI ′′ = q
is independent of I ′′ (one could also simply clear denominators here). In a similar spirit,
as ηI ′′ takes values in the lattice of horizontal characters (which one can identify with the
Pontryagin dual of the torus G/Γ[G, G]) and is a bounded distance away from the origin,
there are only finitely many choices for ηI ′′ , so we may assume that
                                                    ηI ′′ = η
is independent of I ′′ .
   Now we will be able to descend from G to the lower-dimensional nilpotent group ker(η)
as follows. Since η : G → R/Z is a homomorphism to the abelian group R/Z, it annihilates
the commutator group [G, G], and hence (by (177)) the derivative map dη : log G → R
annihilates the commutator algebra [log G, log G]. In particular, from the Baker–Campbell–
Hausdorff formula, we have
                                           
                             − log(t/xI ′′ )
           dη log g̃I ′′ (t)TI ′′               = dη(log g̃I ′′ (t)) − log(t/xI ′′ )dη(log TI ′′ ).

If we then apply dη to (129), we conclude that the map
                             t 7→ dη(log g̃I ′′ (t)) − log(t/xI ′′ )dη(log TI ′′ )
has a Lipschitz norm of O(|I ′′ |−1 ) whenever htiI ′′ ≪ 1. Combining this with (130), we see
that the map
                                             t 7→ dη(log g̃I ′′ (t))
also has a Lipschitz norm of O(|I ′′ |−1 ) in this region. From the definition of Poly(R → G),
this map is also a polynomial of degree k, with the tj coefficient lying in dη(log Gj ) for each
j ≥ 0. By the Bernstein inequality (27), we may thus write
                                                          k
                                                          X
                                   dη(log g̃I ′′ (t)) =           θj (t − xI ′′ )j
                                                          j=0
                       HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                                77

where the θj are real numbers with θj ∈ dη(log Gj ) and θj = O(|I ′′ |−j ). Lifting this
polynomial back to G, we may thus write
                                                 k
                                                 X
                              log g̃I ′′ (t) =         Xj (t − xI ′′ )j mod ker(dη)
                                                 j=0

for some Xj ∈ log Gj with Xj = O(|I ′′ |−j ). If we set
                                                        Xk
                                       εI ′′ (t) := exp(   Xj (t − xI ′′ )j )
                                                          j=0

then εI ′′ ∈ Poly(R → G) is smooth on I ′′ , and if we then define gI∗′′ : R → G to be the map
for which
                                   g̃I ′′ (t) = εI ′′ (t)gI∗′′ (t)
then from the Baker–Campbell–Hausdorff formula (176) we see that gI∗′′ ∈ Poly(R →
ker(η)) takes values in the kernel ker(η) = exp(ker(dη)) of G, which is a proper rational
normal subgroup of G. By (128), (36) we then have
                               X
                                       f (n)F (εI ′′ (n)gI∗′′ (n)γI ′′ (n)Γ) ≫ |I ′′ |.
                              n∈I ′′

Let H ∗ := c P H
               ′ P ′′ for a sufficiently small absolute constant c > 0. Then we have

                 Z           X
                                         f (n)F (εI ′′ (n)gI∗′′ (n)γI ′′ (n)Γ) dx ≫ |I ′′ |H ∗ .
                   I ′′ n∈[x,x+H ∗ ]

As εI ′′ is smooth on I ′′ , εI ′′ (n) is O(1) and varies by at most O(c) on [x, x + H ∗ ], hence by
the Lipschitz nature of F
                 Z          X
                                      f (n)F (εI ′′ (x)gI∗′′ (n)γI ′′ (n)Γ) dx ≫ |I ′′ |H ∗ .
                     I ′′ n∈[x,x+H ∗ ]

Summing over I ′′ ∈ I ′′′ , we conclude that
    Z 2X                                                     X
                            sup                                      f (n)F (εg̃(n)γ(n)Γ) dx ≫ HX
        X   ε∈E;g̃∈Poly(Z→ker(η));γ∈Poly(qZ→Γ) n∈[x,x+H]

for some compact set E ⊂ G. But this contradicts Proposition 4.4. This contradiction
(finally!) concludes the proof of Theorem 1.5.
Remark 4.27. It seems plausible that the proof of Theorem 1.5, combined with the quan-
titative work in Section 6 for lowering the value of H, would allow lowering the length of
the intervals to H ≥ exp((log X)1−δ ) for some δ > 0. We do not pursue this further here,
however, as that would further lengthen this paper. Let us note, however, that at least the
convenient notion of polynomially large elements in Lie groups used in this section would
78                MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

have to be replaced with a more cumbersome notation in the case where H is no longer
polynomially large in terms of X.

                                    5. Sign patterns
5.1. The Liouville case. Our main goal in this section is to use Theorem 1.5 to prove
Theorem 1.9, which asserts a superpolynomial lower bound on the number s(k) of sign
patterns of the Liouville function, defined in (14). We will also prove a generalization of
Theorem 1.9 to sign patterns of other multiplicative functions (Theorem 5.4), and prove
Proposition 1.7.
   Regarding Theorem 1.9, we will in fact prove a more general implication, which gives a
lower bound on s(k) whenever one has local Gowers uniformity of the Liouville function on
short intervals:
Theorem 5.1 (From local Gowers uniformity to lower bounds on sign patterns). Let 0 <
κ < 1/2. Let Ψ : R≥1 → R be a strictly increasing function with X ≤ Ψ(X) ≤ exp(X 1/2−κ )
for all large enough X. Suppose that (10) holds for H(X) = Ψ−1 (X η ) for every fixed η > 0.
Then s(k) ≥ Ψ(k) for all large enough k.
   Taking Ψ(X) = X A and applying Theorem 1.5, we see that Theorem 1.9 follows directly
from the above theorem. Furthermore, we have the following conditional corollary.
Corollary 5.2. Let ε > 0. Assuming that (10) holds with H(X) = exp((log X)1−δ ) for
                                         δ/(1−δ)−ε
some δ ∈ (0, 1), we have s(k) ≫ε k(log k)          . Further, assuming (10) with H(X) =
(log X)C for some C > 2, we have s(k) ≫ε exp(k1/C−ε ).
Remark 5.3. In the proof of Theorem 5.1 below, one may on first reading want to assume
that Ψ(X) = X A , which corresponds to H(X) = X o(1) , in which case we wish to show that
s(k) ≫A kA for all A. This simplifies various expressions involved; in particular expressions
involving Ψ are just large powers of the argument and expressions involving Ψ−1 are small
powers of the argument.
   We now begin the proof of Theorem 5.1. Fix κ > 0; we allow all implied constants to
depend on κ. Suppose for the sake of contradiction that s(m) < Ψ(m) for infinitely many
m. We will use this to show that s(k) = 2k for all k. Since Ψ(k) < 2k for all sufficiently
large k, this will give the required contradiction.
   Fix k; we now allow all implied constants to depend on k. We now select additional
parameters ε, w, m, R, x, arranged so that
                                      1
                                 k ≪ ≪ w ≪ m ≪ R ≪ x,
                                      ε
by the following scheme.
      • First, we choose ε > 0 to be a sufficiently small quantity depending on k, κ.
      • Then we choose a quantity w > 1 to be sufficiently large depending on ε, k, κ.
      • Next, we choose m to be a natural number with s(m) < Ψ(m) that is sufficiently
        large (depending on w, ε, k, κ). Such an m always exists by hypothesis.
                     HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                                       79

                                       −2                  −3
     • One then sets R := Ψ(m)ε and x := Ψ(m)ε .
By construction and the hypothesis X ≤ Ψ(X) ≤ exp(X 1/2−κ ), we have R = xε ,
                                                             3
                                       (log x)2+κ ≤ m ≤ xε ,                                          (131)
and
                                                       3
                                            s(m) < xε .                                     (132)
                                                     k
   Now suppose for contradiction that s(k) < 2 . Then by (14) there exists a sign pattern
(ε1 , . . . , εk ) ∈ {−1, +1}k which never occurs in the Liouville sequence, so in particular
                               Elog
                                n≤x 1λ(n+1)=ε1 · · · 1λ(n+k)=εk = 0.                                  (133)
                        1+ε λ(n+j)
                         j
Writing 1λ(n+j)=εj =       2         , we may expand the left-hand side of (133) as the sum of
     k
the 2 quantities of the form
        i
       ( εℓl )2−k Elog
        Y
                   n≤x λ(n + ℓ1 ) · · · λ(n + ℓi ),   where {ℓ1 , . . . , ℓi } ⊂ {1, 2, . . . , k}.
        l=1

The i = 0 term is equal to 2−k . Thus by the pigeonhole principle, there must exist 1 ≤ i ≤ k
and 1 ≤ ℓ1 < . . . < ℓi ≤ k for which the correlation
                                C := Elog
                                      n≤x λ(n + ℓ1 ) · · · λ(n + ℓi )                                 (134)
is such that
                                                 |C| ≫ 1.                                    (135)
The precise choice of i, ℓ1 , . . . , ℓi may depend on x, but this will not concern us. Henceforth
let i, ℓ1 , . . . , ℓi be chosen so that (135) holds.
                    m
   Set P := 3k        . By using the multiplicativity relation λ(pn) = −λ(n) and the fact that the
correlation C in (134) involves a logarithmic average, for all primes p ≤ 2P we deduce
                   C = (−1)i Elog
                              n≤x λ(pn + pℓ1 ) · · · λ(pn + pℓi )

                     = (−1)i Elog       ′                 ′                   3
                              n′ ≤px λ(n + pℓ1 ) · · · λ(n + pℓi )p1p|n′ + O(ε )

                     = (−1)i Elog      ′                 ′                   3
                              n′ ≤x λ(n + pℓ1 ) · · · λ(n + pℓi )p1p|n′ + O(ε ),
where the final estimate follows from (131). Hence, by averaging over p,
               C = (−1)i EP ≤p<2P Elog                                         3
                                   n≤x λ(n + pℓ1 ) · · · λ(n + pℓi )p1p|n + O(ε ).
The contribution of n ≤ R = xε to the average is trivially ≪ ε, so
               C = (−1)i EP ≤p<2P Elog
                                   R≤n≤x λ(n + pℓ1 ) · · · λ(n + pℓi )p1p|n + O(ε),                   (136)
We will shortly exploit the sign pattern bound (132) to obtain the bound
                  EP ≤p<2P Elog
                            R≤n≤x λ(n + pℓ1 ) · · · λ(n + pℓi )(p1p|n − 1) ≪ ε.                       (137)
Assuming this bound for the moment, we may then simplify (136) to
                 C = (−1)i EP ≤p<2P Elog
                                     R≤n≤x λ(n + pℓ1 ) · · · λ(n + pℓi ) + O(ε).
80                 MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

   For d ∈ [P, 2P ], the von Mangoldt function Λ(d) is equal to (1 + O(ε)) log P when d is
prime and is only nonzero (and of size O(log P )) for O(P 1/2+ε ) other values of d. Since P
is large compared to ε, we easily conclude that
            C = (−1)i EP ≤d<2P Λ(d)Elog
                                      R≤n≤x λ(n + dℓ1 ) · · · λ(n + dℓi ) + O(ε)
                                                Q
We now apply the “W -trick”. If we set W := p≤w p and split d into residue classes
b mod W , then the contribution of the non-primitive classes (b, W ) > 1 is negligible, and
we have
C = (−1)i E 1≤b≤W EP/W ≤d<2P/W ΛW,b (d)Elog
                                        R≤n≤x λ(n+(W d+b)ℓ1 ) · · · λ(n+(W d+b)ℓi )+O(ε)
            (b,W )=1
                                                                                      (138)
                       φ(W )
where ΛW,b (d) :=       W Λ(W d + b), and φ is the Euler totient function.By splitting the
average over n into intervals of length P/W and applying the Gowers uniformity of ΛW,b (d)−
1 (established in [14], [15], [17]) as in [35, Proposition 3.3], we find
     EP/W ≤d<2P/W (ΛW,b (d) − 1)Elog
                                 R≤n≤x λ(n + (W d + b)ℓ1 ) · · · λ(n + (W d + b)ℓi ) ≪ ε
for any b ∈ (Z/W Z)× (here we use the fact that P is large compared to W, ε). We conclude
that
C = (−1)i E 1≤b≤W EP/W ≤d<2P/W Elog
                                R≤n≤x λ(n + (W d + b)ℓ1 ) · · · λ(n + (W d + b)ℓi ) + O(ε),
            (b,W )=1
or equivalently
                    W
        C = (−1)i        EP ≤d<2P 1(d,W )=1 Elog
                                             R≤n≤x λ(n + dℓ1 ) · · · λ(n + dℓi ) + O(ε).
                   φ(W )
  Splitting the n sum into intervals of length m = 3kP and using the triangle inequality,
we obtain
                  W
           C≪          EP ≤d<2P Elog                 ′                  ′
                                 n≤x |En≤n′ ≤n+m λ(n + dℓ1 ) · · · λ(n + dℓi )| + ε.
                 φ(W )
Embedding [n, n + m] into a cyclic group of prime order, and applying the generalized von
Neumann theorem in the form of [14, Proposition 7.1], we have
    W
         EP ≤d<2P |En≤n′ ≤n+m λ(n′ + dℓ1 ) · · · λ(n′ + dℓi )| ≪ OW (κ(kλkU k [n,n+m] )) + ε
   φ(W )
for some bounded function κ(x) tending to 0 as x → 0, and so we conclude that
                              C ≪ OW (Elog
                                       n≤x κ(kλkU k [n,n+m] )) + ε.                    (139)
                    3
Since m = Ψ−1 (xε ), we conclude from the assumption of the theorem (and the fact that
x is sufficiently large depending on w, k, ε) that
                                            C ≪ ε,
but this contradicts (135) for ε small enough.
  To conclude the proof of Theorem 5.1, it remains to establish the bound (137). This is
reminiscent of the bounds one can establish by entropy decrement arguments as seen for
                      HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                                    81

instance in [35]; however the size of P compared to x is too large here for such methods
to apply (and furthermore these methods need to exclude an exceptional set of bad scales
P ). The key observation is that one can instead exploit the small number (132) of sign
patterns of length m = 3kP to obtain a strong estimate via the moment method. Firstly,
by approximate translation invariance we can write
                      EP ≤p<2P Elog
                                R≤n≤x λ(n + pℓ1 ) · · · λ(n + pℓi )(p1p|n − 1)
as
           EP ≤p<2P Elog
                     R≤n≤x λ(n + j + pℓ1 ) · · · λ(n + j + pℓi )(p1p|n+j − 1) + O(ε)
for any 1 ≤ j ≤ P , thus on averaging we may also write it as
        Elog
         R≤n≤x EP ≤p<2P Ej≤P λ(n + j + pℓ1 ) · · · λ(n + j + pℓi )(p1p|n+j − 1) + O(ε).
Thus by the triangle inequality, it suffices to show that
        Elog
         R≤n≤x EP ≤p<2P Ej≤P λ(n + j + pℓ1 ) · · · λ(n + j + pℓi )(p1p|n+j − 1) ≪ ε.

By the triangle inequality, the quantity inside the absolute values is bounded by O(1). Thus
it will suffice to establish the probability bound
      Plog
                                                                                  
        R≤n≤x EP ≤p<2P Ej≤P λ(n + j + pℓ1 ) · · · λ(n + j + pℓi )(p1p|n+j − 1) ≥ ε ≪ ε

where Plog           log
       R≤n≤x (A) := ER≤n≤x 1A (n) is the probability measure associated to the averaging
operator Elog R≤n≤x .
  Observe that the numbers n + j + pℓl that appear in this expression all lie in the interval
                                                          3
{n + 1, . . . , n + m}. By (132), there are at most xε possible choices for the sign pattern
(λ(n + 1), . . . , λ(n + m)). Thus, by the union bound, it will suffice to show that
                                                                                −ε3
               Plog
                                                                          
                 R≤n≤x EP ≤p<2P Ej≤P aj+pℓ1 · · · aj+pℓi (p1p|n+j − 1) ≥ ε ≪ εx         (140)
for each choice of sign pattern (a1 , . . . , am ) ∈ {−1, +1}m .
                                                                               2
   Fix a1 , . . . , am . Let 2r be the largest even integer such that P 2r ≤ xε . From (131) and
the definition P = m/(3k) we observe the estimates
                                   1          log x        log x
                                     ≪ r ≍ ε2       ≪ ε2           .                                (141)
                                   ε          log P      log log x
From Markov’s inequality we may bound the left-hand side of (140) by
                                                                                         2r
                  ε−2r Elog
                        R≤n≤x EP ≤p<2P Ej≤P aj+pℓ1 · · · aj+pℓi (p1p|n+j − 1)

which by expanding out the 2r th power and applying the triangle inequality is bounded by
             ε−2r EP ≤p1,...,p2r <2P Ej1 ,...,j2r ≤P |Elog
                                                       R≤n≤x ξp1 (n + j1 ) . . . ξp2r (n + j2r )|
                                                                             3
where ξp (n) := p1p|n − 1. From (141) we have ε2r+1 ≫ x−ε , so it will thus suffice to
establish the estimate
                                                                                               3
       EP ≤p1 ,...,p2r <2P Ej1 ,...,j2r ≤P |Elog
                                             R≤n≤x ξp1 (n + j1 ) . . . ξp2r (n + j2r )| ≪ x
                                                                                            −2ε
                                                                                                .   (142)
82                     MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

For any given p1 , . . . , p2r , j1 , . . . , j2r , the function n 7→ ξp1 (n + j1 ) . . . ξp2r (n + j2r ) is periodic
of period Q := p1 . . . p2r and has magnitude at most Q. We have
                                                                                                              Q2
                                                                                                                   
  log                                                log
ER≤n≤x ξp1 (n+j1 ) . . . ξp2r (n+j2r ) = ER≤n≤x ξp1 (n+h+j1 ) . . . ξp2r (n+h+j2r )+O
                                                                                                            R log x
for any 1 ≤ h ≤ Q. Averaging in h and using the periodicity, we conclude that
                                                                                                             Q2
                                                                                                                    
 Elog
  R≤n≤x ξp1 (n + j1 ) . . . ξp2r (n + j2r ) = En∈Z/QZ ξp1 (n + j1 ) . . . ξp2r (n + j2r ) + O              R log x
where we view ξp1 , . . . , ξp2r as functions on Z/QZ in the obvious fashion. Since
                                                                   2        2
                                      Q2 ≤ (2P )4r ≤ 24r x2ε ≪ x3ε

(by (141)) and R = xε , we see that the Q2 /(R log x) error is negligible. Thus it will suffice
to show that
                                                                                                   3
        EP ≤p1,...,p2r <2P Ej1 ,...,j2r ≤P |En∈Z/QZ ξp1 (n + j1 ) . . . ξp2r (n + j2r )| ≪ x−2ε .              (143)

If one of the primes pi is distinct from all the others, then the inner average En∈Z/QZ ξp1 (n +
j1 ) . . . ξp2r (n+j2r ) vanishes from the Chinese remainder theorem, since ξpi (n+ji ) is periodic
with mean zero with period pi , and all other factors have period coprime to pi . Thus we
may restrict attention to those tuples (p1 , . . . , p2r ) in which each prime pi appears at least
twice, hence there are at most r distinct primes in this tuple. The number of such tuples
can then be bounded crudely by O(r 2 π0 (P ))r , by first selecting r primes in [P, 2P ] (for
which there are O(π0 (P ))r choices), and then assigning each p1 , . . . , p2r to one of these
primes (for which there are r 2r choices). Thus the proportion of such tuples amongst all
primes P ≤ p1 , . . . , p2r < 2P is O(r 2 π0 (P )−1 )r . If (p1 , . . . , p2r ) is such a tuple, then from
the triangle inequality one has

                         Ej1 ,...,j2r ≤P |En∈Z/QZ ξp1 (n + j1 ) . . . ξp2r (n + j2r )|
                         ≤ En∈Z/QZ Ej1 ,...,j2r ≤P |ξp1 (n + j1 )| . . . |ξp2r (n + j2r )|
                                        2r
                                        Y
                         = En∈Z/QZ            Ej≤P |ξpi (n + j)|
                                        i=1
                         ≤ O(1)r

since Ej≤P |ξpi (n + j)| ≪ 1 for any i. Thus we can bound the left-hand side of (143) by
O(r 2 π0 (P )−1 )r . But from (141), (131) we have r 2 π0 (P )−1 ≪ P −c for some c > 0 depending
                                                                   ′ 2
only on κ, hence by (141) the left-hand side of (143) is O(x−c ε ) for some c′ > 0 depending
on κ, and the claim follows. This concludes the proof of Theorem 5.1.

5.2. Generalization to other multiplicative functions. The above proof can be gen-
eralized to produce a result about patterns in more general multiplicative functions.
                      HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                                    83

Theorem 5.4. Let g : N → µℓ be a multiplicative function taking values in the roots of
                                                      X→∞
unity of order ℓ ≥ 2, and suppose that D(g j , χ; X) −−−−→ ∞ for all Dirichlet characters χ
and for all 1 ≤ j ≤ ℓ − 1. Then the number
               sg (k) := {v ∈ µkℓ : v = (g(n + 1), . . . , g(n + k)) for some n ∈ N}
of value patterns of g of length k satisfies sg (k) ≫A kA .
  We remark that a similar result holds (with essentially the same proof) for any 1-bounded
                                                                                       X→∞
multiplicative function g : N → C such that inf |t|≤X k+1 D(g j , χ(n)nit ; X) −−−−→ ∞ for all
j ≥ 1. In this case, the “sign patterns” would be defined as occurrences of a pattern
(g(n + 1), . . . , g(n + k)) ∈ I1 × · · · × Ik , where Ii are arcs of the unit circle of the form
[e(mi /ℓ), e((mi + 1)/ℓ)] with 0 ≤ mi ≤ ℓ − 1. We leave the details of this generalization to
the interested reader.
Proof. (Sketch) The proof follows along similar lines as that of Theorem 5.1. We assume
for the sake of contradiction that sg (m) ≤ mA for infinitely many m and aim to deduce
that
                           C := Elog  a1                aj
                                 n≤x g (n + ℓ1 ) · · · g (n + ℓj ) = o(1)                          (144)
for any nonempty set {ℓ1 , . . . , ℓj } ⊂ {1, 2, . . . , k} with the ℓi distinct, and for any integers
a1 , . . . , aj ∈ [1, ℓ − 1]. Once we have proved (144), we use the expansion
                                                    ℓ−1
                                                   1X          aj
                                  1g(n)=e(a/ℓ) =      g(n)j e(− )
                                                   ℓ            ℓ
                                                    j=0

for the indicator functions of the level sets to obtain sg (k) = ℓk for any k, which gives the
desired contradiction.
   The main difficulty20 is that the factor (−1)i that appeared in the proof of Theorem 5.1
must now be replaced by g(p)−a1 −···−aj . One can still repeat the proof of Theorem 5.1 with
obvious modifications down to (138), where the right-hand side is now up to O(ε) equal to
E 1≤b≤W EP/W ≤d<2P/W g(d)−a1 −···−aj ΛW,b (d)Elog    a1                     aj
                                              R≤n≤x g (n+(W d+b)ℓ1 ) · · · g (n+(W d+b)ℓj ).
 (b,W )=1

The weight g(d)−a1 −···−aj now prevents one from applying the Gowers uniformity theory
for the von Mangoldt function [14], [15], [17]. However, the function g(d)−a1 −···−aj ΛW,b (d)
is still dominated pointwise by ΛW,b (d), which is a pseudorandom majorant in the sense
of [14]. One can then apply the generalized von Neumann theorem (essentially in the form
of [14, Proposition 7.1]), and reduce matters to showing that
                                    Elog   j
                                     n≤x kg kU k−1 [n,n+m] = o(1)

   20A much more minor diﬃculty is that g is now only assumed to be multiplicative rather than completely
multiplicative, so that the identity g(n) = g(p)−1 g(pn) only holds when n is not divisible by p. However,
as we will be working with moderately large primes p, the contribution of those n which are divisible by p
can easily be seen to be negligible.
84                 MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

whenever 1 ≤ j ≤ ℓ − 1 and m ≫ xθ for some θ > 0. This Gowers norm bound then follows
from Theorem 1.5, once we show that M (f ; xk+1 , Q) → ∞ as x → ∞ for any given k and
Q. By [21, Lemma 3.1] (which is a pretentious triangle inequality argument), and the fact
that D(f, g; x) = D(f, g; xk+1 ) + Ok (1), we have
                                                 1
M (g; xk+1 , Q) ≥ inf D(gχ, n 7→ nit ; x) ≥        min{(log log x)1/2 , D(gχ, 1; x)} − Ok,Q (1),
                  χ mod q                      2kQ
                     q≤Q
                  |t|≤xk+1

and the right-hand side is tending to infinity with x by assumption. This completes the
proof.                                                                               
5.3. Uniformity at very small scales. We now give a proof of Proposition 1.7 that states
that the estimate (11) at scale H = (log x)η is enough to deduce the logarithmic Chowla
conjecture (and hence in fact (11) for any H = H(X) tending to infinity, thanks to the
results in [35]).
Proof of Proposition 1.7. Let k be a natural number, and let be h1 , . . . , hk given shifts. Let
x be large enough, and denote the correlation along these shifts by
                              C := Elog
                                    n≤x λ(n + h1 ) · · · λ(n + hk ).
For any fixed ε > 0, we wish to show that |C| ≪ ε. We begin by applying the entropy
decrement argument in the slightly refined form given in [36, Theorem 3.1] P (the original
                                                                                   1
argument from [34] is able to locate a good scale on any interval I with m∈I m log   m ≫
 −10
                                                                               P     1
ε , whereas the refined one is able to locate a good scale on any interval with m∈I m   ≫
 −10
ε ).
  By [36, Theorem 3.1], we deduce that
                C = (−1)k E2m ≤p≤2m+1 Elog
                                       n≤x λ(n + ph1 ) · · · λ(n + phk ) + O(ε)            (145)
for all m ≤ log log X outside of an exceptional set M ⊂ [1, log log x] ∩ N with
                                       X 1
                                              ≪ ε−3 .
                                            m
                                        m∈M

In particular, we can locate some m with the property (145) belonging to the range m ∈
               1                                                          ′
[ε′ log log x, 10 log log x] with ε′ := exp(−ε−10 ). Let P = 2m ≥ (log x)ε /2 , where m has this
value. Then, by introducing the von Mangoldt weight, we have
               C = (−1)k EP ≤d≤2P Λ(d)Elog
                                       n≤x λ(n + dh1 ) · · · λ(n + dhk ) + O(ε)
As in the proof of Theorem 5.1, we may split d into residue classes (mod W ) with W =
Q
  p≤w p and w = w(x) tending to infinity slowly enough, and then apply the Gowers
uniformity of the W -tricked von Mangoldt function and the generalized von Neumann
theorem (as in [36, Section 5]) to conclude that
                      W
         C = (−1)k        EP ≤d≤2P 1(d,W )=1 Elog
                                              n≤x λ(n + dh1 ) · · · λ(n + dhk ) + O(ε).
                    φ(W )
                        HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                                            85

Arguing as in the proof of (139), we have
                                 C ≪ OW (Elog
                                          n≤x κ(kλkU k [n,n+3kP ] )) + ε.

Since P ≥ (log x)η where η = ε′ /2, the hypothesis of the theorem will then give C = O(ε)
if we assume x sufficiently large depending on w.                                      

                           6. Reducing the length of the intervals
  In this section we indicate the changes needed to the proof of Theorem 1.1 to obtain
Theorem 1.8. Up to Proposition 3.7 (corresponding to the work up to [26, Section 4]),
everything works for smaller H as well, except in the statement of Proposition 3.6 the
                                2
range for P ′ , P ′′ is now [H ε /2 , H ε ].
  To proceed, we will need the following variant of Lemma 3.12 in which the implied
constants do not depend on the number of primes in the product. Crude bounds suffice
here and stronger bounds would not be useful as we in any case lose factors like ℓ! in our
arguments.
Lemma 6.1 (Counting nearby products of primes). Let m, ℓ, q ∈ N and P ′ , N ≥ 3. Then
the number of 2ℓ-tuples (p′1,1 , . . . , p′1,ℓ , p′2,1 , . . . , p′2,ℓ ) of primes in [P ′ , 2P ′ ] obeying the con-
ditions
                                    ℓ                ℓ
                                  Y
                                          ′
                                                    Y                       (2P ′ )ℓ
                                         p2,j −           p′1,j ≤ C ·
                                                                              N
                                      j=1          j=1
and
                                      ℓ
                                      Y                  ℓ
                                                         Y
                                          (p′2,j )m =        (p′1,j )m mod q
                                      j=1                j=1
for some C ≥ 1 is bounded by
                                                                    (2P ′ )ℓ
                                                                              
                                            2     ′ ℓ    ω(q)
                                   ≪ Cℓ! (2P ) m                             +1 .
                                                                      Nq
Proof. Since every integer has at most ℓ! representations as a product of ℓ primes, the
number of prime tuples we need to count is at most ℓ!2 times the number of integers
n1 , n2 ≤ (2P ′ )ℓ for which
                                            (2P ′ )ℓ
                        |n1 − n2 | ≤ C ·                   and          nm    m
                                                                         1 = n2 mod q.
                                              N
The claim follows by noticing that there are (2P ′ )ℓ choices for n1 , and after fixing it, there
are at most mω(q) choices for n2 mod q.                                                        

   Let us now get back to Proposition 3.7 corresponding to [26, Proposition 4.1]. In our
setting we obtain the following variant, where we for simplicity restrict to the case ℓ1 =
ℓ2 = ℓ and a single quadruple ~a corresponding to each e ∈ Q as this is sufficient for the
polynomial phase case.
86                     MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

Proposition 6.2 (Local structure of φ′′ ). Let the hypotheses be as in Theorem 1.8, and let
                                                                                            2
ε, X, P ′ , P ′′ , I ′′ , φ′′I ′′ , Q be as in Proposition 3.6 (except now P ′ , P ′′ ∈ [H ε /2 , H ε ]). Let ℓ be
an even integer such that
                                                N 2 d10 ≤ dℓ = O(N O(1) ).                                  (146)
We allow implied constants to depend on ε, η and θ. There exists a constant c = c(ε, η, θ)
such that, for a subset Q′ of the quadruples e = (I1′′ , I2′′ , p′1 , p′2 ) in Q of cardinality ≫ cℓ dN ,
one can find a quadruple ~a = (a1 , a2 , b1 , b2 ) of natural numbers, and a collection Pe of
primes in [P ′′ /2, P ′′ ] with |Pe | ≫ (log X)−10ℓ π0 (P ′ ), with the following properties:
     (i) One has
                                                 1                  1
                                                  ′ ◦ φ′′I ′′ ∼ Q1     ◦ φ′′I ′′ .                          (147)
                                                p2        1      Pe p′       2
                                                                     1
    (ii) For i = 1, 2, ai , bi are products of ℓi primes in [P ′ , 2P ′ ]; in particular
                                          (P ′ )ℓ ≤ ai , bi ≤ (2P ′ )ℓ .                                   (148)
          Furthermore we have
                                                              Cℓ
                                            0 6= ai − bi ≪       ai ,                                      (149)
                                                              N
           where C is an absolute constant.
     (iii) For i = 1, 2, we have the approximate dilation invariance
                                     1                    1
                                        ◦ φ′′I ′′ ∼ Q 1      ◦ φ′′I ′′ .                                   (150)
                                     ai       i         a bi
                                                     Pe,~          i

          Here (abusing the notation) the implied constants depend linearly on ℓ.
Sketch of proof. The proof is very similar to the proofs of Propositions 3.7 and [26, Proposi-
tion 4.1]: One makes two cycles of length ℓ joined by a "middle edge". The main difference
is that now ℓ ≍ (log x)1−θ , so ℓ is no longer a constant.
   Since the number of edges in the graph is ≫ X         ′2        ′ 2
                                                    H P /(log P ) , the number of such constel-
lations gets reduced by a factor c′ℓ (with certain constant c′ ∈ (0, 1)). Hence the Cauchy-
Schwarz argument at the end naturally only gives us ≫ c′ℓ X/H · π0 (P ′ )2 middle edges.21
Since P ′ is larger than (cℓ log P ′ )O(ℓ) , Lemma 6.1 is sufficient to show that degenerate cases
involving repeating primes or products are negligible as before.
   Since the constellation involves 2ℓ + 1 edges, the intersection
                                                      k \
                           →
                           −′′        ′′     ′′
                                                      \
                                                              ′′     ′′
                         P(I ) := P({I0,1 , I0,2 }) ∩     P({Ij,i , Ij+1,i })
                                                          j=1 i=1,2

that appears in [26, (52)] is now expected to be only of size cℓ π0 (P ′ ) for some constant c > 0,
so δ in [26, (52))] cannot anymore be taken to be a constant but can be at most cℓ . In fact
to compensate for losses in Lemma 6.1 we choose δ in [26, (52))] to be (log X)−10ℓ . Then in
the argument below [26, (52))] the number of candidate tuples is at most ℓ!4 P ′4ℓ+1 /N and
     21This might be ﬁxable through arguing more carefully removing some edges before running the argument
but this would be of no importance.
                    HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                           87

so the expected number of good tuples obeying [26, (52))] is ≪ (log X)−10ℓ ℓ!4 P ′4ℓ+1 /N ≪
(log X)−ℓ d2ℓ+1 /N whereas with probability ≫ 1, there are ≫ cℓ d2ℓ+1 /N non-degenerate
good tuples. Hence one can indeed find a deterministic choice of p such that there are
≫ cℓ d2ℓ+1 /N very good tuples, i.e. tuples for which

                                   −
                                   →
                                #P(I ′′ ) > (log X)−10ℓ π0 (P ′ )

as desired.                                                                                 

  Lowering H does not affect solving the approximate dilation invariance in Proposition 3.8,
                                                     (j)
except that the bounds for T and the smoothness of εi (t) get worsened by C ℓ for a constant
             −
             →′′
C. Since P(I ) now of size ≫ (log X)−10ℓ π0 (P ′ ), we now need to take K ≫ (log X)10ℓ in
Proposition 3.9, so in Corollary 3.10 we now have #F(I ′′ ) ≪ (log X)10ℓ . Proposition 3.11
works without changes but now it provides only ≫ cℓ X/Hπ0 (P ′ )2 pairs (I1′′ , I2′′ ).
  To proceed, we need an adequate version of the mixing lemma:
Lemma 6.3 (Mixing lemma). Let X, V ≥ 3, 2 ≤ P ≤ H. Let A1 , A2 be two (X, H)-families
of intervals. Write
                                                              
                                           X                  
                    V = ξ ∈ [−X/H, X/H] :       p2πiξ ≥ P V −1 .
                                                              
                                                      P ≤p≤2P

Then the number of quadruplets (J1 , J2 , p1 , p2 ) with J1 ∈ A1 , J2 ∈ A2 , p1 , p2 primes in
[P, 2P ], and I1 lying within 100H of pp12 I2 is
                                                2
                                   H        P
                ≪ |V|(#A1 )(#A2 )                   + (#A1 )1/2 (#A2 )1/2 P 2 V −2 .     (151)
                                   X log P
Proof. As in [26, Proof of Lemma 5.1], the number of quadruplets in question is bounded
by
                              H
                                Z
                            ≪           |S1 (ξ)||S2 (ξ)||T (ξ)|2 dξ                (152)
                              X |ξ|≤ X
                                        H


where
                                               X
                                   Si (ξ) :=          e(ξ log xI )
                                               I∈Ai

for i = 1, 2 and
                                                 X
                                    T (ξ) :=              p2πiξ .                       (153)
                                               P ≤p≤2P
88                  MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

  Splitting the integral in (152) according to whether ξ ∈ V, we obtain that (152) is at
most
 H                                 H
                                            Z
   |V| sup |S1 (ξ)S2 (ξ)T (ξ)2 | + P 2 V −2         |S1 (ξ)||S2 (ξ)| dξ
 X     |ξ|∈V                       X              X
                                             |ξ|≤ H
                                 2                                                           !1/2
     H                       P        H 2 −2
                                                    Z                    Z
 ≪ |V|(#A1 )(#A2 )                   + P V                  |S1 (ξ)|2 dξ          |S2 (ξ)|2 dξ      .
     X                     log P      X              |ξ|≤ X
                                                                           |ξ|≤ X
                                                            H                  H

From the large sieve inequality (see e.g. [26, Lemma 2.3]) we have
                                                        X
                                 Z
                                         |Si (ξ)|2 ≪ #Ai ,                                     (154)
                                  |ξ|≤ X                H
                                         H

and the claim follows.                                                                            
   Note that the size of V above is at most twice the size of the maximal one-spaced subset
of V (meaning a set where any two points are at least one apart). The needed bound for
|V| in our situation is provided by the following lemma. The requirement θ > 5/8 comes
from it as for smaller θ we do not know how to obtain |V| = P o(1) .

Lemma 6.4. Let θ ∈ (5/8, 1) be fixed, H = exp((log X)θ ) and P = exp(ε(log X)θ ) for
some ε > 0, and let V = (log X)100ℓ , where ℓ ≍ (log X)1−θ . Let U be a set of one-spaced
points ξ ∈ [−X/H, X/H] for which
                                  X
                                       p2πiξ ≥ P V −1 .
                                        p∼P

Then, for some ε′ > 0, we have
                                                        ′
                                #U ≪ exp((log X)θ−ε ) = P o(1) .
Remark 6.5. From the proof of Lemma 6.4, it will be clear that the larger θ > 5/8 is,
the better the bound we can obtain on #U . In fact, for θ = 2/3 + ε the Vinogradov–
Korobov bound (see [22, Lemma 2]) directly gives U ⊂ [−V 2 , V 2 ], so that #U ≪ V 2 ≪
                 2
exp((log X)1−θ+ε ), say. Nevertheless, here the main interest is in the smallest value of θ
                               ′
for which #U ≪ exp((log X)θ−ε ) holds, so this aspect is not optimized.

                                                        Pwhich is a variant of the Halász–
Proof. Let T (χ) be as in (153). We apply [24, Lemma 4.4],
Montgomery estimate that uses Vinogradov’s bound on P ≤n≤2P nit as an input (see also
Lemma 6.6 below with q = 1). This gives that uniformly for η ∈ (0, 1) and integers k ≥ 0
we have
       P 2k    X                                3/2
                                                                              
 #U ·         ≪      |T (ξ)|2k ≪ (2P )k + #U · X 5η (log X)2/3 · (2P )k(1−η/4) k! · (2P )k .
        V
                   t∈U
                                                                                               (155)
This means that we have the bound
                                          #U ≪ (4kV )2k
                            HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                          89

                3/2
whenever X 5η         (log X)3/2 k2k P k(2−η/4) = o((P/V )2k ). The latter holds whenever
                      3/2
              X 5η          k2k · exp(k(log X)1−θ (log log X)2 ) = o(exp( 4ε ηk(log X)θ )),
which in turn follows from
              5η 3/2 log X + 2k log k + k(log X)1−θ (log log X)2 < 5ε ηk(log X)θ .
This holds (assuming already k = (log X)O(1) and letting δ be a small positive constant) if
                               
                                       1/2      1−θ+δ
                               k ≥ η (log X)
                               
                                 η ≥ (log X)−θ+δ
                                 η ≥ (log X)1−2θ+δ .
                               
                               

For θ < 1, the third condition is more demanding than the second and thus we can set
η = (log X)1−2θ+δ and k = (log X)3/2−2θ+2δ . With these choices the first term dominates
in (155) and we obtain the upper bound
                      #U ≪ (4kV )2k ≪ (log X)300ℓk ≪ exp((log X)5/2−3θ+3δ )
The claim follows as 5/2 − 3θ < θ since θ > 5/8.                                                   
   Now this leads to approximate ergodicity [26, Corollary 5.2] except that now we have
either
                                     M K3
                                            ≫ (log X)100ℓ
                                       δ
or a collection T as in [26, Corollary 5.2] but with
                                                          δ X
                                     #T ≫ exp(−(log X)θ−ε )     .                      (156)
                                                       M K3 H
We can apply this with δ = cℓ , K ≍ (log X)10ℓ , M = 100 and r = 1/10 to get conclusions
between Proposition 3.11 and Lemma 3.12, except that now have the weaker lower bound
#T ≫ exp(−(log X)θ−ε )X/H.
   As for the analogue of Proposition 3.13, we can use the same argument as in its proof
to obtain upper and lower bounds for the number of certain tuples (Q0 , . . . , Qℓ−1 ) ∈ T ℓ :
The lower bound we get is ≫ cℓ dℓ (with d := (P ′ / log P ′ )2 ) and the upper bound (from
Lemma 6.1) is                                                !
                                  2   ′ ℓ ω(q)   (2P ′ )ℓ
                             ≪ ℓ! (2P ) k         1/k
                                                          +1
                                                 q0 N
Combining the lower and upper bounds, we obtain q0 ≪ (log X)O(ℓ) .
  Now, repeating the arguments after Proposition 3.13, we see that there are at least
≫ exp(−(log X)θ−ε )X/(P ′ P ′′ ) integers X/(2P ′ P ′′ ) ≤ x ≤ X/(P ′ P ′′ ) for which
                                 X
                                        f (n)n−iT e(−γ(n)) ≫ H ∗                       (157)
                                    n∈[x,x+H ∗ ]
                                                   Pk        t/q0
with H ∗ := C −ℓ H/(P ′ P ′′ ) and γ(t) =
                                                                    
                                                    j=0 cj     j        , where cj are integers.
90                    MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

   Now we will obtain a contradiction as in Section 3, except due to worse bounds for
T ∗ and q0 we need to use results from [24] where one obtains a polynomial saving in the
exceptional set for averages of multiplicative functions in short intervals (in the special case
f = λ and θ = 2/3 + ε arguments of [23] actually suffice — see Remark 6.7 below). Also
since q0 is not bounded, we need to treat the q-aspect non-trivially.
   As in [23, 24] we first restrict n to a set of numbers with factors of convenient sizes. For
this, let δ be small in terms of the implied constant above and define S as in [24, Proof of
Theorem 1.7 in Section 11], i.e. choose in [24, Section 9] the parameters η = 1/150, ν1 =
                                              δ/4                                         √
δ2 /4000, ν2 = 1/10, Q1 = H ∗ and P1 = Q1 , so that J = 1, P2 = X ν1 , Q2 = P3 = X ν1 ν2
and Q3 = X ν2 and S consists of numbers with a prime factor on each interval (Pj , Qj ] with
j = 1, 2, 3.
   Using the linear sieve (cf. [24, Proof of Theorem 1.7 in Section 11]), we see that n 6∈ S
make a negligible contribution of
                                                 X log Pi
                                           H∗             ≪ δH ∗ ,
                                                   log Qi
                                                1≤i≤3

to (157) and so we have ≫ exp(−(log X)θ−ε )X/(P ′ P ′′ ) integers X/(2P ′ P ′′ ) ≤ x ≤ X/(P ′ P ′′ )
for which
                              X
                                    f (n)n−iT e(−γ(n)) ≫ H ∗ .
                                  n∈[x,x+H ∗ ]
                                     n∈S

  Splitting into residue classes a mod q0 and then splitting according to q2 = gcd(a, q0 ),
we see that
                 X         X                     X
                                 e(−γ(bq2 ))               f (n)n−iT ≫ H ∗
               q2 : q0 =q1 q2 b mod q1                          n∈S
                               (b,q1 )=1                n∈[x/q2 ,(x+H ∗ )/q2 ]
                                                           n=b mod q1

for ≫ exp(−(log X)θ−ε )X/(P ′ P ′′ ) integers X/(2P ′ P ′′ ) ≤ x ≤ X/(P ′ P ′′ ). This implies that
for some choice of q0 = q1 q2 , we have
                        X                               X                           φ(q1 ) ∗
                                  e(−γ(bq2 ))                       f (n)n−iT ≫           H
                                                                                    q1 q2
                      b mod q1                        n∈S
                      (b,q1 )=1                  n∈[x,x+H ∗ /q2 ]
                                                  n=b mod q1

for ≫ exp(−(log X)θ−ε )X/(q2 P ′ P ′′ ) integers X/(2q2 P ′ P ′′ ) ≤ x ≤ X/(q2 P ′ P ′′ ). Moving
into characters, the left-hand side is at most
             1        X            X                                      X
                                           e(−γ(bq2 ))χ(b) ·                            f (n)χ(n)n−iT .
           φ(q1 )
                    χ mod q1 b mod q1                                     n∈S
                             (b,q1 )=1                               n∈[x,x+H ∗ /q2 ]
                        HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                                               91

Recall that γ is a polynomial phase of degree k. By [5, Corollary 1.1] and the Chinese
reminder theorem we have, for every χ,
                                                     1−1/(k+1)
                          X
                                e(−γ(bq2 ))χ(b) = O(q1         ),                (158)
                                 b mod q1
                                 (a,q1 )=1

so that
                                                                              1/(k+2)
                             X           X
                                                      f (n)χ(n)n−iT ≫ q1                H ∗ /q2                 (159)
                       χ mod q1         n∈S
                                   n∈[x,x+H ∗ /q2 ]

for ≫ exp(−(log X)θ−ε )X/(q2 P ′ P ′′ ) integers X/(2q2 P ′ P ′′ ) ≤ x ≤ X/(q2 P ′ P ′′ ).
   Now, if q1 ≤ Q for a constant Q ≪k,η,θ,ρ 1 to be determined later, we have, for some χ
(mod q1 ),           X           X
                                             f (n)χ(n)n−iT ≫k,η,θ,ρ H ∗ /q2
                        χ mod q1         n∈S
                                    n∈[x,x+H ∗ /q2 ]

for ≫ exp(−(log X)θ−ε )X/(q2 P ′ P ′′ ) integers X/(2q2 P ′ P ′′ ) ≤ x ≤ X/(q2 P ′ P ′′ ). By [24,
Theorem 9.2(i)] this implies that
                             X
                                    f (n)χ(n)n−iT +it0 ≫k,η,θ,ρ X,
                                   n∈S
                                  X<n≤2X

for some |t0 | ≤ X, which in turn by inclusion-exclusion and Halász’s theorem implies (13)
since |T | ≤ C ℓ (X/H)k+1 ≤ X k+1 /H k+1−ρ/2 .
   Let us now turn to the case q1 ≥ Q. The proof of [24, Proposition 8.3] (taking V1 = ∅ in
the proof of [24, Proposition 8.3] and bounding RC (1 + it) trivially) gives
                                                                     
    1         X
                                 −iT           ∗                 1
                      f (n)χ(n)n     = A(x, H /q2 , U ) + O
 H ∗ /q2                                                      H ∗ /q2
               n∈S
          n∈[x,x+H ∗ /q2 ]
                  X            X                              X              X                              1/2 
        +O                             |Q3,A (χ, 1 + it)|2                              |Q2,B (χ, 1 + it)|2         ,
                    A=2j   t∈W ∗ (χ)                             B=2j   t∈W ∗ (χ)
                P3 /2≤A≤Q3                                   P2 /2≤B≤Q2
                                                                                                                (160)
where
                                                                                        3
                       W ∗ (χ) ⊂ {|t| ≤ X : max |Q2,B (χ, 1 + it)| ≥ X −ν1 /320 }
                                                      B
is one-spaced,
                                                            X        χ(p)
                                        Qj,D (χ, s) :=                    ,
                                                                      ps
                                                          D<p≤2D
                                                          Pj <p≤Qj
and A(x, H ∗ /q2 , U ) satisfies [24, (46)].
  As in [24, Proof of Theorem 9.2(ii)] with same choices of U and dn , we have |A(x, H ∗ /q2 , U )|
≪ H ∗ −δ/5000 except for ≪ XH ∗ −δ/5000 values X/(2q1 P ′ P ′′ ) ≤ x ≤ X/(q1 P ′ P ′′ ). Summing
92                     MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

over χ mod q1 and taking the union bound, the contribution from A(x, H ∗ /q2 , U ) is accept-
able.
  Given all this, (159) implies that
      X X X                                X X X
                       |Q3,A (χ, 1 + it)|2               |Q2,B (χ, 1 + it)|2 ≫ Q2/(k+2)
     χ mod q1 A t∈W ∗ (χ)                           χ mod q1 B t∈W ∗ (χ)
                                                                                     (161)
In [24] this sort of term with q1 = 1 is dealt with using [24, Lemma 4.4] which is a large
values result of Halász –Montgomery type that uses Ford’s bound (see [8, Theorem 1])
                                          9         3/2
                  |ζ(σ + it)| ≪ 1 + |t| 2 (1−σ)
                                           (log(|t| + 2))2/3 for 1/2 ≤ σ ≤ 1.
               pointed out by Ford, L(s, χ) = q −s qm=1 χ(m)ζ(s, m/q), where ζ(s, u) =
                                                     P
P∞ζ(s). As −s
for
   n=0 (n + u)   is the Hurwitz zeta function, so that [8, Theorem 1] also gives
                                      9       3/2           q 1−σ
           |L(σ + it, χ)| ≪ q 1−σ |t| 2 (1−σ)       (log(|t| + 2))2/3 +
                                                                   for 1/2 ≤ σ < 1.
                                                            1−σ
Using this in the proof of [24, Lemma 4.4], we get the following variant.
Lemma 6.6. Let T ≥ 3 q ≥ 1 and let T be a set of pairs (χ, t), where χ is a Dirichlet
character modPq and t ∈ [−T, T ] such that if (χ, t1 ), (χ, t2 ) ∈ T , then |t1 − t2 | ≥ 1.
                                       it                                             2
Let P (s, χ) =       N <p≤2N a(p)χ(p)p be a Dirichlet polynomial of length N ≤ T whose
                                                           ′
coefficients are supported on primes. Then, for any ε , η ∈ (0, 1/2),
  X                       N                 9 3/2                             ′
                                                                                   X
        |P (χ, it)|2 ≪ε′        +|T |·(q η T 2 η (log T )2/3 +q η /η)·N 1−η(1−ε )      |a(p)|2 .
                          log N
(χ,t)∈T                                                                          N <p≤2N

     Using this and arguing as in [24, Proof of Proposition 8.3], we obtain
           X X X                                X X X
                            |Q3,A (χ, 1 + it)|2                   |Q2,B (χ, 1 + it)|2 ≪ 1
          χ mod q1 A t∈W ∗ (χ)                            χ mod q1 B t∈W ∗ (χ)

which contradicts (161) once the constant Q is large enough. Hence Theorem 1.8 follows.
Remark 6.7. We remark that the special case f = λ of Theorem 1.8 with the weaker value
θ = 2/3 + ε can be proved more simply by relying only on [22] as follows. Firstly note that,
                                                                                   2
by Remark 6.5, we can replace exp(−(log X)θ−ε ) with exp(−(log X)1−θ−ε ) in (156) and
on later occurrences. Note also that in this case q1 , q2 ≪ exp((log X)1/3−ε/2 ).
                                                                                       2
   We must then show that (159) with f = λ cannot hold for ≫ exp(−(log X)1−θ−ε )X/(q2 P ′ P ′′ )
integers X/(2q2 P ′ P ′′ ) ≤ x ≤ X/(q2 P ′ P ′′ ). We have the Vinogradov–Korobov zero-free re-
gion for L-functions of the form
                                                             c0
             L(s, χ) 6= 0, σ ≥ 1 −                                                       (162)
                                      log q1 + (log(|t| + 3))2/3 (log log(|t| + 3))1/3
for all χ (mod q1 ), apart from possibly one real zero corresponding to one real character. In
case an exceptional character exists, q1 ≫A (log X)A . The contribution of an exceptional
character to (159) is trivially negligible, so we may assume that in (159) we only sum over
                         HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                               93

characters χ (mod q1 ) satisfying (162). Moreover, we may assume that the set S in (159)
is instead simply defined as the set of n having a prime factor from [P, Q], with Q = H ∗ ,
P = Qδ/4 . We again claim that (159) fails, which will then provide the desired contradiction.
   To show this claim, we apply the proof method of [22] to the multiplicative function
λ(n)χ(n)n−iT , summed over n ∈ S. Reducing matters from short sums to Dirichlet poly-
nomials by Parseval-type arguments, as in [22, Section 4], we can reduce the claim to
        Z
                           |P (1 + it)|2 |Q(1 + it)|2 dt ≪ exp(−(log X)1/3−ε/10 ),      (163)
         [−T1 ,T1 ]\[T −T0 ,T +T0 ]

where  T0 = exp((log X)1/3−ε/10 ) and T1 = X exp((log X)1/3−ε/10 )/H ∗ , and we have P (s) =
             s−iT for some interval I ⊂ [P, Q] and Q(s) = X/Q≤n≤X an ns for some |an | ≤
P                                                        P
   p∈I χ(p)p
1. As in [22], applying the pointwise Vinogradov–Korobov bound to P (s) and the mean value
theorem to Q(s), (163) follows.

                   7. Polynomial averages of the Liouville function
  In this section, we prove Theorems 1.10 and 1.12. Note that Corollary 1.11 is a special
case22 of Theorem 1.10 where we take Pi (m) = ai m.
Proof of Theorems 1.10 and 1.12. We borrow notation from [40]. Note that the claim of
Theorem 1.10 follows from
       Em∈[X ε ]r En≤X cX (m)λ(n + P1 (m))λ(n + P2 (m)) · · · λ(n + Pk (m)) = o(1)  (164)
                                                                   Q
for an arbitrary unimodular sequence cX (m). Denoting W = p≤w p, where w tends to
infinity very slowly in terms of X, and splitting n and m into residue classes (mod W ) in
the statement of Theorem 1.12, that theorem in turn reduces to
 Em∈[L]r En≤X/W cX (m)λb1 ,W (n + P1′ (m))Λb2 ,W (n + P2′ (m)) · · · Λbk ,W (n + Pk′ (m)) = o(1)
                                                                                            (165)
uniformly for unimodular sequences cX (m), for X ε /W ≪ L ≪ X ε , for 1 ≤ b1 , . . . , bk ≤ W
coprime to W , and for P1′ , . . . , Pk′ polynomials in Z[x1 , . . . , xr ] with Pi′ − Pj′ non-constant
for i 6= j, and deg Pi′ ≤ d, and the coefficients of Pi′ bounded by W 1/κ in absolute value
for some constant κ > 0 (cf. [40, Section 5] for this reduction). Here we have denoted
λb,W (n) := λ(W n + b), and recall that Λb,W (n) := φ(W )/W · Λ(W n + b). We now see that
in fact both Theorem 1.10 and 1.12 will follow once we prove (165) in a form where some
copies of Λ are allowed to be replaced with λ.
    Let A = W 1/κ , so that the absolute values of the coefficients of Pi′ are bounded by A.
Recall d = maxi deg Pi′ . We set N = ⌊X/W ⌋, so that L = o(N 1/d ). Consider functions
f1 , . . . , fk : [N ] → C with |fi | ≪ Λbi ,W + 1 and |f1 | ≤ 1. Extend the fi to functions
f˜i : Z/N Z → C by making them N -periodic. Observe that
                        Em∈[L]r En≤N cX (m)f1 (n + P1′ (m)) · · · fk (n + Pk′ (m))               (166)
  22This special case could in fact be proved more directly without considering polynomial progressions,
instead combining the generalized von Neumann theorem with Corollary 1.6.
94                       MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

is up to o(1) error equal to
                        Em∈[L]r cX (m)En∈Z/N Z f˜1 (n + P1′ (m)) · · · f˜k (n + Pk′ (m)),              (167)
since the components of the m variable in (166) are bounded by ηX 1/d for some η > 0
small enough in terms of A, so that wraparound issues are negligible.
   This latter expression is in turn bounded using van der Corput’s inequality (see e.g. [13,
Formula (4.1)]) by
         ≪ (Eh∈Z/N Z |Em∈[L]r En∈Z/N Z ∆h f˜1 (n + P1′ (m)) · · · ∆h f˜k (n + Pk′ (m))|)1/2 ,
where ∆h f (x) := f (x + h)f (x).
  By [40, Theorem 13], for any polynomials Pi′ as in Theorems 1.10, 1.12, we have
               |En∈Z/N Z Em∈[L]r ∆h f˜1 (n + P1′ (m)) · · · ∆h f˜k (n + Pk′ (m))| = o(1),
provided that
                  Et∈[A−1L]r k∆h f˜1 kD′                                                     = o(1)   (168)
                                             Q1 (t)[−A−1 L,A−1 L],...,Q ′ (t)[−A−1 L,A−1 L]
                                                                       D

for any fixed D ′ ≥ 1 and any polynomials Q1 , . . . , QD′ ∈ Z[t1 , . . . , tr ] not identically zero
and with coefficients of size O(AO(1) ), where
                                                                                        1/2d
                                                             Y
      kf kd      := Ex∈Z/N Z Eh1 ∈C1 −C1 · · · Eh ∈C −C          d
                                                                    C |ω| f (x + ω · h)
                                                                       d   d
           C1 ,...,Cd
                                                                               ω∈{0,1}d

is a Gowers box norm of order d and C is the complex conjugation operator, and we used
the notation q[−N, N ] := [−qN, qN ] ∩ qZ. Thus we may control polynomial averages with
averaged Gowers box norms. Further, by a concatenation theorem, namely [40, Theorem
9] (with d0 = 1 there), we have (168) provided that
                                 k∆h f˜1 k D′′      = o(1)
                                                    U                             (169)
                                                                ′′
                                                        q[1,A−2D L]
                                                             ′′
holds for all fixed D ′′ ≥ 1 and all 1 ≤ q ≤ AD , where kf kU d := kf kd       .
                                                             C          C,...,C
  Averaging this over h, we now conclude that the desired bound for (167) follows from
                                                        D     ′′
                                    Eh∈Z/N Z k∆h f˜1 k2U D′′                   = o(1).
                                                                    ′′
                                                            q[1,A−2D L]

Expanding out the Gowers norm above, we see that this claim in turn reduces to
                       kf˜1 k D′′ +1  U
                                                       = o(1).                                         (170)
                                                       ′′              ′′
                                          Z/NZ,q[1,A−2D L],...,q[1,A−2D L]

Since wraparound issues are again negligible, we can split the average over Z/N Z implicit
in (170) into intervals of length ≍ L and apply the generalized von Neumann theorem, thus
reducing the proof of (170) to
                                   sup        En≤N −M kf1 kU D′′ +1 [n,n+M ] = o(1)                    (171)
                             A−c L≤M ≤Ac L
                         HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                                        95

for any constant c ≥ 1.
   Now specialize to the case where f1 is the (W -tricked) Liouville function λb,W (n)1[N ] (n)
(and N = ⌊X/W ⌋ as before). By making a change of variables, and extending the range of
the supremum in W 1m≡b (mod W ) , we reduce (171) to
             sup         En≤W (N −M ) kλ · W 1·≡b     (mod W ) 1[W N ] kU D ′′ +1 [n,n+M ] = o(1).        (172)
        N ε/2 ≤M ≤N 2ε

The factor 1[W N ] can be removed, since the contribution to the n average from the range
W N − O(M ) ≤ n ≤ W (N − M ) is negligible. By Fourier expanding 1·≡b (mod W ) in
terms of additive characters, and applying the triangle inequality (and recalling that w
tends to infinity arbitrarily slowly) we reduce23 to proving (171) also without the factor
W 1·≡b (mod W ) .
   By our main theorem, Theorem 1.5, we have (172) without the term W 1m≡b (mod W ) 1[W N ] ,
and therefore taking above fi ∈ {λbi ,W , Λbi ,W } for 1 ≤ i ≤ k, both Theorem 1.10 and The-
orem 1.12 follow.                                                                         

         Appendix A. Bernstein inequality for exponential polynomials
  In this appendix we establish the Bernstein inequality for exponential polynomials,
Lemma 2.3. We begin with a bound for the number of zeroes of such polynomials:
Lemma A.1. Let α1 , . . . , αk be real numbers, let d1 , . . . , dk be non-negative integers, and
let P : R → R be a real linear combination of the exponential monomials t 7→ tj exp(αi t) for
i = 1, . . . , k and 0 ≤ j ≤ di . Then if P is not identically zero, it has at most k + ki=1 di
                                                                                         P
zeroes.
Proof. The claim is trivial for k = 0, so suppose that Pkk ≥ 1 and that the claim has already
been proven for k − 1. We now fix k and induct on i=1 di . By reordering we may assume
that d1 ≤ d2 ≤ · · · ≤ dk . By multiplying P by t 7→ exp(−α1 t) we may assume that α1 = 0.
If d1 vanishes, then the derivative P ′ is a linear combination of the exponential monomials
t 7→ tj exp(αi t) with 2 ≤ i ≤ k and 0 ≤ j ≤ di , so the claim follows from the outer
induction hypothesis on k and Rolle’s theorem. If instead d1 does not vanish, then P ′ is
of the same form as P but with d1 replaced by d1 − 1, thus by the induction hypothesis it
either vanishes identically or has at most k + ( ki=1 di ) − 1 zeros. The claim now follows
                                                   P
from Rolle’s theorem.                                                                       
Proof of Lemma 2.3. We allow all implied constants to depend on k, d1 , . . . , dk , m, I. Let
N0 be large enough in terms of k, d1 , . . . , dk . We may normalize supn=1,...,N0 |P (n)| = 1. The
claim is trivial if P is constant, so we may assume that P is non-constant. By Lemma A.1
the exponential polynomial P (t) then attains the values ±1 at most O(1) times, so the set
{t ∈ R : |P (t)| ≤ 1} is the union of O(1) intervals (possibly of infinite or zero length).
As this set contains {1, . . . , N0 }, we conclude from the pigeonhole principle (for N0 large
   23Note that even though the Fourier expansion of 1
                                                           ·≡b (mod W ) followed by the triangle inequality loses
a multiplicative factor of W , this loss is harmless, since w, and hence W , can be assumed to tend to inﬁnity
much slower than the decay rate of (172) without the W 1·≡b (mod W ) 1[W N] factor.
96                 MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

enough in terms of d1 , . . . , dk ) that this set also contains an interval [n, n + 1] for some
n = 1, . . . , N0 − 1.
  Now observe that P solves the ordinary differential equation
                                       k            di +1
                                     Y       d
                                                − αi        P (t) = 0.
                                             dt
                                     i=1

Writing D := ki=1 (di + 1) = O(1) and ε := sup1≤i≤k |αi | (where, by assumption, ε is small
                  P
enough in terms of k, d1 , . . . , dk , N0 ), we can write this equation as
                        P (D) (t) + cD−1 P (D−1) (t) + · · · + c0 P (t) = 0               (173)
where the coefficients c0 , . . . , cD−1 are of size O(ε). In terms of the D-dimensional vector
                                                            
                                                      P (t)
                                                        ..
                                         v(t) := 
                                                            
                                                         .   
                                                   P (D−1) (t)
one can write this differential equation as a first-order system
                                      d
                                         v(t) = (U + E)v(t)
                                      dt
where U is the shift matrix                                      
                                            0       1 ...      0
                                           0       0 ...      0
                                      U :=  ...    .. . .     .. 
                                                                 
                                           
                                                    .     .    .
                                           0       0 ...      1
                                            0       0 ...      0
and E is a t-independent matrix of dimension D with all entries being of size O(ε). The
solution of this equation is
                               v(t) = exp((t − n)(U + E))v(n).
By the continuity of the matrix exponential we then have
                           v(t) = exp((t − n)U )v(n) + O(εkv(n)k)                         (174)
whenever |t − n| = O(1) (here k · k denotes the Euclidean norm of a vector). In particular,
we have the approximate Taylor expansion
                                    D−1
                                    X     (t − n)j (j)
                         P (t) =                  P (n) + O(εkv(n)k).
                                             j!
                                    j=0

Since |P (t)| ≤ 1 for t ∈ [n, n + 1], we conclude that
                              D−1
                              X     (t − n)j (j)
                                            P (n) ≪ 1 + εkv(n)k
                                       j!
                              j=0
                    HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                         97

for t ∈ [n, n + 1]. From (27) applied to the polynomial in t on the left-hand side we have
that
                                 |P (j) (n)| ≪ 1 + εkv(n)k.
We conclude that
                                   kv(n)k ≪ 1 + εkv(n)k
and hence for ε small enough we see that all the components of v(n) are O(1). Inserting
this back into (174) we conclude that (29) holds for all m ≤ D − 1; the remaining cases then
follow by differentiating the equation (173) m − D times and using induction on m.         

Appendix B. The Baker–Campbell–Hausdorff formula and its consequences
   In this section, we review some standard facts about connected, simply connected nilpo-
tent Lie groups G and their Lie algebras log G. As mentioned in Section 4, all connected,
simply connected nilpotent Lie groups are isomorphic to matrix algebras, so we shall abuse
notation in this appendix by viewing elements of G and log G as matrices (in particular we
identify the Lie group exponential with the matrix exponential).
   If G is a simply connected nilpotent Lie group with some filtration (Gi )i≥0 with Gi = 0
for i > k, we can define the operation ∗ : log G × log G → log G by the formula
                               X ∗ Y := log(exp(X) exp(Y ))                           (175)
for all X, Y ∈ log G, or equivalently
                                   log(gh) = log g ∗ log h
for all g, h ∈ G. For instance, in the Heisenberg group example from Example 4.1, we have
                                               0 x1 + x2 z1 + z2 + x1 y2 −x 2 y1
                                                                            
              0 x1 z1         0 x2 z2                                    2
            0 0 y1  ∗ 0 0 y2  = 0               0           y1 + y2         .
              0 0 0           0 0 0            0     0              0
  The operation ∗ is clearly a group operation on log G (with identity 0 and inverse map
X 7→ −X). The Baker–Campbell–Hausdorff formula gives an explicit description of this
operation. As is well known, log G is a nilpotent Lie algebra, using the usual matrix
commutator [X, Y ] := XY − Y X as the Lie bracket; see [20, Corollary 11.2.7]. For any
X ∈ log G, we can then define the adjoint representation adX : log G → log G to be linear
map
                                   adX (Y ) := [X, Y ].
As log G is a nilpotent Lie algebra, adX is a nilpotent linear transformation, thus adm
                                                                                      X =0
for some natural number m; more generally, for any X, Y ∈ log G, any word in adX , adY
of length greater than or equal to some threshold m will vanish (in fact, by the inclusion
(179) established below, one can take m to equal the degree k of the filtration). The
Baker–Campbell–Hausdorff formula then states
                                          Z 1
                            X ∗Y =X +         ψ(eadX etadY )Y dt,
                                           0
98                 MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER
               P∞    1    n
where eadX =     n=0 n! adX is the matrix exponential of adX , and ψ is the function
                                x log x      x − 1 (x − 1)2
                       ψ(x) :=         =1+          −          + ...;
                                x−1            2          6
see for instance [18, Theorem 3.3] or [20, Proposition 3.4.4]. Note that from the nilpotent
nature of log G that we can truncate the Taylor series for the matrix exponential and the
function ψ to some finite threshold m, so that
                             X ∗ Y = X + Y + P (adX , adY )Y                            (176)
for some (non-commutative) polynomial P of two variables of bounded degree and coeffi-
cients that are rational numbers of bounded height, where the constant term of P vanishes
and the linear term is equal to 21 adX (the contribution of adY can be deleted from the linear
term since adY Y = 0). The first few terms of this formula are
                                    1          1
              X ∗ Y = X + Y + adX Y + (ad2X − adY adX )Y + . . .
                                    2         12
                                    1          1
                     = X + Y + [X, Y ] + ([X, [X, Y ]] − [Y, [X, Y ]]) + . . . ,
                                    2         12
although we will not need the explicit form of these terms beyond the quadratic case. From
(176) we conclude in particular that X ∗ Y is a polynomial combination of X, Y , with
bounded degree and coefficients. As one particular consequence of this formula, we see that
                      (tX) ∗ (tY ) ∗ (−tX) ∗ (−tY ) = t2 [X, Y ] + O(t3 )
as t → 0 for any X, Y ∈ log G, so the Lie bracket can be recovered from ∗ by the limiting
formula
                                        (tX) ∗ (tY ) ∗ (−tX) ∗ (−tY )
                          [X, Y ] = lim                               ,             (177)
                                    t→0                t2
which can also be established directly from (175) and Taylor expansion of the matrix ex-
ponential (this is also [20, (3.14)]).
   Another closely related identity to the Baker–Campbell–Hausdorff formula is
                                 eadX Y = exp(X)Y exp(−X)
for any X, Y ∈ log G; see [18, Proposition 2.25]. As exp(C −1 Y C) = C −1 exp(Y )C for any
invertible C, we have
                    exp(exp(X)Y exp(−X)) = exp(X) exp(Y ) exp(−X)
and thus
                           exp(eadX Y ) = exp(X) exp(Y ) exp(−X)
for all X, Y ∈ log G, or equivalently
                                  log(hgh−1 ) = eadlog h log g                          (178)
for all g, h ∈ G.
   By definition, the groups Gi in the filtration (Gi ) are closed subgroups of G, and thus
are themselves Lie groups with a Lie algebra log Gi that are subalgebras of log G; see [20,
Proposition 9.3.9], [18, Proposition 3.14]. In particular, the exponential map exp : log G →
                   HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                           99

G descends to a diffeomorphism exp : log Gi → Gi , so Gi is simply connected. The group
Gi is nilpotent simply connected, and Gi+1 is a closed simply connected nilpotent subgroup,
thus Gi /Gi+1 is simply connected. If X ∈ log Gi and Y ∈ log Gj , then from the filtration
property [Gi , Gj ] ⊂ Gi+j and (175) we see that (tX) ∗ (tY ) ∗ (−tX) ∗ (−tY ) ∈ log Gi+j for
any t > 0; inserting this into (177) we conclude that [X, Y ] ∈ log Gi+j , thus we have the
Lie algebra filtration property
                                 [log Gi , log Gj ] ⊂ log Gi+j .                       (179)
In particular, each of the log Gi are normal Lie subalgebras of log G. From the Baker–
Campbell–Hausdorff formula (176) and (179) we then also have
                              X ∗ Y = X + Y mod log Gi+1
whenever i ≥ 1 and X, Y ∈ log Gi , or equivalently
                          log(gh) = log(g) + log(h) mod log Gi+1                       (180)
whenever i ≥ 1 and g, h ∈ Gi . Thus log Gi / log Gi+1 is an abelian Lie algebra for any
i ≥ 1, and the logarithm map descends to a homomorphism from the multiplicative group
Gi /Gi+1 to the additive group log Gi / log Gi+1 .
Lemma B.1 (Taylor expansion). Let d ≥ 1 be a natural number, and let g ∈ Poly(Z → G).
Then there exist unique Taylor coefficients gj ∈ Gj such that
                                              Y (n)
                                      g(n) =     gj j .
                                                   j

Proof. This is a special case of [17, Lemma B.9].                                          
  Now we can prove Lemma 4.2.
Proof of Lemma 4.2. We may rescale δ = 1. The fact that Poly(Z → G) forms a group is
the Leibman–Lazard theorem; see e.g., [17, Corollary B.4]. Now suppose that g̃ ∈ Poly(R →
G), thus we have a Taylor expansion
                                                   k
                                                   X
                                     log g̃(t) =         Xi ti
                                                   i=0
for some Xi ∈ log Gi . For any j ≥ 0, let Vj denote the vector space of polynomial maps
p : R → log G of the form                   X
                                   p(t) =        Y i ti
                                             0≤i≤k−j
where Yi ∈ log Gi+j for all i, thus log g̃ ∈ V0 . One can check that the Vj are decreasing
with
                                         [Vi , Vj ] ⊂ Vi+j                             (181)
and Vi = 0 for i > k; in particular, the Vi are each Lie algebras. We now claim by induction
that
                                      log ∂h1 . . . ∂hj g̃ ∈ Vj
100                 MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

for all j ≥ 0 and h1 , . . . , hj ∈ R. This claim is already established for j = 0. If it holds for
some j, and hj+1 ∈ R, then by using the fact that (t + hj+1 )i differs from ti by a polynomial
of degree at most i − 1 in t, we see that
                     log ∂h1 . . . ∂hj g̃(· + hj+1 ) = log ∂h1 . . . ∂hj g̃ mod Vj+1
and hence by the Baker–Campbell–Hausdorff formula (176)
                     log ∂h1 . . . ∂hj g̃(· + hj+1 ) ∗ (− log ∂h1 . . . ∂hj g̃) ∈ Vj+1 .
But by (175) the left-hand side is equal to log ∂h1 . . . ∂hj+1 g̃, closing the induction. Applying
this with j = k and h1 , . . . , hj , t ∈ Z, we conclude that the restriction of g̃ to Z lies in
Poly(Z → G).
   Now suppose that g ∈ Poly(Z → G). Any such element can be expressed uniquely as a
Taylor expansion
                                                   (n)        (n)
                                        g(n) = g0 g1 1 . . . gk k
for all n ∈ Z and some gj ∈ Gj ; see [17, Lemma B.9]. Using the real exponentiation (77),
we can extend g to the map
                                               ( t)       ( t)
                                   g̃(t) = g0 g1 1 . . . gkk                       (182)
and from many applications of the Baker–Campbell–Hausdorff formula (175), (176), (179)
one sees that g̃ is now an element of Poly(R → G). This establishes existence. To show
uniqueness, it suffices by the group property to check the case g = 1. Then any extension g̃
is such that log g̃(n) = 0 for every integer n; since log g̃ is also a polynomial, log g̃ vanishes
identically, hence g̃ must be 1, giving uniqueness.                                             

  As a corollary we obtain:
Lemma B.2 (Non-abelian Discrete Taylor expansion). For any δ > 0, the space Poly(δZ →
G) consists precisely of those functions γ : R → G of the form
                                                      k
                                                      Y  (t/δ)
                                            γ(t) :=     gj j
                                                      j=0

for some gj ∈ Gj , where      x
                              j
                                 := x(x−1)...(x−j+1)
                                           j!        .

  If Γ is a cocompact discrete subgroup of G with each Γi := Γ ∩ Gi cocompact in Gi , then
there exists a Mal’cev basis for Γ, by which we mean a linear basis X1 , . . . , Xdim G for log G
with the property that Xdim G−dim Gi +1 , . . . , Xdim G form a basis for log Gi for each i (so in
particular [Xi , Xj ] lies in the span of Xmax(i,j)+1 , . . . , Xdim G for any 1 ≤ i, j ≤ dim G), and
                 Γ = {exp(n1 X1 ) · · · exp(ndim G Xdim G ) : n1 , . . . , ndim G ∈ Z}.
See [16, §2] for details. From this and many applications of the Baker–Campbell–Hausdorff
formula, we see that for any 1 ≤ i, j ≤ dim G, the coefficients of [Xi , Xj ] in the basis
                    HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                            101

Xmax(i,j)+1 , . . . , Xdim G are rational numbers with denominator O(1), and thus every ele-
ment of Γ can be written in the form
                                      1
                                exp( (n1 X1 + · · · + ndim G Xdim G ))                (183)
                                     Q1
for some integers n1 , . . . , ndim G and some natural number Q1 = O(1) depending only on
G and the Mal’cev basis; conversely, there exists a natural number Q2 = O(1) such that
every expression of the form
                            exp(Q2 (n1 X1 + · · · + ndim G Xdim G ))
with n1 , . . . , ndim G ∈ Z lies in Γ. One consequence of this and the Baker–Campbell–
Hausdorff formula is that, for any fixed natural number q = O(1), the set {γ ∈ G : γ q ∈ Γ}
generates a group, all of whose elements are of the form
                                   1
                            exp(     (n1 X1 + · · · + ndim G Xdim G ))
                                   Q
for some Q depending on G, q, and the Mal’cev basis; in particular, this group contains
only finitely many cosets of Γ, so that Γ is a finite index subgroup of it. As one particular
corollary of this, we see that if γ1 , γ2 ∈ G are such that γ1q1 , γ2q2 ∈ Γ for some natural
numbers q1 , q2 = O(1), then one has (γ1 γ2 )q ∈ Γ for some q = O(1).


   Appendix C. Bezout’s identity and the Chinese remainder theorem for
                                   polynomial spaces
   In this section, we prove various versions of Bezout’s identity and the Chinese remain-
der theorem for polynomial maps, either into the circle R/Z or into more general filtered
nilpotent Lie groups.

C.1. Bezout-type identities.
Proof of Lemma 2.2. We may normalize λ = 1. We begin with the first claim. It suffices
to establish the inclusion
                                                 
                          1                  1
                Poly≤k      Z → Z + Poly≤k     Z → Z ⊃ Poly ≤k (Z → Z)
                          a                  b
as the opposite inclusion is trivial. That is, it suffices to show that every γ ∈ Poly≤k (Z → Z)
may be split as γ = γa + γb where γa ∈ Poly≤k a1 Z → Z and γb ∈ Poly≤k 1b Z → Z .
                                                                                          
   We prove this by induction on k. The claim is trivial for k = 0, so suppose that k ≥ 1
            claim has already been proven for k − 1. From Lemma 2.1 we can write
and that the
γ(t) = c kt + γ ∗ (t) for some integer c and γ ∗ ∈ Poly≤k−1 (R → R). By Bezout’s identity we
may write c = qak + rbk for some integers q, r, thus
                                                   
                                           at          bt
                                γ(t) = q         +r         + γ ∗∗ (t)
                                           k           k
102                 MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

for some γ ∗∗ ∈ Poly≤k−1 (R → R). As γ(Z) ⊂ Z, also γ ∗∗ (Z) ⊂ Z; so by the induction
hypothesis we may write γ ∗∗ (t) = γa∗∗ (t) + γb∗∗ (t) where γa∗∗ ∈ Poly≤k−1 a1 Z → Z and
                                                                                      

γb∗∗ ∈ Poly≤k−1 1b Z → Z . Setting γa (t) := q at      ∗∗             := r bt     ∗∗
                                                                            
                                               k + γa (t) and γb (t)       k + γb (t) closes
the induction.
   Now we prove the second claim. Again it suffices to prove the inclusion
                                                                           
                       1                     1                       1
             Poly≤k      Z → Z ∩ Poly ≤k       Z → Z ⊂ Poly≤k           Z→Z
                       a                     b                       ab
as the opposite inclusion is trivial, and we may again inductively assume that k ≥ 1 and
that the claim has already been proven for k − 1.
   If γ ∈ Poly≤k a1 Z → Z ∩ Poly≤k 1b Z → Z , then from Lemma 2.1 we see that the
derivative γ (k) (which is a constant) is an integer multiple of both ak and bk , hence can
be written as c(ab)k for some integer c. Thus we may write γ(t) = c abt       ∗
                                                                         
                                                                        k + γ (t) for some
                 ∗
integer c and γ ∈ Poly≤k−1 (R → R). One then easily checks that
                                                                   
                      ∗                1                      1
                     γ ∈ Poly≤k−1        Z → Z ∩ Poly≤k−1       Z→Z
                                       a                      b
and the claim now follows from the induction hypothesis and Lemma 2.1.                      

Proof of Lemma 4.13. We again normalize λ = 1. We begin with the first claim. As
Poly(Z → Γ) is a group that contains24 Poly( a1 Z → Γ), Poly( 1b Z → Γ), we clearly have the
inclusion
                            1                 1
                       Poly( Z → Γ) · Poly( Z → Γ) ⊂ Poly(Z → Γ)
                            a                 b
and it now suffices to show that any γ ∈ Poly(Z → Γ) can be factored as γ = γa γb , where
γa ∈ Poly( a1 Z → Γ) and γb ∈ Poly( 1b Z → Γ).
   Set Γi := Gi ∩ Γ for all i. If γ lies in Poly(Z → Γk+1 ) then the claim is trivial since
Γk+1 = {1}, so now suppose by downward induction that γ lies in Poly(Z → Γi ) for some
1 ≤ i ≤ k, and that the claim has already been proven for γ in Poly(Z → Γi+1 ). By
Lemma B.2 we have a Taylor expansion of the form
                                               Y (t)
                                        γ(t) =   γj j .
                                                    j

Since for t ∈ Z we have γ(t) ∈ Γi we get by induction on n that γj ∈ Γi . If we let
πi : Γi → Γi /Γi+1 be the quotient map, then since Γi /Γi+1 is abelian we get for t ∈ Z
                                                   i
                                                                  t
                                                         πi (γj )(j) .
                                                   Y
                                     πi (γ(t)) =
                                                   j=0


  24We remind here that, by Lemma 4.2, the group Poly(δZ → Γ) can be (by an abuse of notation)
interpreted as a subgroup of Poly(R → Γ).
                     HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                                    103

  By Lemma 2.2, we can split each jt as Pa,j (t) + Pb,j (t) for t ∈ R and some Pa,j ∈
                                            

Poly≤j ( a1 Z → Z) and Pb,j ∈ Poly≤j ( 1b Z → Z). Setting
                                        i                                      i
                                               P    (t)                               P       (t)
                                        Y                                      Y
                           γa′ (t) :=         γj a,j ;          γb′ (t) :=           γj b,j
                                        j=0                                    j=0

for all t ∈ R, we see that γa′ ∈ Poly( a1 Z → Γ), γb′ ∈ Poly( 1b Z → Γ), and
                                                   γ = γa′ σγb′
for some σ ∈ Poly(Z → Γi+1 ). The claim now follows from the induction hypothesis.
   Now we prove the second claim. We show by downwards induction on k that for each
1 ≤ i ≤ k + 1 and γ ∈ Poly( a1 Z → Γi ) ∩ Poly( 1b Z → Γi ) one has γ ∈ Poly( ab1
                                                                                  Z → Γi ).
The claim is trivially true for i = k + 1, so suppose that 1 ≤ i ≤ k and that the claim has
already been proven for i + 1. From two applications of Lemma B.2 and with πi as above,
we have
                                               i
                                                         at
                                                 π (γ )( j )
                                              Y
                                   π (γ(t)) =
                                         i                       i   j,a              (184)
                                                          j=0
for all t ∈ a1 Z and some γj,a ∈ Γi , and
                                                          i
                                                                           bt
                                                                πi (γj,b )( j )
                                                          Y
                                        πi (γ(t)) =                                                 (185)
                                                          j=0

for all t ∈ 1b Z and some γj,b ∈ Γi . Specializing to t ∈ Z and comparing the top order
coefficients of these polynomials (using the uniqueness of the Taylor expansion) in the
abelian group Γi /Γi+1 , we conclude that
                                                      i                    i
                                         πi (γi,a )a = πi (γi,b )b .
As ai , bi are coprime, the Bezout identity allows one to express 1 as an integer combination
                                                                                 i
of ai , bi . We conclude that there exists γi ∈ Γi such that πi (γi,a ) = π(γi )b and πi (γi,b ) =
        i                                                (abt)                       1
π(γi )a . If one then divides out the polynomial t 7→ γi i (which lies in Poly( ab     Z → Γi ))
from γ (either on the right or left), one ends up with a polynomial in γ ∈ Poly( a1 Z →
Γi ) ∩ Poly( 1b Z → Γi ) which has an expansion similar to that of (184), (185) but with the
j = i term absent. Repeating this argument we may eliminate all the other factors in (184),
                                                       1
(185) by dividing out appropriate sequences in Poly( ab  Z → Γi ), until πi (γ(n)) is identically
equal to 1 on both a Z and b Z, so that γ now lies in Poly( a1 Z → Γi+1 ) ∩ Poly( 1b Z → Γi+1 ),
                      1       1

and the claim now follows from the induction hypothesis.                                         
C.2. Chinese remainder theorems.
Proof of Proposition 3.5. We begin by proving an auxiliary claim, namely that if a1 , . . . , am
are coprime natural numbers, and γ1 , . . . , γm ∈ Poly≤k (Z → Z), then there exists γ ∈
Poly≤k (Z → Z) such that γi − γ ∈ Poly≤k ( a1i Z → Z) for i = 1, . . . , m. It suffices to verify
this when m = 2, as this also implies the m = 1 case, and the higher m cases also follow
104                MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

from induction. From the first claim of Lemma 2.2 we can write γ1 − γ2 = γ1∗ − γ2∗ where
γ1∗ ∈ Poly≤k ( a11 Z → Z) and γ2∗ ∈ Poly≤k ( a12 Z → Z). The claim now follows by setting
γ := γ1 − γ1∗ = γ2 − γ2∗ .
   Now we prove (i). Write φ = (I, P ) and φp = (Ip , Pp ). From Definition 3.1, we have
                                        Pp = εp + P + γp
where εp ∈ Poly≤k (R → R) obeys the smoothness bounds in Definition 3.1(i), and γp ∈
Poly≤k (Z → Z). From the previous claim, there exists γ ∈ Poly ≤k (Z → Z) such that
γp − γ ∈ Poly ≤k ( 1p Z → Z) for each p. If one then sets φ̃ := (I, P + γ), one obtains the claim
(i).
   Now we prove (ii). Write φ = (I, P ) and φ′ = (I ′ , P ′ ). From hypothesis we may write
                                  P (t) = ǫp (t) + P ′ (t) + γp (t)
for all p ∈ P and some ǫp , γp ∈ Poly≤k (R → R) obeying the properties in Definition 3.1.
In particular, we see that ǫp (t) + γp (t) is independent of p. Setting nI to be an integer
point in I, we then have that ǫp (nI ) mod 1 is independent of p. Since also ǫp (nI ) = O(1),
we may subtract a bounded integer from each ǫp and add it to γp to assume without loss
of generality that ǫp (nI ) is independent of p. Since ǫp (n + 1) = ǫp (n) + O(1/|I|) for all
n ∈ I ∩ Z, and ǫp (n) mod 1 is independent of p, we conclude from induction (for |I| large
enough) that ǫp (n) is independent of p for all n ∈ I ∩ Z, which by Lagrange interpolation
(or Lemma 2.3) implies that ǫp = ǫ is independent of p. This implies that γp = γ is also
independent of p. Since γ ∈ Poly≤k ( p1 Z → Z) for all p ∈ P, we see from iterating the
second claim of Lemma 2.2 that γ ∈ Poly≤k ( Q1P Z → Z), and the claim follows.             
Proof of Proposition 4.14. As with the proof of Proposition 3.5, we begin by proving an
auxiliary claim, namely that if a1 , . . . , am are coprime natural numbers, and γ1 , . . . , γm ∈
Poly(Z → Γ), then there exists γ ∈ Poly(Z → Γ) such that γ −1 γi ∈ Poly( a1i Z → Γ) for
i = 1, . . . , m. As before it suffices from induction to verify the m = 2 case. From the
first claim of Lemma 4.13 we can write γ1−1 γ2 = (γ1∗ )−1 γ2∗ where γ1∗ ∈ Poly( a11 Z → Γ) and
γ2∗ ∈ Poly( a12 Z → Γ). The claim now follows by setting γ := γ1 (γ1∗ )−1 = γ2 (γ2∗ )−1 .
   Now we prove (i). From Definition 4.9, if we write φ = (I, g) and φp = (Ip , gp ), we have
                                            gp = εp gγp
where εp ∈ Poly(R → G) obeys the smoothness bounds in Definition 3.1(i), and γp ∈
Poly(Z → Γ). From the previous claim, there exists γ ∈ Poly(Z → Γ) such that γ −1 γp ∈
Poly( 1p Z → Z) for each p. If one then sets φ′ := (I, gγ), one obtains the claim (i).
  Now we prove (ii). Write φ = (I, g) and φ′ = (I ′ , g′ ). From hypothesis we may write
                                            g = ǫ p g ′ γp                                  (186)
for all p ∈ P and some ǫp , γp ∈ Poly(R → G) obeying the properties in Definition 4.9. Let
nI be an integer point in I. The points log ǫp (nI ) take values in a ball of size O(1) around
the origin in log G. Let δ > 0 be a small, fixed constant (depending on k, ε, θ, G/Γ, F ). By
the pigeonhole principle, one can find a subcollection P ′ of P with #P ′ ≫δ #P such that
                      HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                                   105

log ǫp (nI ) = ǫ0 + O(δ) for some ǫ0 = O(1). From Bernstein’s inequality (26) (applied to
the function that expresses the distance between log εp (t) and ε0 ) we also have log ǫp (t) =
ǫ0 + O(δ) whenever t = nI + O(δ|I|). From (186) one has
                                       (g′ )−1 ǫ−1     ′      −1
                                                p ǫp′ g = γp γp′ .                                 (187)

Now suppose that t is an integer with t = nI + O(δ|I|). By the Baker–Campbell–Hausdorff
formula (176), the quantity
       ǫp (t)−1 ǫp′ (t) = exp((− log ǫp (t)) ∗ log ǫp′ (t)) = exp((−ǫ0 + O(δ)) ∗ (ǫ0 + O(δ)))
lies within O(δ) of the identity, hence the conjugate g ′ (t)−1 ǫp (t)−1 ǫp′ (t)g′ (t) lies within O(δ)
of the identity when projected to the abelian group G/G2 . On the other hand by (183),
the projection of γp (t)γp′ (t)−1 to G/G2 is rational in the sense that it lies in the image of Γ
when raised to some power q = O(1). For δ small enough, these facts are only compatible if
the projection of both sides of (187) to G/G2 is trivial, that is to say both sides of (187) lie
in G2 , so ǫp (t)−1 ǫp′ (t) also lies in G2 . Now one can project to the abelian group G2 /G3 and
repeat the above arguments to show that both sides of (187) lie in G3 (for δ small enough).
Continuing this argument we conclude that both sides of (187) are in fact trivial for all
integers t = nI + O(δ|I|), and hence by Lagrange interpolation (for |I| large enough) for all
real t also. In particular, γp = γ is independent of p. From the second part of Lemma 4.13
we conclude that γ ∈ Poly( Q1P ′ Z → Z), and the claim follows.                                      

                                             References
 [1] H. A. Helfgott and M. Radziwiłł. Expansion, divisibility and parity. arXiv e-prints, page
     arXiv:2103.06853, March 2021.
 [2] V. Bergelson and A. Leibman. Polynomial extensions of van der Waerden’s and Szemerédi’s theorems.
     J. Amer. Math. Soc., 9(3):725–753, 1996.
 [3] G. R. Blakley and P. Roy. A Hölder type inequality for symmetric matrices with nonnegative entries.
     Proc. Amer. Math. Soc., 16:1244–1245, 1965.
 [4] S. Chowla. The Riemann hypothesis and Hilbert’s tenth problem. Mathematics and Its Applications,
     Vol. 4. Gordon and Breach Science Publishers, New York-London-Paris, 1965.
 [5] T. Cochrane and Z. Zheng. Pure and mixed exponential sums. Acta Arith., 91(3):249–278, 1999.
 [6] S. Ferenczi, J. Kułaga-Przymus, and M. Lemańczyk. Sarnak’s conjecture: what’s new. In Ergodic
     theory and dynamical systems in their interactions with arithmetics and combinatorics, volume 2213
     of Lecture Notes in Math., pages 163–235. Springer, Cham, 2018.
 [7] L. Flaminio, K. Frączek, J. Kułaga-Przymus, and M. Lemańczyk. Approximate orthogonality of powers
     for ergodic aﬃne unipotent diﬀeomorphisms on nilmanifolds. Studia Math., 244(1):43–97, 2019.
 [8] K. Ford. Vinogradov’s integral and bounds for the Riemann zeta function. Proc. London Math. Soc.
     (3), 85(3):565–633, 2002.
 [9] N. Frantzikinakis and B. Host. Higher order Fourier analysis of multiplicative functions and applica-
     tions. J. Amer. Math. Soc., 30(1):67–157, 2017.
[10] N. Frantzikinakis and B. Host. The logarithmic Sarnak conjecture for ergodic weights. Ann. of Math.
     (2), 187(3):869–931, 2018.
[11] W. T. Gowers. A new proof of Szemerédi’s theorem. Geom. Funct. Anal., 11(3):465–588, 2001.
[12] A. Granville and K. Soundararajan. Large character sums: pretentious characters and the Pólya-
     Vinogradov theorem. J. Amer. Math. Soc., 20(2):357–384, 2007.
106                  MATOMÄKI, RADZIWIŁŁ, TAO, TERÄVÄINEN, AND ZIEGLER

[13] B. Green and T. Tao. An inverse theorem for the Gowers U 3 (G) norm. Proc. Edinb. Math. Soc. (2),
     51(1):73–153, 2008.
[14] B. Green and T. Tao. Linear equations in primes. Ann. of Math. (2), 171(3):1753–1850, 2010.
[15] B. Green and T. Tao. The Möbius function is strongly orthogonal to nilsequences. Ann. of Math. (2),
     175(2):541–566, 2012.
[16] B. Green and T. Tao. The quantitative behaviour of polynomial orbits on nilmanifolds. Ann. of Math.
     (2), 175(2):465–540, 2012.
[17] B. Green, T. Tao, and T. Ziegler. An inverse theorem for the Gowers U s+1 [N ]-norm. Ann. of Math.
     (2), 176(2):1231–1372, 2012.
[18] B. Hall. Lie groups, Lie algebras, and representations, volume 222 of Graduate Texts in Mathematics.
     Springer, Cham, second edition, 2015. An elementary introduction.
[19] X. He and Z. Wang. Möbius disjointness for nilsequences along short intervals. Trans. Amer. Math.
     Soc., 374(6):3881–3917, 2021.
[20] J. Hilgert and K-H. Neeb. Structure and geometry of Lie groups. Springer Monographs in Mathematics.
     Springer, New York, 2012.
[21] O. Klurman and A. P. Mangerel. On the orbits of multiplicative pairs. Algebra Number Theory,
     14(1):155–189, 2020.
[22] K. Matomäki and M. Radziwiłł. A note on the Liouville function in short intervals. arXiv e-prints,
     page arXiv:1502.02374, Feb 2015.
[23] K. Matomäki and M. Radziwiłł. Multiplicative functions in short intervals. Ann. of Math. (2),
     183(3):1015–1056, 2016.
[24] K. Matomäki and M. Radziwiłł. Multiplicative functions in short intervals II. arXiv e-prints, page
     arXiv:2007.04290, July 2020.
[25] K. Matomäki, M. Radziwiłł, and T. Tao. An averaged form of Chowla’s conjecture. Algebra Number
     Theory, 9(9):2167–2196, 2015.
[26] K. Matomäki, M. Radziwiłł, and T. Tao. Fourier uniformity of bounded multiplicative functions in
     short intervals on average. Invent. Math., 220(1):1–58, 2020.
[27] K. Matomäki and X. Shao. Discorrelation between primes in short intervals and polynomial phases.
     Int. Math. Res. Not. IMRN, (16):12330–12355, 2021.
[28] K. Matomäki and J. Teräväinen. On the Möbius function in all short intervals. To appear in J. Eur.
     Math. Soc., page arXiv:1911.09076, Nov 2019.
[29] R. McNamara. Sarnak’s conjecture for sequences of almost quadratic word growth. Ergodic Theory
     Dynam. Systems, 41(10):3060–3115, 2021.
[30] H. P. Mulholland and C. A. B. Smith. An inequality arising in genetical theory. Amer. Math. Monthly,
     66:673–683, 1959.
[31] V. V. Prasolov. Polynomials, volume 11 of Algorithms and Computation in Mathematics. Springer-
     Verlag, Berlin, 2004. Translated from the 2001 Russian second edition by Dimitry Leites.
[32] P. Sarnak. Mobius randomness and dynamics. Not. S. Afr. Math. Soc., 43(2):89–97, 2012.
[33] T. Tao. Higher order Fourier analysis, volume 142 of Graduate Studies in Mathematics. American
     Mathematical Society, Providence, RI, 2012.
[34] T. Tao. The logarithmically averaged Chowla and Elliott conjectures for two-point correlations. Forum
     Math. Pi, 4:e8, 36, 2016.
[35] 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.
[36] T. Tao and J. Teräväinen. Odd order cases of the logarithmically averaged Chowla conjecture. J. Théor.
     Nombres Bordeaux, 30(3):997–1015, 2018.
[37] T. Tao and J. Teräväinen. The structure of logarithmically averaged correlations of multiplicative
     functions, with applications to the Chowla and Elliott conjectures. Duke Math. J., 168(11):1977–2027,
     2019.
                      HIGHER UNIFORMITY OF MULTIPLICATIVE FUNCTIONS                                   107

[38] T. Tao and V. H. Vu. Additive combinatorics, volume 105 of Cambridge Studies in Advanced Mathe-
     matics. Cambridge University Press, Cambridge, 2010.
[39] T. Tao and T. Ziegler. The primes contain arbitrarily long polynomial progressions. Acta Math.,
     201(2):213–305, 2008.
[40] T. Tao and T. Ziegler. Polynomial patterns in the primes. Forum Math. Pi, 6:e1, 60, 2018.
[41] 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
  Email address: ksmato@utu.fi

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

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

  Mathematical Institute, University of Oxford, Woodstock Road, Oxford OX2 6GG,
United Kingdom

  Department of Mathematics and Statistics, University of Turku, 20014 Turku, Finland
  Email address: joni.p.teravainen@gmail.com

  Einstein Institute of Mathematics, Givaat Ram The Hebrew University of Jerusalem,
Edmond J. Safra Campus, Jerusalem 91904, Israel
  Email address: tamarz@math.huji.ac.il
