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.Next.MAXWELL.Simple |
| 2 | import YM.ProjectorNext.PROJECTOR_EQUIVARIANCE.Links |
| 3 | import YM.Work.C01 |
| 4 | import YM.Work.F03.Calculus |
| 5 | |
| 6 | |
| 7 | |
| 8 | /-! |
| 9 | Gauge invariance of a local *unmasked* function. Gradients here really are |
| 10 | null directions of its log-coordinate Hessian; the first-jet step matters in |
| 11 | passing through changes of coordinates. No smoothness of a flag selector. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | noncomputable section |
| 16 | |
| 17 | namespace YM.AnalyticBridge.CouplingShape |
| 18 | open Function Filter Lattice Wilson RG Work ProjectorNext.Equivariance |
| 19 | open scoped Topology BigOperators Matrix.Norms.Frobenius ContDiff |
| 20 | |
| 21 | variable {G : Gauge} {n : Side} {X : Support n} {p : BudgetPoint} {f : Config G n → ℝ} |
| 22 | |
| 23 | lemma clear_one (p : BudgetPoint) (X : Support n) : Healthy (G:=G) p.threshold X 1 := by |
| 24 | refine Finset.disjoint_left.mpr fun _ _ hu => ?_ |
| 25 | obtain ⟨i,-,hv⟩ := (flags_spec ..).mp hu; simp [faceValue,square,travel] at hv |
| 26 | exact hv.not_ge p.threshold_pos.le |
| 27 | |
| 28 | lemma flat_C2 (h : p.Regular X f) : ContDiffAt ℝ 2 (f ∘ increment 1) 0 := by |
| 29 | apply (h.smooth 1 (clear_one ..)).of_le |
| 30 | exact Nat.cast_le.mpr (Nat.le_trans (by decide : 2 ≤ 6) p.order_ge) |
| 31 | |
| 32 | def globalAd (u : G.El) (A : Directions G n) : Directions G n := fun e => G.adjoint u (A e) |
| 33 | |
| 34 | lemma overall (u : G.El) (A : Directions G n) (t : ℝ) : |
| 35 | increment 1 (t • globalAd u A) = gauge (fun _ => u) (increment 1 (t • A)) := by |
| 36 | funext e |
| 37 | simp only [increment, Pi.smul_apply, Pi.one_apply, mul_one,Lattice.gauge,globalAd,←map_smul] |
| 38 | rw [exp_adjoint] |
| 39 | |
| 40 | |
| 41 | lemma no_current (hs : G.Simple) (h : p.Regular X f) : fderiv ℝ (f ∘ increment 1) 0 = 0 := by |
| 42 | let L := fderiv ℝ (f ∘ increment 1) 0 |
| 43 | have hL (A : Directions G n) : HasDerivAt (fun t : ℝ => f (increment 1 (t • A))) (L A) 0 := |
| 44 | Push.side _ ((flat_C2 h).differentiableAt (by simp)) A |
| 45 | have hu : GaugeInvariant f := h.symmetry |
| 46 | have hi (A : Directions G n) (u : G.El) : L (globalAd u A)=L A := by |
| 47 | have hz := hL (globalAd u A); simp_rw [overall,fun t : ℝ => hu (fun _ => u) (increment 1 (t • A))] at hz; exact hz.unique (hL A) |
| 48 | have single (A : Directions G n) (e : Edge (Site n)) : L (Pi.single e (A e))=0 := by |
| 49 | let v := L.toLinearMap ∘ₗ LinearMap.single ℝ (fun _ : Edge (Site n) => G.Color) e |
| 50 | have hv : Maxwell.Free.irreduc (G:=G) v := fun u x => by |
| 51 | change L (Pi.single e (G.adjoint u x)) = L (Pi.single e x) |
| 52 | nth_rw 2 [← hi _ u] |
| 53 | congr 1 |
| 54 | ext1 j; by_cases hj : j=e |
| 55 | · subst j; simp [globalAd] |
| 56 | simp [globalAd,hj] |
| 57 | change v (A e)=_ |
| 58 | rw [Maxwell.Free.singles_inv hs v hv]; rfl |
| 59 | ext1 A |
| 60 | change L A=0 |
| 61 | calc |
| 62 | _ = L (∑ e, Pi.single e (A e)) := by rw [Finset.univ_sum_single] |
| 63 | _ = 0 := by rw [map_sum]; exact Finset.sum_eq_zero fun e _ => single A e |
| 64 | |
| 65 | def H (f : Config G n → ℝ) : Directions G n →L[ℝ] Directions G n →L[ℝ] ℝ := fderiv ℝ (fderiv ℝ (f ∘ increment 1)) 0 |
| 66 | |
| 67 | lemma log_eq_H (f : Config G n → ℝ) (A B : Directions G n) : logHessian f A B=H f A B := by |
| 68 | simp only [logHessian,H,iteratedFDeriv_two_apply]; rfl |
| 69 | |
| 70 | lemma symmetric (h : p.Regular X f) (A B) : H f A B=H f B A := by |
| 71 | rw [← log_eq_H,← log_eq_H]; exact F03.hessian_symmetric (flat_C2 h) A B |
| 72 | |
| 73 | lemma diagonal (hs : G.Simple) (h : p.Regular X f) (A) : H f A A = iteratedDeriv 2 (fun t : ℝ => f (increment 1 (t • A))) 0 := by |
| 74 | rw [← log_eq_H]; exact (F03.line_second (flat_C2 h) (no_current hs h) A).symm |
| 75 | |
| 76 | /-- Adds in each slot of a symmetric bilinear; use on subfamilies of directions. -/ |
| 77 | lemma polar (h : p.Regular X f) (A B) : H f (A+B) (A+B)=H f A A+2*H f A B+H f B B := by |
| 78 | simp only [map_add, add_apply,symmetric h B A]; ring |
| 79 | |
| 80 | /-- Sign convention of `Lattice.gauge`. -/ |
| 81 | def slope (φ : Site n → G.Color) : Directions G n := fun e => φ e.1 - φ (e.1+step e.2) |
| 82 | |
| 83 | private def follow (A : Directions G n) (φ : Site n → G.Color) (t : ℝ) := gauge (fun x => G.lieExp (t • φ x)) (increment 1 (t • A)) |
| 84 | private def logFollow (A : Directions G n) (φ : Site n → G.Color) (t : ℝ) : Directions G n := fun e => G.plog (G.mat (follow A φ t e)) |
| 85 | |
| 86 | private lemma follow_zero (A : Directions G n) (φ : Site n → G.Color) (e) : follow A φ 0 e=1 := by simp [follow,Lattice.gauge,increment] |
| 87 | private lemma logFollow_zero (A : Directions G n) (φ : Site n → G.Color) : logFollow A φ 0=0 := by funext e; simp [logFollow,follow_zero] |
| 88 | |
| 89 | private lemma logFollow_diff (A : Directions G n) (φ : Site n → G.Color) : ContDiffAt ℝ ω (logFollow A φ) 0 := by |
| 90 | apply contDiffAt_pi.mpr; intro e |
| 91 | refine (show ContDiffAt ℝ ω G.plog (G.mat (follow A φ 0 e)) by rw [follow_zero,G.mat_one]; exact G.plog_diff).comp 0 ?_ |
| 92 | have he (a : G.Color) : ContDiff ℝ ω (fun t : ℝ => G.mat (G.lieExp (t • a))) := G.exp_jet.comp (contDiff_id.smul contDiff_const) |
| 93 | simp only [follow,Lattice.gauge,increment,Pi.one_apply,Pi.smul_apply,mul_one,G.mat_mul,G.mat_inv] |
| 94 | exact (((he _).mul (he _)).mul ((show G.Mat ≃L[ℝ] G.Mat from starL ℝ).contDiff.comp (he _))).contDiffAt |
| 95 | |
| 96 | private lemma handle (A : Directions G n) (φ : Site n → G.Color) : |
| 97 | (increment 1 ∘ logFollow A φ) =ᶠ[𝓝 0] follow A φ := by |
| 98 | have hh (e : Edge (Site n)) : ∀ᶠ t in 𝓝 0, G.lieExp (G.plog (G.mat (follow A φ t e)))=follow A φ t e := by |
| 99 | have hc : Continuous fun t : ℝ => follow A φ t e := by |
| 100 | simp only [follow,Lattice.gauge,increment,Pi.smul_apply]; fun_prop |
| 101 | apply (show Tendsto (fun t => follow A φ t e) (𝓝 0) (𝓝 1) from by simpa only [follow_zero] using hc.tendsto 0).eventually G.plog_right |
| 102 | filter_upwards [eventually_all.mpr hh] with t ht |
| 103 | exact funext fun e => by simpa only [increment, Function.comp_apply, Pi.one_apply,mul_one,logFollow] using ht e |
| 104 | |
| 105 | private lemma expLine (c : G.Color) : HasDerivAt (fun t : ℝ => G.mat (G.lieExp (t • c))) (G.colorMat c) 0 := by |
| 106 | have ht : HasDerivAt (fun t : ℝ => t • c) c 0 := by simpa using! (hasDerivAt_id' (0:ℝ)).smul_const c |
| 107 | exact G.expDiff_zero.comp_hasDerivAt_of_eq (0:ℝ) ht (by simp) |
| 108 | |
| 109 | private lemma follow_jet (A : Directions G n) (φ : Site n → G.Color) : deriv (logFollow A φ) 0=A+slope φ := by |
| 110 | funext e |
| 111 | let d := logFollow A φ |
| 112 | have hd := ((logFollow_diff A φ).differentiableAt (by simp)).hasDerivAt |
| 113 | have he : HasDerivAt (fun t : ℝ => G.mat (follow A φ t e)) (G.colorMat (A e+(slope φ) e)) 0 := by |
| 114 | simp only [follow,Lattice.gauge,increment,Pi.one_apply,Pi.smul_apply,mul_one,G.mat_mul,G.mat_inv] |
| 115 | convert! ((expLine (φ e.1)).mul (expLine (A e))).mul (expLine (φ (e.1+step e.2))).star using 1 |
| 116 | simp [slope,G.colorMat_skew]; abel |
| 117 | apply G.colorMat_injective |
| 118 | have hz : HasDerivAt (fun t : ℝ => G.mat (G.lieExp (d t e))) (G.colorMat (deriv d 0 e)) 0 := by |
| 119 | refine G.expDiff_zero.comp_hasDerivAt_of_eq (0:ℝ) ((hasDerivAt_pi ..).mp hd e) ?_ |
| 120 | simp [d,logFollow_zero] |
| 121 | refine (hz.congr_of_eventuallyEq ((handle A φ).mono (p:=fun t => _ = follow A φ t) (fun t ht => ?_))).unique he |
| 122 | rw [← ht]; simp only [comp_apply,increment,Pi.one_apply,mul_one]; rfl |
| 123 | |
| 124 | lemma absorbs (hs : G.Simple) (h : p.Regular X f) (φ : Site n → G.Color) (A) : H f A (slope φ)=0 := by |
| 125 | have hz (B : Directions G n) : H f (B+slope φ) (B+slope φ)=H f B B := by |
| 126 | let g := logFollow B φ; let F := f ∘ increment 1 |
| 127 | have he : F ∘ g =ᶠ[𝓝 0] fun t : ℝ => f (increment 1 (t • B)) := (handle B φ).mono fun t ht => by |
| 128 | change f _=f _; rw [show increment 1 _ = follow B φ t from ht]; exact h.symmetry _ _ |
| 129 | have ha : ContDiffAt ℝ 2 F (g 0) := by unfold g; rw [logFollow_zero]; exact flat_C2 h |
| 130 | have hd : H f (B+slope φ) (B+slope φ) = iteratedDeriv 2 (F ∘ g) 0 := by |
| 131 | rw [iteratedDeriv_vcomp_two ha ((logFollow_diff B φ).of_le le_top),show g 0=0 from logFollow_zero .., |
| 132 | show deriv g 0=B+slope φ from follow_jet ..,show fderiv ℝ F 0=0 from no_current hs h] |
| 133 | simp [iteratedFDeriv_two_apply,H,F] |
| 134 | rw [hd, diagonal hs h B]; exact (he.iteratedDeriv _).self_of_nhds |
| 135 | have hw := hz 0; simp only [zero_add,map_zero] at hw |
| 136 | have hq := hz A |
| 137 | rw [polar h,hw] at hq; linarith |
| 138 | |
| 139 | lemma H_local (hs : G.Simple) (h : p.Regular X f) {A B : Directions G n} (C : Directions G n) |
| 140 | (he : ∀ e : Edge (Site n), e.1∈X → e.1+step e.2∈X → A e=B e) : H f A C=H f B C := by |
| 141 | have hx {A B : Directions G n} (he : ∀ e : Edge (Site n), e.1∈X → e.1+step e.2∈ X → A e=B e) : H f A A=H f B B := by |
| 142 | rw [diagonal hs h,diagonal hs h] |
| 143 | congr 2 |
| 144 | ext1 t; exact h.sites _ _ (fun e ha hb => by simp only [increment, Pi.smul_apply,he e ha hb]) |
| 145 | have hh : H f (A+C) (A+C)=H f (B+C) (B+C) := hx (fun e ha hb => by simp [he e ha hb]) |
| 146 | rw [polar h,polar h,hx he] at hh; linarith |
| 147 | |
| 148 | end YM.AnalyticBridge.CouplingShape |