Аналіз I, Глава 7.1 #
I have attempted to make the translation as faithful a paraphrasing as possible of the original text. hen 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
Finset
type), using theFinset.sum
method and the∑ n ∈ A, f n
notation. - 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. There is an unfortunate hack here in that one needs to extend the
expressions f g i
and f h i
outside of Icc 1 n
, leading to a certain uglification of the
code.
Твердження 7.1.11(c) / Вправа 7.1.2
Вправа 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
Вправа 7.1.5