Skip to content

Commit

Permalink
feat: add lemma CanonicallyOrderedCommMonoid.single_le_prod (#11383)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocfnash committed Mar 15, 2024
1 parent 2a70469 commit b90c18e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Mathlib/Algebra/BigOperators/Order.lean
Expand Up @@ -399,6 +399,16 @@ section CanonicallyOrderedCommMonoid

variable [CanonicallyOrderedCommMonoid M] {f : ι → M} {s t : Finset ι}

/-- In a canonically-ordered monoid, a product bounds each of its terms.
See also `Finset.single_le_prod'`.-/
@[to_additive "In a canonically-ordered additive monoid, a sum bounds each of its terms.
See also `Finset.single_le_sum`."]
lemma _root_.CanonicallyOrderedCommMonoid.single_le_prod {i : ι} (hi : i ∈ s) :
f i ≤ ∏ j in s, f j :=
single_le_prod' (fun _ _ ↦ one_le _) hi

@[to_additive (attr := simp) sum_eq_zero_iff]
theorem prod_eq_one_iff' : ∏ x in s, f x = 1 ↔ ∀ x ∈ s, f x = 1 :=
prod_eq_one_iff_of_one_le' fun x _ ↦ one_le (f x)
Expand Down

0 comments on commit b90c18e

Please sign in to comment.