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.Unpack |
| 2 | import YM.Push.CUTOFF_PROJECTORS.Bank |
| 3 | |
| 4 | /-! # The equation expression on the actual torus setup -/ |
| 5 | set_option autoImplicit false |
| 6 | noncomputable section |
| 7 | namespace YM.ProjectorNext.Calibration |
| 8 | open Lattice Wilson RG Source Source.Drops Function Filter Labels Next.Foundations Push Push.CutoffProjectors Tensor |
| 9 | open scoped Topology Matrix.Norms.Frobenius BigOperators ContDiff InnerProductSpace |
| 10 | variable {G : Gauge} {H : Hol G} {d : ℕ} |
| 11 | namespace Machine |
| 12 | variable (M : Machine H d) (F : Labels.Frame G d) |
| 13 | variable {n : Side} {s : Finset Cover} |
| 14 | |
| 15 | lemma rate_port (h : M.Release s) (hn : Opened s n) (o : Site n) (x : F.Coeff) (U : Config G n) (e : Edge (Site n)) (j : G.ColorIndex) : |
| 16 | Packet.derivative (fun Z => M.weights F o x Z e j) e j U = |
| 17 | ∑ i : F.Index, ∑ w : M.Outlet, if e=M.port o w then x i * |
| 18 | left (M.valve F i w (colors G j)) (M.address w) (colors G j) (expandAt o U) else 0 := by |
| 19 | change deriv (fun t : ℝ => M.weights F o x (increment U (t • Packet.forward e j)) e j) 0 = _ |
| 20 | simp_rw [weights_eval] |
| 21 | apply HasDerivAt.deriv |
| 22 | refine HasDerivAt.fun_sum fun i _ => HasDerivAt.fun_sum (A:=fun w t => if e=M.port o w then |
| 23 | x i * M.valve F i w (colors G j) (expandAt o (increment U (t • Packet.forward e j))) else 0) fun w _ => ?_ |
| 24 | by_cases he : e=M.port o w |
| 25 | · subst e; simp only [↓reduceIte] |
| 26 | have ht := M.released F w i j s h |
| 27 | have hh (t : ℝ) : M.valve F i w (colors G j) (expandAt o (increment U (t • Packet.forward (M.port o w) j))) = |
| 28 | M.valve F i w (colors G j) (pushLink (expandAt o U) (Pi.single (M.address w) (colors G j)) t) := |
| 29 | matched_increment _ ht.supported hn o U (M.address w) (h.start w) (colors G j) t |
| 30 | simp_rw [hh] |
| 31 | exact (ht.authentic (expandAt o U) (M.address w) (colors G j)).const_mul _ |
| 32 | simp_rw [if_neg he]; exact hasDerivAt_const .. |
| 33 | |
| 34 | private lemma along_edge {E I : Type*} [DecidableEq E] [Fintype E] [Fintype I] {m : E} (x : I → E → ℂ) : |
| 35 | ∑ e, ∑ j, (if e=m then x j e else (0:ℂ)) = ∑ j,x j m := by rw [Finset.sum_comm]; simp |
| 36 | |
| 37 | private lemma engines {I E W J : Type*} [Fintype I] [Fintype E] [DecidableEq E] [Fintype W] [Fintype J] |
| 38 | (p : W → E) (t : I → ℂ) (a b : I → W → J → ℂ) (g : E → J → ℂ) (β : ℂ) : |
| 39 | ∑ e, ∑ j, ((∑ i, ∑ w, if e=p w then t i*a i w j else 0) * g e j - β * (∑ i, ∑ w, if e=p w then t i*b i w j else 0)) = |
| 40 | ∑ i, t i*((∑ w, ∑ j, a i w j*g (p w) j) - β*(∑ w, ∑ j,b i w j)) := by |
| 41 | let f (e : E) (j i w) := if e=p w then t i*(a i w j*g e j - β*b i w j) else 0 |
| 42 | have hx (e j) : (∑ i, ∑ w, if e=p w then t i*a i w j else 0) * g e j - β*(∑ i, ∑ w, if e=p w then t i*b i w j else 0) = |
| 43 | ∑ i, ∑ w, f e j i w := by |
| 44 | simp_rw [Finset.sum_mul,Finset.mul_sum,← Finset.sum_sub_distrib]; refine Finset.sum_congr rfl fun i _ => Finset.sum_congr rfl fun w _ => ?_ |
| 45 | unfold f; split_ifs <;> ring |
| 46 | simp_rw [hx, show ∀ e, ∑ j, ∑ i, ∑ w,f e j i w = ∑ i, ∑ w, ∑ j,f e j i w from fun e => by |
| 47 | rw [Finset.sum_comm]; exact Finset.sum_congr rfl fun _ _ => Finset.sum_comm] |
| 48 | rw [Finset.sum_comm]; refine Finset.sum_congr rfl fun i _ => ?_ |
| 49 | rw [Finset.sum_comm]; unfold f |
| 50 | have he (w : W) : (∑ e, ∑ j, if e=p w then t i*(a i w j*g e j-β*b i w j) else 0) = _ := |
| 51 | along_edge (m:=p w) (fun j e => t i*(a i w j*g e j-β*b i w j)) |
| 52 | simp_rw [he,mul_sub,Finset.mul_sum,Finset.sum_sub_distrib] |
| 53 | |
| 54 | lemma on_torus (h : M.Release s) (hn : Opened s n) (o : Site n) (x : F.Coeff) (U : Config G n) (β : ℝ) : |
| 55 | (∑ (e : Edge (Site n)), ∑ j : G.ColorIndex, |
| 56 | (M.weights F o x U e j * ↑(Packet.derivative energy e j U : ℝ) - |
| 57 | (β:ℂ)⁻¹ * Packet.derivative (fun Z => M.weights F o x Z e j) e j U)) = |
| 58 | ∑ i : F.Index, x i*(M.energyLeg F i (expandAt o U)-(β:ℂ)⁻¹*M.divLeg F i (expandAt o U)) := by |
| 59 | let a := fun (i : F.Index) (w : M.Outlet) j => M.valve F i w (colors G j) (expandAt o U) |
| 60 | let b := fun (i : F.Index) (w : M.Outlet) j => left (M.valve F i w (colors G j)) (M.address w) (colors G j) (expandAt o U) |
| 61 | let g := fun (e : Edge (Site n)) j => (↑(inner ℝ (colors G j) (Calibration.gradient U e.1 e.2)) : ℂ) |
| 62 | simp_rw [rate_port M F h hn, weights_eval, Calibration.packet_energy] |
| 63 | rw [engines (M.port o) x a b g (β:ℂ)⁻¹] |
| 64 | have he (i : F.Index) (w : M.Outlet) : ∑ j, a i w j*g (M.port o w) j = M.valve F i w (gradient (expandAt o U) (M.address w).1 (M.address w).2) (expandAt o U) := by |
| 65 | have hx := M.energyContract F (expandAt o U) w i |
| 66 | rw [gradient_at] at hx ⊢; exact hx |
| 67 | simp_rw [he]; rfl |
| 68 | |
| 69 | private lemma sumFit {K I : Type*} [NormedAddCommGroup K] [NormedSpace ℝ K] |
| 70 | (w : Finset I) (f : I → CoverConfig G → K) (h : ∀ i∈w, Empirical s (f i)) : |
| 71 | Empirical s fun U => ∑ i∈w,f i U := by |
| 72 | classical |
| 73 | induction w using Finset.induction_on with |
| 74 | | empty => simp; exact Empirical.constant _ |
| 75 | | insert a w ha ih => |
| 76 | simp only [Finset.sum_insert ha]; exact ((h a (by simp)).pair (ih fun i hi => h i (by simp_all))).comp (L:=fun p => p.1+p.2) (contDiff_fst.add contDiff_snd) |
| 77 | |
| 78 | lemma release_energy (h : M.Release s) (i : F.Index) : Empirical s (M.energyLeg F i) := by |
| 79 | let f (w : M.Outlet) j U := M.valve F i w (colors G j) U |
| 80 | have he : M.energyLeg F i = fun U => ∑ w : M.Outlet, ∑ j : G.ColorIndex, |
| 81 | f w j U * (inner ℝ (colors G j) (Calibration.gradient U (M.address w).1 (M.address w).2) : ℝ) := |
| 82 | funext fun U => Finset.sum_congr rfl fun w _ => (M.energyContract F U w i).symm |
| 83 | rw [he] |
| 84 | refine sumFit _ _ fun w _ => sumFit (K:=ℂ) _ (fun (j : G.ColorIndex) (U : CoverConfig G) => f w j U * (inner ℝ (colors G j) (gradient U (M.address w).1 (M.address w).2) : ℝ)) fun j _ => ?_ |
| 85 | exact ((M.released F w i j s h).pair (h.force w)).comp (L:=fun p => p.1 * Complex.ofRealCLM ((innerSL ℝ (colors G j)) p.2)) |
| 86 | (contDiff_fst.mul (Complex.ofRealCLM.contDiff.comp ((innerSL ℝ (colors G j)).contDiff.comp contDiff_snd))) |
| 87 | |
| 88 | lemma release_div (h : M.Release s) (i : F.Index) : Empirical s (M.divLeg F i) := by |
| 89 | unfold divLeg; refine sumFit _ _ fun w _ => sumFit _ _ fun j _ => (M.released F w i j s h).retains (M.address w) (colors G j) |
| 90 | |
| 91 | variable {C : Family G} (M₀ : Machine C.params d) {N p : ℕ} (E : Packet C d N p) |
| 92 | |
| 93 | /-- The genuine local formula for the particle J after unwrapping. |
| 94 | Multiplication by `a_N^d`, as used when computing the readout. -/ |
| 95 | theorem undressed (h : M₀.Release s) (hn : Opened s (C.side N p)) (he : M₀.lined E) |
| 96 | (x : equationSpace (C.labels.level d)) (U : Config G (C.side N p)) : |
| 97 | (C.S.a N:ℂ)^d * E.Jorigin x U = |
| 98 | let F := C.labels.level d; let t : ℝ := (C.path.levels.clock.threshold N) |
| 99 | let Z := expandAt (0:Site (C.side N p)) U |
| 100 | ∑ i : F.Index, (↑(t⁻¹ ^ (F.grades i).2) : ℂ)*x.val i * |
| 101 | (M₀.energyLeg F i Z-(C.beta N p : ℂ)⁻¹*M₀.divLeg F i Z) := by |
| 102 | unfold Packet.Jorigin; rw [← mul_assoc,mul_inv_cancel₀ (pow_ne_zero d (Complex.ofReal_ne_zero.mpr (C.S.a_pos N).ne')),one_mul] |
| 103 | simp_rw [threaded M₀ E he x, on_torus M₀ (C.labels.level d) h hn]; rfl |
| 104 | |
| 105 | /-- And directly on the finite test used by the bank. -/ |
| 106 | theorem amount_eq (h : M₀.Release s) (hn : ∀ x∈s,∀ a : Axis, 20*((x a).natAbs+1)≤(C.side N p).val) |
| 107 | (he : M₀.lined E) (x : equationSpace (C.labels.level d)) (i : Lens G d) : |
| 108 | E.amount x i = |
| 109 | let F := C.labels.level d; let t : ℝ := (C.path.levels.clock.threshold N) |
| 110 | iteratedDeriv (i.2:ℕ) (fun u => let Z := C.params.links d (t • i.1) u |
| 111 | ∑ j : F.Index, (↑(t⁻¹ ^ (F.grades j).2) : ℂ)*x.val j * |
| 112 | (M₀.energyLeg F j Z-(C.beta N p : ℂ)⁻¹*M₀.divLeg F j Z)) 0 := by |
| 113 | dsimp only |
| 114 | unfold Packet.amount |
| 115 | let F := C.labels.level d |
| 116 | let t : ℝ := C.path.levels.clock.threshold N |
| 117 | apply congr_arg (fun y => iteratedDeriv (i.2:ℕ) y 0) |
| 118 | funext u; rw [undressed M₀ E h (opened s hn) he]; dsimp only |
| 119 | refine Finset.sum_congr rfl fun j _ => ?_ |
| 120 | rw [fitsTest s (M₀.energyLeg F j) (M₀.release_energy F h j).supported hn 0 C.params d (t • i.1), |
| 121 | fitsTest s (M₀.divLeg F j) (M₀.release_div F h j).supported hn 0 C.params d (t • i.1)] |
| 122 | |
| 123 | end Machine |
| 124 | end YM.ProjectorNext.Calibration |