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 / WilsonPoleTransport.lean

596 lines · 35622 bytes Raw Blame History
1-- SPDX-License-Identifier: Apache-2.0
2import WilsonLinkTransport
3import Mathlib.Analysis.Calculus.Deriv.Inverse
4import Mathlib.MeasureTheory.Integral.IntervalIntegral.Periodic
5
6namespace YangMills.PeriodicWilson
7open FundamentalSU2 MeasureTheory Real Set Filter
8open scoped Topology ENNReal NNReal Matrix.Norms.Frobenius
9noncomputable section
10private abbrev G := gaugeGroup.image
11private abbrev period := 2*π
12
13/-- The unit-speed circle subgroup through the diagonal axis conjugated by n. -/
14private def circle (n : G) (t : ℝ) : G := n * diagonalLink t * n⁻¹
15
16@[fun_prop] private theorem circle_cont (n : G) : Continuous (circle n) :=
17 (continuous_const.mul continuous_diag).mul continuous_const
18
19@[simp] private theorem circle_zero (n : G) : circle n 0 = 1 := by simp [circle]
20private theorem circle_add (n : G) (a b : ℝ) : circle n (a+b) = circle n a * circle n b := by
21 rw [circle,diagonalLink_add]; unfold circle; group
22private theorem circle_periodic (n : G) : Function.Periodic (circle n) period := by
23 intro t; simp only [circle,diagonalLink_periodic t]
24
25private def rho (r : ℝ) (u : G) := exp (r*(suMat u 0 0).re)
26@[fun_prop] private theorem rho_cont (r : ℝ) : Continuous (rho r) :=
27 continuous_exp.comp (continuous_const.mul continuous_scalar_link)
28private theorem rho_pos (r : ℝ) (u : G) : 0 < rho r u := exp_pos _
29private theorem rho_bounds {r : ℝ} (hr : 0 ≤ r) (u : G) :
30 exp (-r) ≤ rho r u ∧ rho r u ≤ exp r := by
31 unfold rho
32 rw [← cos_polarAngle]
33 constructor <;> apply exp_le_exp.mpr
34 · simpa using mul_le_mul_of_nonneg_left (neg_one_le_cos (polarAngle u)) hr
35 · simpa using mul_le_mul_of_nonneg_left (cos_le_one (polarAngle u)) hr
36
37-- Measure backwards along the circle in units of unnormalized tilted mass.
38private def sweptMass (r : ℝ) (n u : G) (b : ℝ) :=
39 ∫ x in 0..b, rho r (u*circle n (-x))
40
41private theorem swept_cont (r : ℝ) (n : G) : Continuous (Function.uncurry (sweptMass r n)) :=
42 intervalIntegral.continuous_parametric_primitive_of_continuous
43 (f := fun u x => rho r (u*circle n (-x))) (by unfold Function.uncurry; fun_prop)
44
45private theorem swept_deriv (r : ℝ) (n u : G) (b : ℝ) :
46 HasDerivAt (sweptMass r n u) (rho r (u*circle n (-b))) b := by
47 have hc : Continuous (fun x => rho r (u*circle n (-x))) := by fun_prop
48 exact intervalIntegral.integral_hasDerivAt_right (hc.intervalIntegrable _ _)
49 hc.aestronglyMeasurable.stronglyMeasurableAtFilter hc.continuousAt
50
51private theorem swept_strict (r : ℝ) (n u : G) : StrictMono (sweptMass r n u) :=
52 strictMono_of_deriv_pos fun b => by rw [(swept_deriv r n u b).deriv]; exact rho_pos ..
53
54private theorem swept_bounds {r b : ℝ} (hr : 0 ≤ r) (hb : 0 ≤ b) (n u : G) :
55 exp (-r)*b ≤ sweptMass r n u b ∧ sweptMass r n u b ≤ exp r*b := by
56 have hc : Continuous (fun x => rho r (u*circle n (-x))) := by fun_prop
57 have hl := intervalIntegral.integral_mono_on (μ := volume) hb intervalIntegrable_const (hc.intervalIntegrable _ _)
58 (fun x _ => (rho_bounds hr (u*circle n (-x))).1)
59 have hh := intervalIntegral.integral_mono_on (μ := volume) hb (hc.intervalIntegrable _ _) intervalIntegrable_const
60 (fun x _ => (rho_bounds hr (u*circle n (-x))).2)
61 simpa [sweptMass,intervalIntegral.integral_const,smul_eq_mul,mul_comm] using And.intro hl hh
62
63private theorem exists_retreat {r : ℝ} (hr : 0 ≤ r) (n : G) (c : ℝ≥0) (u : G) :
64 ∃ b : ℝ, 0 ≤ b ∧ sweptMass r n u b = c := by
65 let B := (c:ℝ) / exp (-r)
66 have hB : 0 ≤ B := div_nonneg c.2 (exp_pos _).le
67 have h : (c:ℝ) ≤ sweptMass r n u B := calc
68 _ = exp (-r)*B := by dsimp [B]; field_simp
69 _ ≤ _ := (swept_bounds hr hB n u).1
70 have hc : Continuous (sweptMass r n u) := (swept_cont r n).comp (continuous_const.prodMk continuous_id)
71 obtain ⟨b,hb,he⟩ := intermediate_value_Icc hB hc.continuousOn
72 (show (c:ℝ) ∈ Icc (sweptMass r n u 0) (sweptMass r n u B) from ⟨by simp [sweptMass],h⟩)
73 exact ⟨b,hb.1,he⟩
74
75private def retreat {r : ℝ} (hr : 0 ≤ r) (n : G) (c : ℝ≥0) (u : G) :=
76 (exists_retreat hr n c u).choose
77private theorem retreat_spec {r : ℝ} (hr : 0 ≤ r) (n : G) (c : ℝ≥0) (u : G) :
78 0 ≤ retreat hr n c u ∧ sweptMass r n u (retreat hr n c u) = c :=
79 (exists_retreat hr n c u).choose_spec
80
81private theorem retreat_joint_cont {r : ℝ} (hr : 0 ≤ r) (n : G) :
82 Continuous (fun p : ℝ≥0 × G => retreat hr n p.1 p.2) := by
83 apply continuous_iff_continuousAt.mpr
84 intro p
85 apply tendsto_order.mpr
86 have hc (b : ℝ) : Continuous (fun q : ℝ≥0 × G => sweptMass r n q.2 b) :=
87 (swept_cont r n).comp (continuous_snd.prodMk continuous_const)
88 have hd : Continuous (fun q : ℝ≥0 × G => (q.1 : ℝ)) := continuous_subtype_val.comp continuous_fst
89 constructor
90 · intro b hb
91 have hlt := swept_strict r n p.2 hb
92 rw [(retreat_spec hr n p.1 p.2).2] at hlt
93 filter_upwards [(isOpen_lt (hc b) hd).mem_nhds hlt] with q hq
94 apply (swept_strict r n q.2).lt_iff_lt.mp
95 rwa [(retreat_spec hr n q.1 q.2).2]
96 · intro b hb
97 have hlt := swept_strict r n p.2 hb
98 rw [(retreat_spec hr n p.1 p.2).2] at hlt
99 filter_upwards [(isOpen_lt hd (hc b)).mem_nhds hlt] with q hq
100 apply (swept_strict r n q.2).lt_iff_lt.mp
101 rwa [(retreat_spec hr n q.1 q.2).2]
102
103@[fun_prop] private theorem retreat_cont {r : ℝ} (hr : 0 ≤ r) (n : G) (c : ℝ≥0) :
104 Continuous (retreat hr n c) := by
105 exact (retreat_joint_cont hr n).comp (f := fun u : G => (c,u)) (continuous_const.prodMk continuous_id)
106
107private def massShift {r : ℝ} (hr : 0 ≤ r) (n : G) (c : ℝ≥0) (u : G) :=
108 u * circle n (-(retreat hr n c u))
109@[fun_prop] private theorem massShift_cont {r : ℝ} (hr : 0 ≤ r) (n : G) (c : ℝ≥0) :
110 Continuous (massShift hr n c) := by unfold massShift; fun_prop
111
112-- On a lifted orbit t ↦ u A(t), the mass shift has Jacobian w(t)/w(S(t)).
113private theorem orbit_change_of_variables {r : ℝ} (hr : 0 ≤ r) (n : G) (c : ℝ≥0)
114 (u : G) (f : G → ℝ) (hf : Continuous f) :
115 (∫ t in 0..period, rho r (u*circle n t) * f (massShift hr n c (u*circle n t))) =
116 ∫ t in 0..period, rho r (u*circle n t) * f (u*circle n t) := by
117 let x := fun t => u*circle n t
118 let w := fun t => rho r (x t)
119 let S := fun t => t - retreat hr n c (x t)
120 let W := fun t => ∫ a in 0..t, w a
121 have cx : Continuous x := continuous_const.mul (circle_cont _)
122 have cw : Continuous w := (rho_cont _).comp cx
123 have cs : Continuous S := continuous_id.sub ((retreat_cont hr n c).comp cx)
124 have dW (t : ℝ) : HasDerivAt W (w t) t := intervalIntegral.integral_hasDerivAt_right
125 (cw.intervalIntegrable _ _) cw.aestronglyMeasurable.stronglyMeasurableAtFilter cw.continuousAt
126 have shift (t : ℝ) : massShift hr n c (x t) = x (S t) := by
127 unfold massShift x S; rw [sub_eq_add_neg,circle_add,mul_assoc]
128 have clock (t : ℝ) : W (S t) = W t - c := by
129 have he := (retreat_spec hr n c (x t)).2
130 have hw (a : ℝ) : rho r (x t * circle n (-a)) = w (t-a) := by
131 dsimp [x,w]; rw [sub_eq_add_neg,circle_add,mul_assoc]
132 unfold sweptMass at he
133 simp_rw [hw,intervalIntegral.integral_comp_sub_left, sub_zero] at he
134 have hsum := intervalIntegral.integral_add_adjacent_intervals
135 (cw.intervalIntegrable (μ := volume) 0 (S t)) (cw.intervalIntegrable _ t)
136 change (∫ a in S t..t, w a) = c at he
137 dsimp [W]; linarith only [hsum,he]
138 have dS (t : ℝ) : HasDerivAt S (w t / w (S t)) t :=
139 HasDerivAt.of_comp_left cs.continuousAt (dW _) ((dW t).sub_const (c:ℝ))
140 (rho_pos _ _).ne' (.of_forall clock)
141 have cjac : Continuous (fun t => w t / w (S t)) := cw.div (cw.comp cs) (fun _ => (rho_pos _ _).ne')
142 let F := fun t => w t * f (x t)
143 have cF : Continuous F := cw.mul (hf.comp cx)
144 have hp (t : ℝ) : x (t+period) = x t := by dsimp [x]; rw [circle_periodic]
145 have hF : Function.Periodic F period := by intro t; dsimp [F,w]; rw [hp]
146 have hS : S period = S 0 + period := by
147 have h0 : x period = x 0 := by simpa using hp 0
148 dsimp [S]; rw [h0]; ring
149 have changeVars := intervalIntegral.integral_comp_mul_deriv (a := 0) (b := period)
150 (fun t _ => dS t) cjac.continuousOn cF
151 have hfun (t : ℝ) : (F ∘ S) t * (w t / w (S t)) = w t * f (massShift hr n c (x t)) := by
152 have hnonzero : w (S t) ≠ 0 := (rho_pos r _).ne'
153 rw [shift]; dsimp [Function.comp,F]; field_simp [hnonzero]
154 simp_rw [hfun] at changeVars
155 rw [hS] at changeVars
156 exact changeVars.trans (by simpa using hF.intervalIntegral_add_eq (S 0) 0)
157
158-- Haar averaging turns an identity on every circle orbit into a group integral identity.
159private theorem haar_orbit_average (n : G) (F : G → ℝ) (hF : Continuous F) :
160 (∫ u, (∫ t in 0..period, F (u*circle n t)) ∂su2Haar) = period * ∫ u, F u ∂su2Haar := by
161 have hc : Continuous (fun z : ℝ × G => F (z.2*circle n z.1)) := by fun_prop
162 obtain ⟨M,hM⟩ := isCompact_univ (X := G) |>.exists_bound_of_continuousOn hF.continuousOn
163 have hi : Integrable (Function.uncurry fun t u => F (u*circle n t))
164 ((volume.restrict (uIoc 0 period)).prod su2Haar) := by
165 rw [uIoc_of_le (by positivity : 0 ≤ period)]
166 exact Integrable.of_bound hc.aestronglyMeasurable M (.of_forall fun z => hM _ (mem_univ _))
167 rw [← intervalIntegral_integral_swap hi]
168 have hh (t : ℝ) : (∫ u, F (u*circle n t) ∂su2Haar) = ∫ u, F u ∂su2Haar := by
169 have hp := preserve_right (circle n t)
170 rw [← integral_map hp.measurable.aemeasurable hF.aestronglyMeasurable,hp.map_eq]
171 simp_rw [hh]
172 simp [intervalIntegral.integral_const,smul_eq_mul]
173
174private theorem massShift_preserves {r : ℝ} (hr : 0 ≤ r) (n : G) (c : ℝ≥0) :
175 MeasurePreserving (massShift hr n c) (poleLaw r 1) (poleLaw r 1) := by
176 let T := massShift hr n c
177 have hT : Continuous T := massShift_cont hr n c
178 haveI := Measure.isProbabilityMeasure_map (μ := poleLaw r 1) hT.aemeasurable
179 refine ⟨hT.measurable,?_⟩
180 apply ext_of_forall_integral_eq_of_IsFiniteMeasure
181 intro f
182 rw [integral_map hT.aemeasurable f.continuous.aestronglyMeasurable]
183 have hperiod : period ≠ 0 := by positivity
184 have eqInt : (∫ u, rho r u * f (T u) ∂su2Haar) = ∫ u, rho r u * f u ∂su2Haar := by
185 apply mul_left_cancel₀ hperiod
186 rw [← haar_orbit_average n (fun u => rho r u * f (T u)) ((rho_cont r).mul (f.continuous.comp hT)),
187 ← haar_orbit_average n (fun u => rho r u * f u) ((rho_cont r).mul f.continuous)]
188 exact integral_congr_ae (.of_forall fun u => orbit_change_of_variables hr n c u f f.continuous)
189 unfold poleLaw
190 simp_rw [integral_tilted,mul_one,smul_eq_mul,div_mul_eq_mul_div,integral_div]
191 exact congrArg (fun x => x / ∫ u, rho r u ∂su2Haar) eqInt
192
193private theorem change_pole (r : ℝ) (k j : G) :
194 MeasurePreserving (fun u => u*k*j⁻¹) (poleLaw r k) (poleLaw r j) := by
195 have hc : Continuous (fun u : G => u*k*j⁻¹) := (continuous_mul_const k).mul continuous_const
196 refine ⟨hc.measurable,?_⟩
197 rw [← orbitLink_law r k,← orbitLink_law r j,Measure.map_map hc.measurable (continuous_orbit k).measurable]
198 congr 1
199 funext z
200 change orbitLink k z.1 z.2 * k * j⁻¹ = orbitLink j z.1 z.2
201 unfold orbitLink; group
202
203private def massStep (r d : ℝ) (hd : 0 ≤ d) : ℝ≥0 := ⟨d / cosh r, div_nonneg hd (cosh_pos _).le⟩
204
205private theorem retreat_distance {r d : ℝ} (hr : 0 ≤ r) (hd : 0 ≤ d) (n u : G) :
206 |d - retreat hr n (massStep r d hd) u| ≤ tanh r * d := by
207 let c := massStep r d hd
208 let b := retreat hr n c u
209 have hb := retreat_spec hr n c u
210 have hh := swept_bounds hr hb.1 n u
211 rw [hb.2] at hh
212 have hlo : (c:ℝ)*exp (-r) ≤ b := calc
213 _ ≤ (exp r*b)*exp (-r) := mul_le_mul_of_nonneg_right hh.2 (exp_pos _).le
214 _ = b := by rw [exp_neg]; field_simp
215 have hhi : b ≤ (c:ℝ)*exp r := calc
216 b = (exp (-r)*b)*exp r := by rw [exp_neg]; field_simp
217 _ ≤ _ := mul_le_mul_of_nonneg_right hh.1 (exp_pos _).le
218 have hminus : (c:ℝ)*exp (-r) = (1-tanh r)*d := by
219 change d / cosh r * exp (-r) = _
220 rw [← cosh_sub_sinh,tanh_eq_sinh_div_cosh]
221 field_simp [(cosh_pos r).ne']
222 have hplus : (c:ℝ)*exp r = (1+tanh r)*d := by
223 change d / cosh r * exp r = _
224 rw [← cosh_add_sinh,tanh_eq_sinh_div_cosh]
225 field_simp [(cosh_pos r).ne']
226 rw [hminus] at hlo; rw [hplus] at hhi
227 change |d-b| ≤ _
228 exact abs_le.mpr ⟨by linarith only [hhi],by linarith only [hlo]⟩
229
230private theorem compensated_rotation {r : ℝ} (hr : 0 ≤ r) (k j n : G) (d : ℝ)
231 (hn : j⁻¹*k = circle n d) (c : ℝ≥0) :
232 ∃ T : G → G, Continuous T ∧ MeasurePreserving T (poleLaw r k) (poleLaw r j) ∧
233 ∀ u, linkGeodesic u (T u) ≤ |d - retreat hr n c (u*k)| := by
234 let T := fun u : G => massShift hr n c (u*k)*j⁻¹
235 have hp₁ : MeasurePreserving (fun u : G => u*k) (poleLaw r k) (poleLaw r 1) := by
236 simpa only [inv_one,mul_one] using change_pole r k 1
237 have hp₂ : MeasurePreserving (fun v : G => v*j⁻¹) (poleLaw r 1) (poleLaw r j) := by
238 simpa only [inv_one,mul_one] using change_pole r 1 j
239 have hT : Continuous T := ((massShift_cont hr n c).comp (continuous_mul_const k)).mul continuous_const
240 refine ⟨T,hT,hp₂.comp ((massShift_preserves hr n c).comp hp₁),?_⟩
241 intro u
242 let b := retreat hr n c (u*k)
243 have hTk : T u*k = (u*k)*circle n (d-b) := by
244 change (u*k*circle n (-b)*j⁻¹)*k = _
245 rw [mul_assoc _ j⁻¹ k,hn, mul_assoc, ← circle_add]
246 congr 2; ring
247 calc
248 linkGeodesic u (T u) = linkGeodesic (u*k) (T u*k) := (linkGeodesic_mul_right ..).symm
249 _ = linkGeodesic (circle n 0) (circle n (d-b)) := by
250 rw [hTk,circle_zero,← linkGeodesic_mul_left 1 _ (u*k),mul_one]
251 _ = linkGeodesic (diagonalLink 0) (diagonalLink (d-b)) := by
252 unfold circle; rw [linkGeodesic_mul_right,linkGeodesic_mul_left]
253 _ ≤ |d-b| := by simpa only [zero_sub,abs_neg] using diagonalLink_distance_le 0 (d-b)
254
255private theorem pole_circle (k j : G) : ∃ n : G, j⁻¹*k = circle n (linkGeodesic k⁻¹ j⁻¹) := by
256 obtain ⟨n,hn⟩ := link_conjugate_diagonal (j⁻¹*k)
257 have he : polarAngle (j⁻¹*k) = linkGeodesic k⁻¹ j⁻¹ := calc
258 _ = linkGeodesic j⁻¹ k⁻¹ := by simp [linkGeodesic]
259 _ = _ := by simp only [linkGeodesic_eq_angle]; exact InnerProductGeometry.angle_comm ..
260 exact ⟨n,he ▸ hn⟩
261
262/-- A pointwise displacement bound for the compensated rotation. -/
263theorem pole_transport_map {r : ℝ} (hr : 0 ≤ r) (k j : G) :
264 ∃ T : G → G, Continuous T ∧ MeasurePreserving T (poleLaw r k) (poleLaw r j) ∧
265 ∀ u, linkGeodesic u (T u) ≤ tanh r * linkGeodesic k⁻¹ j⁻¹ := by
266 obtain ⟨n,hn⟩ := pole_circle k j
267 have hd : 0 ≤ linkGeodesic k⁻¹ j⁻¹ := arccos_nonneg _
268 obtain ⟨T,hT,hp,hm⟩ := compensated_rotation hr k j n _ hn (massStep r _ hd)
269 exact ⟨T,hT,hp,fun u => (hm u).trans (retreat_distance hr hd n (u*k))⟩
270
271-- Mean-square speed under the centered tilt. The reciprocal weight compensates
272-- the pole rotation along each circle orbit.
273private def partition (r : ℝ) := ∫ u, rho r u ∂su2Haar
274
275private theorem partition_angle (r : ℝ) : partition r = (2/π)*angleNormalizer r := by
276 simpa [partition,rho,angleNormalizer] using tilted_haar_numerator r 1 (fun _ => 1) continuous_const
277
278private theorem partition_pos (r : ℝ) : 0 < partition r := by
279 rw [partition_angle]; exact mul_pos (by positivity) (angleNormalizer_pos _)
280
281private theorem partition_even (r : ℝ) : partition (-r) = partition r := by
282 simp only [partition_angle,angleNormalizer]
283 congr 1
284 have h (t : ℝ) : OneLinkTransport.weight (-r) t = OneLinkTransport.weight r (π-t) := by
285 simp [OneLinkTransport.weight,sin_pi_sub,cos_pi_sub]
286 simp_rw [h,intervalIntegral.integral_comp_sub_left,sub_self,sub_zero]
287
288private theorem partition_gaussian {r : ℝ} (hr : 0 ≤ r) : partition r ≤ exp (r^2/8) := by
289 let F := fun t => partition t * exp (-(t^2/8))
290 have hder (t : ℝ) : HasDerivAt (partition) ((2/π)*∫ x in 0..π, OneLinkTransport.weight t x*cos x) t := by
291 simpa only [funext partition_angle,angleNormalizer] using (weightMass_hasDerivAt t π).const_mul (2/π)
292 have hF (t : ℝ) : HasDerivAt F
293 (((2/π)*∫ x in 0..π, OneLinkTransport.weight t x*cos x) * exp (-(t^2/8)) -
294 partition t * (t/4) * exp (-(t^2/8))) t := by
295 apply HasDerivAt.congr_deriv ((hder t).mul ((((hasDerivAt_id t).pow 2).div_const 8).neg.exp))
296 simp only [id_eq,Pi.pow_apply,Pi.neg_apply]; ring
297 have mono : AntitoneOn F (Ici 0) := by
298 apply antitoneOn_of_deriv_nonpos (convex_Ici 0)
299 · exact (continuous_iff_continuousAt.mpr fun t => (hF t).continuousAt).continuousOn
300 · exact (show Differentiable ℝ F from fun t => (hF t).differentiableAt).differentiableOn
301 intro t ht
302 have ht0 : 0 ≤ t := interior_subset ht
303 let w := OneLinkTransport.weight t
304 have hw : Continuous w := by unfold w OneLinkTransport.weight; fun_prop
305 have hprim (x : ℝ) : HasDerivAt (fun y => sin y^3 * exp (t*cos y))
306 (3*(w x*cos x)-t*(w x*sin x^2)) x := by
307 apply HasDerivAt.congr_deriv (((hasDerivAt_sin x).pow 3).mul (((hasDerivAt_cos x).const_mul t).exp))
308 simp only [Pi.pow_apply]; unfold w OneLinkTransport.weight; ring
309 have ha : Continuous (fun x => 3*(w x*cos x)) := continuous_const.mul (hw.mul continuous_cos)
310 have hb : Continuous (fun x => t*(w x*sin x^2)) := continuous_const.mul (hw.mul (continuous_sin.pow 2))
311 have he := intervalIntegral.integral_eq_sub_of_hasDerivAt (a := 0) (b := π)
312 (fun x _ => hprim x) ((ha.sub hb).intervalIntegrable (μ := volume) _ _)
313 rw [intervalIntegral.integral_sub (ha.intervalIntegrable _ _) (hb.intervalIntegrable _ _),
314 intervalIntegral.integral_const_mul,intervalIntegral.integral_const_mul] at he
315 simp only [sin_pi,sin_zero,zero_pow (by decide : 3 ≠ 0),zero_mul,sub_zero] at he
316 have hm := mul_le_mul_of_nonneg_left (OneLinkTransport.sin_moment_cap ht0) ht0
317 change t*(∫ x in 0..π, w x*sin x^2) ≤ t*((3/4)*∫ x in 0..π, w x) at hm
318 have hh : (∫ x in 0..π, w x*cos x) ≤ (∫ x in 0..π, w x)*(t/4) := by linarith only [he,hm]
319 rw [(hF t).deriv,partition_angle]
320 apply sub_nonpos.mpr
321 apply mul_le_mul_of_nonneg_right _ (exp_pos _).le
322 rw [mul_assoc]; exact mul_le_mul_of_nonneg_left hh (by positivity)
323 have h := mono (show (0:ℝ) ∈ Ici 0 from show (0:ℝ) ≤ 0 from le_rfl) (show r ∈ Ici 0 from hr) hr
324 have hzero : partition 0 = 1 := by simp [partition,rho]
325 simpa [F,hzero,exp_neg,← div_eq_mul_inv,div_le_one (exp_pos _)] using h
326
327private def rotationSpeed (r : ℝ) (u : G) := 1 - (rho r u)⁻¹
328
329@[fun_prop] private theorem speed_cont (r : ℝ) : Continuous (rotationSpeed r) :=
330 continuous_const.sub ((rho_cont r).inv₀ fun u => (rho_pos r u).ne')
331
332private theorem rotation_energy {r : ℝ} (hr : 0 ≤ r) :
333 (∫ u, rotationSpeed r u^2 ∂poleLaw r 1) ≤ (r/2)^2 := by
334 have hi (s : ℝ) : Integrable (rho s) su2Haar :=
335 (rho_cont s).integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _)
336 have hf (u : G) : rho r u * rotationSpeed r u^2 = rho r u - 2 + rho (-r) u := by
337 have he : rho (-r) u = (rho r u)⁻¹ := by simp [rho,exp_neg]
338 rw [he]; unfold rotationSpeed; field_simp [(rho_pos r u).ne']; ring
339 rw [poleLaw,integral_tilted]
340 simp only [mul_one,smul_eq_mul,div_mul_eq_mul_div]
341 change (∫ u, (rho r u * rotationSpeed r u^2)/partition r ∂su2Haar) ≤ _
342 simp_rw [hf,integral_div]
343 have hiSub : Integrable (fun u => rho r u - 2) su2Haar := (hi r).sub (integrable_const _)
344 rw [integral_add hiSub (hi (-r)),integral_sub (hi r) (integrable_const (2:ℝ))]
345 change (partition r - _ + partition (-r)) / partition r ≤ _
346 rw [integral_const,probReal_univ,one_smul,partition_even]
347 have hg := one_div_le_one_div_of_le (partition_pos r) (partition_gaussian hr)
348 have h := Real.add_one_le_exp (-(r^2/8))
349 rw [exp_neg,← one_div] at h
350 have he : (partition r-2+partition r)/partition r = 2*(1-1/partition r) := by field_simp [(partition_pos r).ne']; ring
351 rw [he]; linarith only [hg,h]
352
353private theorem retreat_energy {r d : ℝ} (hr : 0 ≤ r) (hd : 0 ≤ d) (n : G) :
354 (∫ u, (d - retreat hr n d.toNNReal u)^2 ∂poleLaw r 1) ≤ (r/2*d)^2 := by
355 let μ := poleLaw r 1
356 let B := fun (t : ℝ) (u : G) => retreat hr n t.toNNReal u
357 let S := fun (t : ℝ) (u : G) => massShift hr n t.toNNReal u
358 let v := fun t u => rotationSpeed r (S t u)
359 have cB : Continuous (Function.uncurry B) := (retreat_joint_cont hr n).comp
360 (f := fun p : ℝ × G => (p.1.toNNReal,p.2)) ((continuous_real_toNNReal.comp continuous_fst).prodMk continuous_snd)
361 have cS : Continuous (Function.uncurry S) := continuous_snd.mul ((circle_cont n).comp cB.neg)
362 have cv : Continuous (Function.uncurry v) := (speed_cont r).comp cS
363 have bz (u : G) : B 0 u = 0 := (swept_strict r n u).injective (by
364 rw [(retreat_spec hr n _ u).2]; simp [sweptMass])
365 have step (u : G) : (d-B d u)^2 ≤ d * ∫ t in 0..d, v t u^2 := by
366 rcases hd.eq_or_lt with h | h
367 · simp [← h,bz]
368 have cb : Continuous (fun t => B t u) := cB.comp (f := fun t => (t,u)) (continuous_id.prodMk continuous_const)
369 have cf : Continuous (fun t => v t u) := cv.comp (f := fun t => (t,u)) (continuous_id.prodMk continuous_const)
370 have derivB {t : ℝ} (ht : 0 < t) : HasDerivAt (fun x => B x u) (rho r (S t u))⁻¹ t := by
371 have he : ∀ᶠ x in 𝓝 t, sweptMass r n u (B x u) = x := by
372 filter_upwards [Ioi_mem_nhds ht] with x hx
373 exact (retreat_spec hr n _ u).2.trans (Real.coe_toNNReal x hx.le)
374 simpa only [one_div,S,massShift,B] using HasDerivAt.of_comp_left cb.continuousAt (swept_deriv r n u (B t u))
375 (hasDerivAt_id t) (rho_pos _ _).ne' he
376 have he := intervalIntegral.integral_eq_sub_of_hasDerivAt_of_le h.le
377 (continuous_id.sub cb).continuousOn (fun t ht => (hasDerivAt_id t).sub (derivB ht.1))
378 (cf.intervalIntegrable (μ := volume) _ _)
379 have he' : (∫ t in 0..d, v t u) = d-B d u := by simpa [bz,v,rotationSpeed] using he
380 simpa only [sub_zero] using interval_square_increment h cf he'
381 obtain ⟨M,hM⟩ := isCompact_univ (X := G) |>.exists_bound_of_continuousOn ((speed_cont r).pow 2).continuousOn
382 have hi : Integrable (Function.uncurry fun t u => v t u^2) ((volume.restrict (Ioc 0 d)).prod μ) :=
383 Integrable.of_bound (cv.pow 2).aestronglyMeasurable M (.of_forall fun z => hM _ (mem_univ _))
384 have hi' : Integrable (fun u => ∫ t in 0..d, v t u^2) μ := by
385 simp_rw [intervalIntegral.integral_of_le hd]; exact hi.integral_prod_right
386 have idem (t : ℝ) : (∫ u, v t u^2 ∂μ) = ∫ u, rotationSpeed r u^2 ∂μ := by
387 have hp := massShift_preserves hr n t.toNNReal
388 calc _ = ∫ u, rotationSpeed r u^2 ∂μ.map (S t) :=
389 (integral_map hp.measurable.aemeasurable (f := fun u => rotationSpeed r u^2)
390 ((speed_cont r).pow 2).aestronglyMeasurable).symm
391 _ = _ := by rw [show μ.map (S t) = μ from hp.map_eq]
392 have hb := integral_mono (((continuous_const.sub (retreat_cont hr n d.toNNReal)).pow 2).integrable_of_hasCompactSupport
393 (HasCompactSupport.of_compactSpace _) (μ := μ)) (hi'.const_mul d) step
394 rw [integral_const_mul, ← intervalIntegral_integral_swap (f := fun t u => v t u^2)
395 (by simpa only [uIoc_of_le hd] using hi)] at hb
396 simp_rw [idem,intervalIntegral.integral_const,sub_zero,smul_eq_mul] at hb
397 apply hb.trans
398 calc d*(d*_) ≤ d*(d*(r/2)^2) := mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_left (rotation_energy hr) hd) hd
399 _ = _ := by ring
400
401/-- A full-link transport map whose root mean square geodesic displacement is at
402most half the field strength times the angle between poles. -/
403theorem mean_square_pole_transport {r : ℝ} (hr : 0 ≤ r) (k j : G) :
404 ∃ T : G → G, Continuous T ∧ MeasurePreserving T (poleLaw r k) (poleLaw r j) ∧
405 (∫ u, linkGeodesic u (T u)^2 ∂poleLaw r k) ≤ (r/2 * linkGeodesic k⁻¹ j⁻¹)^2 := by
406 let d := linkGeodesic k⁻¹ j⁻¹
407 have hd : 0 ≤ d := arccos_nonneg _
408 obtain ⟨n,hn⟩ := pole_circle k j
409 obtain ⟨T,hT,hp,hm⟩ := compensated_rotation hr k j n d hn d.toNNReal
410 refine ⟨T,hT,hp,?_⟩
411 let f := fun u : G => (d-retreat hr n d.toNNReal u)^2
412 have cf : Continuous f := (continuous_const.sub (retreat_cont hr n _)).pow 2
413 have cdist := continuous_geodesic.comp (continuous_id.prodMk hT)
414 have cp : MeasurePreserving (fun u : G => u*k) (poleLaw r k) (poleLaw r 1) := by
415 simpa using change_pole r k 1
416 calc _ ≤ ∫ u, f (u*k) ∂poleLaw r k := integral_mono
417 ((cdist.pow 2).integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _))
418 ((cf.comp (continuous_mul_const k)).integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _))
419 (fun u => (pow_le_pow_left₀ (arccos_nonneg _) (hm u) 2).trans_eq (sq_abs _))
420 _ = ∫ u, f u ∂poleLaw r 1 := by
421 rw [← cp.map_eq,integral_map cp.measurable.aemeasurable cf.aestronglyMeasurable]
422 _ ≤ _ := retreat_energy hr hd n
423
424private theorem geodesic_comm (u v : G) : linkGeodesic u v = linkGeodesic v u := by
425 simp only [linkGeodesic_eq_angle]; exact InnerProductGeometry.angle_comm ..
426
427theorem linkWassersteinSq_symm (μ ν : Measure G) : linkWassersteinSq μ ν = linkWassersteinSq ν μ := by
428 suffices h : ∀ μ ν : Measure G, linkWassersteinSq μ ν ≤ linkWassersteinSq ν μ from le_antisymm (h μ ν) (h ν μ)
429 intro μ ν
430 apply le_iInf
431 intro γ
432 let γ' : {P : Measure (G × G) // P.fst = μ ∧ P.snd = ν} :=
433 ⟨γ.val.map Prod.swap,by simpa only [Measure.fst_map_swap] using γ.prop.2,
434 by simpa only [Measure.snd_map_swap] using γ.prop.1⟩
435 apply (iInf_le _ γ').trans_eq
436 change (∫⁻ z, ENNReal.ofReal (linkGeodesic z.1 z.2 ^ 2) ∂γ.val.map Prod.swap) = _
437 have hc : Measurable (fun z : G × G => ENNReal.ofReal (linkGeodesic z.1 z.2 ^ 2)) :=
438 (continuous_geodesic.pow 2).measurable.ennreal_ofReal
439 rw [lintegral_map hc measurable_swap]
440 exact lintegral_congr fun z => congrArg (fun a => ENNReal.ofReal (a^2)) (geodesic_comm z.2 z.1)
441
442theorem rms_triangle {X : Type*} [TopologicalSpace X] [CompactSpace X]
443 [MeasurableSpace X] [OpensMeasurableSpace X] (P : Measure X) [IsFiniteMeasure P]
444 {f g h : X → ℝ} (cf : Continuous f) (cg : Continuous g) (ch : Continuous h)
445 (hf0 : ∀ z, 0 ≤ f z) (hg0 : 0 ≤ᵐ[P] g) (hh0 : 0 ≤ᵐ[P] h) (htri : ∀ z, f z ≤ g z+h z)
446 {R C : ℝ} (hR : 0 ≤ R) (hC : 0 ≤ C)
447 (hbase : (∫ z, g z^2 ∂P) ≤ R^2) (hmove : (∫ z, h z^2 ∂P) ≤ C^2) :
448 (∫ z, f z^2 ∂P) ≤ (R+C)^2 := by
449 have hi : Integrable (fun z => f z^2) P := (cf.pow 2).integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _)
450 have intg : Integrable (fun z => g z^2) P := (cg.pow 2).integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _)
451 have inth : Integrable (fun z => h z^2) P := (ch.pow 2).integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _)
452 have intgh : Integrable (fun z => g z*h z) P := (cg.mul ch).integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _)
453 have hcs := integral_mul_le_Lp_mul_Lq_of_nonneg Real.HolderConjugate.two_two hg0 hh0
454 (cg.memLp_of_hasCompactSupport (HasCompactSupport.of_compactSpace _))
455 (ch.memLp_of_hasCompactSupport (HasCompactSupport.of_compactSpace _))
456 simp only [Real.rpow_two,←Real.sqrt_eq_rpow] at hcs
457 have hcross : (∫ z, g z*h z ∂P) ≤ R*C := hcs.trans (mul_le_mul
458 ((sqrt_le_sqrt hbase).trans_eq (sqrt_sq hR)) ((sqrt_le_sqrt hmove).trans_eq (sqrt_sq hC))
459 (sqrt_nonneg _) hR)
460 have hpoint (z : X) : f z^2 ≤ (g z^2 + 2*(g z*h z)) + h z^2 := calc
461 _ ≤ (g z+h z)^2 := pow_le_pow_left₀ (hf0 z) (htri z) 2
462 _ = _ := by ring
463 have hprod : Integrable (fun z => 2*(g z*h z)) P := intgh.const_mul 2
464 have hsum : Integrable (fun z => g z^2 + 2*(g z*h z)) P := intg.add hprod
465 have hm := integral_mono hi (hsum.add inth) hpoint
466 change (∫ z, f z^2 ∂P) ≤ ∫ z, (g z^2 + 2*(g z*h z)) + h z^2 ∂P at hm
467 rw [integral_add hsum inth,integral_add intg hprod,integral_const_mul] at hm
468 change (∫ z, g z^2 ∂P) ≤ R^2 at hbase
469 linarith only [hm,hbase,hcross,hmove]
470
471private theorem continuous_move (T : G → G) (hT : Continuous T) :
472 Continuous (fun u => linkGeodesic u (T u)) := by
473 unfold linkGeodesic polarAngle
474 exact continuous_arccos.comp (continuous_scalar_link.comp (continuous_id.mul hT.inv))
475
476-- Modify one endpoint of a coupling whose root mean square cost is at most R.
477private theorem transfer_cost (P : Measure (G × G)) [IsProbabilityMeasure P] (T : G → G)
478 (hT : Continuous T) {R C : ℝ} (hR : 0 ≤ R) (hC : 0 ≤ C)
479 (hbase : (∫ z, linkGeodesic z.1 z.2^2 ∂P) ≤ R^2)
480 (hmove : (∫ u, linkGeodesic u (T u)^2 ∂P.snd) ≤ C^2) :
481 linkWassersteinSq P.fst (P.snd.map T) ≤ ENNReal.ofReal ((R+C)^2) := by
482 let M := fun z : G × G => (z.1,T z.2)
483 have hM : Continuous M := continuous_fst.prodMk (hT.comp continuous_snd)
484 have hmarg : (P.map M).fst = P.fst ∧ (P.map M).snd = P.snd.map T := by
485 constructor
486 · exact Measure.fst_map_prodMk (hT.comp continuous_snd).measurable
487 · rw [show (P.map M).snd = P.map (fun z => T z.2) from Measure.snd_map_prodMk measurable_fst]
488 exact (Measure.map_map hT.measurable measurable_snd).symm
489 let γ : {Q : Measure (G × G) // Q.fst = P.fst ∧ Q.snd = P.snd.map T} := ⟨P.map M,hmarg⟩
490 apply (iInf_le _ γ).trans
491 let f := fun z : G × G => linkGeodesic z.1 (T z.2)
492 let g := fun z : G × G => linkGeodesic z.1 z.2
493 have cf : Continuous f := by
494 unfold f linkGeodesic polarAngle
495 exact continuous_arccos.comp (continuous_scalar_link.comp (continuous_fst.mul (hT.comp continuous_snd).inv))
496 have cg : Continuous g := continuous_geodesic
497 have hc : Measurable (fun z : G × G => ENNReal.ofReal (linkGeodesic z.1 z.2^2)) :=
498 (cg.pow 2).measurable.ennreal_ofReal
499 change (∫⁻ z, ENNReal.ofReal (linkGeodesic z.1 z.2 ^ 2) ∂P.map M) ≤ _
500 rw [lintegral_map hc hM.measurable]
501 change (∫⁻ z, ENNReal.ofReal (f z^2) ∂P) ≤ _
502 have hi : Integrable (fun z => f z^2) P := (cf.pow 2).integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _)
503 rw [← ofReal_integral_eq_lintegral_ofReal hi (.of_forall fun z => sq_nonneg (f z))]
504 apply ENNReal.ofReal_le_ofReal
505 let h := fun z : G × G => linkGeodesic z.2 (T z.2)
506 have ch₀ := continuous_move T hT
507 have ch : Continuous h := ch₀.comp continuous_snd
508 have move : (∫ z, h z^2 ∂P) ≤ C^2 := by
509 change (∫ u, linkGeodesic u (T u)^2 ∂P.map Prod.snd) ≤ C^2 at hmove
510 rw [integral_map (f := fun u => linkGeodesic u (T u)^2) measurable_snd.aemeasurable
511 (ch₀.pow 2).aestronglyMeasurable] at hmove
512 exact hmove
513 exact rms_triangle P cf cg ch (fun _ => arccos_nonneg _) (.of_forall fun _ => arccos_nonneg _)
514 (.of_forall fun _ => arccos_nonneg _) (fun z => geo_triangle z.1 z.2 (T z.2)) hR hC hbase move
515
516private theorem endpoint_transport_bound {r s : ℝ} (hr : 0 ≤ r) (hs : 0 ≤ s) (k j : G) {C : ℝ} (hC : 0 ≤ C)
517 (T : G → G) (hT : Continuous T) (hp : MeasurePreserving T (poleLaw s k) (poleLaw s j))
518 (hmove : (∫ u, linkGeodesic u (T u)^2 ∂poleLaw s k) ≤ C^2) :
519 linkWassersteinSq (poleLaw r k) (poleLaw s j) ≤
520 ENNReal.ofReal ((|s-r|/sqrt 12 + C)^2) := by
521 let P := linkCoupling r s k k
522 obtain ⟨hfst,hsnd⟩ := linkCoupling_marginals r s k k
523 haveI : IsProbabilityMeasure P := ⟨by
524 change linkCoupling r s k k univ = 1
525 rw [← Measure.fst_univ,hfst,measure_univ]⟩
526 have hR : 0 ≤ |s-r|/sqrt 12 := by positivity
527 have hbase : (∫ z, linkGeodesic z.1 z.2^2 ∂P) ≤ (|s-r|/sqrt 12)^2 := by
528 rw [div_pow,sq_abs,Real.sq_sqrt (by norm_num : (0:ℝ) ≤ 12),linkCoupling_common_cost]
529 exact radialCoupling_cost hr hs
530 have hmm : (∫ u, linkGeodesic u (T u)^2 ∂P.snd) ≤ C^2 := by simpa only [P,hsnd] using hmove
531 have h := transfer_cost P T hT hR hC hbase hmm
532 simpa only [P,hfst,hsnd,hp.map_eq] using h
533
534private theorem endpoint_pole_bound {r s : ℝ} (hr : 0 ≤ r) (hs : 0 ≤ s) (k j : G) :
535 linkWassersteinSq (poleLaw r k) (poleLaw s j) ≤
536 ENNReal.ofReal ((|s-r|/sqrt 12 + tanh s * linkGeodesic k⁻¹ j⁻¹)^2) := by
537 obtain ⟨T,hT,hp,hmove⟩ := pole_transport_map hs k j
538 have htan : 0 ≤ tanh s := by rw [tanh_eq_sinh_div_cosh]; exact div_nonneg (sinh_nonneg_iff.mpr hs) (cosh_pos _).le
539 apply endpoint_transport_bound hr hs k j (C := tanh s * linkGeodesic k⁻¹ j⁻¹) (mul_nonneg htan (arccos_nonneg _)) T hT hp
540 have hc := continuous_move T hT
541 let C := tanh s * linkGeodesic k⁻¹ j⁻¹
542 calc _ ≤ ∫ _u, C^2 ∂poleLaw s k := integral_mono
543 ((hc.pow 2).integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _))
544 (integrable_const _) (fun u => pow_le_pow_left₀ (arccos_nonneg _) (hmove u) 2)
545 _ = _ := by simp [C]
546
547private theorem endpoint_mean_square_bound {r s : ℝ} (hr : 0 ≤ r) (hs : 0 ≤ s) (k j : G) :
548 linkWassersteinSq (poleLaw r k) (poleLaw s j) ≤
549 ENNReal.ofReal ((|s-r|/sqrt 12 + (s/2) * linkGeodesic k⁻¹ j⁻¹)^2) := by
550 obtain ⟨T,hT,hp,hmove⟩ := mean_square_pole_transport hs k j
551 exact endpoint_transport_bound hr hs k j (mul_nonneg (by positivity) (arccos_nonneg _)) T hT hp hmove
552
553/-- Full-link squared Wasserstein bound for any two nonnegative field strengths.
554The pole-rotation term is suppressed by the smaller strength and vanishes at zero. -/
555theorem strength_weighted_pole_wasserstein {r s : ℝ} (hr : 0 ≤ r) (hs : 0 ≤ s) (k j : G) :
556 linkWassersteinSq (poleLaw r k) (poleLaw s j) ≤
557 ENNReal.ofReal ((|s-r|/sqrt 12 + tanh (min r s) * linkGeodesic k⁻¹ j⁻¹)^2) := by
558 rcases le_total s r with h | h
559 · simpa only [min_eq_right h] using endpoint_pole_bound hr hs k j
560 · rw [linkWassersteinSq_symm, min_eq_left h,abs_sub_comm,geodesic_comm k⁻¹ j⁻¹]
561 exact endpoint_pole_bound hs hr j k
562
563/-- For arbitrary poles, rotate at the smaller strength using the mean-square
564circle speed and couple the radial increment at a common pole. -/
565theorem mean_square_pole_wasserstein {r s : ℝ} (hr : 0 ≤ r) (hs : 0 ≤ s) (k j : G) :
566 linkWassersteinSq (poleLaw r k) (poleLaw s j) ≤
567 ENNReal.ofReal ((|s-r|/sqrt 12 + min r s/2 * linkGeodesic k⁻¹ j⁻¹)^2) := by
568 rcases le_total s r with h | h
569 · simpa only [min_eq_right h] using endpoint_mean_square_bound hr hs k j
570 · rw [linkWassersteinSq_symm,min_eq_left h,abs_sub_comm,geodesic_comm k⁻¹ j⁻¹]
571 exact endpoint_mean_square_bound hs hr j k
572
573#print axioms mean_square_pole_transport
574#print axioms mean_square_pole_wasserstein
575
576/-- The strength-weighted direction bound on actual periodic heat baths, including
577zero staples and arbitrary changes of background. -/
578theorem heatBath_strength_weighted_pole {l : ℕ+} (hl : 1 < l.val) {β : ℝ} (hβ : 0 ≤ β)
579 (U V : Configuration gaugeGroup l) (e : Edge l) :
580 let r := fieldStrength β U e
581 let s := fieldStrength β V e
582 ∃ k j : G, heatBath β U e = poleLaw r k ∧ heatBath β V e = poleLaw s j ∧
583 linkWassersteinSq (heatBath β U e) (heatBath β V e) ≤
584 ENNReal.ofReal ((|s-r|/sqrt 12 + tanh (min r s) * linkGeodesic k⁻¹ j⁻¹)^2) := by
585 obtain ⟨k,hk⟩ := heatBath_eq_tilt hl β U e
586 obtain ⟨j,hj⟩ := heatBath_eq_tilt hl β V e
587 refine ⟨k,j,hk,hj,?_⟩
588 rw [hk,hj]
589 exact strength_weighted_pole_wasserstein (fieldStrength_mem hβ U e).1 (fieldStrength_mem hβ V e).1 k j
590
591#print axioms pole_transport_map
592#print axioms linkWassersteinSq_symm
593#print axioms strength_weighted_pole_wasserstein
594#print axioms heatBath_strength_weighted_pole
595end
596end YangMills.PeriodicWilson