@@ -42,7 +42,7 @@ lemma distibution_top (f : α → ε) (μ : Measure α) : distribution f ∞ μ
4242lemma distribution_mono_right (h : t ≤ s) : distribution f s μ ≤ distribution f t μ :=
4343 measure_mono fun _ a ↦ lt_of_le_of_lt h a
4444
45- lemma distribution_mono_right' : ( Antitone (fun t ↦ distribution f t μ) ) :=
45+ lemma distribution_mono_right' : Antitone (fun t ↦ distribution f t μ) :=
4646 fun _ _ h ↦ distribution_mono_right h
4747
4848@ [measurability, fun_prop]
@@ -57,9 +57,8 @@ lemma distribution_measurable {g : α' → ℝ≥0∞} (hg : Measurable g) :
5757lemma distribution_toReal_le {f : α → ℝ≥0 ∞} :
5858 distribution (ENNReal.toReal ∘ f) t μ ≤ distribution f t μ := by
5959 simp_rw [distribution]
60- apply measure_mono
61- simp_rw [comp_apply, enorm_eq_self, setOf_subset_setOf]
62- exact fun x hx ↦ hx.trans_le enorm_toReal_le
60+ gcongr with x
61+ simp [comp_apply, enorm_eq_self]
6362
6463lemma distribution_toReal_eq {f : α → ℝ≥0 ∞} (hf : ∀ᵐ x ∂μ, f x ≠ ∞) :
6564 distribution (ENNReal.toReal ∘ f) t μ = distribution f t μ := by
@@ -75,9 +74,7 @@ lemma distribution_add_le_of_enorm {A : ℝ≥0∞}
7574 ({x | t < ‖g₁ x‖ₑ} ∪ {x | s < ‖g₂ x‖ₑ})) = 0 := by
7675 apply measure_mono_null ?_ h
7776 intro x
78- simp only [mem_diff, mem_setOf_eq, mem_union, not_or, not_lt, mem_compl_iff, not_le, and_imp]
79- refine fun h₁ h₂ h₃ ↦ lt_of_le_of_lt ?_ h₁
80- gcongr
77+ simpa using fun h₁ h₂ h₃ ↦ lt_of_le_of_lt (by gcongr) h₁
8178 calc
8279 μ {x | A * (t + s) < ‖f x‖ₑ}
8380 ≤ μ ({x | t < ‖g₁ x‖ₑ} ∪ {x | s < ‖g₂ x‖ₑ}) := measure_mono_ae' h₁
@@ -106,6 +103,7 @@ lemma tendsto_measure_iUnion_distribution (t₀ : ℝ≥0∞) :
106103 _ ≤ t₀ + (↑a)⁻¹ := by gcongr
107104 _ < _ := h₁
108105
106+ -- TODO: better lemma name!
109107lemma select_neighborhood_distribution (t₀ : ℝ≥0 ∞) (l : ℝ≥0 ∞)
110108 (hu : l < distribution f t₀ μ) :
111109 ∃ n : ℕ, l < distribution f (t₀ + (↑n)⁻¹) μ := by
@@ -152,8 +150,8 @@ lemma continuousWithinAt_distribution (t₀ : ℝ≥0∞) :
152150 exact ⟨zero_le 0 , zero_le ε⟩
153151 -- Case: 0 < distribution f t₀ μ
154152 · obtain ⟨n, wn⟩ :=
155- select_neighborhood_distribution t₀ _ (ENNReal.sub_lt_self db_not_top.ne_top
156- (ne_of_lt db_not_zero).symm (ne_of_lt ε_gt_0).symm )
153+ select_neighborhood_distribution t₀ _
154+ (ENNReal.sub_lt_self db_not_top.ne_top db_not_zero.ne' ε_gt_0.ne' )
157155 use Iio (t₀ + (↑n)⁻¹)
158156 constructor
159157 · exact Iio_mem_nhds (lt_add_right t₀nottop.ne_top (ENNReal.inv_ne_zero.mpr (by finiteness)))
0 commit comments