Repository navigation
NOR-20: wide-coefficient exact streamed verifier replicates 4.38x Linux and 4.33x Windows speedups - #183
Merged
patrickdugan merged 13 commits intoNov 16, 2026
Conversation
…ts and source-locked thresholds
… Linux/Windows streamed verifier CPU and allocation benchmarks
…ve exact masks and reciprocal bigint counting
…0 timing samples and per-width speed/memory comparisons
…lly to Ubuntu and Windows CPU benchmark matrix
…mory positive result evidence
…dows benchmark bytes and public-only source fixture
…ux Windows original ZIP is preserved
… timings, 1280 memory profiles and observed bigint widths
…U bigint memory receipt replay
…uts, source SHA and cross-OS caveats
…irst-run audit entrypoint
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.
NOR-20: wide RRC25 coefficients, byte-identical Linux/Windows CPU environments
Continues merged NOR-19 #181, source-locks a NEW deterministic 64-case distribution with 4/8/12/16-bit nominal coefficients and four source families: dense, sparse, late-onset and rational. It preserves the original sixteen-template RRC25 program grammar and exact public verifier while generating two degree-192 input/output demonstrations and a degree-256 query INPUT per case. All private program identities and future query OUTPUTS are absent from the shared public fixture.
The registered source seed is corpus.SEED+94120000+1000003cohort+10007width_index+421*family_index. Each of four 16-case cohorts contains every width/family combination once. The new public source hashes exclude the original NOR-18 288-case corpus. The shared fixture was created once, hashed, uploaded, then downloaded byte-for-byte into independent Ubuntu-24.04 and Windows-2025 CPU jobs.
First hosted cross-platform results
Original successful run: https://github.com/MoralityLabAI/Compactification-Theory/actions/runs/43807479206. Five compared algorithms: native independent 16 checks, eager cached 16, streaming query-first, PRIMARY streaming verify-first, and chunk-4 verify-first. All five reproduced the exact native 16-bit acceptance mask and output-unanimity certificate on all 64 new public cases on BOTH operating systems.
The preregistered replication required exact mask parity, memory ratio ≤0.8 and at least 48/64 memory wins, and native/stream CPU speedup ≥2× on EACH host. All passed. Four-cohort bootstrap 95% conditional intervals: stream/cache memory ratio Linux [0.54192,0.56381], Windows [0.54191,0.56381]; native/stream speed Linux [4.344,4.445], Windows [4.285,4.409]. Timing is one hosted CPU run per host with 2 warmups + 7 shuffled samples per source/mode, each host using the same public input fixture. This is a two-OS/compiler comparison; CPU microarchitecture separation is not experimentally controlled.
Actual wide-rational source input coefficients reached median per-source maximum 2193.5 bits despite nominal 4–16-bit generating polynomial coefficients. The 16-bit stratum exhibited median Python peak 425.95 KiB eager vs 289.46 KiB streaming on Linux, with ratio 0.586, and every source retained its exact certification.
Immutable first-run evidence and independent audit
The original public-only fixture SHA-256 is de7ed801e0e8708afebdbe3699d9074375b156795b40372eb77e2a4a13218c19 (5,416,693 bytes). Four original files are preserved byte-for-byte in source-controlled research/nor20_crosshost/results/nor20_original_crosshost.zip, verified by research/nor20_crosshost/results/nor20_first_frozen_receipt.json:
One-shot cross-workflow archive writer with contents-write permission was deleted after archival commit. Permanent independent source evidence audit passed, reconstructing 128 native masks, 4480 original timing samples, 1280 Python tracemalloc records, 640 R bigint operand-work ledgers, 16384 deterministic source-cohort bootstrap draws. CI also regenerates the source fixture, runs public-only source parity tests, separately measures both platforms, and compares source hashes and every exact case again. Source-dependent readings, integer operand-width limitations, and physical CPU/RSS scope are explicit in the README.
Companion MathCan NOR-20 PR #104 is already merged, Lean kernel/axiom CI green. It proves a conditional bound P*B² on the total observed operand-bitwidth-product work and width-scaled packed candidate-output buffer savings, using ACTUAL intermediate bit lengths rather than assuming nominal coefficient bits bound the inverse series.
Merge gate
Final branch-head CI tests, original immutable audit, Linux / Windows benchmark matrix and cross-host native parity consolidation must all finish green. The full source distribution and primary thresholds were preregistered before first source generation.