Quadratic characters on ℤ/nℤ #
This file defines some quadratic characters on the rings ℤ/4ℤ and ℤ/8ℤ.
We set them up to be of type MulChar (ZMod n) ℤ
, where n
is 4
or 8
.
Tags #
quadratic character, zmod
Quadratic characters mod 4 and 8 #
We define the primitive quadratic characters χ₄
on ZMod 4
and χ₈
, χ₈'
on ZMod 8
.
Define the nontrivial quadratic character on ZMod 4
, χ₄
.
It corresponds to the extension ℚ(√-1)/ℚ
.
Equations
- ZMod.χ₄ = { toMonoidHom := { toOneHom := { toFun := ![0, 1, 0, -1], map_one' := ZMod.χ₄.proof_1 }, map_mul' := ZMod.χ₄.proof_2 }, map_nonunit' := ZMod.χ₄.proof_3 }
Instances For
@[simp]
@[simp]