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.QUARTIC_MATCH.Radius.Display |
| 2 | import YM.AnalyticNext.QUARTIC_MATCH.Radius.Theme |
| 3 | |
| 4 | /-! |
| 5 | # Costs on those true minimizing patches |
| 6 | -/ |
| 7 | set_option autoImplicit false |
| 8 | noncomputable section |
| 9 | namespace YM.AnalyticNext.QuarticMatch.Radius |
| 10 | open Filter Function Lattice Laurent Matrix Hessian Analysis RG Precision Exterior Bid Wilson |
| 11 | open Progress.StationaryScenes Work.F03 YM.Next.Free Tree Joint Local Local.Wages Polish Fetch Sheets |
| 12 | open scoped Topology Matrix.Norms.Frobenius ContDiff BigOperators InnerProductSpace |
| 13 | |
| 14 | namespace Articles |
| 15 | open Model |
| 16 | section overview |
| 17 | variable {G : Gauge} {c f : Side} (S : StepData c f) |
| 18 | def noise (u : S.Choices) (e : Edge (Site c)) (x : G.Color × Dir G f) := |
| 19 | S.kernel.penalty * G.price (G.lieExp x.1 * (S.prediction (represent x.2) u e)⁻¹) |
| 20 | lemma noise_smooth (u : S.Choices) (e : Edge (Site c)) (h : S.patch.Branches S.kernel G) : |
| 21 | ContDiffAt ℝ ω (noise S u e (G:=G)) 0 := by |
| 22 | unfold noise; refine ContDiffAt.mul contDiffAt_const ?_ |
| 23 | apply price_smooth (A := fun x : G.Color × Dir G f=> G.lieExp x.1 * (S.prediction (represent x.2) u e)⁻¹) |
| 24 | have he : ContDiffAt ℝ ω (fun z : G.Color × Dir G f=> G.mat (S.prediction (represent z.2) u e)) 0 := |
| 25 | (Push.prediction_cont S h e u).comp (f:=Prod.snd) (0:G.Color × Dir G f) contDiffAt_snd |
| 26 | simp_rw [G.mat_mul,G.mat_inv]; exact (G.exp_jet.contDiffAt.comp (f:=Prod.fst) _ contDiffAt_fst).mul |
| 27 | ((show G.Mat ≃L[ℝ] G.Mat from starL ℝ).contDiff.contDiffAt.comp _ he) |
| 28 | end overview |
| 29 | |
| 30 | variable {G : Gauge} {c f : Side} |
| 31 | structure Fine (G : Gauge) (S : StepData c f) where |
| 32 | b : ℝ |
| 33 | pos : 0<b |
| 34 | cap : b<1 |
| 35 | tag : S.Choices |
| 36 | offers (x : Dir G f) : ‖x‖≤ b → (∀ z,S.patch.usesMin S.kernel (Push.product S z x)) ∧ |
| 37 | ∀ i : Axis,S.patch.usesBest S.kernel (S.connector (represent x) tag.1 (0,i)) |
| 38 | jet (x : G.Color × Dir G f) : ‖x‖≤b → ∀ i : Axis, ContDiffAt ℝ ω (noise S tag (0,i) (G:=G)) x |
| 39 | norms : ℕ→Axis→ ℝ |
| 40 | cost (k : ℕ) (i : Axis) (x : G.Color × Dir G f) : ‖x‖≤b → ‖iteratedFDeriv ℝ k (noise S tag (0,i) (G:=G)) x‖ ≤ norms k i |
| 41 | priced k i : 1≤ norms k i |
| 42 | |
| 43 | abbrev Sheds (G : Gauge) (P : Patch) (K : KernelChoices) := Fine G (stepAt P K (marker P)) |
| 44 | section |
| 45 | variable (S : StepData c f) |
| 46 | def sets (tag : S.Choices) (h : S.patch.Branches S.kernel G) : Fine G S := Classical.choice (by |
| 47 | have hl : ∀ᶠ x : Dir G f in 𝓝 0,(∀ z,S.patch.usesMin S.kernel (Push.product S z x)) ∧ |
| 48 | ∀ i : Axis,S.patch.usesBest S.kernel (S.connector (represent x) tag.1 (0,i)) := |
| 49 | (eventually_all.mpr (fun p => Push.threshold S p)).and (eventually_all.mpr (fun (i : Axis) => eventually_best (S:=S) h tag.1 (0,i))) |
| 50 | obtain ⟨b,hb,hh⟩ := room hl |
| 51 | obtain ⟨d,hd,hg⟩ := room (show ∀ᶠ x in 𝓝 0,∀ i : Axis, ContDiffAt ℝ ω (noise S tag (0,i) (G:=G)) x from |
| 52 | eventually_all.mpr fun i => (noise_smooth S tag (0,i) h).eventually (by simp)) |
| 53 | let c := min (1/2:ℝ) (min b d) |
| 54 | have hc : c ≤ b := (min_le_right ..).trans (min_le_left ..); have hv : c ≤ d := (min_le_right ..).trans (min_le_right ..) |
| 55 | choose F hF hx using fun k i=> ceilingD _ c (fun x h => hg x (h.trans hv) i) k |
| 56 | exact ⟨c,lt_min (by norm_num) (lt_min hb hd),lt_of_le_of_lt (min_le_left ..) (by norm_num),tag, |
| 57 | fun x h => hh x (h.trans hc),fun x h=> hg x (h.trans hv),F,hx,hF⟩) |
| 58 | end |
| 59 | |
| 60 | section prediction |
| 61 | open Showroom |
| 62 | variable {c f : Side} {G : Gauge} (S : StepData c f) (hk : S.patch.Branches S.kernel G) (θ : S.Choices) |
| 63 | variable (P : Sheds G S.patch S.kernel) |
| 64 | include hk |
| 65 | theorem issued (e : Edge (Site c)) (x : G.Color × Dir G f) (h : ‖x.2‖ ≤ P.b) : |
| 66 | S.patch.usesMin S.kernel (Push.product S e.1 x.2) ∧ S.patch.usesBest S.kernel (S.connector (represent x.2) θ.1 e) ∧ |
| 67 | noise S θ e x=noise (stepAt S.patch S.kernel (marker S.patch)) P.tag (stamp S.patch e.2) (x.1,pick S e.1 x.2) := by |
| 68 | have hp := P.offers _ ((fits_token S e.1 x.2).trans h) |
| 69 | have ht := hp.2 e.2 |
| 70 | obtain ⟨hx,hq⟩ := compiles S θ hk e x.2 P.tag hp.1 |
| 71 | have he := hq.symm ▸ ht |
| 72 | refine ⟨hx,he,?_⟩ |
| 73 | unfold noise StepData.prediction Patch.predict |
| 74 | rw [if_pos he,hq]; congr 3 |
| 75 | dsimp only; rw [if_pos ht] |
| 76 | variable (H : Forest S.ratio) (p : Clip) (W : PathData G) |
| 77 | omit hk in |
| 78 | def relates (e : Edge (Site c)) (x : ChartVars H G) := noise (stepAt S.patch S.kernel (marker S.patch)) P.tag (stamp _ e.2) |
| 79 | (x.1 (e.1,coord e.2),pick S e.1 (axisLog H x)) |
| 80 | |
| 81 | variable {r : ℝ} (U : Shelf G r P.b) {x : ChartVars H G} (he : ‖x‖ < min P.b r) |
| 82 | include U he |
| 83 | lemma enforces (e : Edge (Site c)) : S.patch.usesMin S.kernel (expandAt (S.ratio.embed e.1) (live H x)) ∧ |
| 84 | S.patch.usesBest S.kernel (S.connector (live H x) θ.1 e) ∧ |
| 85 | relates S P H e x = S.kernel.penalty * G.price (represent x.1 e*(S.prediction (live H x) θ e)⁻¹) := by |
| 86 | have hz := he.le.trans (min_le_right ..) |
| 87 | rw [represent_link,← Showroom.makes S H U hz] |
| 88 | obtain ⟨hx,hH,hv⟩ := issued S hk θ P e (x.1 (e.1,coord e.2),axisLog H x) (Showroom.inside S H U hz) |
| 89 | exact ⟨hx,hH,hv.symm⟩ |
| 90 | |
| 91 | section insert |
| 92 | omit hk he U |
| 93 | lemma costOf {Q : Type*} [NormedAddCommGroup Q] (B : Dir G f→Q) |
| 94 | {r b : ℝ} (U : Shelf G r b) (x : ChartVars H G) (e : Edge (Site c)) (he : ‖x‖ ≤ min b r) (h : ∀ y, ‖B y‖ ≤ ‖y‖) : ‖(x.1 (e.1,coord e.2), B (axisLog H x))‖ ≤ b := by |
| 95 | exact max_le (((norm_le_pi_norm x.1 (e.1,coord e.2)).trans ((show ‖x.1‖ ≤ ‖x‖ from le_max_left ..).trans (he.trans (min_le_left ..))))) ((h (axisLog H x)).trans |
| 96 | (Showroom.inside S H U (he.trans (min_le_right ..)))) |
| 97 | end insert |
| 98 | omit hk he in |
| 99 | lemma copays (x : ChartVars H G) (e : Edge (Site c)) (he : ‖x‖ ≤ min P.b r) : ‖(x.1 (e.1,coord e.2),pick S e.1 (axisLog H x))‖ ≤ P.b := |
| 100 | costOf S H (pick S e.1) U x e he (fits_token S e.1) |
| 101 | |
| 102 | omit hk he U in |
| 103 | def rises (_P : Sheds G S.patch S.kernel) (e : Edge (Site c)) (x : ChartVars H G) : G.Color × Dir G (native S.patch) := |
| 104 | (x.1 (e.1,coord e.2),pick S e.1 (axisLog H x)) |
| 105 | omit hk in |
| 106 | lemma rose (e : Edge (Site c)) : ContDiffAt ℝ ω (rises S H P e) x := |
| 107 | ((contDiffAt_apply ℝ G.Color (e.1,coord e.2) x.1).comp (f:=Prod.fst) x contDiffAt_fst).prodMk ((pick S e.1).contDiff.contDiffAt.comp _ |
| 108 | (Showroom.priced S H U (he.le.trans (min_le_right ..)))) |
| 109 | omit hk in |
| 110 | lemma bright (e : Edge (Site c)) : ContDiffAt ℝ ω (relates S P H e) x := |
| 111 | (P.jet _ (copays S P H U x e he.le) e.2).comp (f:=rises S H P e) _ (rose S P H U he _) |
| 112 | |
| 113 | omit he hk U in |
| 114 | def tab {G : Gauge} {P : Patch} {K : KernelChoices} {r : ℝ} (B : Sheds G P K) (U : Shelf G r B.b) (t : ℝ) (n : ℕ) := |
| 115 | max 1 (Real.exp (n*t*capacity P)*fetch U P.L t n) |
| 116 | |
| 117 | omit hk in |
| 118 | lemma grant (e : Edge (Site c)) (t : ℝ) (hp : 0 ≤ t) (k : ℕ) (h₀ : 0 < k) {Q : Type*} [NormedAddCommGroup Q] [NormedSpace ℝ Q] |
| 119 | (B : Dir G f →L[ℝ] Q) (hB : ∀ x C, trials G (k*t) (S.ratio.embed e.1) x C → 0 ≤ C → ‖B x‖ ≤ Real.exp (k*t*capacity S.patch)*C) : |
| 120 | Costs (On S H G t (S.ratio.embed e.1)) (budget _) (fun x : ChartVars H G=>(x.1 (e.1,coord e.2), B (axisLog H x))) x k (tab P U t k) := by |
| 121 | let A : ChartVars H G →L[ℝ] G.Color := (ContinuousLinearMap.proj (R:=ℝ) (e.1,coord e.2)).comp (ContinuousLinearMap.fst ..) |
| 122 | let i := S.ratio.embed e.1 |
| 123 | let f : ChartVars H G → Q := B ∘ axisLog H |
| 124 | have hg : ContDiffAt ℝ ω (axisLog H (G:=G)) x := Showroom.priced S H U (he.le.trans (min_le_right ..)) |
| 125 | have hF : Costs (On S H G t i) (budget _) f x k (Real.exp (k*t*capacity S.patch)*fetch U S.patch.L t k) := by |
| 126 | intro d b hx; have ht := Finset.prod_nonneg (s:=Finset.univ) (fun j _ => (hx j).1) |
| 127 | have hh := rapid S H U (he.le.trans (min_le_right ..)) i k t hp d b hx |
| 128 | unfold f; rw [B.iteratedFDeriv_comp_left hg le_top,mul_assoc (Real.exp _)] |
| 129 | exact hB (iteratedFDeriv ℝ k (axisLog H) x d) _ hh |
| 130 | (mul_nonneg (fetch_pos U _ _ _) ht) |
| 131 | have he : Costs (On S H G t i) (budget _) (⇑A) x k 1 := by |
| 132 | refine ordinary A (fun v a ha hh => ?_) zero_le_one k h₀ |
| 133 | have hv := hh.1 (e.1,coord e.2) |
| 134 | change ‖v.1 (e.1,coord e.2)‖ ≤ 1*a; simpa only [i,Function.comp_apply, Green.wt,separation_self,Nat.cast_zero,mul_zero,Real.exp_zero,mul_one,one_mul] using hv |
| 135 | exact paired A.contDiff.contDiffAt (B.contDiff.contDiffAt.comp _ hg) (he.less (le_max_left ..)) (hF.less (le_max_right ..)) |
| 136 | |
| 137 | omit hk in |
| 138 | set_option maxHeartbeats 800000 in |
| 139 | lemma fast (e : Edge (Site c)) (t : ℝ) (hp : 0 ≤ t) (k : ℕ) (h₀ : 0 < k) : Costs (On S H G t (S.ratio.embed e.1)) (budget _) (rises S H P e) x k (tab P U t k) := |
| 140 | grant S P H U he e t hp k h₀ (pick S e.1) (fun x C hh hC => Model.token S e.1 x _ C hh (mul_nonneg (by positivity) hp) hC) |
| 141 | end prediction |
| 142 | end Articles |
| 143 | end YM.AnalyticNext.QuarticMatch.Radius |