Skip to content

Commit 86a5495

Browse files
committed
refactor(MeasureTheory): golf Mathlib/MeasureTheory/Function/ConvergenceInDistribution (#39173)
- refactors `Mathlib/MeasureTheory/Function/ConvergenceInDistribution` by shortening `TendstoInDistribution.prodMk_of_tendstoInMeasure_const` Extracted from #38104 [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/from-referrer/)
1 parent 60f889e commit 86a5495

1 file changed

Lines changed: 2 additions & 18 deletions

File tree

Mathlib/MeasureTheory/Function/ConvergenceInDistribution.lean

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -271,25 +271,9 @@ theorem TendstoInDistribution.prodMk_of_tendstoInMeasure_const
271271
(hY_meas : ∀ i, AEMeasurable (Y i) μ'') :
272272
TendstoInDistribution (fun n ω ↦ (X n ω, Y n ω)) l (fun ω ↦ (Z ω, c)) (fun _ ↦ μ'') μ' := by
273273
have hX : ∀ i, AEMeasurable (X i) μ'' := hXZ.forall_aemeasurable
274-
have hZ : AEMeasurable Z μ' := hXZ.aemeasurable_limit
275274
refine tendstoInDistribution_of_tendstoInMeasure_sub (X := fun n ω ↦ (X n ω, c))
276-
(Y := fun n ω ↦ (X n ω, Y n ω)) (Z := fun ω ↦ (Z ω, c)) (μ'' := μ'') (l := l) ?_ ?_
277-
(by fun_prop)
278-
· replace hXZ := hXZ.tendsto
279-
refine ⟨by fun_prop, by fun_prop, ?_⟩
280-
rw [ProbabilityMeasure.tendsto_iff_forall_integral_tendsto] at hXZ ⊢
281-
intro F
282-
let Fc : BoundedContinuousFunction E ℝ := ⟨⟨fun x ↦ F (x, c), by fun_prop⟩, by
283-
obtain ⟨C, hC⟩ := F.map_bounded'
284-
exact ⟨C, fun x y ↦ hC (x, c) (y, c)⟩⟩
285-
have h_eq (f : Ω' → E) (hf : AEMeasurable f μ') :
286-
∫ ω, F ω ∂μ'.map (fun ω ↦ (f ω, c)) = ∫ ω, F (ω, c) ∂(μ'.map f) := by
287-
rw [integral_map (by fun_prop) (by fun_prop), integral_map (by fun_prop) (by fun_prop)]
288-
have h_eq' (f : Ω'' → E) (hf : AEMeasurable f μ'') :
289-
∫ ω, F ω ∂μ''.map (fun ω ↦ (f ω, c)) = ∫ ω, F (ω, c) ∂(μ''.map f) := by
290-
rw [integral_map (by fun_prop) (by fun_prop), integral_map (by fun_prop) (by fun_prop)]
291-
simp_rw [ProbabilityMeasure.coe_mk, h_eq' (X _) (hX _), h_eq Z hZ]
292-
simpa using hXZ Fc
275+
(fun n ω ↦ (X n ω, Y n ω)) (fun ω ↦ (Z ω, c)) ?_ ?_ (fun i ↦ (hX i).prodMk (hY_meas i))
276+
· exact hXZ.continuous_comp (g := fun x ↦ (x, c)) (by fun_prop)
293277
· suffices TendstoInMeasure μ'' (fun n ω ↦ ((0 : E), Y n ω - c)) l 0 by
294278
convert this with n ω
295279
simp

0 commit comments

Comments
 (0)