#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Build `artifacts/rev-left-divisor-signs.md`: one new section 1bis before section 2. Carrier: `research/left-divisor-signs.md` (sha 6ecf5940, 590 lines). It is the note that owns the FAMILY bookkeeping of the left coefficient -- the sector split, the supports (a,b) = (delta+rho, nu+sigma), the statement that the triangle over the split is free -- so a measured statement about which of a family's two factors carries the price, and what flattening one of them buys, belongs here and will be read. It carries no pending revision (RESEARCH-HANDOFF #899, grouped-divisor-moment #902, structural-literature-audit #905, small-divisor-kernel #908, prime-band-completion #909, prime-dispersion #912 and IMPORT-MAP #917 are the occupied bases). """ import hashlib import os RUN = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SRC = os.path.join(RUN, "evidence", "docs", "research__left-divisor-signs.md") DST = os.path.join(RUN, "artifacts", "rev-left-divisor-signs.md") BASE_SHA = "6ecf59407efe64bf22422c17acede20c77f3193b0d8ee983311369ff9d1e0805" ANCHOR = "\n## 2. Type I: no zero-frequency budget, but a twist-height obligation\n" BLOCK = """ ## 1bis. The family bookkeeping of section 1 has a price, and the price has an exact escape Section 1 splits a box into dyadic support sectors `(a,b) = (delta+rho, nu+sigma)` and records that the triangle over them is free. That is a statement about a BOUND. The sectors also carry a price, because any interface that consumes the coefficient through its singular values is priced by the general lemma of `prime-dispersion.md` section 5bis (proved there, `(P1)`/`(P2)`; the `(D1)` case is `grouped-divisor-moment.md` section 6.1): ```text R := ||A||_nuc/||A||_F = 1 + (|c2|/|c1|) v sqrt(D_mu D_t) + O(v^2), D_mu = (U2U4 - U3^2)/U2^2 over the ROW family {mu_w}, w = h/l , D_t = (V2V4 - V3^2)/V2^2 over the COLUMN family {t_m}, t_m = M/m , ``` so the first-order excess vanishes **exactly** iff one of the two families is constant. Measured on the object (`work/flat-factor.py`, `artifacts/flat-factor.out`): with one row, or one inner point, the matrix *is* rank one, nuclear = Frobenius identically, and `R - 1 = 1.1e-16` against `4.5e-04` for the full family. **Which factor carries the price is a measurement.** For the corpus's box (`A0 = L0 = 8`, `m in (512,1024]`, endpoint ratio 2): `D_mu = 1.12e-01` against `D_t = 2.08e-02`, i.e. the **ratio family** carries the larger dispersion even though the box already confines `h/l` to a factor-4 window; `sqrt(D_mu D_t) = 0.0482`. Both normalisations are checked (distinct ratios, and one row per pair) because the conclusion must not depend on which one is used. **Two flattenings are available to a smoothing or averaging choice, and they are not equivalent.** With `buy` = the price after, `mass` = the fraction of the family kept, `profit = mass/buy`: | flattening | `buy` | `mass` | `profit` | |---|---|---|---| | ratio SHELL `\\|w/w_typ - 1\\| <= 1/2` (a fixed profile) | 0.715 | 0.922 | **1.29x** | | ratio SHELL `<= 1/4` | 0.418 | 0.609 | **1.46x** | | ratio SHELL `<= 1/8` | 0.218 | 0.344 | **1.58x** | | inner WINDOW shortened to `eps = 1/2` | 0.667 | 0.500 | 0.75x | | inner WINDOW `eps = 1/4` | 0.400 | 0.250 | 0.62x | | inner WINDOW `eps = 1/8` | 0.222 | 0.125 | 0.56x | So the **ratio side is the favourable flattening** -- ratios far from typical carry the dispersion without carrying the mass -- and the obvious "short window" move on the inner variable is **anti-optimal**, buying the price at 1.33x to 1.78x the mass it saves. Neither is a saving by itself: a restriction is still a restriction, and the escape pays only for an interface that **averages over that index**, which is the shape `SEARCH-CONVENTIONS.md` section 1 names for the trilinear instrument ("trilinear when an average over `a` is present"). **The escape this corpus actually uses is a different one, and it is why the deficit is not here.** The coefficient side is free because `v <= 1`: section 3 of `small-divisor-kernel.md` puts it exactly ("it is cheap here only because `A <= MN/x`"), and `log_x(1 + C v) = 0` on every band with `A <= MN/x`. That is the smallness of the expansion parameter, not the flatness of a family, and it is already in the standing accounting. **And the interface that DEMANDS a flat factor is the one measured not to have it.** The smooth-modulus branch of Deshouillers-Iwaniec / Bettin-Chandee -- the branch live on the finer `(h,d1,d2)` index -- requires a *fixed smooth profile* `g0(c/C, d/D)` on one factor of the modulus and one of the inverted variable (`SEARCH-CONVENTIONS.md` section 1; `IMPORT-MAP.md` section 5; held in `G2-STATE.md` section 2), and the two attempts to supply it are closed with numbers: the Mobius-signed weights are Fourier-flat at 0.57 to 1.15 times the flat null (31 of 31 slices, median 0.82, largest single mode 2.8e-3) where a usable smooth component needs `C/K` well above 100 (`OUTCOMES.md` :2813), and Rosser weights cannot take a smooth profile at all (`G2-STATE.md` :237). The flatness the price lemma wants (a constant index family) is therefore **not** the flatness the smooth-profile hypothesis wants (a concentrated Fourier profile), and this note records the distinction so it is not paid for twice. **One bounded gap, named rather than pursued.** The ratio-side flattening becomes free for an interface that averages over the pair ratio. No served note averages over that index -- the corpus averages over the dual frequency, where the price is an identity `sum_t |w_hat(t)|^2 = c M`, and over the gcd. Building one such interface and pricing it with the lemma is the cheapest way the measured 1.3x to 1.6x stops being a restriction and becomes a saving. Nothing here changes any exponent. """ def main(): base = open(SRC, "rb").read() sha = hashlib.sha256(base).hexdigest() if sha != BASE_SHA: raise SystemExit("base sha changed: %s != %s -- re-read the served document" % (sha, BASE_SHA)) text = base.decode("utf-8").replace("\r\n", "\n") if text.count(ANCHOR) != 1: raise SystemExit("anchor is not unique (%d)" % text.count(ANCHOR)) out = text.replace(ANCHOR, BLOCK + ANCHOR) with open(DST, "w", encoding="utf-8", newline="\n") as fh: fh.write(out) print("wrote %s (+%d/-0 lines) base %s" % (os.path.relpath(DST, RUN), out.count("\n") - text.count("\n"), sha[:8])) return 0 if __name__ == "__main__": raise SystemExit(main())