Repository navigation
Reduce XOR tape travel by at least N-2 crossings (no new κ) - #6028
Merged
Mister-Meeseeks merged 1 commit intoOct 28, 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
A nested scratch-swap schedule reduces the in-place XOR correction of Dugongue / David Ganz's #3879 by at least N-2 record crossings, or (N-2)(B+2) unit transitions, for every nonzero mask on N=2^h >= 4 equal-width B-bit records. It restores the same arbitrary dirty scratch record and both heads, with the same 3N/2 record swaps and no additional tape or scratch cells.
Here delta=m+l, m is its highest power of two, and 0<=l<m. The exact transition count is
(3N/2)(2B+3)+(B+2)H_nested; finite control has2H_nested+9N/2+1states and16H_nested+33N/2entries. At N=512, delta=16, crossings fall from the cited 9,182 to 8,222. The new B=2 machine executes 38,264 transitions, saving 3,840 under the cited serial invoice.Claim type: scoped mathematical construction and proof with exact finite evidence. No optimality, new kappa or complete multiplication theorem is claimed. The classical star-transposition identity supplies the restoration argument; the new contribution is the nested physical schedule and its all-mask exact invoice. The construction, proof and verifier were produced by Nick Petalas.
Only eight files under
research/nested-xor-scratch-tapes/are added. PR #3879 supplies the record ABI, credited transition templates and serial formula. Its result is cited, not audited or replayed. Gonzalo Mier's #3480, Cinna Davis's #2297 and the retained routing/decoder lineage keep their credit. Merged #3880 provides a different larger-buffer space/time tradeoff, not this nested one-record schedule.Evidence
f916400a3dad1f5b7656a2d3dfe72ecf447dd1a9.From the repository root:
Any CPython 3.12 path can replace the local interpreter; standard library only. Expected markers are
PASS_NESTED_XOR_SCRATCH_TAPES,PASS_REGISTERED_RESEARCH_PACKAGEandPASS_RESEARCH_COMMIT_BYTES.verify.py --emit-resultprints the generated receipt. Default replay writes nothing.Limitations and unrun obligations
The unrestricted quantifiers rest on the written proof. Executable schedules are bounded to h<=9 and literal tables to 250,000 entries before allocation. Full native-return layout, stream acquisition, scratch placement/lifetime, representation conversion, caller integration and recursive/outer costs remain open. No selected framework assumption is discharged. No selected cold replay, Lean proof or complete rounded multiplier was run. Independent human and formal proof-kernel review are unclaimed; the selected frontier is unchanged.
Open next questions
The first verified improvement ended construction work. These questions are unreserved.
Related open work
The completion refresh read the titles and stated scopes of all seven other open account PRs created since the advance CLAIM at
2026-10-27T22:06:36Z, #6021 through #6027. Only the adjacent record-permutation work #6024 is relevant here, as distinguished above. None computes a competing XOR-by-mask record-crossing or transition count. No additional scientific computations were run to validate or compare another contribution.CI notes
Both hosted checks passed at exact head
f916400a3dad1f5b7656a2d3dfe72ecf447dd1a9in run 40593150762: plan in 4m7s and replay (research/nested-xor-scratch-tapes) in 1m41s. The completed PR check list was read once; run metadata confirms completed success and the same head as the PR.Hosted replay certifies the registered normal and optimized bounded package checks. All recorded local scientific, metadata, committed-byte/source-history and read-only Git-free checks also passed. The universal statement rests on the written proof, and the native/caller obligations above remain open. Independent human and formal proof-kernel acceptance remain unclaimed.
Merge Danger
Door: two-way. The package can be reverted independently.
Blast radius: package. No shared code, frozen predecessor, workflow or selected-result file changes.