Skip to content

Cut CRT and Fourier layout passes in the November tape multiplier - #8118

Open
petalas wants to merge 1 commit into
CrocSwap:mainfrom
petalas:research/w2-1201b-tape-transform
Open

petalas wants to merge 1 commit into
CrocSwap:mainfrom
petalas:research/w2-1201b-tape-transform

Conversation

@petalas

@petalas petalas commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Written tape-cost proof with exact CRT and Fourier checks and numerical occupied-fiber checks. For the same fixed subroutine exponent $1/2<\rho<1$, the modified construction computes the exact product in $O_\rho(n(1+\log n)^\rho(1+\log\log(n+2))^2)$ time with $O_\rho(n)$ visited cells, using the November 24 interchange, selected-bit Walsh and rounding routines.

  • CRT address conversion uses two packed binary-rotation routines and sparse repair per batch. Both directions preserve occupied guards and padding. Across the tree the bill is $O_\rho(Vk^\rho(1+\log k)^2)$ for bit volume $V$ and address width $k$. Applying the published generic bound gives four logarithmic factors. Counting the smaller number of actual CRT batches already reduces that comparison to three.
  • Each short Fourier circuit uses four occupied fibers. Bit-reversed frequencies are accounted for in the chirp table, so every pair operation acts on a specified address bit. The standalone block-routing permutations disappear. The selected-bit Walsh layers retain their own layout costs.

Tekalign's #4024 is the predecessor for the encoded CRT layout question. The November 24 paper supplies the tree, its tape primitives and the short-transform analysis. Advance claim · Scope update.

Evidence and reproduction

The exact replay covers 86,016 guarded endpoints, 102,068 padded-word endpoints, 81,920 CRT stage endpoints in both directions and 5,460 Fourier entries in cyclotomic arithmetic. Numerical replay checks 232 positions across eight short-axis lengths with occupied fibers. The omitted-repair and wrong-frequency controls both reject. Normal and optimized checks pass on CPython 3.12.15, macOS arm64, with the standard library.

From the repository root, the first command runs every registered normal and optimized replay.

python3.12 -B scripts/research_package.py --package research/batched-crt-address-rotations
python3.12 -B scripts/check_research_commit.py --package research/batched-crt-address-rotations --check-source-history

Limitations

The time and visited-space bounds use the written composition with the cited routines. A fixed-point multiplier replay, a literal multitape transition-table run and independent human or formal proof-kernel review remain open. The square-root endpoint and the quantitative approach to it on one uniform machine remain open.

Open next questions

  • Reuse guard layouts between adjacent CRT depths. Start with two depths and price each remaining bit-position permutation.
  • Arrange consecutive selected-bit Walsh rounds into contiguous slots. Count the phase-stream and internal Walsh costs in the new layout.

Related open work

  • #8102 records the November 24 construction and its specialization. This PR changes the CRT and Fourier schedules and prices them at a fixed subroutine exponent.

  • #8115 proves a scoped charge lower bound for the separately billed Walsh calls retained here.

  • #8117 shortens a different strided-chirp compiler and leaves its fit to the November 24 short axes open.

CI notes

Local registered replay, committed-byte and source-history checks passed. The hosted plan and package replay both passed at b0f9b5b6562c186c3d93f5ca2d739bfd3de28c0d. GitHub Actions run.

Merge danger

Two-way. The diff adds 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