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.Det.Lull |
| 2 | |
| 3 | /-! |
| 4 | # Real finite Ward identity with simple mass, on LEFT chart. Carries S' contact through both determinants. |
| 5 | No trying to invert singular spin in charged term. |
| 6 | -/ |
| 7 | set_option autoImplicit false |
| 8 | noncomputable section |
| 9 | namespace YM.Trace.Det |
| 10 | open Function Filter Matrix Lattice Precision Laurent Stationary Perfect Bloch Exterior Tree RG Wilson Finset |
| 11 | open scoped BigOperators Topology ContDiff |
| 12 | |
| 13 | section charge |
| 14 | variable {ι κ:Type}[Fintype ι][Fintype κ][DecidableEq ι][DecidableEq κ] |
| 15 | variable (H V : Funds ι) (M T:Matrix ι κ ℝ)(u:ℝ) |
| 16 | lemma move_r {A R:Funds ι}{G J:Funds κ}(h:H*M=-T)(hp:A=H+M*Mᵀ+u • 1)(hk:G=Mᵀ*M+u • 1)(hr:R*A=1)(hg:G*J=1): R*M=M*J+ R*T*J:=by |
| 17 | have ht : A*M=M*G-T:=by rw [hp,hk,Matrix.add_mul, Matrix.add_mul, h,Matrix.smul_mul,Matrix.one_mul,Matrix.mul_add,Matrix.mul_smul,Matrix.mul_one, Matrix.mul_assoc]; abel |
| 18 | have hu : R*M*G= M+R*T:=by |
| 19 | have hz : M=R*(M*G-T):=by rw[← ht,← Matrix.mul_assoc,hr,Matrix.one_mul] |
| 20 | conv_rhs=>lhs;rw[hz] |
| 21 | rw [Matrix.mul_sub,← Matrix.mul_assoc,sub_add_cancel] |
| 22 | rw[show R*M=R*M*G*J by rw [Matrix.mul_assoc (R*M),hg,Matrix.mul_one],hu,Matrix.add_mul] |
| 23 | omit [DecidableEq ι] in |
| 24 | lemma glideMat {P R:Funds ι}(hR:Rᵀ=R) : (R * Pᵀ).trace = (R*P).trace:=by |
| 25 | rw[← Matrix.trace_transpose (R * P), transpose_mul,hR, trace_mul_comm _ R] |
| 26 | omit [DecidableEq ι] [DecidableEq κ] in |
| 27 | lemma gap_u {R:Funds ι}{J:Funds κ}(U:Funds ι)(h:R*M=M*J+R*T*J): |
| 28 | (R*(M*Mᵀ)*U).trace=(J*((Mᵀ*U)*M)).trace + (((J*Mᵀ*U)*R)*T).trace:=by |
| 29 | rw [← Matrix.mul_assoc,h,Matrix.add_mul,Matrix.add_mul, Matrix.trace_add]; congr 1 |
| 30 | · rw [Matrix.mul_assoc M J, Matrix.mul_assoc M,Matrix.trace_mul_comm]; congr 1; simp only [Matrix.mul_assoc] |
| 31 | let L:=J*Mᵀ*U; change (R*T*J*Mᵀ*U).trace=_; rw [show R*T*J*Mᵀ*U=(R*T)*L by unfold L;simp only [Matrix.mul_assoc], Matrix.trace_mul_comm]; congr 1; unfold L; simp only [Matrix.mul_assoc] |
| 32 | omit [DecidableEq ι] [DecidableEq κ] in |
| 33 | lemma clue {R:Funds ι}{J:Funds κ}(h:R*M=M*J+ R*T*J)(hr:Rᵀ=R)(hg:Jᵀ=J): (R*(V*(M*Mᵀ))).trace=(J*((Mᵀ*V)*M)).trace + (((J*Mᵀ*Vᵀ)*R)*T).trace:=by |
| 34 | rw [← glideMat hr]; simp only [transpose_mul,transpose_transpose]; rw [← Matrix.mul_assoc,gap_u M T _ h]; congr 1; rw[show Mᵀ*Vᵀ*M=(Mᵀ*V*M)ᵀ by simp [Matrix.mul_assoc],glideMat hg] |
| 35 | |
| 36 | lemma stag (H' X:Funds ι) {A R:Funds ι}{G J:Funds κ} (h:H*M=-T)(hk:A=H+M*Mᵀ+u • 1)(hv:G=Mᵀ*M+u • 1)(hr:R*A=1)(hj:G*J=1)(hH:Hᵀ=H)(hR:Rᵀ=R)(hJ:Jᵀ=J) : |
| 37 | (R*(H'+H*V+Vᵀ*H+X)).trace/2-V.trace= |
| 38 | ((R*(H'+((V*M)*Mᵀ+M*(V*M)ᵀ))).trace/2 - (J*((V*M)ᵀ*M+Mᵀ*(V*M))).trace) - u*(R*V).trace + ((R*X).trace/2 - (((J*Mᵀ*(V+Vᵀ))*R)*T).trace):=by |
| 39 | have hp:= move_r H M T u h hk hv hr hj |
| 40 | have hs : (R*(Vᵀ*H)).trace=(R*(H*V)).trace:=by rw [← glideMat hR (P:=H*V),transpose_mul,hH] |
| 41 | have ht : (R*(M*(V*M)ᵀ)).trace= (R*(V*M*Mᵀ)).trace:=by rw [← glideMat hR (P:=V*M*Mᵀ)]; simp only [transpose_mul,transpose_transpose] |
| 42 | have he : (J*((V*M)ᵀ*M)).trace=(J*(Mᵀ*(V*M))).trace:=by rw [← glideMat hJ (P:=Mᵀ*(V*M))]; simp only [transpose_mul,transpose_transpose] |
| 43 | have hv' : (R*(H*V)).trace=(V.trace-(R*(M*Mᵀ)*V).trace)-u*(R*V).trace:=by |
| 44 | have hx:H=A-M*Mᵀ-u • 1:=by rw [hk]; abel |
| 45 | rw [hx,Matrix.sub_mul, Matrix.sub_mul,Matrix.mul_sub,Matrix.mul_sub,← mul_assoc R A, ← Matrix.mul_assoc R (M*Mᵀ),hr,Matrix.one_mul,smul_mul_assoc, Matrix.one_mul,Matrix.mul_smul,Matrix.trace_sub,Matrix.trace_sub,Matrix.trace_smul]; rfl |
| 46 | rw [Matrix.mul_add,Matrix.mul_add R, Matrix.mul_add R, Matrix.trace_add,Matrix.trace_add,Matrix.trace_add,hs] |
| 47 | rw[hv',gap_u M T V hp]; rw [Matrix.mul_add R,Matrix.mul_add R, Matrix.trace_add,Matrix.trace_add (R*_),ht,Matrix.mul_add J, Matrix.trace_add,he, Matrix.mul_assoc V M,clue V M T hp hR hJ, ← Matrix.mul_assoc Mᵀ] |
| 48 | rw[Matrix.mul_add (J*Mᵀ), Matrix.add_mul,Matrix.add_mul, Matrix.trace_add]; ring |
| 49 | |
| 50 | variable {F:Type*} [AddCommGroup F][Module ℝ F] |
| 51 | def trapw (C:Matrix κ ι ℝ)(D:ι → κ → F): F:= ∑ i, ∑ j, C j i • D i j |
| 52 | omit [DecidableEq ι] [DecidableEq κ] in |
| 53 | lemma trap_pay (C:Matrix κ ι ℝ)(L:F→ₗ[ℝ]ℝ)(D:ι → κ → F):L (trapw C D)=(C*of (fun i j=> L (D i j))).trace:=by |
| 54 | unfold trapw; rw [map_sum]; simp_rw[map_sum,map_smul]; rw[sum_comm]; rfl |
| 55 | end charge |
| 56 | |
| 57 | variable {G:Gauge}{f:Side}{p:Clip}{R:PathData G}{Y:Gal G f}{α C D μ:ℝ} |
| 58 | {T:Type}[NormedAddCommGroup T][NormedSpace ℝ T][FiniteDimensional ℝ T][CompleteSpace T] |
| 59 | (U:Config G f) |
| 60 | |
| 61 | def stock (p:Clip)(R:PathData G)(μ:ℝ)(U:Config G f):=flare p R U+mail U*(mail U)ᵀ+μ^2 • (1:Funds _) |
| 62 | def marke (p:Clip)(R:PathData G)(μ:ℝ)(U:Config G f):= Real.log (stock p R μ U).det/2 - Real.log (ammo μ U).det |
| 63 | def shellB (p:Clip)(R:PathData G)(μ:ℝ)(U:Config G f):=(stock p R μ U)⁻¹ |
| 64 | def shellG (μ:ℝ)(U:Config G f):=(ammo μ U)⁻¹ |
| 65 | def shoreM (p:Clip)(R:PathData G)(μ:ℝ)(Y:Gal G f)(U:Config G f):= (shellG μ U*(mail U)ᵀ * (tidal Y U+(tidal Y U)ᵀ))*shellB p R μ U |
| 66 | def shoreZ (p:Clip)(R:PathData G)(μ:ℝ)(Y:Gal G f)(U:Config G f):Link G f:= trapw (shoreM p R μ Y U) (jeps U) |
| 67 | def shoreX (p:Clip)(R:PathData G)(μ:ℝ)(Y:Gal G f)(U:Config G f):Link G f:= trapw (shellB p R μ U) (refrain Y U) |
| 68 | def ashore (p:Clip)(R:PathData G)(μ:ℝ)(Y:Gal G f)(U:Config G f):Link G f:= (1/2:ℝ) • shoreX p R μ Y U - shoreZ p R μ Y U |
| 69 | def lush (Y:Gal G f)(U:Config G f):=(tidal Y U).trace |
| 70 | |
| 71 | def arrived (p:Clip)(R:PathData G)(μ:ℝ)(Y:Gal G f)(U:Config G f):= beamG (marke p R μ) U (Y U) |
| 72 | omit [FiniteDimensional ℝ T] [CompleteSpace T] in |
| 73 | lemma stocked (h:R.Bounds p α C D)(hμ:0<μ)(K:T → Config G f)(hp:Army K 0): Memo (stock p R μ ∘ K) 0 ∧ Memo (ammo μ ∘ K) 0:=by |
| 74 | let F(x:T):= flare p R (K x) |
| 75 | have hx: Memo F 0:=by |
| 76 | refine memo_damage _ (F:=fun x=> burn p R (K x)) ?_ |
| 77 | exact Work.F02.mainTerm_contDiffAt (A:=fun v:T × Link G f=> input G f v.2*K v.1) h ((Army.powL (v:=Prod.snd) contDiffAt_snd).mul (Army.comp (g:=K) (w:=Prod.fst) hp contDiffAt_fst)) |
| 78 | have he := memo_flash hμ hp |>.1 |
| 79 | exact ⟨(hx.twice (he.cross he.spot)).twice (Memo.raw _ _), (he.spot.cross he).twice (Memo.raw _ _)⟩ |
| 80 | lemma memo_mkr (h:R.Bounds p α C D)(hμ:0<μ)(he:(stock p R μ U).det ≠ 0): ContDiffAt ℝ ω (bal U (marke p R μ)) 0:=by |
| 81 | let V(z:Link G f):= input G f z*U |
| 82 | obtain ⟨hp,hv⟩:= stocked h hμ V ((Army.powL (v:=id) contDiffAt_id).mul (Army.park U _)) |
| 83 | have hh: V 0=U:=by simp [V] |
| 84 | exact ((hp.det_val.log (by rw[Function.comp_apply,hh];exact he)).div_const 2).sub (hv.det_val.log (by rw[Function.comp_apply,hh];exact (ammo_safe U hμ).det_pos.ne')) |
| 85 | lemma rhyme (h:R.Bounds p α C D)(hμ:0<μ)(he:(stock p R μ U).det ≠ 0): |
| 86 | arrived p R μ Y U = ((shellB p R μ U)*directionM (fun s=> stock p R μ (tendr Y s U)) 0 1).trace/2 - ((shellG μ U)*directionM (fun s=> ammo μ (tendr Y s U)) 0 1).trace:=by |
| 87 | let B:= bal U (marke p R μ); let K(s:ℝ):= tendr Y s U |
| 88 | obtain ⟨hp,hv⟩:= stocked h hμ K ((Army.powL (v:=fun s:ℝ=>s • Y U) (by fun_prop)).mul (Army.park U _)) |
| 89 | have hK: K 0=U:=tendr_o U; let T:=stock (f:=f) p R μ; let G':= ammo (G:=G) (n:=f) μ |
| 90 | have ht : (T (K 0)).det≠0:=by rw[hK];exact he |
| 91 | have hh : (G' (K 0)).det≠0:=(ammo_safe _ hμ).det_pos.ne' |
| 92 | let L(s:ℝ):= B (s • Y U) |
| 93 | have hj : HasFDerivAt B (fderiv ℝ B 0) ((0:ℝ) • Y U):= by rw [zero_smul]; exact ((memo_mkr U h hμ he).differentiableAt (by simp)).hasFDerivAt |
| 94 | have hL: HasDerivAt L (arrived p R μ Y U) 0:= by change HasDerivAt (B ∘ (fun s:ℝ=>s • Y U)) (fderiv ℝ B 0 (Y U)) 0; exact hj.comp_hasDerivAt 0 (ray_id (Y U)) |
| 95 | have he' := ((hp.det_val.log (show (((T ∘ K) 0).det)≠0 from ht)).differentiableAt (by simp)) |
| 96 | have ht':= (hv.det_val.log (show ((G' ∘ K) 0).det ≠0 from hh)).differentiableAt (by simp) |
| 97 | have hx:= trace_log_first hp ht 1 |
| 98 | have hy:= trace_log_first hv hh 1 |
| 99 | simp only [Function.comp_apply,hK] at he' ht' hx hy |
| 100 | have hu := hL.unique ((he'.hasDerivAt.div_const _).sub ht'.hasDerivAt) |
| 101 | change arrived p R μ Y U=fderiv ℝ (fun z=> Real.log (stock p R μ (K z)).det) 0 1/2-fderiv ℝ (fun z=> Real.log (ammo μ (K z)).det) 0 1 at hu |
| 102 | rw [hx,hy] at hu; exact hu |
| 103 | lemma scale_g (h:R.Bounds p α C D)(hμ:0<μ)(he:(stock p R μ U).det≠0)(hY:Tune Y U)(hh:∀ᶠ u:BaseSites G f in 𝓝 0,Y (Lattice.gauge (switchSite u) U)=armor (switchSite u) (Y U)) : |
| 104 | (shellB p R μ U * beamH (aroma p R Y) U).trace/2 - lush Y U = |
| 105 | arrived p R μ Y U- μ^2 * (shellB p R μ U *tidal Y U).trace + aroma p R (ashore p R μ Y) U:=by |
| 106 | let W(s:ℝ):= tendr Y s U; let A(s:ℝ):= flare p R (W s); let H:= flare p R U; let B:= shellB p R μ U; let J:=shellG μ U; let V:= tidal Y U; let M(s):=mail (W s) |
| 107 | let P:=mail U |
| 108 | have hA: Memo A 0:= memo_damage _ (rate_burn U h) |
| 109 | have ht: Army W 0:=(Army.powL (v:=fun s:ℝ=> s • Y U) (by fun_prop)).mul (Army.park U _) |
| 110 | have hM: Memo M 0:= memo_flash hμ ht |>.1; have h0: M 0=P:= by unfold M W; rw [tendr_o] |
| 111 | have hv: directionM M 0 1=V*P:= rising U hY hh |
| 112 | have hs : directionM (fun s=> (M s)ᵀ) 0 1=(V*P)ᵀ:=by rw [← hv]; rfl |
| 113 | have hp: directionM (fun s=>stock p R μ (W s)) 0 1=directionM A 0 1+(V*P*Pᵀ+ P*(V*P)ᵀ):=by |
| 114 | rw[show (fun s=>stock p R μ (W s))= (A+fun s=> M s*(M s)ᵀ)+ (fun _=>μ^2 • 1) from rfl]; rw [direction_add (hA.twice (hM.cross hM.spot)) (Memo.raw _ _), direction_add hA (hM.cross hM.spot), direction_zero,add_zero,direction_prod hM hM.spot,hv,hs,h0] |
| 115 | have hq:directionM (fun s=>ammo μ (W s)) 0 1=(V*P)ᵀ*P+Pᵀ*(V*P):= by |
| 116 | rw[show (fun s=>ammo μ (W s))=(fun s=>(M s)ᵀ*M s)+(fun _=>μ^2 • 1) from rfl, direction_add (hM.spot.cross hM) (Memo.raw _ _), direction_zero, add_zero,direction_prod hM.spot hM,hv,hs,h0] |
| 117 | have hx : aroma p R (ashore p R μ Y) U=(B*tensw p R Y U).trace/2- (J*Pᵀ*(V+Vᵀ)*B*tuneM p R U).trace:=by |
| 118 | let L:=fderiv ℝ (burn p R U) 0; unfold aroma ashore; rw [map_sub,map_smul,smul_eq_mul, show fderiv ℝ _ _ (shoreX p R μ Y U)=(B*_).trace from trap_pay B L.toLinearMap (refrain Y U), show fderiv ℝ _ _ (shoreZ p R μ Y U)=(J*Pᵀ*(V+Vᵀ)*B*tuneM p R U).trace from trap_pay _ L.toLinearMap (jeps U)]; congr 1 |
| 119 | rw [mul_comm]; exact mul_one_div .. |
| 120 | have hz: Hᵀ=H:= damage_symm _ (burn_cov U h) |
| 121 | have hw: Bᵀ=B:=by unfold B shellB; rw[Matrix.transpose_nonsing_inv, show (stock p R μ U)ᵀ=stock p R μ U from ?_]; unfold stock; simp only [transpose_add,transpose_mul,transpose_transpose, transpose_smul,transpose_one]; rw [show (flare p R U)ᵀ= _ from hz] |
| 122 | have hh': Jᵀ=J:=by unfold J shellG; rw [Matrix.transpose_nonsing_inv]; congr 1; unfold ammo tonic; simp |
| 123 | rw [hx,solo U h hY,rhyme U h hμ he]; change (B * _).trace/2-V.trace = ((B*directionM (fun s=> stock p R μ (W s)) 0 1).trace/2-(J*directionM (fun s=>ammo μ (W s)) 0 1).trace) - μ^2 * _ + _; rw[hp,hq] |
| 124 | exact stag H V P _ (μ^2) _ _ (A:=stock p R μ U) (G:=ammo μ U) (hum U h) rfl rfl (Matrix.nonsing_inv_mul _ he.isUnit) (Matrix.mul_nonsing_inv _ (ammo_safe U hμ).det_pos.ne'.isUnit) hz hw hh' |
| 125 | end YM.Trace.Det |