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.ProjectorNext.PROJECTOR_CALIBRATION.Cylinders |
| 2 | |
| 3 | /-! # Evaluate the finite equation cylinders unwrapped -/ |
| 4 | set_option autoImplicit false |
| 5 | noncomputable section |
| 6 | namespace YM.ProjectorNext.Calibration |
| 7 | open Lattice Wilson RG Source Source.Drops Function Filter Labels Next.Foundations Push.CutoffProjectors Tensor |
| 8 | open scoped Topology Matrix.Norms.Frobenius BigOperators ContDiff InnerProductSpace |
| 9 | variable {G : Gauge} {H : Hol G} {d : ℕ} |
| 10 | namespace Machine |
| 11 | variable (M : Machine H d) (F : Labels.Frame G d) |
| 12 | |
| 13 | /-- all needed empirical reads on one fixed stencil. Also require both endpoints |
| 14 | of each valve link. θ and β and chain statuses do NOT enter this receipt. -/ |
| 15 | structure Release (s : Finset Cover) : Prop where |
| 16 | anchor : 0∈s |
| 17 | start (i : M.Outlet) : (M.address i).1 ∈ s |
| 18 | finish (i : M.Outlet) : (M.address i).1+step (M.address i).2∈s |
| 19 | takes : Empirical s M.estimate |
| 20 | routes (i : M.Outlet) (j : G.ColorIndex) : Empirical s (fun U => M.channel i U (colors G j)) |
| 21 | force (i : M.Outlet) : Empirical (G:=G) s (fun U => gradient U (M.address i).1 (M.address i).2) |
| 22 | |
| 23 | lemma releases : ∃ s, M.Release s := by |
| 24 | classical |
| 25 | obtain ⟨K,hK⟩ := M.small_estimate |
| 26 | -- don't use choose tactic when index possibly empty (functions from empty type still exist) |
| 27 | let a (i : M.Outlet) (j : G.ColorIndex) := Exists.choose (M.small_channel i (colors G j)) |
| 28 | have ha (i : M.Outlet) (j : G.ColorIndex) : Empirical (a i j) _ := Exists.choose_spec (M.small_channel i (colors G j)) |
| 29 | let b (i : M.Outlet) := Exists.choose (Small.gradient (G:=G) (M.address i).1 (M.address i).2) |
| 30 | have hb (i : M.Outlet) : Empirical (b i) _ := Exists.choose_spec (Small.gradient (G:=G) (M.address i).1 (M.address i).2) |
| 31 | let c (i : M.Outlet) := insert (M.address i).1 (insert ((M.address i).1 + step (M.address i).2) (b i ∪ Finset.univ.biUnion (a i))) |
| 32 | let S := insert 0 (K ∪ Finset.univ.biUnion c) |
| 33 | have he (i : M.Outlet) : c i ⊆ S := fun x hx => Finset.mem_insert_of_mem (Finset.mem_union_right K (Finset.mem_biUnion.mpr ⟨i,Finset.mem_univ i,hx⟩)) |
| 34 | exact ⟨S,by simp [S],fun i => he i (by simp [c]),fun i => he i (by simp [c]), |
| 35 | hK.enlarge (fun x hx => by simp [S,hx]),fun i j => (ha i j).enlarge (fun x hx => he i (by simp [c]; exact Or.inr (Or.inr (Or.inr ⟨j,hx⟩)))), |
| 36 | fun i => (hb i).enlarge (fun x hx => he i (by simp [c,hx]))⟩ |
| 37 | |
| 38 | /-- A choice independent of torus. -/ |
| 39 | def curtain := M.releases.choose |
| 40 | lemma served : M.Release M.curtain := M.releases.choose_spec |
| 41 | |
| 42 | lemma released (i : M.Outlet) (m : F.Index) (j : G.ColorIndex) (s : Finset Cover) (h : M.Release s) : |
| 43 | Empirical s (M.valve F m i (colors G j)) := (h.takes.pair (h.routes i j)).comp |
| 44 | (L:=fun p => Cross.mix (shade F m) M.U p.1 p.2) |
| 45 | (contDiff_iff_contDiffAt.mpr fun _ => Cross.mix_smooth _ _ contDiffAt_fst contDiffAt_snd) |
| 46 | |
| 47 | /-- Equation split at fixed D and field basis slot, without the various |
| 48 | normalization scalars. -/ |
| 49 | def energyLeg (m : F.Index) (U : CoverConfig G) := |
| 50 | ∑ i : M.Outlet, M.valve F m i (gradient U (M.address i).1 (M.address i).2) U |
| 51 | |
| 52 | def divLeg (m : F.Index) (U : CoverConfig G) := ∑ i : M.Outlet, ∑ j : G.ColorIndex, |
| 53 | left (M.valve F m i (colors G j)) (M.address i) (colors G j) U |
| 54 | |
| 55 | lemma energyContract (U : CoverConfig G) (i : M.Outlet) (m : F.Index) : |
| 56 | ∑ j : G.ColorIndex, M.valve F m i (colors G j) U * |
| 57 | (↑(inner ℝ (colors G j) (gradient U (M.address i).1 (M.address i).2)) : ℂ) = |
| 58 | M.valve F m i (gradient U (M.address i).1 (M.address i).2) U := by |
| 59 | let L := M.valveL F m i U |
| 60 | let y := gradient U (M.address i).1 (M.address i).2 |
| 61 | have h := congr_arg L ((colors G).sum_repr' y) |
| 62 | rw [_root_.map_sum] at h |
| 63 | simp_rw [map_smul, Complex.real_smul] at h |
| 64 | simp_rw [mul_comm (M.valve ..) _] |
| 65 | exact h |
| 66 | |
| 67 | variable {n : Side} |
| 68 | /- Use on a period where stencil fits. -/ |
| 69 | def Opened (s : Finset Cover) (n : Side) := Set.InjOn (wrap n) (s : Set Cover) |
| 70 | |
| 71 | lemma opened (s : Finset Cover) (hn : ∀ x∈s, ∀ i : Axis, 20*((x i).natAbs+1) ≤ n.val) : Opened s n := by |
| 72 | refine (wrap_injOn n).mono ?_ |
| 73 | intro x hx; change ∀ i, _ < _ ∧ _ ≤ _ |
| 74 | intro i; have := hn x hx i; omega |
| 75 | |
| 76 | lemma Lifted (s : Finset Cover) (hn : ∀ x∈s, ∀ i : Axis, 20*((x i).natAbs+1) ≤ n.val) {x : Cover} (hx : x∈s) : lift (wrap n x) = x := by |
| 77 | refine lift_eq_iff.mpr ⟨rfl,fun i => ?_⟩ |
| 78 | have := hn x hx i; omega |
| 79 | |
| 80 | lemma nonwrap (s : Finset Cover) (hn : ∀ x∈s, ∀ i : Axis, 20*((x i).natAbs+1) ≤ n.val) : |
| 81 | Nonwrapping (Packet.sites n s) 0 := by |
| 82 | rintro x hx |
| 83 | obtain ⟨y,hy,rfl⟩ := Finset.mem_image.mp hx |
| 84 | simp only [separation, sub_zero,pdist,Lifted s hn hy] |
| 85 | have hp := n.property |
| 86 | have he : (Finset.univ.sup fun i : Axis => (y i).natAbs) ≤ (n.val-1)/10 := by |
| 87 | refine Finset.sup_le fun i _ => ?_ |
| 88 | have := hn y hy i; omega |
| 89 | exact (Nat.mul_le_mul_left 10 he).trans_lt ((mul_comm 10 _ ▸ Nat.div_mul_le_self (n.val-1) 10).trans_lt (Nat.sub_lt hp (by decide))) |
| 90 | |
| 91 | theorem fitsTest {K : Type*} (s : Finset Cover) (f : CoverConfig G → K) (h : LocalOn s f) |
| 92 | (hn : ∀ x∈s, ∀ i : Axis, 20*((x i).natAbs+1) ≤ n.val) |
| 93 | (o : Site n) (H : Hol G) (d : ℕ) (J : Jet G) (t : ℝ) : |
| 94 | f (expandAt o (H.testLinks d o J t))= f (H.links d J t) := by |
| 95 | apply h; intro e he _ |
| 96 | unfold expandAt Hol.testLinks; rw [add_sub_cancel_right,Lifted s hn he] |
| 97 | |
| 98 | set_option maxHeartbeats 400000 in |
| 99 | lemma matched_increment {K : Type*} {s : Finset Cover} (f : CoverConfig G → K) (h : LocalOn s f) |
| 100 | (hn : Opened s n) (o : Site n) (U : Config G n) (e : Edge Cover) (he : e.1∈s) (c : G.Color) (t : ℝ) : |
| 101 | f (expandAt o (increment U (t • oneEdge ((wrap n e.1+o,e.2)) c))) = |
| 102 | f (pushLink (expandAt o U) (Pi.single e c) t) := by |
| 103 | apply h; intro i hi _ |
| 104 | let j : Edge (Site n) := (wrap n i.1+o,i.2) |
| 105 | have hk : j=(wrap n e.1+o,e.2) ↔ i=e := by |
| 106 | refine ⟨fun h => Prod.ext (hn hi he ?_) ((congr_arg Prod.snd h : j.2 = ((wrap n e.1+o,e.2):Edge _).2)), fun h => by simp [h,j]⟩ |
| 107 | exact add_right_cancel (congr_arg Prod.fst h : wrap n i.1+o = _) |
| 108 | have ht : (Pi.single (wrap n e.1+o,e.2) c : Edge (Site n) → G.Color) j = (Pi.single e c : Edge Cover → G.Color) i := by |
| 109 | by_cases hv : i=e |
| 110 | · simp [hk.mpr hv, hv] |
| 111 | simp [Pi.single_eq_of_ne hv, Pi.single_eq_of_ne (mt hk.mp hv)] |
| 112 | change G.lieExp (t • ((Pi.single ((wrap n e.1+o,e.2)) c : Edge (Site n) → G.Color) j)) * U j = G.lieExp (t • ((Pi.single e c : Edge Cover → G.Color) i)) * U j |
| 113 | rw [ht] |
| 114 | |
| 115 | /- For the actual Packet normalization: equation parameters are graded in |
| 116 | F; scaling is threshold^{slot}, before coefficients enter the valves. -/ |
| 117 | def lined {C : Family G} (M : Machine C.params d) {N p} (E : Packet C d N p) := |
| 118 | E.weights = (M.weights (C.labels.level d) 0).comp (equationSpace (C.labels.level d)).subtype |
| 119 | |
| 120 | lemma threaded {C : Family G} (M : Machine C.params d) {N p} (E : Packet C d N p) (h : M.lined E) |
| 121 | (x : equationSpace (C.labels.level d)) : |
| 122 | E.X x = M.weights (C.labels.level d) (0 : Site (C.side N p)) ((C.labels.level d).scaled (C.path.levels.clock.threshold N)⁻¹ x.val) := by rw [Packet.X,h]; rfl |
| 123 | |
| 124 | end Machine |
| 125 | end YM.ProjectorNext.Calibration |