Repository navigation
Reuse all numerical and ROM backing in the actual fixed-node CRT row consumer - #6100
Merged
Mister-Meeseeks merged 2 commits intoOct 28, 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.
PR5625 recomputes each CRT row correctly but retains a fresh numerical and ROM workspace for every row. This package supplies an explicit fixed-node constructor interface that reuses all 118 actual backing roles, while preserving the numerical algorithms, encoded ROM program, and retire-before-source-update order.
The written source-relative proof accounts for every constructor and alias, numerical head-one reentry, historical blank tails, current-state offsets, and the sum of each role's historical capacity. It gives a conservative width-only envelope independent of row count. Exactly six declared substitutions connect the unchanged query body to the new allocator; pinned source bytes reconstruct the adapted file exactly.
The actual predecessor fixture executes rows 0–4 then 4–0, including idle rows and shorter canonical reentry after longer extent. It retains 2,299 cells across 118 stable roles, reaches
(1, 2)forward, and restores all source bytes, entry heads, and protected dirty words. Eleven controls include stale offsets through the actual producer, source writes before close, missing tail retirement, accidental aliasing, and incorrect max-total accounting.Validation: registered Python 3.12 normal and optimized replay; separate AI code/proof review and independent normal/optimized runs; committed-byte, mode and source-history checks; official export input-coverage check; and read-only Git-free normal/optimized replay all pass. The first actual fixture took 2.499 seconds. The full predecessor suite, Lean, Docker, and selected-frontier replay were not run.
The all-size arithmetic, ROM and cleanup theorems remain credited predecessor hypotheses. This is a fixed-node ownership result, not a changed-precision/key composition, native admission, new kappa, or selected-frontier change. The deliberately loose ROM envelope is not a sharp all-size price.
Credit: Ali Romman's PR5625 and PR5353; JoyboyBrian's joined numerical/query/ROM work; commdata2338's PR5519 bank audit; PR6082's rolewise historical-capacity principle; and the retained CRT predecessor chain. Prepared by JoyboyBrian with substantial OpenAI Codex assistance. Apache-2.0.
Canonical investigation: #4709 (comment)