@@ -1116,19 +1116,19 @@ theorem integral_Ioi_sub_Ioi' (hf : IntegrableOn f (Ioi a) μ) (hg : IntegrableO
11161116 · rw [integral_symm, ← this hg hf hab.le, neg_sub]
11171117 exact integral_Ioi_sub_Ioi hf hab
11181118
1119- theorem integral_Iio_sub_Iio [NoAtoms μ] (hf : IntegrableOn f (Iio b) μ) (hab : a ≤ b) :
1120- ∫ x in Iio b, f x ∂μ - ∫ x in Iio a, f x ∂μ = ∫ x in a.. b, f x ∂μ := by
1121- simp_rw [setIntegral_congr_set Iio_ae_eq_Iic]
1122- have hb : IntegrableOn f (Iic b) μ := by rwa [integrableOn_Iic_iff_integrableOn_Iio]
1123- have ha : IntegrableOn f (Iic a) μ := hb.mono_set (Iic_subset_Iic. 2 hab)
1124- exact integral_Iic_sub_Iic ha hb
1119+ theorem integral_Iio_sub_Iio (hf : IntegrableOn f (Iio b) μ) (hab : a ≤ b) :
1120+ ∫ x in Iio b, f x ∂μ - ∫ x in Iio a, f x ∂μ = ∫ x in Ico a b, f x ∂μ := by
1121+ have ha : IntegrableOn f (Iio a) μ := hf.mono_set (Iio_subset_Iio hab)
1122+ have h : IntegrableOn f (Ico a b) μ := hf.mono_set Ico_subset_Iio_self
1123+ rw [sub_eq_iff_eq_add', ← setIntegral_union ( by grind) measurableSet_Ico ha h,
1124+ Iio_union_Ico_eq_Iio hab]
11251125
11261126theorem integral_Iio_sub_Iio' [NoAtoms μ] (hf : IntegrableOn f (Iio b) μ)
11271127 (hg : IntegrableOn f (Iio a) μ) :
11281128 ∫ x in Iio b, f x ∂μ - ∫ x in Iio a, f x ∂μ = ∫ x in a..b, f x ∂μ := by
11291129 wlog! hab : a ≤ b generalizing a b
11301130 · rw [integral_symm, ← this hg hf hab.le, neg_sub]
1131- exact integral_Iio_sub_Iio hf hab
1131+ rw [ integral_Iio_sub_Iio hf hab, integral_of_le hab, integral_Ico_eq_integral_Ioc]
11321132
11331133theorem integral_Iic_add_Ioi (h_left : IntegrableOn f (Iic b) μ)
11341134 (h_right : IntegrableOn f (Ioi b) μ) :
0 commit comments