Analysis I, Section 7.1: Finite series #
I have attempted to make the translation as faithful a paraphrasing as possible of the original text. When there is a choice between a more idiomatic Lean solution and a more faithful translation, I have generally chosen the latter. In particular, there will be places where the Lean code could be "golfed" to be more elegant and idiomatic, but I have consciously avoided doing so.
Technical note: it is convenient in Lean to extend finite sequences (usually by zero) to be functions on the entire integers.
Main constructions and results of this section:
- API for summation over finite sets (encoded using Mathlib's
Finsettype), using theFinset.summethod and the∑ n ∈ A, f nnotation. - Fubini's theorem for finite series
We do not attempt to replicate the full API for Finset.sum here, but in subsequent sections we
shall make liberal use of this API.
Proposition 7.1.8.
This fact ensures that Definition 7.1.6 would be well-defined even if we did not appeal to the
existing Finset.sum method.
A technical lemma relating a sum over a finset with a sum over a fintype. Combines well with
tools such as map_finite_series below.
Proposition 7.1.11(c) / Exercise 7.1.2
Exercise 7.1.4. Note: there may be some technicalities passing back and forth between natural
numbers and integers. Look into the tactics zify, norm_cast, and omega
Exercise 7.1.5