Skip to content

Commit 3a429d2

Browse files
committed
chore(MeasureTheory): remove some unnecessary @[measurability] attributes (leanprover-community#38218)
1 parent 89acdbc commit 3a429d2

6 files changed

Lines changed: 6 additions & 14 deletions

File tree

Mathlib/MeasureTheory/MeasurableSpace/Basic.lean

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ lemma Measurable.sup_of_right {mα mα' : MeasurableSpace α} {_ : MeasurableSpa
212212
theorem measurable_id'' {m mα : MeasurableSpace α} (hm : m ≤ mα) : @Measurable α α mα m id :=
213213
measurable_id.mono le_rfl hm
214214

215-
@[measurability]
216215
theorem measurable_from_top [MeasurableSpace β] {f : α → β} : Measurable[⊤] f := fun _ _ => trivial
217216

218217
theorem measurable_generateFrom [MeasurableSpace α] {s : Set (Set β)} {f : α → β}
@@ -232,7 +231,7 @@ section TypeclassMeasurableSpace
232231

233232
variable [MeasurableSpace α] [MeasurableSpace β]
234233

235-
@[nontriviality, measurability]
234+
@[nontriviality]
236235
theorem Subsingleton.measurable [Subsingleton α] : Measurable f := fun _ _ =>
237236
@Subsingleton.measurableSet α _ _ _
238237

Mathlib/MeasureTheory/MeasurableSpace/Constructions.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ theorem ENat.measurable_iff {α : Type*} [MeasurableSpace α] {f : α → ℕ∞
5454
exact .compl <| .iUnion h
5555
| coe n => exact h n
5656

57-
@[measurability]
5857
theorem measurable_unit [MeasurableSpace α] (f : Unit → α) : Measurable f :=
5958
measurable_from_top
6059

@@ -78,7 +77,6 @@ section Nat
7877

7978
variable {mα : MeasurableSpace α}
8079

81-
@[measurability]
8280
theorem measurable_from_nat {f : ℕ → α} : Measurable f :=
8381
measurable_from_top
8482

Mathlib/MeasureTheory/Measure/AEMeasurable.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ variable {ι α β γ δ R : Type*} {m0 : MeasurableSpace α} [MeasurableSpace
2525

2626
section
2727

28-
@[nontriviality, measurability]
28+
@[nontriviality]
2929
theorem Subsingleton.aemeasurable [Subsingleton α] : AEMeasurable f μ :=
3030
Subsingleton.measurable.aemeasurable
3131

Mathlib/MeasureTheory/Measure/MeasureSpaceDef.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ theorem Measurable.aemeasurable (h : Measurable f) : AEMeasurable f μ :=
424424

425425
namespace AEMeasurable
426426

427+
@[fun_prop]
427428
lemma of_discrete [DiscreteMeasurableSpace α] : AEMeasurable f μ :=
428429
Measurable.of_discrete.aemeasurable
429430

Mathlib/MeasureTheory/Measure/Prod.lean

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ theorem Measurable.map_prodMk_right {μ : Measure α} [SFinite μ] :
120120

121121
/-- The Lebesgue integral is measurable. This shows that the integrand of (the right-hand-side of)
122122
Tonelli's theorem is measurable. -/
123-
@[fun_prop, measurability]
124123
theorem Measurable.lintegral_prod_right' [SFinite ν] :
125124
∀ {f : α × β → ℝ≥0∞}, Measurable f → Measurable fun x => ∫⁻ y, f (x, y) ∂ν := by
126125
have m := @measurable_prodMk_left
@@ -142,22 +141,20 @@ theorem Measurable.lintegral_prod_right' [SFinite ν] :
142141
/-- The Lebesgue integral is measurable. This shows that the integrand of (the right-hand-side of)
143142
Tonelli's theorem is measurable.
144143
This version has the argument `f` in curried form. -/
145-
@[fun_prop, measurability]
144+
@[fun_prop]
146145
theorem Measurable.lintegral_prod_right [SFinite ν] {f : α → β → ℝ≥0∞}
147146
(hf : Measurable (uncurry f)) : Measurable fun x => ∫⁻ y, f x y ∂ν :=
148147
hf.lintegral_prod_right'
149148

150149
/-- The Lebesgue integral is measurable. This shows that the integrand of (the right-hand-side of)
151150
the symmetric version of Tonelli's theorem is measurable. -/
152-
@[fun_prop, measurability]
153151
theorem Measurable.lintegral_prod_left' [SFinite μ] {f : α × β → ℝ≥0∞} (hf : Measurable f) :
154152
Measurable fun y => ∫⁻ x, f (x, y) ∂μ :=
155153
(measurable_swap_iff.mpr hf).lintegral_prod_right'
156154

157155
/-- The Lebesgue integral is measurable. This shows that the integrand of (the right-hand-side of)
158156
the symmetric version of Tonelli's theorem is measurable.
159157
This version has the argument `f` in curried form. -/
160-
@[fun_prop, measurability]
161158
theorem Measurable.lintegral_prod_left [SFinite μ] {f : α → β → ℝ≥0∞}
162159
(hf : Measurable (uncurry f)) : Measurable fun y => ∫⁻ x, f x y ∂μ :=
163160
hf.lintegral_prod_left'
@@ -963,24 +960,22 @@ theorem AEMeasurable.comp_snd {f : β → γ} (hf : AEMeasurable f ν) :
963960
AEMeasurable (fun z : α × β => f z.2) (μ.prod ν) :=
964961
hf.comp_quasiMeasurePreserving quasiMeasurePreserving_snd
965962

966-
@[fun_prop, measurability]
967963
theorem AEMeasurable.lintegral_prod_right' [SFinite ν] {f : α × β → ℝ≥0∞}
968964
(hf : AEMeasurable f (μ.prod ν)) : AEMeasurable (fun x ↦ ∫⁻ y, f (x, y) ∂ν) μ := by
969965
obtain ⟨g, hg, hfg⟩ := hf
970966
refine ⟨fun x ↦ ∫⁻ y, g (x, y) ∂ν, by fun_prop, ?_⟩
971967
exact (ae_ae_of_ae_prod hfg).mono fun x hfg' ↦ lintegral_congr_ae hfg'
972968

973-
@[fun_prop, measurability]
969+
@[fun_prop]
974970
theorem AEMeasurable.lintegral_prod_right [SFinite ν] {f : α → β → ℝ≥0∞}
975971
(hf : AEMeasurable f.uncurry (μ.prod ν)) : AEMeasurable (fun x ↦ ∫⁻ y, f x y ∂ν) μ :=
976972
hf.lintegral_prod_right'
977973

978-
@[fun_prop, measurability]
979974
theorem AEMeasurable.lintegral_prod_left' [SFinite ν] [SFinite μ] {f : α × β → ℝ≥0∞}
980975
(hf : AEMeasurable f (μ.prod ν)) : AEMeasurable (fun y ↦ ∫⁻ x, f (x, y) ∂μ) ν :=
981976
hf.prod_swap.lintegral_prod_right'
982977

983-
@[fun_prop, measurability]
978+
@[fun_prop]
984979
theorem AEMeasurable.lintegral_prod_left [SFinite ν] [SFinite μ] {f : α → β → ℝ≥0∞}
985980
(hf : AEMeasurable f.uncurry (μ.prod ν)) : AEMeasurable (fun y ↦ ∫⁻ x, f x y ∂μ) ν :=
986981
hf.lintegral_prod_left'

Mathlib/Probability/Density.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ theorem hasPDF_iff_of_aemeasurable (hX : AEMeasurable X ℙ) :
8888
simp only [hX, true_and]
8989

9090
variable (X ℙ μ) in
91-
@[measurability]
9291
theorem HasPDF.aemeasurable [HasPDF X ℙ μ] : AEMeasurable X ℙ := HasPDF.aemeasurable' μ
9392

9493
instance HasPDF.haveLebesgueDecomposition [HasPDF X ℙ μ] : (map X ℙ).HaveLebesgueDecomposition μ :=

0 commit comments

Comments
 (0)