Skip to main content
AlexKontorovich/PrimeNumberTheoremAnd
Source indexedlemma · leanprover/lean4:v4.32.0

IntervalIntegral.integral_eq_integral_of_support_subset_Icc

PrimeNumberTheoremAnd.MellinCalculus · PrimeNumberTheoremAnd/MellinCalculus.lean:124 to 139

Mathematical statement

Exact Lean statement

lemma IntervalIntegral.integral_eq_integral_of_support_subset_Icc {a b : ℝ} {μ : Measure ℝ}
    [NullSingletonClass μ] {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E]
    {f : ℝ → E} (h : f.support ⊆ Icc a b) :
    ∫ x in a..b, f x ∂μ = ∫ x, f x ∂μ

Complete declaration

Lean source

Canonical source
Full Lean sourceLean 4
lemma IntervalIntegral.integral_eq_integral_of_support_subset_Icc {a b : } {μ : Measure }    [NullSingletonClass μ] {E : Type*} [NormedAddCommGroup E] [NormedSpace  E] [CompleteSpace E]    {f :   E} (h : f.support  Icc a b) :    ∫ x in a..b, f x ∂μ = ∫ x, f x ∂μ := by  rcases le_total a b with hab | hab  · rw [intervalIntegral.integral_of_le hab,  integral_Icc_eq_integral_Ioc,     integral_indicator measurableSet_Icc, indicator_eq_self.2 h]  · by_cases hab2 : b = a    · rw [hab2] at h       simp only [intervalIntegral.integral_same]      simp only [Icc_self] at h      have : ∫ (x : ), f x ∂μ = ∫ (x : ) in {a}, f x ∂μ := by        rw [  integral_indicator (by simp), indicator_eq_self.2 h]      rw [this, integral_singleton]; simp [Measure.real]    · rw [Icc_eq_empty_iff.mpr <| by exact fun x  hab2 <| le_antisymm hab x, subset_empty_iff,          Function.support_eq_empty_iff] at h; simp [h]