Skip to content

NOR-18R: cached full verifier 4.33× faster in source-locked CPU benchmark - #178

Merged
patrickdugan merged 12 commits into
mainfrom
research/nor18r-cpu-bigint-memory-20261116
Nov 16, 2026
Merged

patrickdugan merged 12 commits into
mainfrom
research/nor18r-cpu-bigint-memory-20261116

Conversation

@patrickdugan

Copy link
Copy Markdown
Contributor

NOR-18R: source-locked executable CPU and bigint benchmark

Continues merged NOR-18 #175 and companion MathCan NOR-18R theorem #98, which proves exact native/cached reciprocal-work multiplicities and public-prefix/full-mask parity.

Original source-locked public fixture

Regenerates all original NOR-18 288 heldout source cases using the registered seeds and validates each full-public-input SHA against original evidence SHA-256 9905aa23466b98ba2068e6daf9206d35c453b8b3b75bd27c3ab7ff8f0db4041b. Selects 64 public-only cases: eight late_source, four signed, four rational from each of four cohorts. Fixture includes only two degree-192 input/output demonstrations, degree-256 public query INPUT and public headers. Planted program identity and withheld future query OUTPUT are absent.

All four algorithms recompute the same degree-256 public candidate-query outputs and return exactly identical sixteen-bit public acceptance masks and output unanimity certificates: original sixteen independent full checks, cached full sixteen-template batch, degree-160 cached prefix with independent full survivor checks, degree-176 cached prefix with independent full survivor checks.

First heldout CPU and memory measurements

Original successful CPU run, CPython 3.12.16, Linux x86_64, 4 logical CPUs. Per source/mode: two warmups, 7 measured repetitions, mode order deterministically randomized, GC collected before samples and disabled during timed segments. Query simulations included in each total.

Public algorithm Median full CPU time Median verification phase Untimed median Python-traced temporary memory
Native sixteen independent exact checks 23.913 ms 21.291 ms 74.1 KiB
Four-unary cached sixteen-template batch 4.327 ms 2.266 ms 128.2 KiB
Cached prefix 160 + native survivor checks 12.331 ms 9.706 ms 112.8 KiB
Cached prefix 176 + native survivor checks 8.836 ms 5.744 ms 120.6 KiB

Median paired complete CPU speedup = 4.32878×, cached faster in 64/64 source cases. Predeclared ≥1.5× and ≥48/64 faster criterion PASSED. Four-cohort block-bootstrap 95% percentile range [4.2803×, 4.3959×] is conditional on these fixed source cohorts and this first hosted CPU run.

Measured reciprocal bigint multiplication counts and sum of operand positive bit-length products, including a common public query transform:

  • Native: 31,750,144 integer products, 845,306,615 operand-bitwidth-product units.
  • Cached: 4,476,928 products, 163,683,594 operand-bitwidth-product units.
  • These bigint operand totals are a separately measured size proxy, distinct from CPU time or native machine instructions.

Caching increases median independently measured tracemalloc temporary allocations. Isolated worker ru_maxrss was 29,364 KiB for all four modes, with no increase over the worker's fixture-loaded baseline. RSS lacks resolution for the transient-memory distinction.

Immutable evidence and three-job CI

The complete original first-hosted artifact (ID 14195445905) was archived byte-for-byte into NOR-18R original evidence ZIP in source control, then the one-shot artifact writer was deleted. SHA-256:

  • Public fixture, 1,306,733 bytes: 5d75f2971d8b94daa9b65caae68e65921f2a90cd267481c7bb80a881e937d186
  • Original benchmark, 580,813 bytes: 59d48c8c9fe1bdf80ee2662d0c18f069f8414a92d48ad7980e3bb19b2a10ad98

First independent hosted source-audit passed, reconstructing all 64 public masks and hypothetical query predictions, 1,792 timing samples, 256 separate memory profiles, the exact bigint inverse operand-width ledger, and 4096 bootstrap draws from the archived bytes. Permanent workflow has separate unit/semantic-parity, frozen original-evidence independent audit, and executable rerun jobs. Frozen result receipt, benchmark, independent auditor and preregistered study included.

This is a physically measured first-run CPython speedup for a fixed synthetic source subset. The narrow cohort-bootstrap interval does not establish cross-machine reliability, and source loading was outside timed segments. General GPU or production proof-verifier speedup remains untested.

patrickdugan and others added 12 commits November 16, 2026 11:17
…ss, inverse bigint ledger and untimed memory
…ures, bigint multiplications and isolated RSS
…iginal hosted timing and public fixture bytes
…, native masks, bigint widths and memory audit
@patrickdugan
patrickdugan merged commit 17f5a6b into main Nov 16, 2026
9 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