The areas / V03. Sets, finite structures and big operators
Mathlib.Algebra.BigOperators.ModEq
40 declarations. Mathlib docs · Source
theorem Nat.ModEq.listProd_map E1 #
∀ {α : Type u_1} {n : ℕ} {l : List α} {f g : α → ℕ},
(∀ x ∈ l, f x ≡ g x [MOD n]) → (List.map f l).prod ≡ (List.map g l).prod [MOD n]
theorem Nat.ModEq.listProd_map_one E1 #
∀ {α : Type u_1} {n : ℕ} {l : List α} {f : α → ℕ}, (∀ x ∈ l, f x ≡ 1 [MOD n]) → (List.map f l).prod ≡ 1 [MOD n]
theorem Nat.ModEq.listProd_one E1 #
∀ {n : ℕ} {l : List ℕ}, (∀ x ∈ l, x ≡ 1 [MOD n]) → l.prod ≡ 1 [MOD n]
theorem Nat.ModEq.listSum_map E1 #
∀ {α : Type u_1} {n : ℕ} {l : List α} {f g : α → ℕ},
(∀ x ∈ l, f x ≡ g x [MOD n]) → (List.map f l).sum ≡ (List.map g l).sum [MOD n]
theorem Nat.ModEq.listSum_map_zero E1 #
∀ {α : Type u_1} {n : ℕ} {l : List α} {f : α → ℕ}, (∀ x ∈ l, f x ≡ 0 [MOD n]) → (List.map f l).sum ≡ 0 [MOD n]
theorem Nat.ModEq.listSum_zero E1 #
∀ {n : ℕ} {l : List ℕ}, (∀ x ∈ l, x ≡ 0 [MOD n]) → l.sum ≡ 0 [MOD n]
theorem Nat.ModEq.multisetProd_map E1 #
∀ {α : Type u_1} {n : ℕ} {f g : α → ℕ} {s : Multiset α},
(∀ x ∈ s, f x ≡ g x [MOD n]) → (Multiset.map f s).prod ≡ (Multiset.map g s).prod [MOD n]
theorem Nat.ModEq.multisetProd_map_one E1 #
∀ {α : Type u_1} {n : ℕ} {f : α → ℕ} {s : Multiset α}, (∀ x ∈ s, f x ≡ 1 [MOD n]) → (Multiset.map f s).prod ≡ 1 [MOD n]
theorem Nat.ModEq.multisetProd_one E1 #
∀ {n : ℕ} {s : Multiset ℕ}, (∀ x ∈ s, x ≡ 1 [MOD n]) → s.prod ≡ 1 [MOD n]
theorem Nat.ModEq.multisetSum_map E1 #
∀ {α : Type u_1} {n : ℕ} {f g : α → ℕ} {s : Multiset α},
(∀ x ∈ s, f x ≡ g x [MOD n]) → (Multiset.map f s).sum ≡ (Multiset.map g s).sum [MOD n]
theorem Nat.ModEq.multisetSum_map_zero E1 #
∀ {α : Type u_1} {n : ℕ} {f : α → ℕ} {s : Multiset α}, (∀ x ∈ s, f x ≡ 0 [MOD n]) → (Multiset.map f s).sum ≡ 0 [MOD n]
theorem Nat.ModEq.multisetSum_zero E1 #
∀ {n : ℕ} {s : Multiset ℕ}, (∀ x ∈ s, x ≡ 0 [MOD n]) → s.sum ≡ 0 [MOD n]
theorem Nat.ModEq.prod E1 #
∀ {α : Type u_1} {n : ℕ} {f g : α → ℕ} {s : Finset α},
(∀ x ∈ s, f x ≡ g x [MOD n]) → ∏ x ∈ s, f x ≡ ∏ x ∈ s, g x [MOD n]
theorem Nat.ModEq.prod_one E1 #
∀ {α : Type u_1} {n : ℕ} {f : α → ℕ} {s : Finset α}, (∀ x ∈ s, f x ≡ 1 [MOD n]) → ∏ x ∈ s, f x ≡ 1 [MOD n]
theorem Nat.ModEq.sum E1 #
∀ {α : Type u_1} {n : ℕ} {f g : α → ℕ} {s : Finset α},
(∀ x ∈ s, f x ≡ g x [MOD n]) → ∑ x ∈ s, f x ≡ ∑ x ∈ s, g x [MOD n]
theorem Nat.ModEq.sum_zero E1 #
∀ {α : Type u_1} {n : ℕ} {f : α → ℕ} {s : Finset α}, (∀ x ∈ s, f x ≡ 0 [MOD n]) → ∑ x ∈ s, f x ≡ 0 [MOD n]
theorem Nat.prod_modEq_ite E1 #
∀ {α : Type u_1} {n : ℕ} {f : α → ℕ} [inst : DecidableEq α] {s : Finset α} {a : α},
(∀ x ∈ s, x ≠ a → f x ≡ 1 [MOD n]) → ∏ x ∈ s, f x ≡ if a ∈ s then f a else 1 [MOD n]
theorem Nat.prod_modEq_single E1 #
∀ {α : Type u_1} {n : ℕ} {f : α → ℕ} {s : Finset α} {a : α},
(a ∉ s → f a ≡ 1 [MOD n]) → (∀ x ∈ s, x ≠ a → f x ≡ 1 [MOD n]) → ∏ x ∈ s, f x ≡ f a [MOD n]
theorem Nat.sum_modEq_ite E1 #
∀ {α : Type u_1} {n : ℕ} {f : α → ℕ} [inst : DecidableEq α] {s : Finset α} {a : α},
(∀ x ∈ s, x ≠ a → f x ≡ 0 [MOD n]) → ∑ x ∈ s, f x ≡ if a ∈ s then f a else 0 [MOD n]
theorem Nat.sum_modEq_single E1 #
∀ {α : Type u_1} {n : ℕ} {f : α → ℕ} {s : Finset α} {a : α},
(a ∉ s → f a ≡ 0 [MOD n]) → (∀ x ∈ s, x ≠ a → f x ≡ 0 [MOD n]) → ∑ x ∈ s, f x ≡ f a [MOD n]
theorem Int.ModEq.listProd_map E1 #
∀ {α : Type u_1} {n : ℤ} {l : List α} {f g : α → ℤ},
(∀ x ∈ l, f x ≡ g x [ZMOD n]) → (List.map f l).prod ≡ (List.map g l).prod [ZMOD n]
theorem Int.ModEq.listProd_map_one E1 #
∀ {α : Type u_1} {n : ℤ} {l : List α} {f : α → ℤ}, (∀ x ∈ l, f x ≡ 1 [ZMOD n]) → (List.map f l).prod ≡ 1 [ZMOD n]
theorem Int.ModEq.listProd_one E1 #
∀ {n : ℤ} {l : List ℤ}, (∀ x ∈ l, x ≡ 1 [ZMOD n]) → l.prod ≡ 1 [ZMOD n]
theorem Int.ModEq.listSum_map E1 #
∀ {α : Type u_1} {n : ℤ} {l : List α} {f g : α → ℤ},
(∀ x ∈ l, f x ≡ g x [ZMOD n]) → (List.map f l).sum ≡ (List.map g l).sum [ZMOD n]
theorem Int.ModEq.listSum_map_zero E1 #
∀ {α : Type u_1} {n : ℤ} {l : List α} {f : α → ℤ}, (∀ x ∈ l, f x ≡ 0 [ZMOD n]) → (List.map f l).sum ≡ 0 [ZMOD n]
theorem Int.ModEq.listSum_zero E1 #
∀ {n : ℤ} {l : List ℤ}, (∀ x ∈ l, x ≡ 0 [ZMOD n]) → l.sum ≡ 0 [ZMOD n]
theorem Int.ModEq.multisetProd_map E1 #
∀ {α : Type u_1} {n : ℤ} {f g : α → ℤ} {s : Multiset α},
(∀ x ∈ s, f x ≡ g x [ZMOD n]) → (Multiset.map f s).prod ≡ (Multiset.map g s).prod [ZMOD n]
theorem Int.ModEq.multisetProd_map_one E1 #
∀ {α : Type u_1} {n : ℤ} {f : α → ℤ} {s : Multiset α},
(∀ x ∈ s, f x ≡ 1 [ZMOD n]) → (Multiset.map f s).prod ≡ 1 [ZMOD n]
theorem Int.ModEq.multisetProd_one E1 #
∀ {n : ℤ} {s : Multiset ℤ}, (∀ x ∈ s, x ≡ 1 [ZMOD n]) → s.prod ≡ 1 [ZMOD n]
theorem Int.ModEq.multisetSum_map E1 #
∀ {α : Type u_1} {n : ℤ} {f g : α → ℤ} {s : Multiset α},
(∀ x ∈ s, f x ≡ g x [ZMOD n]) → (Multiset.map f s).sum ≡ (Multiset.map g s).sum [ZMOD n]
theorem Int.ModEq.multisetSum_map_zero E1 #
∀ {α : Type u_1} {n : ℤ} {f : α → ℤ} {s : Multiset α}, (∀ x ∈ s, f x ≡ 0 [ZMOD n]) → (Multiset.map f s).sum ≡ 0 [ZMOD n]
theorem Int.ModEq.multisetSum_zero E1 #
∀ {n : ℤ} {s : Multiset ℤ}, (∀ x ∈ s, x ≡ 0 [ZMOD n]) → s.sum ≡ 0 [ZMOD n]
theorem Int.ModEq.prod E1 #
∀ {α : Type u_1} {n : ℤ} {f g : α → ℤ} {s : Finset α},
(∀ x ∈ s, f x ≡ g x [ZMOD n]) → ∏ x ∈ s, f x ≡ ∏ x ∈ s, g x [ZMOD n]
theorem Int.ModEq.prod_one E1 #
∀ {α : Type u_1} {n : ℤ} {f : α → ℤ} {s : Finset α}, (∀ x ∈ s, f x ≡ 1 [ZMOD n]) → ∏ x ∈ s, f x ≡ 1 [ZMOD n]
theorem Int.ModEq.sum E1 #
∀ {α : Type u_1} {n : ℤ} {f g : α → ℤ} {s : Finset α},
(∀ x ∈ s, f x ≡ g x [ZMOD n]) → ∑ x ∈ s, f x ≡ ∑ x ∈ s, g x [ZMOD n]
theorem Int.ModEq.sum_zero E1 #
∀ {α : Type u_1} {n : ℤ} {f : α → ℤ} {s : Finset α}, (∀ x ∈ s, f x ≡ 0 [ZMOD n]) → ∑ x ∈ s, f x ≡ 0 [ZMOD n]
theorem Int.prod_modEq_ite E1 #
∀ {α : Type u_1} {n : ℤ} {f : α → ℤ} [inst : DecidableEq α] {s : Finset α} {a : α},
(∀ x ∈ s, x ≠ a → f x ≡ 1 [ZMOD n]) → ∏ x ∈ s, f x ≡ if a ∈ s then f a else 1 [ZMOD n]
theorem Int.prod_modEq_single E1 #
∀ {α : Type u_1} {n : ℤ} {f : α → ℤ} {s : Finset α} {a : α},
(a ∉ s → f a ≡ 1 [ZMOD n]) → (∀ x ∈ s, x ≠ a → f x ≡ 1 [ZMOD n]) → ∏ x ∈ s, f x ≡ f a [ZMOD n]
theorem Int.sum_modEq_ite E1 #
∀ {α : Type u_1} {n : ℤ} {f : α → ℤ} [inst : DecidableEq α] {s : Finset α} {a : α},
(∀ x ∈ s, x ≠ a → f x ≡ 0 [ZMOD n]) → ∑ x ∈ s, f x ≡ if a ∈ s then f a else 0 [ZMOD n]
theorem Int.sum_modEq_single E1 #
∀ {α : Type u_1} {n : ℤ} {f : α → ℤ} {s : Finset α} {a : α},
(a ∉ s → f a ≡ 0 [ZMOD n]) → (∀ x ∈ s, x ≠ a → f x ≡ 0 [ZMOD n]) → ∑ x ∈ s, f x ≡ f a [ZMOD n]