Documentation

LeanPool.DistinctDistances.S4ChordCover

Chord conditions from a table of radius cells #

The chord side conditions C((lo, hi], √T) of scripts/verify_constant_gain_1_40.py (the Chords.holds_on checks of the P rows) are proved from one table of radius cells. The table is generated by scripts/emit_constant_gain_1_40_chords.py into the modules Esgk.S4ChordTableNN and is used by Esgk.S4ChordTable.

The soundness of the trees is ChordBoxTree.exists_dist_sq_le_of_check (Lemma C′ of docs/results/explicit-constant-gain-5-239-2026-10-20.md, §2).

@[reducible, inline]

A list of radius cells: entries (c₁, t′, tree), each cell starting where the previous one ends. With the scales Q and QT of a table, the cell ends at r₁ = c₁ / Q and has the squared bound T′ = t′ / QT.

Equations
Instances For
    def Esgk.S4.cellsCheck (Q QT : ℕ) :
    ℕ → ℕ → ChordCells → Bool

    The check of a cell list with scales Q, QT, started at the code c: the tree of every cell [r₀, r₁] passes ChordBoxTree.check sig T′ on the box [sBar, 1] × [r₀, r₁], and the last cell ends at the code e.

    Equations
    Instances For
      theorem Esgk.S4.cellsCheck_append {Q QT c m e : ℕ} {l₁ l₂ : ChordCells} (h₁ : cellsCheck Q QT c m l₁ = true) (h₂ : cellsCheck Q QT m e l₂ = true) :
      cellsCheck Q QT c e (l₁ ++ l₂) = true

      The check of a concatenation of two cell lists from the checks of the parts.

      def Esgk.S4.coverCheck (A B C : ℕ) :

      The cover check of a chord condition with the codes A, B, C (lo ≥ A/Q, hi ≤ B/Q, T ≥ C/QT) on a cell list started at the code c: the cells reach B, and every cell before that whose end exceeds A has t′ ≤ C. It compares natural numbers only.

      Equations
      Instances For
        def Esgk.S4.allRange (f : ℕ → Bool) :
        ℕ → ℕ → Bool

        The check f k = true for a ≤ k < a + m.

        Equations
        Instances For
          theorem Esgk.S4.allRange_append {f : ℕ → Bool} {a m₁ m₂ : ℕ} (h₁ : allRange f a m₁ = true) (h₂ : allRange f (a + m₁) m₂ = true) :
          allRange f a (m₁ + m₂) = true
          theorem Esgk.S4.allRange_spec {f : ℕ → Bool} {a m : ℕ} (h : allRange f a m = true) (k : ℕ) :
          a ≤ k → k < a + m → f k = true
          theorem Esgk.S4.exists_dist_sq_le_of_cover (c p : Point) (q : Fin 3 → Point) {ρ : ℝ} {lo hi T : ℚ} {Q QT A B C c₀ e : ℕ} (cells : ChordCells) (hcells : cellsCheck Q QT c₀ e cells = true) (hcover : coverCheck A B C c₀ cells = true) (hc₀ : c₀ ≤ A) (hA : mkRat (↑A) Q ≤ lo) (hB : hi ≤ mkRat (↑B) Q) (hC : mkRat (↑C) QT ≤ T) (hhi0 : 0 ≤ hi) (hρ : 0 < ρ) (hp : ↑sig ^ 2 * ρ ^ 2 ≤ dist p c ^ 2) (hp1 : dist p c ^ 2 ≤ ρ ^ 2) (hlo : ∀ (i : Fin 3), ↑sig ^ 2 * ρ ^ 2 ≤ dist (q i) c ^ 2) (hhi : ∀ (i : Fin 3), dist (q i) c ^ 2 ≤ ρ ^ 2) (heq : ∀ (i j : Fin 3), dist p (q i) = dist p (q j)) (hr1 : ↑lo ^ 2 * ρ ^ 2 < dist p (q 0) ^ 2) (hr2 : dist p (q 0) ^ 2 ≤ ↑hi ^ 2 * ρ ^ 2) :
          ∃ (i : Fin 3) (j : Fin 3), i ≠ j ∧ dist (q i) (q j) ^ 2 ≤ ↑T * ρ ^ 2

          The chord condition from a cell table, for an apex and three equidistant points. Let cellsCheck Q QT c₀ e cells = true and coverCheck A B C c₀ cells = true, with c₀ ≤ A, A/Q ≤ lo, hi ≤ B/Q, C/QT ≤ T and 0 ≤ hi. Then for every apex p of the annulus sBar²ρ² ≤ |p - c|² ≤ ρ² and three points q i of the annulus at a common distance r from p with lo² ρ² < r² ≤ hi² ρ², two of the points are at squared distance at most T ρ².

          theorem Esgk.S4.Setting.chordHolds_of_cover {n : ℕ} (S : Setting n) {lo hi T : ℚ} {Q QT A B C c₀ e : ℕ} (cells : ChordCells) (hcells : cellsCheck Q QT c₀ e cells = true) (hcover : coverCheck A B C c₀ cells = true) (hc₀ : c₀ ≤ A) (hA : mkRat (↑A) Q ≤ lo) (hB : hi ≤ mkRat (↑B) Q) (hC : mkRat (↑C) QT ≤ T) (hhi0 : 0 ≤ hi) :
          S.ChordHolds lo hi T

          The chord condition Setting.ChordHolds lo hi T from a cell table: under the hypotheses of exists_dist_sq_le_of_cover on the cells and the codes, every saturated incidence of radius r with lo²ρ² < r² ≤ hi²ρ² has two of its points a < b at squared distance at most Tρ² (ρ = distanceAnnulusRadius, annulus at sBar).

          The cell list elaborator #

          Split a chord-cell line into nonempty space-delimited fields.

          Equations
          Instances For

            Construct an integer literal using Int.ofNat or Int.negSucc.

            Equations
            Instances For

              Construct mkRat z d for a signed chord-certificate entry.

              Equations
              Instances For

                The tree of the tokens from position i (prefix form: c z d is cert (z/d), D is disk, A t t is splitApex, R t t is splitRadius, Q t t t t is split), with the position after it.

                Equations
                Instances For

                  s4_chordcells% "…": a ChordCells list, one cell per line c₁ t′ tree (natural codes of the cell end and of the squared bound, then the tree in prefix form).

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