Yang–Mills: the 2026 Lean construction, rerun and read; the mass gap still open
OpenAI's 2026 Lean construction of 4D Yang–Mills as the expert group keeps it: settle what it proves, rerun it, read it; uniqueness and the mass gap are open, and Clay's problem unsolved

| 1 | import YM.Next.STATIONARY.Lift.Pathways |
| 2 | |
| 3 | |
| 4 | set_option autoImplicit false |
| 5 | /-! Orbit convention (negative at the *input* axis). -/ |
| 6 | noncomputable section |
| 7 | namespace YM.Stationary |
| 8 | open Function Lattice RG Exterior Wilson Precision Bloch Laurent Filter Finset Asymptotics |
| 9 | open Matrix (transpose mulVec of) |
| 10 | open scoped Matrix Topology ContDiff BigOperators NNReal |
| 11 | variable {G : Gauge} {m : Side} |
| 12 | |
| 13 | lemma act_phase (s : Signed) (p : Momentum) (z : Cover) : mode (s.act p) (s.act z)=mode p z := by |
| 14 | unfold Laurent.mode; congr 2 |
| 15 | rw [← Equiv.sum_comp s.perm]; exact sum_congr rfl fun k _ => by rw [s.act_at,s.act_at]; split <;> simp |
| 16 | |
| 17 | lemma mirror_cell (s : Signed) (p q : Site m) : cell (s.act p) (s.act q)=cell p q := by |
| 18 | let P := lift p; let Q := lift q |
| 19 | have hp : wrap m (s.act P)=s.act p := by unfold P; rw [← wrap_signed,wrap_lift] |
| 20 | have hq : wrap m (s.act Q)=s.act q := by unfold Q; rw [← wrap_signed,wrap_lift] |
| 21 | rw [← hq,cell_wrap] |
| 22 | obtain ⟨i,H⟩ := cover_of_eq _ _ ((wrap_lift (s.act p)).trans hp.symm) |
| 23 | have hs : s.act (mon p)=mon (s.act p)+reciprocal i := by |
| 24 | ext1 j; obtain ⟨j,rfl⟩ := s.perm.surjective j |
| 25 | have hv : (if s.flip j then -P j else P j)=lift (s.act p) (s.perm j)+m.val • i (s.perm j) := |
| 26 | (s.act_at ..).symm.trans (congr_fun H _) |
| 27 | rw [s.act_at,Pi.add_apply]; unfold mon reciprocal; simp only [Pi.smul_apply, smul_eq_mul] |
| 28 | cases hj : s.flip j |
| 29 | · simp only [hj,Bool.false_eq_true,↓reduceIte] at hv ⊢ |
| 30 | rw [show lift p j=P j from rfl,hv,nsmul_eq_mul]; push_cast; field_simp [side_ne] |
| 31 | have he : P j=-(lift (s.act p) (s.perm j)+m.val • i (s.perm j)) := by |
| 32 | simpa [hj] using congr_arg Neg.neg hv |
| 33 | simp only [if_true] |
| 34 | rw [show lift p j=P j from rfl,he,nsmul_eq_mul]; push_cast; field_simp [side_ne] |
| 35 | have ht := act_phase s (mon p) Q |
| 36 | rw [hs,mode_phase,mode_periodic,mul_one] at ht; exact ht |
| 37 | |
| 38 | -- canonical direction and starting base |
| 39 | variable (s : Signed) |
| 40 | |
| 41 | def flipCoords (R : Type) [CommRing R] : (Lines G m 1 → R) →ₗ[R] (Lines G m 1 → R) := LinearMap.pi (fun x => |
| 42 | let k := axisEquiv.symm x.2.1 |
| 43 | let q := s.perm k |
| 44 | if s.flip k then -(LinearMap.proj (s.act x.1-step q,coord q,x.2.2)) else LinearMap.proj (s.act x.1,coord q,x.2.2)) |
| 45 | lemma flip_price {R : Type} [CommRing R] (x : Lines G m 1 → R) (i k j) : flipCoords (G:=G) (m:=m) s R x (i,coord k,j)= |
| 46 | if s.flip k then -x (s.act i-step (s.perm k), coord (s.perm k), j) else x (s.act i,coord (s.perm k),j) := by |
| 47 | simp only [flipCoords, LinearMap.pi_apply,show axisEquiv.symm (coord k)=k from axisEquiv.symm_apply_apply _]; split <;> rfl |
| 48 | lemma flip_scalar (x : Link G m) : axes (flipCoords (G:=G) (m:=m) s ℝ x)=flipCoords (G:=G) (m:=m) s ℂ (axes x) := by |
| 49 | ext1 ⟨p,i,j⟩; obtain ⟨i,rfl⟩ := axisEquiv.surjective i; unfold axes; simp only [coord_map,flip_price]; split <;> simp |
| 50 | |
| 51 | lemma flip_links (x : Link G m) : pull s 0 (input G m x)=input G m (flipCoords s ℝ x) := by |
| 52 | have he := Work.F03.represent_pulled s (arm G m 1 x) (1:ℝ); simp only [one_smul] at he |
| 53 | unfold input; rw [he]; congr 1; ext ⟨i,k⟩ j |
| 54 | obtain ⟨k,rfl⟩ := axisEquiv.surjective k |
| 55 | simp only [coord_map,Bid.pulled,show axisEquiv.symm (coord k)=k from axisEquiv.symm_apply_apply _,arm_apply,flip_price] |
| 56 | unfold affine Step.used Step.rotate posDir; cases h : s.flip k <;> simp [*,arm_apply] |
| 57 | |
| 58 | def reflectFee (p : Momentum) (k : Axis) : ℂ := if s.flip k then -mode p (-(step (s.perm k))) else 1 |
| 59 | lemma reflect_size (p : Site m) (k : Axis) : ‖reflectFee s (mon p) k‖=1 := by |
| 60 | unfold reflectFee; split |
| 61 | · rw [norm_neg,mode_real _ _ (real_frequency _)] |
| 62 | exact norm_one |
| 63 | lemma flipped (i : Site m) (a : Axis) (j : G.ColorIndex) : |
| 64 | flipCoords s ℂ (relay i (coord (s.perm a), j))=reflectFee s (mon i) a • relay (s⁻¹.act i) (coord a,j) := by |
| 65 | ext1 ⟨p,x,b⟩; obtain ⟨x,rfl⟩ := axisEquiv.surjective x |
| 66 | simp only [coord_map, flip_price, reflectFee, Pi.smul_apply, smul_eq_mul] |
| 67 | by_cases he : x=a |
| 68 | · subst x |
| 69 | have hx : cell i (s.act p)=cell (s⁻¹.act i) p := by simpa only [s.act_inv] using mirror_cell s (s⁻¹.act i) p |
| 70 | cases hk : s.flip a |
| 71 | · simp [*,relay,tune,Pi.single_apply] |
| 72 | simp only [if_true]; unfold relay tune |
| 73 | simp only [sub_eq_add_neg,cell_add,hx] |
| 74 | rw [show -(step (s.perm a) : Site m)=wrap m (-(step (s.perm a))) by rw [map_neg,wrap_step],cell_wrap] |
| 75 | simp only [Pi.single_apply, Prod.mk.injEq,true_and]; ring |
| 76 | cases hx : s.flip x <;> cases hv : s.flip a <;> simp [*,relay,tune,coord_iff] |
| 77 | |
| 78 | section orbit |
| 79 | variable {α β : Type} [Fintype α] [DecidableEq α] [Fintype β] [DecidableEq β] |
| 80 | |
| 81 | theorem note_comp {g : Corn α → ℝ} (L : Corn β →L[ℝ] Corn α) (M : Phase β →ₗ[ℂ] Phase α) |
| 82 | (h : ∀ x, axes (L x)=M (axes x)) (hf : AnalyticAt ℝ g 0) (n : ℕ) : |
| 83 | noteAt (g ∘ L) n=(noteAt g n).compLinearMap fun _ => M := by |
| 84 | apply enlarge_unique; intro v |
| 85 | rw [note_real,MultilinearMap.compLinearMap_apply, |
| 86 | show (fun i : Fin n => M ((axes ∘ v) i))= axes ∘ (L ∘ v) from funext fun i => (h (v i)).symm, note_real] |
| 87 | unfold Tensor.coeff |
| 88 | rw [_root_.smul_apply, _root_.smul_apply,wired L (by rw [map_zero]; exact hf), map_zero] |
| 89 | lemma note_sum {ι : Type} [Fintype ι] (f : ι → Corn α → ℝ) (h : ∀ i, AnalyticAt ℝ (f i) 0) (n : ℕ) : |
| 90 | noteAt (fun p => ∑ i, f i p) n = ∑ i, noteAt (f i) n := by |
| 91 | apply enlarge_unique; intro v |
| 92 | rw [_root_.sum_apply]; simp_rw [note_real] |
| 93 | rw [show (fun p => ∑ i, f i p)=∑ i,f i from funext fun x => (Finset.sum_apply ..).symm, Tensor.coeff_sum _ _ _ _ (fun i _ => (h i).contDiffAt),_root_.sum_apply,Complex.ofReal_sum] |
| 94 | |
| 95 | lemma note_mean {ι : Type} [Fintype ι] (f : ι → Corn α → ℝ) (h : ∀ i, AnalyticAt ℝ (f i) 0) (n : ℕ) : |
| 96 | noteAt (fun p => Patch.average fun i => f i p) n=(Fintype.card ι :ℂ)⁻¹ • ∑ i, noteAt (f i) n := by |
| 97 | apply enlarge_unique; intro v |
| 98 | rw [_root_.smul_apply,← note_sum f h]; simp_rw [note_real] |
| 99 | unfold Patch.average Tensor.coeff; rw [_root_.smul_apply,_root_.smul_apply] |
| 100 | have he : ContDiffAt ℝ n (fun p => ∑ i, f i p) 0 := ContDiffAt.sum fun i _ => (h i).contDiffAt |
| 101 | rw [show (fun p => (Fintype.card ι:ℝ)⁻¹ * ∑ i, f i p) = (Fintype.card ι:ℝ)⁻¹ • (fun p => ∑ i, f i p) from rfl, |
| 102 | iteratedFDeriv_const_smul_apply he]; simp; ring |
| 103 | end orbit |
| 104 | end YM.Stationary |
| 105 | end |
| 106 | |
| 107 | /-! |
| 108 | # Attach a per-period approximation without a symmetry assumption about paths |
| 109 | |
| 110 | Applies `Features` data purely to build paths. The unmasked branch runs the **same** paths |
| 111 | in the same orientation orbit. Needn't assert the lifted kernels have any covariance: |
| 112 | transfer comparing to the known rotated *score scalar* on that period. |
| 113 | Error in complex **Taylor coefficient** convention (multiply by factorial |
| 114 | for mixed derivative bounds). No comparison to masks. |
| 115 | -/ |
| 116 | noncomputable section |
| 117 | namespace YM.Stationary |
| 118 | open Function Lattice RG Exterior Wilson Precision Bloch Laurent Filter Finset Asymptotics |
| 119 | open Matrix (transpose mulVec of) |
| 120 | open scoped Matrix Topology ContDiff BigOperators NNReal |
| 121 | variable {G : Gauge} {m : Side} {t n : ℕ} {σ A ε : ℝ} |
| 122 | |
| 123 | -- flip as continuous map over ℝ |
| 124 | def orderTurn (s : Signed) : Link G m →L[ℝ] Link G m := |
| 125 | LinearMap.toContinuousLinearMap (flipCoords s ℝ) |
| 126 | |
| 127 | /-- The `SameJet` comparison uses real pullback by signed permutation. -/ |
| 128 | def Lit (n : ℕ) (F : Link G m → ℝ) : Prop := ∀ s : Signed, |
| 129 | noteAt (F ∘ (orderTurn (G:=G) (m:=m) s)) n = noteAt F n |
| 130 | |
| 131 | def aperture (ε : ℝ) (F H : Link G m → ℝ) (t : ℕ) : Prop := ∀ (p : Fin (t+1) → Site m) i v, |
| 132 | let g := glyph p (G:=G) i v |
| 133 | ‖noteAt F (t+1) g - noteAt H (t+1) g‖ ≤ ε |
| 134 | |
| 135 | lemma aperture_eq {F H : Link G m → ℝ} (h : aperture 0 F H t) : |
| 136 | iteratedFDeriv ℝ (t+1) F 0 = iteratedFDeriv ℝ (t+1) H 0 := by |
| 137 | apply from_note _ _ _ |
| 138 | apply relay_ext |
| 139 | intro p |
| 140 | exact sub_eq_zero.mp (norm_le_zero_iff.mp |
| 141 | (h (fun i => (p i).1) (fun i => (p i).2.2) (fun i => (p i).2.1))) |
| 142 | |
| 143 | lemma priceNote (F : Link G m → ℝ) (hF : AnalyticAt ℝ F 0) (s : Signed) (p : Fin (t+1) → Site m) |
| 144 | (b : Ink G (t+1)) (v : Fin (t+1) → Axis) : |
| 145 | let q := glyph p b (fun i => coord (s.perm (v i))) |
| 146 | noteAt (F ∘ orderTurn (G:=G) (m:=m) s) (t+1) q= |
| 147 | (∏ i, reflectFee s (mon (p i)) (v i))*noteAt F _ (glyph (fun i => s⁻¹.act (p i)) b (fun i => coord (v i))) := by |
| 148 | intro q; rw [note_comp (orderTurn s) _ (flip_scalar s) hF,MultilinearMap.compLinearMap_apply] |
| 149 | unfold q glyph |
| 150 | simp_rw [flipped]; exact (noteAt F _).map_smul_univ _ _ |
| 151 | |
| 152 | lemma aperture_flip {F H : Link G m → ℝ} (h : aperture ε F H t) (hF : AnalyticAt ℝ F 0) (hH : AnalyticAt ℝ H 0) |
| 153 | (ha : Lit (t+1) H) (s : Signed) : aperture ε (F ∘ orderTurn s) H t := by |
| 154 | intro p i v g |
| 155 | let r j := s.perm.symm (axisEquiv.symm (v j)) |
| 156 | have he : v= fun i => coord (s.perm (r i)) := by ext1 j; simp only [r,Equiv.apply_symm_apply]; exact (axisEquiv.apply_symm_apply _).symm |
| 157 | unfold g; rw [he,← ha s,priceNote F hF,priceNote H hH,← mul_sub,norm_mul,norm_prod]; simpa only [reflect_size, Finset.prod_const_one,one_mul] using h (fun i => s⁻¹.act (p i)) i (fun j => coord (r j)) |
| 158 | |
| 159 | private lemma mean_budget {ι : Type} [Fintype ι] [Nonempty ι] (f : ι→ℂ) (d M : ℂ) (he : M=(Fintype.card ι:ℂ)⁻¹ * ∑ i,f i) (h : ∀ i, ‖f i-d‖ ≤ ε) : |
| 160 | ‖M-d‖ ≤ ε := by |
| 161 | have hh := Fintype.card_pos (α:=ι) |
| 162 | have hr : (Fintype.card ι:ℝ) ≠ 0 := by positivity |
| 163 | have hC : (Fintype.card ι:ℂ) ≠ 0 := by exact_mod_cast hh.ne' |
| 164 | rw [he, show _ - d=(Fintype.card ι:ℂ)⁻¹ * (∑ i,(f i - d)) by simp [sum_sub_distrib,mul_sub, hC], norm_mul,norm_inv] |
| 165 | calc |
| 166 | _ ≤ ‖(Fintype.card ι:ℂ)‖⁻¹ * (∑ i : ι, ε) := mul_le_mul_of_nonneg_left ((norm_sum_le ..).trans (sum_le_sum fun i _ => h i)) (inv_nonneg.mpr (norm_nonneg _)) |
| 167 | _ = _ := by simp [hr] |
| 168 | |
| 169 | section channel |
| 170 | |
| 171 | def turnSeries (A : ℕ → Atom G n) (a : Link G m) := Patch.average fun i : Signed => uncut A (pull i 0 (input G m a)) |
| 172 | |
| 173 | def inputSeries (p : Clip) (W : PathData G) (a : Link G m) := secondTerm p W (input G m a) |
| 174 | lemma turns_frame (F : ℕ → Atom G n) (p : Link G m) : turnSeries F p=Patch.average fun i : Signed => |
| 175 | seriesScore m F (orderTurn i p) := by simp [turnSeries,flip_links,seriesScore,orderTurn] |
| 176 | lemma turns_analytic (F : ℕ → Atom G n) (hσ : 0<σ) (hf : SumBudget (fun i => (F i).budget σ) A) : AnalyticAt ℝ (turnSeries F (m:=m)) 0 := by |
| 177 | apply ContDiffAt.analyticAt |
| 178 | simp_rw [funext (turns_frame (m:=m) F)]; unfold Patch.average |
| 179 | refine ContDiffAt.mul contDiffAt_const (ContDiffAt.sum fun i _ => ?_) |
| 180 | refine ContDiffAt.comp (g:=seriesScore m F) (f:=⇑(orderTurn (G:=G) (m:=m) i)) (0:Link G m) ?_ (orderTurn (G:=G) (m:=m) i).contDiff.contDiffAt |
| 181 | rw [map_zero]; exact (score_analytic m F hσ hf).contDiffAt |
| 182 | lemma turns_low (F : ℕ → Atom G n) (hσ : 0<σ) (hf : SumBudget (fun i => (F i).budget σ) A) : Rays n (turnSeries F (m:=m)) := by |
| 183 | intro v |
| 184 | simp_rw [turns_frame]; unfold Patch.average |
| 185 | refine IsBigO.const_mul_left ?_ _ |
| 186 | apply Asymptotics.IsBigO.sum; intro i _ |
| 187 | simp_rw [map_smul]; exact ink_low m F hσ hf _ |
| 188 | |
| 189 | /-- Sum over all legs and translations on the *cover*, then compare on the |
| 190 | same p-grid as the new data. Inherently also treats nonopposite external waves, |
| 191 | harmonic, and the curvature support carries the true wrap costs. -/ |
| 192 | theorem colors_align [NeZero t] (F : Link G m → ℝ) (he : AnalyticAt ℝ F 0) (hl : Lit (t+1) F) (L : Picture G t) |
| 193 | (P : Skin G t) (hp : Shades P L σ A) (hs : 0<σ) (hr : Recorded L F ε) : |
| 194 | aperture ε (turnSeries (issue P)) F t := by |
| 195 | let Φ := issue P |
| 196 | let T := seriesScore m Φ |
| 197 | have hP := (artery_funded hp).1 |
| 198 | have hh : aperture ε T F t := by |
| 199 | intro p i v g |
| 200 | let E (d : Equiv.Perm (Fin (t+1))) := enlarge (volumeInk m Φ).toMultilinearMap (g ∘ d) |
| 201 | apply mean_budget E _ _ |
| 202 | · simpa only [T,Φ,Fintype.card_perm,Fintype.card_fin,E] using ink_beat m (issue P) hs hP g |
| 203 | intro d |
| 204 | rw [← note_perm F he g d] |
| 205 | unfold E |
| 206 | rw [show g ∘ ⇑d=glyph (p ∘ d) (i ∘ d) (v ∘ d) from rfl, show Φ=_ from rfl, notesPath hs hp,norm_sub_rev] |
| 207 | exact hr _ _ _ |
| 208 | intro p i v g |
| 209 | have hg (s : Signed) : AnalyticAt ℝ (T ∘ orderTurn (G:=G) (m:=m) s) 0 := by |
| 210 | have hx : AnalyticAt ℝ T (orderTurn s (0:Link G m)) := by rw [map_zero]; exact score_analytic m Φ hs hP |
| 211 | exact hx.comp ((orderTurn _).analyticAt _) |
| 212 | let D (s : Signed) := noteAt (T ∘ orderTurn s) (t+1) g |
| 213 | apply mean_budget D _ _ |
| 214 | · rw [show turnSeries (m:=m) Φ = fun p => Patch.average (fun i : Signed => (T ∘ orderTurn i) p) from |
| 215 | funext (turns_frame Φ), note_mean _ hg,_root_.smul_apply,_root_.sum_apply]; rfl |
| 216 | exact fun s => aperture_flip hh (score_analytic m Φ hs hP) he hl s p i v |
| 217 | end channel |
| 218 | end YM.Stationary |
| 219 | end |
| 220 | |
| 221 | /-! # Common torus reading and passage to continuous external variables -/ |
| 222 | noncomputable section |
| 223 | namespace YM.Stationary |
| 224 | open Function Lattice RG Exterior Wilson Precision Bloch Laurent Filter Finset |
| 225 | open scoped Matrix Topology ContDiff BigOperators NNReal |
| 226 | variable {α : Type} [Fintype α] {G : Gauge} {m : Side} {t : ℕ} |
| 227 | {η A : ℝ} |
| 228 | |
| 229 | -- congruent radians |
| 230 | def rolls (p q : Phase α) := ∃ z : Shift α,q = p+reciprocal z |
| 231 | |
| 232 | lemma rolls.exp {p q : Phase α} (h : rolls p q) (i : Shift α) : mode p i=mode q i := by obtain ⟨d,rfl⟩ := h; rw [mode_phase,mode_periodic, mul_one] |
| 233 | omit [Fintype α] in |
| 234 | lemma rolls.apply {p q : Phase α} {f : Phase α→ℂ} (h : rolls p q) (hp : Firm η A f) (hx : p ∈ strip η) : f p=f q := by obtain ⟨d,rfl⟩ := h; exact (hp.1.reset _ hx _).symm |
| 235 | omit [Fintype α] in |
| 236 | lemma rolls.refl (p : Phase α) : rolls p p := ⟨0,by ext; simp [reciprocal]⟩ |
| 237 | omit [Fintype α] in |
| 238 | lemma rolls.symm {p q : Phase α} (h : rolls p q) : rolls q p := by |
| 239 | obtain ⟨d,rfl⟩ := h; refine ⟨-d,?_⟩; ext1 i; simp [reciprocal] |
| 240 | omit [Fintype α] in |
| 241 | lemma rolls.trans {p q r : Phase α} (h : rolls p q) (hp : rolls q r) : rolls p r := by |
| 242 | obtain ⟨d,rfl⟩ := h; obtain ⟨v,rfl⟩ := hp; refine ⟨d+v,?_⟩; ext1 i; simp [reciprocal,mul_add]; ring |
| 243 | omit [Fintype α] in |
| 244 | lemma rolls.neg {p q : Phase α} (h : rolls p q) : rolls (-p) (-q) := by |
| 245 | obtain ⟨d,rfl⟩ := h; refine ⟨-d,?_⟩; ext1 i; simp [reciprocal]; ring |
| 246 | omit [Fintype α] in |
| 247 | lemma rolls.metric {p q : Phase α} (h : rolls p q) (hp : star p=p) : star q=q := by |
| 248 | obtain ⟨d,rfl⟩ := h; rw [star_add,hp]; congr 1; ext1 i; simp [reciprocal] |
| 249 | |
| 250 | lemma rolls_of_mode {p q : Momentum} (he : ∀ x, mode p x=mode q x) : rolls p q := by |
| 251 | have H (a : Axis) : ∃ n : ℤ, q a = p a + 2*(Real.pi:ℂ)*n := by |
| 252 | have hp := he (step a); rw [factor,factor] at hp |
| 253 | obtain ⟨z,hz⟩ := Complex.exp_eq_exp_iff_exists_int.mp hp.symm |
| 254 | use z; apply mul_left_cancel₀ Complex.I_ne_zero |
| 255 | rw [mul_add]; linear_combination hz |
| 256 | choose z hz using H |
| 257 | exact ⟨z,funext hz⟩ |
| 258 | |
| 259 | omit [Fintype α] in |
| 260 | lemma rolls_keys {p q : Space t} (h : ∀ i : Fin t, rolls (projected (strand i) p) (projected (strand i) q)) : rolls p q := by |
| 261 | choose x hx using h |
| 262 | exact ⟨(fun i => x i.1 i.2), funext fun ⟨k,a⟩ => congr_fun (hx k) a⟩ |
| 263 | |
| 264 | -- harmonic reading at all momentum reps |
| 265 | lemma ties {p : Fin (t+1) → Site m} (hp : ∑ i,p i=0) (j) : rolls (plotted (outphase p) j) (mon (p j)) := rolls_of_mode (fun x => by rw [manyModes _ hp,cell_wrap]) |
| 266 | |
| 267 | -- canonical rounding with winding even along b not in cube |
| 268 | lemma mesh_stride (m : ℕ → Side) (h : Tendsto (fun i => (m i).val) atTop atTop) (p : Momentum) (he : star p=p) : |
| 269 | ∃ (y : ∀ i, Site (m i)) (u : ℕ → Momentum), Tendsto u atTop (𝓝 p) ∧ ∀ i, rolls (mon (y i)) (u i) := by |
| 270 | let a (i : ℕ) := (m i).val |
| 271 | let b := 2*Real.pi |
| 272 | have ha i : 0 < (a i:ℝ) := side_pos (m i) |
| 273 | have hb : 0<b := by unfold b; positivity |
| 274 | let r : Corn Axis := fun i => (p i).re |
| 275 | have hr : axes r=p := axes_of_real he |
| 276 | let v i : Cover := fun j => ⌊(a i:ℝ)*r j / b⌋ |
| 277 | let u i : Corn Axis := fun j => b*(v i j)/(a i:ℝ) |
| 278 | refine ⟨fun i => wrap (m i) (v i),fun i => axes (u i),?_,?_⟩ |
| 279 | · rw [← hr]; refine axes_maps.continuous.continuousAt.tendsto.comp ?_ |
| 280 | refine tendsto_pi_nhds.mpr fun j => ?_ |
| 281 | have ht : Tendsto (fun i => b/(a i:ℝ)) atTop (𝓝 0) := tendsto_const_nhds.div_atTop (tendsto_natCast_atTop_atTop.comp h) |
| 282 | refine tendsto_of_tendsto_of_tendsto_of_le_of_le (h:=fun _ => r j) (g:=fun i => r j - b/(a i:ℝ)) (by simpa using tendsto_const_nhds.sub ht) tendsto_const_nhds ?_ ?_ |
| 283 | · intro i; unfold u |
| 284 | have he := Int.lt_floor_add_one ((a i:ℝ)*r j / b); change _ < (↑(v i j):ℝ)+1 at he |
| 285 | rw [div_lt_iff₀ hb] at he; rw [le_div_iff₀ (ha _),sub_mul,div_mul_cancel₀ _ (ha i).ne'] |
| 286 | linarith |
| 287 | intro i; unfold u |
| 288 | have he := (le_div_iff₀ hb).mp (Int.floor_le ((a i:ℝ)*r j / b)); change ↑(v i j)*b ≤ _ at he |
| 289 | rw [div_le_iff₀ (ha _)] |
| 290 | linarith |
| 291 | intro i |
| 292 | let X := wrap (m i) (v i) |
| 293 | obtain ⟨q,H⟩ := cover_of_eq (lift X) (v i) (n:=m i) (wrap_lift X) |
| 294 | -- Keep the full winding. |
| 295 | refine ⟨q,?_⟩; ext1 j; unfold u mon; simp only [axes,Pi.add_apply,Pi.smul_apply,smul_eq_mul,reciprocal] |
| 296 | change _ = (a i:ℂ)⁻¹ * (2 * (Real.pi:ℂ) * (lift X j:ℤ)) + _ |
| 297 | rw [show v i j=lift X j+(a i:ℤ)*q j from (congr_fun H j).trans (by simp [a])] |
| 298 | have hn : (a i:ℂ)≠0 := side_ne _ |
| 299 | unfold b; push_cast; field_simp |
| 300 | |
| 301 | lemma fleet (m : ℕ → Side) (h : Tendsto (fun i => (m i).val) atTop atTop) (p : Space t) (he : star p=p) : |
| 302 | ∃ (y : ∀ i, Fin (t+1) → Site (m i)) (u : ℕ → Space t), Tendsto u atTop (𝓝 p) ∧ ∀ i, |
| 303 | ∑ j,y i j=0 ∧ rolls (outphase (y i)) (u i) := by |
| 304 | choose z v hz hv using fun j : Fin t => mesh_stride m h (projected (strand j) p) (funext fun k => congr_fun he (j,k)) |
| 305 | let Y (i : ℕ) : Fin (t+1) → Site (m i) := Fin.cons (- ∑ j,z j i) (fun j => z j i) |
| 306 | let U (i : ℕ) : Space t := fun k => v k.1 i k.2 |
| 307 | refine ⟨Y,U, tendsto_pi_nhds.mpr (fun ⟨j,k⟩ => tendsto_pi_nhds.mp (hz j) k),fun i => ⟨?_,?_⟩⟩ |
| 308 | · simp [Y,Fin.sum_univ_succ] |
| 309 | apply rolls_keys; intro j |
| 310 | have hq : projected (strand j) (outphase (Y i))=mon (z j i) := by ext k; simp [Y,outphase,projected,strand] |
| 311 | rw [hq]; exact hv j i |
| 312 | end YM.Stationary |
| 313 | end |
| 314 | |
| 315 | /-! # Coarse gauge tests, actual logs near origin -/ |
| 316 | noncomputable section |
| 317 | namespace YM.Stationary |
| 318 | open Function Lattice RG Exterior Wilson Precision Bloch Laurent Filter Finset |
| 319 | open Matrix (transpose mulVec of) |
| 320 | open scoped Matrix Topology ContDiff BigOperators NNReal Matrix.Norms.Frobenius |
| 321 | variable {G : Gauge} {n t : ℕ} {m : Side} |
| 322 | |
| 323 | abbrev BaseSites (G : Gauge) (m : Side) := Corn (Lines G m 0) |
| 324 | |
| 325 | def switchSite (p : BaseSites G m) : Site m → G.El := fun x => G.lieExp (arm G m 0 p (x,vac)) |
| 326 | |
| 327 | def content (U : Config G m) : Link G m := (arm G m 1).symm (fun i => G.plog (G.mat (U (i.1,axisEquiv.symm i.2)))) |
| 328 | |
| 329 | @[simp] lemma content_one : content (1:Config G m)=0 := by simp [content]; rfl |
| 330 | @[simp] lemma switch_zero : switchSite (0:BaseSites G m)=1 := by ext i; simp [switchSite] |
| 331 | |
| 332 | lemma encode_link (a : Link G m) (x : Site m) (y : Axis) : input G m a (x,y)= G.lieExp (arm _ _ _ a (x,coord y)) := Work.F03.represent_link .. |
| 333 | lemma content_at (U : Config G m) (x : Site m) (i : Axis) : arm G m 1 (content U) (x,coord i) = G.plog (G.mat (U (x,i))) := by |
| 334 | rw [content,(arm G m 1).apply_symm_apply]; simp only [show axisEquiv.symm (coord i)=i from axisEquiv.symm_apply_apply i] |
| 335 | |
| 336 | lemma content_encodes : ∀ᶠ U in 𝓝 (1:Config G m), input G m (content U)=U := by |
| 337 | have he (i : Edge (Site m)) : ∀ᶠ U : Config G m in 𝓝 1, G.lieExp (G.plog (G.mat (U i)))= U i := |
| 338 | (show Tendsto (fun U : Config G m => U i) (𝓝 1) (𝓝 1) from (continuous_apply i).tendsto (1:Config G m)).eventually G.plog_right |
| 339 | filter_upwards [eventually_all.mpr he] with U hu |
| 340 | funext ⟨x,i⟩; rw [encode_link, content_at]; exact hu _ |
| 341 | |
| 342 | lemma input_encodes : ∀ᶠ a : Link G m in 𝓝 0, content (input G m a)=a := by |
| 343 | have he (i : Body 1 m) : ∀ᶠ x : Link G m in 𝓝 0, G.plog (G.mat (G.lieExp (arm G m 1 x i)))=arm G m 1 x i := by |
| 344 | have h : Tendsto (fun x => arm G m 1 x i) (𝓝 0) (𝓝 0) := by |
| 345 | simpa only [map_zero,Pi.zero_apply] using! ((continuous_apply i).comp (arm G m 1).continuous).tendsto 0 |
| 346 | exact h.eventually G.plog_left |
| 347 | filter_upwards [eventually_all.mpr he] with v hv |
| 348 | apply (arm G m 1).injective; funext ⟨x,y⟩; obtain ⟨i,rfl⟩ := axisEquiv.surjective y |
| 349 | change arm _ _ _ _ (x,coord i) = _ |
| 350 | rw [content_at, encode_link]; exact hv _ |
| 351 | |
| 352 | section coord |
| 353 | variable {X : Type} [NormedAddCommGroup X] [NormedSpace ℝ X] {F : X → Config G m} {z : X} |
| 354 | lemma content_analytic (h : F z=1) (he : ∀ p, AnalyticAt ℝ (fun x => G.mat (F x p)) z) : AnalyticAt ℝ (content ∘ F) z := by |
| 355 | unfold content Function.comp |
| 356 | refine ((arm G m 1).symm.analyticAt _).comp (f:=fun a i => G.plog (G.mat (F a (i.1,axisEquiv.symm i.2)))) ?_ |
| 357 | refine (contDiffAt_pi (n:=ω) |>.mpr (fun i => ?_)).analyticAt |
| 358 | refine ContDiffAt.comp (g:=G.plog) _ ?_ ((he (i.1,axisEquiv.symm i.2)).contDiffAt) |
| 359 | rw [h,Pi.one_apply,G.mat_one]; exact G.plog_diff |
| 360 | end coord |
| 361 | |
| 362 | abbrev Swatch (G : Gauge) (m : Side) := BaseSites G m × Link G m |
| 363 | def shiftLinks (p : Swatch G m) := Lattice.gauge (switchSite p.1) (input G m p.2) |
| 364 | def moveField (p : Swatch G m) := content (shiftLinks p) |
| 365 | @[simp] lemma shiftLinks_zero : shiftLinks (0:Swatch G m)=1 := by funext i; simp [shiftLinks,Lattice.gauge] |
| 366 | @[simp] lemma moveField_zero : moveField (0:Swatch G m)=0 := by rw [moveField,shiftLinks_zero,content_one] |
| 367 | |
| 368 | lemma switch_cont : Continuous (switchSite (G:=G) (m:=m)) := by unfold switchSite; fun_prop |
| 369 | lemma input_cont : Continuous (input G m) := by |
| 370 | refine continuous_pi fun i => ?_; rcases i with ⟨x,i⟩; simp_rw [encode_link]; fun_prop |
| 371 | lemma shiftLinks_cont : Continuous (shiftLinks (G:=G) (m:=m)) := by |
| 372 | unfold shiftLinks Lattice.gauge; have hu := input_cont (G:=G) (m:=m); have hb := switch_cont (G:=G) (m:=m); fun_prop |
| 373 | |
| 374 | lemma moveField_germ : ∀ᶠ p : Swatch G m in 𝓝 0, input G m (moveField p)=shiftLinks p := by |
| 375 | have ht := shiftLinks_cont (G:=G) (m:=m) |>.tendsto 0 |
| 376 | rw [shiftLinks_zero] at ht; exact ht.eventually content_encodes |
| 377 | |
| 378 | lemma moveField_analytic : AnalyticAt ℝ (moveField (G:=G) (m:=m)) 0 := by |
| 379 | apply content_analytic shiftLinks_zero |
| 380 | rintro ⟨i,k⟩; simp_rw [shiftLinks,Lattice.gauge,switchSite,encode_link,G.mat_mul,G.mat_inv] |
| 381 | apply ContDiffAt.analyticAt |
| 382 | have hx (j : Body 0 m) : ContDiffAt ℝ ω (fun x : Swatch G m => G.mat (G.lieExp (arm _ m 0 x.1 j))) 0 := G.exp_jet.contDiffAt.comp (f:=fun x : Swatch G m => (arm G m 0) x.1 j) (0:Swatch G m) (by fun_prop) |
| 383 | have hy : ContDiffAt ℝ ω (fun x : Swatch G m => G.mat (G.lieExp (arm _ m 1 x.2 (i,coord k)))) 0 := G.exp_jet.contDiffAt.comp (f:=fun x : Swatch G m => (arm G m 1) x.2 (i,coord k)) (0:Swatch G m) (by fun_prop) |
| 384 | exact ((hx _).mul hy).mul ((show G.Mat ≃L[ℝ] G.Mat from starL ℝ).contDiff.contDiffAt.comp _ (hx _)) |
| 385 | |
| 386 | lemma exp_ray (x : G.Color) : HasDerivAt (fun t : ℝ => G.mat (G.lieExp (t • x))) (G.colorMat x) 0 := by |
| 387 | have he : HasFDerivAt (fun x => G.mat (G.lieExp x)) G.colorMat.toContinuousLinearMap ((0:ℝ) • x) := by |
| 388 | rw [zero_smul]; exact G.expDiff_zero |
| 389 | have hh : HasDerivAt (fun t : ℝ => t • x) x 0 := by simpa using! (hasDerivAt_id' (0:ℝ)).smul_const x |
| 390 | exact he.comp_hasDerivAt 0 hh |
| 391 | |
| 392 | def gradientA {R : Type} [CommRing R] (G : Gauge) (m : Side) : (Lines G m 0 → R) →ₗ[R] (Lines G m 1 → R) := LinearMap.pi (fun i => LinearMap.proj (φ:=fun _ : Lines G m 0 => R) (R:=R) (i.1+step (axisEquiv.symm i.2.1),vac,i.2.2)-LinearMap.proj (φ:=fun _ : Lines G m 0 => R) (R:=R) (i.1,vac,i.2.2)) |
| 393 | |
| 394 | lemma gradientC (p : BaseSites G m) (x : Site m) (i : Axis) : arm G m 1 (gradientA G m p) (x,coord i) = arm G m 0 p (x+step i,vac)-arm G m 0 p (x,vac) := by |
| 395 | ext j; simp only [arm_apply,gradientA,LinearMap.pi_apply,LinearMap.sub_apply,show axisEquiv.symm (coord i)=i from axisEquiv.symm_apply_apply _]; rfl |
| 396 | lemma moveField_rate (p : Swatch G m) : fderiv ℝ moveField 0 p=p.2-gradientA G m p.1 := by |
| 397 | let d := fderiv ℝ moveField 0 p |
| 398 | let f (t : ℝ) := t • p |
| 399 | have hf : Tendsto f (𝓝 0) (𝓝 0) := by |
| 400 | unfold f; simpa using (show Continuous (fun t : ℝ => t • p) from by fun_prop).tendsto 0 |
| 401 | have he : ∀ᶠ t in 𝓝 0, input G m (moveField (f t)) = shiftLinks (f t) := hf.eventually moveField_germ |
| 402 | have ht : HasDerivAt (moveField ∘ f) d 0 := Push.side _ moveField_analytic.differentiableAt p |
| 403 | apply (arm G m 1).injective; funext ⟨x,i⟩; obtain ⟨a,rfl⟩ := axisEquiv.surjective i |
| 404 | rw [coord_map]; apply G.colorMat_injective |
| 405 | let L := ContinuousLinearMap.proj (R:=ℝ) (φ:=fun _ : Body 1 m => G.Color) (x,coord a) ∘L (arm G m 1).toContinuousLinearMap |
| 406 | have ha : HasFDerivAt (fun x => G.mat (G.lieExp x)) G.colorMat.toContinuousLinearMap (L (moveField (f 0))) := by |
| 407 | rw [show f 0=0 by simp [f], moveField_zero,map_zero]; exact G.expDiff_zero |
| 408 | have hh := ha.comp_hasDerivAt 0 (L.hasFDerivAt.comp_hasDerivAt 0 ht) |
| 409 | have hw : HasDerivAt (fun t => G.mat (shiftLinks (f t) (x,a))) (G.colorMat (L d)) 0 := by |
| 410 | refine hh.congr_of_eventuallyEq ?_ |
| 411 | filter_upwards [he] with t ht |
| 412 | rw [← ht,encode_link]; rfl |
| 413 | have hz (t) : G.mat (shiftLinks (f t) (x,a)) = G.mat (G.lieExp (t • arm G m 0 p.1 (x,vac))) * G.mat (G.lieExp (t • arm G m 1 p.2 (x,coord a))) * star (G.mat (G.lieExp (t • arm G m 0 p.1 (x+step a,vac)))) := by |
| 414 | simp [shiftLinks,Lattice.gauge,switchSite,encode_link,f] |
| 415 | simp_rw [hz] at hw |
| 416 | refine hw.unique ?_ |
| 417 | have H := ((exp_ray (arm G m 0 p.1 (x,vac))).mul (exp_ray (arm G m 1 p.2 (x,coord a)))).mul (exp_ray (arm G m 0 p.1 (x+step a,vac))).star |
| 418 | convert! H using 1 |
| 419 | simp only [map_sub,Pi.sub_apply, gradientC,Gauge.colorMat_skew,zero_smul,G.mat_lieExp_zero, G.mat_one,mul_one,one_mul,star_one,Pi.mul_apply] |
| 420 | abel |
| 421 | end YM.Stationary |
| 422 | end |
| 423 | |
| 424 | /-! # Pure real-mesh Ward from gauge & lower jets -/ |
| 425 | noncomputable section |
| 426 | namespace YM.Stationary |
| 427 | open Function Lattice RG Exterior Wilson Precision Bloch Laurent Filter Finset |
| 428 | open Matrix (transpose mulVec of) |
| 429 | open scoped Matrix Topology ContDiff BigOperators NNReal Matrix.Norms.Frobenius |
| 430 | variable {G : Gauge} {n t : ℕ} {m : Side} |
| 431 | |
| 432 | abbrev Quiets (F : Link G m → ℝ) (n : ℕ) := ∀ i : ℕ, i < n → 0 < i → iteratedFDeriv ℝ i F 0=0 |
| 433 | |
| 434 | def force (F : Link G m → ℝ) := (F ∘ moveField (G:=G) (m:=m)) =ᶠ[𝓝 0] (F ∘ Prod.snd (α:=BaseSites G m)) |
| 435 | |
| 436 | variable (F : Link G m → ℝ) |
| 437 | |
| 438 | lemma adhesion (x : Fin n → Swatch G m) (h : force F) (hp : AnalyticAt ℝ F 0) (hz : Quiets F n) : |
| 439 | iteratedFDeriv ℝ n F 0 (fun i => (x i).2-gradientA G m (x i).1)=iteratedFDeriv ℝ n F 0 fun i => (x i).2 := by |
| 440 | have he := DFunLike.congr_fun ((h.iteratedFDeriv ℝ n).eq_of_nhds) x |
| 441 | change iteratedFDeriv ℝ n (F ∘ _) 0 x=iteratedFDeriv ℝ n (F ∘ (ContinuousLinearMap.snd ℝ (BaseSites G m) (Link G m))) 0 x at he |
| 442 | rw [quiet_comp _ moveField_analytic (by rw [moveField_zero]; exact hp) |
| 443 | (by simpa only [moveField_zero] using hz), moveField_zero,wired _ (by rw [map_zero]; exact hp), map_zero] at he |
| 444 | simp only [Function.comp_def,moveField_rate] at he; exact he |
| 445 | |
| 446 | -- convert the coordinate planes, real-compatibility built into gradient formula |
| 447 | lemma adhesion_complex (x : Fin n → Phase (Lines G m 1)) (y : Fin n → Phase (Lines G m 0)) |
| 448 | (h : force F) (hp : AnalyticAt ℝ F 0) (hz : Quiets F n) : |
| 449 | noteAt F n (fun i => x i-gradientA G m (y i))=noteAt F n x := by |
| 450 | classical |
| 451 | let K := Lines G m 1 ⊕ Lines G m 0 |
| 452 | let D : Phase K →ₗ[ℂ] Phase (Lines G m 1) := LinearMap.pi fun i => LinearMap.proj (Sum.inl i) |
| 453 | let Y : Phase K →ₗ[ℂ] Phase (Lines G m 0) := LinearMap.pi fun i => LinearMap.proj (Sum.inr i) |
| 454 | have he : (noteAt F n).compLinearMap (fun _ => D-gradientA G m ∘ₗ Y)=(noteAt F n).compLinearMap fun _ => D := by |
| 455 | apply enlarge_unique; intro b |
| 456 | let p (j : Fin n) : Swatch G m := (fun i => b j (Sum.inr i),fun i => b j (Sum.inl i)) |
| 457 | simp only [MultilinearMap.compLinearMap_apply, Function.comp_apply,LinearMap.sub_apply,LinearMap.comp_apply] |
| 458 | rw [show (fun a => D (axes _) - _) = axes ∘ (fun i : Fin n => (p i).2-gradientA G m (p i).1) by |
| 459 | funext i j; simp [gradientA,D,Y,p,axes], |
| 460 | show (fun a : Fin n => D (axes (b a))) = axes ∘ (fun i => (p i).2) from rfl, |
| 461 | note_real,note_real,Tensor.coeff,_root_.smul_apply,_root_.smul_apply,adhesion F p h hp hz] |
| 462 | exact DFunLike.congr_fun he (fun i => Sum.elim (x i) (y i)) |
| 463 | |
| 464 | lemma note_kills (x : Fin n → Phase (Lines G m 1)) (y : Phase (Lines G m 0)) (i : Fin n) |
| 465 | (h : force F) (hp : AnalyticAt ℝ F 0) (hz : Quiets F n) : noteAt F n (update x i (gradientA G m y))=0 := by |
| 466 | have he := adhesion_complex F (update x i 0) (Pi.single i (-y)) h hp hz |
| 467 | rw [show (fun a => update x i 0 a - gradientA G m ((Pi.single i (-y) : Fin n → Phase (Lines G m 0)) a))=update x i (gradientA G m y) from funext fun j => by |
| 468 | by_cases h : j=i <;> simp [h], (noteAt F n).map_coord_zero (m:=update x i 0) i (by rw [update_self])] at he |
| 469 | exact he |
| 470 | |
| 471 | lemma gradient_wave (i : Site m) (k : G.ColorIndex) : gradientA G m (relay i (vac,k)) = |
| 472 | ∑ j : TypeFace 1, symbol 0 (mon i) j vac • relay i (j,k) := by |
| 473 | ext1 ⟨x,a,b⟩; obtain ⟨a,rfl⟩ := axisEquiv.surjective a |
| 474 | rw [Finset.sum_apply, sum_eq_single (coord a)] |
| 475 | · simp only [coord_map,gradientA,LinearMap.pi_apply,show axisEquiv.symm (coord a)=a from axisEquiv.symm_apply_apply _,LinearMap.sub_apply,LinearMap.proj_apply] |
| 476 | have he : symbol 0 (mon i) (coord a) vac = Complex.exp (Complex.I * mon i a)-1 := by |
| 477 | unfold symbol wedge Exterior.q |
| 478 | rw [Matrix.sum_apply, sum_eq_single a]; rotate_left |
| 479 | · intro k _ h; simp [Exterior.left,coord,h] |
| 480 | · simp |
| 481 | simp [Exterior.left,coord,vac_only,parity,pre,Finset.filter_singleton] |
| 482 | rw [he]; by_cases h : b=k <;> simp [relay,tune,cell_step,h]; ring |
| 483 | · intro j _ h; simp [relay,tune,Ne.symm h] |
| 484 | simp |
| 485 | |
| 486 | lemma ward_stripe (x : Fin (t+1) → Site m) (hx : ∑ i,x i=0) |
| 487 | (w : Ink G (t+1)) (i : Run (t+1)) (j : Fin (t+1)) |
| 488 | (h : force F) (hp : AnalyticAt ℝ F 0) (hz : Quiets F (t+1)) : |
| 489 | ∑ k : TypeFace 1, symbol 0 (plotted (outphase x) j) k vac * noteAt F _ (glyph x w (update i j k))=0 := by |
| 490 | have he := note_kills F (glyph x w i) (relay (x j) (vac,w j)) j h hp hz |
| 491 | rw [gradient_wave] at he |
| 492 | rw [MultilinearMap.map_update_sum] at he |
| 493 | rw [waved_symbol x hx]; apply Eq.trans _ he |
| 494 | refine sum_congr rfl fun k _ => ?_ |
| 495 | have hu : glyph x w (update i j k)=update (glyph x w i) j (relay (x j) (k,w j)) := funext fun l => by by_cases h : l=j <;> simp [h,glyph] |
| 496 | rw [hu]; simp |
| 497 | end YM.Stationary |
| 498 | end |
| 499 | |
| 500 | /-! |
| 501 | # Constant color rotation and global uncut symmetries |
| 502 | -/ |
| 503 | noncomputable section |
| 504 | namespace YM.Stationary |
| 505 | open Function Lattice RG Exterior Wilson Precision Bloch Laurent Filter Finset |
| 506 | open Matrix (transpose mulVec of) |
| 507 | open scoped Matrix Topology ContDiff BigOperators NNReal Matrix.Norms.Frobenius |
| 508 | variable {G : Gauge} {n t : ℕ} {m : Side} (u : G.El) |
| 509 | |
| 510 | def constantColor : fieldDir G m 1 →ₗ[ℝ] fieldDir G m 1 := LinearMap.pi (fun p => G.adjoint u ∘ₗ LinearMap.proj p) |
| 511 | def stain : Link G m →L[ℝ] Link G m := (arm _ _ _).symm.toContinuousLinearMap ∘L |
| 512 | LinearMap.toContinuousLinearMap (constantColor u) ∘L (arm G m 1).toContinuousLinearMap |
| 513 | lemma stain_cons (b : Link G m) : Lattice.gauge (fun _ => u) (input G m b)=input G m (stain u b) := by |
| 514 | funext ⟨x,i⟩; apply G.mat_injective |
| 515 | simp only [Lattice.gauge,G.mat_mul,G.mat_inv,encode_link,stain,ContinuousLinearMap.comp_apply] |
| 516 | simp only [ContinuousLinearEquiv.coe_coe,(arm G m 1).apply_symm_apply] |
| 517 | change _ = G.mat (G.lieExp (G.adjoint u _)) |
| 518 | rw [G.mat_lieExp,G.mat_lieExp,G.mat_adjoint,G.exp_conjugate]; rfl |
| 519 | |
| 520 | def Stained (G : Gauge) (f : Link G m → ℝ) : Prop := ∀ u : G.El, f ∘ (stain u) =ᶠ[𝓝 0] f |
| 521 | |
| 522 | section colors |
| 523 | |
| 524 | def glass : Matrix G.ColorIndex G.ColorIndex ℝ := LinearMap.toMatrix' |
| 525 | ((WithLp.linearEquiv 2 ℝ (G.ColorIndex → ℝ)).toLinearMap ∘ₗ |
| 526 | G.adjoint u ∘ₗ (WithLp.linearEquiv 2 ℝ (G.ColorIndex → ℝ)).symm.toLinearMap) |
| 527 | |
| 528 | def shine : Phase (Lines G m 1) →ₗ[ℂ] Phase (Lines G m 1) := LinearMap.pi (fun p => ∑ i, |
| 529 | (glass u p.2.2 i : ℂ) • LinearMap.proj (p.1,p.2.1,i)) |
| 530 | lemma matrices_real (a : G.Color) : (WithLp.ofLp (G.adjoint u a)) = glass u *ᵥ WithLp.ofLp a := by rw [glass, LinearMap.toMatrix'_mulVec]; rfl |
| 531 | lemma shine_entry (x : Phase (Lines G m 1)) (i : Lines G m 1) : shine u x i = ∑ j, (glass u i.2.2 j:ℂ)*x (i.1,i.2.1,j) := by simp [shine] |
| 532 | lemma shine_real (v : Link G m) : axes (stain u v)=shine u (axes v) := by |
| 533 | funext ⟨x,i,j⟩; rw [shine_entry] |
| 534 | unfold axes; rw [← arm_apply G m 1 (stain u v) x i j,stain,ContinuousLinearMap.comp_apply]; simp only [ContinuousLinearEquiv.coe_coe,(arm _ _ _).apply_symm_apply] |
| 535 | |
| 536 | change (((WithLp.ofLp (G.adjoint u (arm G m 1 v (x,i)))) j:ℝ):ℂ) = _ |
| 537 | rw [matrices_real,Matrix.mulVec,dotProduct]; push_cast; rfl |
| 538 | lemma prism_note (F : Link G m → ℝ) (hf : AnalyticAt ℝ F 0) (h : Stained G F) (v : Fin n → Phase (Lines G m 1)) : |
| 539 | noteAt F n (shine u ∘ v) = noteAt F n v := by |
| 540 | have ht := DFunLike.congr_fun (note_comp _ _ (shine_real u) hf n) v |
| 541 | refine ht.symm.trans ?_ |
| 542 | rw [noteAt, beat, ((h u).iteratedFDeriv ℝ n).eq_of_nhds]; rfl |
| 543 | end colors |
| 544 | |
| 545 | section film |
| 546 | variable {F : Link G m → ℝ} (p : Fin (t+1) → Site m) (i : Run (t+1)) |
| 547 | |
| 548 | def filmTone (a : Fin (t+1) → G.Color) : Fin (t+1) → Phase (Lines G m 1) := fun k => ∑ j : G.ColorIndex, (a k j:ℂ) • relay (p k) (i k,j) |
| 549 | lemma film_read (a : Fin (t+1) → G.Color) (k x j b) : filmTone p i a k (x,j,b)= |
| 550 | if i k=j then (a k b:ℂ) * cell (p k) x else 0 := by |
| 551 | unfold filmTone; rw [Finset.sum_apply] |
| 552 | simp only [relay,tune,Pi.smul_apply,smul_eq_mul]; by_cases h : i k=j |
| 553 | · simp_rw [h]; simp [Pi.single_apply] |
| 554 | rw [if_neg h]; apply Finset.sum_eq_zero; intro a _; simp [Ne.symm h] |
| 555 | lemma film_tilt (a : Fin (t+1) → G.Color) : filmTone p i (fun j => G.adjoint u (a j))=shine u ∘ filmTone p i a := by |
| 556 | funext b ⟨x,y,j⟩ |
| 557 | rw [Function.comp_apply,shine_entry,film_read]; simp_rw [film_read]; split |
| 558 | next h => |
| 559 | change ((WithLp.ofLp (G.adjoint u (a b)) j:ℝ):ℂ)*cell _ _ = _ |
| 560 | rw [matrices_real,Matrix.mulVec,dotProduct] |
| 561 | push_cast; rw [Finset.sum_mul]; simp [*,mul_assoc] |
| 562 | simp_all only [mul_zero, Finset.sum_const_zero] |
| 563 | lemma film_test (F : Link G m → ℝ) (a : Fin (t+1) → G.Color) : noteAt F _ (filmTone p i a) = |
| 564 | ∑ v : Ink G (t+1), noteAt F _ (glyph p v i) * ((∏ j, a j (v j): ℝ):ℂ) := by |
| 565 | unfold filmTone; rw [MultilinearMap.map_sum]; apply sum_congr rfl; intro j _ |
| 566 | apply Eq.trans ((noteAt F (t+1)).map_smul_univ (fun k => (↑(a k (j k)):ℂ)) (glyph p j i)) |
| 567 | rw [smul_eq_mul,mul_comm] |
| 568 | congr 1; push_cast; rfl |
| 569 | lemma film_proof (hf : AnalyticAt ℝ F 0) (h : Stained G F) : fixedInks G (fun v => noteAt F (t+1) (glyph p v i)) := by |
| 570 | have ht (u : G.El) (v : Fin (t+1) → G.Color) : noteAt F _ (filmTone p i (fun j => G.adjoint u (v j)))=noteAt F _ (filmTone p i v) := by rw [film_tilt u,prism_note u F hf h] |
| 571 | simp_rw [film_test] at ht |
| 572 | constructor <;> intro u v |
| 573 | · simpa only [Complex.re_sum,Complex.mul_re,Complex.ofReal_re,Complex.ofReal_im,mul_zero,sub_zero] using congr_arg Complex.re (ht u v) |
| 574 | simpa only [Complex.im_sum,Complex.mul_im,Complex.ofReal_re,Complex.ofReal_im,mul_zero,zero_add] using congr_arg Complex.im (ht u v) |
| 575 | end film |
| 576 | end YM.Stationary |
| 577 | end |
| 578 | |
| 579 | /-! |
| 580 | # Transfer to (one and the same) symbol |
| 581 | |
| 582 | Independent of the holomorphic-integral computation. Only uses analytic estimates |
| 583 | when giving continuity and periodicity, and the comparison on the selected real |
| 584 | mesh. Use n=2 again with smaller remainder after choosing coupling term. |
| 585 | -/ |
| 586 | noncomputable section |
| 587 | namespace YM.Stationary |
| 588 | open Function Lattice RG Exterior Wilson Precision Bloch Laurent Filter Finset |
| 589 | open Matrix (transpose mulVec of) |
| 590 | open scoped Matrix Topology ContDiff BigOperators NNReal |
| 591 | variable {G : Gauge} {n t : ℕ} |
| 592 | |
| 593 | abbrev cents (m : Side) : ℝ := Fintype.card (Site m) |
| 594 | lemma cents_pos {m : Side} : 0 < cents m := by unfold cents; exact_mod_cast Fintype.card_pos |
| 595 | |
| 596 | def standing (m : ℕ → Side) (F : ∀ i, Link G (m i) → ℝ) (p : ∀ i, Fin (t+1) → Site (m i)) (x : Ink G (t+1)) (b : Run (t+1)) (i : ℕ) := |
| 597 | (cents (m i):ℂ)⁻¹ * noteAt (F i) _ (glyph (p i) x b) |
| 598 | |
| 599 | lemma projections_roll {p q : Space t} (h : rolls p q) (i : Fin (t+1)) : rolls (plotted p i) (plotted q i) := by |
| 600 | obtain ⟨d,rfl⟩ := h |
| 601 | refine Fin.cases ?_ (fun i => ?_) i <;> simp only [plotted,Fin.cons_zero,Fin.cons_succ] |
| 602 | · refine ⟨missing d,?_⟩ |
| 603 | ext1 a |
| 604 | simp [missing,Finset.sum_apply,reciprocal, Finset.mul_sum,sum_add_distrib]; abel |
| 605 | exact ⟨d ∘ strand i,rfl⟩ |
| 606 | lemma rolls_symbol {p q : Momentum} (h : rolls p q) (n) : symbol n p=symbol n q := by |
| 607 | simp only [← reading,Row.read,Laurent.read,h.exp] |
| 608 | lemma reflection_negative {m : Side} (p : Fin (t+1) → Site m) : rolls (outphase (-p)) (-(outphase p)) := rolls_keys fun i => by |
| 609 | apply rolls_of_mode; intro x |
| 610 | change mode (mon (-(p i.succ))) x=mode (-(mon (p i.succ))) x |
| 611 | rw [← cell_wrap,mode_inverse, ← cell_wrap]; rw [cell_duality,cell_inverse,cell_duality] |
| 612 | lemma glyph_flips {m : Side} (p : Fin (t+1) → Site m) i (b : Ink G (t+1)) : |
| 613 | glyph (-p) b i=star (glyph p b i) := by |
| 614 | funext a ⟨s,u,x⟩ |
| 615 | simp only [glyph,Pi.neg_apply,Pi.star_apply,relay,tune,star_mul,Complex.star_def,cell_bar] |
| 616 | rw [cell_duality (-(p a)),cell_inverse,cell_duality] |
| 617 | by_cases h : (u,x)=(i a,b a) <;> simp [*] |
| 618 | |
| 619 | section service |
| 620 | variable {m : ℕ → Side} {η A : ℝ} {ε : ℕ → ℝ} {F : ∀ i, Link G (m i) → ℝ} {f : Picture G t} |
| 621 | |
| 622 | lemma harvest (h : ∀ i j, Firm η A (f i j)) (hp : ∀ p, Recorded f (F p) (cents (m p)*ε p)) (hε : Tendsto ε atTop (𝓝 0)) |
| 623 | (r : Corn (Keys t)) (p : ∀ i, Fin (t+1) → Site (m i)) (u : ℕ → Space t) |
| 624 | (hx : Tendsto u atTop (𝓝 (axes r))) (hy : ∀ i, ∑ j,p i j=0 ∧ rolls (outphase (p i)) (u i)) |
| 625 | (x : Ink G (t+1)) (b : Run (t+1)) : Tendsto (standing m F p x b) atTop (𝓝 (f x b (axes r))) := by |
| 626 | have hk := h x b |
| 627 | have he (i) : ‖standing m F p x b i - f x b (u i)‖ ≤ ε i := by |
| 628 | obtain ⟨h1,h2⟩ := hy i |
| 629 | have hc : 0<cents (m i) := cents_pos; have hn : (cents (m i):ℂ) ≠ 0 := by exact_mod_cast hc.ne' |
| 630 | have hb := hp i (p i) x b |
| 631 | rw [collected,if_pos h1,h2.apply hk (hk.in_range (out_real _)), show (↑(Fintype.card _):ℂ)=(cents (m i):ℂ) by simp [cents]] at hb |
| 632 | unfold standing |
| 633 | rw [show (cents (m i):ℂ)⁻¹ * _-f x b (u i)=(cents (m i):ℂ)⁻¹ * (noteAt (F i) (t+1) (glyph (p i) x b)-(cents (m i):ℂ)*f x b (u i)) by rw [mul_sub,inv_mul_cancel_left₀ hn], norm_mul,norm_inv,Complex.norm_real,Real.norm_of_nonneg hc.le] |
| 634 | exact (mul_le_mul_of_nonneg_left hb (by positivity : 0≤(cents (m i))⁻¹)).trans_eq (inv_mul_cancel_left₀ hc.ne' _) |
| 635 | have ht : Tendsto ((standing m F p x b)-(f x b) ∘ u) atTop (𝓝 0) := tendsto_zero_iff_norm_tendsto_zero.mpr (squeeze_zero (fun _ => norm_nonneg _) he hε) |
| 636 | have hw := ht.add ((hk.analytic (hk.in_range (axes_real r))).continuousAt.tendsto.comp hx) |
| 637 | simpa using! hw |
| 638 | |
| 639 | private lemma plotted_cont (a : Fin (t+1)) : Continuous (fun p : Space t => plotted p a) := by |
| 640 | refine Fin.cases ?_ (fun a => ?_) a <;> simp only [plotted,Fin.cons_zero,Fin.cons_succ] |
| 641 | · apply continuous_pi; intro k; simp only [missing,Pi.neg_apply,Finset.sum_apply,Function.comp_apply]; fun_prop |
| 642 | exact continuous_pi fun i => continuous_apply _ |
| 643 | |
| 644 | |
| 645 | /-- Transfers of all output lift conditions except ray vanishing orders. |
| 646 | Uniformity from `Recorded`. `Quiets` does not require equality of constants. -/ |
| 647 | theorem withdrew (hν : Tendsto (fun i => (m i).val) atTop atTop) |
| 648 | (hd : Tendsto ε atTop (𝓝 0)) (h : ∀ i j, Firm η A (f i j)) (hp : ∀ p, Recorded f (F p) (cents (m p)*ε p)) |
| 649 | (he : ∀ p, AnalyticAt ℝ (F p) 0) (ha : ∀ p, Stained G (F p)) (hs : ∀ p, force (F p)) |
| 650 | (hΦ : ∀ p, Quiets (F p) (t+1)) : Features f η A := by |
| 651 | constructor; exact h |
| 652 | · intro x r i b |
| 653 | obtain ⟨p,u,H,U⟩ := fleet m hν (axes r) (axes_real r) |
| 654 | have hg (v : TypeFace 1) : Tendsto |
| 655 | (fun y => symbol 0 (plotted (u y) i) v vac * standing m F p x (update b i v) y) |
| 656 | atTop (𝓝 (symbol 0 (plotted (axes r) i) v vac * f x (update b i v) (axes r))) := by |
| 657 | apply Tendsto.mul _ (harvest h hp hd r p u H U _ _) |
| 658 | have ht : Continuous (fun z : Momentum => symbol 0 z v vac) := by simp only [symbol, Exterior.q,wedge,Matrix.sum_apply,Matrix.smul_apply]; fun_prop |
| 659 | exact ((ht.comp (plotted_cont i)).continuousAt.tendsto.comp H) |
| 660 | have hv := tendsto_finsetSum univ fun v _ => hg v |
| 661 | refine tendsto_nhds_unique hv (?_) |
| 662 | have hy (i' : ℕ) := ward_stripe (F i') (p i') (U i').1 x b i (hs i') (he i') (hΦ i') |
| 663 | refine tendsto_const_nhds.congr' (Eventually.of_forall fun i' => ?_) |
| 664 | symm |
| 665 | simp_rw [← rolls_symbol (projections_roll (U i').2 i)] |
| 666 | unfold standing; simp_rw [mul_left_comm _ (cents (m i'):ℂ)⁻¹]; rw [← Finset.mul_sum,hy i',mul_zero] |
| 667 | · intro x i a hb |
| 668 | let r : Corn _ := fun j => (a j).re; have hr : a=axes r := (axes_of_real hb).symm |
| 669 | obtain ⟨p,u,H,U⟩ := fleet m hν (axes r) (axes_real r) |
| 670 | have hy := harvest h hp hd r p u H U x i |
| 671 | have hh : ∀ j, ∑ k,(-p j) k=0 ∧ rolls (outphase (-p j)) (-u j) := by |
| 672 | intro j; refine ⟨?_,(reflection_negative _).trans (U j).2.neg⟩ |
| 673 | simp only [Pi.neg_apply,sum_neg_distrib,(U j).1,neg_zero] |
| 674 | have hz := harvest h hp hd (-r) (fun i => -p i) (fun i => -u i) (axes_flip r |>.symm ▸ H.neg) hh x i |
| 675 | have ht := hz.star |
| 676 | rw [hr]; rw [axes_flip] at ht |
| 677 | refine tendsto_nhds_unique (?_ : Tendsto (standing m F p x i) atTop _) hy |
| 678 | convert ht using 1; ext1 z |
| 679 | simp only [standing,star_mul,glyph_flips,← note_fixed]; simp [mul_comm] |
| 680 | intro r i |
| 681 | obtain ⟨p,u,H,U⟩ := fleet m hν (axes r) (axes_real r) |
| 682 | have hv j : fixedInks G (fun x => standing m F p x i j) := by |
| 683 | have hw := film_proof (p j) i (he j) (ha j) |
| 684 | let k := (cents (m j))⁻¹ |
| 685 | have hI : (cents (m j):ℂ)⁻¹=(k:ℂ) := by simp [k] |
| 686 | unfold standing |
| 687 | rw [hI]; constructor |
| 688 | · simpa only [Complex.mul_re,Complex.ofReal_re,Complex.ofReal_im,zero_mul,sub_zero] using! |
| 689 | (paints G _).smul_mem k hw.1 |
| 690 | simpa only [Complex.mul_im,Complex.ofReal_re,Complex.ofReal_im,zero_mul,add_zero] using! |
| 691 | (paints G _).smul_mem k hw.2 |
| 692 | have hy x := harvest h hp hd r p u H U x i |
| 693 | have hx := (paints G (t+1)).closed_of_finiteDimensional |
| 694 | refine ⟨hx.mem_of_tendsto (b:=atTop (α:=ℕ)) (tendsto_pi_nhds.mpr (fun x => ?_)) (Eventually.of_forall (fun j => (hv j).1)), |
| 695 | hx.mem_of_tendsto (b:=atTop (α:=ℕ)) (tendsto_pi_nhds.mpr (fun x => ?_)) (Eventually.of_forall (fun j => (hv j).2))⟩ |
| 696 | exact Complex.continuous_re.continuousAt.tendsto.comp (hy x) |
| 697 | exact Complex.continuous_im.continuousAt.tendsto.comp (hy x) |
| 698 | end service |
| 699 | end YM.Stationary |
| 700 | end |