lemmaroutine
Swapping binary address chunks in O(Vu^τ)
Swaps two -sized address chunks of a bit array in steps
general axis-moving tool at sublinear cost per bit
Lemma·
lem:chunk-swap·§4.3 Removing width and row restrictionsStatement (paper)
There exist fixed and one fixed finite-alphabet multitape
procedure with the following property. For positive integers
and , it transforms an arbitrary bit array on
by the address permutation
in steps, where .
The integers specifying the shape are part of the input. The time
includes their processing, all padding and unpadding, and fixed-tape
workspace cleanup. In particular, is allowed.
In plain English
On a bit array indexed by , the address permutation can be done by one fixed multitape procedure in steps, where and is a fixed constant. The bound includes shape processing, padding, unpadding and cleanup, and allows .
Why it's here
This turns the power-width interchange primitive, which only handles chunk widths with a divisibility condition on the preceding row field, into an unrestricted chunk swap on binary-width chunks. The proof pads to a radix- range , swaps the top digits to build a row field with the needed divisibility, then splits the remaining width in base into power-width swaps. Later lemmas use it as the general tool for moving axes and bit fields at cost , sublinear in per entry.
Classified routine:
Extends the power-width interchange proposition to arbitrary binary-width chunks by padding 2^u to q^e, fixing divisibility with a short top-digit swap, and splitting the width in base m. This is bookkeeping built on prop-power-interchange and the linear-time elementary digit scans.
Uses
Used by
lemPacked XOR of selected address bitslemCost and accuracy of synthetic transformlemTensor resampling across d dimensionsclaimRotations cost O(V L^τ) via swapsclaimLayout permutation by moves and chunk exchangesclaimAxis exposure costs via chunk swapsclaimCRT address map via controlled shiftsclaimCost table yields the final time bound
Inside the proof
Sources
PaperOpen
- Section
- §4.3 Removing width and row restrictions
- Page
- —
- Label
lem:chunk-swap- Line
sections/04-swap.tex:285
Leannot aligned
Phase 2 aligns this node to a Lean declaration.