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.BOUNDARY.Coordinates |
| 2 | import YM.Next.EXTRACTION.Tails |
| 3 | import YM.Next.FOUNDATIONS.SU2 |
| 4 | import YM.Next.FREE_KERNELS.Signal |
| 5 | import YM.Next.SCHEDULE.Blocks |
| 6 | import YM.Next.SCHEDULE.Post |
| 7 | |
| 8 | /-! |
| 9 | # Spending on the flat active Hessian: uniform finite inverse bound |
| 10 | |
| 11 | Elementary weighted argument, keep counting despite FiniteDimensional involved in |
| 12 | existence lemmas. Bounds even principal restrictions and the resolvent for ANY |
| 13 | nonnegative shift. Consumer on our actual scenes in `SliceGap.lean`. |
| 14 | -/ |
| 15 | set_option autoImplicit false |
| 16 | noncomputable section |
| 17 | namespace YM.Progress.StationaryScenes.Green |
| 18 | |
| 19 | open Filter Lattice RG Wilson Precision Bid Function Matrix |
| 20 | open scoped Topology Matrix.Norms.Frobenius ContDiff BigOperators |
| 21 | |
| 22 | variable {f : Side} {ι σ χ : Type*} [Fintype ι] [Fintype σ] [Fintype χ] |
| 23 | |
| 24 | def wt (η : ℝ) (x y : Site f) := Real.exp (η*separation x y) |
| 25 | |
| 26 | def Rows (a : ι → Site f) (b : σ → Site f) (A : Matrix ι σ ℝ) (η C : ℝ) := |
| 27 | ∀ i, ∑ j : σ, wt η (a i) (b j) * |A i j| ≤ C |
| 28 | |
| 29 | def Both (a : ι → Site f) (b : σ → Site f) (A : Matrix ι σ ℝ) (η C D : ℝ) := |
| 30 | Rows a b A η C ∧ Rows b a A.transpose η D |
| 31 | |
| 32 | def Bottom (A : Matrix ι ι ℝ) (c : ℝ) := |
| 33 | ∀ v, c*dotProduct v v ≤ dotProduct v (A *ᵥ v) |
| 34 | |
| 35 | lemma wt_pos (η : ℝ) (x y : Site f) : 0 < wt η x y := Real.exp_pos _ |
| 36 | lemma wt_symm (η : ℝ) (x y : Site f) : wt η x y = wt η y x := by unfold wt; rw [separation_comm] |
| 37 | lemma wt_triangle {η : ℝ} (h : 0 ≤ η) (x y z : Site f) : |
| 38 | wt η x z ≤ wt η x y*wt η y z := by |
| 39 | unfold wt; rw [← Real.exp_add,← mul_add]; apply Real.exp_monotone |
| 40 | apply mul_le_mul_of_nonneg_left _ h; exact_mod_cast separation_triangle x y z |
| 41 | |
| 42 | variable {a : ι → Site f} {b : σ → Site f} {d : χ → Site f} {A A' : Matrix ι σ ℝ} {B : Matrix σ χ ℝ} |
| 43 | {η C D : ℝ} |
| 44 | |
| 45 | omit [Fintype ι] in |
| 46 | lemma Rows.multiply (hη : 0 ≤ η) (h : Rows a b A η C) (hk : Rows b d B η D) (hD : 0 ≤ D) : |
| 47 | Rows a d (A*B) η (C*D) := by |
| 48 | intro x |
| 49 | let v (i : σ) := wt η (a x) (b i) * |A x i| |
| 50 | calc |
| 51 | _ ≤ ∑ j : χ, ∑ i : σ, v i*(wt η (b i) (d j)* |B i j|) := by |
| 52 | refine Finset.sum_le_sum fun j _ => ?_; rw [Matrix.mul_apply] |
| 53 | apply (mul_le_mul_of_nonneg_left (Finset.abs_sum_le_sum_abs ..) (wt_pos ..).le).trans |
| 54 | rw [Finset.mul_sum] |
| 55 | refine Finset.sum_le_sum fun i _ => ?_ |
| 56 | rw [abs_mul] |
| 57 | apply (mul_le_mul_of_nonneg_right (wt_triangle hη (a x) (b i) (d j)) (by positivity)).trans |
| 58 | unfold v; exact le_of_eq (by ring) |
| 59 | _ = ∑ i, v i*∑ j, wt η (b i) (d j)*|B i j| := by rw [Finset.sum_comm]; simp_rw [Finset.mul_sum] |
| 60 | _ ≤ ∑ i, v i*D := by |
| 61 | refine Finset.sum_le_sum fun i _ => ?_ |
| 62 | exact mul_le_mul_of_nonneg_left (hk _) (mul_nonneg (wt_pos ..).le (abs_nonneg _)) |
| 63 | _ ≤ C*D := by rw [← Finset.sum_mul]; exact mul_le_mul_of_nonneg_right (h _) hD |
| 64 | |
| 65 | omit [Fintype ι] in |
| 66 | lemma Rows.plus (h : Rows a b A η C) (g : Rows a b A' η D) : Rows a b (A+A') η (C+D) := by |
| 67 | intro i |
| 68 | apply le_trans _ (add_le_add (h i) (g i)) |
| 69 | rw [← Finset.sum_add_distrib]; refine Finset.sum_le_sum fun j _ => ?_ |
| 70 | rw [← mul_add]; exact mul_le_mul_of_nonneg_left (abs_add_le ..) (wt_pos ..).le |
| 71 | |
| 72 | omit [Fintype ι] in |
| 73 | lemma Rows.pay (h : Rows a b A η C) (u : ℝ) : Rows a b (u • A) η (|u| *C) := by |
| 74 | intro x; apply le_trans _ (mul_le_mul_of_nonneg_left (h x) (abs_nonneg u)); rw [Finset.mul_sum] |
| 75 | exact (Finset.sum_congr rfl fun i _ => by |
| 76 | rw [Matrix.smul_apply, smul_eq_mul, abs_mul]; ring).le |
| 77 | |
| 78 | omit [Fintype ι] in |
| 79 | lemma Rows.restrict {κ τ : Type*} [Fintype κ] [Fintype τ] (h : Rows a b A η C) |
| 80 | (i : κ → ι) (j : τ ↪ σ) : Rows (a ∘ i) (b ∘ j) (A.submatrix i j) η C := by |
| 81 | classical |
| 82 | intro x |
| 83 | apply le_trans _ (h (i x)) |
| 84 | let L m := wt η (a (i x)) (b m)* |A (i x) m| |
| 85 | have hu : ∀ m, 0 ≤ L m := fun m => mul_nonneg (wt_pos ..).le (abs_nonneg _) |
| 86 | calc |
| 87 | _ = ∑ m ∈ (Finset.univ.map j), L m := (Finset.sum_map ..).symm |
| 88 | _ ≤ ∑ m : σ, L m := Finset.sum_le_sum_of_subset_of_nonneg (Finset.subset_univ _) fun i _ _ => hu _ |
| 89 | |
| 90 | section ij |
| 91 | variable {M P : Matrix ι ι ℝ} {r : ℝ} |
| 92 | |
| 93 | lemma Bottom.restrict (h : Bottom M r) (j : σ ↪ ι) : Bottom (M.submatrix j j) r := by |
| 94 | classical |
| 95 | intro v |
| 96 | let w i := if hi : ∃ m, j m=i then v (Classical.choose hi) else 0 |
| 97 | have he (i : σ) : w (j i)= v i := by |
| 98 | have hh : ∃ m, j m=j i := ⟨i,rfl⟩ |
| 99 | unfold w; rw [dif_pos hh, j.injective (Classical.choose_spec hh)] |
| 100 | have hs (F : ι → ℝ) : dotProduct w F = dotProduct v (F ∘ j) := by |
| 101 | unfold dotProduct |
| 102 | calc |
| 103 | _ = ∑ i ∈ Finset.univ.map j, w i * F i := by |
| 104 | symm; refine Finset.sum_subset (Finset.subset_univ _) fun i _ hi => ?_ |
| 105 | have hb : ¬ ∃ m, j m=i := fun ⟨m,hm⟩ => hi (Finset.mem_map.mpr ⟨m,Finset.mem_univ m,hm⟩) |
| 106 | dsimp [w]; rw [dif_neg hb,zero_mul] |
| 107 | _ = _ := by rw [Finset.sum_map]; simp_rw [he]; rfl |
| 108 | have hh := h w |
| 109 | rw [hs,show w ∘ j=v from funext he, hs] at hh |
| 110 | apply hh.trans_eq |
| 111 | congr 1; funext i |
| 112 | change dotProduct (M (j i)) w=_ |
| 113 | rw [dotProduct_comm,hs,dotProduct_comm]; rfl |
| 114 | |
| 115 | private lemma squares (v : ι → ℝ) (i : ι) : |v i|^2 ≤ dotProduct v v := by |
| 116 | rw [sq_abs, pow_two] |
| 117 | exact Finset.single_le_sum (f := fun j => v j * v j) (fun j _ => mul_self_nonneg _) (Finset.mem_univ _) |
| 118 | |
| 119 | private lemma dip {D u θ : ℝ} (h : 0 ≤ θ) (he : θ ≤ 1) (hu : -θ*D ≤ u) (hv : u ≤ θ*D) : |
| 120 | |Real.exp u - 1| ≤ θ*Real.exp D := by |
| 121 | have hx := convexOn_exp.2 (x:=D) (y:=0) (Set.mem_univ _) (Set.mem_univ _) h (show 0 ≤ 1-θ by linarith) |
| 122 | (show θ+(1-θ)=1 by ring) |
| 123 | simp only [smul_eq_mul,mul_zero,add_zero,Real.exp_zero,mul_one] at hx |
| 124 | have ha := Real.exp_monotone hv |
| 125 | have hb := Real.exp_monotone (show -u ≤ θ*D by linarith) |
| 126 | have hp := Real.exp_pos u |
| 127 | have hz : 1 - Real.exp u ≤ Real.exp (-u) - 1 := by |
| 128 | rw [Real.exp_neg] |
| 129 | have he := mul_inv_cancel₀ hp.ne' |
| 130 | by_contra! hn |
| 131 | nlinarith only [he,mul_lt_mul_of_pos_right hn hp,sq_nonneg (Real.exp u-1)] |
| 132 | apply abs_le.mpr; constructor <;> linarith |
| 133 | |
| 134 | /-- A sufficient Combes-style fractional diminution. -/ |
| 135 | theorem diminishing {θ : ℝ} (hη : 0 ≤ η) (hθ : 0 ≤ θ) (hw : θ ≤ 1) (i j z : Site f) : |
| 136 | |wt (θ*η) i z / wt (θ*η) j z - 1| ≤ θ*wt η i j := by |
| 137 | unfold wt; rw [← Real.exp_sub] |
| 138 | have ha : (separation i z:ℝ) ≤ (separation i j:ℝ)+(separation j z:ℝ) := by exact_mod_cast separation_triangle i j z |
| 139 | have hb : (separation j z:ℝ) ≤ (separation i j:ℝ)+(separation i z:ℝ) := by |
| 140 | rw [separation_comm i j]; exact_mod_cast separation_triangle j i z |
| 141 | have h := mul_nonneg hθ hη |
| 142 | apply dip hθ hw |
| 143 | · have hp := mul_le_mul_of_nonneg_left hb h |
| 144 | calc |
| 145 | _ = -(θ*η*(separation i j:ℝ)) := by ring |
| 146 | _ ≤ _ := by rw [mul_add] at hp; linarith |
| 147 | have hp := mul_le_mul_of_nonneg_left ha h; rw [mul_add] at hp; linarith |
| 148 | |
| 149 | lemma schur (F : Matrix ι ι ℝ) (w : ι → ℝ) (d : ℝ) (hx : ∀ i, ∑ j, |F i j| ≤ d) |
| 150 | (hy : ∀ j, ∑ i, |F i j| ≤ d) : |dotProduct w (F *ᵥ w)| ≤ d*dotProduct w w := by |
| 151 | have hX : ∑ i, ∑ j, |F i j| *(w i*w i) ≤ d*dotProduct w w := by |
| 152 | simp_rw [← Finset.sum_mul,dotProduct,Finset.mul_sum] |
| 153 | exact Finset.sum_le_sum fun i _ => mul_le_mul_of_nonneg_right (hx i) (mul_self_nonneg _) |
| 154 | have hY : ∑ i, ∑ j, |F i j| *(w j*w j) ≤ d*dotProduct w w := by |
| 155 | rw [Finset.sum_comm]; simp_rw [← Finset.sum_mul,dotProduct,Finset.mul_sum] |
| 156 | exact Finset.sum_le_sum fun i _ => mul_le_mul_of_nonneg_right (hy i) (mul_self_nonneg _) |
| 157 | have hz : |dotProduct w (F *ᵥ w)| ≤ ∑ i, ∑ j, |w i*(F i j*w j)| := by |
| 158 | unfold dotProduct mulVec; simp_rw [dotProduct,Finset.mul_sum] |
| 159 | apply (Finset.abs_sum_le_sum_abs ..).trans |
| 160 | exact Finset.sum_le_sum fun _ _ => Finset.abs_sum_le_sum_abs .. |
| 161 | apply hz.trans |
| 162 | apply le_of_mul_le_mul_left _ (show (0:ℝ)<2 by norm_num) |
| 163 | apply le_trans _ ((add_le_add hX hY).trans_eq (two_mul _).symm) |
| 164 | rw [← Finset.sum_add_distrib, Finset.mul_sum]; refine Finset.sum_le_sum fun i _ => ?_ |
| 165 | rw [← Finset.sum_add_distrib, Finset.mul_sum]; refine Finset.sum_le_sum fun j _ => ?_ |
| 166 | have he : 2*(|w i| *|w j|) ≤ w i*w i+w j*w j := by nlinarith only [sq_abs (w i),sq_abs (w j),sq_nonneg (|w i|-|w j|)] |
| 167 | simp only [abs_mul] |
| 168 | nlinarith only [mul_le_mul_of_nonneg_left he (abs_nonneg (F i j))] |
| 169 | |
| 170 | private lemma one_entry (v : ι → ℝ) (i j : ι) (c : ℝ) (hc : 0 < c) (h : c*dotProduct v v ≤ v j) : |
| 171 | |v i| ≤ c⁻¹ := by |
| 172 | apply le_of_mul_le_mul_left _ hc |
| 173 | have ha := mul_le_mul_of_nonneg_left (squares v i) hc.le |
| 174 | have hb := mul_le_mul_of_nonneg_left (squares v j) hc.le |
| 175 | rw [mul_inv_cancel₀ hc.ne'] |
| 176 | by_contra! H |
| 177 | have he : 1 < c*|v j| := by nlinarith [le_abs_self (v j)] |
| 178 | nlinarith only [he, hb,h, le_abs_self (v j),abs_nonneg (v j), |
| 179 | mul_pos hc (show 0 < |v j| by by_contra! HN; nlinarith), |
| 180 | mul_lt_mul_of_pos_left he (show 0 < |v j| by by_contra! HN; nlinarith)] |
| 181 | |
| 182 | variable [DecidableEq ι] |
| 183 | |
| 184 | /-- The actual two-sided inverse and pointwise exponential bound. E.g. take θ and r |
| 185 | both post. Principal extension via |
| 186 | restrict before calling. Includes empty coordinates, one-site case, and the |
| 187 | spectral parameter uniform $(k(1+u))^{-1}$. -/ |
| 188 | theorem inverse {θ : ℝ} (hη : 0 ≤ η) (hr : 0 < r) (hθ : 0 ≤ θ) (hw : θ ≤ 1) |
| 189 | (hh : θ*C ≤ r/2) (hM : IsHermitian M) (hg : Bottom M r) |
| 190 | (h : Both a a M η C C) (u : ℝ) (hu : 0 ≤ u) : |
| 191 | let A := M + u • (1 : Matrix ι ι ℝ) |
| 192 | let c := min 1 (r/2) |
| 193 | A*A⁻¹=1 ∧ A⁻¹*A=1 ∧ |
| 194 | ∀ i j : ι, wt (θ*η) (a i) (a j)*|(A⁻¹) i j| ≤ (c*(1+u))⁻¹ := by |
| 195 | intro A c |
| 196 | have hp : Bottom A (r+u) := by |
| 197 | intro v |
| 198 | unfold A; rw [Matrix.add_mulVec, dotProduct_add,Matrix.smul_mulVec,Matrix.one_mulVec,dotProduct_smul,add_mul]; exact add_le_add_left (hg v) _ |
| 199 | have hs : A.PosDef := by |
| 200 | apply Matrix.PosDef.of_dotProduct_mulVec_pos |
| 201 | · exact hM.add (show IsHermitian (u • (1 : Matrix ι ι ℝ)) by rw [Matrix.IsHermitian, conjTranspose_smul]; simp) |
| 202 | intro v hv; rw [star_trivial]; apply lt_of_lt_of_le _ (hp v) |
| 203 | obtain ⟨i,hi⟩ : ∃ i, v i ≠ 0 := by simpa only [Ne,funext_iff,Pi.zero_apply,not_forall] using hv |
| 204 | exact mul_pos (by positivity) ((pow_pos (abs_pos.mpr hi) 2).trans_le (squares v i)) |
| 205 | have hd := hs.det_pos |
| 206 | have hA := Matrix.mul_nonsing_inv A (isUnit_iff_ne_zero.mpr hd.ne') |
| 207 | refine ⟨hA, Matrix.nonsing_inv_mul A (isUnit_iff_ne_zero.mpr hd.ne'), fun i j => ?_⟩ |
| 208 | let y (l : ι) := (A⁻¹) l j |
| 209 | let s (l : ι) := wt (θ*η) (a l) (a j) |
| 210 | let w (l : ι) := s l*y l |
| 211 | let F : Matrix ι ι ℝ := Matrix.of fun k l => A k l*(s k/s l-1) |
| 212 | have hf (k l : ι) : |F k l| ≤ θ*(wt η (a k) (a l)*|M k l|) := by |
| 213 | have hy := diminishing hη hθ hw (a k) (a l) (a j) |
| 214 | have hs k : 0 < s k := wt_pos .. |
| 215 | by_cases H : k=l |
| 216 | · subst k |
| 217 | unfold F; rw [of_apply, div_self (hs _).ne', sub_self, mul_zero,abs_zero] |
| 218 | exact mul_nonneg hθ (mul_nonneg (wt_pos ..).le (abs_nonneg _)) |
| 219 | unfold F; rw [of_apply,abs_mul] |
| 220 | rw [show A k l=M k l by simp [H,A]] |
| 221 | apply (mul_le_mul_of_nonneg_left hy (abs_nonneg _)).trans_eq; ring |
| 222 | have he : |dotProduct w (F *ᵥ w)| ≤ r/2 * dotProduct w w := by |
| 223 | refine schur _ _ _ (fun k => ?_) fun k => ?_ |
| 224 | · apply ((Finset.sum_le_sum (fun l _ => hf k l)).trans _).trans hh |
| 225 | rw [← Finset.mul_sum]; exact mul_le_mul_of_nonneg_left (h.1 k) hθ |
| 226 | apply ((Finset.sum_le_sum (fun l _ => hf l k)).trans _).trans hh |
| 227 | simp_rw [wt_symm _ _ (a k)]; rw [← Finset.mul_sum]; exact mul_le_mul_of_nonneg_left (h.2 k) hθ |
| 228 | have hi (l : ι) : ((A+F) *ᵥ w) l = if l=j then 1 else 0 := by |
| 229 | calc |
| 230 | _ = s l*((A*A⁻¹) l j) := by |
| 231 | rw [mulVec,dotProduct, Matrix.mul_apply,Finset.mul_sum] |
| 232 | refine Finset.sum_congr rfl fun k _ => ?_ |
| 233 | rw [Matrix.add_apply]; unfold F w y; rw [of_apply] |
| 234 | have h : 0 < s k := wt_pos .. |
| 235 | field_simp; ring |
| 236 | _ = _ := by by_cases H : l=j <;> simp [hA,H,s,wt] |
| 237 | have hv : dotProduct w ((A+F) *ᵥ w) = w j := by simp only [dotProduct,hi]; simp |
| 238 | rw [Matrix.add_mulVec,dotProduct_add] at hv |
| 239 | have hpp := hp w |
| 240 | have hwt : 0 ≤ dotProduct w w := le_trans (sq_nonneg _) (squares w i) |
| 241 | have hh' : c*(1+u)*dotProduct w w ≤ w j := by |
| 242 | have hx : c*(1+u) ≤ r/2 + u := by |
| 243 | rw [mul_add,mul_one]; exact add_le_add (min_le_right ..) (mul_le_of_le_one_left hu (min_le_left ..)) |
| 244 | have hv' := (abs_le.mp he).1 |
| 245 | nlinarith only [hv,hpp,hv',mul_le_mul_of_nonneg_right hx hwt] |
| 246 | have hc : 0 < c*(1+u) := mul_pos (lt_min zero_lt_one (half_pos hr)) (by positivity) |
| 247 | calc |
| 248 | _ = |w i| := by |
| 249 | change s i*|y i| = |s i*y i| |
| 250 | rw [abs_mul,abs_of_pos (wt_pos _ _ _)] |
| 251 | _ ≤ _ := one_entry w i j _ hc hh' |
| 252 | end ij |
| 253 | end YM.Progress.StationaryScenes.Green |