Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/yang/blob/main/proofs/WilsonLinkTransport.lean # yang This project has not described itself yet. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `yang / proofs / WilsonLinkTransport.lean` 457 lines · 25434 bytes Raw Blame History 1 -- SPDX-License-Identifier: Apache-2.0 2 import WilsonRadialTransport 3 import Mathlib.Geometry.Euclidean.Angle.Unoriented.TriangleInequality 4 import Mathlib.Probability.Moments.Variance 5 6 namespace YangMills.PeriodicWilson 7 open FundamentalSU2 MeasureTheory Real Set 8 open scoped Matrix.Norms.Frobenius ComplexConjugate unitInterval ENNReal 9 noncomputable section 10 private abbrev G := gaugeGroup.image 11 12 private def pair (a b : ℂ) : M := !![a,b; -conj b,conj a] 13 14 private def unitPair (a b : ℂ) (h : length (pair a b) = 1) : G := 15 ⟨⟨pair a b, unitary_of_length_one (show pair a b ∈ quaternionAlgebra from ⟨rfl,rfl⟩) h⟩, ⟨rfl,rfl⟩⟩ 16 17 private def phase (t : ℝ) := Complex.mk (cos t) (sin t) 18 19 /-- A diagonal SU(2) representative with eigenvalues exp(±it). -/ 20 def diagonalLink (t : ℝ) : G := unitPair (phase t) 0 (by 21 change sqrt (‖phase t‖^2 + ‖(0:ℂ)‖^2) = 1 22 simp [← Complex.normSq_eq_norm_sq, phase, Complex.normSq_apply, ← sq, cos_sq_add_sin_sq]) 23 24 @[fun_prop] theorem continuous_diag : Continuous diagonalLink := by 25 apply Continuous.subtype_mk 26 apply Continuous.subtype_mk 27 change Continuous (fun t => pair (phase t) 0) 28 apply continuous_pi; intro i; apply continuous_pi; intro j 29 fin_cases i <;> fin_cases j <;> simp [pair,phase,Complex.mk_eq_add_mul_I] <;> fun_prop 30 31 private theorem mat_injective : Function.Injective suMat := fun _ _ h => Subtype.ext (Subtype.ext h) 32 private theorem mat_mul (u v : G) : suMat (u*v) = suMat u * suMat v := rfl 33 private theorem mat_inv (u : G) : suMat u⁻¹ = star (suMat u) := rfl 34 35 theorem scalar_trace (u : G) : (suMat u).trace.re = 2*(suMat u 0 0).re := by 36 have hh : suMat u 1 1 = conj (suMat u 0 0) := u.prop.1 37 simp [Matrix.trace,Fin.sum_univ_two,hh]; ring 38 39 theorem scalar_conjugate (h u : G) : (suMat (h*u*h⁻¹) 0 0).re = (suMat u 0 0).re := by 40 have he : (suMat (h*u*h⁻¹)).trace = (suMat u).trace := calc 41 _ = (suMat (h⁻¹*(h*u))).trace := by rw [mat_mul h⁻¹, mat_mul (h*u), Matrix.trace_mul_comm] 42 _ = _ := by simp 43 linarith only [scalar_trace (h*u*h⁻¹), scalar_trace u, congrArg Complex.re he] 44 45 private theorem mat_add_inv (u : G) : 46 suMat u + suMat u⁻¹ = ((2*(suMat u 0 0).re : ℝ) : ℂ) • (1:M) := by 47 obtain ⟨hd,ho⟩ : suMat u ∈ quaternionAlgebra := u.prop 48 ext i j 49 fin_cases i <;> fin_cases j <;> 50 simp [mat_inv, Matrix.star_apply, hd, ho, Complex.ext_iff] <;> ring 51 52 private def swapLink : G := unitPair 0 1 (by simp [length,pair]) 53 54 private theorem mat_diag (t : ℝ) : suMat (diagonalLink t) = pair (phase t) 0 := rfl 55 private theorem mat_swap : suMat swapLink = pair 0 1 := rfl 56 57 private theorem diag_inverse_orbit (t : ℝ) : 58 (diagonalLink t)⁻¹ = swapLink * diagonalLink t * swapLink⁻¹ := by 59 apply mat_injective; ext i j 60 fin_cases i <;> fin_cases j <;> 61 simp [mat_mul,mat_inv,mat_diag,mat_swap,pair, 62 Matrix.mul_apply, Fin.sum_univ_two, Matrix.star_apply] 63 64 /-- The polar angle labels the conjugacy classes, including the two central links. -/ 65 theorem link_conjugate_diagonal (u : G) : 66 ∃ h : G, u = h * diagonalLink (polarAngle u) * h⁻¹ := by 67 let v := diagonalLink (polarAngle u) 68 have hs : (suMat v 0 0).re = (suMat u 0 0).re := cos_polarAngle u 69 have he : suMat u + suMat u⁻¹ = suMat v + suMat v⁻¹ := by rw [mat_add_inv,mat_add_inv,hs] 70 let A := suMat u - suMat v⁻¹ 71 by_cases hz : A = 0 72 · have huv : u = v⁻¹ := mat_injective (sub_eq_zero.mp hz) 73 exact ⟨swapLink, huv.trans (diag_inverse_orbit _)⟩ 74 have ha : A ∈ quaternionAlgebra := quaternionAlgebra.sub_mem u.prop (v⁻¹).prop 75 obtain ⟨h,hh⟩ := polar ha 76 change A = length A • suMat h at hh 77 -- A intertwines u and v. Normalizing A therefore gives the conjugating link. 78 have hlen : length A ≠ 0 := fun h0 => hz (by simpa [h0] using hh) 79 have he' : A = suMat v - suMat u⁻¹ := by exact sub_eq_sub_iff_add_eq_add.mpr (by simpa [add_comm] using he) 80 have hint : suMat u * A = A * suMat v := calc 81 _ = suMat u * suMat v - suMat (u*u⁻¹) := by rw [he',mul_sub,mat_mul] 82 _ = suMat u * suMat v - suMat (v⁻¹*v) := by simp 83 _ = A * suMat v := by rw [mat_mul]; dsimp [A]; rw [sub_mul] 84 rw [hh,Matrix.mul_smul,Matrix.smul_mul] at hint 85 have hc := congrArg (fun B : M => (length A)⁻¹ • B) hint 86 simp only [smul_smul,inv_mul_cancel₀ hlen, one_smul] at hc 87 have hgroup : u*h = h*v := mat_injective hc 88 exact ⟨h, by rw [← hgroup]; simp⟩ 89 90 /-- Unit-radius S³ great-circle angle between the two unit quaternions. -/ 91 def linkGeodesic (u v : G) := polarAngle (u*v⁻¹) 92 93 /-- Conjugate the diagonal representative by h and translate back to the staple pole k. -/ 94 def orbitLink (k : G) (t : ℝ) (h : G) := h * diagonalLink t * h⁻¹ * k⁻¹ 95 96 private theorem diagonal_scalar_relative (a b : ℝ) : 97 (suMat (diagonalLink a * (diagonalLink b)⁻¹) 0 0).re = cos (a-b) := by 98 simp [mat_mul, mat_inv, mat_diag, pair, phase, Matrix.mul_apply, 99 Matrix.star_apply, Fin.sum_univ_two, Complex.mul_re, cos_sub] 100 101 theorem common_axis_distance (k h : G) {a b : ℝ} (ha : a ∈ Icc 0 π) (hb : b ∈ Icc 0 π) : 102 linkGeodesic (orbitLink k a h) (orbitLink k b h) = |a-b| := by 103 have he : orbitLink k a h * (orbitLink k b h)⁻¹ = h * (diagonalLink a * (diagonalLink b)⁻¹) * h⁻¹ := by 104 unfold orbitLink; group 105 rw [linkGeodesic,he,polarAngle,scalar_conjugate,diagonal_scalar_relative,← cos_abs,arccos_cos (abs_nonneg _) (abs_le.mpr ⟨by linarith [ha.1,hb.2],by linarith [ha.2,hb.1]⟩)] 106 107 /-- Opposite points on the equator have equal polar angle and full geodesic distance π. -/ 108 theorem equal_angle_antipodes : ∃ u v : G, polarAngle u = polarAngle v ∧ linkGeodesic u v = π := by 109 refine ⟨diagonalLink (π/2), diagonalLink (-(π/2)), ?_, ?_⟩ 110 · change arccos (cos (π/2)) = arccos (cos (-(π/2))) 111 rw [cos_neg] 112 · rw [linkGeodesic,polarAngle,diagonal_scalar_relative,show π/2 - -(π/2) = π by ring,cos_pi,arccos_neg_one] 113 114 /-- The full normalized Wilson one-link Haar tilt, in its pole representation. -/ 115 def poleLaw (r : ℝ) (k : G) : Measure G := su2Haar.tilted (fun u => r*(suMat (u*k) 0 0).re) 116 117 theorem continuous_scalar_link : Continuous (fun u : G => (suMat u 0 0).re) := 118 Complex.continuous_re.comp ((continuous_apply 0).comp ((continuous_apply 0).comp 119 (continuous_subtype_val.comp continuous_subtype_val))) 120 121 instance poleLaw_probability (r : ℝ) (k : G) : IsProbabilityMeasure (poleLaw r k) := 122 isProbabilityMeasure_tilted ((continuous_exp.comp (continuous_const.mul 123 (continuous_scalar_link.comp (continuous_mul_const k)))).integrable_of_hasCompactSupport 124 (HasCompactSupport.of_compactSpace _)) 125 126 private def rotateAt (k h u : G) := h*(u*k)*h⁻¹*k⁻¹ 127 private theorem continuous_rotate (k : G) : Continuous (fun z : G × G => rotateAt k z.2 z.1) := by 128 unfold rotateAt; fun_prop 129 theorem continuous_orbit (k : G) : Continuous (Function.uncurry (orbitLink k)) := by 130 unfold Function.uncurry orbitLink 131 exact (((continuous_snd.mul (continuous_diag.comp continuous_fst)).mul continuous_snd.inv).mul continuous_const) 132 133 theorem preserve_right (h : G) : MeasurePreserving (fun u : G => u*h) su2Haar su2Haar := 134 ⟨(continuous_mul_const _).measurable, PhaseFour.gaugeImage_haar_map_mul_right su2Haar h⟩ 135 136 private theorem rotate_preserves (k h : G) (r : ℝ) : 137 MeasurePreserving (rotateAt k h) (poleLaw r k) (poleLaw r k) := by 138 have hp : MeasurePreserving (rotateAt k h) su2Haar su2Haar := 139 (preserve_right k⁻¹).comp ((preserve_right h⁻¹).comp ((measurePreserving_mul_left su2Haar h).comp (preserve_right k))) 140 let f := fun u : G => r*(suMat (u*k) 0 0).re 141 let w := fun u : G => ENNReal.ofReal (exp (f u) / ∫ x, exp (f x) ∂su2Haar) 142 have hw : Measurable w := (continuous_exp.comp (continuous_const.mul 143 (continuous_scalar_link.comp (continuous_mul_const k)))).div_const _ |>.measurable.ennreal_ofReal 144 have hfix (u : G) : w (rotateAt k h u) = w u := by 145 dsimp only [w,f,rotateAt]; rw [inv_mul_cancel_right,scalar_conjugate] 146 refine ⟨hp.measurable,?_⟩ 147 change (su2Haar.withDensity w).map _ = su2Haar.withDensity w 148 ext S hS 149 rw [Measure.map_apply hp.measurable hS,withDensity_apply _ (hp.measurable hS),withDensity_apply _ hS] 150 have hm := setLIntegral_map (μ := su2Haar) hS hw hp.measurable 151 rw [hp.map_eq] at hm 152 rw [hm] 153 exact setLIntegral_congr_fun (hp.measurable hS) fun u _ => (hfix u).symm 154 155 /-- An independent Haar conjugator and a Wilson polar angle reproduce the entire 156 matrix-valued heat bath about the chosen pole. -/ 157 theorem orbitLink_law (r : ℝ) (k : G) : 158 ((angleLaw r).prod su2Haar).map (Function.uncurry (orbitLink k)) = poleLaw r k := by 159 let μ := poleLaw r k 160 let θ := fun u : G => polarAngle (u*k) 161 have hθ : Continuous θ := continuous_arccos.comp (continuous_scalar_link.comp (continuous_mul_const k)) 162 have hcoords : MeasurePreserving θ μ (angleLaw r) := ⟨hθ.measurable, tilted_polarAngle r k⟩ 163 have hprod := hcoords.prod (MeasurePreserving.id su2Haar) 164 rw [← hprod.map_eq, Measure.map_map (continuous_orbit k).measurable hprod.measurable] 165 let F := fun z : G × G => orbitLink k (θ z.1) z.2 166 let B := fun z : G × G => rotateAt k z.2 z.1 167 have hF : Continuous F := by 168 change Continuous (fun z : G × G => z.2 * diagonalLink (θ z.1) * z.2⁻¹ * k⁻¹) 169 fun_prop 170 have hB : Continuous B := continuous_rotate k 171 change (μ.prod su2Haar).map F = μ 172 ext S hS 173 rw [Measure.map_apply hF.measurable hS, Measure.prod_apply (hF.measurable hS)] 174 -- On each conjugacy class, changing the representative right-translates the Haar conjugator. 175 have hfiber (u : G) : su2Haar (Prod.mk u ⁻¹' (F ⁻¹' S)) = su2Haar (Prod.mk u ⁻¹' (B ⁻¹' S)) := by 176 obtain ⟨j,hj⟩ := link_conjugate_diagonal (u*k) 177 have hid (h : G) : B (u,h) = F (u,h*j) := by 178 change h*(u*k)*h⁻¹*k⁻¹ = (h*j)*diagonalLink (polarAngle (u*k))*(h*j)⁻¹*k⁻¹ 179 conv_lhs => rw [hj] 180 group 181 have hset : Prod.mk u ⁻¹' (B ⁻¹' S) = (fun h : G => h*j) ⁻¹' (Prod.mk u ⁻¹' (F ⁻¹' S)) := 182 Set.ext fun h => by change B (u,h) ∈ S ↔ F (u,h*j) ∈ S; rw [hid] 183 rw [hset,(preserve_right j).measure_preimage (measurable_prodMk_left (hF.measurable hS)).nullMeasurableSet] 184 simp_rw [hfiber] 185 rw [← Measure.prod_apply (hB.measurable hS), Measure.prod_apply_symm (hB.measurable hS)] 186 have hinner (h : G) : μ ((fun u => (u,h)) ⁻¹' (B ⁻¹' S)) = μ S := 187 (rotate_preserves k h r).measure_preimage hS.nullMeasurableSet 188 simp_rw [hinner] 189 simp 190 191 /-- Read the four real quaternion coordinates from the first matrix row. -/ 192 def matrixCoordinates (A : M) : EuclideanSpace ℝ (Fin 4) := 193 WithLp.toLp 2 ![(A 0 0).re,(A 0 0).im,(A 0 1).re,(A 0 1).im] 194 195 def linkCoordinates (u : G) := matrixCoordinates (suMat u) 196 197 theorem relative_scalar (u v : G) : 198 (suMat (u*v⁻¹) 0 0).re = inner ℝ (linkCoordinates u) (linkCoordinates v) := by 199 simp [mat_mul,mat_inv,Matrix.mul_apply,Matrix.star_apply,Fin.sum_univ_two,Complex.mul_re, 200 linkCoordinates,matrixCoordinates,PiLp.inner_apply,Fin.sum_univ_four] 201 ring 202 203 theorem coordinates_norm (u : G) : ‖linkCoordinates u‖ = 1 := by 204 have h := relative_scalar u u 205 rw [mul_inv_cancel,real_inner_self_eq_norm_sq] at h 206 change (1:ℝ) = ‖linkCoordinates u‖^2 at h 207 nlinarith [norm_nonneg (linkCoordinates u)] 208 209 /-- Identification with the round great-circle distance, via the angle between 210 unit vectors in real four-dimensional Euclidean space. -/ 211 theorem linkGeodesic_eq_angle (u v : G) : 212 linkGeodesic u v = InnerProductGeometry.angle (linkCoordinates u) (linkCoordinates v) := by 213 simp [linkGeodesic,polarAngle,InnerProductGeometry.angle,relative_scalar,coordinates_norm] 214 215 theorem continuous_geodesic : Continuous (Function.uncurry linkGeodesic) := 216 continuous_arccos.comp (continuous_scalar_link.comp (continuous_fst.mul continuous_snd.inv)) 217 218 private abbrev sampleSpace := unitInterval × G 219 private def sample (r : ℝ) (k : G) (z : sampleSpace) := orbitLink k (angleQuantile r z.1) z.2 220 private theorem sample_cont (r : ℝ) (k : G) : Continuous (sample r k) := by 221 have hQ := continuous_Q r 222 change Continuous (fun z : sampleSpace => z.2 * diagonalLink (angleQuantile r z.1) * z.2⁻¹ * k⁻¹) 223 fun_prop 224 225 private theorem sample_law (r : ℝ) (k : G) : 226 (volume.prod su2Haar).map (sample r k) = poleLaw r k := by 227 have hQ : MeasurePreserving (angleQuantile r) volume (angleLaw r) := 228 ⟨(continuous_Q r).measurable,quantile_pushforward r⟩ 229 have hp := hQ.prod (MeasurePreserving.id su2Haar) 230 calc 231 _ = ((volume.prod su2Haar).map (Prod.map (angleQuantile r) id)).map (Function.uncurry (orbitLink k)) := 232 (Measure.map_map (continuous_orbit k).measurable hp.measurable).symm 233 _ = _ := by rw [hp.map_eq,orbitLink_law] 234 235 /-- A full-link coupling using the same uniform rank and Haar conjugator for both samples. -/ 236 def linkCoupling (r s : ℝ) (k j : G) : Measure (G × G) := 237 (volume.prod su2Haar).map (fun z : sampleSpace => (sample r k z,sample s j z)) 238 239 theorem linkCoupling_marginals (r s : ℝ) (k j : G) : 240 (linkCoupling r s k j).fst = poleLaw r k ∧ (linkCoupling r s k j).snd = poleLaw s j := by 241 constructor 242 · rw [linkCoupling, Measure.fst_map_prodMk (sample_cont s j).measurable,sample_law] 243 · rw [linkCoupling, Measure.snd_map_prodMk (sample_cont r k).measurable,sample_law] 244 245 /-- At a common pole the geodesic squared cost of the lifted coupling equals the 246 squared cost of the original angular coupling exactly. -/ 247 theorem linkCoupling_common_cost (r s : ℝ) (k : G) : 248 (∫ z, linkGeodesic z.1 z.2 ^ 2 ∂linkCoupling r s k k) = 249 ∫ z, (z.2-z.1)^2 ∂radialCoupling r s := by 250 let g := fun p : unitInterval => (angleQuantile s p-angleQuantile r p)^2 251 have hg : Continuous g := ((continuous_Q s).sub (continuous_Q r)).pow 2 252 have hpair := (sample_cont r k).prodMk (sample_cont s k) 253 have hc : Continuous (fun z : G × G => linkGeodesic z.1 z.2 ^ 2) := continuous_geodesic.pow 2 254 rw [linkCoupling, integral_map hpair.aemeasurable hc.aestronglyMeasurable, 255 radialCoupling, integral_map ((continuous_Q r).prodMk (continuous_Q s)).aemeasurable 256 (show AEStronglyMeasurable (fun z : ℝ × ℝ => (z.2-z.1)^2) _ from 257 ((continuous_snd.sub continuous_fst).pow 2).aestronglyMeasurable)] 258 change (∫ z : sampleSpace, linkGeodesic (sample r k z) (sample s k z)^2 ∂volume.prod su2Haar) = ∫ p, g p 259 have hpoint (z : sampleSpace) : linkGeodesic (sample r k z) (sample s k z)^2 = g z.1 := by 260 unfold sample g 261 rw [common_axis_distance _ _ (quantile_mem r z.1) (quantile_mem s z.1), sq_abs]; ring 262 simp_rw [hpoint] 263 have hp := measurePreserving_fst (μ := (volume : Measure unitInterval)) (ν := su2Haar) 264 rw [← integral_map hp.measurable.aemeasurable hg.aestronglyMeasurable,hp.map_eq] 265 266 /-- Squared Wasserstein cost for full links with the unit-radius S³ geodesic. -/ 267 def linkWassersteinSq (μ ν : Measure G) : ℝ≥0∞ := 268 ⨅ γ : {P : Measure (G × G) // P.fst = μ ∧ P.snd = ν}, 269 ∫⁻ z, ENNReal.ofReal (linkGeodesic z.1 z.2 ^ 2) ∂γ.val 270 271 private theorem linkWassersteinSq_le_cost (r s : ℝ) (k j : G) : 272 linkWassersteinSq (poleLaw r k) (poleLaw s j) ≤ ENNReal.ofReal 273 (∫ z, linkGeodesic z.1 z.2^2 ∂linkCoupling r s k j) := by 274 let γ : {P : Measure (G × G) // P.fst = poleLaw r k ∧ P.snd = poleLaw s j} := 275 ⟨linkCoupling r s k j,linkCoupling_marginals r s k j⟩ 276 apply (iInf_le _ γ).trans_eq 277 haveI : IsProbabilityMeasure (linkCoupling r s k j) := 278 Measure.isProbabilityMeasure_map ((sample_cont r k).prodMk (sample_cont s j)).aemeasurable 279 exact (ofReal_integral_eq_lintegral_ofReal ((continuous_geodesic.pow 2).integrable_of_hasCompactSupport 280 (HasCompactSupport.of_compactSpace _)) (.of_forall fun z => sq_nonneg (linkGeodesic z.1 z.2))).symm 281 282 theorem common_pole_wasserstein {r s : ℝ} (hr : 0 ≤ r) (hs : 0 ≤ s) (k : G) : 283 linkWassersteinSq (poleLaw r k) (poleLaw s k) ≤ ENNReal.ofReal ((s-r)^2/12) := by 284 apply (linkWassersteinSq_le_cost r s k k).trans 285 rw [linkCoupling_common_cost] 286 exact ENNReal.ofReal_le_ofReal (radialCoupling_cost hr hs) 287 288 private theorem cost_on_samples (r s : ℝ) (k j : G) : 289 (∫ z, linkGeodesic z.1 z.2^2 ∂linkCoupling r s k j) = 290 ∫ z : sampleSpace, linkGeodesic (sample r k z) (sample s j z)^2 ∂volume.prod su2Haar := by 291 have hc : Continuous (fun z : G × G => linkGeodesic z.1 z.2 ^ 2) := continuous_geodesic.pow 2 292 exact integral_map ((sample_cont r k).prodMk (sample_cont s j)).aemeasurable hc.aestronglyMeasurable 293 294 private theorem rigid_distance (t : ℝ) (h k j : G) : 295 linkGeodesic (orbitLink k t h) (orbitLink j t h) = linkGeodesic k⁻¹ j⁻¹ := by 296 let q := h * diagonalLink t * h⁻¹ 297 have he : orbitLink k t h * (orbitLink j t h)⁻¹ = q * (k⁻¹ * j) * q⁻¹ := by 298 unfold orbitLink q; group 299 simp [linkGeodesic,he,polarAngle,scalar_conjugate] 300 301 theorem geo_triangle (u v w : G) : 302 linkGeodesic u w ≤ linkGeodesic u v + linkGeodesic v w := by 303 simp only [linkGeodesic_eq_angle] 304 exact InnerProductGeometry.angle_le_angle_add_angle _ _ _ 305 306 private theorem sample_distance_cont (r s : ℝ) (k j : G) : 307 Continuous (fun z : sampleSpace => linkGeodesic (sample r k z) (sample s j z)) := by 308 unfold linkGeodesic polarAngle 309 exact continuous_arccos.comp (continuous_scalar_link.comp ((sample_cont r k).mul (sample_cont s j).inv)) 310 311 /-- Full-link comparison for arbitrary poles. The direction term is the geodesic 312 cost of a rigid translation of the meridian, in radians. -/ 313 theorem moving_pole_wasserstein {r s : ℝ} (hr : 0 ≤ r) (hs : 0 ≤ s) (k j : G) : 314 linkWassersteinSq (poleLaw r k) (poleLaw s j) ≤ 315 ENNReal.ofReal ((|s-r| / sqrt 12 + linkGeodesic k⁻¹ j⁻¹)^2) := by 316 let μ : Measure sampleSpace := volume.prod su2Haar 317 let D := linkGeodesic k⁻¹ j⁻¹ 318 let R := |s-r| / sqrt 12 319 let g := fun z : sampleSpace => linkGeodesic (sample r k z) (sample s k z) 320 let f := fun z : sampleSpace => linkGeodesic (sample r k z) (sample s j z) 321 have gcon : Continuous g := sample_distance_cont r s k k 322 have fcon : Continuous f := sample_distance_cont r s k j 323 have hD : 0 ≤ D := arccos_nonneg _ 324 have hR : 0 ≤ R := by dsimp [R]; positivity 325 have hR2 : R^2 = (s-r)^2 / 12 := by 326 simp [R,div_pow,sq_abs,Real.sq_sqrt] 327 have hsecond : (∫ z, g z^2 ∂μ) ≤ R^2 := by 328 rw [hR2,← cost_on_samples r s k k,linkCoupling_common_cost] 329 exact radialCoupling_cost hr hs 330 -- Nonnegative variance bounds the mean meridian displacement by its root mean square. 331 have hmean : (∫ z, g z ∂μ) ≤ R := by 332 have hv := ProbabilityTheory.variance_nonneg g μ 333 rw [ProbabilityTheory.variance_eq_sub (gcon.memLp_of_hasCompactSupport (HasCompactSupport.of_compactSpace _))] at hv 334 change 0 ≤ (∫ z, g z ^ 2 ∂μ) - (∫ z, g z ∂μ)^2 at hv 335 nlinarith only [hv,hsecond,hR, sq_nonneg ((∫ z, g z ∂μ) - R)] 336 have hpoint (z : sampleSpace) : f z^2 ≤ g z^2 + (2*D)*g z + D^2 := by 337 have ht := geo_triangle (sample r k z) (sample s k z) (sample s j z) 338 change f z ≤ g z + linkGeodesic (orbitLink k _ _) (orbitLink j _ _) at ht 339 rw [rigid_distance] at ht 340 have hsq : f z ^ 2 ≤ (g z + D)^2 := pow_le_pow_left₀ (arccos_nonneg _ : 0 ≤ f z) ht 2 341 exact hsq.trans_eq (by ring) 342 have hg2 : Integrable (fun z => g z^2) μ := 343 (gcon.pow 2).integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _) 344 have hlin : Integrable (fun z => (2*D)*g z) μ := 345 (gcon.integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _)).const_mul _ 346 have hsum : Integrable (fun z => g z^2 + (2*D)*g z) μ := hg2.add hlin 347 have hf2 : Integrable (fun z => f z^2) μ := 348 (fcon.pow 2).integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _) 349 apply (linkWassersteinSq_le_cost r s k j).trans (ENNReal.ofReal_le_ofReal ?_) 350 rw [cost_on_samples] 351 have hm := integral_mono hf2 (hsum.add (integrable_const (D^2))) hpoint 352 change (∫ z, f z^2 ∂μ) ≤ ∫ z, g z^2 + (2*D)*g z + D^2 ∂μ at hm 353 rw [integral_add hsum (integrable_const (D^2)),integral_add hg2 hlin,integral_const_mul,integral_const] at hm 354 simp only [probReal_univ, one_smul] at hm 355 change (∫ z, f z^2 ∂μ) ≤ (R+D)^2 356 linarith only [hm,hsecond,mul_le_mul_of_nonneg_left hmean (by positivity : 0 ≤ 2*D)] 357 358 /-- Every pair of periodic heat baths admits full-link transport controlled by 359 the change in staple strength and the separation of the two pole centers. -/ 360 theorem heatBath_link_wasserstein {l : ℕ+} (hl : 1 < l.val) {β : ℝ} (hβ : 0 ≤ β) 361 (U V : Configuration gaugeGroup l) (e : Edge l) : 362 ∃ k j : G, heatBath β U e = poleLaw (fieldStrength β U e) k ∧ 363 heatBath β V e = poleLaw (fieldStrength β V e) j ∧ 364 linkWassersteinSq (heatBath β U e) (heatBath β V e) ≤ ENNReal.ofReal 365 ((|fieldStrength β V e - fieldStrength β U e| / sqrt 12 + linkGeodesic k⁻¹ j⁻¹)^2) := by 366 obtain ⟨k,hk⟩ := heatBath_eq_tilt hl β U e 367 obtain ⟨j,hj⟩ := heatBath_eq_tilt hl β V e 368 refine ⟨k,j,hk,hj,?_⟩ 369 rw [hk,hj] 370 exact moving_pole_wasserstein (fieldStrength_mem hβ U e).1 (fieldStrength_mem hβ V e).1 k j 371 372 /-- Degree-18 response of the complete periodic Wilson heat baths whenever 373 their normalized Haar tilts admit the same staple pole. -/ 374 theorem common_pole_degree18 {l : ℕ+} (hl : 1 < l.val) {β δ : ℝ} (hβ : 0 ≤ β) 375 (U V : Configuration gaugeGroup l) (e : Edge l) (k : G) 376 (hU : heatBath β U e = poleLaw (fieldStrength β U e) k) 377 (hV : heatBath β V e = poleLaw (fieldStrength β V e) k) 378 (hneighbors : ∀ i ∈ incidences e, 379 linkChord (U (neighbor e i.1 i.2).1) (V (neighbor e i.1 i.2).1) / sqrt 2 ≤ δ) : 380 linkWassersteinSq (heatBath β U e) (heatBath β V e) ≤ ENNReal.ofReal (27*β^2*δ^2) := by 381 rw [hU,hV] 382 exact (common_pole_wasserstein (fieldStrength_mem hβ U e).1 (fieldStrength_mem hβ V e).1 k).trans 383 (ENNReal.ofReal_le_ofReal (fieldStrength_degree18_sq hl hβ U V e hneighbors)) 384 385 /-- The staple matrix of a fixed background supplies a single pole for all couplings. -/ 386 theorem heatBath_fixed_pole {l : ℕ+} (hl : 1 < l.val) (U : Configuration gaugeGroup l) (e : Edge l) : 387 ∃ k : G, ∀ β : ℝ, heatBath β U e = poleLaw (fieldStrength β U e) k := by 388 obtain ⟨k,hk⟩ := su2_field_pole 1 U e 389 refine ⟨k,fun β => heatBath_eq_tilt_of_projection hl β U e k (fun v => ?_)⟩ 390 have h := hk v 391 simp only [one_mul] at h 392 rw [h] 393 unfold fieldStrength 394 ring 395 396 /-- Full-link transport at a fixed periodic background for all nonnegative bare 397 couplings. The six staples give the uniform squared coefficient three. -/ 398 theorem heatBath_beta_wasserstein {l : ℕ+} (hl : 1 < l.val) {β γ : ℝ} (hβ : 0 ≤ β) (hγ : 0 ≤ γ) 399 (U : Configuration gaugeGroup l) (e : Edge l) : 400 linkWassersteinSq (heatBath β U e) (heatBath γ U e) ≤ ENNReal.ofReal (3*(γ-β)^2) := by 401 obtain ⟨k,hk⟩ := heatBath_fixed_pole hl U e 402 rw [hk β,hk γ] 403 apply (common_pole_wasserstein (fieldStrength_mem hβ U e).1 (fieldStrength_mem hγ U e).1 k).trans 404 apply ENNReal.ofReal_le_ofReal 405 let L := fieldStrength 1 U e 406 have hL : L ∈ Icc 0 6 := by simpa [L] using fieldStrength_mem (by norm_num : (0:ℝ) ≤ 1) U e 407 have he : fieldStrength γ U e - fieldStrength β U e = (γ-β)*L := by dsimp [L,fieldStrength]; ring 408 have hL2 := sq_le_sq' (by linarith [hL.1] : -(6:ℝ) ≤ L) hL.2 409 rw [he,mul_pow] 410 linarith only [mul_le_mul_of_nonneg_left hL2 (sq_nonneg (γ-β))] 411 412 @[simp] theorem diagonalLink_zero : diagonalLink 0 = 1 := by 413 apply mat_injective 414 change pair (phase 0) 0 = (1:M) 415 ext i j; fin_cases i <;> fin_cases j <;> simp [pair,phase,Complex.ext_iff] 416 417 theorem diagonalLink_add (s t : ℝ) : diagonalLink (s+t) = diagonalLink s * diagonalLink t := by 418 have hphase : phase (s+t) = phase s * phase t := by 419 rw [Complex.ext_iff]; simp [phase,cos_add,sin_add,Complex.mul_re,Complex.mul_im]; ring 420 apply mat_injective 421 rw [mat_mul,mat_diag,mat_diag,mat_diag,hphase] 422 ext i j; fin_cases i <;> fin_cases j <;> simp [pair,Matrix.mul_apply,Fin.sum_univ_two] 423 424 theorem diagonalLink_periodic : Function.Periodic diagonalLink (2*π) := by 425 intro t 426 apply mat_injective 427 simp [mat_diag,phase,cos_add_two_pi,sin_add_two_pi] 428 429 theorem linkGeodesic_mul_left (u v h : G) : linkGeodesic (h*u) (h*v) = linkGeodesic u v := by 430 have he : h*u*(h*v)⁻¹ = h*(u*v⁻¹)*h⁻¹ := by group 431 simp only [linkGeodesic,he,polarAngle,scalar_conjugate] 432 433 theorem linkGeodesic_mul_right (u v h : G) : linkGeodesic (u*h) (v*h) = linkGeodesic u v := by 434 have he : u*h*(v*h)⁻¹ = u*v⁻¹ := by group 435 simp only [linkGeodesic,he] 436 437 theorem diagonalLink_distance_le (a b : ℝ) : linkGeodesic (diagonalLink a) (diagonalLink b) ≤ |a-b| := by 438 rw [linkGeodesic,polarAngle,diagonal_scalar_relative,←cos_abs] 439 by_cases h : |a-b| ≤ π 440 · rw [arccos_cos (abs_nonneg _) h] 441 · exact (arccos_le_pi _).trans (le_of_not_ge h) 442 443 #print axioms heatBath_fixed_pole 444 #print axioms heatBath_beta_wasserstein 445 #print axioms moving_pole_wasserstein 446 #print axioms heatBath_link_wasserstein 447 #print axioms common_pole_degree18 448 #print axioms linkGeodesic_eq_angle 449 #print axioms linkCoupling_marginals 450 #print axioms linkCoupling_common_cost 451 #print axioms common_pole_wasserstein 452 #print axioms orbitLink_law 453 #print axioms link_conjugate_diagonal 454 #print axioms common_axis_distance 455 #print axioms equal_angle_antipodes 456 end 457 end YangMills.PeriodicWilson