Repository navigation
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.
Result
A written construction and fixed-tape cost proof for the exceptional CRT key in the compact switch caller. Three interval reversals implement a padded modular rotation in$12\ell-3$ switch slots at maximum axis width $\ell$ . The fold in each reversal turns reflected pairs into a single-bit switch, so each row omits every active target from its controls.
Each complete replacement key$T(S^{-1}(z))$ costs $O(P^3)$ transitions on $P$ -bit addresses, with $O(P^2)$ visited scratch cells and $O(P^4)$ setup. The proof includes all three current-state queries, copied descriptors, the literal inverse on dirty addresses, head returns and erasure. It answers the key-evaluator question in Discussion #4709, building on Cinna Davis's #4100 and Hiroki Kumazaki's #4716.
The polynomial key budget permits logarithmic guard widths in the retained caller. Under its ordinary interchange premise the complete CRT packing bound becomes linear in the maximum axis width up to logarithms, where the previous bound was quadratic. The proof gives the explicit bill in both directions.
Reproduction
Run from the repository root with Python 3.12 and the standard library.
The replay checks 19,344 small rotations, 180 wide cases and 4,682 transported rotation endpoints. It checks all 131,072 compact addresses for one replacement row. Freezing its entry control vector gives 4,576 wrong keys. A mixed-width fixture tests simultaneous target independence and 2,048 complete keys.
Limitations
The fixed-tape upper bounds are written proofs. The Python replay checks exact address semantics on bounded fixtures. The full CRT corollary uses the retained ordinary interchange and compact layout interfaces. A literal transition-table replay and the square-root multiplication endpoint remain open.
Attempts on the main target
Open next questions
Related open work
CI notes
On CPython 3.12.15 and macOS arm64, the local registered normal and optimized replay and the committed source-history preflight passed. The hosted research-package run passed both planning and package replay at
55c9bca6786a7f25c41595d5501ec5a51a495384.Merge danger
Two-way. The diff adds one isolated research package.