Skip to content

Commit a8a0f78

Browse files
committed
feat(Integral/Bochnet/Set): add setintegral_compl₀
1 parent e84ac41 commit a8a0f78

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
@@ -152,9 +152,13 @@ theorem integral_add_compl (hs : MeasurableSet s) (hfi : Integrable f μ) :
152152
∫ x in s, f x ∂μ + ∫ x in sᶜ, f x ∂μ = ∫ x, f x ∂μ :=
153153
integral_add_compl₀ hs.nullMeasurableSet hfi
154154

155-
theorem setIntegral_compl (hs : MeasurableSet s) (hfi : Integrable f μ) :
155+
theorem setIntegral_compl (hs : NullMeasurableSet s μ) (hfi : Integrable f μ) :
156156
∫ x in sᶜ, f x ∂μ = ∫ x, f x ∂μ - ∫ x in s, f x ∂μ := by
157-
rw [← integral_add_compl (μ := μ) hs hfi, add_sub_cancel_left]
157+
rw [← integral_add_compl₀ (μ := μ) hs hfi, add_sub_cancel_left]
158+
159+
theorem setIntegral_compl (hs : MeasurableSet s) (hfi : Integrable f μ) :
160+
∫ x in sᶜ, f x ∂μ = ∫ x, f x ∂μ - ∫ x in s, f x ∂μ :=
161+
setIntegral_compl₀ hs.nullMeasurableSet hfi
158162

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

0 commit comments

Comments
 (0)