Sums over ι → ZMod n along reduction and multiplication #
For n = m * k, the coordinatewise reduction (ι → ZMod n) → (ι → ZMod k) is a surjective
additive homomorphism whose fibers have m ^ #ι elements, so summing a function of the reduction
over ι → ZMod n counts every value m ^ #ι times. Dually, the vectors of ι → ZMod n killed by
m are exactly the images of ι → ZMod m under the coordinatewise multiplication by k
(ZMod.mulCastHom), each attained once, so a sum restricted to them is a sum over ι → ZMod m.
These are the two reindexings by which a character sum modulo p ^ 2 * M is reduced to one
modulo M.
Main results #
ZMod.sum_comp_castHom: summing a function of the reduction modulokoverι → ZMod n.ZMod.sum_ite_natCast_smul_eq_zero: summing over the vectors ofι → ZMod nkilled bym.
Summing a function of the reduction. For n = m * k, summing a function of the
coordinatewise reduction modulo k over ι → ZMod n counts every value m ^ #ι times.
Summing over the vectors killed by m. For n = m * k, the vectors x ∈ (ℤ/n)^ι with
m • x = 0 are exactly the images of the vectors w ∈ (ℤ/m)^ι under the coordinatewise
multiplication by k, each attained once.