The areas / V03. Sets, finite structures and big operators
Mathlib.Algebra.Order.BigOperators.Group.Multiset
42 declarations and 2 deprecated aliases. Mathlib docs · Source
theorem Multiset.one_le_prod_of_one_le E1 #
∀ {α : Type u_2} [inst : CommMonoid α] [inst_1 : Preorder α] {s : Multiset α} [MulLeftMono α],
(∀ x ∈ s, 1 ≤ x) → 1 ≤ s.prod
theorem Multiset.sum_nonneg E1 #
∀ {α : Type u_2} [inst : AddCommMonoid α] [inst_1 : Preorder α] {s : Multiset α} [AddLeftMono α],
(∀ x ∈ s, 0 ≤ x) → 0 ≤ s.sum
theorem Multiset.single_le_prod E1 #
∀ {α : Type u_2} [inst : CommMonoid α] [inst_1 : Preorder α] {s : Multiset α} [IsOrderedMonoid α],
(∀ x ∈ s, 1 ≤ x) → ∀ x ∈ s, x ≤ s.prod
theorem Multiset.single_le_sum E1 #
∀ {α : Type u_2} [inst : AddCommMonoid α] [inst_1 : Preorder α] {s : Multiset α} [IsOrderedAddMonoid α],
(∀ x ∈ s, 0 ≤ x) → ∀ x ∈ s, x ≤ s.sum
theorem Multiset.sum_le_card_nsmul E1 #
∀ {α : Type u_2} [inst : AddCommMonoid α] [inst_1 : Preorder α] [AddLeftMono α] (s : Multiset α) (n : α),
(∀ x ∈ s, x ≤ n) → s.sum ≤ s.card • n
theorem Multiset.prod_le_pow_card E1 #
∀ {α : Type u_2} [inst : CommMonoid α] [inst_1 : Preorder α] [MulLeftMono α] (s : Multiset α) (n : α),
(∀ x ∈ s, x ≤ n) → s.prod ≤ n ^ s.card
theorem Multiset.all_zero_of_le_zero_le_of_sum_eq_zero E1 #
∀ {α : Type u_4} [inst : AddCommMonoid α] [inst_1 : PartialOrder α] [IsOrderedAddMonoid α] {s : Multiset α},
(∀ x ∈ s, 0 ≤ x) → s.sum = 0 → ∀ x ∈ s, x = 0
theorem Multiset.all_one_of_le_one_le_of_prod_eq_one E1 #
∀ {α : Type u_4} [inst : CommMonoid α] [inst_1 : PartialOrder α] [IsOrderedMonoid α] {s : Multiset α},
(∀ x ∈ s, 1 ≤ x) → s.prod = 1 → ∀ x ∈ s, x = 1
theorem Multiset.sum_le_sum_of_rel_le E1 #
∀ {α : Type u_2} [inst : AddCommMonoid α] [inst_1 : Preorder α] {s t : Multiset α} [AddLeftMono α],
Multiset.Rel (fun x1 x2 ↦ x1 ≤ x2) s t → s.sum ≤ t.sum
theorem Multiset.prod_le_prod_of_rel_le E1 #
∀ {α : Type u_2} [inst : CommMonoid α] [inst_1 : Preorder α] {s t : Multiset α} [MulLeftMono α],
Multiset.Rel (fun x1 x2 ↦ x1 ≤ x2) s t → s.prod ≤ t.prod
theorem Multiset.sum_map_le_sum_map E1 #
∀ {ι : Type u_1} {α : Type u_2} [inst : AddCommMonoid α] [inst_1 : Preorder α] [AddLeftMono α] {s : Multiset ι}
(f g : ι → α), (∀ i ∈ s, f i ≤ g i) → (Multiset.map f s).sum ≤ (Multiset.map g s).sum
theorem Multiset.prod_map_le_prod_map E1 #
∀ {ι : Type u_1} {α : Type u_2} [inst : CommMonoid α] [inst_1 : Preorder α] [MulLeftMono α] {s : Multiset ι}
(f g : ι → α), (∀ i ∈ s, f i ≤ g i) → (Multiset.map f s).prod ≤ (Multiset.map g s).prod
theorem Multiset.sum_map_le_sum E1 #
∀ {α : Type u_2} [inst : AddCommMonoid α] [inst_1 : Preorder α] {s : Multiset α} [AddLeftMono α] (f : α → α),
(∀ x ∈ s, f x ≤ x) → (Multiset.map f s).sum ≤ s.sum
theorem Multiset.prod_map_le_prod E1 #
∀ {α : Type u_2} [inst : CommMonoid α] [inst_1 : Preorder α] {s : Multiset α} [MulLeftMono α] (f : α → α),
(∀ x ∈ s, f x ≤ x) → (Multiset.map f s).prod ≤ s.prod
theorem Multiset.sum_le_sum_map E1 #
∀ {α : Type u_2} [inst : AddCommMonoid α] [inst_1 : Preorder α] {s : Multiset α} [AddLeftMono α] (f : α → α),
(∀ x ∈ s, x ≤ f x) → s.sum ≤ (Multiset.map f s).sum
theorem Multiset.prod_le_prod_map E1 #
∀ {α : Type u_2} [inst : CommMonoid α] [inst_1 : Preorder α] {s : Multiset α} [MulLeftMono α] (f : α → α),
(∀ x ∈ s, x ≤ f x) → s.prod ≤ (Multiset.map f s).prod
theorem Multiset.card_nsmul_le_sum E1 #
∀ {α : Type u_2} [inst : AddCommMonoid α] [inst_1 : Preorder α] {s : Multiset α} {a : α} [AddLeftMono α],
(∀ x ∈ s, a ≤ x) → s.card • a ≤ s.sum
theorem Multiset.pow_card_le_prod E1 #
∀ {α : Type u_2} [inst : CommMonoid α] [inst_1 : Preorder α] {s : Multiset α} {a : α} [MulLeftMono α],
(∀ x ∈ s, a ≤ x) → a ^ s.card ≤ s.prod
theorem Multiset.le_sum_of_subadditive_on_pred E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] [inst_2 : Preorder β]
[IsOrderedAddMonoid β] (f : α → β) (p : α → Prop),
f 0 ≤ 0 →
p 0 →
(∀ (a b : α), p a → p b → f (a + b) ≤ f a + f b) →
(∀ (a b : α), p a → p b → p (a + b)) → ∀ (s : Multiset α), (∀ a ∈ s, p a) → f s.sum ≤ (Multiset.map f s).sum
theorem Multiset.le_prod_of_submultiplicative_on_pred E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] [inst_2 : Preorder β] [IsOrderedMonoid β]
(f : α → β) (p : α → Prop),
f 1 ≤ 1 →
p 1 →
(∀ (a b : α), p a → p b → f (a * b) ≤ f a * f b) →
(∀ (a b : α), p a → p b → p (a * b)) → ∀ (s : Multiset α), (∀ a ∈ s, p a) → f s.prod ≤ (Multiset.map f s).prod
theorem Multiset.le_sum_of_subadditive E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] [inst_2 : Preorder β]
[IsOrderedAddMonoid β] (f : α → β),
f 0 ≤ 0 → (∀ (a b : α), f (a + b) ≤ f a + f b) → ∀ (s : Multiset α), f s.sum ≤ (Multiset.map f s).sum
theorem Multiset.le_prod_of_submultiplicative E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] [inst_2 : Preorder β] [IsOrderedMonoid β]
(f : α → β), f 1 ≤ 1 → (∀ (a b : α), f (a * b) ≤ f a * f b) → ∀ (s : Multiset α), f s.prod ≤ (Multiset.map f s).prod
theorem Multiset.le_sum_nonempty_of_subadditive_on_pred E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] [inst_2 : Preorder β]
[IsOrderedAddMonoid β] (f : α → β) (p : α → Prop),
(∀ (a b : α), p a → p b → f (a + b) ≤ f a + f b) →
(∀ (a b : α), p a → p b → p (a + b)) → ∀ (s : Multiset α), s ≠ ∅ → (∀ a ∈ s, p a) → f s.sum ≤ (Multiset.map f s).sum
theorem Multiset.le_prod_nonempty_of_submultiplicative_on_pred E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] [inst_2 : Preorder β] [IsOrderedMonoid β]
(f : α → β) (p : α → Prop),
(∀ (a b : α), p a → p b → f (a * b) ≤ f a * f b) →
(∀ (a b : α), p a → p b → p (a * b)) →
∀ (s : Multiset α), s ≠ ∅ → (∀ a ∈ s, p a) → f s.prod ≤ (Multiset.map f s).prod
theorem Multiset.le_prod_nonempty_of_submultiplicative E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : CommMonoid β] [inst_2 : Preorder β] [IsOrderedMonoid β]
(f : α → β), (∀ (a b : α), f (a * b) ≤ f a * f b) → ∀ (s : Multiset α), s ≠ ∅ → f s.prod ≤ (Multiset.map f s).prod
theorem Multiset.le_sum_nonempty_of_subadditive E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid α] [inst_1 : AddCommMonoid β] [inst_2 : Preorder β]
[IsOrderedAddMonoid β] (f : α → β),
(∀ (a b : α), f (a + b) ≤ f a + f b) → ∀ (s : Multiset α), s ≠ ∅ → f s.sum ≤ (Multiset.map f s).sum
theorem Multiset.sum_lt_sum E1 #
∀ {ι : Type u_1} {α : Type u_2} [inst : AddCommMonoid α] [inst_1 : Preorder α] [IsOrderedCancelAddMonoid α]
[AddLeftStrictMono α] {s : Multiset ι} {f g : ι → α},
(∀ i ∈ s, f i ≤ g i) → (∃ i ∈ s, f i < g i) → (Multiset.map f s).sum < (Multiset.map g s).sum
theorem Multiset.prod_lt_prod E1 #
∀ {ι : Type u_1} {α : Type u_2} [inst : CommMonoid α] [inst_1 : Preorder α] [IsOrderedCancelMonoid α]
[MulLeftStrictMono α] {s : Multiset ι} {f g : ι → α},
(∀ i ∈ s, f i ≤ g i) → (∃ i ∈ s, f i < g i) → (Multiset.map f s).prod < (Multiset.map g s).prod
theorem Multiset.prod_lt_prod_of_nonempty E1 #
∀ {ι : Type u_1} {α : Type u_2} [inst : CommMonoid α] [inst_1 : Preorder α] [IsOrderedCancelMonoid α]
[MulLeftStrictMono α] {s : Multiset ι} {f g : ι → α},
s ≠ ∅ → (∀ i ∈ s, f i < g i) → (Multiset.map f s).prod < (Multiset.map g s).prod
theorem Multiset.sum_lt_sum_of_nonempty E1 #
∀ {ι : Type u_1} {α : Type u_2} [inst : AddCommMonoid α] [inst_1 : Preorder α] [IsOrderedCancelAddMonoid α]
[AddLeftStrictMono α] {s : Multiset ι} {f g : ι → α},
s ≠ ∅ → (∀ i ∈ s, f i < g i) → (Multiset.map f s).sum < (Multiset.map g s).sum
theorem Multiset.prod_eq_one_iff E0 #
∀ {α : Type u_2} [inst : CommMonoid α] {m : Multiset α} [inst_1 : PartialOrder α] [CanonicallyOrderedMul α]
[IsOrderedMonoid α], m.prod = 1 ↔ ∀ x ∈ m, x = 1
theorem Multiset.sum_eq_zero_iff E0 #
∀ {α : Type u_2} [inst : AddCommMonoid α] {m : Multiset α} [inst_1 : PartialOrder α] [CanonicallyOrderedAdd α]
[IsOrderedAddMonoid α], m.sum = 0 ↔ ∀ x ∈ m, x = 0
theorem Multiset.le_prod_of_mem E1 #
∀ {α : Type u_2} [inst : CommMonoid α] {m : Multiset α} {a : α},
a ∈ m → ∀ [inst_1 : Preorder α] [CanonicallyOrderedMul α], a ≤ m.prod
theorem Multiset.le_sum_of_mem E1 #
∀ {α : Type u_2} [inst : AddCommMonoid α] {m : Multiset α} {a : α},
a ∈ m → ∀ [inst_1 : Preorder α] [CanonicallyOrderedAdd α], a ≤ m.sum
theorem Multiset.max_le_of_forall_le E1 #
∀ {α : Type u_4} [inst : LinearOrder α] [inst_1 : OrderBot α] (l : Multiset α) (n : α),
(∀ x ∈ l, x ≤ n) → Multiset.fold max ⊥ l ≤ n
theorem Multiset.max_sum_le E1 #
∀ {ι : Type u_1} {α : Type u_2} [inst : AddCommMonoid α] [inst_1 : LinearOrder α] [IsOrderedAddMonoid α]
{s : Multiset ι} {f g : ι → α},
max (Multiset.map f s).sum (Multiset.map g s).sum ≤ (Multiset.map (fun i ↦ max (f i) (g i)) s).sum
theorem Multiset.max_prod_le E1 #
∀ {ι : Type u_1} {α : Type u_2} [inst : CommMonoid α] [inst_1 : LinearOrder α] [IsOrderedMonoid α] {s : Multiset ι}
{f g : ι → α}, max (Multiset.map f s).prod (Multiset.map g s).prod ≤ (Multiset.map (fun i ↦ max (f i) (g i)) s).prod
theorem Multiset.sum_min_le E1 #
∀ {ι : Type u_1} {α : Type u_2} [inst : AddCommMonoid α] [inst_1 : LinearOrder α] [IsOrderedAddMonoid α]
{s : Multiset ι} {f g : ι → α},
(Multiset.map (fun i ↦ min (f i) (g i)) s).sum ≤ min (Multiset.map f s).sum (Multiset.map g s).sum
theorem Multiset.prod_min_le E1 #
∀ {ι : Type u_1} {α : Type u_2} [inst : CommMonoid α] [inst_1 : LinearOrder α] [IsOrderedMonoid α] {s : Multiset ι}
{f g : ι → α}, (Multiset.map (fun i ↦ min (f i) (g i)) s).prod ≤ min (Multiset.map f s).prod (Multiset.map g s).prod
theorem Multiset.abs_sum_le_sum_abs E1 #
∀ {α : Type u_2} [inst : AddCommGroup α] [inst_1 : LinearOrder α] [IsOrderedAddMonoid α] {s : Multiset α},
|s.sum| ≤ (Multiset.map abs s).sum
theorem Multiset.apply_prod_le_sum_map E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : AddCommMonoid β] [inst_2 : Preorder β] [AddLeftMono β]
(m : Multiset α) (f : α → β), f 1 ≤ 0 → (∀ (a b : α), f (a * b) ≤ f a + f b) → f m.prod ≤ (Multiset.map f m).sum
theorem Multiset.sum_map_le_apply_prod E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : AddCommMonoid β] [inst_2 : Preorder β] [AddLeftMono β]
(m : Multiset α) (f : α → β), 0 ≤ f 1 → (∀ (a b : α), f a + f b ≤ f (a * b)) → (Multiset.map f m).sum ≤ f m.prod
Deprecated aliases
| Name | New name | Since |
|---|---|---|
Multiset.prod_lt_prod' | Multiset.prod_lt_prod | 2026-09-01 |
Multiset.prod_lt_prod_of_nonempty' | Multiset.prod_lt_prod_of_nonempty | 2026-09-01 |