Skip to content

Commit 79df738

Browse files
feat (MeasureTheory): Measure.add_sub_cancel (#15468)
Add `Measure.add_sub_cancel`.
1 parent 64580bf commit 79df738

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Mathlib/MeasureTheory/Function/Jacobian.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ theorem _root_.ApproximatesLinearOn.norm_fderiv_sub_le {A : E →L[ℝ] E} {δ :
505505
exact ⟨a, az, by simp only [ha, add_neg_cancel_left]⟩
506506
have norm_a : ‖a‖ ≤ ‖z‖ + ε :=
507507
calc
508-
‖a‖ = ‖z + (a - z)‖ := by simp only [add_sub_cancel]
508+
‖a‖ = ‖z + (a - z)‖ := by simp only [_root_.add_sub_cancel]
509509
_ ≤ ‖z‖ + ‖a - z‖ := norm_add_le _ _
510510
_ ≤ ‖z‖ + ε := add_le_add_left (mem_closedBall_iff_norm.1 az) _
511511
-- use the approximation properties to control `(f' x - A) a`, and then `(f' x - A) z` as `z` is

Mathlib/MeasureTheory/Measure/Sub.lean

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ theorem sub_add_cancel_of_le [IsFiniteMeasure ν] (h₁ : ν ≤ μ) : μ - ν +
9090
ext1 s h_s_meas
9191
rw [add_apply, sub_apply h_s_meas h₁, tsub_add_cancel_of_le (h₁ s)]
9292

93+
@[simp]
94+
lemma add_sub_cancel [IsFiniteMeasure ν] : μ + ν - ν = μ := by
95+
ext1 s hs
96+
rw [sub_apply hs (Measure.le_add_left (le_refl _)), add_apply,
97+
ENNReal.add_sub_cancel_right (measure_ne_top ν s)]
98+
9399
theorem restrict_sub_eq_restrict_sub_restrict (h_meas_s : MeasurableSet s) :
94100
(μ - ν).restrict s = μ.restrict s - ν.restrict s := by
95101
repeat rw [sub_def]

0 commit comments

Comments
 (0)