Skip to content

Commit 4fd8c9c

Browse files
sgouezelfgdorais
authored andcommitted
feat: missing lemma on finprod, modelled on the one on Finset.prod (#6070)
1 parent aaaa578 commit 4fd8c9c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Mathlib/Algebra/BigOperators/Finprod.lean

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,14 @@ theorem finprod_eq_one_of_forall_eq_one {f : α → M} (h : ∀ x, f x = 1) :
590590
#align finprod_eq_one_of_forall_eq_one finprod_eq_one_of_forall_eq_one
591591
#align finsum_eq_zero_of_forall_eq_zero finsum_eq_zero_of_forall_eq_zero
592592

593+
@[to_additive finsum_pos']
594+
theorem one_lt_finprod' {M : Type _} [OrderedCancelCommMonoid M] {f : ι → M}
595+
(h : ∀ i, 1 ≤ f i) (h' : ∃ i, 1 < f i) (hf : (mulSupport f).Finite) : 1 < ∏ᶠ i, f i := by
596+
rcases h' with ⟨i, hi⟩
597+
rw [finprod_eq_prod _ hf]
598+
refine Finset.one_lt_prod' (fun i _ ↦ h i) ⟨i, ?_, hi⟩
599+
simpa only [Finite.mem_toFinset, mem_mulSupport] using ne_of_gt hi
600+
593601
/-!
594602
### Distributivity w.r.t. addition, subtraction, and (scalar) multiplication
595603
-/

0 commit comments

Comments
 (0)