PDF PAGE 28
1072                                                                                          A. Cohen et al.

                        M
                 j =1 ∈
the tuple (eQ,j )M      j =1 Aj , and define the edge set to be the union of these tuples
with Q attached on the last coordinate (this ensures that all edges are distinct),

                             H = {(eQ , Q) : Q ∈ Dδ (X )}.

We apply Lemma 3.5 to H to obtain subsets Aj ⊂ Aj satisfying the following with
K  = (CM log(1/δ))M+1 .
• H  = H ∩ (A1 × · · · × AM × Dδ ) has size at least (K  )−1 |H |. We associate to H 
  the set of cubes

                           Q = {Q ∈ Dδ (X ) : (eQ , Q) ∈ H  }.

• For each j ∈ {1, . . . , M} there is a number dj such that for every a ∈ Aj , degH  a ∈
  [dj /K  , dj ].
We put

                                    X = X ∩              Q.
                                                     Q∈Q

By the lower bound on |H  |,

                            |X | ⩾ (r/2)|Q | ⩾ (CK  )−1 |X|.                                        (24)

For each ω ∈ X we will prove a lower bound for |X ∩ Ruj ×vj ×wj (ω)|. Let Q be the
dyadic δ-cube containing ω, so eQ ∈ H  and eQ,j ∈ Aj . By the degree lower bound
on H  ,

                          #{Q ∈ Q : eQ ,j = eQ,j } ⩾ dj /K  .

All the cubes above are contained in Ruj ×vj ×wj (ω). Indeed, if eQ ,j = eQ,j then Q ⊂
2−10 · eQ,j , and because ω ∈ 2−10 eQ,j , by approximate symmetry and transitivity
2−10 eQ,j ⊂ Ruj ×vj ×wj (ω). Thus
                                                                                 1
           |X ∩ Ruj ×vj ×wj (ω)| ⩾                               |Q ∩ X | ⩾        rdj .            (25)
                                                                                 2K 
                                       {Q ∈Q : eQ ,j =eQ,j }

Moreover, as described in the remark before this proof, this sum only counts dyadic
cubes that are entirely contained in the rectangle Ruj ×vj ×wj (ω). Now we prove a
matching upper bound. We start by writing X as

                             X =                           X ∩ Q
                                    R∈Aj {Q : eQ,j =R}

                                 =:           SR .
                                      R∈Aj
