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.TraceExtension.Perfect.Desktop |
| 2 | |
| 3 | /-! |
| 4 | # Root chart estimate on scalar, leave nonlinear bounds separate. |
| 5 | -/ |
| 6 | set_option autoImplicit false |
| 7 | noncomputable section |
| 8 | namespace YM.Trace.Perfect |
| 9 | open Function Filter Matrix Lattice Precision Laurent Stationary Bloch Exterior Tree RG Wilson |
| 10 | open scoped BigOperators Topology ContDiff Matrix.Norms.Frobenius |
| 11 | variable {c f:Side}{S:StepData c f}{G:Gauge}{p u:Clip}{M R:PathData G}{η α D:ℝ} |
| 12 | variable {F:Forest S.ratio}{ρ:Bid.Dir G c→AxisChart G F}{W:Matrix (Body 1 f) (Body 1 c) ℝ} |
| 13 | variable (h:Critical F p M ρ)(ht: S.patch.Branches S.kernel G)(t:S.Choices)(hv:Guessed F W ρ) |
| 14 | include h ht t hv |
| 15 | lemma smooth_plan : fderiv ℝ (fun x=> content ((liftedUp F W ρ x).1)) 0=uniformM W:=by |
| 16 | ext1 x; let H:= soldier F W t ρ; let U := fun x=> content (liftedUp F W ρ x).1 |
| 17 | have he := soldier_known h ht t hv |
| 18 | let L:= ContinuousLinearMap.fst ℝ (Link G f) (BaseSites G c) |
| 19 | have hh : U=L ∘ H:=rfl |
| 20 | change fderiv ℝ U 0 x=_ |
| 21 | rw [hh,fderiv_comp 0 L.differentiableAt ((soldier_diff h ht t).differentiableAt (by simp)),L.fderiv,show fderiv ℝ H 0=_ from he]; rfl |
| 22 | |
| 23 | variable (F W ρ) in |
| 24 | def fresh (m:Site f)(x:Link G c):Joint G c f:= wages S (switchSite (uniformM (of (gaugePad W m (S.ratio.count.val+1))) x)) 1 (liftedUp F W ρ x) |
| 25 | variable (m:Site f) |
| 26 | omit ht t hv in |
| 27 | lemma fresh_thaw : Thaw (fresh F ρ W m) 0 := (liftedThaw h).wages S (Army.powG (v:=uniformM _) (uniformM _).contDiff.contDiffAt) (Army.park _ _) |
| 28 | omit ht t hv in |
| 29 | lemma fresh_zero : fresh F ρ W m 0=1:=by simp [fresh,lift_origin h] |
| 30 | lemma first_fresh : fderiv ℝ (fun x=> content (fresh F ρ W m x).1) 0=uniformM (of (fleece W (S.ratio.count.val+1) m)):=by |
| 31 | let Y:= fresh F ρ W m |
| 32 | let Q:= uniformM (G:=G) (of (gaugePad W m (S.ratio.count.val+1))) |
| 33 | let I:=uniformM (G:=G) W |
| 34 | have hh : Thaw Y 0:=fresh_thaw h m; have hx:Y 0=1:=fresh_zero h m |
| 35 | let U:=liftedUp F W ρ; let L x:=content (U x).1 |
| 36 | have hp : Thaw U 0:=liftedThaw h; have hL: ContDiffAt ℝ ω L 0:= hp.1.logL (by unfold U;rw [lift_origin h]; rfl) |
| 37 | have hU: U 0=1:=lift_origin h; have he : L 0=0:=by unfold L; rw [hU]; simp |
| 38 | have hz := smooth_plan h ht t hv |
| 39 | ext1 x; let z:= uniformM (G:=G) (of (fleece W (S.ratio.count.val+1) m)); let P (v : ℝ):= v • x |
| 40 | have hP : Tendsto P (𝓝 0) (𝓝 0):=by simpa [P] using (ray_id x).continuousAt.tendsto |
| 41 | apply HasDerivAt.unique (f:=fun a:ℝ=> content (Y (P a)).1) (Push.side _ ((hh.1.logL (show (Y 0).1=1 from congr_arg Prod.fst hx)).differentiableAt (by simp)) x) (ray_content (show (Y (P 0)).1=1 from by unfold P; rw [zero_smul,hx];rfl) _) |
| 42 | let Y' (v:Link G c):= switchSite (Q v) |
| 43 | let K'(v:ℝ):= Y' (P v) |
| 44 | have hk(i): HasDerivAt (fun v=> G.mat (K' v i)) (G.colorMat (gaugeColor (Q x) i)) 0:=by unfold K' Y' P; simp_rw [map_smul]; exact ray_power .. |
| 45 | have he' : HasDerivAt (L ∘ P) (I x) 0:= by rw [← (show fderiv ℝ L 0=I from hz)]; exact (Push.side L (hL.differentiableAt (by simp)) x) |
| 46 | have hQ(i): HasDerivAt (fun v=> G.mat ((U (P v)).1 i)) (G.colorMat (edgeColor (I x) i)) 0:=by |
| 47 | have ht: (fun v=> G.mat ((U (P v)).1 i))=ᶠ[𝓝 0] fun v=>G.mat (input _ _ (L (P v)) i):=by |
| 48 | filter_upwards [hP.eventually ((show Tendsto (fun x=>(U x).1) _ (𝓝 1) from (show (U 0).1=1 from congr_arg Prod.fst hU) ▸ hp.1.cont.tendsto).eventually content_encodes)] with v hv |
| 49 | exact congr_arg G.mat (congr_fun hv i).symm |
| 50 | refine HasDerivAt.congr_of_eventuallyEq ?_ ht |
| 51 | exact ray_swap (V:=fun u:Link G f=>G.mat (input G f u i)) ((Army.powL (v:=id) contDiffAt_id i).differentiableAt (by simp)) (ray_input (I x) i) (u:=fun v=>L (P v)) (by unfold P; rw [zero_smul,he]) he' |
| 52 | intro i |
| 53 | have ha := ray_gauged (u:=K') (U:=fun v=>(U (P v)).1) (by simp [K',Y',P]) hk (by simp [P,hU]) hQ i |
| 54 | suffices hu : z x=I x-gradientA G f (Q x) by |
| 55 | change HasDerivAt _ (G.colorMat (edgeColor (z x) i)) _; rw [hu]; exact ha |
| 56 | funext j |
| 57 | suffices hevv:∀ (j:Body 1 f) (l:G.ColorIndex), z x (j.1,j.2,l)= I x (j.1,j.2,l) -gradientA G f (Q x) (j.1,j.2,l) from hevv (j.1,j.2.1) j.2.2 |
| 58 | intro j l; rw [first_uniform]; let A:= parts G 1 (arm _ _ _ x) l; let U':=of (gaugePad W m (S.ratio.count.val+1)) |
| 59 | change (of (fleece W (S.ratio.count.val+1) m)*ᵥ A) j=(W *ᵥ A) j- (d 0 f *ᵥ (parts G 0 (arm _ _ _ (Q x)) l)) _ |
| 60 | rw [show parts G 0 (arm _ _ _ (Q x)) l=U' *ᵥ A from uniformC ..]; rw [mulVec_mulVec] |
| 61 | rw [show of (fleece W _ m)= W-d 0 f*U' from rfl, sub_mulVec]; rfl |
| 62 | |
| 63 | -- pose all increments as smooth field & pay through any stage budget |
| 64 | variable {X: Type}[NormedAddCommGroup X][NormedSpace ℝ X][FiniteDimensional ℝ X][CompleteSpace X] |
| 65 | variable {J:Config G f→ ℝ}{Y:Config G f→Link G f} |
| 66 | variable (F W ρ) in |
| 67 | def outing (m:Site f)(x:Link G c):= switchSite (uniformM (of (gaugePad W m (S.ratio.count.val+1))) x)*salute F W x |
| 68 | omit t h ht hv in |
| 69 | lemma fresco (x:Link G c): fresh F ρ W m x=wages S (outing F W m x) 1 (encamp F ρ x):=by |
| 70 | unfold fresh; rw [liftedUp,wage_comp,one_mul];rfl |
| 71 | omit h ht hv t in |
| 72 | lemma out_flag (G:Gauge): Army (outing (G:=G) F W m) 0 ∧ outing (G:=G) F W m 0=1:=by |
| 73 | refine ⟨?_,?_⟩ |
| 74 | · apply Army.mul (Army.powG (v:=uniformM (of (gaugePad W m (S.ratio.count.val+1)))) (uniformM _).contDiff.contDiffAt) (Army.powG (v:=uniformM (G:=G) _) (uniformM _).contDiff.contDiffAt) |
| 75 | simp [outing,salute] |
| 76 | omit t ht hv in |
| 77 | lemma colors (hJ:Cleric J): inheritJ F ρ J ∘ input G c =ᶠ[𝓝 0] (J ∘ input G f ∘ fun x=> content (fresh F ρ W m x).1):=by |
| 78 | have hp:= out_flag (F:=F) (W:=W) m G |
| 79 | let X:= fresh F ρ W m |
| 80 | have hZ: Tendsto (fun x=>(X x).1) (𝓝 0) (𝓝 1):=by |
| 81 | rw [show (1:Config G f)=(X 0).1 from (congr_arg Prod.fst (fresh_zero h m)).symm]; exact (fresh_thaw h m).1.cont.tendsto |
| 82 | refine inspire.trans ?_ |
| 83 | filter_upwards [hJ.jacket (Link G c) _ _ _ (camp_thaw h|>.1) (congr_arg Prod.fst (encamp_zero h)) hp.1 hp.2,hZ.eventually content_encodes] with x hx hX |
| 84 | exact hx.symm.trans (by change J ((wages S _ 1 (encamp F ρ x)).1)=_; rw [← fresco m x]; exact congr_arg J hX.symm) |
| 85 | omit hv in |
| 86 | set_option maxRecDepth 8192 in |
| 87 | lemma port (hY:Cloaked Y)(hp:M.Bounds p η α D): inheritY F ρ t Y ∘ input G c=ᶠ[𝓝 0] fun x=> let U:=fresh F ρ W m x; shuttle S t U (input G c x) (Y (input G f (content U.1))):=by |
| 88 | refine (inmate t).trans ?_ |
| 89 | let X:= fresh F ρ W m; have hX: Thaw X 0:=fresh_thaw h _; have h0:X 0=1:=fresh_zero h m; let A:=encamp F ρ |
| 90 | have he:= out_flag (W:=W) (F:=F) m G; let g:= outing (W:=W) (F:=F) (G:=G) m |
| 91 | filter_upwards [hY.jacket (Link G c) (fun x=> (encamp F ρ x).1) g (1:G.El) (camp_thaw h|>.1) (congr_arg Prod.fst (encamp_zero h)) he.1 he.2,(show Tendsto (fun x=>(X x).1) _ (𝓝 1) from (show (X 0).1=1 from congr_arg Prod.fst h0) ▸ hX.1.cont.tendsto).eventually content_encodes, Stationary.awake t hp hX (congr_arg Prod.fst h0) ht root_customs, Stationary.awake t hp (camp_thaw h) (congr_arg Prod.fst (encamp_zero h)) ht root_customs] with x ha hb hc hh |
| 92 | have hg : Lattice.gauge (g x) (A x).1=(X x).1:= (congr_arg Prod.fst (fresco m x (F:=F) (W:=W) (ρ:=ρ))).symm |
| 93 | have hf: X x=wages S (g x) 1 (A x):=fresco .. |
| 94 | have hi := shuttle_turn t (input G c x) ht (g x) 1 hh (hf ▸ hc) (Y (A x).1) |
| 95 | change shuttle _ t _ _ _=shuttle S t (X x) _ (Y (input G f (content _))) |
| 96 | rw [hb, ← hg, show Y (Lattice.gauge (g x) (A x).1)=_ from ha] |
| 97 | rw [← hf,gauge_one] at hi; rw [hi]; apply edgeColor.injective; funext i; rw [armor_at]; exact (G.adjoint_one ..).symm |
| 98 | end YM.Trace.Perfect |