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

159 lines · 9555 bytes Raw Blame History
1-- SPDX-License-Identifier: Apache-2.0
2import WilsonReplicaFrame
3import WilsonReplicaSlabs
4
5namespace YangMills.PeriodicWilson
6open FundamentalSU2 WilsonPolymer MeasureTheory Real
7open scoped Matrix.Norms.Frobenius
8noncomputable section
9
10def faceMask {l : ℕ+} (p : Face l) (e : Edge l) := decide (e ∈ faceEdges p)
11
12private theorem spatial_edge_time {l : ℕ+} (p : Face l) (t : Axis) (hi : t ≠ p.2.val.1) (hj : t ≠ p.2.val.2)
13 {e : Edge l} (he : e ∈ faceEdges p) : e.1 t = p.1 t := by
14 simp only [faceEdges, Finset.mem_insert, Finset.mem_singleton] at he
15 rcases he with rfl | rfl | rfl | rfl
16 · rfl
17 · change (p.1 + Pi.single p.2.val.1 (1 : ZMod l.val) : Site l) t = _; simp [hi]
18 · change (p.1 + Pi.single p.2.val.2 (1 : ZMod l.val) : Site l) t = _; simp [hj]
19 · rfl
20
21theorem separated_endpoint_cuts {l : ℕ+} (p q : Face l) (t : Axis)
22 (pi₁ : t ≠ p.2.val.1) (pi₂ : t ≠ p.2.val.2) (qi₁ : t ≠ q.2.val.1) (qi₂ : t ≠ q.2.val.2)
23 (h₀ : p.1 t ≠ q.1 t) (h₁ : p.1 t+1 ≠ q.1 t) (h₂ : q.1 t+1 ≠ p.1 t) :
24 Disjoint (faceEdges p) (faceEdges q) ∧
25 ∀ a : Face l, uniformOnFace (faceMask p) a ∨ uniformOnFace (faceMask q) a := by
26 have pt := fun {e} he => spatial_edge_time p t pi₁ pi₂ (e := e) he
27 have qt := fun {e} he => spatial_edge_time q t qi₁ qi₂ (e := e) he
28 refine ⟨Finset.disjoint_left.mpr (fun _ hp hq => h₀ ((pt hp).symm.trans (qt hq))),?_⟩
29 intro a
30 by_cases h : ∃ e ∈ faceEdges a, e ∈ faceEdges p
31 · obtain ⟨e,ea,ep⟩ := h
32 refine .inr ⟨false, fun f fa => ?_⟩
33 have hn : f ∉ faceEdges q := by
34 intro fq
35 have hp := face_base_times a t ea
36 have hq := face_base_times a t fa
37 rw [pt ep] at hp; rw [qt fq] at hq
38 rcases hp with hp | hp <;> rcases hq with hq | hq <;> grind
39 simp [faceMask,hn]
40 · exact .inl ⟨false, fun e ea => by simp [faceMask,show e ∉ faceEdges p from fun ep => h ⟨e,ea,ep⟩]⟩
41
42private def suStaple {l : ℕ+} (U : WilsonConfig l) (e : Edge l) : M := stapleMatrix U e
43
44/-- The signed exchange energy for one link is a product of two differences:
45link matrices and the six-staple matrices in the two backgrounds. -/
46def stapleExchange {l : ℕ+} (β : ℝ) (e : Edge l) (z : WilsonReplicas l) : ℝ :=
47 β/4 * ((suMat (z.1 e) - suMat (z.2 e)) * (suStaple z.1 e - suStaple z.2 e)).trace.re
48
49theorem singleLink_exchange {l : ℕ+} (hl : 1 < l.val) (β : ℝ) (e : Edge l) (z : WilsonReplicas l) :
50 exchangeField β (fun f => decide (f=e)) z = stapleExchange β e z := by
51 let S := exchangeLinks (fun f => decide (f=e)) z
52 have first : S.1 = Function.update z.1 e (z.2 e) := by funext f; by_cases h : f=e <;> simp [S,exchangeLinks,Function.update,h]
53 have second : S.2 = Function.update z.2 e (z.1 e) := by funext f; by_cases h : f=e <;> simp [S,exchangeLinks,Function.update,h]
54 have energy (U : WilsonConfig l) (v : gaugeGroup.image) :
55 wilsonEnergy (Function.update U e v) - wilsonEnergy U = fieldProjection U e (U e) - fieldProjection U e v := by
56 have h₁ := one_link_energy_difference hl U e v
57 have h₂ := one_link_energy_difference hl U e (U e)
58 rw [Function.update_eq_self] at h₂; linarith
59 change (-β*(wilsonEnergy z.1+wilsonEnergy z.2) - -β*(wilsonEnergy S.1+wilsonEnergy S.2))/2 = _
60 rw [first,second]
61 have h₁ := energy z.1 (z.2 e)
62 have h₂ := energy z.2 (z.1 e)
63 change _ = (suMat (z.1 e) * suStaple z.1 e).trace.re/2 - (suMat (z.2 e) * suStaple z.1 e).trace.re/2 at h₁
64 change _ = (suMat (z.2 e) * suStaple z.2 e).trace.re/2 - (suMat (z.1 e) * suStaple z.2 e).trace.re/2 at h₂
65 simp only [stapleExchange,sub_mul,mul_sub,Matrix.trace_sub,Complex.sub_re]
66 linear_combination β/2*(h₁+h₂)
67
68private theorem trace_product_bound (A B : M) : |(A*B).trace.re| ≤ ‖A‖*‖B‖ := by
69 let t := fun x : Fin 2 × Fin 2 => A x.1 x.2 * B x.2 x.1
70 have htr : (A*B).trace = ∑ x, t x := by
71 simp [t,Matrix.trace,Matrix.diag,Matrix.mul_apply,Fintype.sum_prod_type]
72 have habs := (Complex.abs_re_le_norm (∑ x, t x)).trans (norm_sum_le _ _)
73 have hcs := Real.sum_mul_le_sqrt_mul_sqrt (Finset.univ : Finset (Fin 2 × Fin 2))
74 (fun x => ‖A x.1 x.2‖) (fun x => ‖B x.2 x.1‖)
75 have hf (C : M) : ‖C‖ = sqrt (∑ i, ∑ j, ‖C i j‖^2) := by
76 simp [Matrix.frobenius_norm_def,Real.sqrt_eq_rpow]
77 rw [htr,hf A,hf B]
78 simp only [t,norm_mul] at habs
79 simp only [Fintype.sum_prod_type] at habs hcs
80 rw [Finset.sum_comm (f := fun i j : Fin 2 => ‖B j i‖^2)] at hcs
81 simpa only [t,Fintype.sum_prod_type] using habs.trans hcs
82
83/-- An observable sufficient test for moderate exchange fields. Both matrix
84differences are measured in a common pinned frame. -/
85theorem stapleExchange_abs_le {l : ℕ+} (β : ℝ) (e : Edge l) (z : WilsonReplicas l) :
86 |stapleExchange β e z| ≤ |β|/4 *
87 (linkChord (z.1 e) (z.2 e) * ‖stapleMatrix z.1 e - stapleMatrix z.2 e‖) := by
88 rw [stapleExchange,abs_mul,abs_div,abs_of_nonneg (by norm_num : (0:ℝ) ≤ 4)]
89 exact mul_le_mul_of_nonneg_left (trace_product_bound _ _) (by positivity)
90
91/-- If three sides of the loop are pinned, exchanging its four links costs
92exactly the signed one-link staple difference on its remaining side. -/
93theorem framed_face_field {l : ℕ+} (P : PinnedFrame l) (hl : 1 < l.val) (β : ℝ) (p : Face l)
94 (e : Edge l) (he : e ∈ faceEdges p) (pins : ∀ f ∈ faceEdges p, f ≠ e → f ∈ P.edges) (z : WilsonReplicas l) :
95 exchangeField β (faceMask p) (P.pair z) = stapleExchange β e (P.pair z) := by
96 rw [← singleLink_exchange hl]
97 have eq : exchangeLinks (faceMask p) (P.pair z) = exchangeLinks (fun f => decide (f=e)) (P.pair z) := by
98 apply Prod.ext <;> funext f <;> by_cases h : f=e
99 all_goals try (subst f; simp [exchangeLinks,faceMask,he])
100 all_goals by_cases hf : f ∈ faceEdges p
101 all_goals try (solve | simp [exchangeLinks,faceMask,hf,h])
102 all_goals
103 have a : P.project z.1 f = 1 := P.pins z.1 ⟨f,pins f hf h⟩
104 have b : P.project z.2 f = 1 := P.pins z.2 ⟨f,pins f hf h⟩
105 simp [exchangeLinks,faceMask,hf,h,PinnedFrame.pair,a,b]
106 unfold exchangeField; rw [eq]
107
108set_option maxHeartbeats 750000 in
109/-- Two separated plaquette endpoints admit two bounded-size exchange
110surfaces. In the pinned forest each factor uses exactly one link and its staples. -/
111theorem endpoint_covariance_identity {l : ℕ+} (P : PinnedFrame l) (hl : 1 < l.val) (β : ℝ)
112 (p q : Face l) (e f : Edge l) (he : e ∈ faceEdges p) (hf : f ∈ faceEdges q)
113 (pe : ∀ a ∈ faceEdges p, a ≠ e → a ∈ P.edges) (qf : ∀ a ∈ faceEdges q, a ≠ f → a ∈ P.edges)
114 (pq : Disjoint (faceEdges p) (faceEdges q))
115 (cut : ∀ a : Face l, uniformOnFace (faceMask p) a ∨ uniformOnFace (faceMask q) a) :
116 2*wilsonCovariance β (wilsonPlaquetteTrace p) (wilsonPlaquetteTrace q) =
117 ∫ z, replicaDifference (wilsonPlaquetteTrace p) (wilsonPlaquetteTrace q) z *
118 (tanh (stapleExchange β e (P.pair z)) * tanh (stapleExchange β f (P.pair z))) ∂replicaLaw l β := by
119 let F := wilsonPlaquetteTrace p
120 let H := wilsonPlaquetteTrace q
121 let D := replicaDifference F H
122 let mask := fun i : Bool => if i then faceMask q else faceMask p
123 have cF : Continuous F := (wilsonPlaquetteTrace_variation p).continuous
124 have cH : Continuous H := (wilsonPlaquetteTrace_variation q).continuous
125 have cD : Continuous D := ((cF.comp continuous_fst).sub (cF.comp continuous_snd)).mul
126 ((cH.comp continuous_fst).sub (cH.comp continuous_snd))
127 have same (a : Face l) (m : Edge l → Bool) (b : Bool) (hm : ∀ x ∈ faceEdges a, m x = b) (z : WilsonReplicas l) :
128 wilsonPlaquetteTrace a (exchangeLinks m z).1 = wilsonPlaquetteTrace a (if b then z.2 else z.1) ∧
129 wilsonPlaquetteTrace a (exchangeLinks m z).2 = wilsonPlaquetteTrace a (if b then z.1 else z.2) := by
130 constructor <;> apply trace_agrees <;> intro x hx <;> cases b <;> simp [exchangeLinks,hm x hx]
131 have own (a : Face l) : ∀ x ∈ faceEdges a, faceMask a x = true := fun _ h => by simp [faceMask,h]
132 have other {a b : Face l} (h : Disjoint (faceEdges a) (faceEdges b)) :
133 ∀ x ∈ faceEdges a, faceMask b x = false := fun _ hx => by simp [faceMask,Finset.disjoint_left.mp h hx]
134 have anti (i : Bool) (z : WilsonReplicas l) : D (exchangeLinks (mask i) z) = -D z := by
135 cases i
136 · obtain ⟨a,b⟩ := same p _ true (own p) z
137 obtain ⟨c,d⟩ := same q _ false (other pq.symm) z
138 simp only [D,replicaDifference,F,H,mask,Bool.false_eq_true,if_false,if_true] at *; rw [a,b,c,d]; ring
139 · obtain ⟨a,b⟩ := same p _ false (other pq) z
140 obtain ⟨c,d⟩ := same q _ true (own q) z
141 simp only [D,replicaDifference,F,H,mask,if_true,if_false,Bool.false_eq_true] at *; rw [a,b,c,d]; ring
142 have hg (z : WilsonReplicas l) : D (P.pair z) = D z := by
143 simp [D,F,H,replicaDifference,PinnedFrame.pair,PinnedFrame.project,wilsonPlaquetteTrace_gauge_invariant]
144 have eq := P.framed_shell_identity β (Finset.univ : Finset Bool) mask cD hg (fun i _ => anti i)
145 (fun i _ j _ hij a => by
146 cases i <;> cases j
147 · exact False.elim (hij rfl)
148 · exact cut a
149 · exact (cut a).symm
150 · exact False.elim (hij rfl))
151 rw [twice_wilsonCovariance β cF cH,eq]
152 apply integral_congr_ae
153 exact .of_forall fun z => by simp [D,F,H,mask,framed_face_field P hl β p e he pe z,framed_face_field P hl β q f hf qf z,mul_comm]
154
155#print axioms stapleExchange_abs_le
156#print axioms singleLink_exchange
157#print axioms endpoint_covariance_identity
158end
159end YangMills.PeriodicWilson