Bounding the finite set of primes relevant to square-divisibility violations.
The set of primes q with q ≤ √(bX+b) that are not in S. Any violation by q ∉ S must have q² ≤ bX+b, so q ≤ √(bX+b) < √(bX+b)+1. Either q² | N (so q² ≤ X ≤ bX+b) or q² | bN+d with d < b (so q² ≤ bX + b - 1 < bX+b).
Equations
- LeanPool.DeadEnds.relevantNotInS b X S = {x ∈ LeanPool.DeadEnds.primesBelow' ((b * X + b).sqrt + 1) | x ∉ S}
Instances For
Union bound: card(V) ≤ ∑_{q ∈ relevantNotInS} card(V_q).
Combines violation_subset_biUnion with Finset.card_le_card and Finset.card_biUnion_le.
Uses Finset.card_biUnion_le : (s.biUnion t).card ≤ ∑ a ∈ s, (t a).card.
The finite sum ∑{q∈Q} 1/q² over primes in Q is ≤ the tsum ∑'{p>y} 1/p²
where all primes q in Q satisfy q > y.
This uses that Q (as a subset of {primes p > y}) contributes to the infinite sum.
Since 1/q² ≥ 0 for all primes q, and the sum over primes converges,
the finite partial sum is bounded by the full tail sum.
Uses Summable.sum_le_tsum : ∀ {ι : Type*} {f : ι → ℝ} (s : Finset ι), (∀ i ∉ s, 0 ≤ f i) → Summable f → ∑ i ∈ s, f i ≤ ∑' i, f i.
Violation count is bounded by the prime-square tail term plus a square-root count term.