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.
- A cell list (
ChordCells) holds entries(c₁, t′, t)of natural codes with scalesQ,QT: the cell of an entry is the radius interval[r₀, r₁]withr₁ = c₁/Q, wherer₀is the end of the previous entry (or the start of the list), andtis aChordBoxTreeof the box[sBar, 1] × [r₀, r₁]with the squared boundT′ = t′/QT. cellsCheck Q QT c₀ e cellschecks every tree (ChordBoxTree.check) and that the last cell ends at the codee; it splits over++(cellsCheck_append), so the table is checked in segments.coverCheck A B C c₀ cellschecks, for a condition(lo, hi, T)with codesA/Q ≤ lo,hi ≤ B/Q,C/QT ≤ T, that the cells reachBand that every cell meeting(A, B]hast′ ≤ C. It compares natural numbers only, so it is a short kernel computation.allRange f a mchecksf kfora ≤ k < a + m, and splits overm₁ + m₂.exists_dist_sq_le_of_coveris the chord condition for an apex and three equidistant points of the annulus, andSetting.chordHolds_of_coveris its incidence formSetting.ChordHolds.s4_chordcells% "…"elaborates the cell list from a string (one cell per line).
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).
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
- One or more equations did not get rendered due to their size.
- Esgk.S4.cellsCheck Q QT x✝¹ x✝ [] = x✝¹.beq x✝
Instances For
The check of a concatenation of two cell lists from the checks of the parts.
The check f k = true for a ≤ k < a + m.
Equations
- Esgk.S4.allRange f x✝ 0 = true
- Esgk.S4.allRange f x✝ m.succ = (f x✝ && Esgk.S4.allRange f (x✝ + 1) m)
Instances For
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 ρ².
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
- Esgk.S4.splitCellWords line = List.filter (fun (x : String) => decide (x ≠ "")) line.splitOn
Instances For
Construct an integer literal using Int.ofNat or Int.negSucc.
Equations
- Esgk.S4.integerExpression z = if 0 ≤ z then Lean.mkApp (Lean.mkConst `Int.ofNat) (Lean.mkRawNatLit z.toNat) else Lean.mkApp (Lean.mkConst `Int.negSucc) (Lean.mkRawNatLit (z.natAbs - 1))
Instances For
Construct mkRat z d for a signed chord-certificate entry.
Equations
- Esgk.S4.signedRationalExpression z d = Lean.mkApp2 (Lean.mkConst `mkRat) (Esgk.S4.integerExpression z) (Lean.mkRawNatLit d)
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.