Offline · exact source
Exact Lean source

YoungFlatCouplingConvergence

formalization/Cloning/YoungFlatCouplingConvergence.lean

Source hash: 37eba5c223e1884b075a518a97745370e938c59510f96a8f7b7763f991752854

Full source copied without mathematical changes from the snapshot whose input hash matches the passing audit. Select a line number for a stable source pointer.

The declarations belong to the compiled inventory covered by the project’s shared axiom audit. That audit records an aggregate union, without attributing axioms to individual declarations.

Declarations in this module
1import Cloning.YoungFlatCouplingEvents
2 
3/-! Vanishing bad-event mass for couplings of two densities with the same L¹
4limit. Quantizers and finite label spaces may vary with the sample size. -/
5noncomputable section
6open scoped BigOperators Topology Classical
7open MeasureTheory Filter
8namespace Cloning.YoungFlatCoupling
9set_option backward.isDefEq.respectTransparency false
10set_option maxHeartbeats 800000
11variable {X : Type*} [MeasurableSpace X] (μ : Measure X)
12 
13theorem l1_between_le (f g h : X → ℝ) (hf : Integrable f μ)
14    (hg : Integrable g μ) (hh : Integrable h μ) :
15    (∫ x, |f x-g x| ∂μ) ≤ (∫ x, |f x-h x| ∂μ) + ∫ x, |g x-h x| ∂μ := by
16  erw [← integral_add (hf.sub hh).abs (hg.sub hh).abs]
17  apply integral_mono (hf.sub hg).abs ((hf.sub hh).abs.add (hg.sub hh).abs)
18  intro x
19  simpa only [abs_sub_comm (h x) (g x)] using abs_sub_le (f x) (h x) (g x)
20 
21theorem overlap_event_le_limit (f g h : X → ℝ)
22    (hf : Integrable f μ) (hg : Integrable g μ) (hh : Integrable h μ)
23    (P : X → Prop) (hP : MeasurableSet {x | P x}) :
24    (∫ x, if P x then min (f x) (g x) else 0 ∂μ) ≤
25      (∫ x, if P x then h x else 0 ∂μ) + ∫ x, |f x-h x| ∂μ := by
26  have hi : Integrable (fun x => if P x then min (f x) (g x) else 0) μ :=
27    (show Integrable (fun x => min (f x) (g x)) μ from hf.inf hg).indicator hP
28  have hj : Integrable (fun x => if P x then h x else 0) μ := hh.indicator hP
29  erw [← integral_add hj (hf.sub hh).abs]
30  apply integral_mono hi (hj.add (hf.sub hh).abs)
31  intro x
32  simp only [Pi.add_apply, Pi.sub_apply]
33  by_cases hx : P x
34  · simp only [if_pos hx]
35    have he := le_abs_self (f x-h x)
36    have hm := min_le_left (f x) (g x)
37    linarith
38  · simp only [if_neg hx, zero_add]
39    exact abs_nonneg _
40 
41theorem limit_bad_event_tendsto_zero (h : X → ℝ) (hh : Integrable h μ)
42    (hh0 : ∀ x, 0 ≤ h x) (P : ℕ → X → Prop)
43    (hP : ∀ N, MeasurableSet {x | P N x})
44    (hgood : ∀ x, h x ≠ 0 → ∀ᶠ N in atTop, ¬P N x) :
45    Tendsto (fun N => ∫ x, if P N x then h x else 0 ∂μ) atTop (𝓝 0) := by
46  have hi N : Integrable (fun x => if P N x then h x else 0) μ := hh.indicator (hP N)
47  have ht : Tendsto (fun N => ∫ x, if P N x then h x else 0 ∂μ) atTop
48      (𝓝 (∫ _x : X, (0 : ℝ) ∂μ)) := by
49    apply tendsto_integral_of_dominated_convergence h (fun N => (hi N).aestronglyMeasurable) hh
50    · intro N
51      apply ae_of_all
52      intro x
53      by_cases hx : P N x
54      · simp only [if_pos hx, Real.norm_eq_abs, abs_of_nonneg (hh0 x), le_refl]
55      · simp only [if_neg hx, norm_zero]; exact hh0 x
56    · apply ae_of_all
57      intro x
58      by_cases hx : h x = 0
59      · simp only [hx, ite_self]
60        exact tendsto_const_nhds
61      · apply tendsto_const_nhds.congr'
62        filter_upwards [hgood x hx] with N hN
63        simp only [if_neg hN]
64  simpa only [integral_zero] using ht
65 
66end Cloning.YoungFlatCoupling