Results about big operators with values in an ordered algebraic structure. #
Mostly monotonicity results for the ∏
and ∑
operations.
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 in s, g i) ≤ ∑ i in 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 in s, g x) ≤ ∏ x in s, f (g x)
.
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 in s, g i) ≤ ∑ i in 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 in s, g i) ≤ ∏ i in 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 in s, g x) ≤ ∑ x in s, f (g x)
.
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 in s, g i) ≤ ∏ i in 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 in s, g i) ≤ ∑ i in 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 in s, g i) ≤ ∏ i in s, f (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 in s, f i ≤ ∑ i in 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 in s, f i ≤ ∏ i in 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 s.sum f ≤ s.sum g
.
This is a variant (beta-reduced) version of the standard lemma Finset.sum_le_sum
, convenient
for the gcongr
tactic.
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 s.prod f ≤ s.prod g
.
This is a variant (beta-reduced) version of the standard lemma Finset.prod_le_prod'
, convenient
for the gcongr
tactic.
If every element belongs to at most n
Finsets, then the sum of their sizes is at most n
times how many they are.
If every element belongs to at most n
Finsets, then the sum of their sizes is at most n
times how many they are.
If every element belongs to at least n
Finsets, then the sum of their sizes is at least n
times how many they are.
If every element belongs to at least n
Finsets, then the sum of their sizes is at least n
times how many they are.
If every element belongs to exactly n
Finsets, then the sum of their sizes is n
times how
many they are.
If every element belongs to exactly n
Finsets, then the sum of their sizes is n
times how
many they are.
In a canonically-ordered additive monoid, a sum bounds each of its terms.
See also Finset.single_le_sum
.
In a canonically-ordered monoid, a product bounds each of its terms.
See also Finset.single_le_prod'
.
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
.
This is a variant (beta-reduced) version of the standard lemma Finset.sum_lt_sum_of_nonempty
,
convenient for the gcongr
tactic.
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
.
This is a variant (beta-reduced) version of the standard lemma Finset.prod_lt_prod_of_nonempty'
,
convenient for the gcongr
tactic.
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.
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
.
This is a variant (beta-reduced) version of the standard lemma Finset.prod_le_prod
, convenient
for the gcongr
tactic.
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.
If g, h ≤ f
and g i + h i ≤ f i
, then the product of f
over s
is at least the
sum of the products of g
and h
. This is the version for OrderedCommSemiring
.
Cauchy-Schwarz inequality for finsets.
Note that the name is to match CanonicallyOrderedCommSemiring.mul_pos
.
If g, h ≤ f
and g i + h i ≤ f i
, then the product of f
over s
is at least the
sum of the products of g
and h
. This is the version for CanonicallyOrderedCommSemiring
.
Equations
- ⋯ = ⋯
Instances For
Alias of IsAbsoluteValue.abv_sum
.
The positivity
extension which proves that ∑ i in s, f i
is nonnegative if f
is, and
positive if each f i
is and s
is nonempty.
TODO: The following example does not work
example (s : Finset ℕ) (f : ℕ → ℤ) (hf : ∀ n, 0 ≤ f n) : 0 ≤ s.sum f := by positivity
because compareHyp
can't look for assumptions behind binders.