Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

∑wNwlog⁡∣u∣w=0\sum_w N_w\log\lvert u\rvert_w = 0∑w​Nw​log∣u∣w​=0 for every unit

Proved
DirichletUnitTheorem.sum_mult_log_eq_zero

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

algebraic-number-theorynumber-theory

Let KKK be a number field and u∈OK×u\in\mathcal O_K^\timesu∈OK×​. Writing σj\sigma_jσj​ for the embeddings corresponding to the infinite places and Nj∈{1,2}N_j\in\{1,2\}Nj​∈{1,2} for the local degrees,

∑jNjlog⁡∣σj(u)∣=0.\sum_{j} N_j\log\lvert\sigma_j(u)\rvert = 0.j∑​Nj​log∣σj​(u)∣=0.

The left side is log⁡∣NK/Q(u)∣\log\lvert N_{K/\mathbb Q}(u)\rvertlog∣NK/Q​(u)∣, and units have norm ±1\pm1±1. This is the reason the rows of the regulator matrix sum to zero.

Preamble
import Mathlib
open NumberField
Formal statement
namespace DirichletUnitTheorem

theorem sum_mult_log_eq_zero (K : Type*) [Field K] [NumberField K] (u : (𝓞 K)ˣ) :
    ∑ w : InfinitePlace K, (w.mult : ℝ) * Real.log (w ((u : 𝓞 K) : K)) = 0 := by sorry

end DirichletUnitTheorem
Source
Wikipedia, "Dirichlet's unit theorem" (article supplied by the account owner as a PDF), section "The regulator" ("the sum of any row is zero (because all units have norm 1, and the log of the norm is the sum of the entries in a row)").
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent as the drafter; non-blind

Non-blind read-back — not independent testimony. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted this Lean statement, at the explicit request of the account owner. Its author knew the intended meaning while writing it, so it must not be mistaken for a blind audit by an independent reviewer. Please compare it against the Lean code itself.

Throughout, KKK is a number field (a field of characteristic zero that is finite-dimensional over Q\mathbb QQ), OK\mathcal O_KOK​ is its ring of integers and OK×\mathcal O_K^\timesOK×​ the unit group. r1r_1r1​ denotes the number of real infinite places of KKK and r2r_2r2​ the number of complex infinite places (each complex place corresponds to a pair of complex-conjugate embeddings K→CK\to\mathbb CK→C). For an infinite place www of KKK, ∣x∣w\lvert x\rvert_w∣x∣w​ denotes the absolute value ∣σ(x)∣\lvert\sigma(x)\rvert∣σ(x)∣ for an embedding σ\sigmaσ inducing www, and NwN_wNw​ is 111 if www is real and 222 if www is complex. log⁡\loglog is the real logarithm (Mathlib's convention gives log⁡0=0\log 0 = 0log0=0, but units have ∣u∣w>0\lvert u\rvert_w>0∣u∣w​>0). Statement. For every number field KKK and every unit u∈OK×u\in\mathcal O_K^\timesu∈OK×​,

∑wNwlog⁡∣u∣w=0,\sum_{w} N_w \log\lvert u\rvert_w = 0,w∑​Nw​log∣u∣w​=0,

the sum running over all infinite places www of KKK.

Human review
  • Endorsed by Shuze Chen · Oct 10, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Lucas · Oct 10, 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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me