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.Analysis.Projected |
| 2 | import YM.Slice.Mirror |
| 3 | import Mathlib.MeasureTheory.Group.Integral |
| 4 | |
| 5 | /-! |
| 6 | # Positivity of actual temporal kernel, no independence of cross-link averages |
| 7 | -/ |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | namespace YM.Slice |
| 11 | open Function Set Filter MeasureTheory |
| 12 | open Lattice Wilson Cells Analysis |
| 13 | open scoped Topology BigOperators Matrix.Norms.Frobenius ComplexOrder ComplexConjugate |
| 14 | variable {n : Side} {G : Gauge} (a : Axis) |
| 15 | |
| 16 | instance : SecondCountableTopology (Leaf G a n) := by unfold Leaf; infer_instance |
| 17 | instance : SecondCountableTopology (Thread G a n) := by unfold Thread; infer_instance |
| 18 | |
| 19 | private lemma overlap (G : Gauge) : NNKernel fun (x y : G.El) => (((G.mat x * star (G.mat y)).trace.re : ℝ) : ℂ) := by |
| 20 | let A (i j : Fin G.repDim) (u : G.El) := (((G.mat u i j).re : ℝ) : ℂ) |
| 21 | let B (i j : Fin G.repDim) (u : G.El) := (((G.mat u i j).im : ℝ) : ℂ) |
| 22 | let K (i j : Fin G.repDim) (x y) := star (A i j x) * A i j y + star (B i j x) * B i j y |
| 23 | have he i j : NNKernel (K i j) := (NNKernel.gram (A i j)).plus (NNKernel.gram (B i j)) |
| 24 | convert NNKernel.adds (fun i x y => ∑ j, K i j x y) Finset.univ (fun i _ => NNKernel.adds (K i) Finset.univ (fun j _ => he i j)) using 1 |
| 25 | ext1 x; ext1 y |
| 26 | simp [Matrix.trace, Matrix.mul_apply, Matrix.star_eq_conjTranspose,Complex.mul_re,K,A,B] |
| 27 | |
| 28 | theorem positive_weight {β : ℝ} (h : 0 ≤ β) : NNKernel fun (X Y : Leaf G a n) => |
| 29 | ((weight a β X Y 1 : ℝ) : ℂ) := by |
| 30 | let c : ℝ := β / G.repDim |
| 31 | let e (X : Leaf G a n) := ((evenPart a β X : ℝ) : ℂ) |
| 32 | let v (X Y : Leaf G a n) := ((Real.exp (-β * Fintype.card (Tile a n)) : ℝ) : ℂ) |
| 33 | let M (X Y : Leaf G a n) := (∑ p : Tile a n, (G.mat (X p) * star (G.mat (Y p))).trace.re) |
| 34 | have hp : NNKernel fun x y => (M x y : ℂ) := by |
| 35 | simp_rw [M, Complex.ofReal_sum] |
| 36 | exact NNKernel.adds (fun (i : Tile a n) (x y : Leaf G a n) => ((G.mat (x i) * star (G.mat (y i))).trace.re : ℂ)) Finset.univ |
| 37 | fun p _ => (overlap G).titled (fun (x : Leaf G a n) => x p) |
| 38 | have hs : NNKernel v := by |
| 39 | have ht := (NNKernel.one (X := Leaf G a n)).scaled (c := ((Real.exp (-β * Fintype.card (Tile a n)) : ℝ):ℂ)) (by positivity) |
| 40 | simpa only [mul_one, v] using ht |
| 41 | have hc : 0 ≤ c := div_nonneg h (by positivity) |
| 42 | have he : NNKernel (fun x y => Complex.exp ((c:ℂ)*(M x y : ℂ))) := |
| 43 | (hp.scaled (show 0 ≤ (c : ℂ) by exact_mod_cast hc)).exp |
| 44 | convert (hs.times (NNKernel.gram e)).times he using 1 |
| 45 | funext x y |
| 46 | have hm : transition a x y 1 = Fintype.card (Tile a n) - M x y / G.repDim := by |
| 47 | unfold transition |
| 48 | simp [connect,Gauge.price,Finset.sum_sub_distrib,M,Finset.sum_div] |
| 49 | unfold weight |
| 50 | rw [hm,show -β*_ = -β * Fintype.card (Tile a n) + c * M x y by unfold c; ring,Real.exp_add] |
| 51 | simp [e,v,Complex.ofReal_exp]; ring |
| 52 | |
| 53 | /-- Temporal averaged kernel with both half weights. -/ |
| 54 | def heat (β : ℝ) (X Y : Leaf G a n) : ℂ := ∫ u, ((weight a β X Y u : ℝ) : ℂ) ∂(threads n G a) |
| 55 | |
| 56 | private lemma heart (β) : Continuous fun z : (Leaf G a n × Leaf G a n) × Thread G a n => |
| 57 | ((weight a β z.1.1 z.1.2 z.2 : ℝ) : ℂ) := by |
| 58 | have h := (weight_cont a β).comp (show Continuous (fun z : (Leaf G a n × Leaf G a n) × Thread G a n => (z.1.1,z.1.2,z.2)) from by fun_prop) |
| 59 | exact Complex.continuous_ofReal.comp h |
| 60 | |
| 61 | theorem heat_cont (β) : Continuous fun p : Leaf G a n × Leaf G a n => heat a β p.1 p.2 := by |
| 62 | have h := heart a (G := G) (n := n) β |
| 63 | obtain ⟨c,hc⟩ := h.bounded_above_of_compact_support (HasCompactSupport.of_compactSpace _) |
| 64 | refine continuous_iff_continuousAt.mpr fun x => tendsto_integral_filter_of_dominated_convergence |
| 65 | (bound := fun _ => c) (F := fun z : Leaf G a n × Leaf G a n => fun u => ((weight a β z.1 z.2 u : ℝ) : ℂ)) |
| 66 | (Eventually.of_forall fun i => (h.comp (show Continuous (fun p : Thread G a n => (i,p)) from by fun_prop)).aestronglyMeasurable) ?_ |
| 67 | (integrable_const _) ?_ |
| 68 | · exact Eventually.of_forall fun i => Eventually.of_forall fun u => hc (i,u) |
| 69 | refine Eventually.of_forall fun u => ?_ |
| 70 | exact (h.comp (show Continuous fun p : Leaf G a n × Leaf G a n => (p, u) from by fun_prop)).continuousAt.tendsto |
| 71 | |
| 72 | lemma averaged (β) (X Y : Leaf G a n) : heat a β X Y = ∫ u, ∫ v, |
| 73 | ((weight a β (repaint a X u) (repaint a Y v) 1 : ℝ) : ℂ) ∂(threads n G a) ∂(threads n G a) := by |
| 74 | have he (u) : (∫ v, ((weight a β (repaint a X u) (repaint a Y v) 1 : ℝ) : ℂ) ∂(threads n G a)) = heat a β X Y := by |
| 75 | rw [← integral_mul_left_eq_self (μ := threads n G a) (fun v => ((weight a β (repaint a X u) (repaint a Y v) 1 : ℝ) : ℂ)) u] |
| 76 | unfold heat |
| 77 | apply integral_congr_ae; filter_upwards with v |
| 78 | rw [weight_second a β X Y]; simp only [← repaint_split, together] |
| 79 | simp_rw [he]; simp |
| 80 | |
| 81 | theorem step_positive {β : ℝ} (h : 0 ≤ β) : NNKernel (heat a (G := G) (n := n) β) := by |
| 82 | rw [show heat a (G := G) (n := n) β = _ from funext fun x => funext fun y => averaged a β x y] |
| 83 | haveI : @BorelSpace (Thread G a n) (MetricSpace.toPseudoMetricSpace (α := Thread G a n)).toUniformSpace.toTopologicalSpace (inferInstance : MeasurableSpace _) := instBorelSpaceThread _ |
| 84 | haveI : @SecondCountableTopology (Thread G a n) (MetricSpace.toPseudoMetricSpace (α := Thread G a n)).toUniformSpace.toTopologicalSpace := instSecondCountableTopologyThread _ |
| 85 | haveI : @CompactSpace (Thread G a n) (MetricSpace.toPseudoMetricSpace (α := Thread G a n)).toUniformSpace.toTopologicalSpace := (inferInstance : CompactSpace (Thread G a n)) |
| 86 | refine NNKernel.accumulate (X := Thread G a n) (A := Leaf G a n) (B := Leaf G a n) (threads n G a) (g := fun X u => repaint a X u) (positive_weight a h) ?_ |
| 87 | intro b c |
| 88 | apply (heart a (G := G) (n := n) β).comp (show Continuous (fun p : Thread G a n × Thread G a n => |
| 89 | ((repaint a b p.1, repaint a c p.2), (1 : Thread G a n))) from ?_) |
| 90 | exact (((repaint_cont a (G := G) (n := n)).comp (show Continuous (fun p : Thread G a n × Thread G a n => (b, p.1)) from by fun_prop)).prodMk |
| 91 | ((repaint_cont a (G := G) (n := n)).comp (show Continuous (fun p : Thread G a n × Thread G a n => (c, p.2)) from by fun_prop))).prodMk continuous_const |
| 92 | end YM.Slice |