File tree Expand file tree Collapse file tree
Mathlib/Analysis/SpecialFunctions/Log Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -157,8 +157,6 @@ theorem posLog_prod {α : Type*} (s : Finset α) (f : α → ℝ) :
157157## Estimates for Sums
158158-/
159159
160- -- TODO: non-terminal simp followed by positivity
161- set_option linter.flexible false in
162160/-- Estimate for `log⁺` of a sum. See `Real.posLog_add` for a variant involving
163161just two summands. -/
164162theorem posLog_sum {α : Type *} (s : Finset α) (f : α → ℝ) :
@@ -176,7 +174,7 @@ theorem posLog_sum {α : Type*} (s : Finset α) (f : α → ℝ) :
176174 apply monotoneOn_posLog (by simp) (by simp [Finset.sum_nonneg])
177175 simp [Finset.abs_sum_le_sum_abs]
178176 _ ≤ log⁺ (∑ t ∈ s, |f t_max|) := by
179- apply monotoneOn_posLog (by simp [Finset.sum_nonneg]) (by simp; positivity )
177+ apply monotoneOn_posLog (by simp [Finset.sum_nonneg]) (by simp [mul_nonneg] )
180178 apply Finset.sum_le_sum (fun i ih ↦ ht_max.2 i ih)
181179 _ = log⁺ (s.card * |f t_max|) := by
182180 simp [Finset.sum_const]
You can’t perform that action at this time.
0 commit comments