Skip to content

Commit a4b3cf9

Browse files
committed
feat(Integral/Bochnet/Set): add setintegral_compl₀
1 parent 721b21c commit a4b3cf9

File tree

1 file changed

+6
-2
lines changed
  • Mathlib/MeasureTheory/Integral/Bochner

1 file changed

+6
-2
lines changed

Mathlib/MeasureTheory/Integral/Bochner/Set.lean

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,13 @@ theorem integral_add_compl (hs : MeasurableSet s) (hfi : Integrable f μ) :
146146
∫ x in s, f x ∂μ + ∫ x in sᶜ, f x ∂μ = ∫ x, f x ∂μ :=
147147
integral_add_compl₀ hs.nullMeasurableSet hfi
148148

149-
theorem setIntegral_compl (hs : MeasurableSet s) (hfi : Integrable f μ) :
149+
theorem setIntegral_compl (hs : NullMeasurableSet s μ) (hfi : Integrable f μ) :
150150
∫ x in sᶜ, f x ∂μ = ∫ x, f x ∂μ - ∫ x in s, f x ∂μ := by
151-
rw [← integral_add_compl (μ := μ) hs hfi, add_sub_cancel_left]
151+
rw [← integral_add_compl₀ (μ := μ) hs hfi, add_sub_cancel_left]
152+
153+
theorem setIntegral_compl (hs : MeasurableSet s) (hfi : Integrable f μ) :
154+
∫ x in sᶜ, f x ∂μ = ∫ x, f x ∂μ - ∫ x in s, f x ∂μ :=
155+
setIntegral_compl₀ hs.nullMeasurableSet hfi
152156

153157
/-- For a function `f` and a measurable set `s`, the integral of `indicator s f`
154158
over the whole space is equal to `∫ x in s, f x ∂μ` defined as `∫ x, f x ∂(μ.restrict s)`. -/

0 commit comments

Comments
 (0)