Ideal counts in quadratic fields
The Dedekind zeta function is the Dirichlet series of the number \(a_K(n)\) of ideals of norm \(n\). These counts are multiplicative. In a quadratic field, at a prime power \(p^k\) they are the partial sums of the powers of a sign \(\varepsilon_p\in\{-1,0,1\}\), and if \(\mathcal O_K\) contains a square root of a non-square integer \(d\), then for odd \(p\nmid d\) that sign is the Legendre symbol \((d/p)\). Comparing Euler products then factors \(\zeta_K\) as \(\zeta\) times an \(L\)-function, up to finitely many local factors.
DefinitionThe ideal counting function#✓
Let \(K\) be a number field with ring of integers \(\mathcal O_K\). For \(n\ge0\) let \(a_K(n)\) be the number of ideals \(I\subseteq\mathcal O_K\) of absolute norm \(N(I)=|\mathcal O_K/I|=n\). This number is finite, and the Dedekind zeta function is the Dirichlet series $\(\zeta_K(s)=\sum_{n\ge1}a_K(n)\,n^{-s},\)$ absolutely convergent for \(\mathrm{Re}\,s>1\).
Proof sketch. There are finitely many ideals of norm at most \(n\), because \(\mathcal O_K\) has finite quotients. The Dirichlet series is the definition of \(\zeta_K\). Absolute convergence for \(\mathrm{Re}\,s>1\) follows from the asymptotic count of ideals of norm at most \(t\), which is \(O(t)\) (it is \(\kappa_Kt+o(t)\), the input to the class number formula), by partial summation.
noncomputable def idealCount (n : ℕ) : ℕ :=
Nat.card {I : Ideal (𝓞 K) // absNorm I = n}
theorem dedekindZeta_eq_LSeries_idealCount (s : ℂ) :
dedekindZeta K s = LSeries (fun n ↦ (idealCount K n : ℂ)) s
theorem LSeriesSummable_idealCount {s : ℂ} (hs : 1 < s.re) :
LSeriesSummable (fun n ↦ (idealCount K n : ℂ)) s
noncomputable def idealCount (n : ℕ) : ℕ :=
Nat.card {I : Ideal (𝓞 K) // absNorm I = n}
ZInQKernel/Progressions/IdealCount/Basic.lean:19
TheoremIdeal counts are multiplicative#✓
Let \(K\) be a number field. For coprime natural numbers \(m,n\), $\(a_K(mn)=a_K(m)\,a_K(n),\)$ and \(a_K(1)=1\).
Proof sketch. The only ideal of norm \(1\) is \(\mathcal O_K\). The map \((J,J')\mapsto JJ'\) sends pairs of ideals of norms \(m\) and \(n\) to ideals of norm \(mn\), since the norm is multiplicative. It is a bijection, with inverse \(I\mapsto(I+m\mathcal O_K,\,I+n\mathcal O_K)\): since \((m)+(n)=\mathcal O_K\), one has \((I+(m))(I+(n))=I\) when \(mn\in I\), and \(JJ'+(m)=J\) when \(m\in J\) and \(J'+(m)=\mathcal O_K\). The norm of \(I+(m)\) divides both \(m^{[K:\mathbb Q]}\) and \(mn\), hence divides \(m\); likewise for \(n\), and the product of the two norms is \(mn\), so they are exactly \(m\) and \(n\). No prime factorization is used.
theorem idealCount_mul {m n : ℕ} (h : m.Coprime n) :
idealCount K (m * n) = idealCount K m * idealCount K n
theorem idealCount_one : idealCount K 1 = 1
ZInQ.Progressions.idealCountMulEquiv · 31 lines
noncomputable def idealCountMulEquiv {m n : ℕ} (h : m.Coprime n) :
{I : Ideal (𝓞 K) // absNorm I = m} × {J : Ideal (𝓞 K) // absNorm J = n} ≃
{L : Ideal (𝓞 K) // absNorm L = m * n} where
toFun IJ := ⟨IJ.1.1 * IJ.2.1, by rw [map_mul, IJ.1.2, IJ.2.2]⟩
invFun L := (⟨L.1 ⊔ span {(m : 𝓞 K)}, idealCount_absNorm_sup_eq L.2 h⟩,
⟨L.1 ⊔ span {(n : 𝓞 K)}, idealCount_absNorm_sup_eq (by rw [L.2, mul_comm]) h.symm⟩)
left_inv := by
rintro ⟨⟨I, hI⟩, ⟨J, hJ⟩⟩
have hmI : (m : 𝓞 K) ∈ I := by simpa [hI] using absNorm_mem I
have hnJ : (n : 𝓞 K) ∈ J := by simpa [hJ] using absNorm_mem J
have hcop := idealCount_span_sup_span_eq_top (K := K) h
have hJm : J ⊔ span {(m : 𝓞 K)} = ⊤ := by
rw [eq_top_iff, ← hcop]
exact sup_le le_sup_right ((span_singleton_le_iff_mem _).mpr (mem_sup_left hnJ))
have hIn : I ⊔ span {(n : 𝓞 K)} = ⊤ := by
rw [eq_top_iff, ← hcop]
exact sup_le ((span_singleton_le_iff_mem _).mpr (mem_sup_left hmI)) le_sup_right
ext1
· exact Subtype.ext (idealCount_sup_span_eq hmI hJm)
· refine Subtype.ext ?_
change I * J ⊔ span {(n : 𝓞 K)} = J
rw [mul_comm]
exact idealCount_sup_span_eq hnJ hIn
right_inv := by
rintro ⟨L, hL⟩
refine Subtype.ext ?_
change (L ⊔ span {(m : 𝓞 K)}) * (L ⊔ span {(n : 𝓞 K)}) = L
refine idealCount_sup_mul_sup_eq ?_ (idealCount_span_sup_span_eq_top h)
have := absNorm_mem L
rw [hL] at this
exact_mod_cast this
noncomputable def idealCount (n : ℕ) : ℕ :=
Nat.card {I : Ideal (𝓞 K) // absNorm I = n}
ZInQKernel/Progressions/IdealCount/Basic.lean:19
Uses 1 · Used by 1
TheoremIdeal counts at prime powers in a quadratic field#✓
Let \(K\) be a number field of degree \(2\) and \(p\) a prime. Put \(\varepsilon_p=a_K(p)-1\). Then \(\varepsilon_p\in\{-1,0,1\}\), and for every \(k\ge0\) $\(a_K(p^k)=\sum_{j=0}^k\varepsilon_p^{\,j} ;\)$ conversely, \(\varepsilon_p\) is the only integer with this property. Equivalently, for every complex \(s\) with \(\mathrm{Re}\,s>0\), $\(\sum_{k\ge0}a_K(p^k)p^{-ks}=(1-p^{-s})^{-1}(1-\varepsilon_pp^{-s})^{-1}.\)$
Proof sketch. The ideals of norm \(p^k\) are the products \(\prod_i\mathfrak p_i^{a_i}\) of the primes \(\mathfrak p_i\) above \(p\) with \(\sum_ia_if_i=k\), where \(f_i\) is the residue degree: unique factorization gives a bijection with these exponent vectors. Write \(p\mathcal O_K=\prod_i\mathfrak p_i^{e_i}\); then \(\sum_ie_if_i=2\). Three cases remain. Split: two primes of norm \(p\), so \(a_K(p^k)=k+1\) and \(\varepsilon_p=1\). Inert: one prime of norm \(p^2\), so \(a_K(p^k)\) is \(1\) for even \(k\) and \(0\) for odd \(k\), and \(\varepsilon_p=-1\). Ramified: one prime of norm \(p\), so \(a_K(p^k)=1\) and \(\varepsilon_p=0\). In each case the formula holds; the case \(k=1\) shows that \(\varepsilon_p\) is determined. Since \(|\varepsilon_p|\le1\) and \(|p^{-s}|<1\), the Euler factor is the Cauchy product of two geometric series.
noncomputable def localEps (p : ℕ) : ℤ := idealCount K p - 1
theorem localEps_mem (h2 : finrank ℚ K = 2) {p : ℕ} (hp : p.Prime) :
localEps K p = -1 ∨ localEps K p = 0 ∨ localEps K p = 1
theorem idealCount_prime_pow (h2 : finrank ℚ K = 2) {p : ℕ} (hp : p.Prime) (k : ℕ) :
(idealCount K (p ^ k) : ℤ) = ∑ j ∈ Finset.range (k + 1), localEps K p ^ j
noncomputable def idealCount (n : ℕ) : ℕ :=
Nat.card {I : Ideal (𝓞 K) // absNorm I = n}
ZInQKernel/Progressions/IdealCount/Basic.lean:19
noncomputable def localEps (p : ℕ) : ℤ := idealCount K p - 1
ZInQKernel/Progressions/IdealCount/PrimePower.lean:245
Uses 1 · Used by 3
TheoremThe splitting law in \(\mathbb Q(\sqrt d)\)#✓
Let \(K\) be a number field of degree \(2\) and \(d\) an integer that is not a square, such that \(\mathcal O_K\) contains an element \(\alpha\) with \(\alpha^2=d\); for instance \(K=\mathbb Q(\sqrt d)\) and \(\alpha=\sqrt d\). Let \(p\) be an odd prime with \(p\nmid d\). Then the local sign \(\varepsilon_p=a_K(p)-1\) is the Legendre symbol: $\(\varepsilon_p=\Bigl(\frac dp\Bigr),\)$ so \(a_K(p)=1+(d/p)\) and \(a_K(p^k)=\sum_{j=0}^k(d/p)^j\) for every \(k\ge0\).
The hypothesis that \(d\) is not a square cannot be dropped: in \(K=\mathbb Q(i)\) with \(\alpha=1\), \(d=1\) and \(p=3\), the prime \(3\) is inert, so \(\varepsilon_3=-1\ne(1/3)\).
Proof sketch. Ideals of norm \(p\) are the kernels of ring homomorphisms \(\mathcal O_K\to\mathbb Z/p\), and distinct homomorphisms have distinct kernels, so \(a_K(p)\) is the number of such homomorphisms. With \(t\) the trace from \(\mathcal O_K\) to \(\mathbb Z\), every \(x\in\mathcal O_K\) satisfies \(2dx=d\,t(x)+t(\alpha x)\,\alpha\), as one checks in the basis \(1,\alpha\) of \(K\), using \(t(\alpha)=0\). Since \(2d\) is invertible modulo \(p\), a homomorphism \(\varphi\) is determined by \(r=\varphi(\alpha)\), which satisfies \(r^2=d\); conversely, for each \(r\) with \(r^2=d\), the map \(x\mapsto(d\,t(x)+t(\alpha x)r)/(2d)\) is a ring homomorphism, by two trace identities obtained by comparing coefficients in the basis \(1,\alpha\). Hence \(a_K(p)=\#\{r\in\mathbb Z/p:r^2=d\}=1+(d/p)\). No Kummer–Dedekind theorem and no index computation are needed. The formula for \(a_K(p^k)\) then follows from the prime-power formula.
theorem localEps_eq_legendreSym (h2 : finrank ℚ K = 2) {α : 𝓞 K} {d : ℤ}
(hα : α ^ 2 = d) (hd : ¬ IsSquare d) (p : ℕ) [Fact p.Prime] (hp2 : p ≠ 2)
(hpd : ¬ (p : ℤ) ∣ d) : localEps K p = legendreSym p d
theorem idealCount_prime_eq_legendreSym (h2 : finrank ℚ K = 2) {α : 𝓞 K} {d : ℤ}
(hα : α ^ 2 = d) (hd : ¬ IsSquare d) (p : ℕ) [Fact p.Prime] (hp2 : p ≠ 2)
(hpd : ¬ (p : ℤ) ∣ d) : (idealCount K p : ℤ) = legendreSym p d + 1
theorem idealCount_prime_pow_eq_legendreSym (h2 : finrank ℚ K = 2) {α : 𝓞 K} {d : ℤ}
(hα : α ^ 2 = d) (hd : ¬ IsSquare d) (p : ℕ) [Fact p.Prime] (hp2 : p ≠ 2)
(hpd : ¬ (p : ℤ) ∣ d) (k : ℕ) :
(idealCount K (p ^ k) : ℤ) = ∑ j ∈ Finset.range (k + 1), legendreSym p d ^ j
noncomputable def localEps (p : ℕ) : ℤ := idealCount K p - 1
ZInQKernel/Progressions/IdealCount/PrimePower.lean:245
noncomputable def idealCount (n : ℕ) : ℕ :=
Nat.card {I : Ideal (𝓞 K) // absNorm I = n}
ZInQKernel/Progressions/IdealCount/Basic.lean:19
Uses 3 · Used by 1
TheoremThe factorization of \(\zeta_K\)#✓
Let \(K\) be a number field of degree \(2\), with \(\varepsilon_p=a_K(p)-1\), let \(q\ge1\), and let \(\chi\) be a Dirichlet character modulo \(q\) with \(\varepsilon_p=\chi(p)\) for every prime \(p\nmid2q\). Then for every real \(s>1\), $\(\zeta_K(s)=\zeta(s)\,L(s,\chi)\prod_{p\mid2q}\frac{1-\chi(p)p^{-s}}{1-\varepsilon_pp^{-s}},\)$ the product running over the primes dividing \(2q\), and \(L(s,\chi)=\sum_{n\ge1}\chi(n)n^{-s}\). More generally, for any finite set \(P\) of primes with \(\varepsilon_p=\chi(p)\) for every prime \(p\notin P\), the same identity holds for every complex \(s\) with \(\mathrm{Re}\,s>1\), with the product over \(p\in P\).
The hypothesis on \(\varepsilon_p\) holds in the following situation: \(d\) is an integer that is not a square, \(\mathcal O_K\) contains an element \(\alpha\) with \(\alpha^2=d\) (for instance \(K=\mathbb Q(\sqrt d)\)), no prime \(p\nmid2q\) divides \(d\), and \(\chi(p)=\bigl(\frac dp\bigr)\) for every prime \(p\nmid2q\).
Proof sketch. For \(\mathrm{Re}\,s>1\) all three Dirichlet series converge absolutely and have Euler products: the coefficients \(a_K\) are multiplicative with the local factors \((1-p^{-s})^{-1}(1-\varepsilon_pp^{-s})^{-1}\), and \(\zeta(s)L(s,\chi)\) has the local factors \((1-p^{-s})^{-1}(1-\chi(p)p^{-s})^{-1}\). For \(p\notin P\) the local factors agree. The quotient of the two Euler products is therefore the finite product over \(p\in P\). In the situation of the last paragraph, a prime \(p\nmid2q\) is odd and does not divide \(d\), so \(\varepsilon_p=(d/p)=\chi(p)\) by the splitting law. (Here \(\chi(p)=0\) for \(p\mid q\), so only \(p=2\nmid q\) contributes a nontrivial numerator.) The hypothesis \(q\ge1\) matters: for \(q=0\) every prime divides \(2q\) but the product would be empty.
theorem dedekindZeta_eq_riemannZeta_mul_LSeries_mul_prod (h2 : finrank ℚ K = 2) {q : ℕ}
(hq : q ≠ 0) (χ : DirichletCharacter ℂ q)
(hχ : ∀ p : ℕ, p.Prime → ¬ p ∣ 2 * q → (localEps K p : ℂ) = χ p) {s : ℝ} (hs : 1 < s) :
dedekindZeta K s = riemannZeta s * LSeries (fun n ↦ χ n) s *
∏ p ∈ (2 * q).primeFactors,
(1 - χ p * (p : ℂ) ^ (-(s : ℂ))) * (1 - localEps K p * (p : ℂ) ^ (-(s : ℂ)))⁻¹
theorem dedekindZeta_eq_riemannZeta_mul_LSeries_mul_prod_of_legendreSym
(h2 : finrank ℚ K = 2) {α : 𝓞 K} {d : ℤ} (hα : α ^ 2 = d) (hd : ¬ IsSquare d) {q : ℕ}
(hq : q ≠ 0) (χ : DirichletCharacter ℂ q)
(hdq : ∀ p : ℕ, p.Prime → ¬ p ∣ 2 * q → ¬ (p : ℤ) ∣ d)
(hχ : ∀ (p : ℕ) [Fact p.Prime], ¬ p ∣ 2 * q → χ p = legendreSym p d) {s : ℝ} (hs : 1 < s) :
dedekindZeta K s = riemannZeta s * LSeries (fun n ↦ χ n) s *
∏ p ∈ (2 * q).primeFactors,
(1 - χ p * (p : ℂ) ^ (-(s : ℂ))) * (1 - localEps K p * (p : ℂ) ^ (-(s : ℂ)))⁻¹
theorem dedekindZeta_eq_mul_prod_of_localEps_eq (h2 : finrank ℚ K = 2) {q : ℕ}
(χ : DirichletCharacter ℂ q) (P : Finset ℕ) (hP : ∀ p ∈ P, p.Prime)
(hχ : ∀ p : ℕ, p.Prime → p ∉ P → (localEps K p : ℂ) = χ p) {s : ℂ} (hs : 1 < s.re) :
dedekindZeta K s = riemannZeta s * LSeries (fun n ↦ χ n) s *
∏ p ∈ P, (1 - χ p * (p : ℂ) ^ (-s)) * (1 - localEps K p * (p : ℂ) ^ (-s))⁻¹
noncomputable def localEps (p : ℕ) : ℤ := idealCount K p - 1
ZInQKernel/Progressions/IdealCount/PrimePower.lean:245
Uses 5 · Used by 1
Loading dependency explorer…
The dependency explorer needs JavaScript and its graph data.