The density ﬁnite sums theorem                                                         25

we note that
                  (︁                                                      )︁
         vn ⊗ vn = (T × T )n (f1 ⊗ f1 ) ⊗ · · · ⊗ (T × T )n (fk−1 ⊗ fk−1 ) ◦ φ.

Since ν = φ∗ (τ × τ ), combining Lemma 6.10 (applied to each Φ = ΦN ) with (6.14),
it follows that
                        ⃦                     ⃦2
                        ⃦                     ⃦
                        ⃦ 1 ∑︂                ⃦
                        ⃦
                lim sup ⃦           b(n) · vn ⃦
                                              ⃦
                 N →∞ ⃦ |ΦN | n∈Φ             ⃦ 2
                                  N                  L (τ )
                                           {︁                                    }︁
                    ⩽ ∥b∥2∞ · Dk−1 · min        ∥fi ∥2U k (X,μ T ) : 1 ≤ i ≤ k − 1 .

Taking square roots on both sides, we obtain the desired conclusion with Ck =
√
  Dk−1 .                                                                    □

6.4 Proof of Theorem 6.2

For the proof of Theorem 6.2 we need one more lemma.

Lemma 6.11 Let (X, μ, T ) be an ergodic system, let a ∈ gen(μ, Φ) for some Føl-
ner sequence Φ, and denote by (Zk−1 , mk−1 , T ) the (k − 1)-step pronilfactor of
(X, μ, T ). Assume (Y, S) is a (k − 1)-step pronilsystem. Then for every g ∈ C(X),
y ∈ Y , and F ∈ C(Y ),
            ⃓                          ⃓
            ⃓                          ⃓
            ⃓ 1 ∑︂                     ⃓ ⃦              ⃦
            ⃓
    lim sup ⃓           g(T a)F (S y)⃓ ⩽ ⃦𝔼(g | Zk−1 )⃦L1 (m ) · ∥F ∥∞ .
                            n      n ⃓
                                                                             (6.15)
     N →∞ ⃓ |ΦN | n∈Φ                  ⃓                     k−1
                      N


   We stress that (6.15) requires the function g to be continuous, as we could other-
wise modify it on the orbit of a without changing the right-hand side.

Proof Pick an increasing sequence (Nj )j ∈ℕ of natural numbers such that
             ⃓                         ⃓        ⃓                          ⃓
             ⃓                         ⃓        ⃓                          ⃓
             ⃓ 1 ∑︂                    ⃓        ⃓ 1      ∑︂                ⃓
                                                ⃓                          ⃓
    lim sup ⃓⃓           g(T a)F (S y)⃓⃓ = lim ⃓
                            n      n                              n      n
                                                             g(T a)F (S y)⃓ .
     N →∞ ⃓    |Φ |                    ⃓   j →∞ ⃓ |Φ   |                   ⃓
                 N n∈Φ
                       N                        ⃓ Nj n∈ΦNj                 ⃓

By refining (Nj )j ∈ℕ if necessary, we can assume that (a, y) is generic along
(ΦNj )j ∈ℕ for a measure ρ on X × Y with respect to T × S.
   Since (Y, S) is a pronilsystem, there is an invariant measure ν on Y for which
y ∈ gen(ν, Φ). Replacing Y with the support of ν we may assume that (Y, ν, S) is
ergodic. Since a ∈ gen(μ, Φ)(︁ we have that the first marginal of ρ is μ and the second
marginal is ν. Letting g̃ = 𝔼 g | Zk−1 ) ◦ πk−1 , we obtain
           ⃓                              ⃓
           ⃓                              ⃓
           ⃓ 1       ∑︂                   ⃓
           ⃓                  n      n ⃓
      lim ⃓               g(T a)F (S y)⃓
     j →∞ ⃓ |ΦNj |                        ⃓
           ⃓       n∈ΦNj                  ⃓
