Primes above a rational prime in an integral quadratic algebra #
Let ℤ[ω] = QuadraticAlgebra ℤ a b, so ω² = a + b ω: the quadratic orders ℤ[√d] and
ℤ[(1 + √d)/2] are of this shape. Here f = X² - b X - a denotes the minimal polynomial of ω
and p a rational prime. This file describes the ideals of ℤ[ω] above p by explicit
generators, following the Dedekind–Kummer recipe:
- if
ris a root offmodulop, then𝔭_r = (p, ω - r)is the kernel of the evaluationℤ[ω] → ℤ/psendingω ↦ r. It is a maximal ideal with residue field of sizep(isMaximal_span_natCast_omega_sub,card_quotient_span_natCast_omega_sub), andx ∈ 𝔭_r ↔ p ∣ x.re + x.im r; - the second root is
b - r, and the product formula(p, ω - r) (p, ω - (b - r)) = (p)holds exactly whenpdoes not divide bothf'(r) = 2r - bandf(r) / p(span_natCast_omega_sub_mul_span_natCast_omega_sub_eq_iff). This is the quadratic case of Dedekind's criterion, stated as an identity of ideals of the orderℤ[ω]itself, maximal or not. In the maximal order of a quadratic field it holds at every prime; inℤ[√d]withd ≡ 1 (mod 4), an order of conductor2, it fails atp = 2(span_two_omega_sub_one_sq_ne_span_two); - every prime of
ℤ[ω]containingpis𝔭_ror𝔭_(b - r)(eq_or_eq_of_natCast_mem), whether or not the criterion holds; the two coincide exactly whenp ∣ 2r - b, that is, whenpdivides the discriminantb² + 4aoff(span_natCast_omega_sub_eq_span_natCast_omega_sub_iff); - if
fhas no root modulop, then(p)itself is maximal, sopis inert (isMaximal_span_natCast_iff), and conversely; - together, the primes of
ℤ[ω]abovepare exactly(p)whenfhas no root modulop, and the ideals𝔭_rotherwise (isPrime_and_natCast_mem_iff).
For a monogenic order inside a number field, Mathlib's Kummer–Dedekind theorem
(KummerDedekind.normalizedFactorsMapEquivNormalizedFactorsMinPolyMk) describes the primes of
the ring of integers above a prime not dividing the conductor, and
TauCeti.NumberField.IntegralPrimitiveElement.not_dvd_index_iff decides when that hypothesis
holds. The statements here need neither a Dedekind domain nor an ambient field.
References #
- D. A. Cox, Primes of the Form x² + ny², §5.B and §7.D.
- J. Neukirch, Algebraic Number Theory, Chapter I, Proposition 8.3.
Membership in (p, ω - r). For a root r of X² - b X - a modulo p, an element
x of ℤ[ω] lies in (p, ω - r) exactly when p ∣ x.re + x.im r, that is, when x vanishes
under ω ↦ r modulo p.
The norm of (p, ω - r) is p. For a root r of X² - b X - a modulo p, the
residue ring of (p, ω - r) is ℤ/p, so its Nat.card is p. For p ≠ 0 this says that it
has exactly p elements; for p = 0 the residue ring is ℤ, which is infinite.
Two roots give the same ideal iff they agree modulo p. For a root r of
X² - b X - a modulo p, the ideals (p, ω - s) and (p, ω - r) coincide exactly when
s ≡ r (mod p). When p is prime these ideals are the primes above p
(isMaximal_span_natCast_omega_sub).
Dedekind's criterion for a quadratic order. Let r be a root of X² - b X - a modulo
p, so that b - r is the second root. Then p factors as (p) = (p, ω - r) (p, ω - (b - r))
in ℤ[ω] if and only if p does not divide both the derivative 2r - b and the quotient
(r² - b r - a)/p, that is, unless p ∣ 2r - b and p² ∣ r² - b r - a.
The ramified case of Dedekind's criterion. If r is a double root of X² - b X - a
modulo p (that is, p ∣ 2r - b), then (p) = (p, ω - r)² exactly when
p² ∤ r² - b r - a.
Dedekind's criterion fails at the conductor. For d ≡ 1 (mod 4), the order ℤ[√d] has
conductor 2 in ℤ[(1 + √d)/2], and Dedekind's criterion fails at 2: the maximal ideal
(2, √d - 1) above 2 satisfies (2, √d - 1)² ≠ (2).
The primes above a split or ramified p. If r is a root of X² - b X - a modulo p,
every prime ideal of ℤ[ω] containing p is (p, ω - r) or (p, ω - (b - r)). This needs no
Dedekind criterion, so it also holds at primes dividing the conductor of a nonmaximal order.
When the two primes above p coincide. For a root r of X² - b X - a modulo p, the
ideals (p, ω - r) and (p, ω - (b - r)) coincide exactly when p divides the discriminant
b² + 4a of X² - b X - a.
The primes above p. A prime ideal P of ℤ[ω] contains the rational prime p exactly
when either X² - b X - a has no root modulo p and P = (p), or P = (p, ω - r) for a root
r of X² - b X - a modulo p. This lists every prime of ℤ[ω] above p, including at primes
dividing the conductor of a nonmaximal order.