yang
This project has not described itself yet.
Brought by drakestapleton
yang / proofs / WilsonBlocking.lean
| 1 | -- SPDX-License-Identifier: Apache-2.0 |
| 2 | import WilsonPlaquetteClustering |
| 3 | |
| 4 | namespace YangMills.PeriodicWilson |
| 5 | open FundamentalSU2 WilsonPolymer Real MeasureTheory |
| 6 | noncomputable section |
| 7 | private abbrev Config (l : ℕ+) := Configuration gaugeGroup l |
| 8 | |
| 9 | /-- Embed one coarse periodic coordinate at its block origin. -/ |
| 10 | def blockCoordinate (b l : ℕ+) : ZMod l.val →+ ZMod (b*l).val where |
| 11 | toFun x := (b.val * x.val : ℕ) |
| 12 | map_zero' := by |
| 13 | change ((b.val * (0 : ZMod l.val).val : ℕ) : ZMod (b*l).val) = 0 |
| 14 | rw [ZMod.val_zero, Nat.mul_zero, Nat.cast_zero] |
| 15 | map_add' x y := by |
| 16 | simp only [ZMod.val_add, ← Nat.cast_add, ← Nat.mul_add] |
| 17 | apply (ZMod.natCast_eq_natCast_iff' ..).2 |
| 18 | change _ % (b.val*l.val) = _ % (b.val*l.val) |
| 19 | rw [Nat.mul_mod_mul_left, Nat.mul_mod_mul_left, Nat.mod_mod] |
| 20 | |
| 21 | @[simp] theorem blockCoordinate_val (b l : ℕ+) (x : ZMod l.val) : |
| 22 | (blockCoordinate b l x).val = b.val*x.val := |
| 23 | ZMod.val_natCast_of_lt (Nat.mul_lt_mul_of_pos_left x.val_lt b.prop) |
| 24 | |
| 25 | theorem blockCoordinate_distance (b l : ℕ+) (x y : ZMod l.val) : |
| 26 | ((blockCoordinate b l y - blockCoordinate b l x).valMinAbs).natAbs = |
| 27 | b.val*((y-x).valMinAbs).natAbs := by |
| 28 | rw [← map_sub, ZMod.valMinAbs_natAbs_eq_min, ZMod.valMinAbs_natAbs_eq_min, |
| 29 | blockCoordinate_val, PNat.mul_coe, ← Nat.mul_sub_left_distrib, Nat.mul_min_mul_left] |
| 30 | |
| 31 | def blockSite (b : ℕ+) {l : ℕ+} (x : Site l) : Site (b*l) := fun t => blockCoordinate b l (x t) |
| 32 | |
| 33 | private theorem blockSite_step (b : ℕ+) {l : ℕ+} (hl : 1 < l.val) (x : Site l) (i : Axis) : |
| 34 | blockSite b (x + Pi.single i 1) = blockSite b x + b.val • Pi.single i 1 := by |
| 35 | haveI : Fact (1 < l.val) := ⟨hl⟩ |
| 36 | funext t |
| 37 | change blockCoordinate b l (x t + (Pi.single i 1 : Site l) t) = |
| 38 | blockCoordinate b l (x t) + b.val • ((Pi.single i 1 : Site (b*l)) t) |
| 39 | rw [map_add] |
| 40 | by_cases h : t = i |
| 41 | · subst t |
| 42 | simp only [Pi.single_eq_same, add_right_inj] |
| 43 | change ((b.val * (1 : ZMod l.val).val : ℕ) : ZMod (b*l).val) = _ |
| 44 | rw [ZMod.val_one l.val, Nat.mul_one] |
| 45 | exact (nsmul_one _).symm |
| 46 | · simp only [Pi.single_eq_of_ne h, map_zero, nsmul_zero] |
| 47 | |
| 48 | /-- Ordered product of the next n positive links, including periodic wraparound. -/ |
| 49 | def straightPath {g : GaugeGroup} {l : ℕ+} (U : Configuration g l) (x : Site l) (i : Axis) : |
| 50 | ℕ → g.image |
| 51 | | 0 => 1 |
| 52 | | n+1 => straightPath U x i n * U (x + n • Pi.single i 1, i) |
| 53 | |
| 54 | def blockLinks (b : ℕ+) {g : GaugeGroup} {l : ℕ+} (U : Configuration g (b*l)) : |
| 55 | Configuration g l := fun e => straightPath U (blockSite b e.1) e.2 b.val |
| 56 | |
| 57 | private theorem straightPath_gauge {g : GaugeGroup} {l : ℕ+} (Ω : Site l → g.image) |
| 58 | (U : Configuration g l) (x : Site l) (i : Axis) (n : ℕ) : |
| 59 | straightPath (gaugeAct Ω U) x i n = |
| 60 | Ω x * straightPath U x i n * (Ω (x+n • Pi.single i 1))⁻¹ := by |
| 61 | induction n with |
| 62 | | zero => simp [straightPath] |
| 63 | | succ n ih => |
| 64 | rw [straightPath, ih, straightPath] |
| 65 | simp only [gaugeAct, succ_nsmul, ← add_assoc] |
| 66 | group |
| 67 | |
| 68 | /-- Interior gauge transformations cancel along each retained path. -/ |
| 69 | theorem blockLinks_gauge {g : GaugeGroup} (b : ℕ+) {l : ℕ+} (hl : 1 < l.val) |
| 70 | (Ω : Site (b*l) → g.image) (U : Configuration g (b*l)) : |
| 71 | blockLinks b (gaugeAct Ω U) = gaugeAct (Ω ∘ blockSite b) (blockLinks b U) := by |
| 72 | funext e |
| 73 | simp only [blockLinks, straightPath_gauge, gaugeAct, Function.comp_apply, blockSite_step b hl] |
| 74 | |
| 75 | theorem blockedPlaquette_gauge (b : ℕ+) {l : ℕ+} (hl : 1 < l.val) |
| 76 | (Ω : Site (b*l) → gaugeGroup.image) (p : Face l) (U : Config (b*l)) : |
| 77 | wilsonPlaquetteTrace p (blockLinks b (gaugeAct Ω U)) = wilsonPlaquetteTrace p (blockLinks b U) := by |
| 78 | rw [blockLinks_gauge b hl, wilsonPlaquetteTrace_gauge_invariant] |
| 79 | |
| 80 | private theorem straightPath_continuous {l : ℕ+} (x : Site l) (i : Axis) (n : ℕ) : |
| 81 | Continuous (fun U : Config l => straightPath U x i n) := by |
| 82 | induction n with |
| 83 | | zero => exact continuous_const |
| 84 | | succ n ih => exact ih.mul (continuous_apply _) |
| 85 | |
| 86 | theorem blockLinks_continuous (b l : ℕ+) : |
| 87 | Continuous (blockLinks b : Config (b*l) → Config l) := |
| 88 | continuous_pi fun e => straightPath_continuous (blockSite b e.1) e.2 b.val |
| 89 | |
| 90 | /-- Exact marginal on ordered path products of the fine periodic Wilson field. -/ |
| 91 | def blockedWilsonLaw (b l : ℕ+) (β : ℝ) : Measure (Config l) := |
| 92 | (wilsonLaw gaugeGroup (b*l) β su2Haar).map (blockLinks b) |
| 93 | |
| 94 | instance blockedWilsonLaw_probability (b l : ℕ+) (β : ℝ) : IsProbabilityMeasure (blockedWilsonLaw b l β) := by |
| 95 | haveI := wilson_probability (b*l) β |
| 96 | exact Measure.isProbabilityMeasure_map (blockLinks_continuous b l).aemeasurable |
| 97 | |
| 98 | theorem blockedWilsonLaw_integral (b l : ℕ+) (β : ℝ) {F : Config l → ℝ} (hF : Continuous F) : |
| 99 | ∫ V, F V ∂blockedWilsonLaw b l β = ∫ U, F (blockLinks b U) ∂wilsonLaw gaugeGroup (b*l) β su2Haar := |
| 100 | integral_map (blockLinks_continuous b l).aemeasurable hF.aestronglyMeasurable |
| 101 | |
| 102 | /-- The fine link with offset n in a retained coarse link. -/ |
| 103 | def blockEdge (b : ℕ+) {l : ℕ+} (e : Edge l) (n : Fin b.val) : Edge (b*l) := |
| 104 | (blockSite b e.1 + n.val • Pi.single e.2 1, e.2) |
| 105 | |
| 106 | private theorem blockEdge_coordinate (b : ℕ+) {l : ℕ+} (e : Edge l) (n : Fin b.val) (t : Axis) : |
| 107 | ((blockEdge b e n).1 t).val = b.val*(e.1 t).val + (if t=e.2 then n.val else 0) := by |
| 108 | have bound := Nat.mul_le_mul_left b.val (Nat.succ_le_of_lt (e.1 t).val_lt) |
| 109 | rw [Nat.mul_succ] at bound |
| 110 | change (blockCoordinate b l (e.1 t) + n.val • ((Pi.single e.2 1 : Site (b*l)) t)).val = _ |
| 111 | by_cases h : t = e.2 |
| 112 | · subst t |
| 113 | simp only [Pi.single_eq_same, nsmul_eq_mul, mul_one] |
| 114 | change (((b.val*(e.1 e.2).val : ℕ) : ZMod (b*l).val) + (n.val : ZMod (b*l).val)).val = _ |
| 115 | rw [← Nat.cast_add] |
| 116 | apply ZMod.val_natCast_of_lt |
| 117 | change _ < b.val*l.val |
| 118 | omega |
| 119 | · rw [Pi.single_eq_of_ne h, nsmul_zero, add_zero, blockCoordinate_val, if_neg h, Nat.add_zero] |
| 120 | |
| 121 | /-- Distinct coarse links use disjoint fine links, even across a periodic seam. -/ |
| 122 | theorem blockEdge_injective (b l : ℕ+) : |
| 123 | Function.Injective (fun a : Edge l × Fin b.val => blockEdge b a.1 a.2) := by |
| 124 | rintro ⟨⟨x,i⟩,n⟩ ⟨⟨y,j⟩,m⟩ h |
| 125 | have hij : i=j := congrArg Prod.snd h |
| 126 | subst j |
| 127 | have coord (t : Axis) := congrArg (fun a : Edge (b*l) => (a.1 t).val) h |
| 128 | simp only [blockEdge_coordinate] at coord |
| 129 | have div (z : ℕ) (k : Fin b.val) : (b.val*z+k.val)/b.val = z := |
| 130 | (Nat.mul_add_div b.prop z k.val).trans ((congrArg (z + ·) (Nat.div_eq_of_lt k.isLt)).trans (Nat.add_zero z)) |
| 131 | have hx : x=y := by |
| 132 | funext t |
| 133 | apply ZMod.val_injective |
| 134 | by_cases ht : t=i |
| 135 | · have H := congrArg (fun a : ℕ => a/b.val) (coord t) |
| 136 | simpa [ht, div] using H |
| 137 | · have H := coord t |
| 138 | simp [ht] at H |
| 139 | exact H |
| 140 | subst y |
| 141 | have hn : n=m := by |
| 142 | apply Fin.ext |
| 143 | simpa using coord i |
| 144 | subst m |
| 145 | rfl |
| 146 | |
| 147 | private theorem straightPath_distance {l : ℕ+} (U V : Config l) (x : Site l) (i : Axis) (n : ℕ) : |
| 148 | linkGeodesic (straightPath U x i n) (straightPath V x i n) ≤ |
| 149 | ∑ k : Fin n, linkGeodesic (U (x + k.val • Pi.single i 1,i)) (V (x + k.val • Pi.single i 1,i)) := by |
| 150 | induction n with |
| 151 | | zero => |
| 152 | simp only [straightPath, Finset.univ_eq_empty, Finset.sum_empty] |
| 153 | rw [linkGeodesic_eq_angle, InnerProductGeometry.angle_self] |
| 154 | exact norm_ne_zero_iff.mp (by rw [coordinates_norm]; norm_num) |
| 155 | | succ n ih => |
| 156 | rw [Fin.sum_univ_castSucc] |
| 157 | exact (linkGeodesic_product_le ..).trans (add_le_add ih le_rfl) |
| 158 | |
| 159 | /-- Pull a coarse link Lipschitz profile back to its disjoint fine paths. -/ |
| 160 | def blockProfile (b : ℕ+) {l : ℕ+} (v : Edge l → ℝ) (j : Edge (b*l)) : ℝ := |
| 161 | ∑ a : Edge l × Fin b.val, if blockEdge b a.1 a.2 = j then v a.1 else 0 |
| 162 | |
| 163 | private theorem blockProfile_on (b : ℕ+) {l : ℕ+} (v : Edge l → ℝ) (a : Edge l × Fin b.val) : |
| 164 | blockProfile b v (blockEdge b a.1 a.2) = v a.1 := by |
| 165 | have he (c : Edge l × Fin b.val) : blockEdge b c.1 c.2 = blockEdge b a.1 a.2 ↔ c=a := |
| 166 | (blockEdge_injective b l).eq_iff |
| 167 | simp [blockProfile, he] |
| 168 | |
| 169 | private theorem blockProfile_off (b : ℕ+) {l : ℕ+} (v : Edge l → ℝ) (j : Edge (b*l)) |
| 170 | (hj : ¬ ∃ a : Edge l × Fin b.val, blockEdge b a.1 a.2 = j) : blockProfile b v j = 0 := by |
| 171 | push Not at hj |
| 172 | simp [blockProfile, hj] |
| 173 | |
| 174 | private theorem blockProfile_sum (b : ℕ+) {l : ℕ+} (v : Edge l → ℝ) : |
| 175 | ∑ j, blockProfile b v j = b.val * ∑ e, v e := by |
| 176 | unfold blockProfile |
| 177 | rw [Finset.sum_comm] |
| 178 | simp [Fintype.sum_prod_type, nsmul_eq_mul, Finset.mul_sum] |
| 179 | |
| 180 | theorem LinkVariation.blockLinks {l : ℕ+} (b : ℕ+) {v : Edge l → ℝ} {F : Config l → ℝ} |
| 181 | (hv : ∀ e, 0 ≤ v e) (hF : LinkVariation v F) : LinkVariation (blockProfile b v) (F ∘ blockLinks b) := by |
| 182 | intro U V |
| 183 | apply (hF _ _).trans |
| 184 | calc |
| 185 | _ ≤ ∑ e : Edge l, v e * ∑ n : Fin b.val, |
| 186 | linkGeodesic (U (blockEdge b e n)) (V (blockEdge b e n)) := |
| 187 | Finset.sum_le_sum fun e _ => mul_le_mul_of_nonneg_left (straightPath_distance ..) (hv e) |
| 188 | _ = _ := by |
| 189 | simp only [blockProfile, Finset.sum_mul, ite_mul, zero_mul] |
| 190 | rw [Finset.sum_comm] |
| 191 | simp [Fintype.sum_prod_type, Finset.mul_sum] |
| 192 | |
| 193 | private theorem plaquetteWeight_direction {l : ℕ+} (p : Face l) (e : Edge l) |
| 194 | (he : plaquetteWeight p e ≠ 0) : e.2 = p.2.val.1 ∨ e.2 = p.2.val.2 := by |
| 195 | by_contra! h |
| 196 | have hcorner {c : Edge l} (hc : c.2 = p.2.val.1 ∨ c.2 = p.2.val.2) : e ≠ c := by |
| 197 | rintro rfl |
| 198 | exact hc.elim h.1 h.2 |
| 199 | exact he (by simp [plaquetteWeight, hcorner (.inl rfl : (corners p).1.2 = _ ∨ _), |
| 200 | hcorner (.inr rfl : _ ∨ (corners p).2.1.2 = _), |
| 201 | hcorner (.inl rfl : (corners p).2.2.1.2 = _ ∨ _), |
| 202 | hcorner (.inr rfl : _ ∨ (corners p).2.2.2.2 = _)]) |
| 203 | |
| 204 | theorem blockedPlaquette_slice (b : ℕ+) {l : ℕ+} (t : Axis) (p : Face l) |
| 205 | (hi : t ≠ p.2.val.1) (hj : t ≠ p.2.val.2) (j : Edge (b*l)) |
| 206 | (h : blockProfile b (plaquetteWeight p) j ≠ 0) : j.1 t = blockCoordinate b l (p.1 t) := by |
| 207 | by_cases hmem : ∃ a : Edge l × Fin b.val, blockEdge b a.1 a.2 = j |
| 208 | · obtain ⟨a,rfl⟩ := hmem |
| 209 | rw [blockProfile_on] at h |
| 210 | have hdir : t ≠ a.1.2 := fun H => (plaquetteWeight_direction p a.1 h).elim |
| 211 | (fun h1 => hi (H.trans h1)) (fun h2 => hj (H.trans h2)) |
| 212 | apply ZMod.val_injective |
| 213 | exact (blockEdge_coordinate b a.1 a.2 t).trans (by rw [if_neg hdir, Nat.add_zero, plaquetteWeight_slice t hi hj h, blockCoordinate_val]) |
| 214 | · exact (h (blockProfile_off b _ j hmem)).elim |
| 215 | |
| 216 | /-- Connected two-point function evaluated under the exact blocked law. -/ |
| 217 | def blockedCovariance (b : ℕ+) {l : ℕ+} (β : ℝ) (F G : Config l → ℝ) := |
| 218 | let μ := blockedWilsonLaw b l β |
| 219 | (∫ V, F V * G V ∂μ) - (∫ V, F V ∂μ) * ∫ V, G V ∂μ |
| 220 | |
| 221 | theorem blockedCovariance_eq (b : ℕ+) {l : ℕ+} (β : ℝ) {F G : Config l → ℝ} |
| 222 | (hF : Continuous F) (hG : Continuous G) : |
| 223 | blockedCovariance b β F G = wilsonCovariance β (F ∘ blockLinks b) (G ∘ blockLinks b) := by |
| 224 | dsimp only [blockedCovariance, wilsonCovariance, Function.comp_apply] |
| 225 | rw [blockedWilsonLaw_integral b l β (F := fun V => F V * G V) (hF.mul hG), blockedWilsonLaw_integral b l β hF, |
| 226 | blockedWilsonLaw_integral b l β hG] |
| 227 | |
| 228 | theorem blockedPlaquetteProfile_bounds (b : ℕ+) {l : ℕ+} (hl : 1 < l.val) (f : Face l) (j : Edge (b*l)) : |
| 229 | 0 ≤ blockProfile b (plaquetteWeight f) j ∧ blockProfile b (plaquetteWeight f) j ≤ 1 := by |
| 230 | by_cases H : ∃ a : Edge l × Fin b.val, blockEdge b a.1 a.2 = j |
| 231 | · obtain ⟨a,rfl⟩ := H |
| 232 | rw [blockProfile_on] |
| 233 | exact plaquetteWeight_bounds hl f a.1 |
| 234 | · rw [blockProfile_off b _ _ H] |
| 235 | norm_num |
| 236 | |
| 237 | theorem blockedPlaquetteProfile_sum (b : ℕ+) {l : ℕ+} (p : Face l) : |
| 238 | ∑ e, blockProfile b (plaquetteWeight p) e = b.val * 4 := by |
| 239 | have hsum : ∑ e, plaquetteWeight p e = 4 := by simp [plaquetteWeight, Finset.sum_add_distrib]; norm_num |
| 240 | rw [blockProfile_sum, hsum] |
| 241 | |
| 242 | /-- Spatial traces of b-by-b Wilson loops under exact blocking. The cyclic |
| 243 | time separation in the fine field is b times the coarse separation, and the |
| 244 | perimeter profile sums to 4b with no fine link counted twice. -/ |
| 245 | theorem blockedWilson_plaquette_clustering (b : ℕ+) {l : ℕ+} (hl : 1 < l.val) {β : ℝ} |
| 246 | (hβ : 0 ≤ β) (hwindow : β < sqrt 3/18) (t : Axis) (p q : Face l) |
| 247 | (hpi : t ≠ p.2.val.1) (hpj : t ≠ p.2.val.2) (hqi : t ≠ q.2.val.1) (hqj : t ≠ q.2.val.2) : |
| 248 | |blockedCovariance b β (wilsonPlaquetteTrace p) (wilsonPlaquetteTrace q)| ≤ |
| 249 | (4*b.val*π^2/(1-straightRow β))*(straightRow β ^ b.val)^((q.1 t-p.1 t).valMinAbs.natAbs) := by |
| 250 | have hfine : 1 < (b*l).val := hl.trans_le (Nat.le_mul_of_pos_left _ b.prop) |
| 251 | let k := (q.1 t-p.1 t).valMinAbs.natAbs |
| 252 | have sep : SupportsSeparated (blockProfile b (plaquetteWeight p)) (blockProfile b (plaquetteWeight q)) (b.val*k) := by |
| 253 | apply supportsSeparated_of_axis hfine t |
| 254 | intro e a he ha |
| 255 | rw [periodicAxisDistance, blockedPlaquette_slice b t p hpi hpj e he, |
| 256 | blockedPlaquette_slice b t q hqi hqj a ha] |
| 257 | exact (blockCoordinate_distance b l (p.1 t) (q.1 t)).ge |
| 258 | have variation (f : Face l) := (wilsonPlaquetteTrace_variation f).blockLinks b |
| 259 | (fun e => (plaquetteWeight_bounds hl f e).1) |
| 260 | have H := wilson_spatial_clustering hfine hβ hwindow (B := 1) (by norm_num) |
| 261 | (fun j => (blockedPlaquetteProfile_bounds b hl p j).1) (fun j => (blockedPlaquetteProfile_bounds b hl q j).1) (fun j => (blockedPlaquetteProfile_bounds b hl q j).2) |
| 262 | (variation p) (variation q) _ sep |
| 263 | rw [blockedCovariance_eq b β (wilsonPlaquetteTrace_variation p).continuous |
| 264 | (wilsonPlaquetteTrace_variation q).continuous] |
| 265 | rw [blockedPlaquetteProfile_sum, pow_mul] at H |
| 266 | convert H using 1 |
| 267 | dsimp [k] |
| 268 | ring |
| 269 | |
| 270 | /-- Converting the blocked exponential bound to physical time gives the |
| 271 | same inverse correlation length for a spacing R and a coarse spacing bR. -/ |
| 272 | theorem block_physical_rate (b : ℕ+) (α R : ℝ) (hR : 0 < R) : |
| 273 | -log (α^b.val) / (b.val * R) = -log α / R := by |
| 274 | have hb : (0:ℝ) < b.val := by exact_mod_cast b.prop |
| 275 | rw [log_pow] |
| 276 | field_simp |
| 277 | |
| 278 | #print axioms blockCoordinate_distance |
| 279 | #print axioms blockEdge_injective |
| 280 | #print axioms blockedPlaquette_gauge |
| 281 | #print axioms blockedWilsonLaw_integral |
| 282 | #print axioms LinkVariation.blockLinks |
| 283 | #print axioms blockedCovariance_eq |
| 284 | #print axioms blockedWilson_plaquette_clustering |
| 285 | #print axioms block_physical_rate |
| 286 | end |
| 287 | end YangMills.PeriodicWilson |