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.Progress.DIRECTED_RECIPE.Economy |
| 2 | import YM.Push.STRESS_FLUX.Color |
| 3 | import YM.UVNext.COUPLING_RESET.Reset |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | /-! |
| 9 | # Hessians of regular pre-mask coefficients at the flat field |
| 10 | |
| 11 | Constant color invariance kills its gradient at 1; |
| 12 | local gauge then kills a gradient of a Lie site field in either Hessian |
| 13 | slot. |
| 14 | |
| 15 | No continuity or polynomial approximation of a hard mask used. |
| 16 | -/ |
| 17 | set_option autoImplicit false |
| 18 | noncomputable section |
| 19 | namespace YM.AnalyticBridge.VerifiedReset |
| 20 | open Function Filter Set Lattice Wilson RG |
| 21 | open scoped Topology Matrix.Norms.Frobenius ContDiff BigOperators |
| 22 | |
| 23 | variable {G : Gauge} {n : Side} {p : BudgetPoint} {X : Support n} |
| 24 | abbrev Pot (G : Gauge) (n : Side) := Config G n → ℝ |
| 25 | abbrev Dir (G : Gauge) (n : Side) := Directions G n |
| 26 | |
| 27 | lemma at_zero (U : Config G n) : increment U 0 = U := Work.G07.at_zero_increment _ |
| 28 | |
| 29 | lemma flat_ok (p : BudgetPoint) (X : Support n) : Healthy p.threshold X (1 : Config G n) := by |
| 30 | simp only [Healthy,UVNext.CouplingReset.flags_one]; exact Finset.disjoint_empty_right _ |
| 31 | |
| 32 | abbrev germ (f : Pot G n) := f ∘ increment 1 |
| 33 | lemma germ_diff {f : Pot G n} (h : p.Regular X f) : ContDiffAt ℝ 2 (germ f) 0 := |
| 34 | (h.smooth 1 (flat_ok p X)).of_le (show (2 : WithTop ℕ∞) ≤ p.order by |
| 35 | exact_mod_cast ((by decide : 2 ≤ 6).trans p.order_ge)) |
| 36 | |
| 37 | def colorMove (k : G.El) : Dir G n →L[ℝ] Dir G n := |
| 38 | ContinuousLinearMap.pi (fun i => (G.adjoint k).toContinuousLinearMap ∘L ContinuousLinearMap.proj (R:=ℝ) i) |
| 39 | lemma exp_move (k : G.El) (u : Dir G n) : increment 1 (colorMove k u) = gauge (fun _ => k) (increment 1 u) := by |
| 40 | funext e |
| 41 | change G.lieExp (G.adjoint k (u e)) * 1 = k * (G.lieExp (u e) * 1) * k⁻¹ |
| 42 | rw [mul_one,mul_one] |
| 43 | apply G.mat_injective; simp [Gauge.mat_lieExp,G.mat_adjoint,G.exp_conjugate]; rfl |
| 44 | |
| 45 | private def edgeLane (e : Edge (Site n)) : G.Color →ₗ[ℝ] Dir G n := LinearMap.single ℝ (fun _ => G.Color) e |
| 46 | |
| 47 | set_option maxHeartbeats 800000 in |
| 48 | lemma flat_critical (hG : G.Simple) {f : Pot G n} (h : p.Regular X f) : fderiv ℝ (germ f) 0 = 0 := by |
| 49 | let F := germ f |
| 50 | have he (k : G.El) : F ∘ colorMove k = F := funext fun u => by simpa only [comp_apply, exp_move,F,germ] using h.symmetry (fun _ => k) (increment 1 u) |
| 51 | have hI (k : G.El) (u : Dir G n) : fderiv ℝ F 0 (colorMove k u) = fderiv ℝ F 0 u := by |
| 52 | let a := colorMove (n:=n) k |
| 53 | have hh : DifferentiableAt ℝ F (a 0) := (a.map_zero.symm ▸ (germ_diff h).differentiableAt (by decide)) |
| 54 | have hD := ((hh.hasFDerivAt.comp 0 a.hasFDerivAt).fderiv) |
| 55 | rw [he k, a.map_zero] at hD |
| 56 | exact (congr($hD u)).symm |
| 57 | have hz (e : Edge (Site n)) (c : G.Color) : fderiv ℝ F 0 (edgeLane e c) = 0 := by |
| 58 | let L := (fderiv ℝ F 0).toLinearMap ∘ₗ edgeLane (G:=G) e |
| 59 | have hl (k : G.El) (w : G.Color) : colorMove k (edgeLane e w) = edgeLane e (G.adjoint k w) := by |
| 60 | funext i |
| 61 | change G.adjoint k (Pi.single (M:=fun _ => G.Color) e w i) = Pi.single (M:=fun _ => G.Color) e (G.adjoint k w) i |
| 62 | by_cases hi : i = e |
| 63 | · subst i; simp |
| 64 | simp [Pi.single_eq_of_ne hi] |
| 65 | exact LinearMap.congr_fun (StressFlux.linear_invariant hG L fun k w => by |
| 66 | change fderiv ℝ F 0 (edgeLane e _) = _; rw [← hl k w,hI]; rfl) c |
| 67 | refine ContinuousLinearMap.ext fun u => ?_ |
| 68 | have hl : (∑ i : Edge (Site n), edgeLane i (u i)) = u := by |
| 69 | funext j; simp [edgeLane, Finset.sum_apply,Pi.single_apply] |
| 70 | change fderiv ℝ F 0 u = 0 |
| 71 | rw [← hl, map_sum]; simp [hz] |
| 72 | |
| 73 | lemma hessian_eq (f : Pot G n) (u v : Dir G n) : logHessian f u v = fderiv ℝ (fderiv ℝ (germ f)) 0 u v := by |
| 74 | exact iteratedFDeriv_two_apply .. |
| 75 | |
| 76 | lemma hessian_color (hG : G.Simple) {f : Pot G n} (h : p.Regular X f) (k : G.El) (u v : Dir G n) : |
| 77 | logHessian f (colorMove k u) (colorMove k v) = logHessian f u v := by |
| 78 | let a := colorMove (n:=n) k |
| 79 | have he : germ f ∘ a = germ f := by |
| 80 | ext w; change f (increment 1 (colorMove k w)) = _; rw [exp_move,h.symmetry] |
| 81 | rfl |
| 82 | have ht := (Work.F03.hessian_comp a.map_zero (germ_diff h) a.contDiff.contDiffAt (flat_critical hG h)).2 u v |
| 83 | rw [he,a.fderiv] at ht |
| 84 | exact ht.symm |
| 85 | |
| 86 | def gradient (s : Site n → G.Color) : Dir G n := fun e => s (e.1 + step e.2) - s e.1 |
| 87 | |
| 88 | section GaugeChart |
| 89 | variable (s : Site n → G.Color) |
| 90 | private def twist (q : Dir G n × ℝ) := gauge (fun i => G.lieExp (-(q.2 • s i))) (increment 1 q.1) |
| 91 | private def chart (q : Dir G n × ℝ) : Dir G n := fun e => G.plog (G.mat (twist s q e)) |
| 92 | private lemma twist_zero : twist s 0 = 1 := by funext i; simp [twist,Lattice.gauge,increment] |
| 93 | private lemma twist_jet (e : Edge (Site n)) : ContDiff ℝ ω fun q => G.mat (twist s q e) := by |
| 94 | simp only [twist,Lattice.gauge,increment,G.mat_mul,G.mat_inv,Pi.one_apply,mul_one] |
| 95 | have h (x : Site n) : ContDiff ℝ ω fun q : Dir G n × ℝ => G.mat (G.lieExp (-(q.2 • s x))) := G.exp_jet.comp (f:=fun q : Dir G n × ℝ => -(q.2 • s x)) (by fun_prop) |
| 96 | exact ((h e.1).mul (G.exp_jet.comp ((contDiff_apply ..).comp contDiff_fst))).mul ((starL' ℝ).contDiff.comp (h _)) |
| 97 | private lemma chart_zero : chart s 0 = 0 := by funext i; simp [chart,twist_zero] |
| 98 | private lemma chart_jet : ContDiffAt ℝ 2 (chart s) 0 := contDiffAt_pi.mpr fun e => by |
| 99 | let v q := G.mat (twist s q e); have hz : v 0 = 1 := by simp [v, twist_zero] |
| 100 | exact (ContDiffAt.comp (f:=v) (g:=G.plog) 0 (hz.symm ▸ (G.plog_diff.of_le (m:=2) le_top)) ((twist_jet s e).contDiffAt.of_le le_top)) |
| 101 | private lemma recovered : (increment 1) ∘ chart s =ᶠ[𝓝 0] twist s := by |
| 102 | have he (i : Edge (Site n)) : Tendsto (fun q => twist s q i) (𝓝 0) (𝓝 1) := by |
| 103 | rw [← (show twist s 0 i = 1 by simp [twist_zero])] |
| 104 | exact ((G.continuous_mat.isClosedEmbedding G.mat_injective).isEmbedding.isInducing.tendsto_nhds_iff.mpr |
| 105 | ((twist_jet s i).continuous.tendsto _)) |
| 106 | filter_upwards [eventually_all.mpr fun i => (he i).eventually G.plog_right] with q hq |
| 107 | funext e; change G.lieExp _ * 1 = twist s q e; rw [mul_one]; exact hq e |
| 108 | private lemma chart_line (q : Dir G n × ℝ) : fderiv ℝ (chart s) 0 q = q.1 + q.2 • gradient s := by |
| 109 | funext i |
| 110 | let pr := ContinuousLinearMap.proj (R:=ℝ) (φ:=fun _ : Edge (Site n) => G.Color) i |
| 111 | have h0 : pr (chart s 0) = 0 := by rw [chart_zero, map_zero] |
| 112 | have ht := Gauge.expDiff_zero G |
| 113 | have he := ht.comp_hasDerivAt_of_eq 0 (pr.hasFDerivAt.comp_hasDerivAt 0 |
| 114 | (Push.side (chart s) ((chart_jet s).differentiableAt (by decide)) q)) (by simpa using h0.symm) |
| 115 | have hh : HasDerivAt (fun t : ℝ => G.mat (twist s (t • q) i)) (G.colorMat (fderiv ℝ (chart s) 0 q i)) 0 := by |
| 116 | refine he.congr_of_eventuallyEq ?_ |
| 117 | have hc : Tendsto (fun t : ℝ => t • q) (𝓝 0) (𝓝 0) := by simpa using! (continuous_id.smul continuous_const).tendsto' (0:ℝ) 0 (zero_smul ℝ q) |
| 118 | filter_upwards [hc.eventually (recovered s)] with t ht |
| 119 | congr 1 |
| 120 | exact (show G.lieExp _ * 1 = _ from congr_fun ht i) ▸ (mul_one _) |
| 121 | apply G.colorMat_injective |
| 122 | refine hh.unique ?_ |
| 123 | have hX (a : G.Color) : HasDerivAt (fun t : ℝ => G.mat (G.lieExp (t • a))) (G.colorMat a) 0 := by |
| 124 | have h := hasDerivAt_id' (0:ℝ) |>.smul_const a; simpa only [one_smul] using! ht.comp_hasDerivAt_of_eq 0 h (zero_smul ..).symm |
| 125 | have h := ((hX (-(q.2 • s i.1))).mul (hX (q.1 i))).mul (hX (-(q.2 • s (i.1 + step i.2)))).star |
| 126 | simp only [twist, Lattice.gauge, increment, Pi.one_apply,mul_one,G.mat_mul,G.mat_inv,Prod.smul_fst,Prod.smul_snd, |
| 127 | Pi.smul_apply,smul_eq_mul, ← smul_smul, ← smul_neg] |
| 128 | convert! h using 1 <;> simp [gradient,G.colorMat_skew,smul_sub] <;> abel |
| 129 | end GaugeChart |
| 130 | |
| 131 | lemma hessian_gradient (hG : G.Simple) {f : Pot G n} (h : p.Regular X f) (s : Site n → G.Color) (u : Dir G n) : |
| 132 | logHessian f (gradient s) u = 0 := by |
| 133 | let π := ContinuousLinearMap.fst ℝ (Dir G n) ℝ |
| 134 | let F := germ f |
| 135 | have hC := flat_critical hG h |
| 136 | have he : F ∘ chart s =ᶠ[𝓝 0] F ∘ π := by |
| 137 | filter_upwards [recovered s] with q hq |
| 138 | exact (congrArg f hq).trans (show f (twist s q) = f (increment 1 q.1) from h.symmetry ..) |
| 139 | let a : Dir G n × ℝ := (0,1); let b : Dir G n × ℝ := (u,0) |
| 140 | have hh := (Work.F03.hessian_comp (chart_zero s) (germ_diff h) (chart_jet s) hC).2 a b |
| 141 | have hi := (Work.F03.hessian_comp π.map_zero (germ_diff h) π.contDiff.contDiffAt hC).2 a b |
| 142 | rw [(he.iteratedFDeriv ℝ 2).self_of_nhds, hi, chart_line,chart_line,π.fderiv] at hh |
| 143 | simp only [a,b,π,ContinuousLinearMap.coe_fst', one_smul,zero_smul,zero_add,add_zero] at hh |
| 144 | exact hh.symm.trans (by simp [iteratedFDeriv_two_apply]) |
| 145 | |
| 146 | lemma hessian_diag (hG : G.Simple) {f : Pot G n} (h : p.Regular X f) (v : Dir G n) : |
| 147 | logHessian f v v = leftDerivs f [v,v] 1 := by |
| 148 | have ht := Work.F03.line_second (germ_diff h) (flat_critical hG h) v |
| 149 | have he := Next.Foundations.leftDerivs_diag 1 v f 2 0 |
| 150 | rw [zero_smul,at_zero] at he |
| 151 | exact ht.symm.trans he.symm |
| 152 | |
| 153 | lemma hessian_symm {f : Pot G n} (h : p.Regular X f) (v w : Dir G n) : logHessian f v w = logHessian f w v := |
| 154 | Work.F03.hessian_symmetric (germ_diff h) .. |
| 155 | |
| 156 | lemma hessian_agrees (hG : G.Simple) {f : Pot G n} (h : p.Regular X f) {a b c d : Dir G n} |
| 157 | (hab : Agrees X a b) (hcd : Agrees X c d) : logHessian f a c = logHessian f b d := by |
| 158 | have he {u v : Dir G n} (hv : Agrees X u v) : logHessian f u u = logHessian f v v := by |
| 159 | have ht := germ_diff h |
| 160 | have hg := flat_critical hG h |
| 161 | unfold logHessian |
| 162 | change iteratedFDeriv ℝ 2 (germ f) 0 _ = iteratedFDeriv ℝ 2 (germ f) 0 _ |
| 163 | rw [← Work.F03.line_second ht hg u, ← Work.F03.line_second ht hg v] |
| 164 | exact congrArg (iteratedDeriv 2 · 0) <| funext fun t => h.sites _ _ fun i hi hx => |
| 165 | congrArg (fun w => G.lieExp (t • w) * 1) (hv i hi hx) |
| 166 | have hh := he (show Agrees X (a+c) (b+d) from fun i hi hx => congrArg₂ (· + ·) (hab i hi hx) (hcd i hi hx)) |
| 167 | simp_rw [hessian_eq] at hh |
| 168 | simp only [map_add, add_apply] at hh |
| 169 | simp_rw [← hessian_eq] at hh; rw [he hab,he hcd,hessian_symm h c a,hessian_symm h d b] at hh |
| 170 | linarith only [hh] |
| 171 | end YM.AnalyticBridge.VerifiedReset |