Documentation

LeanPool.DistinctDistances.BandTriples

Apex bands #

Formalizes Lemma AB (apex bands) of docs/results/explicit-constant-gain-2-89-2026-10-20.md (§2: rows AB1–AB4 and the AB6 consequences of AB5, with the box of the band variables of §3), as used by Theorem S4 of docs/results/explicit-constant-gain-1-40-2026-10-21.md, in count form. Thresholds are squared distances, scaled by ρ².

The points p i lie in the annulus σ²ρ² ≤ |p_i - c|² ≤ ρ² about a point c; only the annulus is used, not the centroid property of c. The radial excess is y_i = |p_i - c|²/ρ² - σ² (radialExcess). For a squared far threshold Λ = λ² and squared band ends Elo = e_j², Ehi = e_{j+1}², the band triples (apexBandTriples) are the triples (z, a, b) of indices with a ≠ b, z ∉ {a, b}, |ab|² > Λρ², |za| = |zb| and Elo ρ² < |za|² ≤ Ehi ρ². Their number is n² W_j; the sums of y_a + y_b and of y_z over them are n² U_j and n² V_j.

Write P(t) = Σ_j (N_j(t) - 1) for the ordered pairs at squared distance at most t, where N_j(t) counts the indices q with |p_j p_q|² ≤ t, R(t) for the number of palette values r with r² ≤ t, D for the palette size and Q = 3D - n + 1. Band edges are a function E : ℕ → ℝ; the bands are (E j, E (j + 1)] for j < m.

Definitions #

noncomputable def Esgk.radialExcess {n : ℕ} (p : Config n) (c : Point) (ρ σ : ℝ) (i : Fin n) :

The radial excess y_i = |p_i - c|²/ρ² - σ² of the point p i over the inner circle of the annulus σ²ρ² ≤ |p_i - c|² ≤ ρ² (the excess y_p of Lemma AB, at scale ρ).

Equations
Instances For
    noncomputable def Esgk.apexBandTriples {n : ℕ} (p : Config n) (ρ Λ Elo Ehi : ℝ) :
    Finset (Fin n × Fin n × Fin n)

    The band triples of Lemma AB: the triples (z, a, b) of indices (apex z, base pair (a, b)) with a ≠ b, z ≠ a, z ≠ b, base pair farther than the squared threshold Λρ², apex equidistant from a and b, and squared apex distance in the band (Elo ρ², Ehi ρ²]. Its cardinality is n² W_j for Λ = λ², Elo = e_j², Ehi = e_{j+1}².

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For

      The radial excess in the annulus #

      theorem Esgk.radialExcess_nonneg {n : ℕ} {p : Config n} {c : Point} {ρ σ : ℝ} (hρ : 0 < ρ) (hlo : ∀ (i : Fin n), σ ^ 2 * ρ ^ 2 ≤ dist (p i) c ^ 2) (i : Fin n) :
      0 ≤ radialExcess p c ρ σ i

      In the annulus σ²ρ² ≤ |p_i - c|², the radial excess is nonnegative.

      theorem Esgk.radialExcess_le {n : ℕ} {p : Config n} {c : Point} {ρ σ : ℝ} (hρ : 0 < ρ) (hhi : ∀ (i : Fin n), dist (p i) c ^ 2 ≤ ρ ^ 2) (i : Fin n) :
      radialExcess p c ρ σ i ≤ 1 - σ ^ 2

      In the annulus |p_i - c|² ≤ ρ², the radial excess is at most 1 - σ² (the width ω of Lemma AB).

      Per-triple geometry (Lemma AB, "Geometry") #

      Rows AB3 and AB4 #

      theorem Esgk.lower_edge_mul_card_apexBandTriples_le {n : ℕ} {p : Config n} {c : Point} {ρ σ Λ Elo Ehi t : ℝ} (hρ : 0 < ρ) (ht : 0 < t) :
      (2 * Elo - ((4 + t) * σ ^ 2 + (4 * σ ^ 2 - Λ) / t)) * ↑(apexBandTriples p ρ Λ Elo Ehi).card ≤ (1 + 2 / t) * ∑ x ∈ apexBandTriples p ρ Λ Elo Ehi, (radialExcess p c ρ σ x.2.1 + radialExcess p c ρ σ x.2.2) + (2 + t) * ∑ x ∈ apexBandTriples p ρ Λ Elo Ehi, radialExcess p c ρ σ x.1

      Row AB3 of Lemma AB times n²: for t > 0, with K⁺ = (4 + t)σ² + (4σ² - Λ)/t, the band triples T_j with lower band end Elo = e_j² satisfy (2 Elo - K⁺)|T_j| ≤ (1 + 2/t) Σ_{T_j}(y_a + y_b) + (2 + t) Σ_{T_j} y_z. In normalized form this is (2e_j² - K⁺)W_j - (1 + 2/t)U_j - (2 + t)V_j ≤ 0. No annulus hypothesis is needed.

      theorem Esgk.upper_edge_mul_card_apexBandTriples_le {n : ℕ} {p : Config n} {c : Point} {ρ σ Λ Elo Ehi t : ℝ} (hρ : 0 < ρ) (ht : 0 < t) (hlo : ∀ (i : Fin n), σ ^ 2 * ρ ^ 2 ≤ dist (p i) c ^ 2) :
      ((4 - t) * σ ^ 2 - (4 * σ ^ 2 - Λ) / t - 2 * Ehi) * ↑(apexBandTriples p ρ Λ Elo Ehi).card ≤ max (2 / t - 1) 0 * ∑ x ∈ apexBandTriples p ρ Λ Elo Ehi, (radialExcess p c ρ σ x.2.1 + radialExcess p c ρ σ x.2.2) + max (t - 2) 0 * ∑ x ∈ apexBandTriples p ρ Λ Elo Ehi, radialExcess p c ρ σ x.1

      Row AB4 of Lemma AB times n²: for t > 0, with K⁻ = (4 - t)σ² - (4σ² - Λ)/t, the band triples T_j with upper band end Ehi = e_{j+1}² satisfy (K⁻ - 2 Ehi)|T_j| ≤ (2/t - 1)⁺ Σ_{T_j}(y_a + y_b) + (t - 2)⁺ Σ_{T_j} y_z, for points in the annulus σ²ρ² ≤ |p_i - c|². In normalized form this is (K⁻ - 2e_{j+1}²)W_j - (2/t - 1)⁺U_j - (t - 2)⁺V_j ≤ 0.

      Fibers of triples #

      Witness counts over the base pairs #

      Far points and the palette #

      theorem Esgk.card_sq_far_le_three_mul_far_palette {n : ℕ} {p : Config n} (hcap : ∀ (i : Fin n) (r : ℝ), (DistanceOutNeighborsAtValue p i r).card ≤ 3) (T : ℝ) (w : Fin n) :
      ↑{q : Fin n | w ≠ q ∧ T < dist (p w) (p q) ^ 2}.card ≤ 3 * (↑(NumDistancesOrdered p) - ↑{r ∈ OrderedDistanceValues p | r ^ 2 ≤ T}.card)

      Far points and the palette above a threshold. With the degree cap three, a point p w sees at most 3(D - R(T)) other points at squared distance more than T: each such point lies at one of the D - R(T) palette values r with r² > T, at most three per value.

      Triangle-free apex circles and the per-apex count #

      Row AB2 #

      theorem Esgk.card_apexBandTriples_le_window {n : ℕ} {p : Config n} {c : Point} {ρ σ Λ Elo Ehi : ℝ} (hcap : ∀ (i : Fin n) (r : ℝ), (DistanceOutNeighborsAtValue p i r).card ≤ 3) (hρ : 0 < ρ) (hσ : 0 < σ) (hchord : (1 - σ ^ 2) * (σ + 1) ≤ σ * Λ) (hlo : ∀ (i : Fin n), σ ^ 2 * ρ ^ 2 ≤ dist (p i) c ^ 2) (hhi : ∀ (i : Fin n), dist (p i) c ^ 2 ≤ ρ ^ 2) (hE : Elo ≤ Ehi) :
      ↑(apexBandTriples p ρ Λ Elo Ehi).card ≤ 4 / 3 * (∑ j : Fin n, (↑{q : Fin n | dist (p j) (p q) ^ 2 ≤ Ehi * ρ ^ 2}.card - 1) - ∑ j : Fin n, (↑{q : Fin n | dist (p j) (p q) ^ 2 ≤ Elo * ρ ^ 2}.card - 1))

      Row AB2 of Lemma AB times n²: with the degree cap three, points in the annulus σ²ρ² ≤ |p_i - c|² ≤ ρ² with 0 < σ, the Step L0 chord condition (1 - σ²)(σ + 1) ≤ σΛ (which gives C((0, 2], λ) for Λ = λ²) and squared band ends Elo ≤ Ehi, the band triples satisfy |T_j| ≤ (4/3)(P(Ehi ρ²) - P(Elo ρ²)). In normalized form this is W_j - (4/3)(𝒜(e_{j+1}) - 𝒜(e_j)) ≤ 0.

      Row AB1 #

      theorem Esgk.sum_card_apexBandTriples_ge {n : ℕ} {p : Config n} {c : Point} {ρ Λ : ℝ} {m : ℕ} {E : ℕ → ℝ} (hp : Function.Injective p) (hgp3 : EuclideanGeometry.NonTrilinear ↑p.toFinset) (hρ : 0 < ρ) (hhi : ∀ (i : Fin n), dist (p i) c ^ 2 ≤ ρ ^ 2) (hΛ : 0 ≤ Λ) (hE0 : 4 * E 0 ≤ Λ) (hEm : 4 ≤ E m) :
      2 * (↑n * ↑n - ↑n - ∑ j : Fin n, (↑{q : Fin n | dist (p j) (p q) ^ 2 ≤ Λ * ρ ^ 2}.card - 1)) - 2 * ↑n * (3 * ↑(NumDistancesOrdered p) - ↑n + 1) ≤ ∑ j ∈ Finset.range m, ↑(apexBandTriples p ρ Λ (E j) (E (j + 1))).card

      Row AB1 of Lemma AB times n². Let the band edges E 0, …, E m (squared, scaled by ρ²) satisfy 4 E 0 ≤ Λ (that is, e₀ ≤ λ/2) and 4 ≤ E m (every apex distance is at most 2ρ), with 0 ≤ Λ. For points within ρ of c, with no three collinear, the band triples over the bands (E j, E (j + 1)], j < m, satisfy Σ_j |T_j| ≥ 2(n² - n - P(Λρ²)) - 2nQ, where Q = 3D - n + 1. In normalized form this is -Σ_j W_j - 2𝒜(λ) - 6dd - 4ee ≤ -4.

      Disjoint bands #

      Rows AB6 #

      theorem Esgk.sum_bands_base_excess_le_far_palette {n : ℕ} {p : Config n} {c : Point} {ρ σ Λ : ℝ} {m : ℕ} {E : ℕ → ℝ} (hp : Function.Injective p) (hgp3 : EuclideanGeometry.NonTrilinear ↑p.toFinset) (hcap : ∀ (i : Fin n) (r : ℝ), (DistanceOutNeighborsAtValue p i r).card ≤ 3) (hρ : 0 < ρ) (hlo : ∀ (i : Fin n), σ ^ 2 * ρ ^ 2 ≤ dist (p i) c ^ 2) (hmono : ∀ j < m, E j ≤ E (j + 1)) :
      ∑ j ∈ Finset.range m, ∑ x ∈ apexBandTriples p ρ Λ (E j) (E (j + 1)), (radialExcess p c ρ σ x.2.1 + radialExcess p c ρ σ x.2.2) ≤ (12 * ∑ i : Fin n, radialExcess p c ρ σ i) * (↑(NumDistancesOrdered p) - ↑{r ∈ OrderedDistanceValues p | r ^ 2 ≤ Λ * ρ ^ 2}.card)

      Row AB6u of Lemma AB times n² (from AB5). For monotone band edges, points in the annulus σ²ρ² ≤ |p_i - c|², no three collinear and the degree cap three, the base-pair excess sums over the bands satisfy Σ_j Σ_{T_j}(y_a + y_b) ≤ 12 (Σ_i y_i)(D - R(Λρ²)). The assembly bounds n⁻¹ Σ_i y_i ≤ Y_hi to obtain the normalized row Σ_j U_j - 12 Y_hi (dd - ℛ(λ)) ≤ 0.

      theorem Esgk.sum_bands_apex_excess_le_far_palette {n : ℕ} {p : Config n} {c : Point} {ρ σ Λ H : ℝ} {m : ℕ} {E : ℕ → ℝ} (hcap : ∀ (i : Fin n) (r : ℝ), (DistanceOutNeighborsAtValue p i r).card ≤ 3) (hρ : 0 < ρ) (hσ : 0 < σ) (hchord : (1 - σ ^ 2) * (σ + 1) ≤ σ * Λ) (hlo : ∀ (i : Fin n), σ ^ 2 * ρ ^ 2 ≤ dist (p i) c ^ 2) (hhi : ∀ (i : Fin n), dist (p i) c ^ 2 ≤ ρ ^ 2) (hH : 4 * H ≤ Λ) (hmono : ∀ j < m, E j ≤ E (j + 1)) :
      ∑ j ∈ Finset.range m, ∑ x ∈ apexBandTriples p ρ Λ (E j) (E (j + 1)), radialExcess p c ρ σ x.1 ≤ (4 * ∑ i : Fin n, radialExcess p c ρ σ i) * (↑(NumDistancesOrdered p) - ↑{r ∈ OrderedDistanceValues p | r ^ 2 ≤ H * ρ ^ 2}.card)

      Row AB6v of Lemma AB times n² (from AB5). For monotone band edges, the degree cap three, points in the annulus σ²ρ² ≤ |p_i - c|² ≤ ρ² with 0 < σ, the Step L0 chord condition (1 - σ²)(σ + 1) ≤ σΛ and a squared threshold H with 4H ≤ Λ (that is, h ≤ λ/2), the apex excess sums over the bands satisfy Σ_j Σ_{T_j} y_z ≤ 4 (Σ_i y_i)(D - R(Hρ²)). The assembly bounds n⁻¹ Σ_i y_i ≤ Y_hi to obtain the normalized row Σ_j V_j - 4 Y_hi (dd - ℛ(h)) ≤ 0.

      Box #

      theorem Esgk.card_apexBandTriples_le_two_mul {n : ℕ} {p : Config n} (hp : Function.Injective p) (hgp3 : EuclideanGeometry.NonTrilinear ↑p.toFinset) (ρ Λ Elo Ehi : ℝ) :
      ↑(apexBandTriples p ρ Λ Elo Ehi).card ≤ 2 * ↑n * ↑n

      Box for W_j: with no three collinear, the band triples number at most 2n² (each ordered pair of distinct indices has at most two equidistant witnesses), so W_j ≤ 2.

      theorem Esgk.sum_card_apexBandTriples_le_two_mul {n : ℕ} {p : Config n} {ρ Λ : ℝ} {m : ℕ} {E : ℕ → ℝ} (hp : Function.Injective p) (hgp3 : EuclideanGeometry.NonTrilinear ↑p.toFinset) (hρ : 0 < ρ) (hmono : ∀ j < m, E j ≤ E (j + 1)) :
      ∑ j ∈ Finset.range m, ↑(apexBandTriples p ρ Λ (E j) (E (j + 1))).card ≤ 2 * ↑n * ↑n

      Box for Σ_j W_j: for monotone band edges and no three collinear, the band triples over all bands number at most 2n².

      theorem Esgk.sum_apexBandTriples_base_excess_nonneg {n : ℕ} {p : Config n} {c : Point} {ρ σ Λ Elo Ehi : ℝ} (hρ : 0 < ρ) (hlo : ∀ (i : Fin n), σ ^ 2 * ρ ^ 2 ≤ dist (p i) c ^ 2) :
      0 ≤ ∑ x ∈ apexBandTriples p ρ Λ Elo Ehi, (radialExcess p c ρ σ x.2.1 + radialExcess p c ρ σ x.2.2)

      Box for U_j, lower side: in the annulus σ²ρ² ≤ |p_i - c|², the base-pair excess sum over the band triples is nonnegative.

      theorem Esgk.sum_apexBandTriples_base_excess_le {n : ℕ} {p : Config n} {c : Point} {ρ σ Λ Elo Ehi : ℝ} (hρ : 0 < ρ) (hhi : ∀ (i : Fin n), dist (p i) c ^ 2 ≤ ρ ^ 2) :
      ∑ x ∈ apexBandTriples p ρ Λ Elo Ehi, (radialExcess p c ρ σ x.2.1 + radialExcess p c ρ σ x.2.2) ≤ 2 * (1 - σ ^ 2) * ↑(apexBandTriples p ρ Λ Elo Ehi).card

      Box for U_j, upper side: in the annulus |p_i - c|² ≤ ρ², the base-pair excess sum over the band triples is at most 2(1 - σ²)|T_j| (that is, U_j ≤ 2ω W_j).

      theorem Esgk.sum_apexBandTriples_apex_excess_nonneg {n : ℕ} {p : Config n} {c : Point} {ρ σ Λ Elo Ehi : ℝ} (hρ : 0 < ρ) (hlo : ∀ (i : Fin n), σ ^ 2 * ρ ^ 2 ≤ dist (p i) c ^ 2) :
      0 ≤ ∑ x ∈ apexBandTriples p ρ Λ Elo Ehi, radialExcess p c ρ σ x.1

      Box for V_j, lower side: in the annulus σ²ρ² ≤ |p_i - c|², the apex excess sum over the band triples is nonnegative.

      theorem Esgk.sum_apexBandTriples_apex_excess_le {n : ℕ} {p : Config n} {c : Point} {ρ σ Λ Elo Ehi : ℝ} (hρ : 0 < ρ) (hhi : ∀ (i : Fin n), dist (p i) c ^ 2 ≤ ρ ^ 2) :
      ∑ x ∈ apexBandTriples p ρ Λ Elo Ehi, radialExcess p c ρ σ x.1 ≤ (1 - σ ^ 2) * ↑(apexBandTriples p ρ Λ Elo Ehi).card

      Box for V_j, upper side: in the annulus |p_i - c|² ≤ ρ², the apex excess sum over the band triples is at most (1 - σ²)|T_j| (that is, V_j ≤ ω W_j).