Skip to content

Permute wide address fields without a logarithmic pass factor - #8119

Open
petalas wants to merge 1 commit into
CrocSwap:mainfrom
petalas:research/w7-1201b-contiguous-word-addition
Open

petalas wants to merge 1 commit into
CrocSwap:mainfrom
petalas:research/w7-1201b-contiguous-word-addition

Conversation

@petalas

@petalas petalas commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Result

This is a scoped fixed-tape construction for permuting $N$ consecutive $K$-bit fields in a complete $A$-bit address with records of width $\Theta(A)$. For every fixed $\rho>1/2$ it takes $O_\rho(V(NK)^\rho(1+\log_2(A+2)/K))$ time and $O_\rho(V)$ visited cells, where $V$ is the bit volume. The pass count is constant when $K=\Omega(\log A)$.

Five ordered word rotations and one sparse repair add many whole digits in parallel. Every borrowed address value returns. Signed exchanges then give arbitrary field permutations. On the inflated transpose in McGluut's Discussion #2009, the September interchange primitive gives $O(V(NK)^\tau)$ for logarithmically wide fields. The separate-exchange schedule gives $O(VNK^\tau)$. These are schedule bounds. The original charged obstruction covers its original alphabet. Proof · Discussion claim

Reproduction

From the repository root with Python 3.12.

python3.12 -B scripts/research_package.py --package research/guarded-address-digit-permutations
python3.12 -B scripts/check_research_commit.py --package research/guarded-address-digit-permutations --check-source-history
python3.12 -I -B research/guarded-address-digit-permutations/verify.py
python3.12 -I -O -B research/guarded-address-digit-permutations/verify.py

The two replay modes agree on 1,327,104 address-state cases, 3,456 lane partitions and 6,033 field permutations. The repair covers 422,400 mismatches in the raw rotations. Local checks used CPython 3.12.15 on macOS arm64.

Limitations

The tape bound is a written composition with the cited interchange and stream procedures. The executable checks cover finite address maps, inverse ranks, radix repair and signed routing. A literal multitape controller and independent proof review remain open. The multiplication exponent is outside this scoped claim.

Open next questions

  • Test a two-lane update with a wrapping helper word. An exact replacement for tagged repair must restore that word and prevent carries into the next lane.
  • Price a batched repair for thin fields when individual lane overflows have a dense union. The sparse-sort bound needs the union to be small.

Related open work

  • #8102 proposes admitting the November 24 multiplier. Its generic bit-position procedure supplies the repair and permutation precedents.
  • #8118 batches padded CRT rotations by regrouping digit and guard bits with the generic bit-position routine. The construction here keeps guards next to their digits and only exchanges entire banks.

CI notes

Local registered replay and committed source-history checks passed. The hosted planning job and package replay passed at 22500914e9bcc6b8548393595c5d86b49d38f011. GitHub Actions run

Merge scope

One self-contained research package.

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.

1 participant