Infinite sum over a topological monoid #
This sum is known as unconditionally convergent, as it sums to the same value under all possible permutations. For Euclidean spaces (finite dimensional Banach spaces) this is equivalent to absolute convergence.
Note: There are summable sequences which are not unconditionally convergent! The other way holds
generally, see HasSum.tendsto_sum_nat
.
References #
- Bourbaki: General Topology (1995), Chapter 3 §5 (Infinite sums in commutative groups)
Infinite sum on a topological monoid
The atTop
filter on Finset β
is the limit of all finite sets towards the entire type. So we sum
up bigger and bigger sets. This sum operation is invariant under reordering. In particular,
the function ℕ → ℝ
sending n
to (-1)^n / (n+1)
does not have a
sum for this definition, but a series which is absolutely convergent will have the correct sum.
This is based on Mario Carneiro's
infinite sum df-tsms
in Metamath.
For the definition or many statements, α
does not need to be a topological monoid. We only add
this assumption later, for the lemmas where it is relevant.
Equations
- HasSum f a = Filter.Tendsto (fun s => Finset.sum s fun b => f b) Filter.atTop (nhds a)
Instances For
∑' i, f i
is the sum of f
it exists, or 0 otherwise.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
∑' i, f i
is the sum of f
it exists, or 0 otherwise.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Constant zero function has sum 0
If a function f
vanishes outside of a finite set s
, then it HasSum
∑ b in s, f b
.
A special case of Summable.map_iff_of_leftInverse
for convenience
If f : ℕ → α
has sum a
, then the partial sums ∑_{i=0}^{n-1} f i
converge to a
.
If a series f
on β × γ
has sum a
and for each b
the restriction of f
to {b} × γ
has sum g b
, then the series g
has sum a
.
Version of HasSum.update
for AddCommMonoid
rather than AddCommGroup
.
Rather than showing that f.update
has a specific sum in terms of HasSum
,
it gives a relationship between the sums of f
and f.update
given that both exist.
Version of hasSum_ite_sub_hasSum
for AddCommMonoid
rather than AddCommGroup
.
Rather than showing that the ite
expression has a specific sum in terms of HasSum
,
it gives a relationship between the sums of f
and ite (n = b) 0 (f n)
given that both exist.
Version of tsum_eq_add_tsum_ite
for AddCommMonoid
rather than AddCommGroup
.
Requires a different convergence assumption involving Function.update
.
You can compute a sum over an encodably 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
Let f : β → α
be a sequence with summable series and let b ∈ β
be an index.
Lemma tsum_eq_add_tsum_ite
writes Σ f n
as the sum of f b
plus the series of the
remaining terms.
Sums on nat #
We show 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 ℤ
.
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₂, ...
.
The Cauchy criterion for infinite sums, also known as the Cauchy convergence test
The sum over the complement of a finset tends to 0
when the finset grows to cover the whole
space. This does not need a summability assumption, as otherwise all sums are zero.
Series divergence test: if f
is a convergent series, then f x
tends to zero along
cofinite
.
Infinite sums commute with scalar multiplication. Version for scalars living in a Monoid
, but
requiring a summability hypothesis.
Infinite sums commute with scalar multiplication. Version for scalars living in a Group
, but
not requiring any summability hypothesis.
Infinite sums commute with scalar multiplication. Version for scalars living in a
DivisionRing
; no summability hypothesis. This could be made to work for a
[GroupWithZero γ]
if there was such a thing as DistribMulActionWithZero
.
Product and pi types #
Multiplicative opposite #
Interaction with the star #
Equations
- AddAction.automorphize.match_1 b₁ b₂ motive h h_1 = Exists.casesOn h fun w h => h_1 w h
Instances For
Given an additive group α
acting on a type β
, and a function f : β → M
,
we automorphize f
to a function β ⧸ α → M
by summing over α
orbits,
b ↦ ∑' (a : α), f(a • b)
.
Equations
- AddAction.automorphize f = Quotient.lift (fun b => ∑' (a : α), f (a +ᵥ b)) (_ : ∀ (b₁ b₂ : β), b₁ ≈ b₂ → (fun b => ∑' (a : α), f (a +ᵥ b)) b₁ = (fun b => ∑' (a : α), f (a +ᵥ b)) b₂)
Instances For
Given a group α
acting on a type β
, and a function f : β → M
, we "automorphize" f
to a
function β ⧸ α → M
by summing over α
orbits, b ↦ ∑' (a : α), f(a • b)
.
Equations
- MulAction.automorphize f = Quotient.lift (fun b => ∑' (a : α), f (a • b)) (_ : ∀ (b₁ b₂ : β), b₁ ≈ b₂ → (fun b => ∑' (a : α), f (a • b)) b₁ = (fun b => ∑' (a : α), f (a • b)) b₂)
Instances For
Automorphization of a function into an R
-module
distributes, that is, commutes with the
R
-scalar multiplication.
Automorphization of a function into an R
-module
distributes, that is, commutes with the
R
-scalar multiplication.
Given a subgroup Γ
of an additive group G
, and a function f : G → M
, we
automorphize f
to a function G ⧸ Γ → M
by summing over Γ
orbits,
g ↦ ∑' (γ : Γ), f(γ • g)
.
Equations
Instances For
Given a subgroup Γ
of a group G
, and a function f : G → M
, we "automorphize" f
to a
function G ⧸ Γ → M
by summing over Γ
orbits, g ↦ ∑' (γ : Γ), f(γ • g)
.
Equations
Instances For
Automorphization of a function into an R
-module
distributes, that is, commutes with the
R
-scalar multiplication.
Automorphization of a function into an R
-module
distributes, that is, commutes with the
R
-scalar multiplication.