Skip to content

Commit 34f7a6c

Browse files
committed
refactor(MeasureTheory): golf Mathlib/MeasureTheory/Function/LpSpace/Complete (leanprover-community#38880)
- shortens `ae_tendsto_of_cauchy_eLpNorm'` by rewriting the telescoping partial sums in `hx.hasSum.tendsto_sum_nat` directly and concluding with `add_const`, instead of introducing an intermediate eventual `∃ l` Extracted from leanprover-community#38104 [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/from-referrer/)
1 parent 4d0993c commit 34f7a6c

1 file changed

Lines changed: 4 additions & 20 deletions

File tree

Mathlib/MeasureTheory/Function/LpSpace/Complete.lean

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -282,26 +282,10 @@ theorem ae_tendsto_of_cauchy_eLpNorm' [CompleteSpace E] {f : ℕ → α → E} {
282282
have h4 : ∀ᵐ x ∂μ, ∑' i, ‖f (i + 1) x - f i x‖ₑ < ∞ :=
283283
tsum_enorm_sub_ae_lt_top hf hp1 hB h3
284284
exact h4.mono fun x hx => .of_nnnorm <| ENNReal.tsum_coe_ne_top_iff_summable.mp hx.ne
285-
have h :
286-
∀ᵐ x ∂μ, ∃ l : E,
287-
atTop.Tendsto (fun n => ∑ i ∈ Finset.range n, (f (i + 1) x - f i x)) (𝓝 l) := by
288-
refine h_summable.mono fun x hx => ?_
289-
let hx_sum := hx.hasSum.tendsto_sum_nat
290-
exact ⟨∑' i, (f (i + 1) x - f i x), hx_sum⟩
291-
refine h.mono fun x hx => ?_
292-
obtain ⟨l, hx⟩ := hx
293-
have h_rw_sum :
294-
(fun n => ∑ i ∈ Finset.range n, (f (i + 1) x - f i x)) = fun n => f n x - f 0 x := by
295-
ext1 n
296-
change
297-
(∑ i ∈ Finset.range n, ((fun m => f m x) (i + 1) - (fun m => f m x) i)) = f n x - f 0 x
298-
rw [Finset.sum_range_sub (fun m => f m x)]
299-
rw [h_rw_sum] at hx
300-
have hf_rw : (fun n => f n x) = fun n => f n x - f 0 x + f 0 x := by
301-
ext1 n
302-
abel
303-
rw [hf_rw]
304-
exact ⟨l + f 0 x, Tendsto.add_const _ hx⟩
285+
refine h_summable.mono fun x hx ↦ ?_
286+
have hx_sum := hx.hasSum.tendsto_sum_nat
287+
rw [funext fun n ↦ Finset.sum_range_sub (fun m ↦ f m x) n] at hx_sum
288+
exact ⟨∑' i, (f (i + 1) x - f i x) + f 0 x, by simpa using hx_sum.add_const (f 0 x)⟩
305289

306290
theorem ae_tendsto_of_cauchy_eLpNorm [CompleteSpace E] {f : ℕ → α → E}
307291
(hf : ∀ n, AEStronglyMeasurable (f n) μ) (hp : 1 ≤ p) {B : ℕ → ℝ≥0∞} (hB : ∑' i, B i ≠ ∞)

0 commit comments

Comments
 (0)