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 / V03. Sets, finite structures and big operators

Mathlib.Algebra.Order.BigOperators.Group.LocallyFinite

40 declarations. Mathlib docs · Source

Big operators indexed by intervals

This file proves lemmas about ∏ x ∈ Ixx a b, f x and ∑ x ∈ Ixx a b, f x.

theorem Finset.mul_prod_Ico_eq_prod_Icc E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : CommMonoid M] {f : α → M} {a b : α} [inst_1 : PartialOrder α]
  [inst_2 : LocallyFiniteOrder α], a ≤ b → f b * ∏ x ∈ Finset.Ico a b, f x = ∏ x ∈ Finset.Icc a b, f x

theorem Finset.add_sum_Ico_eq_sum_Icc E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] {f : α → M} {a b : α} [inst_1 : PartialOrder α]
  [inst_2 : LocallyFiniteOrder α], a ≤ b → f b + ∑ x ∈ Finset.Ico a b, f x = ∑ x ∈ Finset.Icc a b, f x

theorem Finset.prod_Ico_mul_eq_prod_Icc E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : CommMonoid M] {f : α → M} {a b : α} [inst_1 : PartialOrder α]
  [inst_2 : LocallyFiniteOrder α], a ≤ b → (∏ x ∈ Finset.Ico a b, f x) * f b = ∏ x ∈ Finset.Icc a b, f x

theorem Finset.sum_Ico_add_eq_sum_Icc E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] {f : α → M} {a b : α} [inst_1 : PartialOrder α]
  [inst_2 : LocallyFiniteOrder α], a ≤ b → ∑ x ∈ Finset.Ico a b, f x + f b = ∑ x ∈ Finset.Icc a b, f x

theorem Finset.mul_prod_Ioc_eq_prod_Icc E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : CommMonoid M] {f : α → M} {a b : α} [inst_1 : PartialOrder α]
  [inst_2 : LocallyFiniteOrder α], a ≤ b → f a * ∏ x ∈ Finset.Ioc a b, f x = ∏ x ∈ Finset.Icc a b, f x

theorem Finset.add_sum_Ioc_eq_sum_Icc E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] {f : α → M} {a b : α} [inst_1 : PartialOrder α]
  [inst_2 : LocallyFiniteOrder α], a ≤ b → f a + ∑ x ∈ Finset.Ioc a b, f x = ∑ x ∈ Finset.Icc a b, f x

theorem Finset.sum_Ioc_add_eq_sum_Icc E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] {f : α → M} {a b : α} [inst_1 : PartialOrder α]
  [inst_2 : LocallyFiniteOrder α], a ≤ b → ∑ x ∈ Finset.Ioc a b, f x + f a = ∑ x ∈ Finset.Icc a b, f x

theorem Finset.prod_Ioc_mul_eq_prod_Icc E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : CommMonoid M] {f : α → M} {a b : α} [inst_1 : PartialOrder α]
  [inst_2 : LocallyFiniteOrder α], a ≤ b → (∏ x ∈ Finset.Ioc a b, f x) * f a = ∏ x ∈ Finset.Icc a b, f x

theorem Finset.mul_prod_Ioo_eq_prod_Ico E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : CommMonoid M] {f : α → M} {a b : α} [inst_1 : PartialOrder α]
  [inst_2 : LocallyFiniteOrder α], a < b → f a * ∏ x ∈ Finset.Ioo a b, f x = ∏ x ∈ Finset.Ico a b, f x

theorem Finset.add_sum_Ioo_eq_sum_Ico E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] {f : α → M} {a b : α} [inst_1 : PartialOrder α]
  [inst_2 : LocallyFiniteOrder α], a < b → f a + ∑ x ∈ Finset.Ioo a b, f x = ∑ x ∈ Finset.Ico a b, f x

theorem Finset.sum_Ioo_add_eq_sum_Ico E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] {f : α → M} {a b : α} [inst_1 : PartialOrder α]
  [inst_2 : LocallyFiniteOrder α], a < b → ∑ x ∈ Finset.Ioo a b, f x + f a = ∑ x ∈ Finset.Ico a b, f x

theorem Finset.prod_Ioo_mul_eq_prod_Ico E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : CommMonoid M] {f : α → M} {a b : α} [inst_1 : PartialOrder α]
  [inst_2 : LocallyFiniteOrder α], a < b → (∏ x ∈ Finset.Ioo a b, f x) * f a = ∏ x ∈ Finset.Ico a b, f x

theorem Finset.mul_prod_Ioo_eq_prod_Ioc E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : CommMonoid M] {f : α → M} {a b : α} [inst_1 : PartialOrder α]
  [inst_2 : LocallyFiniteOrder α], a < b → f b * ∏ x ∈ Finset.Ioo a b, f x = ∏ x ∈ Finset.Ioc a b, f x

theorem Finset.add_sum_Ioo_eq_sum_Ioc E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] {f : α → M} {a b : α} [inst_1 : PartialOrder α]
  [inst_2 : LocallyFiniteOrder α], a < b → f b + ∑ x ∈ Finset.Ioo a b, f x = ∑ x ∈ Finset.Ioc a b, f x

theorem Finset.prod_Ioo_mul_eq_prod_Ioc E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : CommMonoid M] {f : α → M} {a b : α} [inst_1 : PartialOrder α]
  [inst_2 : LocallyFiniteOrder α], a < b → (∏ x ∈ Finset.Ioo a b, f x) * f b = ∏ x ∈ Finset.Ioc a b, f x

theorem Finset.sum_Ioo_add_eq_sum_Ioc E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] {f : α → M} {a b : α} [inst_1 : PartialOrder α]
  [inst_2 : LocallyFiniteOrder α], a < b → ∑ x ∈ Finset.Ioo a b, f x + f b = ∑ x ∈ Finset.Ioc a b, f x

theorem Finset.prod_eq_prod_Ico_succ_bot E1 #

∀ {M : Type u_2} [inst : CommMonoid M] {a b : ℕ},
  a < b → ∀ (f : ℕ → M), ∏ k ∈ Finset.Ico a b, f k = f a * ∏ k ∈ Finset.Ico (a + 1) b, f k

theorem Finset.sum_eq_sum_Ico_succ_bot E1 #

∀ {M : Type u_2} [inst : AddCommMonoid M] {a b : ℕ},
  a < b → ∀ (f : ℕ → M), ∑ k ∈ Finset.Ico a b, f k = f a + ∑ k ∈ Finset.Ico (a + 1) b, f k

theorem Finset.mul_prod_Ioi_eq_prod_Ici E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : CommMonoid M] {f : α → M} [inst_1 : PartialOrder α]
  [inst_2 : LocallyFiniteOrderTop α] (a : α), f a * ∏ x > a, f x = ∏ x ≥ a, f x

theorem Finset.add_sum_Ioi_eq_sum_Ici E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] {f : α → M} [inst_1 : PartialOrder α]
  [inst_2 : LocallyFiniteOrderTop α] (a : α), f a + ∑ x > a, f x = ∑ x ≥ a, f x

theorem Finset.sum_Ioi_add_eq_sum_Ici E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] {f : α → M} [inst_1 : PartialOrder α]
  [inst_2 : LocallyFiniteOrderTop α] (a : α), ∑ x > a, f x + f a = ∑ x ≥ a, f x

theorem Finset.prod_Ioi_mul_eq_prod_Ici E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : CommMonoid M] {f : α → M} [inst_1 : PartialOrder α]
  [inst_2 : LocallyFiniteOrderTop α] (a : α), (∏ x > a, f x) * f a = ∏ x ≥ a, f x

theorem Finset.add_sum_Iio_eq_sum_Iic E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] {f : α → M} [inst_1 : PartialOrder α]
  [inst_2 : LocallyFiniteOrderBot α] (a : α), f a + ∑ x < a, f x = ∑ x ≤ a, f x

theorem Finset.mul_prod_Iio_eq_prod_Iic E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : CommMonoid M] {f : α → M} [inst_1 : PartialOrder α]
  [inst_2 : LocallyFiniteOrderBot α] (a : α), f a * ∏ x < a, f x = ∏ x ≤ a, f x

theorem Finset.prod_Iio_mul_eq_prod_Iic E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : CommMonoid M] {f : α → M} [inst_1 : PartialOrder α]
  [inst_2 : LocallyFiniteOrderBot α] (a : α), (∏ x < a, f x) * f a = ∏ x ≤ a, f x

theorem Finset.sum_Iio_add_eq_sum_Iic E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] {f : α → M} [inst_1 : PartialOrder α]
  [inst_2 : LocallyFiniteOrderBot α] (a : α), ∑ x < a, f x + f a = ∑ x ≤ a, f x

theorem Finset.sum_Ico_add_eq_sum_Ico_add_one E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] {a b : α} [inst_1 : LinearOrder α]
  [inst_2 : LocallyFiniteOrder α] [inst_3 : AddMonoidWithOne α] [SuccAddOrder α] [NoMaxOrder α],
  a ≤ b → ∀ (f : α → M), ∑ x ∈ Finset.Ico a b, f x + f b = ∑ x ∈ Finset.Ico a (b + 1), f x

theorem Finset.prod_Ico_mul_eq_prod_Ico_add_one E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : CommMonoid M] {a b : α} [inst_1 : LinearOrder α] [inst_2 : LocallyFiniteOrder α]
  [inst_3 : AddMonoidWithOne α] [SuccAddOrder α] [NoMaxOrder α],
  a ≤ b → ∀ (f : α → M), (∏ x ∈ Finset.Ico a b, f x) * f b = ∏ x ∈ Finset.Ico a (b + 1), f x

theorem Finset.sum_Iio_add_zero_comm E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] [inst_1 : LinearOrder α] [inst_2 : LocallyFiniteOrderBot α]
  [inst_3 : Add α] [inst_4 : One α] [SuccAddOrder α] [NoMaxOrder α] (a : α) (f : α → M),
  ∑ i < a + 1, f i = f a + ∑ i < a, f i

theorem Finset.prod_Iio_add_one_comm E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : CommMonoid M] [inst_1 : LinearOrder α] [inst_2 : LocallyFiniteOrderBot α]
  [inst_3 : Add α] [inst_4 : One α] [SuccAddOrder α] [NoMaxOrder α] (a : α) (f : α → M),
  ∏ i < a + 1, f i = f a * ∏ i < a, f i

theorem Finset.prod_Iio_add_one E0 #

∀ {α : Type u_1} {M : Type u_2} [inst : CommMonoid M] [inst_1 : LinearOrder α] [inst_2 : LocallyFiniteOrderBot α]
  [inst_3 : Add α] [inst_4 : One α] [SuccAddOrder α] [NoMaxOrder α] (a : α) (f : α → M),
  ∏ i < a + 1, f i = (∏ i < a, f i) * f a

theorem Finset.sum_Iio_add_zero E0 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] [inst_1 : LinearOrder α] [inst_2 : LocallyFiniteOrderBot α]
  [inst_3 : Add α] [inst_4 : One α] [SuccAddOrder α] [NoMaxOrder α] (a : α) (f : α → M),
  ∑ i < a + 1, f i = ∑ i < a, f i + f a

theorem Finset.prod_Iic_add_one_comm E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : CommMonoid M] [inst_1 : LinearOrder α] [inst_2 : LocallyFiniteOrderBot α]
  [inst_3 : Add α] [inst_4 : One α] [SuccAddOrder α] [NoMaxOrder α] (a : α) (f : α → M),
  ∏ i ≤ a + 1, f i = f (a + 1) * ∏ i ≤ a, f i

theorem Finset.sum_Iic_add_zero_comm E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] [inst_1 : LinearOrder α] [inst_2 : LocallyFiniteOrderBot α]
  [inst_3 : Add α] [inst_4 : One α] [SuccAddOrder α] [NoMaxOrder α] (a : α) (f : α → M),
  ∑ i ≤ a + 1, f i = f (a + 1) + ∑ i ≤ a, f i

theorem Finset.prod_Iic_add_one E0 #

∀ {α : Type u_1} {M : Type u_2} [inst : CommMonoid M] [inst_1 : LinearOrder α] [inst_2 : LocallyFiniteOrderBot α]
  [inst_3 : Add α] [inst_4 : One α] [SuccAddOrder α] [NoMaxOrder α] (a : α) (f : α → M),
  ∏ i ≤ a + 1, f i = (∏ i ≤ a, f i) * f (a + 1)

theorem Finset.sum_Iic_add_zero E0 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] [inst_1 : LinearOrder α] [inst_2 : LocallyFiniteOrderBot α]
  [inst_3 : Add α] [inst_4 : One α] [SuccAddOrder α] [NoMaxOrder α] (a : α) (f : α → M),
  ∑ i ≤ a + 1, f i = ∑ i ≤ a, f i + f (a + 1)

theorem Finset.prod_prod_Ioi_mul_eq_prod_prod_off_diag E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : CommMonoid M] [inst_1 : LinearOrder α] [inst_2 : Fintype α]
  [inst_3 : LocallyFiniteOrderTop α] [LocallyFiniteOrderBot α] (f : α → α → M),
  ∏ i, ∏ j > i, f j i * f i j = ∏ i, ∏ j ∈ {i}ᶜ, f j i

theorem Finset.sum_sum_Ioi_add_eq_sum_sum_off_diag E1 #

∀ {α : Type u_1} {M : Type u_2} [inst : AddCommMonoid M] [inst_1 : LinearOrder α] [inst_2 : Fintype α]
  [inst_3 : LocallyFiniteOrderTop α] [LocallyFiniteOrderBot α] (f : α → α → M),
  ∑ i, ∑ j > i, (f j i + f i j) = ∑ i, ∑ j ∈ {i}ᶜ, f j i

theorem Finset.prod_eq_prod_range_sdiff E1 #

∀ {α : Type u_3} {β : Type u_4} [inst : DecidableEq α] [inst_1 : CommMonoid β] (s : ℕ → Finset α),
  Monotone s →
    ∀ (g : α → β) (n : ℕ), ∏ i ∈ s n, g i = (∏ i ∈ s 0, g i) * ∏ i ∈ Finset.range n, ∏ j ∈ s (i + 1) \ s i, g j

Given a sequence of finite sets s₀ ⊆ s₁ ⊆ s₂ ⋯, the product of gᵢ over i ∈ sₙ is equal to ∏_{i ∈ s₀} gᵢ * ∏_{j < n, i ∈ sⱼ₊₁ \ sⱼ} gᵢ.

theorem Finset.sum_eq_sum_range_sdiff E1 #

∀ {α : Type u_3} {β : Type u_4} [inst : DecidableEq α] [inst_1 : AddCommMonoid β] (s : ℕ → Finset α),
  Monotone s → ∀ (g : α → β) (n : ℕ), ∑ i ∈ s n, g i = ∑ i ∈ s 0, g i + ∑ i ∈ Finset.range n, ∑ j ∈ s (i + 1) \ s i, g j

Given a sequence of finite sets s₀ ⊆ s₁ ⊆ s₂ ⋯, the sum of gᵢ over i ∈ sₙ is equal to ∑_{i ∈ s₀} gᵢ + ∑_{j < n, i ∈ sⱼ₊₁ \ sⱼ} gᵢ.