Skip to content

Reuse all numerical and ROM backing in the actual fixed-node CRT row consumer - #6100

Merged
Mister-Meeseeks merged 2 commits into
CrocSwap:mainfrom
JoyboyBrian:brian/r19-task09-crt-row-reentry
Oct 28, 2026
Merged

Mister-Meeseeks merged 2 commits into
CrocSwap:mainfrom
JoyboyBrian:brian/r19-task09-crt-row-reentry

Conversation

@JoyboyBrian

Copy link
Copy Markdown
Contributor

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)

@Mister-Meeseeks
Mister-Meeseeks merged commit c62bc64 into CrocSwap:main Oct 28, 2026
1 of 2 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.

2 participants