Infinite sums over ℕ and ℤ #
This file contains lemmas about HasSum, Summable, and tsum applied to the important special
case where the domain is ℕ or ℤ. For instance, we prove the formula
∑ i in range k, f i + ∑' i, f (i + k) = ∑' i, f i, in sum_add_tsum_nat_add, as well as several
results relating sums on ℕ and ℤ.
If f : ℕ → α has sum a, then the partial sums ∑_{i=0}^{n-1} f i converge to a.
You can compute a sum over an encodable type by summing over the natural numbers and taking a supremum. This is useful for outer measures.
tsum_iSup_decode₂ specialized to the complete lattice of sets.
Some properties about measure-like functions. These could also be functions defined on complete
sublattices of sets, with the property that they are countably sub-additive.
R will probably be instantiated with (≤) in all applications.
If a function is countably sub-additive then it is sub-additive on countable types
If a function is countably sub-additive then it is sub-additive on finite sets
If a function is countably sub-additive then it is binary sub-additive
For f : ℕ → α, then ∑' k, f (k + i) tends to zero. This does not require a summability
assumption on f, as otherwise all sums are zero.
If f₀, f₁, f₂, ... and g₀, g₁, g₂, ... are both convergent then so is the ℤ-indexed
sequence: ..., g₂, g₁, g₀, f₀, f₁, f₂, ....