Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Finite form of L(1,χ)L(1,\chi)L(1,χ) for prime conductor q≡3(mod4)q\equiv3\pmod 4q≡3(mod4)

Proved
ClassNumberFormula.L_one_finite_form_three_mod_four

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

class-number-formulanumber-theory

Let qqq be a prime with q≡3(mod4)q\equiv 3\pmod 4q≡3(mod4), and let χ\chiχ be the Dirichlet character modulo qqq given by the Legendre symbol, χ(m)=(mq)\chi(m) = \left(\frac{m}{q}\right)χ(m)=(qm​). Then

L(1,χ)=−πq3/2∑m=1q−1m(mq).L(1,\chi) = -\frac{\pi}{q^{3/2}}\sum_{m=1}^{q-1} m\left(\frac{m}{q}\right).L(1,χ)=−q3/2π​m=1∑q−1​m(qm​).

Combined with the case d=−qd=-qd=−q of Dirichlet's formula, this gives a finite expression for the class number.

Formalization Note In the source, χ=(d⋅)\chi = \left(\frac{d}{\cdot}\right)χ=(⋅d​) is primitive with prime conductor qqq, so d=−qd = -qd=−q, and by quadratic reciprocity χ(m)=(mq)\chi(m) = \left(\frac{m}{q}\right)χ(m)=(qm​); the statement uses this explicit description. L(1,χ)L(1,\chi)L(1,χ) is Mathlib's DirichletCharacter.LFunction at s=1s=1s=1.

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

theorem L_one_finite_form_three_mod_four (q : ℕ) [Fact q.Prime] (hq : q % 4 = 3)
    (χ : DirichletCharacter ℂ q) (hχ : ∀ m : ℕ, χ m = (legendreSym q m : ℂ)) :
    χ.LFunction 1 = ((-(π / (q : ℝ) ^ ((3 : ℝ) / 2)) *
      ∑ m ∈ Finset.Ico 1 q, (m : ℝ) * (legendreSym q m : ℝ) : ℝ) : ℂ) := 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", last displayed formula, case q≡3(mod4)q \equiv 3 \pmod 4q≡3(mod4)
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