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.Further.GAUSSIAN_SCALAR_LEDGER.Gaussian |
| 2 | import YM.Next.FREE_KERNELS.Lifts |
| 3 | import YM.Next.SCHEDULE.GridCost |
| 4 | import YM.Progress.STATIONARY_SCENES.Green |
| 5 | import YM.Push.STATIONARY_UNIFORM.Count |
| 6 | import YM.SectorNext.VACUUM_NORMALIZATION.Round |
| 7 | |
| 8 | |
| 9 | |
| 10 | set_option warningAsError false |
| 11 | |
| 12 | /-! |
| 13 | # From precision estimates to uniform scalar window errors |
| 14 | |
| 15 | Uses actual principal compressions of the **complete** Gram |
| 16 | (identity completions harmless). A coarse or fine distance can be |
| 17 | supplied; multiplicity of coordinates per site paid. Include any window |
| 18 | which puts outsiders far away; no symmetry of the choice asserted. Get |
| 19 | post-L invoices on exponential absolute row & column sums, *assuming* |
| 20 | uniform gap and exponentially costed rows on A. Scalar, no V |
| 21 | differentiation or mask-support persistence. |
| 22 | -/ |
| 23 | |
| 24 | set_option autoImplicit false |
| 25 | noncomputable section |
| 26 | namespace YM.Further.GaussianScalar |
| 27 | |
| 28 | open Matrix Function Filter Precision SectorNext.Vacuum Lattice |
| 29 | open Round (rowRate) |
| 30 | open YM.Progress.StationaryScenes.Green |
| 31 | open YM.Push.Uniform (Multiplicity Multiplicity.count Decay countCost count_pos decay_pos) |
| 32 | open scoped Topology BigOperators Matrix.Norms.Frobenius |
| 33 | |
| 34 | variable {c : Side} {ι : Type*} [Fintype ι] |
| 35 | |
| 36 | /-- May repeat positions for many color/link slots. -/ |
| 37 | abbrev Double (sites : ι → Site c) (γ K : ℝ) (A : Wall ι) := Both sites sites A γ K K |
| 38 | namespace Double |
| 39 | |
| 40 | variable {l : ι → Site c} {γ K : ℝ} {A T : Wall ι} (h : Double l γ K A) |
| 41 | |
| 42 | include h in |
| 43 | lemma point (i j : ι) : wt γ (l i) (l j)*|A i j| ≤ K := |
| 44 | (Finset.single_le_sum (f := fun j => wt γ (l i) (l j)*|A i j|) |
| 45 | (fun _ _ => mul_nonneg (wt_pos ..).le (abs_nonneg _)) (Finset.mem_univ j)).trans (h.1 i) |
| 46 | |
| 47 | lemma fromEntries {l : ι → Site c} {γ δ K : ℝ} (hK : 0 ≤ K) (h : δ < γ) {N : ℕ} (hp : Multiplicity l N) |
| 48 | (he : ∀ i j, wt γ (l i) (l j)*|A i j| ≤ K) : Double l δ (K*(N*countCost (γ-δ))) A := by |
| 49 | have hb (X : Wall ι) (hb : ∀ i j, wt γ (l i) (l j)*|X i j| ≤ K) : |
| 50 | Rows l l X δ (K*(N*countCost (γ-δ))) := by |
| 51 | intro i |
| 52 | apply le_trans _ (mul_le_mul_of_nonneg_left (Multiplicity.count l hp (sub_pos.mpr h) (l i)) hK) |
| 53 | rw [Finset.mul_sum]; apply Finset.sum_le_sum; intro j _ |
| 54 | have he : wt δ (l i) (l j)=wt γ (l i) (l j)*Decay (γ-δ) (l i) (l j) := by |
| 55 | unfold wt Decay; rw [← Real.exp_add]; congr 1; ring |
| 56 | rw [he, mul_right_comm] |
| 57 | exact mul_le_mul_of_nonneg_right (hb i j) (decay_pos ..).le |
| 58 | exact ⟨hb A he,hb Aᵀ (fun i j => by rw [wt_symm]; exact he j i)⟩ |
| 59 | |
| 60 | include h |
| 61 | |
| 62 | lemma loosen {r : ℝ} (hr : γ ≥ r) : Double l r K A := by |
| 63 | have hx (X : Wall ι) (h : Rows l l X γ K) : Rows l l X r K := by |
| 64 | intro i; apply le_trans _ (h i); refine Finset.sum_le_sum fun j _ => ?_ |
| 65 | unfold wt; gcongr |
| 66 | exact ⟨hx _ h.1,hx _ h.2⟩ |
| 67 | |
| 68 | lemma ease {L : ℝ} (hp : K ≤ L) : Double l γ L A := ⟨fun i=>(h.1 i).trans hp,fun i=>(h.2 i).trans hp⟩ |
| 69 | |
| 70 | lemma into_rate (hp : 0 ≤ γ) : Round.rowRate K A ∧ Round.rowRate K Aᵀ := by |
| 71 | have hc : Double l 0 K A := loosen h hp |
| 72 | exact ⟨fun i => by simpa [wt] using hc.1 i, fun i => by simpa [wt] using hc.2 i⟩ |
| 73 | |
| 74 | lemma mirror : Double l γ K Aᵀ := ⟨h.2, by simpa using h.1⟩ |
| 75 | lemma play (b : ℝ) : Double l γ (|b| * K) (b • A) := by |
| 76 | have hb := h.2.pay b |
| 77 | exact ⟨h.1.pay b, by rwa [transpose_smul]⟩ |
| 78 | lemma add {L : ℝ} (g : Double l γ L T) : Double l γ (K+L) (A+T) := |
| 79 | ⟨h.1.plus g.1, by rw [transpose_add]; exact h.2.plus g.2⟩ |
| 80 | lemma times {L : ℝ} (hz : 0 ≤ γ) (hK : 0 ≤ K) (hL : 0 ≤ L) (g : Double l γ L T) : |
| 81 | Double l γ (K*L) (A*T) := |
| 82 | ⟨Rows.multiply hz h.1 g.1 hL, by rw [mul_comm K L,transpose_mul]; exact Rows.multiply hz g.2 h.2 hK⟩ |
| 83 | end Double |
| 84 | |
| 85 | /-- W_i per column including center. -/ |
| 86 | structure Lens (ι : Type*) where |
| 87 | eye : ι → Finset ι |
| 88 | sees (i : ι) : i ∈ eye i |
| 89 | namespace Lens |
| 90 | |
| 91 | variable (Z : Lens ι) |
| 92 | |
| 93 | def Outside (l : ι → Site c) (size : ℝ) := ∀ i j, i ∉ Z.eye j → size ≤ separation (l i) (l j) |
| 94 | |
| 95 | variable [DecidableEq ι] |
| 96 | |
| 97 | def center (i : ι) : (↥(Z.eye i)) := ⟨i,Z.sees i⟩ |
| 98 | def glass (A : Wall ι) (i : ι) : Wall (↥(Z.eye i)) := A.submatrix Subtype.val Subtype.val |
| 99 | |
| 100 | def plus (A : Wall ι) (u : ℝ) := A + u • (1 : Wall ι) |
| 101 | def visit (A : Wall ι) (u : ℝ) : Wall ι := Matrix.of fun j i => |
| 102 | if h : j ∈ Z.eye i then ((plus (Z.glass A i) u)⁻¹) ⟨j,h⟩ (Z.center i) else 0 |
| 103 | |
| 104 | def missed (A : Wall ι) (u : ℝ) : Wall ι := plus A u * Z.visit A u - 1 |
| 105 | |
| 106 | def full (A : Wall ι) (u : ℝ) := (plus A u)⁻¹ |
| 107 | |
| 108 | omit [Fintype ι] in |
| 109 | @[simp] lemma visit_here (A : Wall ι) (u : ℝ) (i : ι) (j : (Z.eye i)) : |
| 110 | Z.visit A u (↑j) i = ((plus (Z.glass A i) u)⁻¹) j (Z.center i) := by |
| 111 | unfold visit; rw [Matrix.of_apply,dif_pos j.property] |
| 112 | |
| 113 | omit [Fintype ι] in |
| 114 | lemma addPrice (A : Wall ι) (u : ℝ) (i : ι) : Z.glass (plus A u) i=plus (Z.glass A i) u := by |
| 115 | ext j k |
| 116 | change plus A u j k = _ |
| 117 | by_cases h : j=k |
| 118 | · subst j; simp [plus,glass] |
| 119 | have he : j.val ≠ k.val := fun ht => h (Subtype.ext ht) |
| 120 | simp [plus,glass,h,he] |
| 121 | |
| 122 | omit [Fintype ι] in |
| 123 | lemma plus_pos {A : Wall ι} (h : A.PosDef) {u : ℝ} (hu : 0 ≤ u) : (plus A u).PosDef := by |
| 124 | refine h.add_posSemidef ?_ |
| 125 | exact Matrix.PosSemidef.smul Matrix.PosSemidef.one hu |
| 126 | |
| 127 | omit [Fintype ι] in |
| 128 | lemma invert {A : Wall ι} (h : A.PosDef) {u : ℝ} (hu : 0 ≤ u) (i : ι) : |
| 129 | (Z.glass (plus A u) i).PosDef := (plus_pos h hu).submatrix Subtype.val_injective |
| 130 | |
| 131 | lemma sight {A : Wall ι} (h : A.PosDef) {u : ℝ} (hu : 0 ≤ u) (i j : ι) (he : i ∈ Z.eye j) : |
| 132 | Z.missed A u i j = 0 := by |
| 133 | have hp := (Z.invert h hu j).det_pos |
| 134 | rw [Z.addPrice] at hp |
| 135 | let W := plus (Z.glass A j) u |
| 136 | have hw : W * W⁻¹ = 1 := W.mul_nonsing_inv (isUnit_iff_ne_zero.mpr hp.ne') |
| 137 | unfold missed; rw [Matrix.sub_apply, sub_eq_zero] |
| 138 | let l : (↥(Z.eye j)) := ⟨i,he⟩ |
| 139 | calc |
| 140 | _ = ∑ k∈Z.eye j, plus A u i k * Z.visit A u k j := by |
| 141 | rw [Matrix.mul_apply]; symm; exact Finset.sum_subset (Finset.subset_univ _) fun k _ hk => by |
| 142 | unfold visit; rw [Matrix.of_apply,dif_neg hk,mul_zero] |
| 143 | _ = ∑ k : (Z.eye j), W l k * W⁻¹ k (Z.center j) := by |
| 144 | rw [← Finset.sum_attach _ (fun k => plus A u i k * Z.visit A u k j)] |
| 145 | apply Finset.sum_congr rfl; intro k _ |
| 146 | rw [visit_here, show plus A u i (↑k) = W l k from congr_fun (congr_fun (Z.addPrice A u j) l) k] |
| 147 | _ = (1 : Wall (↥(Z.eye j))) l (Z.center j) := congr_fun (congr_fun hw l) (Z.center j) |
| 148 | _ = _ := by |
| 149 | by_cases h : i=j |
| 150 | · subst i; rw [show l = Z.center j from rfl]; simp |
| 151 | have hh : l≠Z.center j := fun he => h (congr_arg Subtype.val he) |
| 152 | simp [hh,h] |
| 153 | |
| 154 | lemma lost (A : Wall ι) (u : ℝ) (i j : ι) (he : i ∉ Z.eye j) : |
| 155 | Z.missed A u i j = (A*Z.visit A u) i j := by |
| 156 | have hh : i≠j := by rintro rfl; exact he (Z.sees _) |
| 157 | unfold missed plus |
| 158 | simp only [Matrix.sub_apply,Matrix.add_mul,Matrix.smul_mul,Matrix.one_mul,Matrix.add_apply, |
| 159 | Matrix.smul_apply, Matrix.one_apply_ne hh] |
| 160 | simp [visit,he] |
| 161 | |
| 162 | lemma rebuilds {A : Wall ι} (h : A.PosDef) {u : ℝ} (hu : 0 ≤ u) : |
| 163 | full A u + full A u * Z.missed A u=Z.visit A u := by |
| 164 | unfold full missed |
| 165 | rw [Matrix.mul_sub, ← mul_assoc, nonsing_inv_mul _ (isUnit_iff_ne_zero.mpr (plus_pos h hu).det_pos.ne'), |
| 166 | mul_one,one_mul]; abel |
| 167 | |
| 168 | end Lens |
| 169 | end YM.Further.GaussianScalar |