The areas / V14. Topological algebra and infinite sums
Mathlib.Topology.Algebra.InfiniteSum.ENNReal
77 declarations and 30 deprecated aliases. Mathlib docs · Source
Infinite sums in extended nonnegative reals
This file proves results on infinite sums in ℝ≥0∞.
In particular, we give lemmas relating sums of constants to the cardinality of the domain of these sums.
TODO
- Once we have a topology on
ENat, provide anENat-valued version - Provide versions which sum over the whole type.
theorem ENNReal.hasSum_coe E0 #
∀ {α : Type u_1} {f : α → NNReal} {r : NNReal}, HasSum (fun a ↦ ↑(f a)) ↑r ↔ HasSum f r
theorem ENNReal.tsum_coe_eq E0 #
∀ {α : Type u_1} {r : NNReal} {f : α → NNReal}, HasSum f r → ∑' (a : α), ↑(f a) = ↑r
theorem ENNReal.coe_tsum E0 #
∀ {α : Type u_1} {f : α → NNReal}, Summable f → ↑(tsum f) = ∑' (a : α), ↑(f a)
theorem ENNReal.tsum_coe_ne_top_iff_summable E1 #
∀ {β : Type u_2} {f : β → NNReal}, ∑' (b : β), ↑(f b) ≠ ⊤ ↔ Summable f
theorem ENNReal.le_tsum_of_forall_lt_exists_sum E1 #
∀ {α : Type u_1} {a : ENNReal} {f : α → ENNReal}, (∀ b < a, ∃ I, b < ∑ i ∈ I, f i) → a ≤ ∑' (i : α), f i
theorem ENNReal.tsum_eq_iSup_nat' E1 #
∀ {f : ℕ → ENNReal} {N : ℕ → ℕ},
Filter.Tendsto N Filter.atTop Filter.atTop → ∑' (i : ℕ), f i = ⨆ i, ∑ a ∈ Finset.range (N i), f a
theorem ENNReal.tsum_eq_iSup_nat E1 #
∀ {f : ℕ → ENNReal}, ∑' (i : ℕ), f i = ⨆ i, ∑ a ∈ Finset.range i, f a
theorem ENNReal.tsum_eq_liminf_sum_nat E1 #
∀ {f : ℕ → ENNReal}, ∑' (i : ℕ), f i = Filter.liminf (fun n ↦ ∑ i ∈ Finset.range n, f i) Filter.atTop
theorem ENNReal.tsum_eq_limsup_sum_nat E1 #
∀ {f : ℕ → ENNReal}, ∑' (i : ℕ), f i = Filter.limsup (fun n ↦ ∑ i ∈ Finset.range n, f i) Filter.atTop
theorem ENNReal.lt_top_of_tsum_ne_top E1 #
∀ {α : Type u_1} {a : α → ENNReal}, ∑' (i : α), a i ≠ ⊤ → ∀ (j : α), a j < ⊤
theorem ENNReal.tsum_top E0 #
∀ {α : Type u_1} [Nonempty α], ∑' (x : α), ⊤ = ⊤
theorem ENNReal.tsum_const_eq_top_of_ne_zero E1 #
∀ {α : Type u_4} [Infinite α] {c : ENNReal}, c ≠ 0 → ∑' (x : α), c = ⊤
theorem ENNReal.tsum_mul_left E1 #
∀ {α : Type u_1} {a : ENNReal} {f : α → ENNReal}, ∑' (i : α), a * f i = a * ∑' (i : α), f i
theorem ENNReal.tsum_mul_right E1 #
∀ {α : Type u_1} {a : ENNReal} {f : α → ENNReal}, ∑' (i : α), f i * a = (∑' (i : α), f i) * a
theorem ENNReal.tsum_const_smul E1 #
∀ {α : Type u_1} {f : α → ENNReal} {R : Type u_4} [inst : SMul R ENNReal] [IsScalarTower R ENNReal ENNReal] (a : R),
∑' (i : α), a • f i = a • ∑' (i : α), f i
theorem ENNReal.tsum_iSup_eq E0 #
∀ {α : Type u_4} (a : α) {f : α → ENNReal}, ∑' (b : α), ⨆ (_ : a = b), f b = f a
theorem ENNReal.hasSum_iff_tendsto_nat E1 #
∀ {f : ℕ → ENNReal} (r : ENNReal), HasSum f r ↔ Filter.Tendsto (fun n ↦ ∑ i ∈ Finset.range n, f i) Filter.atTop (nhds r)
theorem ENNReal.tendsto_nat_tsum E1 #
∀ (f : ℕ → ENNReal), Filter.Tendsto (fun n ↦ ∑ i ∈ Finset.range n, f i) Filter.atTop (nhds (∑' (n : ℕ), f n))
theorem ENNReal.toNNReal_apply_of_tsum_ne_top E1 #
∀ {α : Type u_4} {f : α → ENNReal}, ∑' (i : α), f i ≠ ⊤ → ∀ (x : α), ↑((ENNReal.toNNReal ∘ f) x) = f x
theorem ENNReal.summable_toNNReal_of_tsum_ne_top E1 #
∀ {α : Type u_4} {f : α → ENNReal}, ∑' (i : α), f i ≠ ⊤ → Summable (ENNReal.toNNReal ∘ f)
theorem ENNReal.tendsto_cofinite_zero_of_tsum_ne_top E1 #
∀ {α : Type u_4} {f : α → ENNReal}, ∑' (x : α), f x ≠ ⊤ → Filter.Tendsto f Filter.cofinite (nhds 0)
theorem ENNReal.tendsto_atTop_zero_of_tsum_ne_top E1 #
∀ {f : ℕ → ENNReal}, ∑' (x : ℕ), f x ≠ ⊤ → Filter.Tendsto f Filter.atTop (nhds 0)
theorem ENNReal.tendsto_tsum_compl_atTop_zero E1 #
∀ {α : Type u_4} {f : α → ENNReal},
∑' (x : α), f x ≠ ⊤ → Filter.Tendsto (fun s ↦ ∑' (b : { x // x ∉ s }), f ↑b) Filter.atTop (nhds 0)
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.
theorem ENNReal.tsum_apply E0 #
∀ {ι : Type u_4} {α : Type u_5} {f : ι → α → ENNReal} {x : α}, (∑' (i : ι), f i) x = ∑' (i : ι), f i x
theorem ENNReal.tsum_sub E1 #
∀ {f g : ℕ → ENNReal}, ∑' (i : ℕ), g i ≠ ⊤ → g ≤ f → ∑' (i : ℕ), (f i - g i) = ∑' (i : ℕ), f i - ∑' (i : ℕ), g i
theorem ENNReal.tsum_add_one_eq_top E1 #
∀ {f : ℕ → ENNReal}, ∑' (n : ℕ), f n = ⊤ → f 0 ≠ ⊤ → ∑' (n : ℕ), f (n + 1) = ⊤
theorem ENNReal.finite_const_le_of_tsum_ne_top E1 #
∀ {ι : Type u_4} {a : ι → ENNReal}, ∑' (i : ι), a i ≠ ⊤ → ∀ {ε : ENNReal}, ε ≠ 0 → {i | ε ≤ a i}.Finite
A sum of extended nonnegative reals which is finite can have only finitely many terms above any positive threshold.
theorem ENNReal.finset_card_const_le_le_of_tsum_le E2 #
∀ {ι : Type u_4} {a : ι → ENNReal} {c : ENNReal},
c ≠ ⊤ → ∑' (i : ι), a i ≤ c → ∀ {ε : ENNReal}, ε ≠ 0 → ∃ (hf : {i | ε ≤ a i}.Finite), ↑hf.toFinset.card ≤ c / ε
Markov's inequality for Finset.card and tsum in ℝ≥0∞.
theorem ENNReal.tsum_coe_ne_top_iff_summable_coe E0 #
∀ {α : Type u_1} {f : α → NNReal}, ∑' (a : α), ↑(f a) ≠ ⊤ ↔ Summable fun a ↦ ↑(f a)
theorem ENNReal.tsum_coe_eq_top_iff_not_summable_coe E0 #
∀ {α : Type u_1} {f : α → NNReal}, ∑' (a : α), ↑(f a) = ⊤ ↔ ¬Summable fun a ↦ ↑(f a)
theorem ENNReal.hasSum_toReal E1 #
∀ {α : Type u_1} {f : α → ENNReal}, ∑' (x : α), f x ≠ ⊤ → HasSum (fun x ↦ (f x).toReal) (∑' (x : α), (f x).toReal)
theorem ENNReal.summable_toReal E1 #
∀ {α : Type u_1} {f : α → ENNReal}, ∑' (x : α), f x ≠ ⊤ → Summable fun x ↦ (f x).toReal
theorem NNReal.tsum_eq_toNNReal_tsum E1 #
∀ {β : Type u_2} {f : β → NNReal}, ∑' (b : β), f b = (∑' (b : β), ↑(f b)).toNNReal
theorem NNReal.exists_le_hasSum_of_le E1 #
∀ {β : Type u_2} {f g : β → NNReal} {r : NNReal}, (∀ (b : β), g b ≤ f b) → HasSum f r → ∃ p ≤ r, HasSum g p
Comparison test of convergence of ℝ≥0-valued series.
theorem NNReal.summable_of_le E1 #
∀ {β : Type u_2} {f g : β → NNReal}, (∀ (b : β), g b ≤ f b) → Summable f → Summable g
Comparison test of convergence of ℝ≥0-valued series.
theorem Summable.countable_support_nnreal E1 #
∀ {α : Type u_1} (f : α → NNReal), Summable f → (Function.support f).Countable
Summable non-negative functions have countable support
theorem NNReal.hasSum_iff_tendsto_nat E1 #
∀ {f : ℕ → NNReal} {r : NNReal}, HasSum f r ↔ Filter.Tendsto (fun n ↦ ∑ i ∈ Finset.range n, f i) Filter.atTop (nhds r)
A series of non-negative real numbers converges to r in the sense of HasSum if and only if
the sequence of partial sum converges to r.
theorem NNReal.not_summable_iff_tendsto_nat_atTop E1 #
∀ {f : ℕ → NNReal}, ¬Summable f ↔ Filter.Tendsto (fun n ↦ ∑ i ∈ Finset.range n, f i) Filter.atTop Filter.atTop
theorem NNReal.summable_iff_not_tendsto_nat_atTop E1 #
∀ {f : ℕ → NNReal}, Summable f ↔ ¬Filter.Tendsto (fun n ↦ ∑ i ∈ Finset.range n, f i) Filter.atTop Filter.atTop
theorem NNReal.summable_of_sum_range_le E1 #
∀ {f : ℕ → NNReal} {c : NNReal}, (∀ (n : ℕ), ∑ i ∈ Finset.range n, f i ≤ c) → Summable f
theorem NNReal.tsum_le_of_sum_range_le E1 #
∀ {f : ℕ → NNReal} {c : NNReal}, (∀ (n : ℕ), ∑ i ∈ Finset.range n, f i ≤ c) → ∑' (n : ℕ), f n ≤ c
theorem NNReal.tsum_comp_le_tsum_of_inj E1 #
∀ {α : Type u_1} {β : Type u_4} {f : α → NNReal},
Summable f → ∀ {i : β → α}, Function.Injective i → ∑' (x : β), f (i x) ≤ ∑' (x : α), f x
theorem NNReal.summable_sigma E1 #
∀ {α : Type u_1} {β : α → Type u_4} {f : (x : α) × β x → NNReal},
Summable f ↔ (∀ (x : α), Summable fun y ↦ f ⟨x, y⟩) ∧ Summable fun x ↦ ∑' (y : β x), f ⟨x, y⟩
theorem NNReal.indicator_summable E1 #
∀ {α : Type u_1} {f : α → NNReal}, Summable f → ∀ (s : Set α), Summable (s.indicator f)
theorem NNReal.tsum_indicator_ne_zero E1 #
∀ {α : Type u_1} {f : α → NNReal}, Summable f → ∀ {s : Set α}, (∃ a ∈ s, f a ≠ 0) → ∑' (x : α), s.indicator f x ≠ 0
theorem NNReal.tendsto_sum_nat_add E1 #
∀ (f : ℕ → NNReal), Filter.Tendsto (fun i ↦ ∑' (k : ℕ), f (k + i)) Filter.atTop (nhds 0)
For f : ℕ → ℝ≥0, then ∑' k, f (k + i) tends to zero. This does not require a summability
assumption on f, as otherwise all sums are zero.
theorem NNReal.hasSum_lt E1 #
∀ {α : Type u_1} {f g : α → NNReal} {sf sg : NNReal} {i : α},
(∀ (a : α), f a ≤ g a) → f i < g i → HasSum f sf → HasSum g sg → sf < sg
theorem NNReal.hasSum_strict_mono E1 #
∀ {α : Type u_1} {f g : α → NNReal} {sf sg : NNReal}, HasSum f sf → HasSum g sg → f < g → sf < sg
theorem NNReal.tsum_lt_tsum E1 #
∀ {α : Type u_1} {f g : α → NNReal} {i : α},
(∀ (a : α), f a ≤ g a) → f i < g i → Summable g → ∑' (n : α), f n < ∑' (n : α), g n
theorem NNReal.tsum_strict_mono E1 #
∀ {α : Type u_1} {f g : α → NNReal}, Summable g → f < g → ∑' (n : α), f n < ∑' (n : α), g n
theorem NNReal.tsum_pos E1 #
∀ {α : Type u_1} {g : α → NNReal}, Summable g → ∀ (i : α), 0 < g i → 0 < ∑' (b : α), g b
theorem NNReal.tsum_eq_add_tsum_ite E1 #
∀ {α : Type u_1} {f : α → NNReal}, Summable f → ∀ (i : α), ∑' (x : α), f x = f i + ∑' (x : α), if x = i then 0 else f x
theorem ENNReal.tsum_toNNReal_eq E0 #
∀ {α : Type u_1} {f : α → ENNReal}, (∀ (a : α), f a ≠ ⊤) → (∑' (a : α), f a).toNNReal = ∑' (a : α), (f a).toNNReal
theorem ENNReal.tsum_toReal_eq E0 #
∀ {α : Type u_1} {f : α → ENNReal}, (∀ (a : α), f a ≠ ⊤) → (∑' (a : α), f a).toReal = ∑' (a : α), (f a).toReal
theorem ENNReal.tendsto_sum_nat_add E1 #
∀ (f : ℕ → ENNReal), ∑' (i : ℕ), f i ≠ ⊤ → Filter.Tendsto (fun i ↦ ∑' (k : ℕ), f (k + i)) Filter.atTop (nhds 0)
theorem ENNReal.tsum_le_of_sum_range_le E1 #
∀ {f : ℕ → ENNReal} {c : ENNReal}, (∀ (n : ℕ), ∑ i ∈ Finset.range n, f i ≤ c) → ∑' (n : ℕ), f n ≤ c
theorem ENNReal.hasSum_lt E1 #
∀ {α : Type u_1} {f g : α → ENNReal} {sf sg : ENNReal} {i : α},
(∀ (a : α), f a ≤ g a) → f i < g i → sf ≠ ⊤ → HasSum f sf → HasSum g sg → sf < sg
theorem ENNReal.tsum_lt_tsum E1 #
∀ {α : Type u_1} {f g : α → ENNReal} {i : α},
tsum f ≠ ⊤ → (∀ (a : α), f a ≤ g a) → f i < g i → ∑' (x : α), f x < ∑' (x : α), g x
theorem tsum_comp_le_tsum_of_inj E1 #
∀ {α : Type u_1} {β : Type u_4} {f : α → ℝ},
Summable f → (∀ (a : α), 0 ≤ f a) → ∀ {i : β → α}, Function.Injective i → tsum (f ∘ i) ≤ tsum f
theorem Summable.of_nonneg_of_le E1 #
∀ {β : Type u_2} {f g : β → ℝ}, (∀ (b : β), 0 ≤ g b) → (∀ (b : β), g b ≤ f b) → Summable f → Summable g
Comparison test of convergence of series of non-negative real numbers.
theorem Summable.toNNReal E1 #
∀ {α : Type u_1} {f : α → ℝ}, Summable f → Summable fun n ↦ (f n).toNNReal
theorem Summable.tsum_ofReal_lt_top E1 #
∀ {α : Type u_1} {f : α → ℝ}, Summable f → ∑' (i : α), ENNReal.ofReal (f i) < ⊤
theorem Summable.tsum_ofReal_ne_top E1 #
∀ {α : Type u_1} {f : α → ℝ}, Summable f → ∑' (i : α), ENNReal.ofReal (f i) ≠ ⊤
theorem Summable.countable_support_ennreal E1 #
∀ {α : Type u_1} {f : α → ENNReal}, ∑' (i : α), f i ≠ ⊤ → (Function.support f).Countable
Finitely summable non-negative functions have countable support
theorem hasSum_iff_tendsto_nat_of_nonneg E1 #
∀ {f : ℕ → ℝ},
(∀ (i : ℕ), 0 ≤ f i) →
∀ (r : ℝ), HasSum f r ↔ Filter.Tendsto (fun n ↦ ∑ i ∈ Finset.range n, f i) Filter.atTop (nhds r)
A series of non-negative real numbers converges to r in the sense of HasSum if and only if
the sequence of partial sum converges to r.
theorem ENNReal.ofReal_tsum_of_nonneg E1 #
∀ {α : Type u_1} {f : α → ℝ},
(∀ (n : α), 0 ≤ f n) → Summable f → ENNReal.ofReal (∑' (n : α), f n) = ∑' (n : α), ENNReal.ofReal (f n)
theorem ENNReal.multipliable_of_le_one E1 #
∀ {α : Type u_1} {f : α → ENNReal}, (∀ (i : α), f i ≤ 1) → Multipliable f
theorem ENNReal.hasProd_iInf_prod E1 #
∀ {α : Type u_1} {f : α → ENNReal}, (∀ (i : α), f i ≤ 1) → HasProd f (⨅ s, ∏ i ∈ s, f i)
theorem ENNReal.tprod_eq_iInf_prod E1 #
∀ {α : Type u_1} {f : α → ENNReal}, (∀ (i : α), f i ≤ 1) → ∏' (i : α), f i = ⨅ s, ∏ i ∈ s, f i
theorem cauchySeq_of_edist_le_of_summable E1 #
∀ {α : Type u_1} [inst : PseudoEMetricSpace α] {f : ℕ → α} (d : ℕ → NNReal),
(∀ (n : ℕ), edist (f n) (f n.succ) ≤ ↑(d n)) → Summable d → CauchySeq f
If the extended distance between consecutive points of a sequence is estimated
by a summable series of NNReals, then the original sequence is a Cauchy sequence.
theorem cauchySeq_of_edist_le_of_tsum_ne_top E1 #
∀ {α : Type u_1} [inst : PseudoEMetricSpace α] {f : ℕ → α} (d : ℕ → ENNReal),
(∀ (n : ℕ), edist (f n) (f n.succ) ≤ d n) → tsum d ≠ ⊤ → CauchySeq f
theorem edist_le_tsum_of_edist_le_of_tendsto E1 #
∀ {α : Type u_1} [inst : PseudoEMetricSpace α] {f : ℕ → α} (d : ℕ → ENNReal),
(∀ (n : ℕ), edist (f n) (f n.succ) ≤ d n) →
∀ {a : α}, Filter.Tendsto f Filter.atTop (nhds a) → ∀ (n : ℕ), edist (f n) a ≤ ∑' (m : ℕ), d (n + m)
If edist (f n) (f (n+1)) is bounded above by a function d : ℕ → ℝ≥0∞,
then the distance from f n to the limit is bounded by ∑'_{k=n}^∞ d k.
theorem edist_le_tsum_of_edist_le_of_tendsto₀ E1 #
∀ {α : Type u_1} [inst : PseudoEMetricSpace α] {f : ℕ → α} (d : ℕ → ENNReal),
(∀ (n : ℕ), edist (f n) (f n.succ) ≤ d n) →
∀ {a : α}, Filter.Tendsto f Filter.atTop (nhds a) → edist (f 0) a ≤ ∑' (m : ℕ), d m
If edist (f n) (f (n+1)) is bounded above by a function d : ℕ → ℝ≥0∞,
then the distance from f 0 to the limit is bounded by ∑'_{k=0}^∞ d k.
theorem ENNReal.tsum_set_one E1 #
∀ {α : Type u_4} (s : Set α), ∑' (x : ↑s), 1 = ↑s.encard
theorem ENNReal.tsum_set_const E1 #
∀ {α : Type u_4} (s : Set α) (c : ENNReal), ∑' (x : ↑s), c = ↑s.encard * c
theorem ENNReal.tsum_one E0 #
∀ {α : Type u_4}, ∑' (x : α), 1 = ↑(ENat.card α)
theorem ENNReal.tsum_const E0 #
∀ {α : Type u_4} (c : ENNReal), ∑' (x : α), c = ↑(ENat.card α) * c
Deprecated aliases
| Name | New name | Since |
|---|---|---|
ENNReal.hasSum | CompleteLattice.hasSum | 2026-10-20 |
ENNReal.le_tsum | le_tsum | 2026-10-20 |
ENNReal.ne_top_of_tsum_ne_top | ne_top_of_tsum_ne_top | 2026-10-20 |
ENNReal.sum_add_tsum_compl | sum_add_tsum_compl | 2026-10-20 |
ENNReal.sum_le_tsum | sum_le_tsum | 2026-10-20 |
ENNReal.summable | CompleteLattice.summable | 2026-10-20 |
ENNReal.tsum_add | tsum_add | 2026-10-20 |
ENNReal.tsum_biUnion | tsum_biUnion | 2026-10-20 |
ENNReal.tsum_biUnion' | tsum_biUnion | 2026-10-20 |
ENNReal.tsum_biUnion_le | tsum_biUnion_le | 2026-10-20 |
ENNReal.tsum_biUnion_le_tsum | tsum_biUnion_le_tsum | 2026-10-20 |
ENNReal.tsum_comm | tsum_comm | 2026-10-20 |
ENNReal.tsum_comp_le_tsum_of_injective | tsum_comp_le_tsum_of_injective | 2026-10-20 |
ENNReal.tsum_eq_add_tsum_ite | tsum_eq_add_tsum_ite | 2026-10-20 |
ENNReal.tsum_eq_iSup_sum | tsum_eq_iSup_sum | 2026-10-20 |
ENNReal.tsum_eq_iSup_sum' | tsum_eq_iSup_sum' | 2026-10-20 |
ENNReal.tsum_eq_top_of_eq_top | tsum_eq_top_of_eq_top | 2026-10-20 |
ENNReal.tsum_eq_zero | tsum_eq_zero_iff | 2026-10-20 |
ENNReal.tsum_fiberwise | tsum_fiberwise | 2026-10-20 |
ENNReal.tsum_iUnion | tsum_iUnion | 2026-10-20 |
ENNReal.tsum_iUnion_le | tsum_iUnion_le | 2026-10-20 |
ENNReal.tsum_iUnion_le_tsum | tsum_iUnion_le_tsum | 2026-10-20 |
ENNReal.tsum_le_tsum | tsum_le_tsum | 2026-10-20 |
ENNReal.tsum_le_tsum_comp_of_surjective | tsum_le_tsum_comp_of_surjective | 2026-10-20 |
ENNReal.tsum_mono_subtype | tsum_mono_subtype | 2026-10-20 |
ENNReal.tsum_prod | tsum_prod | 2026-10-20 |
ENNReal.tsum_prod' | tsum_prod' | 2026-10-20 |
ENNReal.tsum_sigma | tsum_sigma | 2026-10-20 |
ENNReal.tsum_sigma' | tsum_sigma' | 2026-10-20 |
ENNReal.tsum_union_le | tsum_union_le | 2026-10-20 |