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.TraceExtension.Perfect.Zinnia |
| 2 | |
| 3 | /-! # heading P and Q in finite tensor spans -/ |
| 4 | set_option autoImplicit false |
| 5 | noncomputable section |
| 6 | namespace YM.Trace.Perfect |
| 7 | open Function Filter Matrix Lattice Precision Laurent Stationary Bloch Exterior Tree RG Wilson Finset Planned.PrimaryIntegral295 Next.Free Asymptotics |
| 8 | open scoped BigOperators Topology ContDiff Matrix.Norms.Frobenius Classical |
| 9 | variable {G:Gauge}{c f:Side} |
| 10 | local notation "V"=> TypeFace 1 |
| 11 | variable (S:StepData c f)(W:CrossA S.ratio.count)(x:Site f) |
| 12 | -- coefficient monomials actual position w |
| 13 | private def paintK {A:TypeFace 1→Body 1 c→ℝ} (b:Loc G 1) (i:Lines G c 1):= if i.2.2=b.2 then A b.1 (i.1,i.2.1) else 0 |
| 14 | def ore (b:Loc G 1) (p : Axis):pairA G c→ℝ:=Sum.elim (paintK (A:=fun u=> Perfect.move (cab S.ratio W x u) p 0) b) 0 |
| 15 | def nug (b:Loc G 1)(i j:Axis):pairA G c→ℝ:= Sum.elim (paintK (A:=fun u=> Perfect.move (Perfect.move (cab S.ratio W x u) i) j 0) b) 0 |
| 16 | def fed (b:Loc G 1): pairA G c→ℝ:= Sum.elim (fun _=>0) (paintK (A:=fun u=> Perfect.trench S x (0,u)) b) |
| 17 | |
| 18 | private lemma icon_zero (s:Lines G c 1)(v:Lines G f 1): palest 0 v s= 0:=by |
| 19 | rcases s with ⟨i,x,y⟩;rcases v with ⟨t,j,k⟩; rw [palest, show uniformM _ _ _=_ from gate_f 0 (t,j) k (i,x) y]; simp |
| 20 | |
| 21 | lemma as_pen (u: Lines G f 1)(z:pairA G c): amber S W x (Sum.inl u) z = ∑ a:Axis, RowGrade.price (.foot a) (lift (u.1-x))*ore S W x u.2 a z:=by |
| 22 | rcases u with ⟨i,v,b⟩; cases z with |
| 23 | | inr z=> simp only [ore,Sum.elim_inr,Pi.zero_apply,mul_zero,sum_const_zero];rfl |
| 24 | | inl z=> |
| 25 | obtain ⟨p,y,d⟩:= z; unfold amber doubling palest; dsimp only [Sum.elim_inl] |
| 26 | rw [show uniformM _ _ _=_ from gate_f _ (i,v) b (p,y) d]; split <;> rename_i h |
| 27 | · change lin _ _ _=_; simp only [lin,Finset.sum_apply,Pi.smul_apply,ore,paintK, h, ↓reduceIte,Sum.elim_inl]; rfl |
| 28 | simp [ore,paintK,h] |
| 29 | lemma amber_cal (u:Lines G f 1): ∀ z:pairA G c, amber S W x (.inr u) z=0:=by rintro (z|z);rfl; exact icon_zero _ _ |
| 30 | lemma as_dan (u : Lines G f 1)(z:pairA G c): aquifer S W x (.inl u) z=∑ a:Axis,∑ b:Axis, quadT a b (lift (u.1-x))* nug S W x u.2 a b z:=by |
| 31 | rcases u with ⟨v,l,x₀⟩; cases z with |
| 32 | | inl z=> rcases z with ⟨i,j,b⟩; unfold aquifer doubling palest; dsimp only [Sum.elim_inl];rw [show uniformM _ _ _=_ from gate_f _ (v,l) x₀ (i,j) b]; split <;> rename_i h |
| 33 | · change ((quad _ _) _)= _; simp only [quad,Finset.sum_apply,nug,paintK,Pi.smul_apply,h, ↓reduceIte,Sum.elim_inl]; rfl |
| 34 | simp [nug,paintK,h] |
| 35 | | inr z=>simp [aquifer,doubling,nug] |
| 36 | lemma aquas (u : Lines G f 1)(z:pairA G c): aquifer S W x (.inr u) z=fed S x u.2 z:=by |
| 37 | rcases u with ⟨v,p,j⟩; cases z |
| 38 | · rfl |
| 39 | next z=> rcases z with ⟨q,i,w⟩; unfold aquifer doubling fed paintK; dsimp only [Sum.elim_inr]; unfold palest; rw [show uniformM _ _ _ = _ from gate_f _ (v,p) j (q,i) w]; rfl |
| 40 | |
| 41 | -- payment from SETTLE, bound second coefficients via samples polynomial finite torus; `nug` double derivative cross symmetric |
| 42 | lemma nug_tie (b : Loc G 1)(i j:Axis): nug S W x b i j=nug S W x b j i:=by |
| 43 | ext1 z; unfold nug paintK; simp_rw [move_swap (x:=0) (i:=i) (j:=j)] |
| 44 | |
| 45 | lemma lifted_test (v:Cover)(a:Axis)(i:Axis): RowGrade.price (.foot a) v=(v a:ℝ):=rfl |
| 46 | |
| 47 | -- P row salary from steps |
| 48 | lemma orbitC (h:11≤ f.val)(p:Axis)(u:Loc G 1): amber S W x (.inl (x+step p,u))= ore S W x u p:=by |
| 49 | have he : lift ((x+step p)-x)=step p:=by |
| 50 | rw [add_comm x, add_sub_cancel_right]; apply lift_eq_iff.mpr ⟨by simp, fun i=>?_⟩; by_cases H:i=p <;> simp [H] <;> omega |
| 51 | ext1 i; rw [as_pen]; dsimp only; rw [he,sum_eq_single p] |
| 52 | · simp [RowGrade.price] |
| 53 | · intro j _ hk; simp [RowGrade.price,hk] |
| 54 | simp |
| 55 | -- Q on diag: 2step -> exactly nug. Q off: step+step -> canonical kernel. |
| 56 | lemma mineC (h:11 ≤ f.val)(p q:Axis)(u:Loc G 1): aquifer S W x (.inl (x+ step p +step q,u))= nug S W x u p q:=by |
| 57 | have hZ: lift ((x+step p+step q)-x)=step p+step q:=by |
| 58 | apply lift_eq_iff.mpr ⟨by simp only [map_add,wrap_step]; abel, fun i=> ?_⟩; by_cases ht:i=p <;> by_cases hv:i=q <;> simp [*,Ne.symm] <;> omega |
| 59 | funext i; rw [as_dan]; dsimp only; rw [hZ]; by_cases hh:q=p |
| 60 | · subst q; rw [sum_eq_single p,sum_eq_single p];rotate_left |
| 61 | · intro j _ h; simp [quadT,h,Ne.symm h] |
| 62 | · simp |
| 63 | · intro j _ h; apply Finset.sum_eq_zero; intro k _; by_cases he: j=k <;> first| (subst k; simp [h,quadT])|simp [he,h,quadT] |
| 64 | · simp |
| 65 | norm_num [quadT] |
| 66 | have hp (j:Axis)(hj:j≠p)(hh':j≠q): ∑ a, quadT j a (step p+step q) * nug S W x u j a i=0:= by |
| 67 | apply sum_eq_zero; intro a _; simp [quadT,hj,hh'] |
| 68 | rw [← add_sum_erase _ _ (Finset.mem_univ p), sum_eq_single (s:=univ.erase p) q]; rotate_left |
| 69 | · intro b hb ht; exact hp b (mem_erase.mp hb|>.1) ht |
| 70 | · simp [hh] |
| 71 | rw [sum_eq_single (s:=univ) q,sum_eq_single (s:=univ) p]; rotate_left |
| 72 | · intro b _ h; by_cases hb:b=q <;> simp [quadT, h,hh,hb, eq_comm] <;> simp [Ne.symm hb] |
| 73 | · simp |
| 74 | · intro b _ he; by_cases hb:b=p <;> simp [quadT,hh,he,hb, Ne.symm hh, eq_comm] <;> simp [Ne.symm hb] |
| 75 | · simp |
| 76 | rw [nug_tie S W x u q p]; simp [quadT,Ne.symm hh, hh]; ring |
| 77 | end YM.Trace.Perfect |
| 78 | namespace YM.Trace.Perfect |
| 79 | open Function Filter Matrix Lattice Precision Laurent Stationary Bloch Exterior Tree RG Wilson Finset Planned.PrimaryIntegral295 Next.Free Asymptotics RowGrade |
| 80 | open scoped BigOperators Topology ContDiff Matrix.Norms.Frobenius Classical |
| 81 | variable {c f:Side}{G:Gauge}(S:StepData c f)(W:CrossA S.ratio.count)(x:Site f) |
| 82 | |
| 83 | abbrev Ore (G:Gauge):= Loc G 1× Axis |
| 84 | abbrev Bar (G:Gauge):= (Loc G 1×Axis×Axis) ⊕ Loc G 1 |
| 85 | def meshOre (x:Ore G)(o:Site f): Acr G f:= ballad (.foot x.2,x.1) o |
| 86 | def meshBar (x:Bar G)(o:Site f): Acr G f:= x.elim (fun p=> Sum.elim (fun v:Lines G f 1=> if v.2=p.1 then quadT p.2.1 p.2.2 (lift (v.1-o)) else 0) 0) (fun v=> ballad (.watch,v) o) |
| 87 | def carnel (x':Ore G):= ore S W x x'.1 x'.2 |
| 88 | def lagoon (x':Bar G): pairA G c→ℝ:= x'.elim (fun v=>nug S W x v.1 v.2.1 v.2.2) (fed S x) |
| 89 | lemma surface (i:pairA G c): (fun j=> amber S W x j i)=∑ v:Ore G, carnel S W x v i • meshOre v x:=by |
| 90 | ext1 j; rw [Finset.sum_apply]; unfold carnel meshOre; cases j |
| 91 | next j=> rw [as_pen,Fintype.sum_prod_type,Finset.sum_eq_single j.2]; rotate_left |
| 92 | · intro a _ h; apply Finset.sum_eq_zero; intro _ _; simp [ballad,strollT,Ne.symm h] |
| 93 | · simp |
| 94 | apply Finset.sum_congr rfl; intro i _; simp [ballad,strollT,mul_comm] |
| 95 | next j=> rw [amber_cal]; simp [ballad] |
| 96 | lemma waters (i:pairA G c): (fun j=> aquifer S W x j i)=∑ v:Bar G, lagoon S W x v i • meshBar v x:=by |
| 97 | ext1 j; rw [Finset.sum_apply,Fintype.sum_sum_type]; unfold lagoon meshBar; cases j |
| 98 | next j=> rw [as_dan,Fintype.sum_prod_type, Finset.sum_eq_single j.2]; rotate_left |
| 99 | · intro a _ h; apply Finset.sum_eq_zero; intro _ _; simp [ballad, Ne.symm h] |
| 100 | · simp |
| 101 | rw [Fintype.sum_prod_type]; simp [ballad]; apply Finset.sum_congr rfl; intro i _; apply Finset.sum_congr rfl; intro v _; exact mul_comm .. |
| 102 | next j=> rw [aquas]; simp [ballad,strollT,mul_ite,price] |
| 103 | lemma economize {L C α:ℝ}{V:pairA G f→ pairA G c → ℝ}{R:pairA G c →ℕ}{t:ℕ}(hz:0≤α) (h:Settle R (landW x) V (amber S W x) (aquifer S W x) α t L C)(hF:11≤f.val)(hp:1 ≤ L) (hc:0≤C): |
| 104 | (∀ i, sh R α t 0 (carnel S W x i) ≤ 2*C) ∧ (∀ i,sh R α t 0 (lagoon S W x i) ≤ 9*C):=by |
| 105 | constructor |
| 106 | · rintro ⟨b,i⟩; unfold carnel; rw [← orbitC S W x hF]; let k : pairA G f:=Sum.inl (x+step i,b); refine (h.p k).trans ?_ |
| 107 | have hv: (landW x k:ℝ) ≤ 1:=by |
| 108 | change (separation x (x+step i):ℝ) ≤ _; rw [separation_comm,separation,add_comm x,add_sub_cancel_right]; exact_mod_cast pdist_step (n:=f) i |
| 109 | rw [mul_comm 2]; apply mul_le_mul_of_nonneg_left _ hc; apply le_trans (div_le_self (by positivity) (one_le_pow₀ hp));linarith |
| 110 | rintro (⟨v,u,z⟩|v) |
| 111 | · unfold lagoon; simp only [Sum.elim_inl]; rw [← mineC S W x hF]; let k : pairA G f:=Sum.inl (x+step u+step z,v); refine (h.q k).trans ?_ |
| 112 | have hv: (landW x k:ℝ) ≤ 2:=by |
| 113 | have hz(j:Site f)(i:Axis): separation j (j+step i) ≤ 1:=by rw [separation_comm,separation,add_comm j,add_sub_cancel_right]; exact pdist_step _ |
| 114 | exact_mod_cast ((separation_triangle x (x+step u) (x+step u+step z)).trans (Nat.add_le_add (hz x u) (hz (x+step u) z))) |
| 115 | rw [mul_comm 9]; apply mul_le_mul_of_nonneg_left _ hc; apply le_trans (div_le_self (by positivity) (one_le_pow₀ hp)); nlinarith [Nat.cast_nonneg (α:=ℝ) (landW x k)] |
| 116 | unfold lagoon; simp only [Sum.elim_inr]; rw [← show aquifer S W x (.inr (x,v))=fed S x v from funext (aquas S W x (x,v))]; refine (h.q _).trans ?_ |
| 117 | simp only [landW, separation_self,Nat.cast_zero,add_zero,one_pow]; rw [mul_comm 9]; apply mul_le_mul_of_nonneg_left _ hc; exact (div_le_self zero_le_one (one_le_pow₀ hp)).trans (by norm_num) |
| 118 | |
| 119 | lemma slotAg (a b:Axis)(x:Cover) : quadT a b x=((paw a b).price x - 1/4*(paw a a).price x- 1/4*(paw b b).price x)/4 -(if a=b then (1/2:ℝ) else 0) * (foot a).price x:=by unfold quadT; unfold price; dsimp only; split <;> ring |
| 120 | -- need independent λ |
| 121 | lemma prism_foot (v : Loc G 1)(a b : Axis)(x:Site f): |
| 122 | meshBar (Sum.inl (v,a,b)) x= (1/4:ℝ) • (ballad (paw a b,v) x - (1/4:ℝ) • ballad (paw a a,v) x - (1/4:ℝ) • ballad (paw b b,v) x) - (if a=b then (1/2:ℝ) else 0) • ballad (foot a,v) x:=by |
| 123 | ext1 i; cases i |
| 124 | next i=> |
| 125 | simp only [meshBar,ballad,Pi.smul_apply,Pi.sub_apply,smul_eq_mul]; by_cases H:i.2=v <;> simp [slotAg,H,strollT] <;> ring |
| 126 | next i=> split <;> simp [ballad,meshBar] |
| 127 | end YM.Trace.Perfect |