Partial sums and convergence of a series
DefinitionRudin_ch03_seriesRudin's notion of a convergent series: converges to when the partial sums converge to (Definition 3.21), and converges absolutely when converges (Section 3.45). This is deliberately not Mathlib's Summable/HasSum, which express unconditional summability and are equivalent to absolute convergence for real and complex terms; the distinction between conditional and absolute convergence is the subject of the chapter, so the partial-sum formulation is needed.
import Mathlib
/-!
# Rudin, Chapter 3 — series and their partial sums
Definitions transcribed from Walter Rudin, *Principles of Mathematical Analysis*, 3rd edition,
Chapter 3 (Definitions 3.21 and 3.23, Section 3.45).
Convergence of a *sequence* is Mathlib's `Filter.Tendsto … atTop (nhds …)` and is reused.
Convergence of a *series* is not: Rudin's $\sum a_n$ converges when the sequence of partial
sums $s_n = a_0 + \dots + a_{n-1}$ converges, which for real or complex terms is strictly weaker
than Mathlib's `Summable`/`HasSum` (those express unconditional summability, equivalent to
absolute convergence in this setting). Since Chapter 3 is largely about the difference between
conditional and absolute convergence — its capstone is the Riemann rearrangement theorem — the
partial-sum notions are introduced explicitly here.
-/
namespace Rudin
/-- The `n`-th partial sum `a 0 + a 1 + ⋯ + a (n-1)` of the series `∑ aₙ`. -/
def partialSum {M : Type*} [AddCommMonoid M] (a : ℕ → M) (n : ℕ) : M :=
∑ i ∈ Finset.range n, a i
/-- Rudin, Definition 3.21: the series `∑ aₙ` **converges to** `s` if its partial sums converge
to `s`. -/
def SeriesConvergesTo {M : Type*} [AddCommMonoid M] [TopologicalSpace M] (a : ℕ → M) (s : M) :
Prop :=
Filter.Tendsto (partialSum a) Filter.atTop (nhds s)
/-- Rudin, Definition 3.21: the series `∑ aₙ` **converges** if its partial sums converge. -/
def SeriesConverges {M : Type*} [AddCommMonoid M] [TopologicalSpace M] (a : ℕ → M) : Prop :=
∃ s, SeriesConvergesTo a s
/-- Rudin, Definition 3.45: the series `∑ aₙ` **converges absolutely** if `∑ ‖aₙ‖` converges. -/
def SeriesConvergesAbsolutely {E : Type*} [NormedAddCommGroup E] (a : ℕ → E) : Prop :=
SeriesConverges fun n => ‖a n‖
end RudinRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic)
Three notions are defined for sequences indexed by .
Partial sum. For an additive commutative monoid , a sequence and ,
the sum over the first indices . In particular , and the term itself is not included in .
Convergence of a series to a value. If is in addition a topological space, " converges to " means the sequence tends to along the filter of large , i.e. every neighbourhood of contains for all sufficiently large . No Hausdorff assumption is made, so for a general several limits may qualify.
Convergence of a series. " converges" means there exists some to which it converges in the above sense.
Absolute convergence. For a sequence in a normed additive commutative group , " converges absolutely" means the real series of norms, , converges in the above sense — i.e. its partial sums have a limit in .
These are definitions only; no statement about them is asserted here.
Confirmed by the mission captain (proposal self-audit).