Repository navigation
Implement encoded one-pass Gaussian normalization - #3127
Merged
Mister-Meeseeks merged 1 commit intoOct 17, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR2287 specifies linear-time Gaussian normalization, but its rank is a host integer and its arithmetic uses word arrays. This implements
z -> ((1-i)/2)^D zon the physical tape framework from PR3091/3087, with encoded Counts, exact division checks, ten fixed scratch roles, preserved borrowed inputs, and complete scratch/output cleanup.For
h>=2,N>=1,0<=D<=handV=2hN, the scoped written argument gives O(V) time and O(h+log(N+1)) local scratch, with protected output paid separately. It covers encoded setup, input access, signed carry, variable shift, head return, rejection and nested caller handoff. The identity and O(V) specification are credited prior work; this is their physical implementation, not a new exponent or a complete recursive supplier.The independent Gaussian-integer oracle checks 7,728 exhaustive small cases and 1,022 larger boundary/sample cases. Controls cover late rejection/reuse, parent ownership, four arithmetic mutations, source drift and typed-receipt corruption. A same-input physical comparator repeats the degree-one kernel D times: at h=96, N=4, D=34 it uses 2,584,607 tape events versus 66,930 for the fused implementation (38.62x). This is a controlled D-pass baseline, not an end-to-end multiplication speedup or a comparison against PR2287's already fused recipe.
Validation passed on Python 3.12.14/Linux:
The registered checks include an optimized, read-only Git-free replay. Publication-byte checks passed for all 37 package/input files. Base:
997e6a9ca7b4f95d50e366f61412fd640d72a88a; exact dependency pins, proof and receipts are in the package. Hosted CI and independent review remain pending.Prepared by Tekalign with substantial OpenAI Codex assistance; Apache-2.0. Credit Jose Manuel (
jmbarrancoml) for PR2287, PR3091/3087 and related PR3098 scalar work, Alejandro Zarzuelo Urdiales for Gaussian parity/grid results, James Chang for the PR1869 ripple-addition lineage, and the preserved source-chain contributors. The remaining work is composition with phase sweeps and the fast recursive C child, caller grid admission, restoration and final truncation. The selected frontier and existing source packages are unchanged.