Zulip Chat Archive
Stream: new members
Topic: product/sum of positive reals is positive
Horatiu Cheval (Jul 29 2021 at 13:12):
Does such a lemma exist? And the same question for sums. Or is it a wrong approach for working with partial sums?
import data.real.basic
open_locale big_operators
example (x : ℕ → ℝ) (n : ℕ) (h : ∀ i, 0 ≤ x i) : 0 ≤ ∏ i : finset.range n, x i :=
sorry
Eric Rodriguez (Jul 29 2021 at 13:22):
Eric Rodriguez (Jul 29 2021 at 13:22):
(gptf
found that for me, but the name seems pretty guessable)
Eric Rodriguez (Jul 29 2021 at 13:23):
finset.prod_nonneg (λ i _, h i)
Horatiu Cheval (Jul 29 2021 at 13:30):
Thanks!
Last updated: Dec 20 2023 at 11:08 UTC