Proposition. Ring-valued finite Fourier inversion [fdip-00NJ]

For the Fourier weights, the maps \(\mathcal F\) and \(\mathcal G\) are mutually inverse \(R\)-linear equivalences. In particular \[w(x)=\sum _{m\in A}\widehat w(m)\zeta ^{mx}.\] The calculation extends the complex character orthogonality proof using precisely the stipulated root sums.

For \(R=\mathbb C\) and \(\zeta =\mathrm {e}^{2\pi \mathrm {i} /N}\), Mathlib's ZMod.dft_apply and ZMod.invDFT_apply use an unnormalized negative-exponent forward transform and a normalized positive-exponent inverse. Consequently \(\mathcal F=N^{-1}\operatorname {dft}\) and \(\mathcal G=N\operatorname {dft}^{-1}\) in that specialization. Those declarations support the complex case; the general ring statement follows from the proof above.