AlgebraicNumberTheory.PowerResidueSymbols.finiteFieldPowerResidueSymbol
The finite-field n-th power-residue symbol.
Source context 3 commands
Surrounding namespaces, section variables, and local commands at this declaration.
namespace AlgebraicNumberTheory
namespace PowerResidueSymbols
variable (k : Type*) [Field k] [Fintype k]Lean source · full declaration
def finiteFieldPowerResidueSymbol
(n : ℕ+) (hn : (n : ℕ) ∣ Fintype.card k - 1) :
kˣ →* rootsOfUnity (n : ℕ) k where
toFun u :=
⟨u ^ ((Fintype.card k - 1) / (n : ℕ)), by
change (u ^ ((Fintype.card k - 1) / (n : ℕ))) ^ (n : ℕ) = 1
rw [← pow_mul, Nat.div_mul_cancel hn]
apply Units.ext
exact FiniteField.pow_card_sub_one_eq_one
(u : k) (Units.ne_zero u)⟩
map_one' := by
apply Subtype.ext
simp
map_mul' u v := by
apply Subtype.ext
simp [mul_pow]