Repository navigation
Replies: 1 comment 1 reply
|
CLAIM — fixed-tape lowering of the new 588-sum code schedule in Discussion5314. I will emit an explicit bounded-word instruction schedule, allocate its temporary words by last use, compare the resulting kernel to PR5035, and price all validation, division, temporary cleanup, advances and rewinds on a fixed classical multitape ABI. The target is a complete local tariff, not another scalar-add count or a whole coded caller. No Gaussian profile, selected frontier or other thread's work changes. Base ff3cc58, priority7. Credit the source matrix and finite kernel authors and standard Walsh butterflies. Ali Romman with OpenAI Codex assistance; no subagents. Expected artifact: a focused replayable package and PR; stop after the scoped bill and verification. |
Uh oh!
There was an error while loading. Please reload this page.
FINDING — an exact factorization reduces one actual eight-mode inverse-code evaluation from 896 to 588 signed binary additions/subtractions (308 fewer, 34.375%). It preserves every rounded output of the PR #5035 kernel. The eight denominator-52 calls stay unchanged. This is an ordinary-arithmetic improvement for the physical caller; it removes no recursive Gaussian job and does not increase kappa by itself.
The actual mode matrix has fourteen distinct four-mode supports. Each support contains eight owners. Normalize each row by its first supported sign: the rows then run through all eight patterns (1, +/-1, +/-1, +/-1). Signed source views put each group into a three-bit cube. This is an exact property of the consumed source, not an assumed arbitrary sparse-matrix form.
For one group, gather only Walsh frequencies 0,1,2,4. Four first-bit sums and four differences cost8 additions. Sum the four differences for frequency1 in3 additions. Transform the four sums into the other three selected frequencies in7 additions. Add the four results to the global mode accumulators in4 additions. Thus the complete gather costs14*(8+3+7+4)=308, compared with448 source ADDs. All fourteen gathers finish before any owner changes.
For scatter, write the group's four rounded modes as a,b,c,d. Form a+b,a-b,c+d,c-d in4 additions. The eight owner corrections are the eight values a +/-b +/-c +/-d, each made by one further sum of those pairs. The eight signed owner updates cost another8. Thus scatter costs14*(4+8+8)=280, compared with448. Total:588. Signs are included in the binary operation sax+sby; permutations are fixed source wiring. Copies, moves and cleanup are not silently included in this addition count.
Exact finite arithmetic. Every gather intermediate has magnitude at most8H and every partial global mode at most56H. Rounded modes have magnitude at most14H/13+1/2. Scatter temporaries have magnitude at most56H/13+2; updated owners have magnitude at most69H/13+2. Hence the source width W=bit_length(56H+2)+1 remains sufficient. The checker implements each signed binary sum by a W-bit carry loop and compares its output with exact integer arithmetic; no unlimited-integer result is substituted for a failed word operation. The unchanged source divider still rounds ties away from zero.
A schedule can reuse eight extra word slots for a group: make its four sums and four differences, reduce the differences first, then form each sum-pair's sum and difference before its inputs are reused. The three final coefficients and the odd coefficient are then added to the mode words. Scatter needs only the four pair values and one temporary. These are owned temporary words in addition to the source mode/division words. Full-word writes, sign reads, their routing and final cleanup must be included in any new physical tariff. This result does not replace the source's 122-tape bound or assert that the old transition count decreases by the same percentage.
For the exact three-recoding recipe in PR #5069, the same linear gather/scatter factorization would change its scalar sum count from3896+112=2800 to3588+112=1876, with the appropriate inverse or forward scalar coefficient. That is an arithmetic schedule comparison only. The Gaussian paid profile, boundary affordability, physical common-coordinate access and global admission are unchanged. This closes the factorization scope; it does not justify a larger scan of scalar-only variants for kappa.
Evidence. All112 gather basis columns and all8 scatter basis columns agree exactly with the original matrix. Sixty-four mixed bounded vectors produce byte-value-identical integer outputs to the actual source bit-word kernel. Every one of the new588 signed sums in each vector is checked through its finite carry loop. All counts and range bounds pass in normal and optimized CPython3.12.13 with identical receipts. The source files are hash-pinned. No full native, physical tape, compiler or selected replay was run. Arithmetic equality is all-input from the complete linear basis checks plus the unchanged rounding sites; mixed fixtures corroborate the implementation.
Save as factored_modes.py and run against main ff3cc58:
Expected marker: PASS_WALSH_FACTORED_CODE.
Next task: lower this schedule to one explicit tape layout and price the extra temporary words, signed reads, moves and cleanup before claiming a physical speedup. The current result makes that comparison concrete and preserves the numerical map.
Overlap: current main was fetched; the refreshed full PR/Discussion inventory and an all-state eight-mode/Hadamard search found no matching factorization. Unpublished work and arbitrary unrelated diffs remain outside coverage. No claim is retained.
Credit: the Walsh butterfly is a standard transform algorithm. Dillon's PR #4933 supplies the source mode factorization, and JoyboyBrian's PR5035 supplies the exact rounded kernel, word bound and original tariff. Dugongue and the retained physical/native/precision authors keep their credit. The new contribution is the source-specific fourteen-group schedule, exact operation count and finite-word comparison. Ali Romman with OpenAI Codex assistance, Apache-2.0; author-checked, not independent human or proof-kernel acceptance.
All reactions