Skip to content

Commit 80b34cf

Browse files
sgouezelfelixpernegger
authored andcommitted
chore: fix duplicated lemma (leanprover-community#40870)
Reported on Zulip at [#mathlib4 > Redundant copy of &leanprover-community#96;intervalIntegrable_const&leanprover-community#96; @ 💬](https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/Redundant.20copy.20of.20.60intervalIntegrable_const.60/near/605394633) Co-authored-by: sgouezel <sebastien.gouezel@univ-rennes1.fr>
1 parent 079bc2e commit 80b34cf

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

  • Mathlib

Mathlib/Analysis/SpecialFunctions/Integrability/Basic.lean

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,6 @@ theorem integrableOn_Ioo_cpow_iff {s : ℂ} {t : ℝ} (ht : 0 < t) :
187187
theorem intervalIntegrable_id : IntervalIntegrable (fun x => x) μ a b :=
188188
continuous_id.intervalIntegrable a b
189189

190-
theorem intervalIntegrable_const : IntervalIntegrable (fun _ => c) μ a b :=
191-
continuous_const.intervalIntegrable a b
192-
193190
theorem intervalIntegrable_one_div (h : ∀ x : ℝ, x ∈ [[a, b]] → f x ≠ 0)
194191
(hf : ContinuousOn f [[a, b]]) : IntervalIntegrable (fun x => 1 / f x) μ a b :=
195192
(continuousOn_const.div hf h).intervalIntegrable

Mathlib/MeasureTheory/Integral/IntervalIntegral/Basic.lean

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,9 @@ theorem intervalIntegrable_const_iff {c : ε} (hc : ‖c‖ₑ ≠ ⊤ := by fin
171171
simp [intervalIntegrable_iff, integrableOn_const_iff hc]
172172

173173
@[simp]
174-
theorem intervalIntegrable_const [IsLocallyFiniteMeasure μ]
175-
{c : E} (hc : ‖c‖ₑ ≠ ⊤ := by finiteness) :
174+
theorem intervalIntegrable_const [IsLocallyFiniteMeasure μ] {c : E} :
176175
IntervalIntegrable (fun _ => c) μ a b :=
177-
intervalIntegrable_const_iff hc |>.2 <| Or.inr measure_Ioc_lt_top
176+
intervalIntegrable_const_iff (by simp) |>.2 <| Or.inr measure_Ioc_lt_top
178177

179178
protected theorem IntervalIntegrable.zero : IntervalIntegrable (0 : ℝ → E) μ a b :=
180179
(intervalIntegrable_const_iff <| by finiteness).mpr <| .inl rfl

0 commit comments

Comments
 (0)