Skip to content

Commit ba15539

Browse files
kebekusBergschaf
authored andcommitted
chore(Analysis/SpecialFunctions/Log/PosLog): fix non-terminal simp (leanprover-community#39564)
Fix a non-terminal simp.
1 parent a3edb37 commit ba15539

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Mathlib/Analysis/SpecialFunctions/Log/PosLog.lean

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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
163161
just two summands. -/
164162
theorem 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]

0 commit comments

Comments
 (0)