Repository navigation
Reduce bounded NTT temporary storage from 17,920 to 1,282 (no new κ) - #5886
Merged
Mister-Meeseeks merged 1 commit intoOct 27, 2026
Merged
Mister-Meeseeks merged 1 commit into
Mister-Meeseeks merged 1 commit into
Conversation
This was referenced Oct 27, 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.
Summary
Reduce the fixed 512-point bounded NTT multiplier's owned temporary storage by 16,638 words, answering Open next question 2 of David Ganz's #5466.
Claim type: scoped program-refinement proof with a finite source-bound certificate. Address renaming preserves every opcode, branch target and per-input execution count. It preserves operands and exterior memory, including abandoned old temporary addresses, and returns the smaller owned arena and fixed scratch to zero. The original 20 scratch words and 513 output words are additional in both versions.
The new allocation and simulation proof build on #5466's cited bounded multiplication theorem. They do not audit or re-prove that theorem. Interval coloring and simulation are classical; the contribution is their checked refinement of this concrete construction. Original source bytes and predecessor credit remain unchanged.
Evidence
b1b8ce5622a01a8e818defc25c836a440568d707for 15 package/input files. Official export integrity and an optimized Git-free replay of that export pass. A separate read-only review found no correctness blockers in the new proof and transformation.From the repository root, with CPython 3.12.15 and the standard library:
Expected output:
PASS_WORDRAM_LIVE_STORAGE,PASS_REGISTERED_RESEARCH_PACKAGEandPASS_RESEARCH_COMMIT_BYTES.Limitations
The 1,282-word minimum applies only to the declared whole closed-lifetime allocation rule. It is not an unrestricted storage lower bound. The all-input endpoint conclusion uses the original bounded multiplier theorem as a premise and the new written simulation; finite execution examples do not enumerate all 1,024-bit operands. The nine certified balanced templates are not a census of every asymmetric length pair. Offline generation costs are separate from emitted runtime instructions. No new kappa, selected consumer, selected-supplier admission, complete machine formalization or independent human/formal proof-kernel review is claimed. Lean, Docker, the selected cold replay and the approximate FFT backend were not run.
Open next questions
Related open work
Refreshed the titles and bodies of this account's open PRs created since the advance CLAIM, including #5887 through #5893. None studies the fixed #5466 NTT temporary arena or computes this allocation quantity.
None is used as a premise, and no additional computations were run to compare their results.
CI notes
For commit
b1b8ce5622a01a8e818defc25c836a440568d707, run 40495644209 failed inplanat Onboarding helper tests. All ten failure/error entries are intests/test_research_current_assignment.py; the final summary isFAILED (failures=8, errors=2, skipped=22).The two errors are
KeyError: 'follow_up_steps'andKeyError: 'catalog_first_step'. The eight failure entries concern the frozen-card count (0 != 16), missing-helper/reference rejection, and sparse-reference receipts. This is the reported shared onboarding failure on mainde5ec2e7a6074068452f45b1a191b5c72832df4a; the test file and shared implementation are unchanged by this PR. The sameplanfailure and skippedreplayare also present on #5885. No shared tests or code were changed to address it.replaywas skipped. Hosted replay has not certified this package; only the local package checks reported above have run. No hosted scientific success is claimed.Merge Danger
Door: two-way
Adds only
research/wordram-live-storage/.Blast Radius: research