The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V02. Numbers

Mathlib.Basic.ENNReal.BigOperators

26 declarations and 2 deprecated aliases. Mathlib docs · Source

theorem ENNReal.ofNNReal_finsetSum E0 #

∀ {ι : Type u_1} (s : Finset ι) (f : ι → NNReal), ↑(∑ i ∈ s, f i) = ∑ i ∈ s, ↑(f i)

theorem ENNReal.ofNNReal_finsetProd E0 #

∀ {ι : Type u_1} (s : Finset ι) (f : ι → NNReal), ↑(∏ i ∈ s, f i) = ∏ i ∈ s, ↑(f i)

theorem ENNReal.ofNNReal_finsuppSum E0 #

∀ {ι : Type u_1} {M : Type u_2} [inst : Zero M] (f : ι →₀ M) (g : ι → M → NNReal), ↑(f.sum g) = f.sum fun i m ↦ ↑(g i m)

theorem ENNReal.ofNNReal_finsuppProd E0 #

∀ {ι : Type u_1} {M : Type u_2} [inst : Zero M] (f : ι →₀ M) (g : ι → M → NNReal),
  ↑(f.prod g) = f.prod fun i m ↦ ↑(g i m)

theorem ENNReal.toNNReal_prod E0 #

∀ {ι : Type u_1} (s : Finset ι) (f : ι → ENNReal), (∏ i ∈ s, f i).toNNReal = ∏ i ∈ s, (f i).toNNReal

theorem ENNReal.toReal_prod E0 #

∀ {ι : Type u_1} (s : Finset ι) (f : ι → ENNReal), (∏ i ∈ s, f i).toReal = ∏ i ∈ s, (f i).toReal

theorem ENNReal.ofReal_prod_of_nonneg E1 #

∀ {α : Type u_3} {s : Finset α} {f : α → ℝ},
  (∀ i ∈ s, 0 ≤ f i) → ENNReal.ofReal (∏ i ∈ s, f i) = ∏ i ∈ s, ENNReal.ofReal (f i)

theorem ENNReal.iInf_sum E1 #

∀ {ι : Type u_3} {α : Type u_4} {f : ι → α → ENNReal} {s : Finset α} [Nonempty ι],
  (∀ (t : Finset α) (i j : ι), ∃ k, ∀ a ∈ t, f k a ≤ f i a ∧ f k a ≤ f j a) → ⨅ i, ∑ a ∈ s, f i a = ∑ a ∈ s, ⨅ i, f i a

theorem ENNReal.prod_ne_top E1 #

∀ {α : Type u_1} {s : Finset α} {f : α → ENNReal}, (∀ a ∈ s, f a ≠ ⊤) → ∏ a ∈ s, f a ≠ ⊤

A product of finite numbers is still finite.

theorem ENNReal.prod_lt_top E1 #

∀ {α : Type u_1} {s : Finset α} {f : α → ENNReal}, (∀ a ∈ s, f a < ⊤) → ∏ a ∈ s, f a < ⊤

A product of finite numbers is still finite.

theorem ENNReal.sum_eq_top E0 #

∀ {α : Type u_1} {s : Finset α} {f : α → ENNReal}, ∑ x ∈ s, f x = ⊤ ↔ ∃ a ∈ s, f a = ⊤

A sum is infinite iff one of the summands is infinite.

theorem ENNReal.sum_ne_top E1 #

∀ {α : Type u_1} {s : Finset α} {f : α → ENNReal}, ∑ a ∈ s, f a ≠ ⊤ ↔ ∀ a ∈ s, f a ≠ ⊤

A sum is finite iff all summands are finite.

theorem ENNReal.sum_lt_top E0 #

∀ {α : Type u_1} {s : Finset α} {f : α → ENNReal}, ∑ a ∈ s, f a < ⊤ ↔ ∀ a ∈ s, f a < ⊤

A sum is finite iff all summands are finite.

theorem ENNReal.lt_top_of_sum_ne_top E1 #

∀ {α : Type u_1} {s : Finset α} {f : α → ENNReal}, ∑ x ∈ s, f x ≠ ⊤ → ∀ {a : α}, a ∈ s → f a < ⊤

theorem ENNReal.toNNReal_sum E1 #

∀ {α : Type u_1} {s : Finset α} {f : α → ENNReal},
  (∀ a ∈ s, f a ≠ ⊤) → (∑ a ∈ s, f a).toNNReal = ∑ a ∈ s, (f a).toNNReal

Seeing ℝ≥0∞ as ℝ≥0 does not change their sum, unless one of the ℝ≥0∞ is infinity

theorem ENNReal.toReal_sum E1 #

∀ {α : Type u_1} {s : Finset α} {f : α → ENNReal}, (∀ a ∈ s, f a ≠ ⊤) → (∑ a ∈ s, f a).toReal = ∑ a ∈ s, (f a).toReal

seeing ℝ≥0∞ as Real does not change their sum, unless one of the ℝ≥0∞ is infinity

theorem ENNReal.ofReal_sum_of_nonneg E1 #

∀ {α : Type u_1} {s : Finset α} {f : α → ℝ},
  (∀ i ∈ s, 0 ≤ f i) → ENNReal.ofReal (∑ i ∈ s, f i) = ∑ i ∈ s, ENNReal.ofReal (f i)

theorem ENNReal.sum_lt_sum_of_nonempty E1 #

∀ {α : Type u_1} {s : Finset α}, s.Nonempty → ∀ {f g : α → ENNReal}, (∀ i ∈ s, f i < g i) → ∑ i ∈ s, f i < ∑ i ∈ s, g i

theorem ENNReal.exists_le_of_sum_le E1 #

∀ {α : Type u_1} {s : Finset α}, s.Nonempty → ∀ {f g : α → ENNReal}, ∑ i ∈ s, f i ≤ ∑ i ∈ s, g i → ∃ i ∈ s, f i ≤ g i

theorem ENNReal.sum_div E1 #

∀ {α : Type u_1} {s : Finset α} {f : α → ENNReal} (a : ENNReal), (∑ i ∈ s, f i) / a = ∑ i ∈ s, f i / a

Finset.sum_div does not apply since ℝ≥0∞ is not a DivisionSemiring. Although the proof of Finset.sum_div only needs DivInvMonoid and NonUnitalNonAssocSemiring, the best typeclass including these is DivisionSemiring.

theorem ENNReal.prod_inv_distrib E1 #

∀ {ι : Type u_1} {f : ι → ENNReal} {s : Finset ι},
  ((↑s).Pairwise fun i j ↦ f i ≠ 0 ∨ f j ≠ ⊤) → (∏ i ∈ s, f i)⁻¹ = ∏ i ∈ s, (f i)⁻¹

theorem ENNReal.prod_div_distrib E1 #

∀ {ι : Type u_1} {f g : ι → ENNReal} {s : Finset ι},
  ((↑s).Pairwise fun i j ↦ g i ≠ 0 ∨ g j ≠ ⊤) → ∏ i ∈ s, f i / g i = (∏ i ∈ s, f i) / ∏ i ∈ s, g i

theorem ENNReal.prod_div_distrib_of_ne_top E1 #

∀ {ι : Type u_1} {f g : ι → ENNReal} {s : Finset ι},
  (∀ i ∈ s, g i ≠ ⊤) → ∏ i ∈ s, f i / g i = (∏ i ∈ s, f i) / ∏ i ∈ s, g i

theorem ENNReal.prod_div_distrib_of_ne_zero E1 #

∀ {ι : Type u_1} {f g : ι → ENNReal} {s : Finset ι},
  (∀ i ∈ s, g i ≠ 0) → ∏ i ∈ s, f i / g i = (∏ i ∈ s, f i) / ∏ i ∈ s, g i

theorem ENNReal.finsetSum_iSup E1 #

∀ {ι : Type u_1} {α : Type u_2} {s : Finset α} {f : α → ι → ENNReal},
  (∀ (i j : ι), ∃ k, ∀ (a : α), f a i ≤ f a k ∧ f a j ≤ f a k) → ∑ a ∈ s, ⨆ i, f a i = ⨆ i, ∑ a ∈ s, f a i

theorem ENNReal.finsetSum_iSup_of_monotone E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : Preorder ι] [IsDirectedOrder ι] {s : Finset α} {f : α → ι → ENNReal},
  (∀ (a : α), Monotone (f a)) → ∑ a ∈ s, iSup (f a) = ⨆ n, ∑ a ∈ s, f a n

Deprecated aliases

NameNew nameSince
ENNReal.coe_finsetProdENNReal.ofNNReal_finsetProd2026-06-04
ENNReal.coe_finsetSumENNReal.ofNNReal_finsetSum2026-06-04