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.Finset

150 declarations and 31 deprecated aliases. Mathlib docs · Source

theorem Finset.le_prod_nonempty_of_submultiplicative_on_pred E1 #

∀ {ι : Type u_1} {M : Type u_4} {N : Type u_5} [inst : CommMonoid M] [inst_1 : CommMonoid N] [inst_2 : Preorder N]
  [IsOrderedMonoid N] (f : M → N) (p : M → Prop),
  (∀ (x y : M), p x → p y → f (x * y) ≤ f x * f y) →
    (∀ (x y : M), p x → p y → p (x * y)) →
      ∀ (g : ι → M) (s : Finset ι), s.Nonempty → (∀ i ∈ s, p (g i)) → f (∏ i ∈ s, g i) ≤ ∏ i ∈ s, f (g i)

Let {x | p x} be a subsemigroup of a commutative monoid M. Let f : M → N be a map submultiplicative on {x | p x}, i.e., p x → p y → f (x * y) ≤ f x * f y. Let g i, i ∈ s, be a nonempty finite family of elements of M such that ∀ i ∈ s, p (g i). Then f (∏ x ∈ s, g x) ≤ ∏ x ∈ s, f (g x).

theorem Finset.le_sum_nonempty_of_subadditive_on_pred E1 #

∀ {ι : Type u_1} {M : Type u_4} {N : Type u_5} [inst : AddCommMonoid M] [inst_1 : AddCommMonoid N] [inst_2 : Preorder N]
  [IsOrderedAddMonoid N] (f : M → N) (p : M → Prop),
  (∀ (x y : M), p x → p y → f (x + y) ≤ f x + f y) →
    (∀ (x y : M), p x → p y → p (x + y)) →
      ∀ (g : ι → M) (s : Finset ι), s.Nonempty → (∀ i ∈ s, p (g i)) → f (∑ i ∈ s, g i) ≤ ∑ i ∈ s, f (g i)

Let {x | p x} be an additive subsemigroup of an additive commutative monoid M. Let f : M → N be a map subadditive on {x | p x}, i.e., p x → p y → f (x + y) ≤ f x + f y. Let g i, i ∈ s, be a nonempty finite family of elements of M such that ∀ i ∈ s, p (g i). Then f (∑ i ∈ s, g i) ≤ ∑ i ∈ s, f (g i).

theorem Finset.le_prod_nonempty_of_submultiplicative E1 #

∀ {ι : Type u_1} {M : Type u_4} {N : Type u_5} [inst : CommMonoid M] [inst_1 : CommMonoid N] [inst_2 : Preorder N]
  [IsOrderedMonoid N] (f : M → N),
  (∀ (x y : M), f (x * y) ≤ f x * f y) →
    ∀ {s : Finset ι}, s.Nonempty → ∀ (g : ι → M), f (∏ i ∈ s, g i) ≤ ∏ i ∈ s, f (g i)

If f : M → N is a submultiplicative function, f (x * y) ≤ f x * f y and g i, i ∈ s, is a nonempty finite family of elements of M, then f (∏ i ∈ s, g i) ≤ ∏ i ∈ s, f (g i).

theorem Finset.le_sum_nonempty_of_subadditive E1 #

∀ {ι : Type u_1} {M : Type u_4} {N : Type u_5} [inst : AddCommMonoid M] [inst_1 : AddCommMonoid N] [inst_2 : Preorder N]
  [IsOrderedAddMonoid N] (f : M → N),
  (∀ (x y : M), f (x + y) ≤ f x + f y) →
    ∀ {s : Finset ι}, s.Nonempty → ∀ (g : ι → M), f (∑ i ∈ s, g i) ≤ ∑ i ∈ s, f (g i)

If f : M → N is a subadditive function, f (x + y) ≤ f x + f y and g i, i ∈ s, is a nonempty finite family of elements of M, then f (∑ i ∈ s, g i) ≤ ∑ i ∈ s, f (g i).

theorem Finset.le_prod_of_submultiplicative_on_pred E1 #

∀ {ι : Type u_1} {M : Type u_4} {N : Type u_5} [inst : CommMonoid M] [inst_1 : CommMonoid N] [inst_2 : Preorder N]
  [IsOrderedMonoid N] (f : M → N) (p : M → Prop),
  f 1 ≤ 1 →
    (∀ (x y : M), p x → p y → f (x * y) ≤ f x * f y) →
      (∀ (x y : M), p x → p y → p (x * y)) →
        ∀ (g : ι → M) {s : Finset ι}, (∀ i ∈ s, p (g i)) → f (∏ i ∈ s, g i) ≤ ∏ i ∈ s, f (g i)

Let {x | p x} be a subsemigroup of a commutative monoid M. Let f : M → N be a map such that f 1 = 1 and f is submultiplicative on {x | p x}, i.e., p x → p y → f (x * y) ≤ f x * f y. Let g i, i ∈ s, be a finite family of elements of M such that ∀ i ∈ s, p (g i). Then f (∏ i ∈ s, g i) ≤ ∏ i ∈ s, f (g i).

theorem Finset.le_sum_of_subadditive_on_pred E1 #

∀ {ι : Type u_1} {M : Type u_4} {N : Type u_5} [inst : AddCommMonoid M] [inst_1 : AddCommMonoid N] [inst_2 : Preorder N]
  [IsOrderedAddMonoid N] (f : M → N) (p : M → Prop),
  f 0 ≤ 0 →
    (∀ (x y : M), p x → p y → f (x + y) ≤ f x + f y) →
      (∀ (x y : M), p x → p y → p (x + y)) →
        ∀ (g : ι → M) {s : Finset ι}, (∀ i ∈ s, p (g i)) → f (∑ i ∈ s, g i) ≤ ∑ i ∈ s, f (g i)

Let {x | p x} be a subsemigroup of a commutative additive monoid M. Let f : M → N be a map such that f 0 = 0 and f is subadditive on {x | p x}, i.e. p x → p y → f (x + y) ≤ f x + f y. Let g i, i ∈ s, be a finite family of elements of M such that ∀ i ∈ s, p (g i). Then f (∑ x ∈ s, g x) ≤ ∑ x ∈ s, f (g x).

theorem Finset.le_prod_of_submultiplicative E1 #

∀ {ι : Type u_1} {M : Type u_4} {N : Type u_5} [inst : CommMonoid M] [inst_1 : CommMonoid N] [inst_2 : Preorder N]
  [IsOrderedMonoid N] (f : M → N),
  f 1 ≤ 1 → (∀ (x y : M), f (x * y) ≤ f x * f y) → ∀ (s : Finset ι) (g : ι → M), f (∏ i ∈ s, g i) ≤ ∏ i ∈ s, f (g i)

If f : M → N is a submultiplicative function, f (x * y) ≤ f x * f y, f 1 = 1, and g i, i ∈ s, is a finite family of elements of M, then f (∏ i ∈ s, g i) ≤ ∏ i ∈ s, f (g i).

theorem Finset.le_sum_of_subadditive E1 #

∀ {ι : Type u_1} {M : Type u_4} {N : Type u_5} [inst : AddCommMonoid M] [inst_1 : AddCommMonoid N] [inst_2 : Preorder N]
  [IsOrderedAddMonoid N] (f : M → N),
  f 0 ≤ 0 → (∀ (x y : M), f (x + y) ≤ f x + f y) → ∀ (s : Finset ι) (g : ι → M), f (∑ i ∈ s, g i) ≤ ∑ i ∈ s, f (g i)

If f : M → N is a subadditive function, f (x + y) ≤ f x + f y, f 0 = 0, and g i, i ∈ s, is a finite family of elements of M, then f (∑ i ∈ s, g i) ≤ ∑ i ∈ s, f (g i).

theorem Finset.map_sum_le_sum E0 #

∀ {ι : Type u_1} {M : Type u_4} {N : Type u_5} [inst : AddCommMonoid M] [inst_1 : AddCommMonoid N] [inst_2 : Preorder N]
  [IsOrderedAddMonoid N] {F : Type u_8} [inst_4 : FunLike F M N] [ZeroHomClass F M N] [SubadditiveHomClass F M N]
  (f : F) (s : Finset ι) (g : ι → M), f (∑ i ∈ s, g i) ≤ ∑ i ∈ s, f (g i)

theorem Finset.map_prod_le_prod E0 #

∀ {ι : Type u_1} {M : Type u_4} {N : Type u_5} [inst : CommMonoid M] [inst_1 : CommMonoid N] [inst_2 : Preorder N]
  [IsOrderedMonoid N] {F : Type u_8} [inst_4 : FunLike F M N] [OneHomClass F M N] [SubmultiplicativeHomClass F M N]
  (f : F) (s : Finset ι) (g : ι → M), f (∏ i ∈ s, g i) ≤ ∏ i ∈ s, f (g i)

theorem Finset.prod_le_prod E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : CommMonoid N] [inst_1 : Preorder N] {f g : ι → N} {s : Finset ι}
  [MulLeftMono N], (∀ i ∈ s, f i ≤ g i) → ∏ i ∈ s, f i ≤ ∏ i ∈ s, g i

In an ordered commutative monoid, if each factor f i of one finite product is less than or equal to the corresponding factor g i of another finite product, then ∏ i ∈ s, f i ≤ ∏ i ∈ s, g i.

theorem Finset.sum_le_sum E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : AddCommMonoid N] [inst_1 : Preorder N] {f g : ι → N} {s : Finset ι}
  [AddLeftMono N], (∀ i ∈ s, f i ≤ g i) → ∑ i ∈ s, f i ≤ ∑ i ∈ s, g i

In an ordered additive commutative monoid, if each summand f i of one finite sum is less than or equal to the corresponding summand g i of another finite sum, then ∑ i ∈ s, f i ≤ ∑ i ∈ s, g i.

theorem Monotone.finsetProd' E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : CommMonoid N] [inst_1 : Preorder N] {s : Finset ι} [MulLeftMono N]
  {γ : Type u_8} [inst_3 : Preorder γ] {f : ι → γ → N}, (∀ i ∈ s, Monotone (f i)) → Monotone fun x ↦ ∏ i ∈ s, f i x

A finite product of monotone functions is monotone.

theorem Monotone.finsetSum E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : AddCommMonoid N] [inst_1 : Preorder N] {s : Finset ι} [AddLeftMono N]
  {γ : Type u_8} [inst_3 : Preorder γ] {f : ι → γ → N}, (∀ i ∈ s, Monotone (f i)) → Monotone fun x ↦ ∑ i ∈ s, f i x

A finite sum of monotone functions is monotone.

theorem MonotoneOn.finsetProd' E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : CommMonoid N] [inst_1 : Preorder N] {s : Finset ι} [MulLeftMono N]
  {γ : Type u_8} [inst_3 : Preorder γ] {u : Set γ} {f : ι → γ → N},
  (∀ i ∈ s, MonotoneOn (f i) u) → MonotoneOn (fun x ↦ ∏ i ∈ s, f i x) u

A finite product of functions monotone on u is monotone on u.

theorem MonotoneOn.finsetSum E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : AddCommMonoid N] [inst_1 : Preorder N] {s : Finset ι} [AddLeftMono N]
  {γ : Type u_8} [inst_3 : Preorder γ] {u : Set γ} {f : ι → γ → N},
  (∀ i ∈ s, MonotoneOn (f i) u) → MonotoneOn (fun x ↦ ∑ i ∈ s, f i x) u

A finite sum of functions monotone on u is monotone on u.

theorem Antitone.finsetProd' E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : CommMonoid N] [inst_1 : Preorder N] {s : Finset ι} [MulLeftMono N]
  {γ : Type u_8} [inst_3 : Preorder γ] {f : ι → γ → N}, (∀ i ∈ s, Antitone (f i)) → Antitone fun x ↦ ∏ i ∈ s, f i x

A finite product of antitone functions is antitone.

theorem Antitone.finsetSum E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : AddCommMonoid N] [inst_1 : Preorder N] {s : Finset ι} [AddLeftMono N]
  {γ : Type u_8} [inst_3 : Preorder γ] {f : ι → γ → N}, (∀ i ∈ s, Antitone (f i)) → Antitone fun x ↦ ∑ i ∈ s, f i x

A finite sum of antitone functions is antitone.

theorem AntitoneOn.finsetProd' E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : CommMonoid N] [inst_1 : Preorder N] {s : Finset ι} [MulLeftMono N]
  {γ : Type u_8} [inst_3 : Preorder γ] {u : Set γ} {f : ι → γ → N},
  (∀ i ∈ s, AntitoneOn (f i) u) → AntitoneOn (fun x ↦ ∏ i ∈ s, f i x) u

A finite product of functions antitone on u is antitone on u.

theorem AntitoneOn.finsetSum E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : AddCommMonoid N] [inst_1 : Preorder N] {s : Finset ι} [AddLeftMono N]
  {γ : Type u_8} [inst_3 : Preorder γ] {u : Set γ} {f : ι → γ → N},
  (∀ i ∈ s, AntitoneOn (f i) u) → AntitoneOn (fun x ↦ ∑ i ∈ s, f i x) u

A finite sum of functions antitone on u is antitone on u.

theorem Finset.sum_nonneg E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : AddCommMonoid N] [inst_1 : Preorder N] {f : ι → N} {s : Finset ι}
  [AddLeftMono N], (∀ i ∈ s, 0 ≤ f i) → 0 ≤ ∑ i ∈ s, f i

theorem Finset.one_le_prod E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : CommMonoid N] [inst_1 : Preorder N] {f : ι → N} {s : Finset ι} [MulLeftMono N],
  (∀ i ∈ s, 1 ≤ f i) → 1 ≤ ∏ i ∈ s, f i

theorem Finset.prod_le_one E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : CommMonoid N] [inst_1 : Preorder N] {f : ι → N} {s : Finset ι} [MulLeftMono N],
  (∀ i ∈ s, f i ≤ 1) → ∏ i ∈ s, f i ≤ 1

theorem Finset.sum_nonpos E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : AddCommMonoid N] [inst_1 : Preorder N] {f : ι → N} {s : Finset ι}
  [AddLeftMono N], (∀ i ∈ s, f i ≤ 0) → ∑ i ∈ s, f i ≤ 0

theorem Finset.sum_le_sum_of_subset_of_nonneg E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : AddCommMonoid N] [inst_1 : Preorder N] {f : ι → N} {s t : Finset ι}
  [AddLeftMono N], s ⊆ t → (∀ i ∈ t, i ∉ s → 0 ≤ f i) → ∑ i ∈ s, f i ≤ ∑ i ∈ t, f i

theorem Finset.prod_le_prod_of_subset_of_one_le E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : CommMonoid N] [inst_1 : Preorder N] {f : ι → N} {s t : Finset ι}
  [MulLeftMono N], s ⊆ t → (∀ i ∈ t, i ∉ s → 1 ≤ f i) → ∏ i ∈ s, f i ≤ ∏ i ∈ t, f i

theorem Finset.prod_le_prod_of_subset_of_le_one E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : CommMonoid N] [inst_1 : Preorder N] {f : ι → N} {s t : Finset ι}
  [MulLeftMono N], s ⊆ t → (∀ i ∈ t, i ∉ s → f i ≤ 1) → ∏ i ∈ t, f i ≤ ∏ i ∈ s, f i

theorem Finset.sum_le_sum_of_subset_of_nonpos E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : AddCommMonoid N] [inst_1 : Preorder N] {f : ι → N} {s t : Finset ι}
  [AddLeftMono N], s ⊆ t → (∀ i ∈ t, i ∉ s → f i ≤ 0) → ∑ i ∈ t, f i ≤ ∑ i ∈ s, f i

theorem Finset.sum_mono_set_of_nonneg E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : AddCommMonoid N] [inst_1 : Preorder N] {f : ι → N} [AddLeftMono N],
  (∀ (x : ι), 0 ≤ f x) → Monotone fun s ↦ ∑ x ∈ s, f x

theorem Finset.prod_mono_set_of_one_le E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : CommMonoid N] [inst_1 : Preorder N] {f : ι → N} [MulLeftMono N],
  (∀ (x : ι), 1 ≤ f x) → Monotone fun s ↦ ∏ x ∈ s, f x

theorem Finset.sum_anti_set_of_nonpos E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : AddCommMonoid N] [inst_1 : Preorder N] {f : ι → N} [AddLeftMono N],
  (∀ (x : ι), f x ≤ 0) → Antitone fun s ↦ ∑ x ∈ s, f x

theorem Finset.prod_anti_set_of_le_one E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : CommMonoid N] [inst_1 : Preorder N] {f : ι → N} [MulLeftMono N],
  (∀ (x : ι), f x ≤ 1) → Antitone fun s ↦ ∏ x ∈ s, f x

theorem Finset.prod_le_univ_prod_of_one_le E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : CommMonoid N] [inst_1 : Preorder N] {f : ι → N} [MulLeftMono N]
  [inst_3 : Fintype ι] {s : Finset ι}, (∀ (x : ι), 1 ≤ f x) → ∏ x ∈ s, f x ≤ ∏ x, f x

theorem Finset.sum_le_univ_sum_of_nonneg E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : AddCommMonoid N] [inst_1 : Preorder N] {f : ι → N} [AddLeftMono N]
  [inst_3 : Fintype ι] {s : Finset ι}, (∀ (x : ι), 0 ≤ f x) → ∑ x ∈ s, f x ≤ ∑ x, f x

theorem Finset.sum_le_sum_of_injOn E1 #

∀ {ι : Type u_1} {α : Type u_2} {N : Type u_5} [inst : AddCommMonoid N] [inst_1 : Preorder N] {f : ι → N}
  [inst_2 : DecidableEq α] [AddLeftMono N] {g : α → N} {s : Finset ι} {t : Finset α} (e : ι → α),
  Set.InjOn e ↑s →
    Finset.image e s ⊆ t →
      (∀ i ∈ s, f i ≤ g (e i)) → (∀ a ∈ t, a ∉ Finset.image e s → 0 ≤ g a) → ∑ i ∈ s, f i ≤ ∑ a ∈ t, g a

theorem Finset.prod_le_prod_of_injOn E1 #

∀ {ι : Type u_1} {α : Type u_2} {N : Type u_5} [inst : CommMonoid N] [inst_1 : Preorder N] {f : ι → N}
  [inst_2 : DecidableEq α] [MulLeftMono N] {g : α → N} {s : Finset ι} {t : Finset α} (e : ι → α),
  Set.InjOn e ↑s →
    Finset.image e s ⊆ t →
      (∀ i ∈ s, f i ≤ g (e i)) → (∀ a ∈ t, a ∉ Finset.image e s → 1 ≤ g a) → ∏ i ∈ s, f i ≤ ∏ a ∈ t, g a

theorem Finset.sum_eq_zero_iff_of_nonneg E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : AddCommMonoid N] [inst_1 : PartialOrder N] {f : ι → N} {s : Finset ι}
  [IsOrderedAddMonoid N], (∀ i ∈ s, 0 ≤ f i) → (∑ i ∈ s, f i = 0 ↔ ∀ i ∈ s, f i = 0)

theorem Finset.prod_eq_one_iff_of_one_le E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : CommMonoid N] [inst_1 : PartialOrder N] {f : ι → N} {s : Finset ι}
  [IsOrderedMonoid N], (∀ i ∈ s, 1 ≤ f i) → (∏ i ∈ s, f i = 1 ↔ ∀ i ∈ s, f i = 1)

theorem Finset.one_lt_prod_iff_of_one_le E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : CommMonoid N] [inst_1 : PartialOrder N] {f : ι → N} {s : Finset ι}
  [IsOrderedMonoid N], (∀ x ∈ s, 1 ≤ f x) → (1 < ∏ x ∈ s, f x ↔ ∃ x ∈ s, 1 < f x)

theorem Finset.sum_pos_iff_of_nonneg E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : AddCommMonoid N] [inst_1 : PartialOrder N] {f : ι → N} {s : Finset ι}
  [IsOrderedAddMonoid N], (∀ x ∈ s, 0 ≤ f x) → (0 < ∑ x ∈ s, f x ↔ ∃ x ∈ s, 0 < f x)

theorem Finset.prod_eq_one_iff_of_le_one E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : CommMonoid N] [inst_1 : PartialOrder N] {f : ι → N} {s : Finset ι}
  [IsOrderedMonoid N], (∀ i ∈ s, f i ≤ 1) → (∏ i ∈ s, f i = 1 ↔ ∀ i ∈ s, f i = 1)

theorem Finset.sum_eq_zero_iff_of_nonpos E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : AddCommMonoid N] [inst_1 : PartialOrder N] {f : ι → N} {s : Finset ι}
  [IsOrderedAddMonoid N], (∀ i ∈ s, f i ≤ 0) → (∑ i ∈ s, f i = 0 ↔ ∀ i ∈ s, f i = 0)

theorem Finset.prod_lt_one_iff_of_le_one E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : CommMonoid N] [inst_1 : PartialOrder N] {f : ι → N} {s : Finset ι}
  [IsOrderedMonoid N], (∀ x ∈ s, f x ≤ 1) → (∏ x ∈ s, f x < 1 ↔ ∃ x ∈ s, f x < 1)

theorem Finset.sum_neg_iff_of_nonpos E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : AddCommMonoid N] [inst_1 : PartialOrder N] {f : ι → N} {s : Finset ι}
  [IsOrderedAddMonoid N], (∀ x ∈ s, f x ≤ 0) → (∑ x ∈ s, f x < 0 ↔ ∃ x ∈ s, f x < 0)

theorem Finset.single_le_prod E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : CommMonoid N] [inst_1 : Preorder N] {f : ι → N} {s : Finset ι} [MulLeftMono N],
  (∀ i ∈ s, 1 ≤ f i) → ∀ {a : ι}, a ∈ s → f a ≤ ∏ x ∈ s, f x

theorem Finset.single_le_sum E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : AddCommMonoid N] [inst_1 : Preorder N] {f : ι → N} {s : Finset ι}
  [AddLeftMono N], (∀ i ∈ s, 0 ≤ f i) → ∀ {a : ι}, a ∈ s → f a ≤ ∑ x ∈ s, f x

theorem Finset.add_le_sum E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : AddCommMonoid N] [inst_1 : Preorder N] {f : ι → N} {s : Finset ι}
  [AddLeftMono N] {i j : ι}, (∀ i ∈ s, 0 ≤ f i) → i ∈ s → j ∈ s → i ≠ j → f i + f j ≤ ∑ k ∈ s, f k

theorem Finset.mul_le_prod E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : CommMonoid N] [inst_1 : Preorder N] {f : ι → N} {s : Finset ι} [MulLeftMono N]
  {i j : ι}, (∀ i ∈ s, 1 ≤ f i) → i ∈ s → j ∈ s → i ≠ j → f i * f j ≤ ∏ k ∈ s, f k

theorem Finset.sum_le_card_nsmul E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : AddCommMonoid N] [inst_1 : Preorder N] [AddLeftMono N] (s : Finset ι)
  (f : ι → N) (n : N), (∀ x ∈ s, f x ≤ n) → s.sum f ≤ s.card • n

theorem Finset.prod_le_pow_card E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : CommMonoid N] [inst_1 : Preorder N] [MulLeftMono N] (s : Finset ι) (f : ι → N)
  (n : N), (∀ x ∈ s, f x ≤ n) → s.prod f ≤ n ^ s.card

theorem Finset.card_nsmul_le_sum E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : AddCommMonoid N] [inst_1 : Preorder N] [AddLeftMono N] (s : Finset ι)
  (f : ι → N) (n : N), (∀ x ∈ s, n ≤ f x) → s.card • n ≤ s.sum f

theorem Finset.pow_card_le_prod E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : CommMonoid N] [inst_1 : Preorder N] [MulLeftMono N] (s : Finset ι) (f : ι → N)
  (n : N), (∀ x ∈ s, n ≤ f x) → n ^ s.card ≤ s.prod f

theorem Finset.card_biUnion_le_card_mul E1 #

∀ {ι : Type u_1} {β : Type u_3} [inst : DecidableEq β] (s : Finset ι) (f : ι → Finset β) (n : ℕ),
  (∀ a ∈ s, (f a).card ≤ n) → (s.biUnion f).card ≤ s.card * n

theorem Finset.prod_fiberwise_le_prod_of_one_le_prod_fiber E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : CommMonoid N] [inst_1 : Preorder N] {s : Finset ι} {ι' : Type u_8}
  [inst_2 : DecidableEq ι'] [MulLeftMono N] {t : Finset ι'} {g : ι → ι'} {f : ι → N},
  (∀ y ∉ t, 1 ≤ ∏ x ∈ s with g x = y, f x) → ∏ y ∈ t, ∏ x ∈ s with g x = y, f x ≤ ∏ x ∈ s, f x

theorem Finset.sum_fiberwise_le_sum_of_sum_fiber_nonneg E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : AddCommMonoid N] [inst_1 : Preorder N] {s : Finset ι} {ι' : Type u_8}
  [inst_2 : DecidableEq ι'] [AddLeftMono N] {t : Finset ι'} {g : ι → ι'} {f : ι → N},
  (∀ y ∉ t, 0 ≤ ∑ x ∈ s with g x = y, f x) → ∑ y ∈ t, ∑ x ∈ s with g x = y, f x ≤ ∑ x ∈ s, f x

theorem Finset.sum_le_sum_fiberwise_of_sum_fiber_nonpos E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : AddCommMonoid N] [inst_1 : Preorder N] {s : Finset ι} {ι' : Type u_8}
  [inst_2 : DecidableEq ι'] [AddLeftMono N] {t : Finset ι'} {g : ι → ι'} {f : ι → N},
  (∀ y ∉ t, ∑ x ∈ s with g x = y, f x ≤ 0) → ∑ x ∈ s, f x ≤ ∑ y ∈ t, ∑ x ∈ s with g x = y, f x

theorem Finset.prod_le_prod_fiberwise_of_prod_fiber_le_one E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : CommMonoid N] [inst_1 : Preorder N] {s : Finset ι} {ι' : Type u_8}
  [inst_2 : DecidableEq ι'] [MulLeftMono N] {t : Finset ι'} {g : ι → ι'} {f : ι → N},
  (∀ y ∉ t, ∏ x ∈ s with g x = y, f x ≤ 1) → ∏ x ∈ s, f x ≤ ∏ y ∈ t, ∏ x ∈ s with g x = y, f x

theorem Finset.sum_image_le_of_nonneg E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : AddCommMonoid N] [inst_1 : Preorder N] {s : Finset ι} {ι' : Type u_8}
  [inst_2 : DecidableEq ι'] [AddLeftMono N] {g : ι → ι'} {f : ι' → N},
  (∀ u ∈ Finset.image g s, 0 ≤ f u) → ∑ u ∈ Finset.image g s, f u ≤ ∑ u ∈ s, f (g u)

theorem Finset.prod_image_le_of_one_le E1 #

∀ {ι : Type u_1} {N : Type u_5} [inst : CommMonoid N] [inst_1 : Preorder N] {s : Finset ι} {ι' : Type u_8}
  [inst_2 : DecidableEq ι'] [MulLeftMono N] {g : ι → ι'} {f : ι' → N},
  (∀ u ∈ Finset.image g s, 1 ≤ f u) → ∏ u ∈ Finset.image g s, f u ≤ ∏ u ∈ s, f (g u)

theorem Finset.apply_prod_le_sum_apply E0 #

∀ {ι : Type u_1} {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : AddCommMonoid β] [inst_2 : Preorder β]
  [AddLeftMono β] (s : Finset ι) {f : ι → α} (g : α → β),
  g 1 ≤ 0 → (∀ (a b : α), g (a * b) ≤ g a + g b) → g (∏ x ∈ s, f x) ≤ ∑ x ∈ s, g (f x)

theorem Finset.sum_apply_le_apply_prod E1 #

∀ {ι : Type u_1} {α : Type u_2} {β : Type u_3} [inst : CommMonoid α] [inst_1 : AddCommMonoid β] [inst_2 : Preorder β]
  [AddLeftMono β] (s : Finset ι) {f : ι → α} (g : α → β),
  0 ≤ g 1 → (∀ (a b : α), g a + g b ≤ g (a * b)) → ∑ x ∈ s, g (f x) ≤ g (∏ x ∈ s, f x)

theorem Finset.max_sum_le E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : AddCommMonoid M] [inst_1 : LinearOrder M] [IsOrderedAddMonoid M] {f g : ι → M}
  {s : Finset ι}, max (s.sum f) (s.sum g) ≤ ∑ i ∈ s, max (f i) (g i)

theorem Finset.max_prod_le E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : CommMonoid M] [inst_1 : LinearOrder M] [IsOrderedMonoid M] {f g : ι → M}
  {s : Finset ι}, max (s.prod f) (s.prod g) ≤ ∏ i ∈ s, max (f i) (g i)

theorem Finset.prod_min_le E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : CommMonoid M] [inst_1 : LinearOrder M] [IsOrderedMonoid M] {f g : ι → M}
  {s : Finset ι}, ∏ i ∈ s, min (f i) (g i) ≤ min (s.prod f) (s.prod g)

theorem Finset.sum_min_le E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : AddCommMonoid M] [inst_1 : LinearOrder M] [IsOrderedAddMonoid M] {f g : ι → M}
  {s : Finset ι}, ∑ i ∈ s, min (f i) (g i) ≤ min (s.sum f) (s.sum g)

theorem Finset.abs_sum_le_sum_abs E1 #

∀ {ι : Type u_1} {G : Type u_8} [inst : AddCommGroup G] [inst_1 : LinearOrder G] [IsOrderedAddMonoid G] (f : ι → G)
  (s : Finset ι), |∑ i ∈ s, f i| ≤ ∑ i ∈ s, |f i|

theorem Finset.abs_sum_of_nonneg E1 #

∀ {ι : Type u_1} {G : Type u_8} [inst : AddCommGroup G] [inst_1 : LinearOrder G] [AddLeftMono G] {f : ι → G}
  {s : Finset ι}, (∀ i ∈ s, 0 ≤ f i) → |∑ i ∈ s, f i| = ∑ i ∈ s, f i

theorem Finset.addLECancellable_sum E0 #

∀ {ι : Type u_1} {α : Type u_2} [inst : AddCommMonoid α] [inst_1 : LE α] [AddLeftMono α] {s : Finset ι} {f : ι → α},
  AddLECancellable (∑ i ∈ s, f i) ↔ ∀ ⦃i : ι⦄, i ∈ s → AddLECancellable (f i)

theorem Finset.mulLECancellable_prod E0 #

∀ {ι : Type u_1} {α : Type u_2} [inst : CommMonoid α] [inst_1 : LE α] [MulLeftMono α] {s : Finset ι} {f : ι → α},
  MulLECancellable (∏ i ∈ s, f i) ↔ ∀ ⦃i : ι⦄, i ∈ s → MulLECancellable (f i)

theorem Finset.card_le_mul_card_image_of_maps_to E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : DecidableEq β] {f : α → β} {s : Finset α} {t : Finset β},
  (∀ a ∈ s, f a ∈ t) → ∀ (n : ℕ), (∀ b ∈ t, {a ∈ s | f a = b}.card ≤ n) → s.card ≤ n * t.card

theorem Finset.card_le_mul_card_image E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : DecidableEq β] {f : α → β} (s : Finset α) (n : ℕ),
  (∀ b ∈ Finset.image f s, {a ∈ s | f a = b}.card ≤ n) → s.card ≤ n * (Finset.image f s).card

theorem Finset.mul_card_image_le_card_of_maps_to E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : DecidableEq β] {f : α → β} {s : Finset α} {t : Finset β},
  (∀ a ∈ s, f a ∈ t) → ∀ (n : ℕ), (∀ b ∈ t, n ≤ {a ∈ s | f a = b}.card) → n * t.card ≤ s.card

theorem Finset.mul_card_image_le_card E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : DecidableEq β] {f : α → β} (s : Finset α) (n : ℕ),
  (∀ b ∈ Finset.image f s, n ≤ {a ∈ s | f a = b}.card) → n * (Finset.image f s).card ≤ s.card

theorem Finset.sum_card_inter_le E1 #

∀ {α : Type u_2} [inst : DecidableEq α] {s : Finset α} {B : Finset (Finset α)} {n : ℕ},
  (∀ a ∈ s, {b ∈ B | a ∈ b}.card ≤ n) → ∑ t ∈ B, (s ∩ t).card ≤ s.card * n

If every element belongs to at most n Finsets, then the sum of their sizes is at most n times how many they are.

theorem Finset.sum_card_le E1 #

∀ {α : Type u_2} [inst : DecidableEq α] {B : Finset (Finset α)} {n : ℕ} [inst_1 : Fintype α],
  (∀ (a : α), {b ∈ B | a ∈ b}.card ≤ n) → ∑ s ∈ B, s.card ≤ Fintype.card α * n

If every element belongs to at most n Finsets, then the sum of their sizes is at most n times how many they are.

theorem Finset.le_sum_card_inter E1 #

∀ {α : Type u_2} [inst : DecidableEq α] {s : Finset α} {B : Finset (Finset α)} {n : ℕ},
  (∀ a ∈ s, n ≤ {b ∈ B | a ∈ b}.card) → s.card * n ≤ ∑ t ∈ B, (s ∩ t).card

If every element belongs to at least n Finsets, then the sum of their sizes is at least n times how many they are.

theorem Finset.le_sum_card E1 #

∀ {α : Type u_2} [inst : DecidableEq α] {B : Finset (Finset α)} {n : ℕ} [inst_1 : Fintype α],
  (∀ (a : α), n ≤ {b ∈ B | a ∈ b}.card) → Fintype.card α * n ≤ ∑ s ∈ B, s.card

If every element belongs to at least n Finsets, then the sum of their sizes is at least n times how many they are.

theorem Finset.sum_card_inter E1 #

∀ {α : Type u_2} [inst : DecidableEq α] {s : Finset α} {B : Finset (Finset α)} {n : ℕ},
  (∀ a ∈ s, {b ∈ B | a ∈ b}.card = n) → ∑ t ∈ B, (s ∩ t).card = s.card * n

If every element belongs to exactly n Finsets, then the sum of their sizes is n times how many they are.

theorem Finset.sum_card E1 #

∀ {α : Type u_2} [inst : DecidableEq α] {B : Finset (Finset α)} {n : ℕ} [inst_1 : Fintype α],
  (∀ (a : α), {b ∈ B | a ∈ b}.card = n) → ∑ s ∈ B, s.card = Fintype.card α * n

If every element belongs to exactly n Finsets, then the sum of their sizes is n times how many they are.

theorem Finset.card_le_card_biUnion E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : DecidableEq α] {s : Finset ι} {f : ι → Finset α},
  (↑s).PairwiseDisjoint f → (∀ i ∈ s, (f i).Nonempty) → s.card ≤ (s.biUnion f).card

theorem Finset.card_le_card_biUnion_add_card_fiber E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : DecidableEq α] {s : Finset ι} {f : ι → Finset α},
  (↑s).PairwiseDisjoint f → s.card ≤ (s.biUnion f).card + {i ∈ s | f i = ∅}.card

theorem Finset.card_le_card_biUnion_add_one E1 #

∀ {ι : Type u_1} {α : Type u_2} [inst : DecidableEq α] {s : Finset ι} {f : ι → Finset α},
  Function.Injective f → (↑s).PairwiseDisjoint f → s.card ≤ (s.biUnion f).card + 1

theorem Finset.single_le_prod_of_canonicallyOrdered E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : CommMonoid M] [inst_1 : Preorder M] [CanonicallyOrderedMul M] {f : ι → M}
  {s : Finset ι} {i : ι}, i ∈ s → f i ≤ ∏ j ∈ s, f j

In a canonically-ordered monoid, a product bounds each of its terms.

See also Finset.single_le_prod'.

theorem Finset.single_le_sum_of_canonicallyOrdered E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : AddCommMonoid M] [inst_1 : Preorder M] [CanonicallyOrderedAdd M] {f : ι → M}
  {s : Finset ι} {i : ι}, i ∈ s → f i ≤ ∑ j ∈ s, f j

In a canonically-ordered additive monoid, a sum bounds each of its terms.

See also Finset.single_le_sum.

theorem Finset.prod_le_prod_of_subset E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : CommMonoid M] [inst_1 : Preorder M] [CanonicallyOrderedMul M] {f : ι → M}
  {s t : Finset ι}, s ⊆ t → ∏ x ∈ s, f x ≤ ∏ x ∈ t, f x

theorem Finset.sum_le_sum_of_subset E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : AddCommMonoid M] [inst_1 : Preorder M] [CanonicallyOrderedAdd M] {f : ι → M}
  {s t : Finset ι}, s ⊆ t → ∑ x ∈ s, f x ≤ ∑ x ∈ t, f x

theorem Finset.sum_mono_set E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : AddCommMonoid M] [inst_1 : Preorder M] [CanonicallyOrderedAdd M] (f : ι → M),
  Monotone fun s ↦ ∑ x ∈ s, f x

theorem Finset.prod_mono_set E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : CommMonoid M] [inst_1 : Preorder M] [CanonicallyOrderedMul M] (f : ι → M),
  Monotone fun s ↦ ∏ x ∈ s, f x

theorem Finset.prod_le_prod_of_ne_one E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : CommMonoid M] [inst_1 : Preorder M] [CanonicallyOrderedMul M] {f : ι → M}
  {s t : Finset ι}, (∀ x ∈ s, f x ≠ 1 → x ∈ t) → ∏ x ∈ s, f x ≤ ∏ x ∈ t, f x

theorem Finset.sum_le_sum_of_ne_zero E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : AddCommMonoid M] [inst_1 : Preorder M] [CanonicallyOrderedAdd M] {f : ι → M}
  {s t : Finset ι}, (∀ x ∈ s, f x ≠ 0 → x ∈ t) → ∑ x ∈ s, f x ≤ ∑ x ∈ t, f x

theorem Finset.sum_pos_iff E0 #

∀ {ι : Type u_8} {M : Type u_9} [inst : AddCommMonoid M] [inst_1 : PartialOrder M] [CanonicallyOrderedAdd M] {f : ι → M}
  {s : Finset ι}, 0 < ∑ x ∈ s, f x ↔ ∃ x ∈ s, 0 < f x

theorem Finset.one_lt_prod_iff E0 #

∀ {ι : Type u_8} {M : Type u_9} [inst : CommMonoid M] [inst_1 : PartialOrder M] [CanonicallyOrderedMul M] {f : ι → M}
  {s : Finset ι}, 1 < ∏ x ∈ s, f x ↔ ∃ x ∈ s, 1 < f x

theorem Finset.prod_lt_prod_of_subset_erase_union_singleton E1 #

∀ {ι : Type u_8} {M : Type u_9} [inst : DecidableEq ι] [inst_1 : CommMonoid M] [inst_2 : PartialOrder M]
  [CanonicallyOrderedMul M] [MulLeftStrictMono M] {S S' : Finset ι} {f : ι → M} {d d' : ι},
  d ∈ S → S' ⊆ S.erase d ∪ {d'} → f d' < f d → ∏ x ∈ S', f x < ∏ x ∈ S, f x

In a canonically-ordered monoid, if S' is contained in (S.erase d) ∪ {d'} and f d' < f d for some d ∈ S, then the product of f over S' is strictly less than over S.

theorem Finset.sum_lt_sum_of_subset_erase_union_singleton E1 #

∀ {ι : Type u_8} {M : Type u_9} [inst : DecidableEq ι] [inst_1 : AddCommMonoid M] [inst_2 : PartialOrder M]
  [CanonicallyOrderedAdd M] [AddLeftStrictMono M] {S S' : Finset ι} {f : ι → M} {d d' : ι},
  d ∈ S → S' ⊆ S.erase d ∪ {d'} → f d' < f d → ∑ x ∈ S', f x < ∑ x ∈ S, f x

In a canonically-ordered additive monoid, if S' is contained in (S.erase d) ∪ {d'} and f d' < f d for some d ∈ S, then the sum of f over S' is strictly less than over S.

theorem Finset.prod_lt_prod E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : CommMonoid M] [inst_1 : Preorder M] [IsOrderedCancelMonoid M] {f g : ι → M}
  {s : Finset ι} [MulLeftStrictMono M], (∀ i ∈ s, f i ≤ g i) → (∃ i ∈ s, f i < g i) → ∏ i ∈ s, f i < ∏ i ∈ s, g i

theorem Finset.sum_lt_sum E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : AddCommMonoid M] [inst_1 : Preorder M] [IsOrderedCancelAddMonoid M]
  {f g : ι → M} {s : Finset ι} [AddLeftStrictMono M],
  (∀ i ∈ s, f i ≤ g i) → (∃ i ∈ s, f i < g i) → ∑ i ∈ s, f i < ∑ i ∈ s, g i

theorem Finset.prod_lt_prod_of_nonempty E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : CommMonoid M] [inst_1 : Preorder M] [IsOrderedCancelMonoid M] {f g : ι → M}
  {s : Finset ι} [MulLeftStrictMono M], s.Nonempty → (∀ i ∈ s, f i < g i) → ∏ i ∈ s, f i < ∏ i ∈ s, g i

In an ordered commutative monoid, if each factor f i of one nontrivial finite product is strictly less than the corresponding factor g i of another nontrivial finite product, then s.prod f < s.prod g.

theorem Finset.sum_lt_sum_of_nonempty E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : AddCommMonoid M] [inst_1 : Preorder M] [IsOrderedCancelAddMonoid M]
  {f g : ι → M} {s : Finset ι} [AddLeftStrictMono M], s.Nonempty → (∀ i ∈ s, f i < g i) → ∑ i ∈ s, f i < ∑ i ∈ s, g i

In an ordered additive commutative monoid, if each summand f i of one nontrivial finite sum is strictly less than the corresponding summand g i of another nontrivial finite sum, then s.sum f < s.sum g.

theorem Finset.prod_lt_prod_of_subset E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : CommMonoid M] [inst_1 : Preorder M] [IsOrderedCancelMonoid M] {f : ι → M}
  {s t : Finset ι} [MulLeftStrictMono M],
  s ⊆ t → ∀ {i : ι}, i ∈ t → i ∉ s → 1 < f i → (∀ j ∈ t, j ∉ s → 1 ≤ f j) → ∏ j ∈ s, f j < ∏ j ∈ t, f j

theorem Finset.sum_lt_sum_of_subset E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : AddCommMonoid M] [inst_1 : Preorder M] [IsOrderedCancelAddMonoid M] {f : ι → M}
  {s t : Finset ι} [AddLeftStrictMono M],
  s ⊆ t → ∀ {i : ι}, i ∈ t → i ∉ s → 0 < f i → (∀ j ∈ t, j ∉ s → 0 ≤ f j) → ∑ j ∈ s, f j < ∑ j ∈ t, f j

theorem Finset.single_lt_prod E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : CommMonoid M] [inst_1 : Preorder M] [IsOrderedCancelMonoid M] {f : ι → M}
  {s : Finset ι} [MulLeftStrictMono M] {i j : ι},
  j ≠ i → i ∈ s → j ∈ s → 1 < f j → (∀ k ∈ s, k ≠ i → 1 ≤ f k) → f i < ∏ k ∈ s, f k

theorem Finset.single_lt_sum E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : AddCommMonoid M] [inst_1 : Preorder M] [IsOrderedCancelAddMonoid M] {f : ι → M}
  {s : Finset ι} [AddLeftStrictMono M] {i j : ι},
  j ≠ i → i ∈ s → j ∈ s → 0 < f j → (∀ k ∈ s, k ≠ i → 0 ≤ f k) → f i < ∑ k ∈ s, f k

theorem Finset.sum_pos E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : AddCommMonoid M] [inst_1 : Preorder M] [IsOrderedCancelAddMonoid M] {f : ι → M}
  {s : Finset ι} [AddLeftStrictMono M], (∀ i ∈ s, 0 < f i) → s.Nonempty → 0 < ∑ i ∈ s, f i

theorem Finset.one_lt_prod E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : CommMonoid M] [inst_1 : Preorder M] [IsOrderedCancelMonoid M] {f : ι → M}
  {s : Finset ι} [MulLeftStrictMono M], (∀ i ∈ s, 1 < f i) → s.Nonempty → 1 < ∏ i ∈ s, f i

theorem Finset.sum_neg E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : AddCommMonoid M] [inst_1 : Preorder M] [IsOrderedCancelAddMonoid M] {f : ι → M}
  {s : Finset ι} [AddLeftStrictMono M], (∀ i ∈ s, f i < 0) → s.Nonempty → ∑ i ∈ s, f i < 0

theorem Finset.prod_lt_one E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : CommMonoid M] [inst_1 : Preorder M] [IsOrderedCancelMonoid M] {f : ι → M}
  {s : Finset ι} [MulLeftStrictMono M], (∀ i ∈ s, f i < 1) → s.Nonempty → ∏ i ∈ s, f i < 1

theorem Finset.one_lt_prod' E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : CommMonoid M] [inst_1 : Preorder M] [IsOrderedCancelMonoid M] {f : ι → M}
  {s : Finset ι} [MulLeftStrictMono M], (∀ i ∈ s, 1 ≤ f i) → (∃ i ∈ s, 1 < f i) → 1 < ∏ i ∈ s, f i

theorem Finset.sum_pos' E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : AddCommMonoid M] [inst_1 : Preorder M] [IsOrderedCancelAddMonoid M] {f : ι → M}
  {s : Finset ι} [AddLeftStrictMono M], (∀ i ∈ s, 0 ≤ f i) → (∃ i ∈ s, 0 < f i) → 0 < ∑ i ∈ s, f i

theorem Finset.sum_neg' E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : AddCommMonoid M] [inst_1 : Preorder M] [IsOrderedCancelAddMonoid M] {f : ι → M}
  {s : Finset ι} [AddLeftStrictMono M], (∀ i ∈ s, f i ≤ 0) → (∃ i ∈ s, f i < 0) → ∑ i ∈ s, f i < 0

theorem Finset.prod_lt_one' E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : CommMonoid M] [inst_1 : Preorder M] [IsOrderedCancelMonoid M] {f : ι → M}
  {s : Finset ι} [MulLeftStrictMono M], (∀ i ∈ s, f i ≤ 1) → (∃ i ∈ s, f i < 1) → ∏ i ∈ s, f i < 1

theorem Finset.sum_eq_sum_iff_of_le E1 #

∀ {ι : Type u_8} {M : Type u_9} [inst : AddCommMonoid M] [inst_1 : PartialOrder M] [IsOrderedCancelAddMonoid M]
  {s : Finset ι} {f g : ι → M}, (∀ i ∈ s, f i ≤ g i) → (∑ i ∈ s, f i = ∑ i ∈ s, g i ↔ ∀ i ∈ s, f i = g i)

theorem Finset.prod_eq_prod_iff_of_le E1 #

∀ {ι : Type u_8} {M : Type u_9} [inst : CommMonoid M] [inst_1 : PartialOrder M] [IsOrderedCancelMonoid M] {s : Finset ι}
  {f g : ι → M}, (∀ i ∈ s, f i ≤ g i) → (∏ i ∈ s, f i = ∏ i ∈ s, g i ↔ ∀ i ∈ s, f i = g i)

theorem Finset.prod_sdiff_le_prod_sdiff E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : CommMonoid M] [inst_1 : Preorder M] [IsOrderedCancelMonoid M] {f : ι → M}
  {s t : Finset ι} [inst_3 : DecidableEq ι], ∏ i ∈ s \ t, f i ≤ ∏ i ∈ t \ s, f i ↔ ∏ i ∈ s, f i ≤ ∏ i ∈ t, f i

theorem Finset.sum_sdiff_le_sum_sdiff E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : AddCommMonoid M] [inst_1 : Preorder M] [IsOrderedCancelAddMonoid M] {f : ι → M}
  {s t : Finset ι} [inst_3 : DecidableEq ι], ∑ i ∈ s \ t, f i ≤ ∑ i ∈ t \ s, f i ↔ ∑ i ∈ s, f i ≤ ∑ i ∈ t, f i

theorem Finset.prod_sdiff_lt_prod_sdiff E1 #

∀ {ι : Type u_8} {M : Type u_9} [inst : CommMonoid M] [inst_1 : PartialOrder M] [IsOrderedCancelMonoid M]
  [inst_3 : DecidableEq ι] {s t : Finset ι} {f : ι → M},
  ∏ i ∈ s \ t, f i < ∏ i ∈ t \ s, f i ↔ ∏ i ∈ s, f i < ∏ i ∈ t, f i

theorem Finset.sum_sdiff_lt_sum_sdiff E1 #

∀ {ι : Type u_8} {M : Type u_9} [inst : AddCommMonoid M] [inst_1 : PartialOrder M] [IsOrderedCancelAddMonoid M]
  [inst_3 : DecidableEq ι] {s t : Finset ι} {f : ι → M},
  ∑ i ∈ s \ t, f i < ∑ i ∈ t \ s, f i ↔ ∑ i ∈ s, f i < ∑ i ∈ t, f i

theorem Finset.exists_lt_of_prod_lt E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : CommMonoid M] [inst_1 : LinearOrder M] {f g : ι → M} {s : Finset ι}
  [IsOrderedMonoid M], ∏ i ∈ s, f i < ∏ i ∈ s, g i → ∃ i ∈ s, f i < g i

theorem Finset.exists_lt_of_sum_lt E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : AddCommMonoid M] [inst_1 : LinearOrder M] {f g : ι → M} {s : Finset ι}
  [IsOrderedAddMonoid M], ∑ i ∈ s, f i < ∑ i ∈ s, g i → ∃ i ∈ s, f i < g i

theorem Finset.exists_one_lt_of_prod_one_of_exists_ne_one E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : CommMonoid M] [inst_1 : LinearOrder M] {s : Finset ι} [IsOrderedMonoid M]
  (f : ι → M), ∏ i ∈ s, f i = 1 → (∃ i ∈ s, f i ≠ 1) → ∃ i ∈ s, 1 < f i

theorem Finset.exists_pos_of_sum_zero_of_exists_nonzero E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : AddCommMonoid M] [inst_1 : LinearOrder M] {s : Finset ι} [IsOrderedAddMonoid M]
  (f : ι → M), ∑ i ∈ s, f i = 0 → (∃ i ∈ s, f i ≠ 0) → ∃ i ∈ s, 0 < f i

theorem Finset.exists_lt_one_of_prod_one_of_exists_ne_one E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : CommMonoid M] [inst_1 : LinearOrder M] {s : Finset ι} [IsOrderedMonoid M]
  (f : ι → M), ∏ i ∈ s, f i = 1 → (∃ i ∈ s, f i ≠ 1) → ∃ i ∈ s, f i < 1

theorem Finset.exists_neg_of_sum_zero_of_exists_nonzero E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : AddCommMonoid M] [inst_1 : LinearOrder M] {s : Finset ι} [IsOrderedAddMonoid M]
  (f : ι → M), ∑ i ∈ s, f i = 0 → (∃ i ∈ s, f i ≠ 0) → ∃ i ∈ s, f i < 0

theorem Finset.exists_le_of_prod_le E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : CommMonoid M] [inst_1 : LinearOrder M] {f g : ι → M} {s : Finset ι}
  [IsOrderedCancelMonoid M], s.Nonempty → ∏ i ∈ s, f i ≤ ∏ i ∈ s, g i → ∃ i ∈ s, f i ≤ g i

theorem Finset.exists_le_of_sum_le E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : AddCommMonoid M] [inst_1 : LinearOrder M] {f g : ι → M} {s : Finset ι}
  [IsOrderedCancelAddMonoid M], s.Nonempty → ∑ i ∈ s, f i ≤ ∑ i ∈ s, g i → ∃ i ∈ s, f i ≤ g i

theorem Finset.apply_sup_le_sum E1 #

∀ {ι : Type u_1} {α : Type u_2} {β : Type u_3} [inst : SemilatticeSup α] [inst_1 : OrderBot α]
  [inst_2 : AddCommMonoid β] [inst_3 : Preorder β] [AddLeftMono β] {f : α → β},
  f ⊥ = 0 → (∀ {s t : α}, f (s ⊔ t) ≤ f s + f t) → ∀ {s : ι → α} (t : Finset ι), f (t.sup s) ≤ ∑ i ∈ t, f (s i)

theorem Finset.apply_union_le_sum E1 #

∀ {ι : Type u_1} {α : Type u_2} {β : Type u_3} [inst : AddCommMonoid β] [inst_1 : Preorder β] [AddLeftMono β]
  {f : Set α → β},
  f ∅ = 0 →
    (∀ {s t : Set α}, f (s ∪ t) ≤ f s + f t) → ∀ {s : ι → Set α} (t : Finset ι), f (⋃ i ∈ t, s i) ≤ ∑ i ∈ t, f (s i)

theorem Finset.sum_le_one_iff E0 #

∀ {α : Type u_2} {s : Finset α} {f : α → ℕ},
  ∑ x ∈ s, f x ≤ 1 ↔ ∀ (x y : α), x ∈ s → y ∈ s → f x ≠ 0 → f y ≠ 0 → x = y ∧ f x = 1

theorem Fintype.prod_mono E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : Fintype ι] [inst_1 : CommMonoid M] [inst_2 : Preorder M] [MulLeftMono M],
  Monotone fun f ↦ ∏ i, f i

theorem Fintype.sum_mono E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : Fintype ι] [inst_1 : AddCommMonoid M] [inst_2 : Preorder M] [AddLeftMono M],
  Monotone fun f ↦ ∑ i, f i

theorem Fintype.one_le_prod E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : Fintype ι] [inst_1 : CommMonoid M] [inst_2 : Preorder M] [MulLeftMono M]
  {f : ι → M}, 1 ≤ f → 1 ≤ ∏ i, f i

theorem Fintype.sum_nonneg E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : Fintype ι] [inst_1 : AddCommMonoid M] [inst_2 : Preorder M] [AddLeftMono M]
  {f : ι → M}, 0 ≤ f → 0 ≤ ∑ i, f i

theorem Fintype.sum_nonpos E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : Fintype ι] [inst_1 : AddCommMonoid M] [inst_2 : Preorder M] [AddLeftMono M]
  {f : ι → M}, f ≤ 0 → ∑ i, f i ≤ 0

theorem Fintype.prod_le_one E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : Fintype ι] [inst_1 : CommMonoid M] [inst_2 : Preorder M] [MulLeftMono M]
  {f : ι → M}, f ≤ 1 → ∏ i, f i ≤ 1

theorem Fintype.prod_eq_one_iff_of_one_le E1 #

∀ {ι : Type u_8} {M : Type u_9} [inst : Fintype ι] [inst_1 : CommMonoid M] [inst_2 : PartialOrder M] [IsOrderedMonoid M]
  {f : ι → M}, 1 ≤ f → (∏ i, f i = 1 ↔ f = 1)

theorem Fintype.sum_eq_zero_iff_of_nonneg E1 #

∀ {ι : Type u_8} {M : Type u_9} [inst : Fintype ι] [inst_1 : AddCommMonoid M] [inst_2 : PartialOrder M]
  [IsOrderedAddMonoid M] {f : ι → M}, 0 ≤ f → (∑ i, f i = 0 ↔ f = 0)

theorem Fintype.sum_eq_zero_iff_of_nonpos E1 #

∀ {ι : Type u_8} {M : Type u_9} [inst : Fintype ι] [inst_1 : AddCommMonoid M] [inst_2 : PartialOrder M]
  [IsOrderedAddMonoid M] {f : ι → M}, f ≤ 0 → (∑ i, f i = 0 ↔ f = 0)

theorem Fintype.prod_eq_one_iff_of_le_one E1 #

∀ {ι : Type u_8} {M : Type u_9} [inst : Fintype ι] [inst_1 : CommMonoid M] [inst_2 : PartialOrder M] [IsOrderedMonoid M]
  {f : ι → M}, f ≤ 1 → (∏ i, f i = 1 ↔ f = 1)

theorem Fintype.prod_strictMono E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : Fintype ι] [inst_1 : CommMonoid M] [inst_2 : PartialOrder M]
  [IsOrderedCancelMonoid M], StrictMono fun f ↦ ∏ x, f x

theorem Fintype.sum_strictMono E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : Fintype ι] [inst_1 : AddCommMonoid M] [inst_2 : PartialOrder M]
  [IsOrderedCancelAddMonoid M], StrictMono fun f ↦ ∑ x, f x

theorem Fintype.sum_pos E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : Fintype ι] [inst_1 : AddCommMonoid M] [inst_2 : PartialOrder M]
  [IsOrderedCancelAddMonoid M] {f : ι → M}, 0 < f → 0 < ∑ i, f i

theorem Fintype.one_lt_prod E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : Fintype ι] [inst_1 : CommMonoid M] [inst_2 : PartialOrder M]
  [IsOrderedCancelMonoid M] {f : ι → M}, 1 < f → 1 < ∏ i, f i

theorem Fintype.sum_neg E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : Fintype ι] [inst_1 : AddCommMonoid M] [inst_2 : PartialOrder M]
  [IsOrderedCancelAddMonoid M] {f : ι → M}, f < 0 → ∑ i, f i < 0

theorem Fintype.prod_lt_one E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : Fintype ι] [inst_1 : CommMonoid M] [inst_2 : PartialOrder M]
  [IsOrderedCancelMonoid M] {f : ι → M}, f < 1 → ∏ i, f i < 1

theorem Fintype.one_lt_prod_iff_of_one_le E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : Fintype ι] [inst_1 : CommMonoid M] [inst_2 : PartialOrder M]
  [IsOrderedCancelMonoid M] {f : ι → M}, 1 ≤ f → (1 < ∏ i, f i ↔ 1 < f)

theorem Fintype.sum_pos_iff_of_nonneg E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : Fintype ι] [inst_1 : AddCommMonoid M] [inst_2 : PartialOrder M]
  [IsOrderedCancelAddMonoid M] {f : ι → M}, 0 ≤ f → (0 < ∑ i, f i ↔ 0 < f)

theorem Fintype.sum_neg_iff_of_nonpos E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : Fintype ι] [inst_1 : AddCommMonoid M] [inst_2 : PartialOrder M]
  [IsOrderedCancelAddMonoid M] {f : ι → M}, f ≤ 0 → (∑ i, f i < 0 ↔ f < 0)

theorem Fintype.prod_lt_one_iff_of_le_one E1 #

∀ {ι : Type u_1} {M : Type u_4} [inst : Fintype ι] [inst_1 : CommMonoid M] [inst_2 : PartialOrder M]
  [IsOrderedCancelMonoid M] {f : ι → M}, f ≤ 1 → (∏ i, f i < 1 ↔ f < 1)

theorem Multiset.finsetSum_eq_sup_iff_disjoint E1 #

∀ {α : Type u_2} {β : Type u_3} [inst : DecidableEq α] {i : Finset β} {f : β → Multiset α},
  i.sum f = i.sup f ↔ ∀ x ∈ i, ∀ y ∈ i, x ≠ y → Disjoint (f x) (f y)

theorem Multiset.sup_powerset_len E1 #

∀ {α : Type u_2} [inst : DecidableEq α] (x : Multiset α),
  ((Finset.range (x.card + 1)).sup fun k ↦ Multiset.powersetCard k x) = x.powerset

theorem Multiset.card_le_card_toFinset_add_one_iff E0 #

∀ {α : Type u_2} [inst : DecidableEq α] {m : Multiset α},
  m.card ≤ m.toFinset.card + 1 ↔
    ∀ (x y : α), 1 < Multiset.count x m → 1 < Multiset.count y m → x = y ∧ Multiset.count x m = 2

Deprecated aliases

NameNew nameSince
Finset.abs_sum_of_nonneg'Finset.abs_sum_of_nonneg2026-09-01
Finset.exists_le_of_prod_le'Finset.exists_le_of_prod_le2026-09-01
Finset.exists_lt_of_prod_lt'Finset.exists_lt_of_prod_lt2026-09-01
Finset.exists_one_lt_of_prod_one_of_exists_ne_one'Finset.exists_one_lt_of_prod_one_of_exists_ne_one2026-09-01
Finset.one_le_prod'Finset.one_le_prod2026-09-01
Finset.one_le_prod''Finset.one_le_prod2026-09-01
Finset.prod_anti_set_of_le_one'Finset.prod_anti_set_of_le_one2026-09-01
Finset.prod_eq_one_iff_of_le_one'Finset.prod_eq_one_iff_of_le_one2026-09-01
Finset.prod_eq_one_iff_of_one_le'Finset.prod_eq_one_iff_of_one_le2026-09-01
Finset.prod_fiberwise_le_prod_of_one_le_prod_fiber'Finset.prod_fiberwise_le_prod_of_one_le_prod_fiber2026-09-01
Finset.prod_le_one'Finset.prod_le_one2026-09-01
Finset.prod_le_prod'Finset.prod_le_prod2026-09-01
Finset.prod_le_prod_fiberwise_of_prod_fiber_le_one'Finset.prod_le_prod_fiberwise_of_prod_fiber_le_one2026-09-01
Finset.prod_le_prod_of_injOn'Finset.prod_le_prod_of_injOn2026-09-01
Finset.prod_le_prod_of_ne_one'Finset.prod_le_prod_of_ne_one2026-09-01
Finset.prod_le_prod_of_subset'Finset.prod_le_prod_of_subset2026-09-01
Finset.prod_le_prod_of_subset_of_le_one'Finset.prod_le_prod_of_subset_of_le_one2026-09-01
Finset.prod_le_prod_of_subset_of_one_le'Finset.prod_le_prod_of_subset_of_one_le2026-09-01
Finset.prod_le_univ_prod_of_one_le'Finset.prod_le_univ_prod_of_one_le2026-09-01
Finset.prod_lt_prod'Finset.prod_lt_prod2026-09-01
Finset.prod_lt_prod_of_nonempty'Finset.prod_lt_prod_of_nonempty2026-09-01
Finset.prod_lt_prod_of_subset'Finset.prod_lt_prod_of_subset2026-09-01
Finset.prod_mono_set'Finset.prod_mono_set2026-09-01
Finset.prod_mono_set_of_one_le'Finset.prod_mono_set_of_one_le2026-09-01
Finset.single_le_prod'Finset.single_le_prod2026-09-01
Finset.single_lt_prod'Finset.single_lt_prod2026-09-01
Finset.sum_anti_set_of_nonpos'Finset.sum_anti_set_of_nonpos2026-09-01
Finset.sum_le_sum_of_subset_of_nonpos'Finset.sum_le_sum_of_subset_of_nonpos2026-09-01
Finset.sum_nonneg'Finset.sum_nonneg2026-09-01
Fintype.prod_mono'Fintype.prod_mono2026-09-01
Fintype.prod_strictMono'Fintype.prod_strictMono2026-09-01