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

168 lines · 9318 bytes Raw Blame History
1-- SPDX-License-Identifier: Apache-2.0
2import WilsonReplicaVertex
3import Mathlib.MeasureTheory.Integral.Prod
4
5namespace YangMills.PeriodicWilson
6open FundamentalSU2 WilsonPolymer MeasureTheory Real
7noncomputable section
8
9/- The parameter law has no configuration argument: it is independent of the Wilson pair.
10Compactness and continuity supply joint integrability, rather than assuming a Fubini step. -/
11variable {A : Type*} [TopologicalSpace A] [CompactSpace A]
12 [MeasurableSpace A] [BorelSpace A]
13
14/-- Signed averaging; the absolute value must be applied after this integral. -/
15def vertexIntegral {l : ℕ+} (ν : Measure A) (g : A → VertexGauge l)
16 (Q : WilsonReplicas l → ℝ) (z : WilsonReplicas l) : ℝ :=
17 ∫ a, Q (vertexReplica (g a) z) ∂ν
18
19omit [CompactSpace A] [MeasurableSpace A] [BorelSpace A] in
20private theorem familyReplica_continuous {l : ℕ+} {g : A → VertexGauge l}
21 (cg : Continuous g) :
22 Continuous (fun w : A × WilsonReplicas l => vertexReplica (g w.1) w.2) := by
23 apply Continuous.prodMk (continuous_fst.comp continuous_snd)
24 apply continuous_pi; intro e
25 change Continuous (fun w : A × WilsonReplicas l =>
26 g w.1 e.1 * w.2.2 e * (g w.1 (PinnedFrame.edgeEnd e))⁻¹)
27 fun_prop
28
29/-- Fubini for an independent probability on any compact continuous family of gauges.
30The endpoint factor is invariant for every field in that family. -/
31theorem vertexIntegral_integral {l : ℕ+} (β : ℝ) (ν : Measure A)
32 [IsProbabilityMeasure ν] {g : A → VertexGauge l} (cg : Continuous g)
33 {D Q : WilsonReplicas l → ℝ} (cD : Continuous D) (cQ : Continuous Q)
34 (fixed : ∀ a z, D (vertexReplica (g a) z) = D z) :
35 (∫ z, D z * vertexIntegral ν g Q z ∂replicaLaw l β) =
36 ∫ z, D z * Q z ∂replicaLaw l β := by
37 let f := fun (a : A) (z : WilsonReplicas l) => D z * Q (vertexReplica (g a) z)
38 have cf : Continuous (Function.uncurry f) :=
39 (cD.comp continuous_snd).mul (cQ.comp (familyReplica_continuous cg))
40 have hf : Integrable (Function.uncurry f) (ν.prod (replicaLaw l β)) :=
41 cf.integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _)
42 have eq (a : A) : (∫ z, f a z ∂replicaLaw l β) = ∫ z, D z * Q z ∂replicaLaw l β := by
43 have hp := vertexReplica_preserving β (g a)
44 have c : Continuous (fun z => D z * Q z) := cD.mul cQ
45 have h := integral_map hp.measurable.aemeasurable
46 (c.aestronglyMeasurable (μ := (replicaLaw l β).map (vertexReplica (g a))))
47 rw [hp.map_eq] at h
48 simpa only [f, fixed a] using h.symm
49 calc
50 _ = ∫ z, ∫ a, f a z ∂ν ∂replicaLaw l β := by
51 simp only [vertexIntegral, f, integral_const_mul]
52 _ = ∫ a, ∫ z, f a z ∂replicaLaw l β ∂ν :=
53 (integral_integral_swap hf).symm
54 _ = _ := by simp only [eq, integral_const, probReal_univ, one_smul]
55
56/-- Cancellation is retained inside the absolute value, including between gauge draws. -/
57theorem vertexIntegral_bound {l : ℕ+} (β : ℝ) (ν : Measure A)
58 [IsProbabilityMeasure ν] {g : A → VertexGauge l} (cg : Continuous g)
59 {D Q : WilsonReplicas l → ℝ} (cD : Continuous D) (cQ : Continuous Q)
60 (fixed : ∀ a z, D (vertexReplica (g a) z) = D z) :
61 |∫ z, D z * Q z ∂replicaLaw l β| ≤
62 ∫ z, |D z| * |vertexIntegral ν g Q z| ∂replicaLaw l β := by
63 rw [← vertexIntegral_integral β ν cg cD cQ fixed]
64 simpa only [abs_mul] using (abs_integral_le_integral_abs (μ := replicaLaw l β)
65 (f := fun z => D z * vertexIntegral ν g Q z))
66
67/-- Concrete signed slab specialization, reusing the proved fixed-field slab identity. -/
68theorem plaquette_probability_slab_covariance {l : ℕ+} (hl : 1 < l.val) (β : ℝ)
69 (ν : Measure A) [IsProbabilityMeasure ν] {g : A → VertexGauge l} (cg : Continuous g)
70 (p q : Face l) (t : Axis)
71 (pi₁ : t ≠ p.2.val.1) (pi₂ : t ≠ p.2.val.2)
72 (qi₁ : t ≠ q.2.val.1) (qi₂ : t ≠ q.2.val.2)
73 (k : ℕ) (hk : k ≤ cyclicDistance (l := l) (p.1 t) (q.1 t)) :
74 let D := replicaDifference (wilsonPlaquetteTrace p) (wilsonPlaquetteTrace q)
75 let Q := signedSlabProduct β t (p.1 t) k
76 let C := wilsonCovariance β (wilsonPlaquetteTrace p) (wilsonPlaquetteTrace q)
77 2 * C = (∫ z, D z * vertexIntegral ν g Q z ∂replicaLaw l β) ∧
78 |C| ≤ (∫ z, |D z| * |vertexIntegral ν g Q z| ∂replicaLaw l β) / 2 := by
79 dsimp only
80 let D := replicaDifference (wilsonPlaquetteTrace p) (wilsonPlaquetteTrace q)
81 let Q := signedSlabProduct β t (p.1 t) k
82 have cp := (wilsonPlaquetteTrace_variation p).continuous
83 have cq := (wilsonPlaquetteTrace_variation q).continuous
84 have cD : Continuous D := ((cp.comp continuous_fst).sub (cp.comp continuous_snd)).mul
85 ((cq.comp continuous_fst).sub (cq.comp continuous_snd))
86 have cQ : Continuous Q := continuous_finsetProd _ fun r _ =>
87 replica_tanh_continuous.comp (exchangeField_cont β (slabMask t (p.1 t) r))
88 have fixed (a : A) (z : WilsonReplicas l) : D (vertexReplica (g a) z) = D z := by
89 simp [D, vertexReplica, replicaDifference, wilsonPlaquetteTrace_gauge_invariant]
90 have base := (plaquette_vertex_slab_covariance hl β [1] (by simp) p q t
91 pi₁ pi₂ qi₁ qi₂ k hk).1
92 have ident (z : WilsonReplicas l) : vertexReplica (1 : VertexGauge l) z = z := by
93 ext e <;> simp [vertexReplica, gaugeAct]
94 have eq : 2 * wilsonCovariance β (wilsonPlaquetteTrace p) (wilsonPlaquetteTrace q) =
95 ∫ z, D z * Q z ∂replicaLaw l β := by
96 simpa [vertexAverage, ident, D, Q] using base
97 refine ⟨eq.trans (vertexIntegral_integral β ν cg cD cQ fixed).symm, ?_⟩
98 have H := vertexIntegral_bound β ν cg cD cQ fixed
99 rw [← eq, abs_mul, abs_of_nonneg (by norm_num : (0 : ℝ) ≤ 2)] at H
100 change _ ≤ (∫ z, |D z| * |vertexIntegral ν g Q z| ∂replicaLaw l β) / 2
101 linarith only [H]
102
103/-- Independent normalized Haar at each selected vertex; no weights depend on the pair. -/
104def boundaryHaar {l : ℕ+} (B : Finset (Site l)) : Measure (B → gaugeGroup.image) :=
105 Measure.pi fun _ => su2Haar
106
107instance boundaryHaar_probability {l : ℕ+} (B : Finset (Site l)) :
108 IsProbabilityMeasure (boundaryHaar B) := by
109 unfold boundaryHaar
110 infer_instance
111
112/-- Extend the boundary field by the identity, sharing one gauge at all incident links. -/
113def boundaryField {l : ℕ+} (B : Finset (Site l)) (a : B → gaugeGroup.image) : VertexGauge l :=
114 fun v => if h : v ∈ B then a ⟨v, h⟩ else 1
115
116theorem boundaryField_off {l : ℕ+} (B : Finset (Site l)) (a : B → gaugeGroup.image)
117 {v : Site l} (hv : v ∉ B) : boundaryField B a v = 1 := by
118 simp [boundaryField, hv]
119
120theorem boundaryField_continuous {l : ℕ+} (B : Finset (Site l)) : Continuous (boundaryField B) := by
121 apply continuous_pi; intro v
122 by_cases h : v ∈ B
123 · simpa only [boundaryField, dif_pos h] using (continuous_apply (⟨v, h⟩ : B))
124 · simpa only [boundaryField, dif_neg h] using
125 (continuous_const : Continuous (fun _ : B → gaugeGroup.image => (1 : gaugeGroup.image)))
126
127/-- The two top sheets of the radius-r slab boundary (the sampler's positive time direction).
128For side four, source time zero and r=1, these are times two and three. -/
129def outerTopSheets {l : ℕ+} (t : Axis) (s : ZMod l.val) (r : ℕ) : Finset (Site l) :=
130 Finset.univ.filter fun v => v t = s + (r : ZMod l.val) + 1 ∨ v t = s - (r : ZMod l.val)
131
132/-- Exact identification with the sampler's two outer top sheets at periodic side four. -/
133theorem mem_outerTopSheets_four (t : Axis) (v : Site (⟨4, by decide⟩ : ℕ+)) :
134 v ∈ outerTopSheets t 0 1 ↔ v t = 2 ∨ v t = 3 := by
135 simp only [outerTopSheets, Finset.mem_filter, Finset.mem_univ, true_and]
136 change (v t = (0 + 1 + 1 : ZMod 4) ∨ v t = (0 - 1 : ZMod 4)) ↔ _
137 have a : (0 + 1 + 1 : ZMod 4) = 2 := by decide
138 have b : (0 - 1 : ZMod 4) = 3 := by decide
139 rw [a, b]
140 rfl
141
142/-- In particular, use B=outerTopSheets t s 1 for the two outer sheets.
143This theorem is about the unframed SU(2) Wilson measure, not an adaptive optimizer,
144a finite-draw error estimate, a U(1) theorem, or a continuum/mass-gap statement. -/
145theorem plaquette_boundaryHaar_slab_covariance {l : ℕ+} (hl : 1 < l.val) (β : ℝ)
146 (B : Finset (Site l)) (p q : Face l) (t : Axis)
147 (pi₁ : t ≠ p.2.val.1) (pi₂ : t ≠ p.2.val.2)
148 (qi₁ : t ≠ q.2.val.1) (qi₂ : t ≠ q.2.val.2)
149 (k : ℕ) (hk : k ≤ cyclicDistance (l := l) (p.1 t) (q.1 t)) :
150 let D := replicaDifference (wilsonPlaquetteTrace p) (wilsonPlaquetteTrace q)
151 let Q := signedSlabProduct β t (p.1 t) k
152 let C := wilsonCovariance β (wilsonPlaquetteTrace p) (wilsonPlaquetteTrace q)
153 2 * C = (∫ z, D z * vertexIntegral (boundaryHaar B) (boundaryField B) Q z ∂replicaLaw l β) ∧
154 |C| ≤ (∫ z, |D z| * |vertexIntegral (boundaryHaar B) (boundaryField B) Q z|
155 ∂replicaLaw l β) / 2 :=
156 plaquette_probability_slab_covariance hl β (boundaryHaar B) (boundaryField_continuous B)
157 p q t pi₁ pi₂ qi₁ qi₂ k hk
158
159#print axioms vertexIntegral_integral
160#print axioms vertexIntegral_bound
161#print axioms plaquette_probability_slab_covariance
162#print axioms boundaryHaar_probability
163#print axioms boundaryField_off
164#print axioms boundaryField_continuous
165#print axioms mem_outerTopSheets_four
166#print axioms plaquette_boundaryHaar_slab_covariance
167end
168end YangMills.PeriodicWilson