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.Work.F05.Actions |
| 2 | import YM.Work.F05.Calculus |
| 3 | import YM.Work.F05.Reindex |
| 4 | |
| 5 | |
| 6 | |
| 7 | /-! |
| 8 | # Identifying the stationary graphs (per fixed tag), additive Hessian |
| 9 | |
| 10 | The chart change has two purposes: identification of real tested germs, |
| 11 | and calculation of the *additive* Hessian determinant. No measure change |
| 12 | has yet been put into the latter calculation. |
| 13 | -/ |
| 14 | set_option autoImplicit false |
| 15 | noncomputable section |
| 16 | namespace YM.Work.F05 |
| 17 | open Function Filter Lattice Wilson RG Precision Exterior Tree Matrix |
| 18 | open scoped Topology ContDiff Matrix.Norms.Frobenius BigOperators |
| 19 | variable {c f : Side} {G : Gauge} {S : StepData c f} |
| 20 | {B T : Forest S.ratio} {p : Clip} {W : PathData G} |
| 21 | {ρ : Bid.Dir G c → AxisChart G B} {u : Bid.Dir G c → AxisChart G T} |
| 22 | {σ C Λ a b : ℝ} |
| 23 | |
| 24 | lemma crit_home (hB : Critical B p W ρ) : Tendsto (fun x => (x,ρ x)) (𝓝 0) (𝓝 0) := by |
| 25 | have hi := hB.2.1.continuousAt.tendsto |
| 26 | rw [hB.1] at hi |
| 27 | exact tendsto_id.prodMk_nhds hi |
| 28 | |
| 29 | lemma tested_diag (ha : 0<a) (h : PriceGap B p W a) (r : S.Choices) |
| 30 | (y : AxisChart G B) (hy : y≠0) : 0 < bend (tested B r p W 0) 0 y y := by |
| 31 | rw [bend_apply] |
| 32 | refine lt_of_lt_of_le (mul_pos ha ?_) (h r y) |
| 33 | obtain ⟨i,hi⟩ : ∃ i, y i≠0 := by simpa only [Ne,funext_iff,Pi.zero_apply,not_forall] using hy |
| 34 | exact Finset.sum_pos' (fun i _ => by positivity) |
| 35 | ⟨i,Finset.mem_univ _, pow_pos (norm_pos_iff.mpr hi) _⟩ |
| 36 | |
| 37 | lemma graph_switch (hs : S.patch.Branches S.kernel G) (h : W.Bounds p σ C Λ) |
| 38 | (hB : Critical B p W ρ) (hT : Critical T p W u) (hb : 0<b) (hQ : PriceGap T p W b) |
| 39 | (r : S.Choices) : (fun x => switch B T x (ρ x)) =ᶠ[𝓝 0] u := by |
| 40 | let w (x : Bid.Dir G c) := switch B T x (ρ x) |
| 41 | have hd := (switch_jet B T (G:=G)).continuousAt.tendsto |
| 42 | change Tendsto (uncurry (switch B T (G:=G))) (𝓝 0) (𝓝 (switch B T (G:=G) 0 0)) at hd |
| 43 | rw [switch_zero B T] at hd |
| 44 | have hw : Tendsto w (𝓝 0) (𝓝 0) := by |
| 45 | change Tendsto ((uncurry (switch B T)) ∘ (fun x => (x,ρ x))) (𝓝 0) (𝓝 0) |
| 46 | exact hd.comp (crit_home hB) |
| 47 | have ht : Tendsto (fun x => (x,w x)) (𝓝 0) (𝓝 0) := tendsto_id.prodMk_nhds hw |
| 48 | obtain ⟨hc,hv⟩ := hT.2.2 r |
| 49 | have hg (y : AxisChart G T) : bend (tested T r p W 0) 0 y y = 0 → y = 0 := |
| 50 | fun hh => by |
| 51 | by_contra he |
| 52 | exact (tested_diag hb hQ r y he).ne' hh |
| 53 | have hu : Tendsto u (𝓝 0) (𝓝 0) := by |
| 54 | have hi := hT.2.1.continuousAt.tendsto |
| 55 | rwa [hT.1] at hi |
| 56 | refine station_unique (F:=tested T r p W) hc hg hw hu ?_ (hv.mono (fun _ hi => hi.fderiv)) |
| 57 | -- For the switched point use the equation of B in a T-coordinate |
| 58 | -- neighborhood via the inverse switch (holding x fixed). |
| 59 | filter_upwards [(crit_home hB).eventually (switch_switch B T), |
| 60 | ht.eventually ((switch_jet T B).eventually (by simp)), |
| 61 | ht.eventually (eventually_eventually_nhds.mpr (tested_switch T B hs h r)), hB.2.2 r |>.2] |
| 62 | with x he hJet heq hRate |
| 63 | have hy : switch T B x (w x) = ρ x := he |
| 64 | have HE : tested T r p W x =ᶠ[𝓝 (w x)] tested B r p W x ∘ switch T B x := hold_near heq |
| 65 | have hr : HasFDerivAt (tested B r p W x) 0 (switch T B x (w x)) := hy.symm ▸ hRate |
| 66 | rw [HE.fderiv_eq, (hr.comp (w x) |
| 67 | ((hold_jet hJet).differentiableAt (by simp)).hasFDerivAt).fderiv, ContinuousLinearMap.zero_comp] |
| 68 | |
| 69 | lemma hessian_eq (B : Forest S.ratio) (r : S.Choices) (p : Clip) (W : PathData G) |
| 70 | (x : Bid.Dir G c) (y : AxisChart G B) : hessian B r p W x y = LinearMap.toMatrix₂ |
| 71 | (countingBasis B G) (countingBasis B G) (bend (tested B r p W x) y) := by |
| 72 | ext i j |
| 73 | simp only [LinearMap.toMatrix₂_apply, countingBasis_apply, bend_apply]; rfl |
| 74 | |
| 75 | lemma hessian_pos (ha : 0 < a) (hQ : PriceGap B p W a) (hB : Critical B p W ρ) (r : S.Choices) : |
| 76 | ∀ᶠ x in 𝓝 0, 0 < (hessian B r p W x (ρ x)).det := by |
| 77 | simp_rw [hessian_eq] |
| 78 | exact (crit_home hB).eventually |
| 79 | (bend_det_pos (countingBasis B G) (hB.2.2 r |>.1) (tested_diag ha hQ r)) |
| 80 | |
| 81 | private lemma hessian_transition (e : B.Free ≃ T.Free) (r : S.Choices) (p : Clip) (W : PathData G) |
| 82 | (x : Bid.Dir G c) (y : AxisChart G B) |
| 83 | (hp : tested B r p W x =ᶠ[𝓝 y] tested T r p W x ∘ switch B T x) |
| 84 | (hg : ContDiffAt ℝ ω (move e x) y) |
| 85 | (ht : ContDiffAt ℝ ω (tested T r p W x) (switch B T x y)) |
| 86 | (hs : fderiv ℝ (tested T r p W x) (switch B T x y) = 0) : |
| 87 | (hessian B r p W x y).det = (fderiv ℝ (move e x) y).det ^ 2 * |
| 88 | (hessian T r p W x (switch B T x y)).det := by |
| 89 | let F := tested T r p W x |
| 90 | let R := move e x |
| 91 | let L : AxisChart G B ≃L[ℝ] AxisChart G T := index e |
| 92 | let V := bend F (switch B T x y) |
| 93 | let P := V.compl₁₂ L.toLinearEquiv.toLinearMap L.toLinearEquiv.toLinearMap |
| 94 | let D := fderiv ℝ R y |
| 95 | have hD : fderiv ℝ (switch B T x) y = L.toContinuousLinearMap.comp D := by |
| 96 | have he : switch B T x = L ∘ R := move_eq e x |
| 97 | rw [he, (L.hasFDerivAt.comp _ ((hg.differentiableAt (by simp)).hasFDerivAt)).fderiv] |
| 98 | have hu : ContDiffAt ℝ ω (switch B T x) y := by |
| 99 | rw [move_eq e x]; exact L.contDiff.contDiffAt.comp _ hg |
| 100 | have hV : bend (tested B r p W x) y = P.compl₁₂ D.toLinearMap D.toLinearMap := by |
| 101 | rw [bend_congr hp, bend_comp_stationary ht hu hs, hD]; rfl |
| 102 | let b := countingBasis B G |
| 103 | have hw : LinearMap.toMatrix₂ b b P = |
| 104 | (hessian T r p W x (switch B T x y)).submatrix (onKey e) (onKey e) := by |
| 105 | ext i j |
| 106 | simp only [LinearMap.toMatrix₂_apply, submatrix_apply, hessian_eq, b, countingBasis_apply] |
| 107 | change V (index e (frame B i)) (index e (frame B j)) = _ |
| 108 | rw [index_frame,index_frame] |
| 109 | rw [hessian_eq, hV, LinearMap.toMatrix₂_compl₁₂ b b] |
| 110 | rw [Matrix.det_mul, Matrix.det_mul, det_transpose, ← show b=countingBasis B G from rfl, |
| 111 | LinearMap.det_toMatrix, hw, det_submatrix_equiv_self] |
| 112 | change D.toLinearMap.det * _ * D.toLinearMap.det = D.toLinearMap.det ^ 2 * _ |
| 113 | ring |
| 114 | |
| 115 | /-- Counting determinant relation on shell. In both spaces we use the |
| 116 | prescribed counting matrix, and the Jacobian is of the map with common |
| 117 | additive coordinates (not Haar Jacobian). -/ |
| 118 | lemma hessian_ratio (hs : S.patch.Branches S.kernel G) (h : W.Bounds p σ C Λ) |
| 119 | (hB : Critical B p W ρ) (hT : Critical T p W u) (e : B.Free ≃ T.Free) |
| 120 | (hx : (fun x => switch B T x (ρ x)) =ᶠ[𝓝 0] u) (r : S.Choices) : |
| 121 | ∀ᶠ x in 𝓝 0, (hessian B r p W x (ρ x)).det = |
| 122 | (fderiv ℝ (move e x) (ρ x)).det ^ 2 * (hessian T r p W x (u x)).det := by |
| 123 | obtain ⟨hp,hu⟩ := hT.2.2 r |
| 124 | filter_upwards [hx,hu,(crit_home hB).eventually |
| 125 | (eventually_eventually_nhds.mpr (tested_switch B T hs h r)), |
| 126 | (crit_home hB).eventually ((move_jet e).eventually (by simp)), |
| 127 | (crit_home hT).eventually (hp.eventually (by simp))] with x hk hr hj hh hl |
| 128 | change switch B T x (ρ x)=u x at hk |
| 129 | rw [← hk] |
| 130 | exact hessian_transition e r p W x (ρ x) (hold_near hj) (hold_jet hh) |
| 131 | (hk.symm ▸ hold_jet hl) (hk.symm ▸ hr.fderiv) |
| 132 | end YM.Work.F05 |