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.Hitting |
| 2 | import YM.Next.FREE_KERNELS.Amend |
| 3 | |
| 4 | |
| 5 | set_option warningAsError false |
| 6 | |
| 7 | /-! |
| 8 | # Matrix-only locality of the per-address values |
| 9 | |
| 10 | Both nonzero tests & to evaluate from submatrix windows. Supports below |
| 11 | whole unions of B-halos **including all route positions**. NOT |
| 12 | post-Wilson support! Entries inside these balls (and lens positions and |
| 13 | presence of indices themselves) must in turn be localized when reading |
| 14 | seeds or U, etc. May increase each halo by a fixed B multiple if have |
| 15 | receipts for that. No paths or stencil bounds inferred back from a |
| 16 | zero actual matrix value. `Sparse` assumed globally on both systems. |
| 17 | -/ |
| 18 | set_option autoImplicit false |
| 19 | noncomputable section |
| 20 | namespace YM.Further.GaussianScalar.Trail |
| 21 | open Matrix Function Filter MeasureTheory Precision SectorNext.Vacuum Lattice |
| 22 | open RawPrice (tear field) |
| 23 | open scoped Topology BigOperators Matrix.Norms.Frobenius Classical |
| 24 | |
| 25 | variable {ι : Type*} [Fintype ι] [DecidableEq ι] {n : Side} (l : ι → Site n) (L : Lens ι) (B : ℕ) |
| 26 | |
| 27 | -- assume numerical range in these units (close can use fitted patches) |
| 28 | def Sparse (A : Wall ι) := ∀ i j, ¬ separation (l i) (l j) ≤ B → A i j=0 |
| 29 | def Housed := ∀ i j, j∈L.eye i → separation (l i) (l j) ≤ B |
| 30 | |
| 31 | def TrailOK : ∀ k : ℕ, ι → (Fin k → ι) → ι → Prop |
| 32 | | 0,i,_,j => separation (l i) (l j) ≤ B |
| 33 | | k+1,i,f,j => separation (l i) (l (f 0)) ≤ B ∧ TrailOK k (f 0) (Fin.tail f) j |
| 34 | |
| 35 | def ground : ∀ k : ℕ, ι → (Fin k → ι) → ι → Support n |
| 36 | | 0,i,_,j => halo B {l i} ∪ halo B {l j} |
| 37 | | k+1,i,f,j => halo B {l i} ∪ ground k (f 0) (Fin.tail f) j |
| 38 | |
| 39 | omit [Fintype ι] [DecidableEq ι] in |
| 40 | lemma checkpoint (k : ℕ) (i : ι) (f : Fin k → ι) (j : ι) : halo B {l i} ⊆ ground l B k i f j := by |
| 41 | cases k <;> exact Finset.subset_union_left |
| 42 | |
| 43 | -- choose ref distance 2r. `M` >= 5 then envelopes actually retain |
| 44 | -- a unit-r pair extension around numerical matrices; V-row field costs extra. |
| 45 | def airport (M : ℕ) (k : ℕ) (i : ι) (f : Fin k → ι) (j : ι) : Support n := |
| 46 | if TrailOK l (B+B) k i f j then ground l (M*B) k i f j else ∅ |
| 47 | |
| 48 | omit [Fintype ι] [DecidableEq ι] in |
| 49 | lemma hop_range (M : ℕ) (hM : 2 ≤ M) (k : ℕ) (i : ι) (f : Fin k → ι) (j : ι) |
| 50 | (hv : TrailOK l (B+B) k i f j) (x : Site n) (hh : x∈ ground l (M*B) k i f j) : |
| 51 | separation x (l i) ≤ (k+2)*(M*B) := by |
| 52 | have hp : B+B ≤ M*B := by simpa [two_mul] using Nat.mul_le_mul_right B hM |
| 53 | have he (i : ι) (hh : x∈halo (M*B) {l i}) : separation x (l i) ≤ M*B := by |
| 54 | rw [separation_comm]; simpa [halo_spec] using hh |
| 55 | induction k generalizing i with |
| 56 | | zero => |
| 57 | change separation (l i) (l j) ≤ _ at hv |
| 58 | rcases Finset.mem_union.mp hh with hx | hx |
| 59 | · have hy := he i hx; omega |
| 60 | have hy := he j hx; have hk := separation_triangle x (l j) (l i) |
| 61 | rw [separation_comm (l i) (l j)] at hv; omega |
| 62 | | succ k ih => |
| 63 | change separation (l i) (l (f 0)) ≤ _ ∧ _ at hv |
| 64 | rw [show (k+1+2)*(M*B)=(k+2)*(M*B)+M*B by ring] |
| 65 | rcases Finset.mem_union.mp hh with hx | hx |
| 66 | · have hy := he i hx; omega |
| 67 | have hy := ih (f 0) (Fin.tail f) hv.2 hx |
| 68 | have hk := separation_triangle x (l (f 0)) (l i) |
| 69 | rw [separation_comm (l i) (l (f 0))] at hv; omega |
| 70 | |
| 71 | omit [Fintype ι] [DecidableEq ι] in |
| 72 | lemma hop_budget (M : ℕ) (hM : 2 ≤ M) (hB : 0 < B) (k : ℕ) (i : ι) (f : Fin k → ι) (j : ι) |
| 73 | (hv : TrailOK l (B+B) k i f j) : coverNumber B (ground l (M*B) k i f j) ≤ (k+2)*(M+M+1)^4 := by |
| 74 | have hp : B+B ≤ M*B := by simpa [two_mul] using Nat.mul_le_mul_right B hM |
| 75 | have hx (s t : ι) (hs : separation (l s) (l t) ≤ B+B) : l t ∈ halo (M*B) {l s} := |
| 76 | halo_spec.mpr ⟨_, Finset.mem_singleton_self _,hs.trans hp⟩ |
| 77 | have he (s : ι) : l s ∈ halo (M*B) {l s} := hx s s (by simp) |
| 78 | induction k generalizing i with |
| 79 | | zero => |
| 80 | unfold ground |
| 81 | apply (Corona.meets_sum (hx _ _ hv) (he j) B).trans |
| 82 | exact (Nat.add_le_add (Corona.tile (l i) M B hB) (Corona.tile (l j) M B hB)).trans_eq (by ring) |
| 83 | | succ k ih => |
| 84 | unfold TrailOK at hv |
| 85 | unfold ground |
| 86 | apply (Corona.meets_sum (hx _ _ hv.1) (checkpoint l _ _ _ _ _ (he (f 0))) _).trans |
| 87 | exact (Nat.add_le_add (Corona.tile (l i) M B hB) (ih (f 0) (Fin.tail f) hv.2)).trans_eq (by ring) |
| 88 | |
| 89 | omit [Fintype ι] [DecidableEq ι] in |
| 90 | lemma funded_steps (M : ℕ) (hM : 2≤M) (hB : 0 < B) : |
| 91 | Filed (χ:=fun k => Fin (k+1) → ι) B (2*(M*B)) (2*(M+M+1)^4) l |
| 92 | (fun k i f => airport l B M (k+1) i f i) ∧ |
| 93 | Filed (χ:=fun k => Fin k → ι) B (M*B) ((M+M+1)^4) l |
| 94 | (fun k i f => airport l B M k i f i) ∧ |
| 95 | Filed (χ:=fun k => ι×(Fin (k+1) → ι)) B (2*(M*B)) (2*(M+M+1)^4) l |
| 96 | (fun k i p => airport l B M (k+1) i p.2 p.1) := by |
| 97 | have hl (k : ℕ) (i j : ι) (f : Fin k→ι) (x : Site n) (h : x∈airport l B M k i f j) : |
| 98 | separation x (l i) ≤ (k+2)*(M*B) ∧ coverNumber B (airport l B M k i f j) ≤ (k+2)*(M+M+1)^4 := by |
| 99 | by_cases he : TrailOK l (B+B) k i f j; swap; simp [airport,he] at h |
| 100 | unfold airport at *; rw [if_pos he] at h ⊢ |
| 101 | exact ⟨hop_range l B M hM k i f j he x h, hop_budget l B M hM hB k i f j he⟩ |
| 102 | have hx (k : ℕ) (y : ℕ) : (k+1+2)*y ≤ (k+2)*(2*y) := by |
| 103 | rw [← Nat.mul_assoc]; exact Nat.mul_le_mul_right _ (by omega) |
| 104 | refine ⟨fun k i f x h => ?_,fun k i f x h => hl _ _ _ _ _ h, fun k i p x h => ?_⟩ |
| 105 | all_goals |
| 106 | obtain ⟨hv,hw⟩ := hl _ _ _ _ _ h |
| 107 | exact ⟨hv.trans (hx ..),hw.trans (hx ..)⟩ |
| 108 | |
| 109 | namespace Diff |
| 110 | omit [Fintype ι] [DecidableEq ι] in |
| 111 | lemma widen {W : Wall ι} (h : Sparse l B W) : Sparse l (B+B) W := fun i j hv => |
| 112 | h i j fun ht => hv (by omega) |
| 113 | |
| 114 | omit [DecidableEq ι] in |
| 115 | lemma times {r s : ℕ} (X Y : Wall ι) (h : Sparse l r X) (hv : Sparse l s Y) : Sparse l (r+s) (X*Y) := by |
| 116 | intro i j he |
| 117 | rw [Matrix.mul_apply]; refine Finset.sum_eq_zero fun k _ => ?_ |
| 118 | by_cases hx : separation (l i) (l k) ≤ r |
| 119 | · rw [hv k j (by have hd := separation_triangle (l i) (l k) (l j); omega),mul_zero] |
| 120 | rw [h i k hx,zero_mul] |
| 121 | |
| 122 | omit [Fintype ι] in |
| 123 | lemma view (X : Wall ι) (h : Housed l L B) (u : ℝ) : Sparse l B (L.visit X u) := by |
| 124 | intro i j he; unfold Lens.visit; rw [Matrix.of_apply,dif_neg ?_] |
| 125 | intro hx; rw [separation_comm] at he; exact he (h j i hx) |
| 126 | |
| 127 | |
| 128 | |
| 129 | omit [Fintype ι] [DecidableEq ι] in |
| 130 | private lemma far {W Y : Wall ι} (h : Sparse l (B+B) W) (hv : Sparse l (B+B) Y) |
| 131 | (k : ℕ) (i : ι) (f : Fin k→ι) (j : ι) (he : ¬ TrailOK l (B+B) k i f j) : tread W Y k i f j=0 := by |
| 132 | induction k generalizing i with |
| 133 | | zero => exact hv i j he |
| 134 | | succ k ih => |
| 135 | unfold tread |
| 136 | by_cases hx : separation (l i) (l (f 0)) ≤ B+B |
| 137 | · rw [ih (f 0) (Fin.tail f) (fun hr => he ⟨hx,hr⟩),mul_zero] |
| 138 | rw [h _ _ hx,zero_mul] |
| 139 | |
| 140 | |
| 141 | |
| 142 | -- MATRIX lookup only. Same Lens choices. |
| 143 | def Heard (X : Support n) (A V : Wall ι) := ∀ i, l i∈X → ∀ j, A i j=V i j |
| 144 | |
| 145 | section dependence |
| 146 | variable {A V : Wall ι} {X : Support n} (hA : Sparse l B A) (hV : Sparse l B V) (ht : Heard l X A V) |
| 147 | (hL : Housed l L B) |
| 148 | include ht hL |
| 149 | omit [Fintype ι] [DecidableEq ι] in |
| 150 | lemma glasses (j : ι) (hh : halo B {l j} ⊆ X) : L.glass A j = L.glass V j := by |
| 151 | ext i k; apply ht _ _ k |
| 152 | exact hh (halo_spec.mpr ⟨l j,Finset.mem_singleton_self _,hL j _ i.property⟩) |
| 153 | |
| 154 | omit [Fintype ι] in |
| 155 | lemma same_columns (j : ι) (hh : halo B {l j} ⊆ X) (i : ι) (u : ℝ) : |
| 156 | L.visit A u i j = L.visit V u i j := by |
| 157 | unfold Lens.visit; rw [Matrix.of_apply,Matrix.of_apply]; split; rw [glasses l L B ht hL j hh]; rfl |
| 158 | |
| 159 | include hA hV |
| 160 | |
| 161 | end dependence |
| 162 | |
| 163 | omit [Fintype ι] [DecidableEq ι] in |
| 164 | private lemma thread (k M : ℕ) (i j : ι) (f : Fin k → ι) (X Y Z W : Wall ι) |
| 165 | (h : ∀ i', halo M {l i'}⊆ground l M k i f j → ∀ j', X i' j'=Y i' j' ∧ Z i' j'=W i' j') : |
| 166 | tread X Z k i f j=tread Y W k i f j := by |
| 167 | induction k generalizing i with |
| 168 | | zero => exact (h i (checkpoint l M _ i f _) _).2 |
| 169 | | succ k ih => |
| 170 | unfold tread; rw [(h i (checkpoint l M _ i f _) _).1, ih (f 0) (Fin.tail f)] |
| 171 | intro x hx; exact h x (Finset.Subset.trans hx Finset.subset_union_right) |
| 172 | |
| 173 | |
| 174 | |
| 175 | |
| 176 | |
| 177 | |
| 178 | end Diff |
| 179 | end YM.Further.GaussianScalar.Trail |