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.Bid.Corners |
| 2 | import YM.Next.SCHEDULE.Pre |
| 3 | import YM.Work.G07.Stencil |
| 4 | |
| 5 | /-! |
| 6 | # Cost of any number of derivatives on the TRANSPORT path |
| 7 | |
| 8 | Schedule prerequisite for E path hits. All matrices in physical unitary |
| 9 | representation with Frobenius. Orders can be large *arbitrary pre-L* orders. |
| 10 | Keep actual slot word, incl inverse physical orientation and repeated links. |
| 11 | Polynomial growth PER fixed order not length-exponential! (Naive product |
| 12 | norm not this; R0 relaxation might buy a very small exponential). |
| 13 | Constant lanes isolate unitarity. Reuse existing stencil differentiation |
| 14 | library (G07), but path-length budget here essential when summing infinitely |
| 15 | many labels. |
| 16 | -/ |
| 17 | set_option autoImplicit false |
| 18 | noncomputable section |
| 19 | namespace YM.Next.Scheduling.Wages |
| 20 | open Work.G07 Lattice RG Wilson |
| 21 | open scoped ContDiff Matrix.Norms.Frobenius BigOperators |
| 22 | |
| 23 | variable {G : Gauge} {n : Side} |
| 24 | |
| 25 | -- auxiliary word with fixed-matrix letters |
| 26 | inductive Piece (G : Gauge) (n : Side) |
| 27 | | push (i : Edge (Site n)) |
| 28 | | pull (i : Edge (Site n)) |
| 29 | | mat (x : G.Mat) |
| 30 | abbrev Trail (G : Gauge) (n : Side) := List (Piece G n) |
| 31 | |
| 32 | namespace Piece |
| 33 | def call : Piece G n → Config G n → G.Mat |
| 34 | | push i,U => G.mat (U i) |
| 35 | | pull i,U => G.mat (U i)⁻¹ |
| 36 | | mat x,_ => x |
| 37 | |
| 38 | theorem soft (p : Piece G n) (k : ℕ) : LeftSmooth k p.call := by |
| 39 | cases p with |
| 40 | | push i => exact smooth_link i |
| 41 | | pull i => exact (smooth_link i).postcomp (starL' ℝ).toContinuousLinearMap |
| 42 | | mat x => |
| 43 | apply (LeftBound.const (E:=G.Mat) (k:=k) (D:=fun _ => True) (Z:=fun _ => True) zero_le_one x).smooth |
| 44 | |
| 45 | def size : Piece G n → ℝ |
| 46 | | mat x => ‖x‖ |
| 47 | | _ => 1 |
| 48 | |
| 49 | def links : Piece G n → List (Edge (Site n)) |
| 50 | | push i => [i] |
| 51 | | pull i => [i] |
| 52 | | mat _ => [] |
| 53 | end Piece |
| 54 | |
| 55 | -- Trail metrics |
| 56 | namespace Path |
| 57 | |
| 58 | def eval : Trail G n → Config G n → G.Mat |
| 59 | | [],_ => 1 |
| 60 | | a::l,U => a.call U * eval l U |
| 61 | |
| 62 | def price : Trail G n → ℝ |
| 63 | | [] => 1 |
| 64 | | a::l => a.size*price l |
| 65 | |
| 66 | def uses : Trail G n → List (Edge (Site n)) |
| 67 | | [] => [] |
| 68 | | a::l => a.links ++ uses l |
| 69 | |
| 70 | lemma pos (l : Trail G n) : 0 ≤ price l := by |
| 71 | induction l with |
| 72 | | nil => exact zero_le_one |
| 73 | | cons a l ih => cases a <;> first | exact mul_nonneg zero_le_one ih | exact mul_nonneg (norm_nonneg _) ih |
| 74 | |
| 75 | lemma scale (l : Trail G n) (U : Config G n) : ‖eval l U‖ ≤ price l*‖(1:G.Mat)‖ := by |
| 76 | induction l with |
| 77 | | nil => simp only [eval,price,one_mul,le_refl] |
| 78 | | cons a l ih => |
| 79 | rw [eval]; cases a with |
| 80 | | push i => rw [Piece.call,Gauge.mul_frob_eq (G.mat (U i)) _ (G.mat_star_mul (U i))]; simpa only [price,Piece.size,one_mul] using ih |
| 81 | | pull i => rw [Piece.call,Gauge.mul_frob_eq (G.mat (U i)⁻¹) _ (G.mat_star_mul (U i)⁻¹)]; simpa only [price,Piece.size,one_mul] using ih |
| 82 | | mat x => rw [Piece.call]; apply (norm_mul_le ..).trans; calc |
| 83 | _ ≤ _ := mul_le_mul_of_nonneg_left ih (norm_nonneg x) |
| 84 | _ = _ := (mul_assoc ..).symm |
| 85 | |
| 86 | lemma soft (l : Trail G n) (k : ℕ) : LeftSmooth k (eval l) := by |
| 87 | induction l with |
| 88 | | nil => intro l hl U; simp only [eval,left_const]; exact contDiff_const |
| 89 | | cons a l ih => exact (a.soft k).mul ih |
| 90 | |
| 91 | /-- Insert differentiated generators into the *actual* product; positions |
| 92 | remain positive-link indices. -/ |
| 93 | def changeBy (A : Directions G n) : Trail G n → List (Trail G n) |
| 94 | | [] => [] |
| 95 | | a::l => |
| 96 | let tail := (changeBy A l).map (fun l' => a::l') |
| 97 | match a with |
| 98 | | .push i => (Piece.mat (G.colorMat (A i))::a::l)::tail |
| 99 | | .pull i => (a::Piece.mat (-(G.colorMat (A i)))::l)::tail |
| 100 | | .mat _ => tail |
| 101 | |
| 102 | def group (H : List (Trail G n)) (U : Config G n) := (H.map (eval · U)).sum |
| 103 | |
| 104 | theorem head (a : Piece G n) (l : List (Trail G n)) (U) : |
| 105 | group (l.map (fun l' => a::l')) U = a.call U*group l U := by |
| 106 | induction l with |
| 107 | | nil => simp [group] |
| 108 | | cons v l ih => unfold group at *; simp only [List.map_cons,List.sum_cons,eval,ih,mul_add] |
| 109 | |
| 110 | private lemma fwd (i : Edge (Site n)) (A : Directions G n) (U : Config G n) : |
| 111 | leftDerivs (Piece.push i).call [A] U = G.colorMat (A i) * G.mat (U i) := by |
| 112 | change leftDerivs (fun V : Config G n => G.mat (V i)) _ _=_; simpa [linkPrefix] using left_link i [A] U |
| 113 | |
| 114 | private lemma bwd (i : Edge (Site n)) (A : Directions G n) (U : Config G n) : |
| 115 | leftDerivs (Piece.pull i).call [A] U = G.mat (U i)⁻¹ * -(G.colorMat (A i)) := by |
| 116 | have h := left_linear (smooth_link (k:=1) i) (starL' ℝ (A:=G.Mat)).toContinuousLinearMap (l:=[A]) (by simp) |
| 117 | have hh : leftDerivs (Piece.pull i).call [A] U = star (leftDerivs (Piece.push i).call [A] U) := congr_fun h U |
| 118 | rw [hh, fwd, star_mul,G.colorMat_skew]; rfl |
| 119 | |
| 120 | theorem first (l : Trail G n) (A : Directions G n) : leftDerivs (eval l) [A] = group (changeBy A l) := by |
| 121 | induction l with |
| 122 | | nil => funext U; simp [eval,group,changeBy,left_const] |
| 123 | | cons a l ih => |
| 124 | funext U |
| 125 | rw [show eval (a::l) = fun U => a.call U* eval l U from rfl, left_first_mul (a.soft 1) (soft l 1) A, ih] |
| 126 | dsimp only |
| 127 | have hh (l : List (Trail G n)) (w) : group (w::l) U=eval w U+group l U:=by simp [group] |
| 128 | cases a with |
| 129 | | mat x => rw [show (Piece.mat (n:=n) x).call = fun _ => x from rfl,left_const]; simp [changeBy,head,Piece.call] |
| 130 | | push i => rw [fwd,changeBy, hh,head]; simp only [Piece.call, eval, mul_assoc] |
| 131 | | pull i => rw [bwd,changeBy, hh,head]; simp only [Piece.call, eval, mul_assoc] |
| 132 | |
| 133 | theorem cost (A : Directions G n) (T : ℝ) (l : Trail G n) |
| 134 | (h : ∀ i ∈ uses l, ‖G.colorMat (A i)‖ ≤ T) : |
| 135 | (changeBy A l).length=(uses l).length ∧ ∀ q∈changeBy A l, uses q=uses l ∧ price q ≤ price l*T := by |
| 136 | induction l with |
| 137 | | nil => simp [changeBy,uses] |
| 138 | | cons a l ih => |
| 139 | obtain ⟨hl, ih⟩:= ih (fun i hi => h i (by unfold uses; exact List.mem_append_right _ hi)) |
| 140 | have ht : ∀ q∈(changeBy A l).map (fun l' => a::l'), uses q=uses (a::l) ∧ price q ≤ price (a::l)*T := by |
| 141 | rintro q h |
| 142 | obtain ⟨v,hv,rfl⟩:=List.mem_map.mp h |
| 143 | obtain ⟨hx,hP⟩:=ih v hv |
| 144 | refine ⟨by rw [uses,uses,hx], ?_⟩ |
| 145 | have hb : 0≤a.size:= by cases a <;> first | exact zero_le_one | exact norm_nonneg _ |
| 146 | rw [price,price,mul_assoc]; exact mul_le_mul_of_nonneg_left hP hb |
| 147 | cases a with |
| 148 | | mat X => exact ⟨by simp only [changeBy,uses,Piece.links,List.length_map,hl,List.nil_append],ht⟩ |
| 149 | | push i => |
| 150 | refine ⟨by simp [changeBy,uses,Piece.links,hl],fun q hh => (List.mem_cons.mp hh).elim ?_ (ht q)⟩ |
| 151 | rintro rfl |
| 152 | have hi:=h i (by unfold uses Piece.links; simp) |
| 153 | refine ⟨by simp [uses,Piece.links],?_⟩ |
| 154 | apply le_trans _ (mul_comm ..).ge |
| 155 | exact mul_le_mul_of_nonneg_right hi (Path.pos _) |
| 156 | | pull i => |
| 157 | refine ⟨by simp [changeBy,uses,Piece.links,hl],fun q hh => (List.mem_cons.mp hh).elim ?_ (ht q)⟩ |
| 158 | rintro rfl; refine ⟨by simp [uses,Piece.links],?_⟩ |
| 159 | have hi:=h i (by unfold uses Piece.links; simp) |
| 160 | simp only [price,Piece.size,one_mul,norm_neg] |
| 161 | rw [mul_comm (price l)] |
| 162 | exact mul_le_mul_of_nonneg_right hi (Path.pos _) |
| 163 | |
| 164 | private lemma split_derivative (A : List (Directions G n)) (H : List (Trail G n)) : |
| 165 | LeftSmooth A.length (group H) ∧ ∀ U, leftDerivs (group H) A U = (H.map (fun i => leftDerivs (eval i) A U)).sum := by |
| 166 | induction H with |
| 167 | | nil => |
| 168 | have h : group [] = fun (_ : Config G n) => (0 : G.Mat) := by funext _; simp [group] |
| 169 | rw [h]; exact ⟨(LeftBound.const (k:=A.length) (D:=fun _ => True) (Z:=fun _ => True) zero_le_one (0:G.Mat)).smooth, |
| 170 | fun _ => by simp [left_const]⟩ |
| 171 | | cons i H ih => |
| 172 | rw [show group (i::H) = fun U => eval i U+group H U by ext; simp [group]] |
| 173 | refine ⟨(soft i _).add ih.1,fun U => ?_⟩ |
| 174 | simp only [left_add (soft i A.length) ih.1 (le_refl A.length),List.map_cons,List.sum_cons, ih.2] |
| 175 | |
| 176 | private lemma norm_collect (W : List (Trail G n)) (f : Trail G n → G.Mat) (c : ℝ) |
| 177 | (h : ∀ i∈W,‖f i‖ ≤ c) : ‖(W.map f).sum‖ ≤ W.length*c := by |
| 178 | induction W with |
| 179 | | nil => simp |
| 180 | | cons i W ih => |
| 181 | rw [List.map_cons,List.sum_cons,List.length_cons,Nat.cast_add_one,add_mul,one_mul,add_comm _ c] |
| 182 | exact le_trans (norm_add_le ..) (add_le_add (h i List.mem_cons_self) (ih (fun j hj => h j (List.mem_cons_of_mem _ hj)))) |
| 183 | |
| 184 | theorem bill (l : Trail G n) (T : ℝ) (ht : 0 ≤ T) (U : Config G n) (A : List (Directions G n)) |
| 185 | (h : ∀ i∈uses l,∀ a∈A, ‖G.colorMat (a i)‖ ≤ T) : |
| 186 | ‖leftDerivs (eval l) A U‖ ≤ (price l*‖(1:G.Mat)‖)*(T*(uses l).length)^A.length := by |
| 187 | induction A using List.reverseRecOn generalizing l with |
| 188 | | nil => simpa only [leftDerivs,List.length_nil,pow_zero,mul_one] using scale l U |
| 189 | | append_singleton A t ih => |
| 190 | rw [left_append,first,(split_derivative ..).2 U] |
| 191 | have he := cost t T l (fun i hi => h i hi t (by simp)) |
| 192 | apply (norm_collect (changeBy t l) _ ((price l*T*‖(1:G.Mat)‖)*(T*(uses l).length)^A.length) ?_).trans ?_ |
| 193 | · intro i hi |
| 194 | obtain ⟨hx,hp⟩:=he.2 i hi |
| 195 | apply le_trans <| ih i (fun j hj a ha => h j (hx ▸ hj) a (List.mem_append_left _ ha)) |
| 196 | rw [hx]; gcongr |
| 197 | rw [he.1,List.length_append,List.length_singleton,pow_succ]; apply le_of_eq; ring |
| 198 | end Path |
| 199 | end YM.Next.Scheduling.Wages |