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.UVNext.FREE_STRESS_CERTIFICATE.Melt |
| 2 | |
| 3 | /-! Algebra and integrability of cross stress, in one color. Smooth |
| 4 | conservation assertion away from the far pole (χ compact disjoint) holds |
| 5 | including origin at each REGULARIZED scale. No products of distributions. -/ |
| 6 | set_option autoImplicit false |
| 7 | noncomputable section |
| 8 | namespace YM.UVNext.FreeStress |
| 9 | open Maxwell Set MeasureTheory Filter Analysis |
| 10 | open scoped Topology ContDiff |
| 11 | |
| 12 | def crossing (x y : Axis→Axis→ℝ) (a b : Axis) := |
| 13 | (∑ c, (x a c*y b c + x b c*y a c)) - (if a=b then (1/2:ℝ)*∑ i, ∑ c, x i c*y i c else 0) |
| 14 | |
| 15 | private lemma swap_cross (x y : Axis→Axis→ℝ) (a b : Axis) : crossing x y a b=crossing y x a b := by |
| 16 | unfold crossing; congr 1 |
| 17 | · exact Finset.sum_congr rfl fun _ _ => by ring |
| 18 | · split_ifs |
| 19 | · congr 1; exact Finset.sum_congr rfl fun _ _ => Finset.sum_congr rfl fun _ _ => mul_comm _ _ |
| 20 | rfl |
| 21 | |
| 22 | private lemma comb (X : Axis→Axis→Axis→ℝ) (y : Axis→Axis→ℝ) |
| 23 | (hy : ∀ a c,y a c= -y c a) (hX : ∀ a b c,X a b c= -X a c b) |
| 24 | (h : ∀ a b c, X a b c + X b c a + X c a b = 0) (b : Axis) : |
| 25 | ∑ a, crossing (X a) y a b = ∑ c, (∑ a, X a a c) * y b c := by |
| 26 | unfold crossing |
| 27 | simp_rw [Finset.sum_add_distrib, Finset.sum_sub_distrib] |
| 28 | rw [Finset.sum_add_distrib,Finset.sum_ite_eq', if_pos (Finset.mem_univ _), |
| 29 | Finset.sum_comm (f:=fun a c => X a a c * y b c)] |
| 30 | simp_rw [Finset.sum_mul]; |
| 31 | let R := ∑ a : Axis, ∑ c : Axis, X a b c * y a c |
| 32 | let T := ∑ i : Axis, ∑ c : Axis, X b i c * y i c |
| 33 | have hr : R=T-R := by |
| 34 | have he (a c) : X a b c=X b a c-X c a b := by |
| 35 | have hh := h a b c; rw [hX b c a] at hh; linarith |
| 36 | unfold R T |
| 37 | conv_lhs => arg 2; intro a; arg 2; intro c; rw [he,sub_mul] |
| 38 | rw [Finset.sum_comm] |
| 39 | simp_rw [Finset.sum_sub_distrib] |
| 40 | rw [Finset.sum_comm (f:=fun c a => X b a c*y a c)]; congr 1 |
| 41 | exact Finset.sum_congr rfl fun c _ => Finset.sum_congr rfl fun a _ => by rw [hy a c,hX c a b]; ring |
| 42 | linarith |
| 43 | |
| 44 | private lemma diff_cross (x y : Maxwell.Field ℝ) (r a b : Axis) {z : E4} (hx : ∀ a b, DifferentiableAt ℝ (x a b) z) |
| 45 | (hy : ∀ a b,DifferentiableAt ℝ (y a b) z) : |
| 46 | grad r (fun z => crossing (fun i j => x i j z) (fun i j => y i j z) a b) z = |
| 47 | crossing (fun i j => grad r (x i j) z) (fun i j => y i j z) a b + |
| 48 | crossing (fun i j => x i j z) (fun i j => grad r (y i j) z) a b := by |
| 49 | let prod (a b i j : Axis) := fun z : E4 => x a b z*y i j z |
| 50 | have h (a b i j : Axis) : DifferentiableAt ℝ (prod a b i j) z := (hx _ _).mul (hy _ _) |
| 51 | have hh (a b c i j : Axis) : fderiv ℝ (prod a b i j) z (basis c) = |
| 52 | grad c (x a b) z * y i j z + x a b z * grad c (y i j) z := by |
| 53 | dsimp only [prod]; rw [fderiv_fun_mul (hx _ _) (hy _ _)] |
| 54 | simp [grad,D,mul_comm,add_comm] |
| 55 | unfold crossing grad D |
| 56 | let f (a b c) := fun z => prod a c b c z+prod b c a c z |
| 57 | have he (c : Axis) : DifferentiableAt ℝ (f a b c) z := (h _ _ _ _).add (h _ _ _ _) |
| 58 | let g (i c) := prod i c i c |
| 59 | let G := fun z => ∑ i : Axis, ∑ c : Axis, g i c z |
| 60 | have ht (i : Axis) : DifferentiableAt ℝ (fun z => ∑ c : Axis,g i c z) z := DifferentiableAt.fun_sum fun c _ => h _ _ _ _ |
| 61 | have H : DifferentiableAt ℝ G z := DifferentiableAt.fun_sum fun i _ => ht _ |
| 62 | let P : E4→ℝ := if a=b then fun z => (1/2) * G z else 0 |
| 63 | have hp : DifferentiableAt ℝ P z := by unfold P; split; exact H.const_mul _; exact differentiableAt_const (𝕜:=ℝ) (x:=z) _ |
| 64 | rw [show (fun z => (∑ c : Axis, (x a c z*y b c z+x b c z*y a c z)) - |
| 65 | (if a=b then (1/2:ℝ)*∑ i, ∑ c : Axis, x i c z*y i c z else 0)) = (fun z => (∑ c : Axis, f a b c z) - P z) from |
| 66 | by unfold P; split <;> simp_all [f,prod,G,g], fderiv_fun_sub (DifferentiableAt.fun_sum fun i _ => he i) hp] |
| 67 | simp_rw [_root_.sub_apply, fderiv_fun_sum (fun i _ => he i),_root_.sum_apply, f] |
| 68 | have hd (c : Axis) := fderiv_fun_add (h a c b c) (h b c a c) |
| 69 | simp_rw [hd,_root_.add_apply,hh] |
| 70 | unfold P; split_ifs |
| 71 | · rw [fderiv_const_mul H]; unfold G |
| 72 | simp_rw [fderiv_fun_sum (fun i _ => ht i), _root_.smul_apply,_root_.sum_apply, g,fderiv_fun_sum (fun i _ => h _ i _ i),_root_.sum_apply,hh,grad,D,smul_eq_mul, Finset.sum_add_distrib] |
| 73 | ring |
| 74 | rw [fderiv_zero]; simp only [Pi.zero_apply,_root_.zero_apply,grad,D,sub_zero,Finset.sum_add_distrib]; ring |
| 75 | |
| 76 | section OnPatch |
| 77 | |
| 78 | variable (r : ℝ) {U : Set E4} (u : Maxwell.Field ℝ) (hu : WaveOn U u) |
| 79 | |
| 80 | def score (r : ℝ) (u : Maxwell.Field ℝ) (i j a b : Axis) (z : E4) := |
| 81 | crossing (fun a b => material r i j a b z) (fun a b => u a b z) a b |
| 82 | |
| 83 | include hu in |
| 84 | lemma score_smooth (k i a b : Axis) {z : E4} (hz : z ∈ U) (h : r ≠ 0 ∨ z ≠0) : |
| 85 | ContDiffAt ℝ ∞ (score r u k i a b) z := by |
| 86 | unfold score crossing |
| 87 | have ht (a b c d) : ContDiffAt ℝ ∞ (fun z => material r k i a b z * u c d z) z := |
| 88 | (material_smooth r z h k i a b).mul (hu.smooth c d z hz) |
| 89 | have hh : ContDiffAt ℝ ∞ (fun z => (1/2:ℝ)*∑ m, ∑ c, material r k i m c z*u m c z) z := |
| 90 | contDiffAt_const.mul (ContDiffAt.sum fun i _ => ContDiffAt.sum fun c _ => ht _ _ _ _) |
| 91 | apply (ContDiffAt.sum fun c _ => (ht a c b c).add (ht b c a c)).sub |
| 92 | by_cases h : a=b |
| 93 | · simpa only [if_pos h] using hh |
| 94 | simp only [if_neg h]; exact contDiffAt_const |
| 95 | |
| 96 | include hu in |
| 97 | lemma score_div (ho : IsOpen U) {z : E4} (hz : z ∈ U) (hr : r ≠ 0) (i j b : Axis) : |
| 98 | ∑ a, grad a (score r u i j a b) z = grad i (droplet r) z * u b j z - grad j (droplet r) z * u b i z := by |
| 99 | have hm (a b) := (material_smooth r z (Or.inl hr) i j a b).differentiableAt (by simp) |
| 100 | have hw (a b) := (hu.smooth a b z hz).differentiableAt (by simp) |
| 101 | simp_rw [show ∀ a : Axis, grad a (score r u i j a b) z = _ from fun a => diff_cross (material r i j) u a a b hm hw,Finset.sum_add_distrib] |
| 102 | have hM (a b c : Axis) : grad a (material r i j b c) z = -grad a (material r i j c b) z := by |
| 103 | unfold grad D |
| 104 | nth_rw 1 [show material r i j b c= -material r i j c b from funext fun x => material_odd ..] |
| 105 | rw [fderiv_neg]; rfl |
| 106 | have hQ (a b c : Axis) : grad a (u b c) z = -grad a (u c b) z := by |
| 107 | have he : u b c =ᶠ[𝓝 z] -u c b := by filter_upwards [ho.mem_nhds hz] with y hy; exact hu.form b c y hy |
| 108 | rw [grad,GermD _ he,D,fderiv_neg]; rfl |
| 109 | have hs := comb (fun a b c => grad a (u b c) z) (fun a b => material r i j a b z) (fun a c => material_odd ..) hQ (fun a b c => hu.cycle a b c z hz) b |
| 110 | simp_rw [swap_cross (fun a b => material r i j a b z),hs,hu.divergence _ z hz,zero_mul,Finset.sum_const_zero,add_zero] |
| 111 | have ht := comb (fun a b c => grad a (material r i j b c) z) (fun a b=>u a b z) (fun a c => hu.form a c z hz) hM (material_cycle r z (Or.inl hr) i j) b |
| 112 | rw [ht] |
| 113 | simp [material_div r z hr, ite_mul, sub_mul, Finset.sum_sub_distrib] |
| 114 | |
| 115 | end OnPatch |
| 116 | end YM.UVNext.FreeStress |