Repository navigation
Execute uniform row-ROM queries from encoded parameters - #4752
Merged
Mister-Meeseeks merged 1 commit intoOct 22, 2026
Merged
Conversation
This was referenced Oct 22, 2026
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.
PR4739 leaves its fixed ROM loop under host control, while PR4192's written cost argument already charges scalar lowering. This follow-up supplies one executable uniform query component: the same 752-instruction program reads canonical binary h, s, offset and target on ten tapes, validates their relations, selects the bit from an externally supplied s·2^h-bit ROM, erases all private scratch and returns every head. No decoded parameter, host array length or loop index is available to the program.
For every h≥1, 2≤s≤2^h, offset<s and target<2^h,
PROOF.mdproves correctness and the complete instruction boundT ≤512(s·2^h+1)(h+bit_length(s)+2)^2.The proof lists static paths and iteration counts for every counter, comparison and cleanup loop, including the binary-h countdown and s=2^h endpoint. Measured executions use bits plus L/R/blank markers and include equality, Boolean branches, finite-register assignments, jumps and tape operations. A separate explicit three-bit local lowering gives
T_binary ≤65536(s·2^h+1)(h+log2(s)+1)^2.That binary bound is proved, not measured by a binary emulator. Input framing, ROM/header preparation, serialization from the source key, CRT reconstruction and the complete repair/compiler/E tariff remain external. No new kappa or selected-frontier change follows.
Validation on Python 3.12.2:
Only
research/crt-uniform-rom-query/is added. The small derived ROM fixture records PR4739's exact source receipt and checks its ROM hash; it does not import or rerun the producer. Exact predecessors are #473926ccde014218f7d906d1251dc295fbc1437ede8a, #4192519d811cc48693ad9969d6d7994bef3940167005, and #4716d9913fe24f119f9d431f324dbbe7d90de409a856. The existingresearch/crt-address-streamsis acknowledged as encoded-arithmetic prior art. All heads were live-checked at claim time; cached overlap covered 506 open PRs, 3,650 Discussion records and 5,860 local notes on canonical b58/priority 7, with complete listed pagination, not a novelty certificate.Canonical investigation. Open next questions specify a paid descriptor adapter and actual ROM-production/cache costs before a complete evaluator comparison. No full historical suite, Lean, Docker or complete repair replay was run.
Prepared by JoyboyBrian with substantial OpenAI Codex assistance; author/AI-checked evidence, not independent human or formal acceptance. Apache-2.0. Credit Cinna Davis, ToikY, Hiroki KUMAZAKI, unpaidmoon, Ryanson Jonathan, Jose Manuel, John-Michael Smith and Douglas Colkitt's predecessor CRT/physical-repair work.
Submission checkpoint: canonical main was fetched again and remains
b58ad9ef4d4e861b0eaa5dba41742bdc072dca51, priority revision 7. The refreshed complete inventory (2026-10-22 19:10:08 UTC) covers 512 open PRs, 3,673 Discussion records and 5,860 base local notes. Scoped search and live predecessor heads were rechecked; no competing result was identified in this stated coverage. Closed PR diffs, arbitrary nested code and unpublished work remain outside it.A separate read-only Codex review independently checked the finite program, boundary cases and instruction-count proof without finding a blocker; this is not human or proof-kernel acceptance.