The character attached to a prime discriminant #
Genus theory attaches to a prime discriminant P the primitive real character modulo |P|
cutting out the quadratic field ℚ(√P). Mathlib has no Kronecker symbol, so this file assembles
that character from the pieces Mathlib does have: it is ZMod.χ₄, ZMod.χ₈ and ZMod.χ₈' at the
three even prime discriminants -4, 8 and -8, and the Legendre symbol (· / p), written as a
Jacobi symbol, at an odd prime discriminant p* = ±p.
primeDiscriminantCharFun_mul_right and primeDiscriminantCharFun_eq_one_or_eq_neg_one record
that it is a ±1-valued completely multiplicative function on the integers coprime to P, and
primeDiscriminantCharFun_mod_right' that its value depends only on the residue class modulo
|P|. The rest of this directory studies the Legendre symbols legendreSym q P of prime
discriminants at an odd prime q; primeDiscriminantCharFun_eq_legendreSym identifies the
character with them, so the splitting laws proved there are statements about the character.
The genus characters of a fundamental discriminant — the products of these characters over the
prime discriminants of a factorization D = P₁ ⋯ P_t — are built on this in
TauCeti.NumberTheory.Multiquadratic.Quadratic.GenusCharacter.Basic. The material is classical;
see
D. A. Cox, Primes of the Form x² + ny², §3.B, and F. Lemmermeyer, Reciprocity Laws: From Euler
to Eisenstein, §2.2.
Main definitions #
TauCeti.Multiquadratic.primeDiscriminantCharFun: the real quadratic character modulo|P|attached to a prime discriminantP, as an unbundled functionℤ → ℤ.
Main results #
TauCeti.Multiquadratic.primeDiscriminantCharFun_mul_rightandTauCeti.Multiquadratic.primeDiscriminantCharFun_eq_one_or_eq_neg_one: the character is completely multiplicative, and takes the values±1on the integers coprime toP.TauCeti.Multiquadratic.primeDiscriminantCharFun_eq_zero_iff: it vanishes exactly off those integers.TauCeti.Multiquadratic.primeDiscriminantCharFun_mod_right': it is a character modulo|P|.TauCeti.Multiquadratic.primeDiscriminantCharFun_eq_legendreSym: at an odd primeqits value is the Legendre symbollegendreSym q P.TauCeti.Multiquadratic.exists_primeDiscriminantCharFun_eq_neg_oneandTauCeti.Multiquadratic.exists_primeDiscriminantCharFun_eq: the character is nontrivial, so it takes each of the values±1at some natural number.
The character attached to a prime discriminant #
The real quadratic character attached to a prime discriminant P: the primitive character
modulo |P| cutting out the quadratic field ℚ(√P). At the even prime discriminants -4, 8
and -8 it is ZMod.χ₄, ZMod.χ₈ and ZMod.χ₈'; at an odd prime discriminant p* it is the
Legendre symbol (· / p), written as a Jacobi symbol. The value at an integer sharing a factor
with P is 0.
The function is total: the prime-discriminant hypothesis is not bundled into it, but is carried by the API below, which supplies the facts specific to prime discriminants.
Equations
Instances For
The defining four-case description of the character attached to a prime discriminant.
The character of the prime discriminant -4 is ZMod.χ₄.
The character of the prime discriminant 8 is ZMod.χ₈.
The character of the prime discriminant -8 is ZMod.χ₈'.
Away from the three even prime discriminants the character is a Jacobi symbol.
The character of the odd prime discriminant p* is the Legendre symbol (· / p). In
particular it depends only on p, not on the sign normalization p* = (-1) ^ ((p - 1) / 2) * p.
The character attached to a prime discriminant is completely multiplicative.
The character attached to a prime discriminant takes the value 1 at 1.
An integer is coprime to an even prime discriminant exactly when it is odd: the only prime
dividing -4, 8 or -8 is 2.
The character attached to a prime discriminant takes the values ±1 on the integers
coprime to it.
The character attached to a prime discriminant vanishes exactly on the integers that are not coprime to it.
The character attached to a prime discriminant P agrees at an odd prime q with the
Legendre symbol legendreSym q P, the splitting symbol of P at q studied in
TauCeti.NumberTheory.Multiquadratic.Legendre.PrimeDiscriminant.Basic and
TauCeti.NumberTheory.Multiquadratic.Legendre.EvenPrimeDiscriminant.
Nontriviality #
The character of a prime discriminant is nontrivial. For every prime discriminant P,
some natural number has character -1 at P.
The character attached to a prime discriminant takes each of the values ±1 at some natural
number.