Skip to content

Commit f58e0a8

Browse files
committed
style(Analysis/SpecialFunctions): golf and fix authorship
1 parent c85e85f commit f58e0a8

2 files changed

Lines changed: 8 additions & 21 deletions

File tree

Mathlib/Analysis/SpecialFunctions/FrullaniIntegral.lean

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,7 @@ lemma norm_integral_inv_smul_sub_le (hf : LocallyIntegrableOn f (Ioi 0)) (ha : 0
9393
exact mul_le_mul_of_nonneg_left (h x hx) (inv_nonneg.2 hx_pos.le)
9494
· exact hint_inv
9595
_ = δ * |log (b / a)| := by
96-
have heq : (fun x : ℝ ↦ x⁻¹ * δ) = fun x ↦ δ * x⁻¹ := by
97-
funext x
98-
ring
99-
rw [heq, intervalIntegral.integral_const_mul, integral_inv_of_pos ha hb]
96+
simp_rw [mul_comm, intervalIntegral.integral_const_mul, integral_inv_of_pos ha hb]
10097
exact (abs_mul δ (log (b / a))).trans (by rw [abs_of_nonneg hδ])
10198

10299
lemma tendsto_integral_inv_smul_of_tendsto_uniform (hf : LocallyIntegrableOn f (Ioi 0)) (ha : 0 < a)
@@ -107,24 +104,18 @@ lemma tendsto_integral_inv_smul_of_tendsto_uniform (hf : LocallyIntegrableOn f (
107104
intro δ hδ
108105
set C := |log (b / a)| with hC_def
109106
set δ' := δ / (C + 1)
110-
have hδ' : 0 < δ' := div_pos hδ (by positivity)
111-
filter_upwards [hpos, huni δ' hδ'] with t ht_pos hbound
112-
have haε : 0 < a * t := mul_pos ha ht_pos
113-
have hbε : 0 < b * t := mul_pos hb ht_pos
107+
filter_upwards [hpos, huni δ' (by positivity)] with t ht_pos hbound
114108
have hlog_eq : log (b * t / (a * t)) = log (b / a) := by
115109
rw [mul_div_mul_right b a (ne_of_gt ht_pos)]
116110
calc dist (∫ x in a * t..b * t, x⁻¹ • f x) (log (b / a) • V)
117111
_ = ‖(∫ x in a * t..b * t, x⁻¹ • f x) - log (b / a) • V‖ := dist_eq_norm _ _
118112
_ = ‖(∫ x in a * t..b * t, x⁻¹ • f x) - log (b * t / (a * t)) • V‖ := by rw [hlog_eq]
119113
_ ≤ δ' * |log (b * t / (a * t))| :=
120-
norm_integral_inv_smul_sub_le hf haε hbε hδ'.le hbound
114+
norm_integral_inv_smul_sub_le hf (by positivity) (by positivity) (by positivity) hbound
121115
_ = δ' * C := by rw [hlog_eq]
122-
_ < δ := by
123-
calc δ' * C
124-
_ = δ * (C / (C + 1)) := by ring
125-
_ < δ * 1 :=
126-
mul_lt_mul_of_pos_left ((div_lt_one (by positivity)).2 (lt_add_one C)) hδ
127-
_ = δ := mul_one δ
116+
_ = δ * (C / (C + 1)) := by ring
117+
_ < δ * 1 := mul_lt_mul_of_pos_left ((div_lt_one (by positivity)).2 (lt_add_one C)) hδ
118+
_ = δ := mul_one δ
128119

129120
lemma tendsto_integral_inv_smul_nhdsWithin (hf : LocallyIntegrableOn f (Ioi 0)) (ha : 0 < a)
130121
(hb : 0 < b) (hL : Tendsto f (𝓝[>] 0) (𝓝 L)) :
@@ -140,9 +131,7 @@ lemma tendsto_integral_inv_smul_nhdsWithin (hf : LocallyIntegrableOn f (Ioi 0))
140131
filter_upwards [self_mem_nhdsWithin,
141132
nhdsWithin_le_nhds (Iio_mem_nhds (div_pos hη hM))] with t ht_pos ht_bound
142133
intro x hx
143-
have haε : 0 < a * t := mul_pos ha ht_pos
144-
have hbε : 0 < b * t := mul_pos hb ht_pos
145-
have hx_pos : 0 < x := lt_of_lt_of_le (lt_min haε hbε) (uIoc_subset_uIcc hx).1
134+
have hx_pos : 0 < x := (lt_min (by positivity) (by positivity)).trans_le (uIoc_subset_uIcc hx).1
146135
have hx_lt_η : dist x 0 < η := by
147136
rw [Real.dist_eq, sub_zero, abs_of_pos hx_pos]
148137
calc x
@@ -170,8 +159,6 @@ lemma tendsto_integral_inv_smul_atTop (hf : LocallyIntegrableOn f (Ioi 0)) (ha :
170159
filter_upwards [eventually_atTop.2 ⟨max 1 (N / min a b), fun r hr ↦ hr⟩] with t ht
171160
intro x hx
172161
have ht_pos : 0 < t := lt_of_lt_of_le one_pos ((le_max_left 1 _).trans ht)
173-
have haε : 0 < a * t := mul_pos ha ht_pos
174-
have hbε : 0 < b * t := mul_pos hb ht_pos
175162
have hNx : N ≤ x :=
176163
calc N
177164
_ = min a b * (N / min a b) := by field_simp

Mathlib/Analysis/SpecialFunctions/ImproperIntegrals.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/-
22
Copyright (c) 2023 David Loeffler. All rights reserved.
33
Released under Apache 2.0 license as described in the file LICENSE.
4-
Authors: David Loeffler, Louis (Yiyang) Liu
4+
Authors: David Loeffler
55
-/
66
module
77

0 commit comments

Comments
 (0)