Skip to content

Reduction Modulo Binary Polynomials with Logarithmic Feedback Depth

Junyu Zhou, Kaiyi Zhang

math.NT

Abstract

Polynomial modular reduction is central to binary finite-field arithmetic and repeated Frobenius powering. Top-down shift/XOR folding can use few operations when the nonleading support is sparse, but a tap near the leading term creates a long feedback chain. We formulate this recurrence as inversion of a nilpotent shift operator and factor its inverse by characteristic-two Frobenius powers. The resulting Frobenius-factorized reduction (FFR) applies to every monic binary modulus without materializing a reciprocal or dense reduction matrix, and its shifts can be generated online without a persistent modulus-specific schedule. For degree mm and nonempty nonleading support of size ss, with nearest-tap distance Δmin⁡Δ_{\min}, FFR uses exactly ⌈log⁡2(m/Δmin⁡)⌉\lceil\log_2(m/Δ_{\min})\rceil sequential feedback stages and has scheduled work O(ms(1+log⁡(m/s)))O(ms(1+\log(m/s))). A portable-C evaluation on 1,096 supports through degree 131072131072 identifies distinct FFR, López--Dahab, and gf2x-backed Barrett regions. On four certified irreducible moduli, FFR makes complete Rabin irreducibility testing 1.351.35--8.048.04 times faster than NTL and 1.601.60--6.816.81 times faster than the matched Barrett implementation.

Create a lesson

Metadata

Categories
math.NT, cs.SC
Comments
20 pages. Source code and original experimental data added as ancillary files; availability statement updated. Scientific results unchanged