Skip to content

Commit aa7b3ad

Browse files
committed
refactor(MeasureTheory): golf Mathlib/MeasureTheory/VectorMeasure/Decomposition/Lebesgue (leanprover-community#39180)
- refactors `Mathlib/MeasureTheory/VectorMeasure/Decomposition/Lebesgue` by simplifying `singularPart_mutuallySingular` and `singularPart_neg` Extracted from leanprover-community#38104 [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/from-referrer/)
1 parent 7bb73be commit aa7b3ad

1 file changed

Lines changed: 3 additions & 24 deletions

File tree

Mathlib/MeasureTheory/VectorMeasure/Decomposition/Lebesgue.lean

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -124,19 +124,8 @@ section
124124

125125
theorem singularPart_mutuallySingular (s : SignedMeasure α) (μ : Measure α) :
126126
s.toJordanDecomposition.posPart.singularPart μ ⟂ₘ
127-
s.toJordanDecomposition.negPart.singularPart μ := by
128-
by_cases hl : s.HaveLebesgueDecomposition μ
129-
· obtain ⟨i, hi, hpos, hneg⟩ := s.toJordanDecomposition.mutuallySingular
130-
rw [s.toJordanDecomposition.posPart.haveLebesgueDecomposition_add μ] at hpos
131-
rw [s.toJordanDecomposition.negPart.haveLebesgueDecomposition_add μ] at hneg
132-
rw [add_apply, add_eq_zero] at hpos hneg
133-
exact ⟨i, hi, hpos.1, hneg.1
134-
· rw [not_haveLebesgueDecomposition_iff] at hl
135-
rcases hl with hp | hn
136-
· rw [Measure.singularPart, dif_neg hp]
137-
exact MutuallySingular.zero_left
138-
· rw [Measure.singularPart, Measure.singularPart, dif_neg hn]
139-
exact MutuallySingular.zero_right
127+
s.toJordanDecomposition.negPart.singularPart μ :=
128+
(s.toJordanDecomposition.mutuallySingular.singularPart μ).mono le_rfl (singularPart_le _ _)
140129

141130
theorem singularPart_totalVariation (s : SignedMeasure α) (μ : Measure α) :
142131
(s.singularPart μ).totalVariation =
@@ -317,17 +306,7 @@ theorem singularPart_zero (μ : Measure α) : (0 : SignedMeasure α).singularPar
317306

318307
theorem singularPart_neg (s : SignedMeasure α) (μ : Measure α) :
319308
(-s).singularPart μ = -s.singularPart μ := by
320-
have h₁ :
321-
((-s).toJordanDecomposition.posPart.singularPart μ).toSignedMeasure =
322-
(s.toJordanDecomposition.negPart.singularPart μ).toSignedMeasure := by
323-
refine toSignedMeasure_congr ?_
324-
rw [toJordanDecomposition_neg, JordanDecomposition.neg_posPart]
325-
have h₂ :
326-
((-s).toJordanDecomposition.negPart.singularPart μ).toSignedMeasure =
327-
(s.toJordanDecomposition.posPart.singularPart μ).toSignedMeasure := by
328-
refine toSignedMeasure_congr ?_
329-
rw [toJordanDecomposition_neg, JordanDecomposition.neg_negPart]
330-
rw [singularPart, singularPart, neg_sub, h₁, h₂]
309+
simp [singularPart, toJordanDecomposition_neg]
331310

332311
theorem singularPart_smul_nnreal (s : SignedMeasure α) (μ : Measure α) (r : ℝ≥0) :
333312
(r • s).singularPart μ = r • s.singularPart μ := by

0 commit comments

Comments
 (0)