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.Level.SliceGate |
| 2 | import YM.Next.STATIONARY.Lift.ManyLegs |
| 3 | import YM.Work.F08.Width |
| 4 | |
| 5 | |
| 6 | |
| 7 | set_option autoImplicit false |
| 8 | /-! Reality and color projection, *after* cochain lift. -/ |
| 9 | noncomputable section |
| 10 | namespace YM.Stationary |
| 11 | open Function Lattice RG Exterior Wilson Bloch Laurent Filter Finset Asymptotics |
| 12 | open Matrix (transpose mulVec of) |
| 13 | open scoped Matrix Topology ContDiff BigOperators |
| 14 | variable {t n : ℕ} {σ A : ℝ} |
| 15 | |
| 16 | -- normalization of reality as in spectral Bed. |
| 17 | lemma curl_real (p : Fin n → Momentum) (g : CurRun n → ℂ) (hp : ∀ i, star (p i)=p i) (i : Run n) : |
| 18 | star (fromCurl (-p) g i) = fromCurl p (fun a => star (g a)) i := by |
| 19 | have H (n : ℕ) (p : Momentum) (hp : star p=p) a b : star (symbol n (-p) a b)=symbol n p a b := by |
| 20 | rw [← reading,show -p=-star p by rw [hp], Row.conjugate] |
| 21 | simp [reading] |
| 22 | unfold fromCurl |
| 23 | simp only [star_sum,star_mul,star_prod,Pi.neg_apply,H _ _ (hp _)] |
| 24 | exact sum_congr rfl fun a _ => mul_comm .. |
| 25 | |
| 26 | lemma axes_flip {α : Type} (r : Corn α) : axes (-r)=-(axes r) := by ext1 j; simp [axes] |
| 27 | lemma plotted_flip (p : Space t) : plotted (-p) = -(plotted p) := by |
| 28 | ext1 j; refine Fin.cases ?_ (fun j => ?_) j |
| 29 | · simp only [plotted, Pi.neg_apply,Fin.cons_zero,missing] |
| 30 | congr 1; simp_rw [← Finset.sum_neg_distrib]; rfl |
| 31 | simp only [plotted, Pi.neg_apply,Fin.cons_succ]; rfl |
| 32 | lemma real_plot (p : Corn (Keys t)) (i) : star (plotted (axes p) i)=plotted (axes p) i := by |
| 33 | refine Fin.cases ?_ (fun i => ?_) i |
| 34 | · simp only [plotted, Fin.cons_zero, miss_phase,axes_real] |
| 35 | ext1 j |
| 36 | simp [axes,plotted,projected] |
| 37 | |
| 38 | def readable {α : Type} [Fintype α] (f : Shift α → ℝ) (p : Phase α) := Laurent.read (fun i => (f i:ℂ)) p |
| 39 | lemma re_cast {α : Type} [Fintype α] {u : Phase α → ℂ} (h : Firm σ A u) {p : Phase α} (he : star p=p) : |
| 40 | readable (fun x => (market u 0 x).re) p = (u p+star (u (-p)))/2 := by |
| 41 | have hs := h.width_pos |
| 42 | have hh := h.1.issues h.2 (σ/2) (σ/3) (by positivity) (by positivity) (by linarith) |
| 43 | rw [readable, Work.F07.readRealPart hh (by linarith) he,h.1.paints h.2 _ (h.in_range he), |
| 44 | h.1.paints h.2 _ (h.in_range (by rw [star_neg,he]))] |
| 45 | |
| 46 | lemma real_rescue (f : Run (t+1) → Space t → ℂ) (hp : ∀ i p, star p=p → star (f i (-p))=f i p) |
| 47 | (g : CurRun (t+1) → Space t → ℂ) (hg : ∀ i, Firm σ A (g i)) (h : ∀ p : Corn (Keys t), ∀ b, |
| 48 | fromCurl (plotted (axes p)) (fun i => g i (axes p)) b=f b (axes p)) (p : Corn (Keys t)) (i : Run (t+1)) : |
| 49 | fromCurl (plotted (axes p)) (fun a => readable (fun x => (market (g a) 0 x).re) (axes p)) i=f i (axes p) := by |
| 50 | have he := h (-p) i |
| 51 | rw [axes_flip,plotted_flip] at he |
| 52 | have hw : star (fromCurl (-plotted (axes p)) (fun i => g i (-axes p)) i)=f i (axes p) := |
| 53 | (congr_arg star (by simpa only [axes_flip] using he)).trans (hp i _ (axes_real p)) |
| 54 | rw [curl_real _ _ (real_plot p) i] at hw |
| 55 | have hx : ∀ (a : CurRun (t+1)), readable (fun x => (market (g a) 0 x).re) (axes p) = |
| 56 | (g a (axes p)+star (g a (-axes p)))/2 := fun a => re_cast (hg a) (axes_real p) |
| 57 | unfold fromCurl |
| 58 | simp_rw [hx,← mul_div_assoc,mul_add,← Finset.sum_div,sum_add_distrib] |
| 59 | change (fromCurl (plotted (axes p)) (fun i => g i (axes p)) i + |
| 60 | fromCurl (plotted (axes p)) _ i)/2=_ |
| 61 | rw [h _ _,hw]; ring |
| 62 | |
| 63 | abbrev Ink (G : Gauge) (n : ℕ) := Fin n → G.ColorIndex |
| 64 | variable {G : Gauge} |
| 65 | |
| 66 | def paints (G : Gauge) (n : ℕ) : Submodule ℝ (Ink G n → ℝ) where |
| 67 | carrier := {w | ∀ (u : G.El) (a : Fin n → G.Color), |
| 68 | (∑ x, w x * ∏ i, G.adjoint u (a i) (x i)) = ∑ x, w x * ∏ i, (a i) (x i)} |
| 69 | zero_mem' := fun _ _ => by simp |
| 70 | add_mem' := fun {x y} h k u a => by simp only [Pi.add_apply, add_mul,Finset.sum_add_distrib]; rw [h,k] |
| 71 | smul_mem' := fun x _ h u a => by simp only [Pi.smul_apply,smul_eq_mul,mul_assoc,← Finset.mul_sum]; rw [h] |
| 72 | |
| 73 | def fixedInks (G : Gauge) (f : Ink G n → ℂ) := (fun i => (f i).re) ∈ paints G n ∧ (fun i => (f i).im) ∈ paints G n |
| 74 | |
| 75 | def picker (G : Gauge) (n : ℕ) : Matrix (Ink G n) (Ink G n) ℝ := |
| 76 | let P := paints G n |
| 77 | LinearMap.toMatrix' (P.subtype.comp (P.projectionOnto P.exists_isCompl.choose P.exists_isCompl.choose_spec)) |
| 78 | |
| 79 | lemma picks (a : Ink G n → ℝ) : picker G n *ᵥ a ∈ paints G n := by |
| 80 | unfold picker; dsimp only; rw [LinearMap.toMatrix'_mulVec]; exact Subtype.coe_prop _ |
| 81 | lemma keeps (a : Ink G n → ℝ) (h : a∈ paints G n) : picker G n *ᵥ a=a := by |
| 82 | let P := paints G n |
| 83 | let b : P := ⟨a,h⟩ |
| 84 | unfold picker; dsimp only; rw [LinearMap.toMatrix'_mulVec]; change (P.projectionOnto _ _ b.val).val= b.val; simp |
| 85 | lemma ink_retain (f : Ink G n → ℂ) (hp : fixedInks G f) : approached (picker G n)*ᵥ f=f := by |
| 86 | funext i |
| 87 | apply Complex.ext <;> simp only [Matrix.mulVec,dotProduct, Complex.re_sum,Complex.im_sum,Complex.mul_re, |
| 88 | Complex.mul_im, approached,Matrix.map_apply,Complex.ofReal_im,Complex.ofReal_re,zero_mul,sub_zero,add_zero] |
| 89 | exact congr_fun (keeps _ hp.1) i |
| 90 | exact congr_fun (keeps _ hp.2) i |
| 91 | |
| 92 | section weights |
| 93 | variable {α β : Type} [Fintype α] [Fintype β] |
| 94 | open Matrix (mulVec) |
| 95 | |
| 96 | def reserve (M : Matrix β β ℝ) : ℝ := ∑ i, ∑ j, ‖M i j‖ |
| 97 | lemma pay_reserve (M : Matrix β β ℝ) : 0 ≤ reserve M := by unfold reserve; positivity |
| 98 | lemma reserve_cost {R : β → Shift α → ℝ} (hr : ∀ b, Width σ A (R b)) (M : Matrix β β ℝ) (b : β) : |
| 99 | Width σ (A * reserve M) (fun x => (M*ᵥ fun j => R j x) b) := by |
| 100 | let f j (x : Shift α) := ‖M b j‖ * (Real.exp (σ*size x)*‖R j x‖) |
| 101 | have hs j : Summable (f j) := (hr j).2.1.mul_left _ |
| 102 | let g x := ∑ j,f j x |
| 103 | have hu : SumBudget g (A*reserve M) := by |
| 104 | refine ⟨fun x => sum_nonneg fun i _ => by unfold f; positivity, summable_sum fun i _ => hs i,?_⟩ |
| 105 | unfold g; rw [Summable.tsum_finsetSum (fun i _ => hs i)] |
| 106 | calc |
| 107 | _ ≤ ∑ j, ‖M b j‖*A := sum_le_sum fun j _ => by |
| 108 | unfold f; rw [tsum_mul_left]; exact mul_le_mul_of_nonneg_left (hr j).2.2 (norm_nonneg _) |
| 109 | _ ≤ _ := by |
| 110 | have hm := hr b; rw [← Finset.sum_mul,mul_comm A]; exact mul_le_mul_of_nonneg_right |
| 111 | (single_le_sum (fun i _ => sum_nonneg fun k _ => norm_nonneg _) (mem_univ b)) ((tsum_nonneg hm.1).trans hm.2.2) |
| 112 | refine Work.F08.budget_minor hu (fun _ => by positivity) ?_ |
| 113 | intro i; unfold Matrix.mulVec dotProduct |
| 114 | calc |
| 115 | _ ≤ _ := mul_le_mul_of_nonneg_left (norm_sum_le ..) (Real.exp_pos _).le |
| 116 | _ = _ := by unfold g f; rw [Finset.mul_sum]; exact sum_congr rfl fun j _ => by dsimp; rw [abs_mul,mul_left_comm] |
| 117 | |
| 118 | lemma reserve_read {R : β → Shift α → ℝ} (hr : ∀ b, Width σ A (R b)) (hσ : 0 < σ) (M : Matrix β β ℝ) (b : β) |
| 119 | (p : Corn α) : readable (fun x => (M*ᵥ fun j => R j x) b) (axes p) = (approached M *ᵥ fun j => readable (R j) (axes p)) b := by |
| 120 | let r := axes p |
| 121 | have hv j : Width σ A (fun x => (R j x:ℂ)) := by simpa only [Width,Complex.norm_real] using hr j |
| 122 | have hm j : Summable (fun i => mode r i • (R j i:ℂ)) := ((hv j).series r (by |
| 123 | intro i; simp [r,axes,hσ.le])).2.1.of_norm |
| 124 | have he j : Summable (fun i => (M b j:ℂ) * (mode r i * (R j i:ℂ))) := (hm j).mul_left _ |
| 125 | simp only [readable,Laurent.read,Matrix.mulVec,dotProduct,approached,Matrix.map_apply] |
| 126 | simp_rw [← tsum_mul_left, smul_eq_mul]; rw [← Summable.tsum_finsetSum (f:=fun j i => (M b j:ℂ) * (mode (axes p) i * (R j i:ℂ))) (fun i _ => he i)] |
| 127 | refine tsum_congr fun i => ?_ |
| 128 | push_cast; simp only [Finset.mul_sum] |
| 129 | exact sum_congr rfl fun j _ => mul_left_comm .. |
| 130 | end weights |
| 131 | |
| 132 | -- Pack for the painter |
| 133 | abbrev Picture (G : Gauge) (t : ℕ) := Ink G (t+1) → Run (t+1) → Space t → ℂ |
| 134 | abbrev Skin (G : Gauge) (t : ℕ) := CurRun (t+1) → Ink G (t+1) → Shift (Keys t) → ℝ |
| 135 | |
| 136 | structure Features (f : Picture G t) (σ A : ℝ) : Prop where |
| 137 | solid (x i) : Firm σ A (f x i) |
| 138 | wall (x) : Contractible (f x) |
| 139 | born (x i p) : star p = p → star (f x i (-p)) = f x i p |
| 140 | paint (p : Corn (Keys t)) (i) : fixedInks G (fun x => f x i (axes p)) |
| 141 | |
| 142 | structure Shades (R : Skin G t) (f : Picture G t) (σ A : ℝ) : Prop where |
| 143 | price (a i) : Width σ A (R a i) |
| 144 | value p i v : fromCurl (plotted (axes p)) (fun a => readable (R a i) (axes p)) v=f i v (axes p) |
| 145 | pigment (a y) : (fun i => R a i y) ∈ paints G _ |
| 146 | |
| 147 | private lemma div_ray {α : Type} [Fintype α] {f : Phase α → ℂ} (h : Firm σ A f) (hv : Rays n (f ∘ axes)) : |
| 148 | Rays n (fun p => readable (fun x => (market f 0 x).re) (axes p)) := by |
| 149 | intro p |
| 150 | have he : (fun x : ℝ => star (f (-axes (x • p)))) =O[cutRay] (fun x => x^n) := by |
| 151 | have H := hv (-p) |
| 152 | simpa only [Function.comp_apply,isBigO_iff, smul_neg,axes_flip,norm_star] using H |
| 153 | simp_rw [re_cast h (axes_real _),div_eq_inv_mul] |
| 154 | exact ((hv p).add he).const_mul_left _ |
| 155 | |
| 156 | private def actualRate (s : ℝ) (t : ℕ) : ℝ := (2*((1+s/4)/(s/4)))^(Fintype.card (Keys t)) |
| 157 | private lemma rate_pos (s : ℝ) (h : 0<s) (t : ℕ) : 0 ≤ actualRate s t := by unfold actualRate; positivity |
| 158 | |
| 159 | private lemma insertPaint (f : Picture G t) {u v : ℝ} (h : Features f u v) (hs : 0 < σ) |
| 160 | (g : Ink G (t+1) → CurRun (t+1) → Space t → ℂ) |
| 161 | (hg : ∀ i j, Firm σ A (g i j)) (hf : ∀ p : Corn (Keys t), ∀ i b, fromCurl (plotted (axes p)) (fun y => g i y (axes p)) b=f i b (axes p)) |
| 162 | {n : ℕ} (hj : ∀ i j, Rays n (g i j ∘ axes)) : |
| 163 | ∃ P : Skin G t, Shades P f (σ/2) (A*(actualRate σ t * reserve (picker G (t+1)))) ∧ |
| 164 | ∀ a i, Rays n (readable (P a i) ∘ axes) := by |
| 165 | let M := picker G (t+1) |
| 166 | let V a i (x : Shift (Keys t)) := (market (g i a) 0 x).re |
| 167 | let P a i x := (M*ᵥ fun j => V a j x) i |
| 168 | have hv a i : Width (σ/2) (A*actualRate σ t) (V a i) := by |
| 169 | let w := hg i a |
| 170 | exact Work.F07.widthRealPart (w.1.issues w.2 _ (σ/4) (by positivity) (by positivity) (by linarith)) |
| 171 | have hw a i p := reserve_read (hv a) (by positivity) M i p |
| 172 | refine ⟨P, ⟨fun a i => ?_, fun p i b => ?_, fun a x => picks (V a · x)⟩,fun a i => ?_⟩ |
| 173 | · rw [← mul_assoc]; exact reserve_cost (hv a) M i |
| 174 | · have he x : fromCurl (plotted (axes p)) (fun a => readable (V a x) (axes p)) b=f x b (axes p) := |
| 175 | real_rescue _ (h.born x) _ (hg x) (fun p b => hf p x b) _ _ |
| 176 | unfold fromCurl P |
| 177 | simp_rw [hw] |
| 178 | simp only [Matrix.mulVec,dotProduct, mul_sum]; rw [sum_comm] |
| 179 | calc |
| 180 | _ = ∑ j, (approached M i j)*(fromCurl (plotted (axes p)) (fun a => readable (V a j) (axes p)) b) := ?_ |
| 181 | _ = _ := ?_ |
| 182 | · unfold fromCurl; refine sum_congr rfl fun j _ => ?_ |
| 183 | rw [mul_sum]; exact sum_congr rfl fun k _ => mul_left_comm .. |
| 184 | simp_rw [he]; exact congr_fun (ink_retain _ (h.paint p b)) i |
| 185 | intro p |
| 186 | simp only [Function.comp_apply,P]; simp_rw [hw] |
| 187 | unfold Matrix.mulVec dotProduct |
| 188 | apply Asymptotics.IsBigO.sum; intro j _ |
| 189 | exact (div_ray (hg j a) (hj j a) p).const_mul_left _ |
| 190 | |
| 191 | /-- Get real Laurent coefficients with *per-placement* color invariance. |
| 192 | Cost at fixed finite arity only. -/ |
| 193 | lemma strokes (G : Gauge) (t : ℕ) (ht : 2 ≤ t) (σ : ℝ) (hs : 0<σ) : |
| 194 | ∃ η K : ℝ, 0 < η ∧ η≤σ ∧ 0≤K ∧ ∀ (A : ℝ) (f : Picture G t), 0 ≤ A → Features f σ A → |
| 195 | ∃ R : Skin G t, Shades R f η (A*K) := by |
| 196 | obtain ⟨w,C,hp,hΩ,hC,H⟩ := allleg t ht σ hs |
| 197 | refine ⟨w/2,C*(actualRate w t * reserve (picker G (t+1))),by positivity, by linarith, |
| 198 | mul_nonneg hC (mul_nonneg (rate_pos w hp _) (pay_reserve _)), fun A f ha h => ?_⟩ |
| 199 | choose g hg he using fun i => H A (f i) ha (h.solid i) (h.wall i) |
| 200 | obtain ⟨V,hv,_⟩ := insertPaint f h hp g hg (fun p i => he i p) (fun i j => rays_zero ((hg i j).analytic_real _)) |
| 201 | exact ⟨V, by rw [← mul_assoc]; exact hv⟩ |
| 202 | |
| 203 | lemma veins (G : Gauge) (σ : ℝ) (hs : 0<σ) : ∃ η K : ℝ, 0 < η ∧ η ≤ σ ∧ 0≤K ∧ |
| 204 | ∀ (A : ℝ) (s : ℕ) (f : Picture G 1), 0 ≤ A → Features f σ A → |
| 205 | (∀ i j, Rays (s+2) (f i j ∘ axes)) → |
| 206 | ∃ R : Skin G 1, Shades R f η (A*K) ∧ ∀ a i, Rays s (readable (R a i) ∘ axes) := by |
| 207 | obtain ⟨w,C,hp,hΩ,hC,H⟩ := bothleg σ hs |
| 208 | refine ⟨w/2,C*(actualRate w 1 * reserve (picker G (1+1))),by positivity, by linarith, |
| 209 | mul_nonneg hC (mul_nonneg (rate_pos w hp _) (pay_reserve _)), fun A s f ha h hv => ?_⟩ |
| 210 | choose g hg hh he using fun i => H A s (f i) ha (h.solid i) (h.wall i) (hv i) |
| 211 | rw [← mul_assoc]; exact insertPaint f h hp g hg (fun p i => he i p) hh |
| 212 | end YM.Stationary |
| 213 | end |
| 214 | |
| 215 | /-! Real path presentation. Harmonic test for the loop kernel uses derivative |
| 216 | in p on the common series, not on the curvature inputs. Counts each of the |
| 217 | four plaquette edges on **every** leg. Uses actual Invariant atoms. -/ |
| 218 | noncomputable section |
| 219 | namespace YM.Stationary |
| 220 | open Function Lattice RG Exterior Wilson Bloch Laurent Filter Finset Asymptotics |
| 221 | open Matrix (transpose mulVec of) |
| 222 | open scoped Matrix Topology ContDiff BigOperators NNReal |
| 223 | variable {G : Gauge} {n t : ℕ} {σ A : ℝ} |
| 224 | |
| 225 | section moments |
| 226 | variable {α : Type} [Fintype α] [DecidableEq α] {R : Shift α → ℝ} |
| 227 | |
| 228 | omit [DecidableEq α] in |
| 229 | private lemma moment_bound (hw : Width σ A R) (hs : 0 < σ) : Summable fun x => ‖R x‖*(size x:ℝ) := by |
| 230 | refine Summable.of_nonneg_of_le (fun x => by positivity) (fun x => ?_) (hw.2.1.mul_right σ⁻¹) |
| 231 | rw [mul_right_comm, mul_comm _ ‖R x‖]; gcongr |
| 232 | rw [← div_eq_mul_inv, le_div_iff₀ hs, mul_comm]; linarith [Real.add_one_le_exp (σ*size x)] |
| 233 | |
| 234 | theorem vertical_moment (hw : Width σ A R) (hs : 0 < σ) (i : α) : Summable (fun x => R x*(x i:ℤ)) ∧ |
| 235 | HasDerivAt (fun t : ℝ => readable R (axes (t • Pi.single i (1:ℝ)))) |
| 236 | ((∑' x : Shift α, R x * (x i:ℤ) : ℝ) * Complex.I) 0 := by |
| 237 | let Q (x : Shift α) : ℝ := R x*(x i:ℤ) |
| 238 | have he : Summable (fun x : Shift α => ‖Q x‖) := |
| 239 | Summable.of_nonneg_of_le (fun i => norm_nonneg _) (fun x => by |
| 240 | unfold Q; rw [norm_mul]; gcongr |
| 241 | simp only [Real.norm_eq_abs]; rw [← Int.cast_abs]; apply Int.cast_le.mpr ?_ |
| 242 | rw [← Int.natCast_natAbs] |
| 243 | exact_mod_cast (single_le_sum (f:=fun a => (x a).natAbs) (fun _ _ => Nat.zero_le _) (mem_univ i))) (moment_bound hw hs) |
| 244 | refine ⟨he.of_norm, ?_⟩ |
| 245 | let v (x : Shift α) (t : ℝ) := mode (axes (t • Pi.single i 1)) x |
| 246 | have hz (x t) : v x t = Complex.exp ((t:ℂ)*((x i:ℤ)*Complex.I)) := by |
| 247 | unfold v mode |
| 248 | congr 1 |
| 249 | calc |
| 250 | _ = Complex.I * ((axes (t • Pi.single i 1)) i * (x i:ℤ)) := by |
| 251 | congr 1; rw [Finset.sum_eq_single i] |
| 252 | · intro b _ hn; simp [axes,Pi.single_eq_of_ne hn] |
| 253 | simp |
| 254 | _ = _ := by simp [axes]; ring |
| 255 | let g x t := v x t*(R x:ℂ) |
| 256 | let h x t := v x t*((Q x:ℂ)*Complex.I) |
| 257 | have ht x t : HasDerivAt (g x) (h x t) t := by |
| 258 | unfold g h Q; simp_rw [hz] |
| 259 | have hu : HasDerivAt (fun s : ℝ => (s:ℂ)) 1 t := Complex.ofRealCLM.hasFDerivAt.hasDerivAt |
| 260 | convert! ((hu.mul_const _).cexp.mul_const _) using 1; push_cast; ring |
| 261 | have hh x t : ‖h x t‖ ≤ ‖Q x‖ := by unfold h v; simp [Laurent.mode_real _ x (axes_real _)] |
| 262 | have hu : Summable (fun i => g i 0) := by unfold g v; simpa using (Complex.ofRealCLM.summable (hw.summable hs.le)) |
| 263 | have hk := hasDerivAt_tsum_of_isPreconnected he isOpen_univ isPreconnected_univ (fun x t _ => ht x t) (fun x t _ => hh x t) (Set.mem_univ _) hu (Set.mem_univ 0) |
| 264 | convert! hk using 1 |
| 265 | unfold h v; simp [Complex.ofReal_tsum,tsum_mul_right,Q] |
| 266 | |
| 267 | lemma jet_moment (hw : Width σ A R) (hs : 0<σ) (ht : Rays 2 (readable R ∘ axes)) : |
| 268 | HasSum R 0 ∧ ∀ i : α, HasSum (fun x => R x*(x i:ℤ)) 0 := by |
| 269 | have he := Firm.of_series (f:=fun x=> (R x:ℂ)) (A:=A) (by simpa only [Width,Complex.norm_real] using hw) hs |
| 270 | have hv := he.analytic_real 0 |
| 271 | have hq := (rays_at_zero (f:=readable R ∘ axes) hv).1 (ht.weaker (by decide : 1≤2)) |
| 272 | change Laurent.read _ (axes (0:Corn α))=0 at hq |
| 273 | rw [Laurent.read,axes_origin] at hq |
| 274 | simp only [mode_constant,one_smul,← Complex.ofReal_tsum, Complex.ofReal_eq_zero] at hq |
| 275 | refine ⟨hq ▸ (hw.summable hs.le).hasSum,fun i => ?_⟩ |
| 276 | obtain ⟨H,hV⟩ := vertical_moment hw hs i |
| 277 | have hj := (rays_jet (f:=readable R ∘ axes) hv 2).1 ht 1 (by norm_num) |
| 278 | have hy : fderiv ℝ (readable R ∘ axes) 0=0 := by |
| 279 | ext1 x |
| 280 | simpa [iteratedFDeriv_one_apply] using DFunLike.congr_fun hj (fun _ => x) |
| 281 | have hp := Push.side (readable R ∘ axes) hv.differentiableAt (Pi.single i 1) |
| 282 | rw [hy] at hp |
| 283 | have hL := hV.unique hp |
| 284 | change _ = (0:ℂ) at hL |
| 285 | simp only [mul_eq_zero, Complex.I_ne_zero, or_false, Complex.ofReal_eq_zero] at hL |
| 286 | exact hL ▸ H.hasSum |
| 287 | end moments |
| 288 | |
| 289 | section atoms |
| 290 | |
| 291 | def carrierPath (t : ℕ) [NeZero t] : ℕ ≃ CurRun (t+1) × Shift (Keys t) := by |
| 292 | haveI : Nonempty (TypeFace 2) := ⟨plaquette ⟨(0,1),by decide⟩⟩ |
| 293 | exact enumerate _ |
| 294 | |
| 295 | def artery (P : Skin G t) (p : CurRun (t+1) × Shift (Keys t)) : Atom G (t+1) where |
| 296 | leg i := walkSlot (plaqEquiv.symm (p.1 i)) ((Fin.cons (α:=fun _ : Fin (t+1) => Cover) (0:Cover) (fun k a => p.2 (k,a))) i) |
| 297 | coeff x := P p.1 x p.2 |
| 298 | |
| 299 | def inkCost (G : Gauge) (t : ℕ) (σ : ℝ) := let d:=4*((t:ℝ)+1); (Fintype.card (CurRun (t+1)):ℝ)*(Fintype.card (Ink G (t+1)):ℝ)*Real.exp (σ*d) |
| 300 | |
| 301 | lemma inkCost_nonneg (t : ℕ) (G : Gauge) (σ : ℝ) : 0 ≤ inkCost G t σ := by unfold inkCost; dsimp only; positivity |
| 302 | |
| 303 | lemma artery_length (P : Skin G t) (q : CurRun (t+1) × Shift (Keys t)) : (artery P q).length = size q.2+4*(t+1) := by |
| 304 | unfold Atom.length artery |
| 305 | rw [Fin.sum_univ_succ] |
| 306 | simp_rw [walkSlot_cost, Fin.cons_zero, Fin.cons_succ,sum_add_distrib, Laurent.size] |
| 307 | rw [Fintype.sum_prod_type]; simp; omega |
| 308 | |
| 309 | lemma realpath_price {P : Skin G t} (hp : ∀ i j, Width σ A (P i j)) : |
| 310 | SumBudget (fun i => (artery P i).budget σ) (A*inkCost G t σ) := by |
| 311 | let c := Real.exp (σ*(4*(t+1:ℕ):ℕ)) |
| 312 | let k := (Fintype.card (Ink G (t+1)):ℝ)*A*c |
| 313 | have he : A*inkCost G t σ = ∑ _ : CurRun (t+1), k := by simp [inkCost,k,c]; ring |
| 314 | rw [he]; apply budget_prod_finite (A:=fun _ => k) |
| 315 | intro i |
| 316 | let f (j : Ink G (t+1)) (x : Shift (Keys t)) := Real.exp (σ*size x)*‖P i j x‖*c |
| 317 | have hh j x : 0 ≤ f j x := by unfold f c; positivity |
| 318 | have hv j : Summable (f j) := (hp i j).2.1.mul_right _ |
| 319 | rw [show (fun x => (artery P (i,x)).budget σ)=(fun x => ∑ j,f j x) by |
| 320 | ext x; rw [Atom.budget,artery_length,Atom.magnitude] |
| 321 | unfold f c; simp only [artery, Nat.cast_add,mul_add,Real.exp_add,Finset.sum_mul, |
| 322 | Real.norm_eq_abs]; exact sum_congr rfl fun j _ => by ring] |
| 323 | refine ⟨fun x => Finset.sum_nonneg (fun j _ => hh j x), summable_sum (fun j _ => hv j),?_⟩ |
| 324 | rw [Summable.tsum_finsetSum (fun j _ => hv j)] |
| 325 | calc |
| 326 | _ ≤ ∑ _ : Ink G (t+1), A*c := sum_le_sum fun j _ => by |
| 327 | unfold f; rw [tsum_mul_right]; exact mul_le_mul_of_nonneg_right (hp i j).2.2 (Real.exp_pos _).le |
| 328 | _ = k := by simp [k]; ring |
| 329 | |
| 330 | variable [NeZero t] |
| 331 | def issue (P : Skin G t) (n : ℕ) := artery P (carrierPath t n) |
| 332 | |
| 333 | lemma artery_funded {P : Skin G t} {f : Picture G t} (h : Shades P f σ A) : |
| 334 | SumBudget (fun i => (issue P i).budget σ) (A*inkCost G t σ) ∧ ∀ i : ℕ, (issue P i).Invariant := |
| 335 | ⟨budget_copy (carrierPath t) (realpath_price h.price), fun i => (show _ from h.pigment (carrierPath t i).1 _)⟩ |
| 336 | end atoms |
| 337 | |
| 338 | lemma issue_normal {P : Skin G 1} (h : ∀ i j, Width σ A (P i j)) (hs : 0 < σ) |
| 339 | (ht : ∀ a i, Rays 2 (readable (P a i) ∘ axes)) (R : PathData G) (hR : R.loop=issue P) : |
| 340 | ∀ i x, HasSum (R.loop_coeff i x) 0 ∧ ∀ l : Axis, HasSum (fun k => R.loop_coeff i x k * |
| 341 | (((((issue P k).leg 1).offset l - ((issue P k).leg 0).offset l : ℤ) : ℝ))) 0 := by |
| 342 | intro i x |
| 343 | let b : CurRun (1+1) := plaquette ∘ i |
| 344 | let f (y : CurRun (1+1) × Shift (Keys 1)) : ℝ := if y.1=b then P b x y.2 else 0 |
| 345 | have he : R.loop_coeff i x = f ∘ (carrierPath 1) := by |
| 346 | ext k |
| 347 | let u := carrierPath 1 k |
| 348 | have hh : ((fun j => ((R.loop k).leg j).plaq)=i) ↔ u.1=b := by |
| 349 | rw [hR] |
| 350 | constructor |
| 351 | · intro H |
| 352 | ext1 j |
| 353 | exact plaqEquiv.symm.injective (show _ = plaqEquiv.symm (plaqEquiv _) by rw [plaqEquiv.symm_apply_apply]; exact congr_fun H j) |
| 354 | intro H |
| 355 | ext1 j |
| 356 | change plaqEquiv.symm (u.1 j)= _ |
| 357 | rw [H]; exact plaqEquiv.symm_apply_apply _ |
| 358 | rw [PathData.loop_coeff]; change _=f u |
| 359 | by_cases H : u.1=b |
| 360 | · rw [if_pos (hh.mpr H), hR]; unfold f; rw [if_pos H] |
| 361 | change P (u.1) x u.2 = _; rw [H] |
| 362 | rw [if_neg (hh.not.mpr H)]; unfold f; rw [if_neg H] |
| 363 | have hx {g : Shift (Keys 1) → ℝ} (h : HasSum g 0) : HasSum (fun p : CurRun (1+1) × Shift (Keys 1) => if p.1=b then g p.2 else 0) 0 := by |
| 364 | let u : Shift (Keys 1) → CurRun (1+1) × Shift (Keys 1) := Prod.mk b |
| 365 | have hh : Injective u := fun a b e => congr_arg Prod.snd e |
| 366 | refine (Function.Injective.hasSum_iff hh ?_).1 ?_ |
| 367 | · intro i hi; apply if_neg; intro he; exact hi ⟨i.2, Prod.ext he.symm rfl⟩ |
| 368 | simpa only [u,Function.comp_def,↓reduceIte] using! h |
| 369 | obtain ⟨H,H'⟩ := jet_moment (h b x) hs (ht b x) |
| 370 | rw [he]; refine ⟨(carrierPath 1).hasSum_iff.mpr (hx H), fun l => ?_⟩ |
| 371 | apply HasSum.congr_fun ((carrierPath 1).hasSum_iff.mpr (hx (H' (0,l)))) (fun n => ?_) |
| 372 | let v := carrierPath 1 n |
| 373 | symm |
| 374 | change (if v.1=b then P b x v.2*(v.2 (0,l):ℤ) else 0) = f v * _ |
| 375 | simp only [issue,artery,Fin.cons_zero,walkSlot_end] |
| 376 | unfold f; split |
| 377 | · congr 2 |
| 378 | change _ = v.2 (0,l)-0; simp |
| 379 | simp |
| 380 | end YM.Stationary |
| 381 | end |
| 382 | |
| 383 | /-! # Wave normalization for the scalar jets |
| 384 | |
| 385 | `Recorded` uses a coefficient (normalized by n!), complex-linear in wave amplitudes |
| 386 | (not Hermitian form except by supplying conjugated tests), with inverse-momentum |
| 387 | slot *first* in n=2. `volume` at this calculation is the CARD of target sites, |
| 388 | using counting Fourier conventions; not a Haar probability divisor. |
| 389 | -/ |
| 390 | noncomputable section |
| 391 | namespace YM.Stationary |
| 392 | open Function Lattice RG Exterior Wilson Precision Bloch Laurent Filter Finset Asymptotics |
| 393 | open Matrix (transpose mulVec of) |
| 394 | open scoped Matrix Topology ContDiff BigOperators NNReal |
| 395 | variable {G : Gauge} {n t : ℕ} {m : Side} |
| 396 | |
| 397 | section identify |
| 398 | variable (G m) (n : ℕ) |
| 399 | |
| 400 | abbrev Loc (G : Gauge) (n : ℕ) := TypeFace n × G.ColorIndex |
| 401 | abbrev Lines (G : Gauge) (m : Side) (n : ℕ) := Co m (Loc G n) |
| 402 | |
| 403 | def arm : Corn (Lines G m n) ≃L[ℝ] fieldDir G m n := LinearEquiv.toContinuousLinearEquiv { |
| 404 | toFun a x := WithLp.toLp 2 fun i => a (x.1,x.2,i) |
| 405 | invFun a x := a (x.1,x.2.1) x.2.2 |
| 406 | map_add' _ _ := rfl |
| 407 | map_smul' _ _ := rfl |
| 408 | left_inv _ := rfl |
| 409 | right_inv _ := rfl } |
| 410 | lemma arm_apply (x : Corn (Lines G m n)) (i j k) : arm G m n x (i,j) k=x (i,j,k) := rfl |
| 411 | |
| 412 | def input (a : Corn (Lines G m 1)) := represent (arm G m 1 a) |
| 413 | @[simp] lemma input_zero : input G m 0=1 := by unfold input; rw [map_zero,link_one] |
| 414 | lemma inverts (F H : fieldDir G m 1 → ℝ) (p : ℕ) (hf : ContDiffAt ℝ ω F 0) (hu : ContDiffAt ℝ ω H 0) |
| 415 | (hh : iteratedFDeriv ℝ p (F ∘ arm G m 1) 0=iteratedFDeriv ℝ p (H ∘ arm G m 1) 0) : |
| 416 | iteratedFDeriv ℝ p F 0=iteratedFDeriv ℝ p H 0 := by |
| 417 | ext1 v |
| 418 | let L := (arm G m 1).toContinuousLinearMap |
| 419 | have he := DFunLike.congr_fun hh (fun i => (arm G m 1).symm (v i)) |
| 420 | change iteratedFDeriv ℝ p (F ∘ L) 0 _=iteratedFDeriv ℝ p (H ∘ L) 0 _ at he |
| 421 | rw [wired L ?_, wired L ?_, map_zero] at he |
| 422 | · simpa [L,Function.comp_def] using he |
| 423 | all_goals rw [map_zero] |
| 424 | exacts [hu.analyticAt,hf.analyticAt] |
| 425 | end identify |
| 426 | |
| 427 | section mesh |
| 428 | variable {α : Type} [Fintype α] [DecidableEq α] |
| 429 | |
| 430 | def tune (p : Site m) (v : Phase α) : Phase (Co m α) := fun i => cell p i.1 * v i.2 |
| 431 | |
| 432 | def relay (p : Site m) (a : α) : Phase (Co m α) := tune p (Pi.single a 1) |
| 433 | omit [Fintype α] in |
| 434 | lemma coef_wave (p x : Site m) (i j : α) : rotations m α (x,i) (p,j) = relay p j (x,i) := by |
| 435 | by_cases h : i=j <;> simp [rotations,relay,tune, *] |
| 436 | lemma relay_ext {ι : Type} [Fintype ι] [DecidableEq ι] (F H : RecordM ℂ ι (Co m α)) |
| 437 | (he : ∀ (p : ι → Co m α), F (fun i => relay (p i).1 (p i).2) = H fun i => relay (p i).1 (p i).2) : F=H := by |
| 438 | let L := rotations m α |
| 439 | let d := (m.val:ℂ)^4 |
| 440 | have hp : d≠0 := pow_ne_zero 4 (side_ne _) |
| 441 | apply MultilinearMap.ext; intro v |
| 442 | let b (i : ι) := d⁻¹ • (star L *ᵥ v i) |
| 443 | have ht (i : ι) : L *ᵥ b i = v i := by |
| 444 | rw [show b i=_ from rfl, Matrix.mulVec_smul, Matrix.mulVec_mulVec, rotations_gram] |
| 445 | rw [Matrix.smul_mulVec, Matrix.one_mulVec]; exact inv_smul_smul₀ hp _ |
| 446 | let g (i : ι) (k : Co m α) := b i k • relay k.1 k.2 |
| 447 | have hW : v=(fun i => ∑ j,g i j) := by |
| 448 | funext i z; rw [← ht i, Finset.sum_apply, Matrix.mulVec, dotProduct] |
| 449 | exact sum_congr rfl fun p _ => (congrArg (· * b i p) (coef_wave p.1 z.1 z.2 p.2)).trans (mul_comm ..) |
| 450 | rw [hW,F.map_sum (g:=g),H.map_sum (g:=g)] |
| 451 | refine sum_congr rfl fun j _ => ?_ |
| 452 | rw [show F _=_ from F.map_smul_univ (fun i => b i (j i)) _,show H (fun i => g i (j i)) = _ from H.map_smul_univ (fun i => b i (j i)) (fun i => relay _ _),he] |
| 453 | |
| 454 | -- Momentum conservation exact, even aliases at −π |
| 455 | lemma profile_shift (p : Fin (t+1) → Site m) (hp : ∑ i,p i=0) : |
| 456 | p 0 = -∑ i : Fin t, p i.succ := by |
| 457 | rw [Fin.sum_univ_succ] at hp; exact eq_neg_of_add_eq_zero_left hp |
| 458 | |
| 459 | def outphase (p : Fin (t+1) → Site m) : Space t := fun i => mon (p i.1.succ) i.2 |
| 460 | lemma out_real (p : Fin (t+1) → Site m) : star (outphase p)=outphase p := funext fun ⟨i,j⟩ => congr_fun (real_frequency (p i.succ)) j |
| 461 | lemma manyModes (p : Fin (t+1) → Site m) (hp : ∑ i,p i=0) (x : Cover) (j : Fin (t+1)) : |
| 462 | mode (plotted (outphase p) j) x=cell (p j) (wrap m x) := by |
| 463 | refine Fin.cases ?_ (fun j => ?_) j |
| 464 | · rw [profile_shift p hp,cell_duality] |
| 465 | simp only [plotted,Fin.cons_zero,missing] |
| 466 | rw [mode_inverse,cell_inverse] |
| 467 | let s (i : Fin t) := p i.succ |
| 468 | congr 1 |
| 469 | suffices hh : ∀ k : Finset (Fin t), mode (∑ i ∈ k,mon (s i)) x = cell (wrap m x) (∑ i∈k, s i) from hh univ |
| 470 | intro k; induction k using Finset.induction with |
| 471 | | empty => simp |
| 472 | | insert i u hv ih => |
| 473 | rw [sum_insert hv,sum_insert hv,cell_add,mode_phase,ih,cell_duality _ (s i),cell_wrap] |
| 474 | simp only [plotted, Fin.cons_succ,cell_wrap]; rfl |
| 475 | |
| 476 | lemma waved_symbol (p : Fin (t+1) → Site m) (hp : ∑ i,p i=0) (j k) : |
| 477 | symbol k (plotted (outphase p) j)=symbol k (mon (p j)) := by |
| 478 | simp only [← reading,Row.read,Laurent.read] |
| 479 | simp_rw [manyModes p hp,cell_wrap] |
| 480 | end mesh |
| 481 | |
| 482 | -- Denominator volume (coarse for blocked, fine for unblocked). |
| 483 | def glyph (p : Fin (t+1) → Site m) (i : Ink G (t+1)) (b : Run (t+1)) : Fin (t+1) → Phase (Lines G m 1) := fun a => relay (p a) (b a,i a) |
| 484 | |
| 485 | def collected (L : Picture G t) (p : Fin (t+1) → Site m) (i b) := |
| 486 | if ∑ j, p j=0 then (Fintype.card (Site m):ℂ)*L i b (outphase p) else 0 |
| 487 | |
| 488 | /-- A complex per-lattice bill on the coefficient. To specify per-site normalized, |
| 489 | multiply by cardinality in the caller. It will pay all amplitudes in comparison |
| 490 | but here only prices the canonical unit-amplitude basis. -/ |
| 491 | def Recorded (L : Picture G t) (f : Corn (Lines G m 1) → ℝ) (A : ℝ) := ∀ p i b, |
| 492 | ‖noteAt f (t+1) (glyph (m:=m) p i b) - collected L p i b‖ ≤ A |
| 493 | end YM.Stationary |
| 494 | end |
| 495 | |
| 496 | /-! Ordered curvature tensor, leading part of the actual uncut atom series. -/ |
| 497 | noncomputable section |
| 498 | namespace YM.Stationary |
| 499 | open Function Lattice RG Exterior Wilson Precision Bloch Laurent Filter Finset Asymptotics |
| 500 | open Matrix (transpose mulVec of) |
| 501 | open scoped Matrix Matrix.Norms.Frobenius Topology ContDiff BigOperators NNReal |
| 502 | variable {G : Gauge} {n t : ℕ} {m : Side} |
| 503 | |
| 504 | abbrev Link (G : Gauge) (m : Side) := Corn (Lines G m 1) |
| 505 | |
| 506 | def plaqEval (p : Face (Per m)) (b : G.ColorIndex) : Link G m →L[ℝ] ℝ := LinearMap.toContinuousLinearMap { |
| 507 | toFun a := Work.F03.faceCurl p (arm G m 1 a) b |
| 508 | map_add' x y := congr_fun (Matrix.mulVec_add (d 1 m) (parts _ 1 (arm G m 1 x) b) (parts _ 1 (arm G m 1 y) b)) _ |
| 509 | map_smul' c x := congr_fun (Matrix.mulVec_smul (d 1 m) c (parts _ 1 (arm G m 1 x) b)) _ } |
| 510 | |
| 511 | def inkNote (p : Site m) (A : Atom G n) : Tensor.T (Link G m) ℝ n := ∑ x : Ink G n, |
| 512 | (ContinuousMultilinearMap.mkPiRing ℝ (Fin n) (A.coeff x)).compContinuousLinearMap |
| 513 | (fun j => plaqEval (Work.F03.slotFace (A.leg j) p) (x j)) |
| 514 | |
| 515 | lemma ink_note (p : Site m) (A : Atom G n) (v : Fin n → Link G m) : |
| 516 | inkNote p A v = ∑ x : Ink G n, A.coeff x * |
| 517 | ∏ j : Fin n, Work.F03.faceCurl (Work.F03.slotFace (A.leg j) p) (arm G m 1 (v j)) (x j) := by |
| 518 | unfold inkNote; rw [_root_.sum_apply] |
| 519 | refine sum_congr rfl fun j _ => ?_ |
| 520 | rw [mul_comm (A.coeff j)]; rfl |
| 521 | |
| 522 | private def payFixed (G : Gauge) (m : Side) := ∑ p : Face (Per m), ∑ b : G.ColorIndex, ‖plaqEval p b‖ |
| 523 | |
| 524 | lemma ink_budget (p : Site m) (A : Atom G n) : ‖inkNote p A‖ ≤ A.magnitude * payFixed G m ^ n := by |
| 525 | rw [inkNote, Atom.magnitude, Finset.sum_mul] |
| 526 | apply (norm_sum_le ..).trans (Finset.sum_le_sum ?_) |
| 527 | intro x _ |
| 528 | have h (i : Fin n) : ‖plaqEval (Work.F03.slotFace (A.leg i) p) (x i)‖ ≤ payFixed G m := |
| 529 | (single_le_sum (f:=fun j => ‖plaqEval (Work.F03.slotFace (A.leg i) p) j‖) (fun _ _ => norm_nonneg _) (mem_univ (x i))).trans |
| 530 | (single_le_sum (f:=fun p : Face (Per m) => ∑ b : G.ColorIndex, ‖plaqEval p b‖) (fun k _ => sum_nonneg fun j _ => norm_nonneg _) (mem_univ _)) |
| 531 | refine ContinuousMultilinearMap.opNorm_le_bound (by unfold payFixed; positivity) (fun v => ?_) |
| 532 | change ‖(∏ i, plaqEval (Work.F03.slotFace (A.leg i) p) (x i) (v i)) * A.coeff x‖ ≤ _ |
| 533 | rw [norm_mul,norm_prod] |
| 534 | calc |
| 535 | _ ≤ (∏ i, payFixed G m * ‖v i‖) * ‖A.coeff x‖ := by |
| 536 | refine mul_le_mul_of_nonneg_right (prod_le_prod (fun i _ => norm_nonneg _) ?_) (norm_nonneg _) |
| 537 | exact fun i _ => (ContinuousLinearMap.le_opNorm _ _).trans (mul_le_mul_of_nonneg_right (h i) (norm_nonneg _)) |
| 538 | _ = _ := by simp [prod_mul_distrib]; ring |
| 539 | |
| 540 | section order |
| 541 | variable (m) (F : ℕ → Atom G n) |
| 542 | |
| 543 | def seriesScore (a : Link G m) := uncut F (input G m a) |
| 544 | def volumeInk := ∑ x : Site m, ∑' i, inkNote x (F i) |
| 545 | |
| 546 | variable {σ C : ℝ} (hs : 0<σ) (h : SumBudget (fun i => (F i).budget σ) C) |
| 547 | include hs h |
| 548 | |
| 549 | lemma ink_summable p : Summable (fun i => ‖inkNote (m:=m) p (F i)‖) := Summable.of_nonneg_of_le |
| 550 | (fun _ => norm_nonneg _) (fun i => (ink_budget p (F i)).trans (mul_le_mul_of_nonneg_right |
| 551 | ((F i).lower_budget σ hs) (by unfold payFixed; positivity))) (h.2.1.mul_right _) |
| 552 | |
| 553 | lemma ink_apply (v : Fin n → Link G m) : volumeInk m F v = ∑ x : Site m, ∑' i, inkNote x (F i) v := by |
| 554 | unfold volumeInk; rw [_root_.sum_apply]; refine sum_congr rfl fun i _ => ?_ |
| 555 | exact (ContinuousMultilinearMap.apply ℝ _ ℝ v).map_tsum (ink_summable m F hs h i).of_norm |
| 556 | |
| 557 | lemma path_lim (v : Link G m) : Tendsto (fun b : ℝ => (b^n)⁻¹ • seriesScore m F (b • v)) cutRay |
| 558 | (𝓝 (Tensor.diagonal (volumeInk m F) v)) := by |
| 559 | unfold Tensor.diagonal; rw [ink_apply m F hs h]; simp_rw [ink_note] |
| 560 | have hv := Work.F03.atoms_limit (arm G m 1 v) F hs h |
| 561 | simpa only [seriesScore,input,map_smul, Atom.poly,div_eq_inv_mul,smul_eq_mul] using hv |
| 562 | |
| 563 | lemma score_analytic : AnalyticAt ℝ (seriesScore m F) 0 := |
| 564 | (Work.F02.uncut_contDiffAt (A:=input G m) hs h (fun i => |
| 565 | (Work.F03.represent_smooth (G:=G) i).contDiffAt.comp (f:=arm G m 1) _ (arm G m 1).contDiff.contDiffAt)).analyticAt |
| 566 | lemma ink_low : Rays n (seriesScore m F) := ray_origin (fun v => ⟨_,path_lim m F hs h v⟩) |
| 567 | |
| 568 | lemma total_ink : Tensor.coeff (seriesScore m F) n 0 = Tensor.symmetrize (volumeInk m F) := by |
| 569 | have he := score_analytic m F hs h |
| 570 | apply Tensor.ext_diag _ _ (Tensor.coeff_symm he.contDiffAt) (Tensor.symmetrize_sym _) |
| 571 | funext p; simp only [Tensor.symmetrize_diagonal] |
| 572 | exact tendsto_nhds_unique (ray_limit he (ink_low m F hs h) p) (path_lim m F hs h p) |
| 573 | |
| 574 | /-- Keep the symmetric permutation in each dot product. -/ |
| 575 | lemma ink_beat (v : Fin n → Phase (Lines G m 1)) : |
| 576 | noteAt (seriesScore m F) n v= (n.factorial:ℂ)⁻¹ * ∑ p : Equiv.Perm (Fin n), enlarge (volumeInk m F).toMultilinearMap (v ∘ p) := by |
| 577 | let L := enlarge (volumeInk m F).toMultilinearMap |
| 578 | let M := ∑ p : Equiv.Perm (Fin n), ((n.factorial:ℂ)⁻¹) • L.domDomCongr p |
| 579 | suffices he : noteAt (seriesScore m F) n = M by |
| 580 | rw [he, Finset.mul_sum]; unfold M; rw [_root_.sum_apply]; rfl |
| 581 | apply enlarge_unique; intro v |
| 582 | rw [note_map,total_ink m F hs h,enlarge_real] |
| 583 | unfold M L; rw [_root_.sum_apply]; simp only [_root_.smul_apply,Tensor.symmetrize] |
| 584 | change (((Fintype.card (Equiv.Perm (Fin n)):ℝ)⁻¹ * |
| 585 | (∑ p : Equiv.Perm (Fin n), (volumeInk m F).domDomCongr p) v : ℝ): ℂ)=_ |
| 586 | rw [_root_.sum_apply]; push_cast |
| 587 | rw [Fintype.card_perm, Fintype.card_fin,Finset.mul_sum] |
| 588 | refine sum_congr rfl fun i _ => ?_ |
| 589 | change _ = _ * enlarge _ (axes ∘ (v ∘ i)); rw [enlarge_real]; rfl |
| 590 | end order |
| 591 | end YM.Stationary |
| 592 | end |
| 593 | |
| 594 | /-! # The actual periodic test of the paths, including n=2 harmonic -/ |
| 595 | noncomputable section |
| 596 | namespace YM.Stationary |
| 597 | open Function Lattice RG Exterior Wilson Precision Bloch Laurent Filter Finset Asymptotics |
| 598 | open Matrix (transpose mulVec of) |
| 599 | open scoped Matrix Topology ContDiff BigOperators NNReal |
| 600 | variable {G : Gauge} {n t : ℕ} {m : Side} {σ A : ℝ} |
| 601 | |
| 602 | -- moving sums through complexified tensors |
| 603 | section summable |
| 604 | variable {α : Type} [Fintype α] [DecidableEq α] |
| 605 | lemma enlarge_sum {ι : Type} (s : Finset ι) (F : ι → Tensor.T (Corn α) ℝ n) |
| 606 | (b : Fin n → Phase α) : enlarge (∑ i ∈ s, F i).toMultilinearMap b = ∑ i∈s, enlarge (F i).toMultilinearMap b := by |
| 607 | let Q := ∑ i∈s,enlarge (F i).toMultilinearMap |
| 608 | have he : enlarge (∑ i∈s,F i).toMultilinearMap=Q := by |
| 609 | apply enlarge_unique; intro v |
| 610 | rw [enlarge_real]; unfold Q; rw [_root_.sum_apply]; simp_rw [enlarge_real] |
| 611 | simp |
| 612 | rw [he]; unfold Q; rw [_root_.sum_apply] |
| 613 | |
| 614 | lemma enlarge_series {ι : Type} (F : ι → Tensor.T (Corn α) ℝ n) (hf : Summable F) |
| 615 | (b : Fin n → Phase α) : HasSum (fun i => enlarge (F i).toMultilinearMap b) (enlarge (tsum F).toMultilinearMap b) := by |
| 616 | let u : Tensor.T (Corn α) ℝ n →ₗ[ℝ] ℂ := { |
| 617 | toFun x := enlarge x.toMultilinearMap b |
| 618 | map_add' x y := by |
| 619 | unfold enlarge; rw [recording_apply,recording_apply,recording_apply]; simp_rw [← sum_add_distrib] |
| 620 | apply sum_congr rfl; intro i _; simp [mul_add] |
| 621 | map_smul' a x := by |
| 622 | unfold enlarge; rw [recording_apply,recording_apply]; simp [Finset.smul_sum] |
| 623 | apply sum_congr rfl; intro i _; ring } |
| 624 | exact LinearMap.toContinuousLinearMap u |>.hasSum hf.hasSum |
| 625 | end summable |
| 626 | |
| 627 | -- slot Hessian tests |
| 628 | |
| 629 | def faceParts (j : G.ColorIndex) : Phase (Lines G m 1) →ₗ[ℂ] (Co m (TypeFace 1) → ℂ) := LinearMap.pi fun p => LinearMap.proj (p.1,p.2,j) |
| 630 | |
| 631 | def faceStamp (p : Face (Per m)) (i : G.ColorIndex) : Phase (Lines G m 1) →ₗ[ℂ] ℂ := |
| 632 | LinearMap.proj (p.1,plaquette p.2) ∘ₗ Matrix.mulVecLin (approached (d 1 m)) ∘ₗ faceParts i |
| 633 | |
| 634 | lemma faceReal (p : Face (Per m)) (i) (v : Link G m) : |
| 635 | faceStamp p i (axes v) = ↑((Work.F03.faceCurl p (arm G m 1 v)) i) := by |
| 636 | change (approached (d 1 m) *ᵥ (fun x : Body 1 m => ((v (x.1,x.2,i)):ℂ))) (p.1,plaquette _) = |
| 637 | (((d 1 m *ᵥ _) (p.1,plaquette _):ℝ):ℂ) |
| 638 | simp only [Matrix.mulVec,dotProduct, Complex.ofReal_sum,Complex.ofReal_mul]; rfl |
| 639 | |
| 640 | lemma stamp_tone (p : Face (Per m)) (i b : G.ColorIndex) (a : Site m) (k : TypeFace 1) : |
| 641 | faceStamp p i (relay a (k,b)) = if b=i then cell a p.1 * symbol 1 (mon a) (plaquette p.2) k else 0 := by |
| 642 | change (approached (d 1 m) *ᵥ faceParts _ _) _=_ |
| 643 | split; next hb => |
| 644 | subst b |
| 645 | have he : faceParts i (relay a (k,i))=fun x => rotations m _ x (a,k) := by |
| 646 | funext x; rw [show x=(x.1,x.2) from rfl, coef_wave] |
| 647 | simp [faceParts,relay,tune, Pi.single_apply] |
| 648 | rw [he] |
| 649 | change (approached (d 1 m)* rotations m (TypeFace 1)) _ _=_ |
| 650 | rw [show d 1 m = _ from rfl, circulant m (cobound 1) (cobound_safe _), rot_fiber, reading] |
| 651 | next h => |
| 652 | rw [show faceParts i (relay a (k,b))=0 by |
| 653 | funext j; simp [faceParts,relay,tune, Ne.symm h], Matrix.mulVec_zero]; rfl |
| 654 | |
| 655 | lemma ink_order (p : Site m) (a : Atom G n) (b : Fin n → Phase (Lines G m 1)) : |
| 656 | enlarge (inkNote p a).toMultilinearMap b = ∑ y : Ink G n, (a.coeff y:ℂ)* |
| 657 | ∏ j, faceStamp (Work.F03.slotFace (a.leg j) p) (y j) (b j) := by |
| 658 | let T (y : Ink G n) : RecordM ℂ (Fin n) (Lines G m 1) := |
| 659 | (MultilinearMap.mkPiRing ℂ (Fin n) (a.coeff y:ℂ)).compLinearMap (fun j => faceStamp (Work.F03.slotFace (a.leg j) p) (y j)) |
| 660 | have hz (v y) : T y v = (a.coeff y:ℂ)*∏ j, faceStamp (Work.F03.slotFace (a.leg j) p) (y j) (v j) := by rw [mul_comm]; rfl |
| 661 | suffices he : enlarge (inkNote p a).toMultilinearMap= ∑ y,T y by rw [he,_root_.sum_apply]; simp_rw [hz] |
| 662 | apply enlarge_unique; intro v |
| 663 | rw [enlarge_real,_root_.sum_apply]; simp_rw [hz,Function.comp_apply,faceReal] |
| 664 | change ((inkNote p a v:ℝ):ℂ)=_ |
| 665 | rw [ink_note]; push_cast; rfl |
| 666 | |
| 667 | lemma ink_atom_wave (a : Atom G (t+1)) (x : Site m) (p : Fin (t+1) → Site m) (u i) : |
| 668 | enlarge (inkNote x a).toMultilinearMap (glyph p u i) = |
| 669 | (a.coeff u:ℂ) * ∏ j, cell (p j) (wrap m (a.leg j).offset+x) * symbol 1 (mon (p j)) (plaquette (a.leg j).plaq) (i j) := by |
| 670 | rw [ink_order] |
| 671 | unfold glyph |
| 672 | simp_rw [stamp_tone] |
| 673 | rw [sum_eq_single u] |
| 674 | · simp [Work.F03.slotFace] |
| 675 | · intro b hb he |
| 676 | have he : ∃ k, u k ≠ b k := by by_contra! h; exact he (funext h).symm |
| 677 | obtain ⟨k,hk⟩ := he |
| 678 | rw [prod_eq_zero (mem_univ k),mul_zero]; rw [if_neg hk] |
| 679 | simp |
| 680 | |
| 681 | lemma volume_wave (F : ℕ → Atom G (t+1)) (hw : 0 < σ) (H : SumBudget (fun i => (F i).budget σ) A) |
| 682 | (p : Fin (t+1) → Site m) (v i) : |
| 683 | enlarge (volumeInk m F).toMultilinearMap (glyph p v i)= |
| 684 | if ∑ j, p j=0 then |
| 685 | (Fintype.card (Site m):ℂ) * ∑' n, enlarge (inkNote 0 (F n)).toMultilinearMap (glyph p v i) else 0 := by |
| 686 | unfold volumeInk |
| 687 | rw [enlarge_sum] |
| 688 | let a := ∑ j,p j |
| 689 | let K := ∑' n, enlarge (inkNote 0 (F n)).toMultilinearMap (glyph p v i) |
| 690 | have he (x : Site m) : enlarge (∑' n,inkNote x (F n)).toMultilinearMap (glyph p v i) = cell a x * K := by |
| 691 | have hm := ink_summable m F hw H x |
| 692 | rw [← (enlarge_series _ hm.of_norm _).tsum_eq] |
| 693 | unfold K |
| 694 | rw [← tsum_mul_left]; refine tsum_congr fun n => ?_ |
| 695 | simp only [ink_atom_wave, cell_add, cell_origin,mul_one] |
| 696 | have hh : cell a x = ∏ j,cell (p j) x := by |
| 697 | suffices hh : ∀ s : Finset (Fin (t+1)), cell (∑ j∈s,p j) x = ∏ j∈s,cell (p j) x from hh univ |
| 698 | intro s; induction s using Finset.induction with |
| 699 | | empty => simp [cell_duality _ x] |
| 700 | | insert i s h IH => rw [sum_insert h,prod_insert h,cell_duality _ x,cell_add,cell_duality x,cell_duality x,IH] |
| 701 | simp only [prod_mul_distrib,hh]; ring |
| 702 | simp_rw [he, ← Finset.sum_mul] |
| 703 | change (∑ x,cell a x)*K=if a=0 then _*K else 0 |
| 704 | split |
| 705 | next h => rw [h]; simp [cell] |
| 706 | next h => rw [sum_cell h,zero_mul] |
| 707 | |
| 708 | lemma notesPath [NeZero t] {P : Skin G t} {f : Picture G t} (hs : 0<σ) (h : Shades P f σ A) (p : Fin (t+1) → Site m) (v i) : |
| 709 | enlarge (volumeInk m (issue P)).toMultilinearMap (glyph p v i) = collected f p v i := by |
| 710 | rw [volume_wave _ hs (artery_funded h).1, collected]; split; swap; rfl |
| 711 | rename_i hp |
| 712 | congr 1 |
| 713 | have he q (y) : mode (outphase p) y = ∏ j, cell (p j) (wrap m ((artery P (q,y)).leg j).offset) := by |
| 714 | simp only [cell_wrap,artery,walkSlot_end,Fin.prod_univ_succ,Fin.cons_zero,mode_zero,one_mul,Fin.cons_succ] |
| 715 | unfold mode; rw [Fintype.sum_prod_type, Finset.mul_sum, Complex.exp_sum]; rfl |
| 716 | let a := outphase p |
| 717 | have hh : star a=a := out_real p |
| 718 | have ha : ∃ r : Corn (Keys t), axes r=a := ⟨_,axes_of_real hh⟩ |
| 719 | obtain ⟨r,Hr⟩ := ha |
| 720 | have hy := h.value r v i; rw [Hr] at hy |
| 721 | rw [← show a=outphase p from rfl,← hy] |
| 722 | let L (x : CurRun (t+1) × Shift (Keys t)) := enlarge (inkNote 0 (artery P x)).toMultilinearMap (glyph p v i) |
| 723 | change ∑' n, L (carrierPath t n)= _ |
| 724 | rw [(carrierPath t).tsum_eq] |
| 725 | have hL : Summable L := by |
| 726 | apply (carrierPath t).summable_iff.mp |
| 727 | exact (enlarge_series _ (ink_summable m _ hs (artery_funded h).1 0).of_norm _).summable |
| 728 | rw [hL.tsum_prod, tsum_fintype, fromCurl] |
| 729 | apply sum_congr rfl; intro j _ |
| 730 | unfold readable Laurent.read; rw [← tsum_mul_left]; refine tsum_congr fun b => ?_ |
| 731 | unfold L |
| 732 | rw [ink_atom_wave, he j b, prod_mul_distrib] |
| 733 | simp [waved_symbol p hp,artery,a,cell_wrap] |
| 734 | simp_rw [show ∀ (x : Cover) (y : TypeFace 2),plaquette (walkSlot (plaqEquiv.symm y) x).plaq=y from fun x y => plaqEquiv.apply_symm_apply _]; ring |
| 735 | end YM.Stationary |
| 736 | end |