Mathlib theorem · Existing formal mathematics

Existing in Mathlib · Number theory

Basel Problem

The sum of the reciprocals of the positive perfect squares is exactly π squared divided by six.

Exact theorem

Exact Mathlib statement

theorem hasSum_zeta_two : HasSum (fun n : ℕ => (1 : ℝ) / (n : ℝ) ^ 2) (π ^ 2 / 6)

The theorem at a glance

Basel Problem — reciprocal squares sum to π²/6

A visual guide to the theorem's hypotheses, structure, and conclusion; the exact statement gives the formal detail.

Mathlib's exponent-two specialization turns the Bernoulli–Fourier evaluation into the exact reciprocal-square sum. Explanatory diagram.
Detailed visual description

The familiar reciprocal-square equation dominates a sparse engraved poster. A periodic Bernoulli ribbon, harmonics with square-diminishing amplitudes, and a six-bay circle-and-square seal support four short source movements and an exact-scope footer explaining the natural-index zero term.

Statement structure

From hypotheses to conclusion

Statement map for Basel ProblemThe reciprocal-square series has sum π²/6. The pinned upstream declaration is hasSum_zeta_two. The exact checked statement is theorem hasSum_zeta_two : HasSum (fun n : ℕ => (1 : ℝ) / (n : ℝ) ^ 2) (π ^ 2 / 6).Mathematical readingThe reciprocal-squareseries has sum π²/6.Pinned declarationmathlib ·hasSum_zeta_twoExact checked formtheorem hasSum_zeta_two: HasSum (fun n : ℕ =>(1 : ℝ) / (n : ℝ) ^ 2)(π ^ 2 / 6)Statement map for Basel ProblemThe reciprocal-square series has sum π²/6. The pinned upstream declaration is hasSum_zeta_two. The exact checked statement is theorem hasSum_zeta_two : HasSum (fun n : ℕ => (1 : ℝ) / (n : ℝ) ^ 2) (π ^ 2 / 6).Mathematical readingThe reciprocal-squareseries has sum π²/6.Pinned declarationmathlib ·hasSum_zeta_twoExact checked formtheorem hasSum_zeta_two: HasSum (fun n : ℕ =>(1 : ℝ) / (n : ℝ) ^ 2)(π ^ 2 / 6)

This map summarizes the statement's structure; the exact Mathlib declaration remains authoritative.

The reciprocal-square coefficients converge through the Bernoulli–Fourier route to π²/6. Explanatory scientific diagram.
Detailed visual description

This page presents Mathlib's real HasSum statement for n ↦ 1/(n:ℝ)^2 with value π^2/6. Its natural-number indexing includes n = 0, whose term is zero under Lean's totalized real division, so it represents the usual series over positive integers. The selected declaration is only the exponent-two specialization, not a generic theorem about all zeta values.

Why it matters

A mathematical landmark

The Basel problem is one of the most recognizable exact evaluations of an infinite series. Mathlib's declaration exposes it as a concise specialization resting on a substantial Bernoulli-function and Fourier-coefficient development.

ProofAtlas record

What has been checked

Upstream indexedPinned source bytes verified locally
Locally reproducedExact upstream declaration replayed
Reviewed pageCurrent public presentation reviewed
Accepted Atlas resultNot recorded for the preferred artifact

Mathlib is the source of the theorem; the local Lean replay and page review are separate.

Claim boundary

No new theorem is claimed

This page presents Mathlib's real HasSum statement for n ↦ 1/(n:ℝ)^2 with value π^2/6. Its natural-number indexing includes n = 0, whose term is zero under Lean's totalized real division, so it represents the usual series over positive integers. The selected declaration is only the exponent-two specialization, not a generic theorem about all zeta values.

Source and local evidence

Where the theorem comes from

Existing declaration
hasSum_zeta_two in mathlib
Relationship
The checked artifact is the upstream declaration itself
Local Lean evidence
artifact.library.mathlib.basel-problem.v001
Source
Open the pinned upstream reference