The Kronecker symbol #
Mathlib's Jacobi symbol jacobiSym a b is defined for a natural denominator b, and is the
quadratic symbol only for odd b. The Kronecker symbol (a / b) extends it to every integer
denominator b, multiplicatively in b, by fixing the values at the three denominators the Jacobi
symbol does not cover:
(a / 2)isχ₈ a:0for evena,1fora ≡ ±1 (mod 8)and-1fora ≡ ±3 (mod 8);(a / -1)is-1fora < 0and1otherwise;(a / 0)is1fora = ±1and0otherwise.
So for b ≠ 0, writing |b| = 2 ^ e * m with m odd,
(a / b) = (a / -1)^[b < 0] * χ₈ a ^ e * J(a | m). The value at 0 is not the Jacobi symbol's
J(a | 0) = 1: the two symbols agree on odd positive denominators only. That value also makes
multiplicativity in the denominator fail exactly for the numerator -1, where
(-1 / 0) = 1 but (-1 / 0) * (-1 / 3) = -1.
The point of the extension is the case of a discriminant D ≡ 0, 1 (mod 4). Then (D / ·) is
periodic modulo |D| on all of ℤ, so it is a quadratic Dirichlet character kroneckerChar of
modulus |D|, whose value at -1 is the sign of D. For D ≡ 1 (mod 4) this rests on
quadratic reciprocity, in the form (D / n) = J(n | |D|); for D ≡ 0 (mod 4) it rests on the
periodicity of J(D | ·) modulo |D| on odd numbers and on its reflection law under b ↦ -b.
The character need not be primitive: (-12 / ·) is induced from (-3 / ·).
Main definitions #
TauCeti.kroneckerSym a b: the Kronecker symbol(a / b).TauCeti.kroneckerChar R D hD hD₀: forD ≡ 0, 1 (mod 4),D ≠ 0, the Dirichlet character(D / ·)of modulus|D|with values in a commutative ringR.
Main statements #
TauCeti.kroneckerSym_eq_jacobiSym,TauCeti.kroneckerSym_eq_legendreSym: agreement with the Jacobi symbol at odd positive denominators and with the Legendre symbol at odd primes.TauCeti.kroneckerSym_two_right,TauCeti.kroneckerSym_neg_one_right,TauCeti.kroneckerSym_zero_right: the values at2,-1and0.TauCeti.kroneckerSym_mul_right,TauCeti.kroneckerSym_mul_right_of_ne_neg_one: multiplicativity in the denominator, over nonzero factors, and without restriction when the numerator is not-1.TauCeti.kroneckerSym_mul_left,TauCeti.kroneckerSym_pow_left,TauCeti.kroneckerSym_eq_one_of_isSquare: multiplicativity in the numerator, over nonzero factors, unrestricted power law, and value1on squares coprime to the denominator.TauCeti.kroneckerSym_eq_zero_iff:(a / b) = 0exactly whengcd (a, b) ≠ 1.TauCeti.kroneckerSym_eq_jacobiSym_natAbs:(D / n) = J(n | |D|)forD ≡ 1 (mod 4).TauCeti.kroneckerSym_mod_right': forD ≡ 0, 1 (mod 4),(D / ·)is periodic moduloD.TauCeti.kroneckerChar_intCast,TauCeti.kroneckerChar_isQuadratic,TauCeti.kroneckerChar_neg_one: the character computes the Kronecker symbol, is quadratic, and has valuesign Dat-1.TauCeti.conductor_kroneckerChar_dvd_iff: the conductor ofkroneckerChardividesNexactly when(D / a) = 1for the odda ≡ 1 (mod N)prime toD.TauCeti.changeLevel_kroneckerChar_sq_mul,TauCeti.kroneckerChar_eq_one_of_isSquare,TauCeti.conductor_kroneckerChar_eq_of_isSquare_mul,TauCeti.conductor_kroneckerChar_eq_natAbs_of_prime:(m² D / ·)is induced from(D / ·)form ≠ 0, so discriminants in the same square class share their conductor and primitive character, a square discriminant gives the trivial character of conductor1, and a prime discriminant (|D|prime) gives a primitive character of conductor|D|.
References #
- H. Cohen, A Course in Computational Algebraic Number Theory, §1.4.2.
- H. Cohen, Number Theory, Volume I: Tools and Diophantine Equations, §2.2.
Definition and the values at 0, -1, 2 and odd denominators #
The Kronecker symbol (a / b): the extension of the Jacobi symbol jacobiSym a b to all
integer denominators b, multiplicative in b (over nonzero factors, kroneckerSym_mul_right)
and with the standard values at 2, -1 and 0: (a / 2) = χ₈ a, (a / -1) is the sign of
a with (0 / -1) = 1, and (a / 0) is 1 for a = ±1 and 0 otherwise. For b ≠ 0 with
|b| = 2 ^ e * m, m odd, it is (a / -1)^[b < 0] * χ₈ a ^ e * J(a | m).
Instances For
The Kronecker symbol at a nonzero denominator b, with |b| = 2 ^ e * m and m odd.
At an odd positive denominator the Kronecker symbol is the Jacobi symbol.
(a / -1) is -1 for a < 0 and 1 otherwise.
(a / 2) = χ₈ a: it is 0 for even a, 1 for a ≡ ±1 (mod 8) and -1 for
a ≡ ±3 (mod 8) (ZMod.χ₈_int_eq_if_mod_eight).
(1 / b) = 1, including at b = 0.
Multiplicativity in the denominator #
Multiplicativity of the Kronecker symbol in the denominator, over nonzero factors, as in
jacobiSym.mul_right'. The hypotheses cannot be dropped: for a = -1, b = 0, c = 3 the left
side is (-1 / 0) = 1 and the right side is -1 (kroneckerSym_zero_right).
For a numerator other than -1, the Kronecker symbol is completely multiplicative in the
denominator: (a / 0) is 1 when a = 1, where every value is 1, and 0 otherwise, where it
absorbs the product. Every discriminant D ≡ 0, 1 (mod 4) is such a numerator.
The Kronecker symbol of a power is the power of the symbol. Unlike multiplicativity, this holds
without restriction: at b = 0 the value (a / 0) ∈ {0, 1} is idempotent.
Vanishing and the values 0, 1, -1 #
The Kronecker symbol (a / b) vanishes exactly when a and b have a common factor, as for
jacobiSym.eq_zero_iff. At b = 0 this says that (a / 0) ≠ 0 exactly for a = ±1.
The Kronecker symbol takes only the values 0, 1 and -1.
Multiplicativity in the numerator #
Multiplicativity of the Kronecker symbol in the numerator, over nonzero factors, as in
jacobiSym.mul_left. The hypotheses cannot be dropped: for a = 0, a' = -1, b = -1 the left
side is (0 / -1) = 1 and the right side is -1 (kroneckerSym_neg_one_right).
The Kronecker symbol of a power in the numerator is the power of the symbol. Unlike
kroneckerSym_mul_left, this holds without restriction: at a = 0 the value (0 / b) ∈ {0, 1} is
idempotent.
(a² / b) = 1 when a and b are coprime, including at a = 0 (where b = ±1).
For a square integer a coprime to b, (a / b) = 1.
Multiplying a numerator a by a nonzero square u² coprime to b leaves (a / b) unchanged.
The hypothesis u ≠ 0 cannot be dropped: at a = -1, u = 0, b = -1 the left side is
(0 / -1) = 1 and the right side is -1.
The Kronecker symbol of a discriminant #
For D ≡ 1 (mod 4), the Kronecker symbol (D / n) is the Jacobi symbol J(n | |D|), for every
integer n. At odd n > 0 this is quadratic reciprocity, at n = 2 the supplementary law
χ₈ D = J(2 | |D|), and at n = -1 the supplementary law sign D = J(-1 | |D|). In particular
(D / ·) is periodic modulo |D|.
The Kronecker character of a discriminant #
The Kronecker character of a discriminant D ≡ 0, 1 (mod 4), D ≠ 0: the Dirichlet
character (D / ·) of modulus |D|, with values in a commutative ring R. It is well defined
because (D / ·) is periodic modulo |D| (kroneckerSym_mod_right') and multiplicative
(kroneckerSym_mul_right_of_ne_neg_one, as D ≠ -1), and it vanishes off the units because
(D / n) = 0 when gcd (D, n) ≠ 1 (kroneckerSym_eq_zero_iff). It need not be primitive.
Instances For
The Kronecker character is quadratic: it takes only the values 0, 1 and -1.
The conductor of the Kronecker character. The conductor of (D / ·) divides N exactly
when (D / a) = 1 for every odd natural number a prime to D with a ≡ 1 (mod N). The
modulus N need not divide D, so this is how (D / ·) is shown to be induced from a character
modulo N when only the values at odd a ≡ 1 (mod N) are known. The coefficient ring only needs
2 ≠ 0, so that the values 0, 1 and -1 stay distinct.
Multiplying a discriminant by a nonzero square induces its Kronecker character: for m ≠ 0,
the Kronecker character (m² D / ·) of modulus |m² D| is DirichletCharacter.changeLevel of
(D / ·). For instance (-12 / ·) is induced from (-3 / ·).
Multiplying a discriminant D by a nonzero square m² leaves the values of the associated
primitive character unchanged.
Square-class invariance of the Kronecker conductor. Two nonzero discriminants D and D'
whose product D * D' is a square have Kronecker characters of the same conductor.
Square-class invariance of the primitive Kronecker character. Two nonzero discriminants D
and D' whose product D * D' is a square have the same primitive character values at every
integer a.
For a negative discriminant D < 0 and a coefficient ring with 2 ≠ 0, the Kronecker
character (D / ·) is odd (kroneckerChar_neg_one) and therefore has conductor different from
1.
For a prime discriminant, meaning that |D| is prime (such as D = -3, -7, -11, 5,
13), and 2 ≠ 0 in R, the Kronecker character (D / ·) is primitive, of conductor |D|. It
is nontrivial because |D| is odd, D ≡ 1 (mod 4), so (D / ·) is the Legendre symbol modulo
|D|, which takes the value -1 at a nonresidue.