claimroutineinferred_dep
Padding binary chunks to radix-q ranges
Padding to costs and gives overall
reduces binary chunks to the radix- case
Statement (paper)
Let be the least integer with . Padding each of the two chunk ranges numerically from to , with zero in an entry if either chunk coordinate is invalid, increases the volume by a factor less than and costs steps; it preserves the order of the existing entries. After the interchange of the two padded chunks, scanning away the entries not having both chunk coordinates below recovers the desired binary array, and since the total time is .
In plain English
Let be the least integer with . Padding both chunk ranges from to with zeros costs steps and enlarges the volume by less than a factor . After the swap, discarding the padded entries yields the desired binary array, for a total time of .
Why it's here
This final step of the chunk-swap proof reduces the binary case to the radix- case, where the preceding claims already give a full chunk swap in time . Padding costs only a constant factor () in volume, and turns into the claimed bound. Padding and unpadding preserve the order of existing entries, so removing the extra entries recovers exactly the permuted array.
Classified routine:
This is a standard padding/unpadding reduction from the binary range to the radix- range . It costs only a constant volume factor and plugs into the preceding radix- chunk-swap claims, with turning into .
Uses
Used by
Nothing in the paper
Sources
PaperOpen
- Section
- §4.3 Removing width and row restrictions
- Page
- —
- Label
—- Line
sections/04-swap.tex:375
Leannot aligned
Phase 2 aligns this node to a Lean declaration.
Friction
- infoinferred_depoutline: "Binary chunks padded to radix-q ranges" rests on claim-lem-chunk-swap-2