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.Sheaf |
| 2 | |
| 3 | /-! |
| 4 | # Arithmetic division by difference. No inverse on lattice frequencies. |
| 5 | -/ |
| 6 | set_option autoImplicit false |
| 7 | noncomputable section |
| 8 | namespace YM.Trace.Perfect |
| 9 | open Lattice Laurent RG Wilson Function Finset Filter |
| 10 | open scoped BigOperators Topology |
| 11 | namespace Sheaf |
| 12 | variable {A:Type*} [AddCommGroup A] [Module ℝ A] |
| 13 | def Runs (a:Axis): Sheaf→ Prop |
| 14 | | stay=>True |
| 15 | | mon z=>∃ i:ℤ,z=i • (step a:Cover) |
| 16 | | scale _ X=>Runs a X |
| 17 | | duo X Y=>Runs a X ∧ Runs a Y |
| 18 | | mix X Y=>Runs a X ∧ Runs a Y |
| 19 | lemma disk_runs {i:ℤ}(a:Axis)(n:ℕ): Runs a (disk (i • step a) n):=by |
| 20 | induction n with |
| 21 | | zero=>trivial |
| 22 | | succ n h=>refine ⟨h,(n:ℤ)*i,?_⟩; rw [mul_smul]; simp |
| 23 | lemma little_runs {i:ℤ}(a:Axis)(n:ℕ): Runs a (little (i • step a) n):=⟨⟨-(n:ℤ)*i,by rw [mul_smul]; simp⟩,disk_runs ..⟩ |
| 24 | lemma band_runs {i:ℤ}(a:Axis): Runs a (band (i • step a)):= ⟨⟨little_runs ..,little_runs ..⟩,little_runs ..,little_runs ..⟩ |
| 25 | |
| 26 | lemma draw (X:Sheaf) (a:Axis)(h : Runs a X):∃ Y: Sheaf,Y.radius ≤ X.radius*3 ∧ Y.debt ≤ X.radius*X.debt ∧ ∀ f:Cover→A,take (take f Y) (Δ (step a))=take f X-X.gold • f:=by |
| 27 | induction X with |
| 28 | | stay=> exact ⟨stay,by simp [radius],by simp [debt], fun f=> funext fun x => by simp [rises,take,gold]⟩ |
| 29 | | mon z=> |
| 30 | obtain ⟨i,rfl⟩:= h; cases i with |
| 31 | | ofNat k=> |
| 32 | obtain ⟨h,p,v⟩:=disk_cost (step a) k; refine ⟨disk (step a) k,?_,?_,fun f=>?_⟩ |
| 33 | · have hz : size (Int.ofNat k • (step a:Cover))=k:=by simp [size,Pi.smul_apply,apply_ite (fun z:ℤ=>z.natAbs),mul_ite]; |
| 34 | rw [radius,hz]; exact h.trans (by rw [size_step_one]; omega) |
| 35 | · have hz : size (Int.ofNat k • (step a:Cover))=k:=by simp [size,Pi.smul_apply,apply_ite Int.natAbs,mul_ite] |
| 36 | rw [debt,radius,hz,p,mul_one] |
| 37 | rw [show take (take f (disk (step a) k)) _= _ from disk_step _ f k]; ext1 x; rw [rises]; simp [take,gold] |
| 38 | | negSucc k=> |
| 39 | let v:Cover:= (k+1) • step a |
| 40 | let Y:= mix (scale (-1) (mon (-v))) (disk (step a) (k+1)) |
| 41 | obtain ⟨h,p,d⟩:=disk_cost (step a) (k+1); rw [size_step_one,mul_one] at h |
| 42 | have hu:Int.negSucc k • (step a:Cover)= -v:=by rw [Int.negSucc_eq]; simp [v]; ring |
| 43 | have hx:size (-v)=k+1:=by rw [← hu]; simp [size,Pi.smul_apply,apply_ite Int.natAbs,mul_ite] |
| 44 | rw [hu]; refine ⟨Y,?_,?_,fun f=>?_⟩ |
| 45 | · simp only[Y,radius,hx]; omega |
| 46 | · simp [Y,radius,hx,debt,p] |
| 47 | dsimp only [Y]; rw [take,take,take,smul_f, rope (Δ (step a))]; change (-1:ℝ) • take (take (take f (disk (step a) (k+1))) _) (mon (-v))=_ |
| 48 | rw [show take (take f (disk (step a) (k+1))) _= _ from disk_step _ f (k+1)]; ext1 x; simp only [Pi.sub_apply,Pi.smul_apply,take,gold] |
| 49 | rw [rises]; simp [v] |
| 50 | | scale c X h'=> |
| 51 | obtain ⟨Y,hy,hv,H⟩:=h' h |
| 52 | refine ⟨scale c Y,hy,?_ , fun f=> ?_⟩ |
| 53 | · simpa only [debt,radius,mul_left_comm |c|] using mul_le_mul_of_nonneg_left hv (abs_nonneg c) |
| 54 | simp only [take,gold,smul_f,H,smul_sub,smul_smul] |
| 55 | | duo X Y h' p'=> |
| 56 | obtain ⟨V,ht,he,H⟩:= h' h.1; obtain ⟨Z,hx,hp,P⟩:=p' h.2 |
| 57 | refine ⟨duo V Z,?_,?_,fun f=> ?_⟩ |
| 58 | · simp only [radius]; omega |
| 59 | · have hV : X.radius ≤ (X.duo Y).radius:= le_max_left ..; have hY : Y.radius ≤ (X.duo Y).radius:= le_max_right .. |
| 60 | rw [debt,show (X.duo Y).debt=_ from rfl]; change _ ≤ ((X.duo Y).radius:ℝ)*(X.debt+Y.debt); rw[mul_add] |
| 61 | exact add_le_add (he.trans (mul_le_mul_of_nonneg_right (Nat.cast_le.mpr hV) X.debt_pos)) (hp.trans (mul_le_mul_of_nonneg_right (Nat.cast_le.mpr hY) Y.debt_pos)) |
| 62 | simp only [take,gold,add_f,H,P,add_smul]; abel |
| 63 | | mix X Y h' p'=> |
| 64 | obtain ⟨V,ht,he,H⟩:= h' h.1; obtain ⟨Z,hx,hp,P⟩:=p' h.2 |
| 65 | have hl : |X.gold| ≤ X.debt:=by |
| 66 | clear H h' he h ht; induction X with |
| 67 | | stay=>simp [debt,gold] |
| 68 | | mon=>simp [debt,gold] |
| 69 | | scale c x h=>rw[debt,gold,abs_mul]; exact mul_le_mul_of_nonneg_left h (abs_nonneg _) |
| 70 | | duo x y h p=>exact (abs_add_le ..).trans (add_le_add h p) |
| 71 | | mix x y h p=>rw [debt,gold,abs_mul]; exact mul_le_mul h p (abs_nonneg _) (x.debt_pos) |
| 72 | refine ⟨duo (mix V Y) (scale X.gold Z),?_,?_,fun f=>?_⟩ |
| 73 | · simp only [radius]; omega |
| 74 | · have ht:= add_le_add (mul_le_mul_of_nonneg_right he Y.debt_pos) (mul_le_mul hl hp Z.debt_pos X.debt_pos) |
| 75 | simp only [debt,radius,Nat.cast_add]; exact ht.trans_eq (by ring) |
| 76 | simp only [take,gold,add_f,smul_f, H,P,smul_sub,smul_smul]; abel |
| 77 | |
| 78 | variable (L:Side) |
| 79 | def ply (a:Axis):=scale ((L.val:ℝ))⁻¹ (disk (step a) L.val) |
| 80 | lemma ply_level (a:Axis): (ply L a).debt=1 ∧ (ply L a).gold=1 ∧ (ply L a).radius ≤ L.val:= by |
| 81 | have ht:0<(L.val:ℝ):= Nat.cast_pos.mpr L.property |
| 82 | obtain ⟨hv,h,p⟩:=disk_cost (step a) L.val; rw [size_step_one,mul_one] at hv; change _ ∧ _ ∧ _; simp [ply,debt,gold,h,p,radius,hv,ht.ne'] |
| 83 | lemma ply_step (a:Axis)(f:Cover→A): take (take f (ply L a)) (Δ (step a))= ((L.val:ℝ))⁻¹ • take f (Δ (L.val • step a)):=by rw [ply,take,smul_f,show take (take f (disk (step a) L.val)) _=_ from disk_step _ f L.val] |
| 84 | |
| 85 | def nigh (a:Axis):= mix (band (L.val • step a)) (ply L a) |
| 86 | def boil (a:Axis) := mix (ply L a) (nigh L a) |
| 87 | lemma nigh_fee (a:Axis): (nigh L a).radius ≤ 13*L.val ∧ (nigh L a).debt ≤ 32 ∧ (nigh L a).gold=1:= by |
| 88 | obtain ⟨h,x,y⟩:= band_fee (L.val • step a); obtain ⟨p,v,t⟩:= ply_level L a |
| 89 | have hb:= size_nsmul (step a) L.val; rw [size_step_one,mul_one] at hb |
| 90 | refine ⟨by simp only[nigh,radius];omega, ?_,?_⟩ |
| 91 | · simpa only [nigh,debt,p,mul_one] using y |
| 92 | simp only [nigh,gold,h,v,one_mul] |
| 93 | lemma boil_price (a:Axis): (boil L a).radius ≤ 14*L.val ∧ (boil L a).debt ≤ 32 ∧ (boil L a).gold=1:=by |
| 94 | obtain ⟨p,h,x⟩:= nigh_fee L a; obtain ⟨v,t,y⟩:= ply_level L a |
| 95 | refine ⟨by simp only[boil,radius];omega,?_,?_⟩ |
| 96 | · simpa only [boil,debt,v,one_mul] using h |
| 97 | simp only [boil,gold,x,t,one_mul] |
| 98 | end Sheaf |
| 99 | end YM.Trace.Perfect |