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.RANK.Along |
| 2 | |
| 3 | |
| 4 | /-! # Exact read of the linear curvature probe |
| 5 | |
| 6 | Derived from Hol's path assignment and genuine weighted line sum at canonically |
| 7 | oriented square from the tree reference anchor. No hypothesis of exact rank. -/ |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | namespace YM.Next.Rank.Spindle |
| 11 | open Function Set Filter Lattice Wilson RG Beamer Source Labels Source.Drops Configuration CellsInt MeasureTheory |
| 12 | open scoped Topology ContDiff Matrix.Norms.Frobenius BigOperators Classical |
| 13 | |
| 14 | variable {G : Gauge} (H : Hol G) (d : ℕ) |
| 15 | variable {b : ℕ} {n : Side} {o : Site n} |
| 16 | |
| 17 | def oneGlow (A : Snap G d) (r : Face ℤ) := Exterior.linkSum (access A) r.1 (square r.2.val.1 r.2.val.2) |
| 18 | def lamp (A : Snap G d) (v : Turn b) := oneGlow d A v.val |
| 19 | |
| 20 | private def view (H : Hol G) (d : ℕ) (A : Snap G d) := H.links d (expand d A) 1 |
| 21 | private lemma none : view H d 0=1 := funext fun i => (Work.G02.linkGerm H d i).2.1 |
| 22 | |
| 23 | @[simp] private lemma fires_zero (p : Turn b) : used (view H d 0) p=1 := by |
| 24 | rw [none]; unfold used central; rw [Lattice.face_gauge,faceValue, Pressure.one]; group |
| 25 | lemma burnt (p : Turn b) (A : Snap G d) : |
| 26 | HasDerivAt (fun t : ℝ => G.mat (used (view H d (t • A)) p)) (G.colorMat (lamp d A p)) 0 := by |
| 27 | simp only [used,central,face_gauge,Gauge.mat_mul,Gauge.mat_inv] |
| 28 | have hz : faceValue (view H d 0) p.val=1 := by rw [none,faceValue,Pressure.one] |
| 29 | have ha : leaves (view H d 0) p.val.1=1 := by rw [none,leaves,Pressure.one] |
| 30 | let f (t : ℝ) := leaves (view H d (t • A)) p.val.1 |
| 31 | let g (t : ℝ) := faceValue (view H d (t • A)) p.val |
| 32 | have ht : HasDerivAt (fun t=> G.mat (f t)) _ 0 := (Work.G02.walkGerm H d (paths p.val.1) 0).2 A |
| 33 | have hu : HasDerivAt (fun t=> G.mat (g t)) _ 0 := (Work.G02.walkGerm H d _ _).2 A |
| 34 | apply ((ht.mul hu).mul ht.star).congr_deriv; simp only [f,g,zero_smul,hz,ha, G.mat_one,mul_one,one_mul, Gauge.colorMat_skew,star_one,Pi.mul_apply] |
| 35 | unfold lamp oneGlow; abel |
| 36 | lemma coals (p : Word b) (A : Snap G d) : |
| 37 | played (used (view H d 0)) p=1 ∧ HasDerivAt (fun t : ℝ => G.mat (played (used (view H d (t • A))) p)) (G.colorMat (stage p (lamp d A))) 0 := by |
| 38 | induction p with |
| 39 | | nil => simp only [played,stage,List.map_nil,List.prod_nil,List.sum_nil,map_zero]; exact ⟨trivial,hasDerivAt_const _ _⟩ |
| 40 | | cons j p IH => |
| 41 | let c:= p.length |
| 42 | obtain ⟨a,i⟩ := j |
| 43 | have ht := map_zero G.colorMat |
| 44 | have hs := burnt H d a A |
| 45 | let f (t : ℝ) := used (view H d (t • A)) a; let L:= lamp d A a; let X:=G.colorMat (stage p (lamp d A)) |
| 46 | have hv : f 0=1 := by simp [f] |
| 47 | rcases IH with ⟨hg,hh⟩ |
| 48 | cases i with |
| 49 | | false => |
| 50 | simp only [played,List.map_cons,List.prod_cons,Bool.false_eq_true,↓reduceIte,G.mat_mul,stage,List.sum_cons,map_add] |
| 51 | refine ⟨by simp only [fires_zero, inv_one,one_mul]; simp, (hs.mul hh).congr_deriv ?_⟩ |
| 52 | simp only [zero_smul, hg, G.mat_one,mul_one,one_mul,fires_zero] |
| 53 | change G.colorMat _+X= _+_; rfl |
| 54 | | true => |
| 55 | simp only [played,List.map_cons,List.prod_cons,↓reduceIte,G.mat_mul,G.mat_inv,stage,List.sum_cons,map_add,map_neg] |
| 56 | refine ⟨by simp only [fires_zero,inv_one,one_mul]; simp, (hs.star.mul hh).congr_deriv ?_⟩ |
| 57 | simp only [zero_smul, hg,G.mat_one,mul_one,one_mul,fires_zero,star_one, Gauge.colorMat_skew]; rfl |
| 58 | |
| 59 | private lemma bend {f : ℝ → G.El} {a : G.Color} (hp : f 0=1) (h : HasDerivAt (fun t => G.mat (f t)) (G.colorMat a) 0) : HasDerivAt (fun t=> G.plog (G.mat (f t))) a 0 := by |
| 60 | have he : DifferentiableAt ℝ G.plog 1 := G.plog_diff.differentiableAt (by simp) |
| 61 | let v := fderiv ℝ G.plog 1 |
| 62 | have ht : HasFDerivAt G.plog v (G.mat (f 0)) := by rw [hp,G.mat_one]; exact he.hasFDerivAt |
| 63 | refine (ht.comp_hasDerivAt 0 h).congr_deriv ?_ |
| 64 | have H : (v ∘L G.colorMat.toContinuousLinearMap)=ContinuousLinearMap.id ℝ G.Color := by |
| 65 | apply HasFDerivAt.unique (f:=G.plog ∘ (fun a : G.Color => G.mat (G.lieExp a))) (x:=0) |
| 66 | · apply HasFDerivAt.comp _ _ G.expDiff_zero; rw [G.mat_lieExp_zero,G.mat_one]; exact he.hasFDerivAt |
| 67 | exact HasFDerivAt.congr_of_eventuallyEq (hasFDerivAt_id 0) G.plog_left |
| 68 | exact DFunLike.congr_fun H a |
| 69 | |
| 70 | lemma flowDir {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] (x : V) : HasDerivAt (fun t : ℝ=>t • x) x 0 := by simpa using (hasDerivAt_id' (0:ℝ)).smul_const x |
| 71 | lemma lumen (R : ℕ) (h : 2*(R+1)< n.val) (x : Dim o R) (A : Snap G d) : |
| 72 | fderiv ℝ (bore H d R (register h x)) 0 A= stage (word G h x) (lamp d A) := by |
| 73 | let p:= register h x; let a (t : ℝ) := view H d (t • A) |
| 74 | have hu : (fun t : ℝ => bore H d R p (t • A)) = fun t => G.plog (G.mat (played (used (a t)) (word G h x))) := by |
| 75 | ext1 t; apply congr_arg G.plog; apply congr_arg G.mat |
| 76 | exact (Classical.choose_spec (rolled G _ _ p.property.1 p.property.2)).2 _ |
| 77 | obtain ⟨C,v,hC,Hc⟩ := shots H d 1 |
| 78 | have hs : DifferentiableAt ℝ (bore H d R p) 0 := ((Hc R p).1).differentiableAt (by simp) |
| 79 | have hv := hs.hasFDerivAt.comp_hasDerivAt_of_eq (0:ℝ) |
| 80 | (flowDir A) (by simp) |
| 81 | apply hv.unique; change HasDerivAt (fun t : ℝ => bore H d R p (t • A)) _ 0; rw [hu] |
| 82 | refine bend (by unfold a; rw [zero_smul]; exact (coals H d _ A).1) (coals H d _ A).2 |
| 83 | |
| 84 | -- exact stencil coefficients in Key.In d |
| 85 | lemma revealed_cell (e : Edge Cover) (A : Snap G d) : access A e=∑ i∈Finset.range (d-1), trail (expand d A i) e.2 e.1 := by |
| 86 | unfold access |
| 87 | simp only [partConnection,potential,one_smul] |
| 88 | rw [intervalIntegral.integral_finsetSum]; rfl |
| 89 | intro i hi; refine Continuous.intervalIntegrable ?_ _ _ |
| 90 | exact (Tensor.diag_smooth _ 1).continuous.comp (by fun_prop) |
| 91 | |
| 92 | lemma glows (A : Snap G d) (r : Face ℤ) : oneGlow d A r=∑ i∈Finset.range (d-1), CellsInt.test (expand d A i) r.2.val.1 r.2.val.2 r.1 := by |
| 93 | obtain ⟨x,⟨i,j⟩,hr⟩ := r |
| 94 | simp only [oneGlow,Exterior.linkSum,square,Step.used,posDir,negDir,Step.vec,↓reduceIte,Bool.false_eq_true,add_zero]; rw [show x+step i+step j-step i= x+step j by abel,show x+step i+step j+-step i=x+step j by abel,add_sub_cancel_right] |
| 95 | simp_rw [revealed_cell] |
| 96 | rw [← Finset.sum_neg_distrib, ← Finset.sum_neg_distrib]; simp only [← Finset.sum_add_distrib]; apply Finset.sum_congr rfl; intro m _; rw [cigar]; dsimp only [Pi.sub_apply,stepValue]; abel |
| 97 | |
| 98 | -- read at KeyIn.d of actual Tester.In |
| 99 | |
| 100 | def spanKey (x : KeyIn G d) : Fin (d-1) := ⟨x.val.1,by have he := x.property; unfold Labels.generation at he; omega⟩ |
| 101 | def kp (A : Snap G d) := fun i : KeyIn G d => Labels.coord (expand d A) i.val |
| 102 | lemma traffic (A : Snap G d) (r : Face ℤ) (l : G.ColorIndex) : |
| 103 | oneGlow d A r l=∑ i : KeyIn G d, ((kp d A) i).re * tester i.val (r.1,r.2,l) := by |
| 104 | rw [glows] |
| 105 | let a:= (r.1,r.2,l) |
| 106 | let Y:= (i : Fin (d-1)) × Fin (Labels.dim G i.val) |
| 107 | let hI : Y ≃ KeyIn G d := { |
| 108 | toFun p:=⟨⟨p.1.val,p.2⟩, by change ↑p.1 + 2≤d; omega⟩ |
| 109 | invFun p:= ⟨spanKey d p,p.val.2⟩ |
| 110 | left_inv _:= rfl |
| 111 | right_inv p:= rfl } |
| 112 | have he (i) : i ∈ Finset.range (d-1) ↔ i< d-1 := Finset.mem_range |
| 113 | conv_rhs => rw [← hI.sum_comp] |
| 114 | rw [Fintype.sum_sigma] |
| 115 | rw [← Fin.sum_univ_eq_sum_range] |
| 116 | calc |
| 117 | _ = ∑ i : Fin (d-1), sweep i.val (A i) a := by |
| 118 | rw [show ∀ f : Fin (d-1) → G.Color,(∑ i,f i).ofLp l=∑ i,(f i).ofLp l from fun f => map_sum (EuclideanSpace.proj l : G.Color→L[ℝ] ℝ) f _] |
| 119 | refine Finset.sum_congr rfl fun i _ => ?_ |
| 120 | rw [expand,dif_pos i.isLt]; rfl |
| 121 | _ = _ := by |
| 122 | apply Finset.sum_congr rfl; intro i _; conv_lhs => rw [← (axes G i.val).sum_repr (A i)] |
| 123 | rw [map_sum, Finset.sum_apply]; apply Finset.sum_congr rfl; intro j _ |
| 124 | change (sweep i.val) _ a=Complex.re (Labels.coord _ ⟨i.val,j⟩) * tester _ _ |
| 125 | rw [map_smul]; simp only [Labels.coord,expand, dif_pos i.isLt, Complex.ofReal_re];rfl |
| 126 | end YM.Next.Rank.Spindle |