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 | import YM.ProjectorNext.PROJECTOR_CALIBRATION.Divided |
| 3 | |
| 4 | /-! # Pick and differentiate the Snap samples of the equation -/ |
| 5 | set_option autoImplicit false |
| 6 | noncomputable section |
| 7 | namespace YM.ProjectorNext.Calibration |
| 8 | open Lattice RG Wilson Source Source.Drops Labels Work Function Filter Next.Foundations Push.CutoffProjectors |
| 9 | open scoped Topology Matrix.Norms.Frobenius BigOperators ContDiff InnerProductSpace |
| 10 | variable {G : Gauge} {H : Hol G} {d : ℕ} |
| 11 | |
| 12 | def course (J : Jet G) (h : ℝ) : Snap G d := trunk d (scaleJet J h) |
| 13 | |
| 14 | lemma course_eq (J : Jet G) (h : ℝ) : course (d:=d) J h = stretch h (trunk d J) := rfl |
| 15 | |
| 16 | lemma course_smooth (J : Jet G) : ContDiff ℝ ω (course (d:=d) J) := by |
| 17 | refine contDiff_pi.mpr fun i => ?_ |
| 18 | have he {F : Type} [NormedAddCommGroup F] [NormedSpace ℝ F] (j : ℕ) (c : F) : ContDiff ℝ ω (fun t : ℝ => t^j • c) := (contDiff_id.pow j).smul contDiff_const |
| 19 | exact he _ (J i.val) |
| 20 | |
| 21 | lemma course_zero (J : Jet G) : course (d:=d) J 0=0 := by funext i; simp [course,trunk,scaleJet] |
| 22 | |
| 23 | lemma course_pays (J : Jet G) (θ h : ℝ) : H.links d (θ • J) h=native H d (θ • course J h) := by |
| 24 | unfold native; rw [scales H] |
| 25 | congr 2 |
| 26 | funext j; unfold course trunk scaleJet |
| 27 | simp [smul_comm _ θ] |
| 28 | |
| 29 | namespace Machine |
| 30 | variable (M : Machine H d) (F : Labels.Frame G d) |
| 31 | |
| 32 | /-- Filter screen for mass of energy valve at outlet i. -/ |
| 33 | def first (i : M.Outlet) : Coupon.Screen (Snap G d) := fun A => |
| 34 | (M.estimate (native H d A), M.tap i (sample (native H d A) (M.address i))) |
| 35 | |
| 36 | /-- Slides eye for the differentiated weights. Use positive link through |
| 37 | `left`, don't change masks/ledger for the derivative tests. -/ |
| 38 | def second (i : M.Outlet) (j : G.ColorIndex) : Coupon.Slides (Snap G d) := fun A => |
| 39 | let U := native H d A |
| 40 | let x := M.address i |
| 41 | let c := colors G j |
| 42 | (M.estimate U, left M.estimate x c U, M.channel i U c, left (fun V => M.channel i V c) x c U) |
| 43 | |
| 44 | private lemma picked {X : Type*} [NormedAddCommGroup X] [NormedSpace ℝ X] (f : CoverConfig G → X) (h : Small G f) : |
| 45 | ContDiffAt ℝ ω (fun A => f (native H d A)) 0 := by |
| 46 | obtain ⟨s,hs⟩ := h |
| 47 | exact hs.substituted fun i => (G02.linkGerm H d i.val).1.contDiffAt |
| 48 | |
| 49 | lemma smooth_first (i : M.Outlet) : ContDiffAt ℝ ω (M.first i) 0 := |
| 50 | (picked M.estimate M.small_estimate).prodMk |
| 51 | (picked _ ((Small.sample _).linear (M.tap i).toContinuousLinearMap)) |
| 52 | |
| 53 | lemma smooth_second (i : M.Outlet) (j : G.ColorIndex) : ContDiffAt ℝ ω (M.second i j) 0 := by |
| 54 | refine (picked M.estimate M.small_estimate).prodMk |
| 55 | ((picked _ (M.small_estimate.derivative (M.address i) (colors G j))).prodMk |
| 56 | ((picked _ (M.small_channel i (colors G j))).prodMk (picked _ ((M.small_channel i (colors G j)).derivative (M.address i) (colors G j))))) |
| 57 | |
| 58 | lemma first_zero (i : M.Outlet) : M.first i 0 = 0 := by simp [first,native_one,M.estimate_one,sample_one] |
| 59 | lemma second_zero (i : M.Outlet) (j : G.ColorIndex) : (M.second i j 0).1=0 := by simp [second,native_one,M.estimate_one] |
| 60 | |
| 61 | lemma init_estimate : fderiv ℝ (fun A : Snap G d => M.estimate (native H d A)) 0 = ContinuousLinearMap.id _ _ := by |
| 62 | let L := M.recover.toContinuousLinearMap |
| 63 | have he := L.hasFDerivAt.comp (0:Snap G d) M.smooth.differentiableAt.hasFDerivAt |
| 64 | have hh : (fun A : Snap G d => M.estimate (native H d A))= L ∘ bring H d M.loops := rfl |
| 65 | rw [hh,he.fderiv]; exact ContinuousLinearMap.ext M.lift_radial |
| 66 | |
| 67 | set_option maxHeartbeats 400000 in |
| 68 | lemma init_first (i : M.Outlet) (x : Snap G d) : fderiv ℝ (M.first i) 0 x = |
| 69 | (x,M.tap i (linearSample H d (M.address i) x)) := by |
| 70 | let A := fun y => M.estimate (native H d y) |
| 71 | let Z := fun y => sample (native H d y) (M.address i) |
| 72 | have ha : HasFDerivAt A (ContinuousLinearMap.id ℝ (Snap G d)) 0 := by |
| 73 | rw [← init_estimate M]; exact ((picked M.estimate M.small_estimate).differentiableAt (by simp)).hasFDerivAt |
| 74 | let L := (M.tap i).toContinuousLinearMap |
| 75 | have hb : HasFDerivAt Z (linearSample H d (M.address i)) 0 := |
| 76 | ((sample_smooth H (M.address i) (d:=d)).differentiableAt (by simp)).hasFDerivAt |
| 77 | have hh : M.first i=(fun y => (A y,(L ∘ Z) y)) := rfl |
| 78 | rw [hh,(ha.prodMk (L.hasFDerivAt.comp 0 hb)).fderiv]; rfl |
| 79 | |
| 80 | lemma complete (x : Snap G d) : (∑ i : M.Outlet, M.tap i (linearSample H d (M.address i) x)) = M.liftAll x := by |
| 81 | rw [Fintype.sum_sigma] |
| 82 | have ht (k : Level d) : (∑ i : ↥((M.filters k).addresses), M.tap ⟨k,i⟩ (linearSample H d (M.address ⟨k,i⟩) x)) = |
| 83 | firing k (M.liftLeg k x) := by |
| 84 | simp_rw [tap,address,LinearMap.comp_apply] |
| 85 | change (∑ i : ↥((M.filters k).addresses), firing k ((M.filters k).Z _))= _ |
| 86 | rw [← map_sum (firing k (G:=G)), ← map_sum (M.filters k).Z] -- namespace linear? |
| 87 | apply congr_arg; unfold liftLeg; rw [LinearMap.comp_apply]; apply congr_arg |
| 88 | funext j |
| 89 | rw [Finset.sum_apply]; simp [Pi.single_apply,Finset.sum_ite_eq] |
| 90 | rw [Finset.sum_congr rfl (fun i _ => ht i)]; unfold liftAll |
| 91 | funext j; rw [Finset.sum_apply]; simp [firing,Finset.sum_pi_single] |
| 92 | |
| 93 | lemma diagnostic (i : M.Outlet) (m : F.Index) (A : Snap G d) : |
| 94 | M.valve F m i (gradient (native H d A) (M.address i).1 (M.address i).2) (native H d A)= |
| 95 | Coupon.raw (shade F m) M.U (M.first i A) := rfl |
| 96 | |
| 97 | lemma differentiated (i : M.Outlet) (m : F.Index) (j : G.ColorIndex) (A : Snap G d) : |
| 98 | left (M.valve F m i (colors G j)) (M.address i) (colors G j) (native H d A)= |
| 99 | Coupon.marked (shade F m) M.U (M.second i j A) := by |
| 100 | obtain ⟨s,hs⟩ := M.small_estimate |
| 101 | obtain ⟨q,hq⟩ := M.small_channel i (colors G j) |
| 102 | have h1 := hs.authentic (native H d A) (M.address i) (colors G j) |
| 103 | have h2 := hq.authentic (native H d A) (M.address i) (colors G j) |
| 104 | have he := Cross.mix_deriv (shade F m) M.U h1 h2 |>.deriv |
| 105 | simp_rw [Empirical.at_nil] at he -- beta reduce? |
| 106 | exact he |
| 107 | |
| 108 | end Machine |
| 109 | end YM.ProjectorNext.Calibration |