The discrete Fourier transform on ZMod N × ZMod N #
The Fourier transform of f : ZMod N × ZMod N → ℂ at the frequency ξ is
∑ v, e (-(ξ.1 * v.1 + ξ.2 * v.2)) * f v, where e = ZMod.stdAddChar sends j to
exp (2 π i j / N). This is Mathlib's ZMod.dft in each coordinate, written for the two
coordinates together. The characters v ↦ e (ξ.1 * v.1 + ξ.2 * v.2) are orthogonal, so the
transform preserves the ℓ² norm up to the factor N ^ 2 (Parseval's identity).
Translations and shears of the plane act on the transform by simple rules: a translation by t
multiplies the transform at ξ by e (ξ.1 * t.1 + ξ.2 * t.2), and the shear
(x, y) ↦ (x + k * y, y) acts on the frequencies by the transposed inverse shear
(a, b) ↦ (a, b - k * a), and symmetrically for (x, y) ↦ (x, y + k * x).
Main definitions #
ZMod.dftProd: the discrete Fourier transform onZMod N × ZMod N.
Main results #
ZMod.sum_norm_sq_dftProd: Parseval's identity∑ ξ, ‖dftProd f ξ‖ ^ 2 = N ^ 2 * ∑ v, ‖f v‖ ^ 2.ZMod.dftProd_zero: the transform at the zero frequency is the sum of the values.ZMod.dftProd_comp_add: translation multiplies the transform by a character value.ZMod.dftProd_comp_shearFst,ZMod.dftProd_comp_shearSnd: shears permute the frequencies.ZMod.dftProd_add,ZMod.dftProd_smul,ZMod.dftProd_injective,ZMod.dftProd_surjective: the transform is a linear bijection.ZMod.dftProd_const_of_ne_zero: a constant has no nonzero frequencies.ZMod.sum_norm_sq_dftProd_translate,ZMod.sum_norm_sq_dftProd_shearFst_sub,ZMod.sum_norm_sq_dftProd_shearSnd_sub: Parseval's identity for the change along a translation, and for the difference of two functions, one of them sheared.
The transform is injective, by Parseval's identity.
The transform is surjective: an injective linear endomorphism of a finite-dimensional space.