Skip to content

Commit 1aaeb22

Browse files
committed
feat(MeasureTheory/Integral/IntervalIntegral/Basic): add integral_Ioi_sub_Ioi, ...Ioi', ...Iio, ...Iio'
1 parent 85578c0 commit 1aaeb22

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

  • Mathlib/MeasureTheory/Integral/IntervalIntegral

Mathlib/MeasureTheory/Integral/IntervalIntegral/Basic.lean

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,6 +1106,30 @@ theorem integral_interval_add_Ioi' (ha : IntervalIntegrable f μ a b)
11061106
((intervalIntegrable_iff_integrableOn_Ioc_of_le h).1 ha) hb
11071107
· exact hb.mono_set <| Ioi_subset_Ioi h.le
11081108

1109+
theorem integral_Ioi_sub_Ioi (hf : IntegrableOn f (Ioi a) μ) (hab : a ≤ b) :
1110+
∫ x in Ioi a, f x ∂μ - ∫ x in Ioi b, f x ∂μ = ∫ x in a..b, f x ∂μ :=
1111+
sub_eq_of_eq_add (integral_interval_add_Ioi hf (hf.mono_set (Ioi_subset_Ioi hab))).symm
1112+
1113+
theorem integral_Ioi_sub_Ioi' (hf : IntegrableOn f (Ioi a) μ) (hg : IntegrableOn f (Ioi b) μ) :
1114+
∫ x in Ioi a, f x ∂μ - ∫ x in Ioi b, f x ∂μ = ∫ x in a..b, f x ∂μ := by
1115+
wlog! hab : a ≤ b generalizing a b
1116+
· rw [integral_symm, ← this hg hf hab.le, neg_sub]
1117+
exact integral_Ioi_sub_Ioi hf hab
1118+
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
1125+
1126+
theorem integral_Iio_sub_Iio' [NoAtoms μ] (hf : IntegrableOn f (Iio b) μ)
1127+
(hg : IntegrableOn f (Iio a) μ) :
1128+
∫ x in Iio b, f x ∂μ - ∫ x in Iio a, f x ∂μ = ∫ x in a..b, f x ∂μ := by
1129+
wlog! hab : a ≤ b generalizing a b
1130+
· rw [integral_symm, ← this hg hf hab.le, neg_sub]
1131+
exact integral_Iio_sub_Iio hf hab
1132+
11091133
theorem integral_Iic_add_Ioi (h_left : IntegrableOn f (Iic b) μ)
11101134
(h_right : IntegrableOn f (Ioi b) μ) :
11111135
(∫ x in Iic b, f x ∂μ) + (∫ x in Ioi b, f x ∂μ) = ∫ (x : ℝ), f x ∂μ := by

0 commit comments

Comments
 (0)