Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 3.54 — Riemann's rearrangement theorem

Proved
Rudin.ch03_riemann_rearrangement

by LG · Sep 12, 2026 · Mathlib 0df444a (Lean v4.33.1)

analysisseries

Let ∑an\sum a_n∑an​ be a series of real numbers which converges but not absolutely, and let −∞≤α≤β≤+∞-\infty \le \alpha \le \beta \le +\infty−∞≤α≤β≤+∞. Then there is a rearrangement ∑aσ(n)\sum a_{\sigma(n)}∑aσ(n)​, σ\sigmaσ a bijection of N\mathbb{N}N, whose partial sums sn′s_n'sn′​ satisfy lim inf⁡nsn′=α\liminf_n s_n' = \alphaliminfn​sn′​=α and lim sup⁡nsn′=β\limsup_n s_n' = \betalimsupn​sn′​=β. In particular a conditionally convergent series can be rearranged to converge to any prescribed real value, or to diverge.

Preamble
import Mathlib
import Definitions.Def_Rudin_ch03_series

open Filter Topology
Formal statement
namespace Rudin

/-- Rudin, Theorem 3.54 (Riemann's rearrangement theorem): let `∑ aₙ` be a series of real
numbers which converges but not absolutely, and let `-∞ ≤ α ≤ β ≤ ∞`.  Then there is a
rearrangement `∑ a_{σ(n)}` whose partial sums `sₙ'` satisfy `liminf sₙ' = α` and
`limsup sₙ' = β`. -/
theorem ch03_riemann_rearrangement (a : ℕ → ℝ)
    (hconv : SeriesConverges a) (hnabs : ¬ SeriesConvergesAbsolutely a)
    (α β : EReal) (hαβ : α ≤ β) :
    ∃ σ : Equiv.Perm ℕ,
      liminf (fun n => ((partialSum (fun k => a (σ k)) n : ℝ) : EReal)) atTop = α ∧
      limsup (fun n => ((partialSum (fun k => a (σ k)) n : ℝ) : EReal)) atTop = β := by sorry

end Rudin
Source
Walter Rudin, Principles of Mathematical Analysis, 3rd edition, McGraw-Hill, 1976, Chapter 3, p. 76, Definition 3.52 and Theorem 3.54
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic)

Let a:N→Ra : \mathbb{N} \to \mathbb{R}a:N→R be a real sequence such that

  • the series ∑an\sum a_n∑an​ converges (its partial sums have a real limit), and
  • the series ∑∥an∥=∑∣an∣\sum \lVert a_n \rVert = \sum |a_n|∑∥an​∥=∑∣an​∣ does not converge,

and let α,β∈R‾=[−∞,+∞]\alpha, \beta \in \overline{\mathbb{R}} = [-\infty,+\infty]α,β∈R=[−∞,+∞] be extended reals with α≤β\alpha \le \betaα≤β (each may be −∞-\infty−∞ or +∞+\infty+∞, and they may be equal).

Then there exists a permutation σ\sigmaσ of N\mathbb{N}N (a bijection of the index set onto itself) such that the rearranged partial sums

Sn′  =  ∑k<naσ(k)S'_n \;=\; \sum_{k<n} a_{\sigma(k)}Sn′​=k<n∑​aσ(k)​

satisfy, in the extended reals,

lim inf⁡n→∞Sn′=αandlim sup⁡n→∞Sn′=β.\liminf_{n\to\infty} S'_n = \alpha \qquad\text{and}\qquad \limsup_{n\to\infty} S'_n = \beta .n→∞liminf​Sn′​=αandn→∞limsup​Sn′​=β.

Both equalities are asserted for the same permutation. Nothing is claimed about convergence of the rearranged series beyond these two equalities (they coincide exactly when α=β\alpha = \betaα=β).

Human review
  • Endorsed by Community (Bot) · Sep 14, 2026

  • Endorsed by LG · Sep 14, 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