interplane.Get Omega
Read in your language

yang

This project has not described itself yet.

Brought by drakestapleton

branch main Branches Tags History

yang / proofs / WilsonCouplingTriangle.lean

153 lines · 9299 bytes Raw Blame History
1-- SPDX-License-Identifier: Apache-2.0
2import WilsonPoleTransport
3
4namespace YangMills.PeriodicWilson
5open FundamentalSU2 MeasureTheory ProbabilityTheory Real Filter Set
6open scoped ENNReal Topology
7noncomputable section
8private abbrev G := gaugeGroup.image
9private abbrev Triple := (G × G) × G
10
11private def squaredCost (P : Measure (G × G)) := ∫ z, linkGeodesic z.1 z.2 ^ 2 ∂P
12
13private theorem cost_lintegral (P : Measure (G × G)) [IsFiniteMeasure P] :
14 (∫⁻ z, ENNReal.ofReal (linkGeodesic z.1 z.2^2) ∂P) = ENNReal.ofReal (squaredCost P) := by
15 have hc : Continuous (fun z : G × G => linkGeodesic z.1 z.2^2) := continuous_geodesic.pow 2
16 have hi := hc.integrable_of_hasCompactSupport (μ := P) (HasCompactSupport.of_compactSpace _)
17 exact (ofReal_integral_eq_lintegral_ofReal hi (.of_forall fun z => sq_nonneg _)).symm
18
19private theorem sfinite_probability {X : Type*} [MeasurableSpace X] (μ : Measure X)
20 [IsProbabilityMeasure μ] : SFinite μ := inferInstance
21
22/-- Glue consecutive couplings by sampling the third link from its conditional
23law given the middle link. Both pair marginals are recovered exactly. -/
24theorem glue_link_couplings (P Q : Measure (G × G)) [IsProbabilityMeasure P] [IsProbabilityMeasure Q]
25 (h : P.snd = Q.fst) :
26 ∃ L : Measure Triple, IsProbabilityMeasure L ∧ L.map Prod.fst = P ∧
27 L.map (fun z => (z.1.2,z.2)) = Q := by
28 haveI : IsFiniteMeasure P := inferInstance
29 haveI : SFinite P := sfinite_probability P
30 haveI : SFinite P.snd := sfinite_probability P.snd
31 let K := Q.condKernel
32 let L := P.compProd (K.prodMkLeft G)
33 refine ⟨L,inferInstance,Measure.fst_compProd P (K.prodMkLeft G),?_⟩
34 have hm : Measurable (fun z : Triple => (z.1.2,z.2)) := (measurable_snd.comp measurable_fst).prodMk measurable_snd
35 ext S hs
36 rw [Measure.map_apply hm hs]
37 conv_rhs => rw [← Q.disintegrate Q.condKernel,← h]
38 rw [Measure.compProd_apply (μ := P) (κ := K.prodMkLeft G) (hm hs),
39 Measure.compProd_apply (μ := P.snd) (κ := Q.condKernel) hs]
40 change (∫⁻ z, K z.2 (Prod.mk z.2 ⁻¹' S) ∂P) = ∫⁻ y, K y (Prod.mk y ⁻¹' S) ∂P.map Prod.snd
41 rw [lintegral_map (Kernel.measurable_kernel_prodMk_left hs) measurable_snd]
42
43private theorem compose_cost (P Q : Measure (G × G)) [IsProbabilityMeasure P] [IsProbabilityMeasure Q]
44 (hm : P.snd = Q.fst) {R S : ℝ} (hr : 0 ≤ R) (hs : 0 ≤ S)
45 (hp : squaredCost P ≤ R^2) (hq : squaredCost Q ≤ S^2) :
46 linkWassersteinSq P.fst Q.snd ≤ ENNReal.ofReal ((R+S)^2) := by
47 obtain ⟨L,hL,hleft,hright⟩ := glue_link_couplings P Q hm
48 letI := hL
49 let left : Triple → G × G := Prod.fst
50 let right := fun z : Triple => (z.1.2,z.2)
51 let outer := fun z : Triple => (z.1.1,z.2)
52 have cl : Continuous left := continuous_fst
53 have cr : Continuous right := (continuous_snd.comp continuous_fst).prodMk continuous_snd
54 have co : Continuous outer := (continuous_fst.comp continuous_fst).prodMk continuous_snd
55 have h1 : (L.map outer).fst = P.fst := by
56 rw [← hleft,Measure.fst,Measure.fst,Measure.map_map measurable_fst co.measurable,
57 Measure.map_map measurable_fst cl.measurable]; rfl
58 have h2 : (L.map outer).snd = Q.snd := by
59 rw [← hright,Measure.snd,Measure.snd,Measure.map_map measurable_snd co.measurable,
60 Measure.map_map measurable_snd cr.measurable]; rfl
61 let γ : {A : Measure (G × G) // A.fst = P.fst ∧ A.snd = Q.snd} := ⟨L.map outer,h1,h2⟩
62 apply (iInf_le _ γ).trans
63 haveI := Measure.isProbabilityMeasure_map (μ := L) co.aemeasurable
64 change (∫⁻ z, ENNReal.ofReal (linkGeodesic z.1 z.2^2) ∂L.map outer) ≤ _
65 rw [cost_lintegral]; apply ENNReal.ofReal_le_ofReal
66 let D := Function.uncurry linkGeodesic
67 have hc : Continuous D := continuous_geodesic
68 have push (f : Triple → G × G) (hf : Continuous f) :
69 squaredCost (L.map f) = ∫ z, D (f z)^2 ∂L :=
70 integral_map hf.aemeasurable (f := fun z => D z^2) (hc.pow 2).aestronglyMeasurable
71 have hl : (∫ z, D (left z)^2 ∂L) ≤ R^2 := by rwa [← push left cl,hleft]
72 have hh : (∫ z, D (right z)^2 ∂L) ≤ S^2 := by rwa [← push right cr,hright]
73 rw [push outer co]
74 exact rms_triangle L (hc.comp co) (hc.comp cl) (hc.comp cr) (fun _ => arccos_nonneg _)
75 (.of_forall fun _ => arccos_nonneg _) (.of_forall fun _ => arccos_nonneg _)
76 (fun z => geo_triangle z.1.1 z.1.2 z.2) hr hs hl hh
77
78private theorem approx_coupling {μ ν : Measure G} [IsProbabilityMeasure μ] {R ε : ℝ}
79 (hr : 0 ≤ R) (hε : 0 < ε) (hb : linkWassersteinSq μ ν ≤ ENNReal.ofReal (R^2)) :
80 ∃ P : Measure (G × G), IsProbabilityMeasure P ∧ P.fst = μ ∧ P.snd = ν ∧
81 squaredCost P ≤ (R+ε)^2 := by
82 have he : ENNReal.ofReal (R^2) < ENNReal.ofReal ((R+ε)^2) :=
83 (ENNReal.ofReal_lt_ofReal_iff (sq_pos_of_pos (by linarith))).2
84 (pow_lt_pow_left₀ (by linarith) hr (by decide))
85 obtain ⟨P,hp⟩ := iInf_lt_iff.mp (hb.trans_lt he)
86 haveI : IsProbabilityMeasure P.val := ⟨by rw [← Measure.fst_univ,P.prop.1,measure_univ]⟩
87 refine ⟨P.val,inferInstance,P.prop.1,P.prop.2,?_⟩
88 change (∫⁻ z, ENNReal.ofReal (linkGeodesic z.1 z.2^2) ∂P.val) < _ at hp
89 rw [cost_lintegral] at hp
90 exact ((ENNReal.ofReal_lt_ofReal_iff (sq_pos_of_pos (by linarith : 0 < R+ε))).1 hp).le
91
92/-- Compose two geodesic Wasserstein upper bounds without assuming an optimal
93coupling exists. The approximation error tends to zero after gluing. -/
94theorem linkWassersteinSq_triangle_bound {μ ν ξ : Measure G} [IsProbabilityMeasure μ] [IsProbabilityMeasure ν]
95 {R S : ℝ} (hr : 0 ≤ R) (hs : 0 ≤ S) (h₁ : linkWassersteinSq μ ν ≤ ENNReal.ofReal (R^2))
96 (h₂ : linkWassersteinSq ν ξ ≤ ENNReal.ofReal (S^2)) :
97 linkWassersteinSq μ ξ ≤ ENNReal.ofReal ((R+S)^2) := by
98 have ht : Tendsto (fun ε : ℝ => ENNReal.ofReal (((R+ε)+(S+ε))^2))
99 (𝓝[>] 0) (𝓝 (ENNReal.ofReal ((R+S)^2))) := by
100 have hc : Continuous (fun ε : ℝ => ENNReal.ofReal (((R+ε)+(S+ε))^2)) := ENNReal.continuous_ofReal.comp (by fun_prop)
101 simpa only [add_zero] using (hc.tendsto 0).mono_left nhdsWithin_le_nhds
102 apply ge_of_tendsto ht
103 filter_upwards [self_mem_nhdsWithin] with ε hε
104 obtain ⟨P,hP,p₁,p₂,hp⟩ := approx_coupling hr hε h₁
105 obtain ⟨Q,hQ,q₁,q₂,hq⟩ := approx_coupling hs hε h₂
106 have h := compose_cost P Q (p₂.trans q₁.symm) (add_nonneg hr hε.le) (add_nonneg hs hε.le) hp hq
107 simpa only [p₁,q₂] using h
108
109/-- A coupling cost controls expectations even when the two test functions use
110different backgrounds, with an additive error for the unchanged coordinates. -/
111theorem integral_difference_of_link_bound {μ ν : Measure G} [IsProbabilityMeasure μ]
112 (f g : G → ℝ) (cf : Continuous f) (cg : Continuous g) {A B R : ℝ}
113 (hb : 0 ≤ B) (hr : 0 ≤ R) (hfg : ∀ u v, |f u-g v| ≤ A+B*linkGeodesic u v)
114 (hw : linkWassersteinSq μ ν ≤ ENNReal.ofReal (R^2)) :
115 |(∫ u, f u ∂μ)-(∫ v, g v ∂ν)| ≤ A+B*R := by
116 have ht : Tendsto (fun ε : ℝ => A+B*(R+ε)) (𝓝[>] 0) (𝓝 (A+B*R)) := by
117 have hc : Continuous (fun ε : ℝ => A+B*(R+ε)) := by fun_prop
118 simpa only [add_zero] using (hc.tendsto 0).mono_left nhdsWithin_le_nhds
119 apply ge_of_tendsto ht
120 filter_upwards [self_mem_nhdsWithin] with ε hε
121 obtain ⟨P,hP,h₁,h₂,hcost⟩ := approx_coupling hr hε hw
122 let D := Function.uncurry linkGeodesic
123 have cD : Continuous D := continuous_geodesic
124 have hmean : (∫ z, D z ∂P) ≤ R+ε := by
125 have hv := variance_nonneg D P
126 rw [variance_eq_sub (cD.memLp_of_hasCompactSupport (HasCompactSupport.of_compactSpace _))] at hv
127 change 0 ≤ (∫ z, D z^2 ∂P)-(∫ z, D z ∂P)^2 at hv
128 change (∫ z, D z^2 ∂P) ≤ (R+ε)^2 at hcost
129 have he : 0 ≤ R+ε := add_nonneg hr hε.le
130 have ha : |∫ z, D z ∂P| ≤ R+ε :=
131 ((sq_le_sq).mp ((sub_nonneg.mp hv).trans hcost)).trans_eq (abs_of_nonneg he)
132 exact (le_abs_self _).trans ha
133 let F := fun z : G × G => f z.1-g z.2
134 have cF : Continuous F := (cf.comp continuous_fst).sub (cg.comp continuous_snd)
135 have he : (∫ u, f u ∂μ)-(∫ v, g v ∂ν) = ∫ z, F z ∂P := by
136 rw [← h₁,← h₂,Measure.fst,Measure.snd,integral_map measurable_fst.aemeasurable cf.aestronglyMeasurable,
137 integral_map measurable_snd.aemeasurable cg.aestronglyMeasurable]
138 exact (integral_sub ((cf.comp continuous_fst).integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _))
139 ((cg.comp continuous_snd).integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _))).symm
140 rw [he]
141 have hi := cD.integrable_of_hasCompactSupport (μ := P) (HasCompactSupport.of_compactSpace _)
142 calc _ ≤ ∫ z, |F z| ∂P := abs_integral_le_integral_abs
143 _ ≤ ∫ z, A+B*D z ∂P := integral_mono
144 (cF.abs.integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _))
145 ((integrable_const A).add (hi.const_mul B)) (fun z => hfg z.1 z.2)
146 _ = A+B*(∫ z, D z ∂P) := by simp [integral_add (integrable_const A) (hi.const_mul B),integral_const_mul]
147 _ ≤ _ := add_le_add_right (mul_le_mul_of_nonneg_left hmean hb) _
148
149#print axioms integral_difference_of_link_bound
150#print axioms glue_link_couplings
151#print axioms linkWassersteinSq_triangle_bound
152end
153end YangMills.PeriodicWilson