The inverse NTT in ML-DSA matrix expansion #
FIPS 204, §2.5, equation (2.1), orders the odd powers of 1753 by reversing
eight bits. Twisting each coefficient by the corresponding power of 1753 reduces the forward
transform to Cslib.dft at 1753². Undoing the permutation and twist identifies fromNTT,
the coefficient conversion used by Xofs.expandA, with the scaled DFT at a negative index.
Consequently an entire matrix of uniform NTT entries remains uniform after this conversion.
The direct forward NTT of equation (2.1), evaluating the coefficient polynomial at each bit-reversed odd power of 1753.
The executable inverse table is an ordinary DFT at the negative index, with the input permutation undone and the inverse twist and inverse length applied to the output.
Converting the forward transform recovers every coefficient of the original polynomial.
Evaluating a converted polynomial in the FIPS order recovers all its input NTT values.
NTT coordinates and coefficient coordinates are equivalent by the two explicit transforms.
The forward direction is the actual inverse transform called for each entry of Xofs.expandA.
The equivalence applies the exact coefficient conversion used inside Xofs.expandA.
Entrywise application of the FIPS matrix expansion's inverse NTT transports a uniform NTT matrix to a uniform coefficient matrix, including the joint law of all its entries.