Skip to content

Commit 7bb73be

Browse files
committed
refactor(MeasureTheory): golf Mathlib/MeasureTheory/Measure/Sub (leanprover-community#39179)
- refactors `Mathlib/MeasureTheory/Measure/Sub` by shortening `sub_le_iff_le_add_of_le` Extracted from leanprover-community#38104 [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/from-referrer/)
1 parent a8b2c7e commit 7bb73be

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

Mathlib/MeasureTheory/Measure/Sub.lean

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,7 @@ instance isFiniteMeasure_sub [IsFiniteMeasure μ] : IsFiniteMeasure (μ - ν) :=
149149
hypothesis `ν ≤ μ`. -/
150150
lemma sub_le_iff_le_add_of_le [IsFiniteMeasure ν] (h_le : ν ≤ μ) : μ - ν ≤ ξ ↔ μ ≤ ξ + ν := by
151151
refine ⟨fun h ↦ ?_, Measure.sub_le_of_le_add⟩
152-
rw [Measure.le_iff] at h ⊢
153-
intro s hs
154-
specialize h s hs
155-
simp only [Measure.coe_add, Pi.add_apply]
156-
rwa [Measure.sub_apply hs h_le, tsub_le_iff_right] at h
152+
simpa [sub_add_cancel_of_le h_le] using add_le_add_left h ν
157153

158154
end Measure
159155

0 commit comments

Comments
 (0)