The areas / V03. Sets, finite structures and big operators
Mathlib.Algebra.Order.BigOperators.GroupWithZero.Finset
19 declarations. Mathlib docs · Source
theorem Finset.prod_nonneg E1 #
∀ {ι : Type u_1} {R : Type u_2} [inst : CommMonoidWithZero R] [inst_1 : Preorder R] [ZeroLEOneClass R] [PosMulMono R]
{f : ι → R} {s : Finset ι}, (∀ i ∈ s, 0 ≤ f i) → 0 ≤ ∏ i ∈ s, f i
theorem Finset.prod_le_prod₀ E1 #
∀ {ι : Type u_1} {R : Type u_2} [inst : CommMonoidWithZero R] [inst_1 : Preorder R] [ZeroLEOneClass R] [PosMulMono R]
{f g : ι → R} {s : Finset ι}, (∀ i ∈ s, 0 ≤ f i) → (∀ i ∈ s, f i ≤ g i) → ∏ i ∈ s, f i ≤ ∏ i ∈ s, g i
If all f i, i ∈ s, are nonnegative and each f i is less than or equal to g i, then the
product of f i is less than or equal to the product of g i. See also Finset.prod_le_prod for
the case of an ordered commutative multiplicative monoid.
theorem Monotone.finsetProd E1 #
∀ {ι : Type u_1} {R : Type u_2} [inst : CommMonoidWithZero R] [inst_1 : Preorder R] [ZeroLEOneClass R] [PosMulMono R]
{s : Finset ι} {γ : Type u_3} [inst_4 : Preorder γ] {f : ι → γ → R},
(∀ i ∈ s, Monotone (f i)) → (∀ i ∈ s, ∀ (x : γ), 0 ≤ f i x) → Monotone fun x ↦ ∏ i ∈ s, f i x
A finite product of nonnegative monotone functions is monotone. See also
Monotone.finsetProd' for the case of an ordered commutative multiplicative monoid.
theorem MonotoneOn.finsetProd E1 #
∀ {ι : Type u_1} {R : Type u_2} [inst : CommMonoidWithZero R] [inst_1 : Preorder R] [ZeroLEOneClass R] [PosMulMono R]
{s : Finset ι} {γ : Type u_3} [inst_4 : Preorder γ] {u : Set γ} {f : ι → γ → R},
(∀ i ∈ s, MonotoneOn (f i) u) → (∀ i ∈ s, ∀ x ∈ u, 0 ≤ f i x) → MonotoneOn (fun x ↦ ∏ i ∈ s, f i x) u
A finite product of functions nonnegative and monotone on u is monotone on u. See also
MonotoneOn.finsetProd' for the case of an ordered commutative multiplicative monoid.
theorem Antitone.finsetProd E1 #
∀ {ι : Type u_1} {R : Type u_2} [inst : CommMonoidWithZero R] [inst_1 : Preorder R] [ZeroLEOneClass R] [PosMulMono R]
{s : Finset ι} {γ : Type u_3} [inst_4 : Preorder γ] {f : ι → γ → R},
(∀ i ∈ s, Antitone (f i)) → (∀ i ∈ s, ∀ (x : γ), 0 ≤ f i x) → Antitone fun x ↦ ∏ i ∈ s, f i x
A finite product of nonnegative antitone functions is antitone. See also
Antitone.finsetProd' for the case of an ordered commutative multiplicative monoid.
theorem AntitoneOn.finsetProd E1 #
∀ {ι : Type u_1} {R : Type u_2} [inst : CommMonoidWithZero R] [inst_1 : Preorder R] [ZeroLEOneClass R] [PosMulMono R]
{s : Finset ι} {γ : Type u_3} [inst_4 : Preorder γ] {u : Set γ} {f : ι → γ → R},
(∀ i ∈ s, AntitoneOn (f i) u) → (∀ i ∈ s, ∀ x ∈ u, 0 ≤ f i x) → AntitoneOn (fun x ↦ ∏ i ∈ s, f i x) u
A finite product of functions nonnegative and antitone on u is antitone on u. See also
AntitoneOn.finsetProd' for the case of an ordered commutative multiplicative monoid.
theorem Finset.prod_le_one₀ E1 #
∀ {ι : Type u_1} {R : Type u_2} [inst : CommMonoidWithZero R] [inst_1 : Preorder R] [ZeroLEOneClass R] [PosMulMono R]
{f : ι → R} {s : Finset ι}, (∀ i ∈ s, 0 ≤ f i) → (∀ i ∈ s, f i ≤ 1) → ∏ i ∈ s, f i ≤ 1
If each f i, i ∈ s belongs to [0, 1], then their product is less than or equal to one.
See also Finset.prod_le_one for the case of an ordered commutative multiplicative monoid.
theorem Finset.one_le_prod₀ E1 #
∀ {ι : Type u_1} {R : Type u_2} [inst : CommMonoidWithZero R] [inst_1 : Preorder R] [ZeroLEOneClass R] [PosMulMono R]
{f : ι → R} {s : Finset ι}, (∀ i ∈ s, 1 ≤ f i) → 1 ≤ ∏ i ∈ s, f i
A version of Finset.one_le_prod for PosMulMono in place of MulLeftMono.
theorem Finset.le_prod_max_one E1 #
∀ {ι : Type u_1} {s : Finset ι} {M : Type u_3} [inst : CommMonoidWithZero M] [inst_1 : LinearOrder M] [ZeroLEOneClass M]
[PosMulMono M] {i : ι}, i ∈ s → ∀ (f : ι → M), f i ≤ ∏ i ∈ s, max (f i) 1
theorem Finset.prod_mono_of_subset_of_one_le₀ E1 #
∀ {ι : Type u_1} {R : Type u_2} [inst : CommMonoidWithZero R] [inst_1 : Preorder R] [ZeroLEOneClass R] [PosMulMono R]
{f g : ι → R} {s t : Finset ι},
s ⊆ t → (∀ i ∈ s, 0 ≤ f i) → (∀ i ∈ s, f i ≤ g i) → (∀ i ∈ t, i ∉ s → 1 ≤ g i) → ∏ i ∈ s, f i ≤ ∏ i ∈ t, g i
theorem Finset.prod_mono_of_subset_of_le_one₀ E1 #
∀ {ι : Type u_1} {R : Type u_2} [inst : CommMonoidWithZero R] [inst_1 : Preorder R] [ZeroLEOneClass R] [PosMulMono R]
{f g : ι → R} {s t : Finset ι},
s ⊆ t → (∀ i ∈ t, 0 ≤ g i) → (∀ i ∈ s, g i ≤ f i) → (∀ i ∈ t, i ∉ s → g i ≤ 1) → ∏ i ∈ t, g i ≤ ∏ i ∈ s, f i
theorem Finset.prod_le_prod_of_subset_of_one_le₀ E1 #
∀ {ι : Type u_1} {R : Type u_2} [inst : CommMonoidWithZero R] [inst_1 : Preorder R] [ZeroLEOneClass R] [PosMulMono R]
{f : ι → R} {s t : Finset ι}, s ⊆ t → (∀ i ∈ s, 0 ≤ f i) → (∀ 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} {R : Type u_2} [inst : CommMonoidWithZero R] [inst_1 : Preorder R] [ZeroLEOneClass R] [PosMulMono R]
{f : ι → R} {s t : Finset ι}, s ⊆ t → (∀ i ∈ t, 0 ≤ f i) → (∀ i ∈ t, i ∉ s → f i ≤ 1) → ∏ i ∈ t, f i ≤ ∏ i ∈ s, f i
theorem Finset.prod_mono_set_of_one_le₀ E1 #
∀ {ι : Type u_1} {R : Type u_2} [inst : CommMonoidWithZero R] [inst_1 : Preorder R] [ZeroLEOneClass R] [PosMulMono R]
{f : ι → R}, (∀ (x : ι), 1 ≤ f x) → Monotone fun s ↦ ∏ x ∈ s, f x
theorem Finset.prod_anti_set_of_le_one₀ E1 #
∀ {ι : Type u_1} {R : Type u_2} [inst : CommMonoidWithZero R] [inst_1 : Preorder R] [ZeroLEOneClass R] [PosMulMono R]
{f : ι → R}, (∀ (x : ι), 0 ≤ f x) → (∀ (x : ι), f x ≤ 1) → Antitone fun s ↦ ∏ x ∈ s, f x
theorem Finset.prod_le_prod_of_injOn₀ E1 #
∀ {ι : Type u_1} {R : Type u_2} [inst : CommMonoidWithZero R] [inst_1 : Preorder R] [ZeroLEOneClass R] [PosMulMono R]
{f : ι → R} {α : Type u_3} [inst_4 : DecidableEq α] {g : α → R} {s : Finset ι} {t : Finset α} (e : ι → α),
Set.InjOn e ↑s →
Finset.image e s ⊆ t →
(∀ i ∈ s, f i ≤ g (e i)) →
(∀ i ∈ s, 0 ≤ f i) → (∀ a ∈ t, a ∉ Finset.image e s → 1 ≤ g a) → ∏ i ∈ s, f i ≤ ∏ a ∈ t, g a
theorem Finset.prod_pos E1 #
∀ {ι : Type u_1} {R : Type u_2} [inst : CommMonoidWithZero R] [inst_1 : PartialOrder R] [ZeroLEOneClass R]
[PosMulStrictMono R] [Nontrivial R] {f : ι → R} {s : Finset ι}, (∀ i ∈ s, 0 < f i) → 0 < ∏ i ∈ s, f i
theorem Finset.prod_lt_prod₀ E1 #
∀ {ι : Type u_1} {R : Type u_2} [inst : CommMonoidWithZero R] [inst_1 : PartialOrder R] [ZeroLEOneClass R]
[PosMulStrictMono R] [Nontrivial R] {f g : ι → R} {s : Finset ι},
(∀ i ∈ s, 0 < f i) → (∀ 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} {R : Type u_2} [inst : CommMonoidWithZero R] [inst_1 : PartialOrder R] [ZeroLEOneClass R]
[PosMulStrictMono R] [Nontrivial R] {f g : ι → R} {s : Finset ι},
(∀ i ∈ s, 0 < f i) → (∀ i ∈ s, f i < g i) → s.Nonempty → ∏ i ∈ s, f i < ∏ i ∈ s, g i