Skip to content

Commit f5d2189

Browse files
committed
feat(MeasureTheory/Measure/Lebesgue/Basic): add volume theorems for uIcc, uIoo, and uIoc
1 parent e0d647d commit f5d2189

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Mathlib/MeasureTheory/Measure/Lebesgue/Basic.lean

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ theorem volume_real_Ico_of_le {a b : ℝ} (hab : a ≤ b) : volume.real (Ico a b
8888
@[simp]
8989
theorem volume_Icc {a b : ℝ} : volume (Icc a b) = ofReal (b - a) := by simp [volume_val]
9090

91+
@[simp]
92+
theorem volume_uIcc {a b : ℝ} : volume (uIcc a b) = ofReal |b - a| := by
93+
simp [uIcc, volume_Icc, max_sub_min_eq_abs]
94+
9195
@[simp]
9296
theorem volume_real_Icc {a b : ℝ} : volume.real (Icc a b) = max (b - a) 0 := by
9397
simp [measureReal_def, ENNReal.toReal_ofReal']
@@ -98,6 +102,10 @@ theorem volume_real_Icc_of_le {a b : ℝ} (hab : a ≤ b) : volume.real (Icc a b
98102
@[simp]
99103
theorem volume_Ioo {a b : ℝ} : volume (Ioo a b) = ofReal (b - a) := by simp [volume_val]
100104

105+
@[simp]
106+
theorem volume_uIoo {a b : ℝ} : volume (uIoo a b) = ofReal |b - a| := by
107+
simp [uIoo, volume_Ioo, max_sub_min_eq_abs]
108+
101109
@[simp]
102110
theorem volume_real_Ioo {a b : ℝ} : volume.real (Ioo a b) = max (b - a) 0 := by
103111
simp [measureReal_def, ENNReal.toReal_ofReal']
@@ -108,6 +116,10 @@ theorem volume_real_Ioo_of_le {a b : ℝ} (hab : a ≤ b) : volume.real (Ioo a b
108116
@[simp]
109117
theorem volume_Ioc {a b : ℝ} : volume (Ioc a b) = ofReal (b - a) := by simp [volume_val]
110118

119+
@[simp]
120+
theorem volume_uIoc {a b : ℝ} : volume (uIoc a b) = ofReal |b - a| := by
121+
simp [uIoc, volume_Ioc, max_sub_min_eq_abs]
122+
111123
@[simp]
112124
theorem volume_real_Ioc {a b : ℝ} : volume.real (Ioc a b) = max (b - a) 0 := by
113125
simp [measureReal_def, ENNReal.toReal_ofReal']

0 commit comments

Comments
 (0)