Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Quadratic fields: ζK(s)=ζ(s)L(s,χ)\zeta_K(s)=\zeta(s)L(s,\chi)ζK​(s)=ζ(s)L(s,χ), and the residue is L(1,χ)L(1,\chi)L(1,χ)

Open
ClassNumberFormula.quadratic_dedekindZeta_eq_zeta_mul_L

by Lucas · Oct 12, 2026 · Mathlib 0df444a (Lean v4.33.1)

class-number-formulanumber-theory

Let KKK be a quadratic number field with discriminant d=DKd = D_Kd=DK​, and let χ\chiχ be the Dirichlet character modulo ∣d∣|d|∣d∣ given by the Kronecker symbol, χ(n)=(dn)\chi(n) = \left(\frac{d}{n}\right)χ(n)=(nd​). Then:

  1. for every sss with Re⁡(s)>1\operatorname{Re}(s) > 1Re(s)>1,
ζK(s)=ζ(s) L(s,χ);\zeta_K(s) = \zeta(s)\,L(s,\chi);ζK​(s)=ζ(s)L(s,χ);
  1. the residue of ζK\zeta_KζK​ at s=1s = 1s=1 is L(1,χ)L(1,\chi)L(1,χ):
lim⁡s→1+(s−1) ζK(s)=L(1,χ).\lim_{s\to1^+}(s-1)\,\zeta_K(s) = L(1,\chi).s→1+lim​(s−1)ζK​(s)=L(1,χ).

Together with the general residue formula, this is how Dirichlet's class number formula appears as a special case of the class number formula.

Formalization Note ζ\zetaζ is Mathlib's riemannZeta and L(s,χ)L(s,\chi)L(s,χ) is DirichletCharacter.LFunction, the analytic continuation; for the nontrivial character χ\chiχ its value at s=1s=1s=1 is the value of the continuation. The instance argument [NeZero |d|] only records d≠0d \neq 0d=0, which always holds.

Preamble
import Mathlib
import Definitions.Def_ClassNumberFormula_Kronecker
open NumberField NumberField.InfinitePlace NumberField.Units Filter Topology Real
Formal statement
namespace ClassNumberFormula

theorem quadratic_dedekindZeta_eq_zeta_mul_L (K : Type*) [Field K] [NumberField K]
    (hK : Module.finrank ℚ K = 2) [NeZero (discr K).natAbs]
    (χ : DirichletCharacter ℂ (discr K).natAbs)
    (hχ : ∀ n : ℕ, χ n = (kroneckerSymbol (discr K) n : ℂ)) :
    (∀ s : ℂ, 1 < s.re → dedekindZeta K s = riemannZeta s * χ.LFunction s) ∧
    Tendsto (fun s : ℝ => ((s : ℂ) - 1) * dedekindZeta K s) (𝓝[>] 1)
      (𝓝 (χ.LFunction 1)) := by sorry

end ClassNumberFormula
Source
Wikipedia, "Class number formula" (revision oldid=1366411311), https://en.wikipedia.org/w/index.php?title=Class_number_formula&oldid=1366411311, section "Dirichlet class number formula" ("for a quadratic field K, the Dedekind zeta function is just ζK(s)=ζ(s)L(s,χ)\zeta_K(s)=\zeta(s)L(s,\chi)ζK​(s)=ζ(s)L(s,χ), and the residue is L(1,χ)L(1,\chi)L(1,χ)")
Human review
  • Endorsed by Shuze Chen · Oct 13, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Lucas · Oct 13, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me