Parity and vanishing of the characters χ₄ and χ₈ #
This file adds to Mathlib's ZMod.χ₄ and ZMod.χ₈ the facts that χ₄ is odd and χ₈ is even,
in the form used under reflection b ↦ b' with n ∣ b + b', together with χ₄ a ^ 2 = 1 for odd
a, the normalization a * χ₄ a ≡ 1 (mod 4) for odd integers, the description of the
zeros of χ₈, and the formula χ₈ a = (-1) ^ ((a² - 1) / 8) for odd integers.
Main statements #
ZMod.χ₄_neg,ZMod.χ₈_neg:χ₄is odd andχ₈is even.ZMod.χ₄_natCast_eq_neg_of_dvd_add,ZMod.χ₈_natCast_eq_of_dvd_add: the same statements for natural numbersb,b'with4 ∣ b + b', respectively8 ∣ b + b'.ZMod.int_mul_χ₄_modEq_one: sign-normalizing an odd integer gives1modulo4.ZMod.χ₈_intCast_eq_zero_iff:χ₈ a = 0exactly whenais even.ZMod.χ₈_intCast_eq_negOnePow:χ₈ a = (-1) ^ ((a² - 1) / 8)for odda.