Skip to content

NOR-20: wide-coefficient exact streamed verifier replicates 4.38x Linux and 4.33x Windows speedups - #183

Merged
patrickdugan merged 13 commits into
mainfrom
research/nor20-crosshost-wide-coefficients-20261116
Nov 16, 2026
Merged

patrickdugan merged 13 commits into
mainfrom
research/nor20-crosshost-wide-coefficients-20261116

Conversation

@patrickdugan

Copy link
Copy Markdown
Contributor

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.

Measurement Ubuntu 24.04 CPython 3.12.16 Windows 2025 CPython 3.12.10
Native 16 median complete time 29.330 ms 22.213 ms
Eager cached median complete time 5.778 ms 4.625 ms
Primary streamed median complete time 5.570 ms 4.337 ms
Median paired native/stream CPU speedup 4.382× 4.331×
Eager cached median complete tracemalloc peak 282.02 KiB 282.01 KiB
Streamed median complete tracemalloc peak 172.09 KiB 172.08 KiB
Median paired streamed/cached peak ratio 0.55063 0.55061
Cases with lower streaming peak 64/64 64/64
Preregistered criteria PASS PASS

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:

  • Linux full benchmark 683,486 bytes SHA-256 6c033440be72ae470769e7a152286677cba8fa3b676e9f9207d0c335ab1ec01d.
  • Windows full benchmark 683,275 bytes SHA-256 85686b13b4526d926f10b0b4f476bea82ab9d2f88dbc63d02704268f9ef88158.
  • First independent comparison 1,296 bytes SHA-256 3a048cfbafb7c9e87f28ed04d7d7e2ecd1b06b3be5c513351aa7fb11fa6a07c4.

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.

patrickdugan and others added 13 commits November 16, 2026 12:56
… 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
…dows benchmark bytes and public-only source fixture
… timings, 1280 memory profiles and observed bigint widths
@patrickdugan
patrickdugan merged commit fd3303e into main Nov 16, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant