Tao Section 5: the two counting bounds of the Type II estimate
ProvedTaoFivePrimes.typeII_counting_boundsLet and . Let be a finite set of odd integers contained in and a finite set of odd integers contained in . Then
These are the two counting bounds
that enter the source's Type II estimate after the bilinear sum has been split dyadically and the large sieve applied: and are the masses of the two coefficient sequences, and the estimate proceeds by bounding . Both come from the same elementary fact, that a set of odd integers inside a real interval of length has at most elements, applied to intervals of lengths and ; for one first replaces by , legitimate because on the range.
Formalization Note The two ranges are given as hypotheses on arbitrary finite sets of odd integers rather than as explicit Finsets, which is how they are used and which avoids committing to a particular description of the integers of a real interval. The hypothesis is what makes , so that and squaring preserves the inequality .
import Mathlib open Finset
theorem TaoFivePrimes.typeII_counting_bounds (x W : ℝ) (hx : 0 < x) (hW : 2 ≤ W)
(S T : Finset ℤ)
(hS : ∀ n ∈ S, Odd n) (hSm : ∀ n ∈ S, x / (2 * W) ≤ (n : ℝ) ∧ (n : ℝ) ≤ x / W)
(hT : ∀ n ∈ T, Odd n) (hTm : ∀ n ∈ T, W / 2 ≤ (n : ℝ) ∧ (n : ℝ) ≤ W) :
(S.card : ℝ) ≤ x / (4 * W) + 1
∧ (∑ n ∈ T, Real.log (n : ℝ) ^ 2) ≤ (W / 4 + 1) * Real.log W ^ 2 := by sorry