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

236 lines · 12812 bytes Raw Blame History
1-- SPDX-License-Identifier: Apache-2.0
2import WilsonCouplingTriangle
3import WilsonFieldResponse
4import Mathlib.Analysis.SpecialFunctions.Trigonometric.Sinc
5
6namespace YangMills.PeriodicWilson
7open FundamentalSU2 MeasureTheory Real Set Filter InnerProductGeometry
8open scoped ENNReal Topology ComplexConjugate Matrix.Norms.Frobenius
9noncomputable section
10private abbrev G := gaugeGroup.image
11private abbrev V := EuclideanSpace ℝ (Fin 4)
12
13private theorem pole_representation (x : V) : ∃ k : G, x = ‖x‖ • linkCoordinates k := by
14 let a : ℂ := ⟨x 0,x 1⟩
15 let b : ℂ := ⟨x 2,x 3⟩
16 let A : M := !![a,b; -conj b,conj a]
17 have ha : A ∈ quaternionAlgebra := ⟨rfl,rfl⟩
18 obtain ⟨k,hk⟩ := polar ha
19 have rep : x = length A • linkCoordinates k := calc
20 x = matrixCoordinates A := by ext i; fin_cases i <;> rfl
21 _ = matrixCoordinates (length A • suMat k) := congrArg matrixCoordinates hk
22 _ = length A • linkCoordinates k := by ext i; fin_cases i <;> simp [linkCoordinates,matrixCoordinates]
23 have hn : ‖x‖ = length A := by
24 simpa only [norm_smul,Real.norm_eq_abs,abs_of_nonneg (show 0 ≤ length A from sqrt_nonneg _),coordinates_norm,mul_one]
25 using congrArg norm rep
26 exact ⟨k,hn ▸ rep⟩
27
28private def pole (x : V) := (pole_representation x).choose
29private theorem rep (x : V) : x = ‖x‖ • linkCoordinates (pole x) := (pole_representation x).choose_spec
30private def fieldLaw (x : V) := poleLaw ‖x‖ (pole x)
31private instance (x : V) : IsProbabilityMeasure (fieldLaw x) := poleLaw_probability ..
32
33private theorem coords_inj : Function.Injective linkCoordinates := by
34 intro u v h
35 have entry (i : Fin 4) := congrArg (fun z : V => z i) h
36 have a : suMat u 0 0 = suMat v 0 0 := Complex.ext (entry 0) (entry 1)
37 have b : suMat u 0 1 = suMat v 0 1 := Complex.ext (entry 2) (entry 3)
38 apply Subtype.ext; apply Subtype.ext
39 change suMat u = suMat v
40 ext i j : 2
41 fin_cases i <;> fin_cases j
42 · exact a
43 · exact b
44 · exact u.prop.2.trans ((congrArg (fun z : ℂ => -conj z) b).trans v.prop.2.symm)
45 · exact u.prop.1.trans ((congrArg (fun z : ℂ => conj z) a).trans v.prop.1.symm)
46
47private theorem fieldLaw_pole {r : ℝ} (hr : 0 ≤ r) (k : G) :
48 fieldLaw (r • linkCoordinates k) = poleLaw r k := by
49 have hn : ‖r • linkCoordinates k‖ = r := by simp [norm_smul,abs_of_nonneg hr,coordinates_norm]
50 unfold fieldLaw
51 rw [hn]
52 rcases hr.eq_or_lt with h | h
53 · subst r; simp [poleLaw]
54 have he := rep (r • linkCoordinates k)
55 rw [hn] at he
56 have hp : k = pole (r • linkCoordinates k) := coords_inj ((smul_right_injective _ h.ne') he)
57 rw [← hp]
58
59private def fieldDistance (x y : V) := sqrt (linkWassersteinSq (fieldLaw x) (fieldLaw y)).toReal
60
61private theorem field_finite (x y : V) : linkWassersteinSq (fieldLaw x) (fieldLaw y) ≠ ⊤ :=
62 ne_top_of_le_ne_top ENNReal.ofReal_ne_top (cartesian_field_mean_square (norm_nonneg x) (norm_nonneg y) (pole x) (pole y))
63
64private theorem dist_sq (x y : V) : ENNReal.ofReal (fieldDistance x y ^ 2) =
65 linkWassersteinSq (fieldLaw x) (fieldLaw y) := by
66 rw [fieldDistance,sq_sqrt ENNReal.toReal_nonneg,ENNReal.ofReal_toReal (field_finite x y)]
67
68private theorem field_bound {x y : V} {R : ℝ} (hr : 0 ≤ R) :
69 fieldDistance x y ≤ R ↔ linkWassersteinSq (fieldLaw x) (fieldLaw y) ≤ ENNReal.ofReal (R^2) := by
70 rw [← dist_sq, ENNReal.ofReal_le_ofReal_iff (sq_nonneg R)]
71 exact (sq_le_sq₀ (sqrt_nonneg _) hr).symm
72
73private theorem field_triangle (x y z : V) : fieldDistance x z ≤ fieldDistance x y + fieldDistance y z :=
74 (field_bound (add_nonneg (sqrt_nonneg _) (sqrt_nonneg _))).2
75 (linkWassersteinSq_triangle_bound (sqrt_nonneg _) (sqrt_nonneg _)
76 (dist_sq x y).ge (dist_sq y z).ge)
77
78private theorem field_coarse (x y : V) : fieldDistance x y ≤ sqrt (1/12+π^2/16)*‖x-y‖ := by
79 apply (field_bound (mul_nonneg (sqrt_nonneg _) (norm_nonneg _))).2
80 have h := cartesian_field_mean_square (norm_nonneg x) (norm_nonneg y) (pole x) (pole y)
81 simpa only [fieldLaw,←rep x,←rep y,mul_pow,sq_sqrt (by positivity : (0:ℝ) ≤ 1/12+π^2/16)] using h
82
83private theorem field_continuous (x : V) : Continuous (fieldDistance x) := by
84 apply LipschitzWith.continuous (K := (sqrt (1/12+π^2/16)).toNNReal)
85 apply LipschitzWith.of_dist_le_mul
86 intro y z
87 rw [Real.dist_eq,dist_eq_norm,Real.coe_toNNReal _ (sqrt_nonneg _),abs_le]
88 constructor
89 · have h := (field_triangle x y z).trans (add_le_add_right (field_coarse y z) _)
90 linarith only [h]
91 · have h := (field_triangle x z y).trans (add_le_add_right (field_coarse z y) _)
92 rw [norm_sub_rev z y] at h; linarith only [h]
93
94-- Near a nonzero field the normalized direction is continuous. The angular
95-- arc-to-chord ratio therefore tends to one as the second field approaches it.
96private theorem local_angular_estimate {c : ℝ} (hc : 1 < c) {x : V} (hx : x ≠ 0) :
97 ∀ᶠ y in 𝓝 x, linkGeodesic (pole x) (pole y) ≤
98 c * (2*sin (linkGeodesic (pole x) (pole y)/2)) := by
99 have ha : Tendsto (fun y : V => angle x y) (𝓝 x) (𝓝 0) := by
100 simpa only [Function.comp_def,angle_self hx] using
101 ((continuousAt_angle (x := (x,x)) hx hx).comp (continuousAt_const.prodMk continuousAt_id)).tendsto
102 have ht : Tendsto (fun y : V => sinc (angle x y/2)) (𝓝 x) (𝓝 1) := by
103 simpa only [Function.comp_def,zero_div,sinc_zero] using (continuous_sinc.tendsto _).comp (ha.div_const 2)
104 have hfrac : 1/c < 1 := (div_lt_one (by linarith)).2 hc
105 filter_upwards [ht.eventually (Ioi_mem_nhds hfrac),isOpen_ne.mem_nhds hx] with y hy hy0
106 have he : angle x y = linkGeodesic (pole x) (pole y) := by
107 conv_lhs => rw [rep x,rep y]
108 rw [angle_smul_left_of_pos _ _ (norm_pos_iff.mpr hx),angle_smul_right_of_pos _ _ (norm_pos_iff.mpr hy0),
109 linkGeodesic_eq_angle]
110 let d := linkGeodesic (pole x) (pole y)
111 have hnn : 0 ≤ d := arccos_nonneg _
112 change 1/c < sinc (angle x y/2) at hy
113 rw [he] at hy
114 rcases hnn.eq_or_lt with hd | hd
115 · change d ≤ c*(2*sin (d/2)); rw [← hd]; simp
116 have hhalf : 0 < d/2 := by positivity
117 change 1/c < sinc (d/2) at hy
118 rw [sinc_of_ne_zero hhalf.ne',div_lt_div_iff₀ (by linarith : 0 < c) hhalf] at hy
119 change d ≤ c*(2*sin (d/2))
120 linarith only [hy]
121
122private theorem field_local {c : ℝ} (hc : 1 < c) (x : V) :
123 ∀ᶠ y in 𝓝 x, fieldDistance x y ≤ (c/sqrt 3)*‖x-y‖ := by
124 have hL : (1/sqrt 12 : ℝ)^2 = 1/12 := by rw [div_pow,sq_sqrt (by norm_num : (0:ℝ) ≤ 12)]; norm_num
125 have hB : (c/sqrt 3)^2 = c^2/3 := by rw [div_pow,sq_sqrt (by norm_num : (0:ℝ) ≤ 3)]
126 have hc0 : 0 ≤ c := by linarith
127 by_cases hx : x = 0
128 · subst x
129 filter_upwards with y
130 apply (field_bound (mul_nonneg (div_nonneg hc0 (sqrt_nonneg _)) (norm_nonneg _))).2
131 have h := mean_square_pole_wasserstein (r := 0) le_rfl (norm_nonneg y) (pole 0) (pole y)
132 simp only [fieldLaw,norm_zero,sub_zero,min_eq_left (norm_nonneg y),zero_div,zero_mul,add_zero,
133 zero_sub,norm_neg,abs_of_nonneg (norm_nonneg y),mul_pow,hB] at h ⊢
134 apply h.trans (ENNReal.ofReal_le_ofReal ?_)
135 rw [div_pow,sq_sqrt (by norm_num : (0:ℝ) ≤ 12)]
136 nlinarith only [mul_le_mul_of_nonneg_right (show (1:ℝ) ≤ c^2 by nlinarith [sq_nonneg (c-1)]) (sq_nonneg ‖y‖),sq_nonneg ‖y‖]
137 filter_upwards [local_angular_estimate hc hx] with y hangle
138 let r := ‖x‖
139 let s := ‖y‖
140 let D := linkGeodesic (pole x) (pole y)
141 let m := min r s
142 let a := |s-r|
143 let b := 2*m*sin (D/2)
144 have hr : 0 ≤ r := norm_nonneg _
145 have hs : 0 ≤ s := norm_nonneg _
146 have hm : 0 ≤ m := le_min hr hs
147 have hd : 0 ≤ D := arccos_nonneg _
148 have hdπ : D ≤ π := arccos_le_pi _
149 have hsin : 0 ≤ sin (D/2) := sin_nonneg_of_nonneg_of_le_pi (by linarith) (by linarith [pi_pos])
150 have hb0 : 0 ≤ b := mul_nonneg (by linarith) hsin
151 have hmm : m^2 ≤ r*s := by
152 rcases le_total r s with h | h
153 · simp only [m,min_eq_left h,sq]; exact mul_le_mul_of_nonneg_left h hr
154 · simp only [m,min_eq_right h,sq]; exact mul_le_mul_of_nonneg_right h hs
155 have hcos : cos D = inner ℝ (linkCoordinates (pole x)) (linkCoordinates (pole y)) :=
156 (cos_polarAngle _).trans (relative_scalar _ _)
157 have hv : ‖x-y‖^2 = a^2+4*r*s*sin (D/2)^2 := by
158 calc _ = ‖r • linkCoordinates (pole x)-s • linkCoordinates (pole y)‖^2 := by
159 exact congrArg (fun z : V => ‖z‖^2) (congrArg₂ (·-·) (rep x) (rep y))
160 _ = _ := by
161 rw [norm_sub_sq_real,norm_smul,norm_smul,Real.norm_eq_abs,Real.norm_eq_abs,
162 abs_of_nonneg hr,abs_of_nonneg hs,coordinates_norm,coordinates_norm,
163 real_inner_smul_left,real_inner_smul_right,← hcos]
164 have he := cos_two_mul_eq_one_sub (D/2)
165 rw [show 2*(D/2)=D by ring] at he
166 dsimp only [a]; rw [sq_abs,he]; ring
167 have hch : a^2 + b^2 ≤ ‖x-y‖^2 := by
168 rw [hv]; dsimp only [b]
169 nlinarith only [mul_le_mul_of_nonneg_right hmm (sq_nonneg (sin (D/2)))]
170 have hh : m/2*D ≤ c*(b/2) := by
171 have he := mul_le_mul_of_nonneg_left hangle hm
172 dsimp only [b]; change m*D ≤ m*(c*(2*sin (D/2))) at he; linarith only [he]
173 have hstep : a/sqrt 12 + m/2*D ≤ c*(a/sqrt 12+b/2) := by
174 have hnon : 0 ≤ a/sqrt 12 := div_nonneg (abs_nonneg _) (sqrt_nonneg _)
175 have hrad := mul_le_mul_of_nonneg_right hc.le hnon; linarith only [hh,hrad]
176 have hcs : (a/sqrt 12 + b/2)^2 ≤ (a^2+b^2)/3 := by
177 let L := 1/sqrt 12
178 have he : (L*a+b/2)^2 + (a/2-L*b)^2 = (L^2+1/4)*(a^2+b^2) := by ring
179 change L^2 = 1/12 at hL; rw [hL] at he
180 rw [show a/sqrt 12 = L*a by dsimp [L]; ring]
181 linarith only [he,sq_nonneg (a/2-L*b)]
182 apply (field_bound (mul_nonneg (div_nonneg hc0 (sqrt_nonneg _)) (norm_nonneg _))).2
183 have hp := mean_square_pole_wasserstein hr hs (pole x) (pole y)
184 rw [pole_inverse_distance] at hp
185 apply hp.trans (ENNReal.ofReal_le_ofReal ?_)
186 change (a/sqrt 12 + m/2*D)^2 ≤ _
187 calc _ ≤ (c*(a/sqrt 12+b/2))^2 := pow_le_pow_left₀ (add_nonneg (div_nonneg (abs_nonneg _) (sqrt_nonneg _)) (mul_nonneg (div_nonneg hm (by norm_num)) hd)) hstep 2
188 _ ≤ c^2 * (‖x-y‖^2/3) := by rw [mul_pow]; exact mul_le_mul_of_nonneg_left (hcs.trans (by linarith only [hch])) (sq_nonneg _)
189 _ = _ := by rw [mul_pow,hB]; ring
190
191private theorem segment_bound {c : ℝ} (hc : 1 < c) (x y : V) :
192 fieldDistance x y ≤ (c/sqrt 3)*‖x-y‖ := by
193 let p := fun t : ℝ => x + t • (y-x)
194 let B := c/sqrt 3 * ‖y-x‖
195 have cp : Continuous p := continuous_const.add (continuous_id.smul continuous_const)
196 have chord (t u : ℝ) : ‖p t-p u‖ = |u-t| * ‖y-x‖ := by
197 have he : p t-p u = (t-u) • (y-x) := by dsimp [p]; rw [sub_smul]; abel
198 rw [he,norm_smul,Real.norm_eq_abs,abs_sub_comm]
199 let E := {t : ℝ | fieldDistance x (p t) ≤ B*t}
200 have hclosed : IsClosed E := isClosed_le ((field_continuous x).comp cp) (continuous_const.mul continuous_id)
201 have start : 0 ∈ E := by
202 have hh := field_coarse x x
203 simpa [E,p] using hh
204 have one : (1:ℝ) ∈ E := by
205 apply ((hclosed.inter isClosed_Icc).Icc_subset_of_forall_mem_nhdsWithin start ?_) (show (1:ℝ) ∈ Icc 0 1 by constructor <;> norm_num)
206 intro t ht
207 have hloc := (cp.tendsto t).eventually (field_local hc (p t))
208 filter_upwards [nhdsWithin_le_nhds hloc,self_mem_nhdsWithin] with u hu htu
209 change fieldDistance x (p u) ≤ B*u
210 have hh := field_triangle x (p t) (p u)
211 have he : fieldDistance x (p t) ≤ B*t := ht.1
212 rw [chord,abs_of_nonneg (sub_nonneg.mpr htu.le)] at hu
213 dsimp only [B] at he ⊢
214 linarith only [he,hu,hh]
215 change fieldDistance x (p 1) ≤ B*1 at one
216 simpa [p,B,norm_sub_rev y x] using one
217
218/-- Subdividing the straight Cartesian segment removes the global arc-to-chord
219penalty. A segment through the zero field uses its radial bound at that point. -/
220theorem straight_field_wasserstein {r s : ℝ} (hr : 0 ≤ r) (hs : 0 ≤ s) (k j : G) :
221 linkWassersteinSq (poleLaw r k) (poleLaw s j) ≤ ENNReal.ofReal
222 (‖r • linkCoordinates k-s • linkCoordinates j‖^2/3) := by
223 let x := r • linkCoordinates k
224 let y := s • linkCoordinates j
225 have hc : fieldDistance x y ≤ (1/sqrt 3)*‖x-y‖ := by
226 have ht : Tendsto (fun c : ℝ => c/sqrt 3 * ‖x-y‖) (𝓝[>] 1) (𝓝 (1/sqrt 3 * ‖x-y‖)) :=
227 ((continuous_id.div_const _).mul continuous_const).continuousWithinAt
228 apply ge_of_tendsto ht
229 filter_upwards [self_mem_nhdsWithin] with c h using segment_bound h x y
230 have hh := (field_bound (mul_nonneg (by positivity : 0 ≤ 1/sqrt 3) (norm_nonneg _))).1 hc
231 simpa only [x,y,fieldLaw_pole hr,fieldLaw_pole hs,mul_pow,div_pow,one_pow,sq_sqrt (by norm_num : (0:ℝ) ≤ 3),
232 one_div,inv_mul_eq_div] using hh
233
234#print axioms straight_field_wasserstein
235end
236end YangMills.PeriodicWilson