theorem
ProjectionTheory.double_counting_ineq
(p : ℕ)
[hp : Fact (Nat.Prime p)]
(X : Finset (ZMod p × ZMod p))
(D : Finset (ZMod p))
(hX : X.Nonempty)
(S : ℕ)
(hS : ∀ t ∈ D, (projImage p t X).card ≤ S)
:
Double-counting inequality on 𝔽_p²: if for every direction t ∈ D the projection
π_t(X) has size at most S, then |X| · |D| ≤ S · (|D| + |X|). This is the key
estimate underlying the contagious-structure double-counting lemma.
Lemma (Double Counting, lower bound). For any subset X ⊆ 𝔽_p² and any nonempty
set of directions D ⊆ 𝔽_p, there exists t ∈ D such that
|π_t(X)| ≥ (1/2) · min(|X|, |D|). That is, max_{t ∈ D} |π_t(X)| ≳ min(|X|, |D|).