Close-pair rows near the n/3 threshold #
Step 1 of docs/results/explicit-constant-gain-2026-10-18.md. A close-pair row
is a sum of local distance degrees over the palette values below the threshold.
Every degree is at most three, and the missing amounts at one vertex sum to
Q = 3D - n + 1; so two rows at one threshold differ by at most Q. With the
close-pair density of the thin annulus, every ball of radius ρ/20 about a
point then holds at least 2n - 5D - 1 points.
The ordered close-pair count is the sum of the rows.
theorem
Esgk.closePairRow_card_eq_sum
{n : ℕ}
(p : Config n)
(i : Fin n)
(T : ℝ)
:
(ClosePairRow p i T).card = ∑ r ∈ OrderedDistanceValues p with r ^ 2 ≤ T, (DistanceOutNeighborsAtValue p i r).card
A close-pair row is the sum of the local degrees over the palette values below the threshold.
theorem
Esgk.closedBall_card_lower_bound
{n : ℕ}
{p : Config n}
(hp : Function.Injective p)
(hgp3 : EuclideanGeometry.NonTrilinear ↑p.toFinset)
(hgp4 : ∀ T ⊆ p.toFinset, T.card = 4 → ¬EuclideanGeometry.Cospherical ↑T)
(hn : 2 ≤ n)
{δ r : ℝ}
(hD : ↑(NumDistances p) ≤ (1 / 3 + δ) * ↑n)
(hx34 : 12 * δ + 4 / ↑n ≤ 3 / 4)
(hr0 : 0 ≤ r)
(hr : 4 * (12 * δ + 4 / ↑n) * distanceAnnulusRadius p ^ 2 ≤ r ^ 2)
(j : Fin n)
:
Every ball of radius r about a point holds at least 2n - 5D - 1 points
when D ≤ (1/3 + δ)n, 12δ + 4/n ≤ 3/4 and the close-pair scale
4(12δ + 4/n)ρ² is at most r².