Skip to content

Commit 7461361

Browse files
committed
style: : avoid flexible simp in MeanValue files
1 parent b15a5c8 commit 7461361

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Mathlib/MeasureTheory/Integral/IntervalIntegral/MeanValue.lean

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ theorem exists_eq_const_mul_intervalIntegral_of_ae_nonneg
121121
_ = f c * ∫ x in s, (1 : ℝ) ∂ν := by
122122
rw [havg]
123123
refold_let s
124-
simp [setAverage_eq]
124+
simp only [setAverage_eq, smul_eq_mul, MeasureTheory.integral_const, MeasurableSet.univ,
125+
measureReal_restrict_apply, univ_inter, mul_one]
125126
rw [measureReal_def]
126127
have hreal0 : (ν s).toReal ≠ 0 := ENNReal.toReal_ne_zero.mpr ⟨hν0, hνfin⟩
127128
field_simp

Mathlib/MeasureTheory/Integral/MeanValue.lean

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ theorem exists_eq_const_mul_setIntegral_of_ae_nonneg
108108
_ = ∫ x in s, f x ∂ν := heq
109109
_ = f c * ∫ x in s, (1 : ℝ) ∂ν := by
110110
rw [h_ave]
111-
simp [setAverage_eq]
111+
simp only [setAverage_eq, smul_eq_mul, integral_const, MeasurableSet.univ,
112+
measureReal_restrict_apply, Set.univ_inter, mul_one]
112113
rw [measureReal_def]
113114
field_simp
114115
_ = _ := by simp [hg1]

0 commit comments

Comments
 (0)