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.AnalyticNext.CONNECTED_ACTIVITY_BOUNDS.Birthday |
| 2 | |
| 3 | /-! |
| 4 | # Label multiplicity in determinant and density ratios I |
| 5 | |
| 6 | Address path algebra. A path does not forget (e.g. quota-share on) |
| 7 | repeated visits. Group colors in the value of ONE label; this can be |
| 8 | used also with tolls after gauge change. Σ of these grouped paths yields |
| 9 | the ordinary real matrix expression. Proof using only counting: no spectral |
| 10 | genericity, no nonempty global index hypothesis. `G.ColorIndex` will be |
| 11 | finite but the sizes for `Y` links could diverge with period. |
| 12 | -/ |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | namespace YM.AnalyticNext.ConnectedActivity.Laps |
| 16 | open Matrix Finset MeasureTheory |
| 17 | open scoped Topology BigOperators Matrix.Norms.Frobenius |
| 18 | variable {Y n X : Type*} [Fintype Y] [DecidableEq Y] [Fintype n] [DecidableEq n] |
| 19 | |
| 20 | abbrev Tile (Y n : Type*) := Matrix (Y × n) (Y × n) ℝ |
| 21 | |
| 22 | def sectionOf (A : Tile Y n) (i j : Y) : Matrix n n ℝ := Matrix.of fun a b => A (i,a) (j,b) |
| 23 | |
| 24 | omit [DecidableEq Y] [DecidableEq n] in |
| 25 | lemma section_mul (A B : Tile Y n) (i j : Y) : |
| 26 | sectionOf (A*B) i j = ∑ k, sectionOf A i k * sectionOf B k j := by |
| 27 | ext a b; rw [Matrix.sum_apply] |
| 28 | change (A*B) (i,a) (j,b)=_ |
| 29 | rw [Matrix.mul_apply,Fintype.sum_prod_type]; rfl |
| 30 | |
| 31 | omit [DecidableEq Y] [DecidableEq n] in |
| 32 | lemma section_trace (A : Tile Y n) : trace A = ∑ i, trace (sectionOf A i i) := by |
| 33 | unfold Matrix.trace; rw [Fintype.sum_prod_type]; rfl |
| 34 | |
| 35 | /-- Chain after i, terminal jump to j via C. -/ |
| 36 | def routeF (A C : Tile Y n) : (k : ℕ) → Y → (Fin k → Y) → Y → Matrix n n ℝ |
| 37 | | 0,i,_,j => sectionOf C i j |
| 38 | | k+1,i,s,j => sectionOf A i (s 0) * routeF A C k (s 0) (Fin.tail s) j |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | /-- The ENDPOINT Z data also uses physical colors. -/ |
| 45 | def amount (A : Matrix n n ℝ) (z : Y × n → ℝ) (i j : Y) := |
| 46 | dotProduct (fun k => z (i,k)) (A *ᵥ fun k => z (j,k)) |
| 47 | |
| 48 | omit [DecidableEq Y] [DecidableEq n] in |
| 49 | lemma sections (A : Tile Y n) (z : Y × n → ℝ) : |
| 50 | dotProduct z (A *ᵥ z) = ∑ i, ∑ j, amount (sectionOf A i j) z i j := by |
| 51 | unfold dotProduct; rw [Fintype.sum_prod_type]; refine Finset.sum_congr rfl fun i _ => ?_ |
| 52 | unfold amount dotProduct; rw [Finset.sum_comm]; refine Finset.sum_congr rfl fun k _ => ?_ |
| 53 | unfold Matrix.mulVec dotProduct; rw [Fintype.sum_prod_type,Finset.mul_sum]; rfl |
| 54 | |
| 55 | omit [Fintype Y] [DecidableEq Y] [DecidableEq n] in |
| 56 | lemma amount_finset (D : X → Matrix n n ℝ) (s : Finset X) (z : Y × n → ℝ) (i j : Y) : |
| 57 | amount (∑ p∈s,D p) z i j = ∑ p∈s, amount (D p) z i j := by |
| 58 | classical |
| 59 | induction s using Finset.induction_on with |
| 60 | | empty => simp only [sum_empty,amount, Matrix.zero_mulVec,dotProduct_zero] |
| 61 | | insert b s hb ih => |
| 62 | rw [Finset.sum_insert hb, Finset.sum_insert hb,amount, Matrix.add_mulVec,dotProduct_add]; exact congr_arg _ ih |
| 63 | |
| 64 | |
| 65 | |
| 66 | section bounds |
| 67 | variable (z : Y × n → ℝ) |
| 68 | |
| 69 | -- endpoint bills |
| 70 | |
| 71 | def readers (i j : Y) : Finset (Y × n) := {i,j} ×ˢ univ |
| 72 | |
| 73 | omit [Fintype Y] [DecidableEq n] in |
| 74 | lemma readers_bound (i j : Y) : (readers (n:=n) i j).card ≤ 2 * Fintype.card n := by |
| 75 | unfold readers; rw [Finset.card_product, Finset.card_univ] |
| 76 | refine Nat.mul_le_mul_right _ ?_ |
| 77 | by_cases H : i=j <;> simp [H] |
| 78 | |
| 79 | omit [Fintype Y] [DecidableEq n] in |
| 80 | lemma spends (i j : Y) (p q : n) : |
| 81 | |z (i,p)| * |z (j,q)| ≤ (∑ d ∈ readers i j, z d ^ 2) := by |
| 82 | have h a m (hm : a∈readers (n:=n) i j) (he : a=m) : z m ^ 2 ≤ ∑ k ∈ readers i j,z k ^ 2 := by |
| 83 | subst m; exact Finset.single_le_sum (fun d (_:d∈readers i j) => sq_nonneg (z d)) hm |
| 84 | have hx : _ ≤ _ := h (i,p) _ (by simp [readers]) rfl |
| 85 | have hz : _ ≤ _ := h (j,q) _ (by simp [readers]) rfl |
| 86 | nlinarith only [hx,hz,sq_abs (z (i,p)),sq_abs (z (j,q)),sq_nonneg (|z (i,p)| - |z (j,q)|)] |
| 87 | |
| 88 | omit [Fintype Y] [DecidableEq n] in |
| 89 | lemma amount_bound (A : Matrix n n ℝ) (i j : Y) (C : ℝ) (hC : 0 ≤ C) (he : ∀ a b, |A a b| ≤ C) : |
| 90 | |amount A z i j| ≤ ((Fintype.card n:ℝ)^2 * C)*(∑ d ∈ readers i j,z d ^ 2) := by |
| 91 | let V := ∑ d∈ readers i j,z d ^ 2 |
| 92 | unfold amount Matrix.mulVec; simp only [dotProduct, Finset.mul_sum] |
| 93 | calc |
| 94 | _ ≤ ∑ a : n, ∑ b : n, |z (i,a)*(A a b*z (j,b))| := (Finset.abs_sum_le_sum_abs ..).trans |
| 95 | (Finset.sum_le_sum fun i _ => Finset.abs_sum_le_sum_abs ..) |
| 96 | _ ≤ ∑ _a : n, ∑ _b : n, C*V := by |
| 97 | refine Finset.sum_le_sum fun a _ => Finset.sum_le_sum fun b _ => ?_ |
| 98 | simp only [abs_mul]; rw [mul_left_comm]; exact mul_le_mul (he a b) (spends z i j a b) |
| 99 | (by positivity) hC |
| 100 | _ = _ := by simp only [Finset.sum_const, Finset.card_univ, nsmul_eq_mul, V, ← Finset.mul_sum]; ring |
| 101 | |
| 102 | omit [DecidableEq Y] [Fintype Y] [DecidableEq n] in |
| 103 | lemma route_entry (A C : Tile Y n) (k : ℕ) (i : Y) (s : Fin k→ Y) (j : Y) {B D : ℝ} |
| 104 | (hA : ∀ i j, |A i j| ≤ B) (hC : ∀ i j, |C i j| ≤ D) |
| 105 | (hb : 0≤ B) (a b : n) : |routeF A C k i s j a b| ≤ (Fintype.card n*B)^k * D := by |
| 106 | induction k generalizing i a with |
| 107 | | zero => simpa [routeF,sectionOf] using hC (i,a) (j,b) |
| 108 | | succ k ih => |
| 109 | rw [routeF,Matrix.mul_apply] |
| 110 | apply (Finset.abs_sum_le_sum_abs ..).trans |
| 111 | calc |
| 112 | _ ≤ ∑ _m : n,B*((Fintype.card n*B)^k*D) := by |
| 113 | refine Finset.sum_le_sum fun m _ => ?_ |
| 114 | rw [abs_mul]; exact mul_le_mul (hA (i,a) (s 0,m)) (ih ..) (abs_nonneg _) hb |
| 115 | _ = _ := by simp only [Finset.sum_const,Finset.card_univ,nsmul_eq_mul,pow_succ]; ring |
| 116 | |
| 117 | omit [DecidableEq Y] [Fintype Y] [DecidableEq n] in |
| 118 | lemma route_cap (A C : Tile Y n) (k : ℕ) (i : Y) (s : Fin k → Y) {B D : ℝ} |
| 119 | (hA : ∀ i j, |A i j| ≤ B) (hC : ∀ i j, |C i j| ≤ D) (hb : 0≤ B) : |
| 120 | |trace (routeF A C k i s i)| ≤ Fintype.card n * ((Fintype.card n*B)^k * D) := by |
| 121 | unfold Matrix.trace |
| 122 | apply (Finset.abs_sum_le_sum_abs ..).trans |
| 123 | calc |
| 124 | _ ≤ ∑ _i : n, (Fintype.card n*B)^k * D := Finset.sum_le_sum fun j _ => route_entry A C k i s i hA hC hb j j |
| 125 | _ = _ := by simp |
| 126 | end bounds |
| 127 | |
| 128 | section cont |
| 129 | variable {v : X → Tile Y n} {u : X → Tile Y n} [TopologicalSpace X] {s : Set X} |
| 130 | |
| 131 | omit [Fintype n] [DecidableEq n] [Fintype Y] [DecidableEq Y] in |
| 132 | lemma continuous_section (i j : Y) : Continuous fun x : Tile Y n => sectionOf x i j := by |
| 133 | refine continuous_matrix fun a b => ?_ |
| 134 | unfold sectionOf; fun_prop |
| 135 | |
| 136 | omit [DecidableEq n] [Fintype Y] [DecidableEq Y] in |
| 137 | lemma route_continuous (h : ContinuousOn v s) (he : ContinuousOn u s) |
| 138 | {k : ℕ} (i j : Y) (l : Fin k → Y) : ContinuousOn (fun x => routeF (v x) (u x) k i l j) s := by |
| 139 | induction k generalizing i with |
| 140 | | zero => simp_rw [routeF]; exact (continuous_section ..).comp_continuousOn he |
| 141 | | succ k ih => simp_rw [routeF]; exact ((continuous_section ..).comp_continuousOn h).mul (ih _ _) |
| 142 | end cont |
| 143 | end YM.AnalyticNext.ConnectedActivity.Laps |