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.Equation |
| 2 | import YM.ProjectorNext.PROJECTOR_CALIBRATION.Picks |
| 3 | |
| 4 | /-! |
| 5 | # Cash the finite stencil estimates at regulator or in precomputation |
| 6 | |
| 7 | Compute by smooth laws on 2 parameters at each d. |
| 8 | -/ |
| 9 | set_option autoImplicit false |
| 10 | noncomputable section |
| 11 | namespace YM.ProjectorNext.Calibration |
| 12 | open Lattice RG Wilson Source Source.Drops Labels Work Function Filter Next.Foundations Push.CutoffProjectors Coupon |
| 13 | open scoped Topology Matrix.Norms.Frobenius BigOperators ContDiff InnerProductSpace |
| 14 | variable {G : Gauge} {H : Hol G} {d : ℕ} |
| 15 | namespace Machine |
| 16 | variable (M : Machine H d) (F : Labels.Frame G d) |
| 17 | |
| 18 | /-- Value of each basis contribution on scaled native jets through order d. -/ |
| 19 | def calendar (i : F.Index) (k : Lens G d) (θ χ : ℝ) : ℂ := |
| 20 | let f (t : ℝ) := course (d:=d) k.1 t |
| 21 | iteratedDeriv (k.2:ℕ) (fun t => |
| 22 | (∑ w : M.Outlet, daylight (shade F i) M.U d (M.first w) θ (f t)) - |
| 23 | ∑ w : M.Outlet, ∑ j : G.ColorIndex, evening (shade F i) M.U d (M.second w j) θ χ (f t)) 0 |
| 24 | |
| 25 | set_option maxHeartbeats 500000 in |
| 26 | lemma smooth_calendar (i : F.Index) (k : Lens G d) : ContDiff ℝ ω (uncurry (M.calendar F i k)) := by |
| 27 | refine varies k.2.val (X:=ℝ × ℝ) (Y:=ℂ) (f:=fun (p : (ℝ × ℝ) × ℝ) => |
| 28 | (∑ w : M.Outlet, daylight (shade F i) M.U d (M.first w) p.1.1 (course k.1 p.2)) - |
| 29 | ∑ w : M.Outlet, ∑ j : G.ColorIndex, evening (shade F i) M.U d (M.second w j) p.1.1 p.1.2 (course k.1 p.2)) ?_ |
| 30 | let f (p : (ℝ × ℝ) × ℝ) : Snap G d := course k.1 p.2 |
| 31 | have hh : ContDiff ℝ ω f := (course_smooth k.1).comp contDiff_snd |
| 32 | apply ContDiff.sub |
| 33 | · refine ContDiff.sum fun w _ => (day_smooth (shade F i) M.U d (M.first w)).comp (f:=fun p : (ℝ × ℝ) × ℝ => (p.1.1,f p)) (contDiff_fst.fst.prodMk hh) |
| 34 | exact ContDiff.sum fun w _ => ContDiff.sum fun j _ => |
| 35 | (eve_smooth (shade F i) M.U d (M.second w j)).comp (f:=fun p : (ℝ × ℝ) × ℝ => (p.1.1,p.1.2,f p)) |
| 36 | (contDiff_fst.fst.prodMk (contDiff_fst.snd.prodMk hh)) |
| 37 | |
| 38 | /-- The limiting law on all the coefficient slots of interest to triangles. -/ |
| 39 | lemma as_recorded (i : F.Index) (k : Lens G d) : |
| 40 | M.calendar F i k 0 0 = iteratedDeriv k.2.val |
| 41 | (fun t => Cross.mix (shade F i) M.U (course k.1 t) (M.liftAll (course k.1 t))) 0 := by |
| 42 | unfold calendar |
| 43 | simp_rw [day_value,M.init_first,evening,zero_smul ℝ, Finset.sum_const_zero,sub_zero] |
| 44 | apply congr_arg (fun f => iteratedDeriv k.2.val f 0) |
| 45 | funext t |
| 46 | simp_rw [← _root_.map_sum, M.complete] -- continuouslinear map sum |
| 47 | |
| 48 | private def stencilInput (i : F.Index) (k : Lens G d) (θ β t : ℝ) := |
| 49 | let U := H.links d (θ • k.1) t |
| 50 | θ⁻¹^(F.grades i).2 • (M.energyLeg F i U - β⁻¹ • M.divLeg F i U) |
| 51 | |
| 52 | private lemma joint {I J : Type*} [Fintype I] [Fintype J] (k : ℕ) {Y : I → ℝ → ℂ} {D : I → J → ℝ → ℂ} |
| 53 | (hy : ∀ i, ContDiffAt ℝ (k:WithTop ℕ∞) (Y i) 0) (hd : ∀ i j, ContDiffAt ℝ (k:WithTop ℕ∞) (D i j) 0) : |
| 54 | iteratedDeriv k (fun t => (∑ i,Y i t) - ∑ i, ∑ j,D i j t) 0 = (∑ i, iteratedDeriv k (Y i) 0) - ∑ i,∑ j,iteratedDeriv k (D i j) 0 := by |
| 55 | rw [iteratedDeriv_fun_sub (ContDiffAt.sum fun i _ => hy i) (ContDiffAt.sum fun i _ => ContDiffAt.sum fun j _ => hd i j),iteratedDeriv_fun_sum (fun i _ => hy i), iteratedDeriv_fun_sum (fun i _ => ContDiffAt.sum fun j _ => hd i j)] |
| 56 | simp_rw [iteratedDeriv_fun_sum (fun i _ => hd _ i)] |
| 57 | |
| 58 | set_option maxHeartbeats 500000 in |
| 59 | private lemma raw_law (i : F.Index) (k : Lens G d) (θ β : ℝ) (ht : θ≠0) : |
| 60 | iteratedDeriv k.2.val (M.stencilInput F i k θ β) 0 = M.calendar F i k θ (β⁻¹/θ^2) ∧ |
| 61 | ContDiffAt ℝ (k.2.val:WithTop ℕ∞) (M.stencilInput F i k θ β) 0 := by |
| 62 | let χ := β⁻¹ /θ^2 |
| 63 | let f (t : ℝ) : Snap G d := course k.1 t |
| 64 | let T := θ⁻¹^(F.grades i).2 |
| 65 | have hβ : β⁻¹=χ*θ^2 := (div_mul_cancel₀ _ (pow_ne_zero 2 ht)).symm |
| 66 | let Y (w : M.Outlet) (t : ℝ) : ℂ := T • raw (shade F i) M.U (M.first w (θ • f t)) |
| 67 | let Z (w : M.Outlet) (j : G.ColorIndex) (t : ℝ) : ℂ := T • ((χ*θ^2) • marked (shade F i) M.U (M.second w j (θ • f t))) |
| 68 | have he : M.stencilInput F i k θ β = fun t => (∑ w,Y w t)-∑ w,∑ j,Z w j t := by |
| 69 | funext t; unfold stencilInput; simp_rw [energyLeg,divLeg,smul_sub,Finset.smul_sum,course_pays, diagnostic,differentiated, hβ]; rfl |
| 70 | rw [he]; unfold calendar |
| 71 | let n : WithTop ℕ∞ := k.2.val |
| 72 | let J := k.1 |
| 73 | have hy (w) : ContDiffAt ℝ n (Y w) 0 := ((contDiffAt_const (c:=T)).smul |
| 74 | (sensed θ (smooth_first M w) (raw_smooth (shade F i) M.U) (course_smooth J) (course_zero J))).of_le (show n≤ω from le_top) |
| 75 | have hz (w j) : ContDiffAt ℝ n (Z w j) 0 := ((contDiffAt_const (c:=T)).smul ((contDiffAt_const (c:=χ*θ^2)).smul |
| 76 | (sensed θ (smooth_second M w j) (marked_smooth (shade F i) M.U) (course_smooth J) (course_zero J)))).of_le (show n≤ω from le_top) |
| 77 | refine ⟨?_, (ContDiffAt.sum fun w _ => hy w).sub (ContDiffAt.sum fun w _ => ContDiffAt.sum fun j _ => hz w j)⟩ |
| 78 | let L (w : M.Outlet) (t : ℝ) := daylight (shade F i) M.U d (M.first w) θ (f t) |
| 79 | let V (w : M.Outlet) (j : G.ColorIndex) (t : ℝ) := evening (shade F i) M.U d (M.second w j) θ χ (f t) |
| 80 | have hL (w : M.Outlet) : ContDiffAt ℝ n (L w) 0 := ((day_smooth (shade F i) M.U d (M.first w)).comp (f:=fun t => (θ,f t)) |
| 81 | (contDiff_const.prodMk (course_smooth J))).contDiffAt.of_le le_top |
| 82 | have hV (w j) : ContDiffAt ℝ n (V w j) 0 := ((eve_smooth (shade F i) M.U d (M.second w j)).comp (f:=fun t => (θ,χ,f t)) |
| 83 | (contDiff_const.prodMk (contDiff_const.prodMk (course_smooth J)))).contDiffAt.of_le le_top |
| 84 | rw [joint _ hy hz, joint _ hL hV] -- definal D funcs? |
| 85 | have hk := k.2.isLt.le |
| 86 | simp_rw [show ∀ w, iteratedDeriv k.2.val (Y w) 0=iteratedDeriv k.2.val (L w) 0 from fun w => cash (shade F i) M.U d _ hk (smooth_first M w) (first_zero M w) (course_smooth J) (course_zero J) ht, |
| 87 | show ∀ w j, iteratedDeriv k.2.val (Z w j) 0=iteratedDeriv k.2.val (V w j) 0 from fun w j => cash_div (shade F i) M.U d _ hk (smooth_second M w j) (second_zero M w j) (course_smooth J) (course_zero J) ht] |
| 88 | |
| 89 | variable {C : Family G} (M₀ : Machine C.params d) {N p : ℕ} (E : Packet C d N p) |
| 90 | |
| 91 | theorem calendar_eq {s : Finset Cover} (h : M₀.Release s) (hn : ∀ x∈s,∀ a : Axis, 20*((x a).natAbs+1)≤(C.side N p).val) |
| 92 | (he : M₀.lined E) (x : equationSpace (C.labels.level d)) (k : Lens G d) : |
| 93 | E.amount x k = let F := C.labels.level d; let θ := C.path.levels.clock.threshold N |
| 94 | ∑ i : F.Index, x.val i * M₀.calendar F i k θ ((C.beta N p)⁻¹/θ^2) := by |
| 95 | dsimp only |
| 96 | rw [amount_eq M₀ E h hn he]; dsimp only |
| 97 | let F := C.labels.level d |
| 98 | let θ := C.path.levels.clock.threshold N |
| 99 | let β := C.beta N p |
| 100 | have ht : θ≠0 := (C.path.levels.budget N).threshold_pos.ne' |
| 101 | let f (i : F.Index) := M₀.stencilInput F i k θ β |
| 102 | have hh i := raw_law M₀ F i k θ β ht |
| 103 | have hd (t : ℝ) (i : F.Index) : |
| 104 | (↑(θ⁻¹ ^ (F.grades i).2) : ℂ)* (x.val i) * |
| 105 | (M₀.energyLeg F i (C.params.links d (θ • k.1) t) - (↑β : ℂ)⁻¹ * M₀.divLeg F i (C.params.links d (θ • k.1) t)) = |
| 106 | x.val i * f i t := by simp only [f,stencilInput,Complex.real_smul,Complex.ofReal_inv]; ring |
| 107 | let R (i : F.Index) (t : ℝ) := (↑(θ⁻¹ ^ (F.grades i).2) : ℂ)* (x.val i) * |
| 108 | (M₀.energyLeg F i (C.params.links d (θ • k.1) t)-(↑β : ℂ)⁻¹*M₀.divLeg F i (C.params.links d (θ • k.1) t)) |
| 109 | change iteratedDeriv k.2.val (fun t => ∑ i : F.Index, R i t) 0 = _ |
| 110 | have hR (i t) : R i t=x.val i * f i t := hd .. |
| 111 | simp_rw [hR] |
| 112 | rw [iteratedDeriv_fun_sum (fun i _ => contDiffAt_const.mul (hh i).2)] |
| 113 | refine Finset.sum_congr rfl fun i _ => ?_ |
| 114 | rw [iteratedDeriv_const_mul _ (hh i).2]; exact congr_arg _ (hh i).1 |
| 115 | |
| 116 | end Machine |
| 117 | end YM.ProjectorNext.Calibration |