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.Progress.STATIONARY_SCENES.Probe |
| 2 | |
| 3 | |
| 4 | /-! |
| 5 | # Post-L, flat, uncut no-hole active Hessian inverse |
| 6 | |
| 7 | Consumer inspired. Literal matrix on ANY tested tree, |
| 8 | physical charts. Not a contour estimate, nor differentiation in fields, nor |
| 9 | the more stringent joint matrix gaps (pre-L). Do not infer that cut/affine |
| 10 | versions or interpolations have these bounds -- here not using A_W of any |
| 11 | post-mask-reblocking procedure. No theta scheduling for NONZERO backgrounds |
| 12 | needed; don't use those versions without extra proof! |
| 13 | -/ |
| 14 | set_option autoImplicit false |
| 15 | noncomputable section |
| 16 | namespace YM.Progress.StationaryScenes |
| 17 | open Filter Lattice RG RG.Supply Wilson Precision Bid Function Matrix Exterior Bloch Tree |
| 18 | open scoped Topology Matrix.Norms.Frobenius ContDiff BigOperators |
| 19 | namespace Green |
| 20 | |
| 21 | variable {G : Gauge} {c f : Side} {S : StepData c f} |
| 22 | variable {F : Forest S.ratio} {p : Clip} {P : PathData G} {D : Bed} |
| 23 | |
| 24 | lemma vertical (t : S.Choices) (h : Prismatic F p P) (hc : Comptroller F D p P) |
| 25 | (v w : AxisChart G F) : |
| 26 | iteratedFDeriv ℝ 2 (tested F t p P 0) 0 ![v,w] = |
| 27 | iteratedFDeriv ℝ 2 (uncurry (tested F t p P)) 0 ![(0,v),(0,w)] := by |
| 28 | let g := uncurry (tested F t p P) |
| 29 | let L := ContinuousLinearMap.inr ℝ (Dir G c) (AxisChart G F) |
| 30 | change iteratedFDeriv ℝ 2 (g ∘ L) 0 _ = _ |
| 31 | rw [(Work.F03.hessian_comp (g := L) (map_zero L) (show ContDiffAt ℝ 2 g 0 from |
| 32 | (h t).of_le le_top) (L.contDiff.contDiffAt) ((hc t).2.1)).2,L.fderiv]; rfl |
| 33 | |
| 34 | /-- In flat, vertical (H slice) charts. -/ |
| 35 | def actual (S : StepData c f) (D : Bed) := |
| 36 | K (D.metric.acts f)+ S.kernel.penalty • ((probe S).transpose*probe S) |
| 37 | |
| 38 | /-- Even though the stationary action is nonabelian, in these FLAT Hessians |
| 39 | there are no off-color terms. Tree select as principal subset. -/ |
| 40 | lemma price_pair (t : S.Choices) (h : Prismatic F p P) (hc : Comptroller F D p P) |
| 41 | (v w : AxisChart G F) : |
| 42 | let f (x : AxisChart G F) := parts G 1 (stretch F (0,x)) |
| 43 | iteratedFDeriv ℝ 2 (tested F t p P 0) 0 ![v,w] = ∑ i : G.ColorIndex, |
| 44 | dotProduct (f v i) (actual S D *ᵥ f w i) := by |
| 45 | intro g |
| 46 | rw [vertical t h hc,(hc t).2.2, Work.F04.counting_inner] |
| 47 | unfold gaugeFiscal; rw [Finset.mul_sum, ← Finset.sum_add_distrib]; apply Finset.sum_congr rfl; intro i _ |
| 48 | have he (v : AxisChart G F) : parts G 1 (crop F (0,v)) i = -(probe S *ᵥ g v i) := by |
| 49 | rw [Work.F04.parts_crop, show parts G 1 (0 : Dir G c) i=0 from rfl]; exact zero_sub _ |
| 50 | rw [actual,Matrix.add_mulVec,dotProduct_add, Matrix.smul_mulVec,dotProduct_smul, |
| 51 | ← Matrix.mulVec_mulVec, Matrix.dotProduct_mulVec _ ((probe S).transpose), Matrix.vecMul_transpose, |
| 52 | he, he, neg_dotProduct,dotProduct_neg, neg_neg]; rfl |
| 53 | |
| 54 | /-- Lift a free link to its physical counting index (no coloring). -/ |
| 55 | def link (F : Forest S.ratio) : F.Free ↪ Body 1 f := |
| 56 | (Function.Embedding.subtype _).trans (Equiv.prodCongr (Equiv.refl _) axisEquiv).toEmbedding |
| 57 | |
| 58 | def address (F : Forest S.ratio) (x : Key F G) := x.1.val.1 |
| 59 | |
| 60 | lemma frame_input (x : Key F G) (i : G.ColorIndex) : parts G 1 (stretch F (0,frame F x)) i = |
| 61 | if i=x.2 then Pi.single (link F x.1) 1 else 0 := by |
| 62 | rcases x with ⟨e,b⟩ |
| 63 | ext1 z |
| 64 | rcases z with ⟨z,j⟩ |
| 65 | obtain ⟨j,rfl⟩ := axisEquiv.surjective j |
| 66 | change collect G (stretch F (0,frame F (e,b))) (z,j) i = _ |
| 67 | rw [Work.F01.collect_vertical] |
| 68 | by_cases hh : (z,j)∈F.trunks |
| 69 | · rw [dif_pos hh] |
| 70 | have hf : (z,axisEquiv j)≠link F e := by |
| 71 | intro hZ |
| 72 | have hz : (z,j)=e.val := (Equiv.prodCongr (Equiv.refl _) axisEquiv).injective hZ |
| 73 | rw [hz] at hh; exact e.property hh |
| 74 | split |
| 75 | · rw [Pi.single_eq_of_ne hf]; rfl |
| 76 | rfl |
| 77 | rw [dif_neg hh] |
| 78 | let l : F.Free := ⟨(z,j),hh⟩ |
| 79 | change frame F (e,b) l i = (ite (i=b) (Pi.single (link F e) 1) (0 : Body 1 f → ℝ)) (link F l) |
| 80 | unfold frame; by_cases hw : l=e |
| 81 | · rw [hw] |
| 82 | by_cases hu : i=b |
| 83 | · subst i; simp |
| 84 | simp [hu,EuclideanSpace.basisFun_apply] |
| 85 | rw [Pi.single_eq_of_ne hw] |
| 86 | have hx := (link F).injective.ne hw |
| 87 | split |
| 88 | · rw [Pi.single_eq_of_ne hx]; rfl |
| 89 | rfl |
| 90 | |
| 91 | lemma entries (t : S.Choices) (h : Prismatic F p P) (hc : Comptroller F D p P) |
| 92 | (i j : Key F G) : |
| 93 | hessian F t p P 0 0 i j = if i.2=j.2 then actual S D (link F i.1) (link F j.1) else 0 := by |
| 94 | rw [hessian, Matrix.of_apply, price_pair t h hc]; simp_rw [frame_input] |
| 95 | rw [Finset.sum_eq_single i.2] |
| 96 | · by_cases hh : i.2=j.2 <;> simp [hh] |
| 97 | · intro b _ hb; rw [if_neg hb]; simp |
| 98 | simp |
| 99 | |
| 100 | lemma symmetric (t : S.Choices) (h : Prismatic F p P) : |
| 101 | IsHermitian (hessian F t p P 0 0) := by |
| 102 | have hs := (Work.F05.hold_jet (x := (0: Dir G c)) (y := (0: AxisChart G F)) (h t)).isSymmSndFDerivAt_of_omega |
| 103 | ext i j; simp_rw [hessian, conjTranspose_apply,star_trivial,of_apply,iteratedFDeriv_two_apply] |
| 104 | exact hs .. |
| 105 | |
| 106 | /-- The ambient invoice for all forests. -/ |
| 107 | def reserve (r L : ℕ) (η C k : ℝ) := |
| 108 | 1+max 0 (kinetic η C + |k| *(sideCount r L η * sideCount r L η)) |
| 109 | |
| 110 | theorem ticket (t : S.Choices) (hp : Prismatic F p P) (hc : Comptroller F D p P) |
| 111 | {η C : ℝ} (he : 0 ≤ η) (h : D.metric.strip η C) : |
| 112 | let H := hessian F t p P 0 0 |
| 113 | let B := reserve S.patch.radius S.patch.L.val η C S.kernel.penalty |
| 114 | Both (address F) (address F) H η B B := by |
| 115 | intro H B |
| 116 | have hw := probe_budget S η he |
| 117 | have hv : Rows Prod.fst Prod.fst (actual S D) η B := by |
| 118 | have hc : 0 ≤ fee S.patch.radius S.patch.L.val := by unfold fee; positivity |
| 119 | have h₁ := Rows.multiply he hw.2 hw.1 (by unfold sideCount; dsimp only; positivity) |
| 120 | have ha := (kinetic_price f D h he).plus (h₁.pay S.kernel.penalty) |
| 121 | exact fun i => (ha i).trans ((le_max_right ..).trans ((le_add_of_nonneg_left (by norm_num)))) |
| 122 | have hX (x y : Key F G) := entries t hp hc x y |
| 123 | have hg : Rows (address F) (address F) H η B := by |
| 124 | intro i |
| 125 | apply le_trans _ (hv.restrict (link F) (link F) i.1) |
| 126 | rw [Fintype.sum_prod_type] |
| 127 | apply Finset.sum_le_sum |
| 128 | intro y _ |
| 129 | rw [Finset.sum_eq_single i.2] |
| 130 | · unfold H; rw [hX, if_pos rfl]; exact le_rfl |
| 131 | · intro x _ hx; unfold H; rw [hX,if_neg (show ¬_ from hx.symm),abs_zero,mul_zero] |
| 132 | simp |
| 133 | have hs : H.transpose=H := by |
| 134 | have he := symmetric t hp; ext i j |
| 135 | rw [show H.transpose i j=star (H j i) from (star_trivial _).symm] |
| 136 | exact congr_fun (congr_fun he i) j |
| 137 | exact ⟨hg,hs.symm ▸ hg⟩ |
| 138 | |
| 139 | lemma basis_count (x : AxisChart G F) : |
| 140 | let B := Work.F05.countingBasis F G |
| 141 | ∑ i, ‖x i‖^2 = dotProduct (B.equivFun x) (B.equivFun x) := by |
| 142 | intro B |
| 143 | let a := B.equivFun x |
| 144 | have he (y : Key F G) : x y.1 y.2 = a y := by |
| 145 | let dot : AxisChart G F →ₗ[ℝ] ℝ := (LinearMap.comp (LinearMap.proj y.2) |
| 146 | (WithLp.linearEquiv 2 ℝ _).toLinearMap : G.Color →ₗ[ℝ] ℝ).comp (LinearMap.proj y.1) |
| 147 | calc |
| 148 | x y.1 y.2 = dot x := rfl |
| 149 | _ = dot (∑ i, a i • B i) := by rw [show (∑ i, a i • B i) = x from B.sum_equivFun x] |
| 150 | _ = _ := by |
| 151 | rw [map_sum,Finset.sum_eq_single y] |
| 152 | · rw [map_smul]; change a y * dot (B y) = _ |
| 153 | unfold B; rw [Work.F05.countingBasis_apply]; change a y * frame F y y.1 y.2 = _ |
| 154 | simp [frame] |
| 155 | · rintro ⟨x,i⟩ _ hi; rw [map_smul,show B (x,i)=_ from Work.F05.countingBasis_apply F G (x,i)] |
| 156 | change a (x,i) * frame F (x,i) y.1 y.2 = _ |
| 157 | by_cases hh : y.1=x |
| 158 | · have hk : y.2 ≠ i := fun H => hi (Prod.ext hh.symm H.symm) |
| 159 | simp [frame, hh,hk, EuclideanSpace.basisFun_apply] |
| 160 | unfold frame; rw [Pi.single_eq_of_ne (show y.1 ≠ _ from hh)]; simp |
| 161 | simp |
| 162 | rw [dotProduct,Fintype.sum_prod_type] |
| 163 | refine Finset.sum_congr rfl fun i _ => ?_ |
| 164 | rw [EuclideanSpace.real_norm_sq_eq] |
| 165 | apply Finset.sum_congr rfl; intro b _ |
| 166 | rw [he (i,b),pow_two] |
| 167 | |
| 168 | lemma counted (t : S.Choices) {r : ℝ} (h : PriceGap F p P r) : |
| 169 | Bottom (hessian F t p P 0 0) r := by |
| 170 | let B := Work.F05.countingBasis F G |
| 171 | intro v |
| 172 | have hh := basis_count (S := S) (F := F) (B.equivFun.symm v) |
| 173 | change _ = dotProduct (B.equivFun (B.equivFun.symm v)) _ at hh |
| 174 | rw [LinearEquiv.apply_symm_apply] at hh |
| 175 | rw [← hh, Work.F05.hessian_eq] |
| 176 | have he := dotProduct_toMatrix₂_mulVec B B (Work.F05.bend (tested F t p P 0) 0) v v |
| 177 | apply le_trans (h t _); apply le_of_eq |
| 178 | exact (Work.F05.bend_apply _ _ _ _).symm.trans he.symm |
| 179 | |
| 180 | /-- Freeze THESE costs immediately after buying eta; before β, p's/waits, N's |
| 181 | and path correction work. Physical applicability on the priced stages below. -/ |
| 182 | def factor (r C : ℝ) := min 1 ((r/2)/C) |
| 183 | |
| 184 | |
| 185 | end Green |
| 186 | |
| 187 | open Green |
| 188 | variable {G : Gauge} |
| 189 | |
| 190 | |
| 191 | end YM.Progress.StationaryScenes |