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.Next.RANK.Distant |
| 2 | import YM.Next.RANK.HaloLow |
| 3 | |
| 4 | /-! Produce Bell from Fourier terminal/lifted stencil ports, |
| 5 | and real cumulative kernel estimates. Conditional version ONLY. -/ |
| 6 | set_option autoImplicit false |
| 7 | noncomputable section |
| 8 | namespace YM.Next.Rank.Wall |
| 9 | open Function Set Lattice Wilson RG Normal Perch Prayer Atlas Station CellsInt Configuration Glimmer Filter Beamer Maxwell |
| 10 | open scoped Topology BigOperators Classical |
| 11 | |
| 12 | variable {G : Gauge} (A : Levels G) {k n d : ℕ} |
| 13 | |
| 14 | def stretch (b : ℝ) (k : ℕ) := A.S.a (middle A b k)/ A.S.a k |
| 15 | |
| 16 | def Vantage (d k p n D : ℕ) (b : ℝ) (F : AtlasData G A.S p) := |
| 17 | Model A d k p F ∧ Fell F (before A b k) d (stretch A b k) (fraction n D (clim A k)) |
| 18 | |
| 19 | private lemma thump {z s r : ℝ} (hr : 0<r) (hz : 1≤z) (hs : r*z^2 ≤ s) (L : Degree G) : amount r L*z^4 ≤ amount s L := by |
| 20 | unfold amount; apply le_trans _ (pow_le_pow_left₀ (mul_nonneg hr.le (sq_nonneg _)) hs _); rw [mul_pow, ← pow_mul]; |
| 21 | exact mul_le_mul_of_nonneg_left (pow_le_pow_right₀ hz (by omega)) (pow_nonneg hr.le _) |
| 22 | |
| 23 | private lemma bled (x y : Degree G) {d : ℕ} {r : ℝ} (z : KeyIn G d → KeyIn G d→ℝ) (h : x.degree=d-1 ∨ y.degree=d-1) : |
| 24 | mourn (gesture x) (gesture y) (arc d r z)=0 := by |
| 25 | unfold arc; simp_rw [map_sum,map_smul]; refine Finset.sum_eq_zero fun i _ => Finset.sum_eq_zero fun j _ => ?_ |
| 26 | have ht (x v) (u : KeyIn G d) : v=x.degree → v=d-1 → gesture x (arbor d r u) = 0 := by |
| 27 | intro hx h; rw [arbor,map_smul,tester,gesture_over,smul_zero]; have hh := u.property; unfold Labels.generation at hh;omega |
| 28 | rw [show mourn (gesture x) (gesture y) (fun s t => arbor d r i s*arbor d r j t)=gesture x (arbor d r i)*gesture y (arbor d r j) from ?_]; rotate_left |
| 29 | · change gesture x (fun s => gesture y (arbor d r i s • arbor d r j)) = _ |
| 30 | rw [show (fun s => gesture y (arbor d r i s • arbor d r j))= (gesture y (arbor d r j)) • arbor d r i from funext (fun s => (map_smul ..).trans (mul_comm ..)),map_smul]; exact mul_comm .. |
| 31 | cases h with |
| 32 | | inl h => rw [ht x _ i rfl h,zero_mul,smul_zero] |
| 33 | | inr h => rw [ht y _ j rfl h,mul_zero,smul_zero] |
| 34 | private lemma order (x : Degree G) {d m : ℕ} (h : attends d m x) : x.degree ≤ d-1 := by rcases h with ⟨he,hp⟩|⟨he,hp⟩ <;> omega |
| 35 | private lemma attend (L : Hub G d 0) (n : ℕ) : attends d n L.val := Or.inl ⟨L.property.1,L.property.2.2⟩ |
| 36 | |
| 37 | theorem on_demand {x : Points n} (b : ℝ) (D d : ℕ) (H : G.Simple) (hx : x∈conf _) (hb : 6≤ b) : |
| 38 | ∀ᶠ k in atTop,∀ h : Fit A b k x, Allowed A b k → ∀ p F,Vantage A d k p n D b F → Bell A F d D h := by |
| 39 | let e := fuel D n |
| 40 | have he : 0<e := fuel_real D n |
| 41 | have hE : e≤1/4 := by dsimp only [e,fuel]; apply div_le_div_of_nonneg_left zero_le_one (by norm_num); push_cast;nlinarith |
| 42 | have ht : -4+3*(e/4)< -3 := by linarith |
| 43 | filter_upwards [chamber_now A d H b (e/8) (by positivity) hb hx, penalty x hx b d A H (by linarith), |
| 44 | (hat_rate A H).eventually (transports (show -4+3*(e/4)< -3 from ht) 3), |
| 45 | (hat_rate A H).eventually (transports (show e/8 < e/4 by linarith) 2)] with k hS hQ t₀ t₁ |
| 46 | intro h ha p F hr |
| 47 | obtain ⟨hM,hL⟩ := hr |
| 48 | refine ⟨fun i j => hL.colors _ _ _,fun u hu z => ?_,fun u hu => ⟨fun i => ?_,fun i j => ?_⟩⟩ |
| 49 | · change (( (_ : ℂ).re:ℝ) : ℂ)= _; rw [hL.sends_mean]; simp |
| 50 | · let l:=middle A b k; let g:= choose A b k x; let c:= clim A k; let s:=stretch A b k |
| 51 | let m:= A.clock.monitor k; have hm : 1 ≤ m := Real.one_le_exp (sq_nonneg _) |
| 52 | let a:= mag A b k; have hp : 0 < a := mag_pos .. |
| 53 | let P:=fraction n D c; have hC : 0 ≤ P := (Real.exp_pos _).le; have h3 := ha.dilation |
| 54 | let H:= Wall.field F (before A b k) (g i) u |
| 55 | have hP : 0<s := div_pos (A.S.a_pos l) (A.S.a_pos _) |
| 56 | rw [show μre A.S F (choose A b k x) (before A b k) _ i=H by |
| 57 | funext z; unfold μre; rw [hL.sends_mean]; rfl] |
| 58 | have he (L : Degree G) (H' : attends d (wood A k) L) : amount a L*‖gesture L H‖ ≤ Perch.bill (-3) c := by |
| 59 | have hk : m^4*(amount a L* ‖gesture L H‖) ≤ P^2 := by |
| 60 | have he := mul_le_mul_of_nonneg_right (thump hp hm h3 L) (norm_nonneg (gesture L H)) |
| 61 | rw [← mul_assoc,mul_comm (m^4)] |
| 62 | exact he.trans (hL.dawn (g i) u L (order L H') hP hC hu.1) |
| 63 | apply le_of_mul_le_mul_left _ (a:=m^4) (pow_pos (zero_lt_one.trans_le hm) _); apply hk.trans |
| 64 | change bill _ _ ^ _ ≤ _ |
| 65 | rw [show m=bill 1 c from fire_bill A k,bills,bills,overlap]; apply billed; push_cast; linarith |
| 66 | refine ⟨⟨hL.preserve u hu.2 (g i),fun L H' => (he L H').trans (billed _ ?_)⟩, fun L => he _ (attend _ _)⟩ |
| 67 | exact le_trans (by norm_num : (-3:ℝ)≤0) (by change 0≤e/4; linarith) |
| 68 | let g := choose A b k x; let K:= currentX (Ship.fitting h) G d; let a := mag A b k; let l:= middle A b k; let s:=stretch A b k |
| 69 | let L:= looked (scope (lines F l (before A b k)) (F.κ l)) (g i) (g j) |
| 70 | let p₀:= A.clock.monitor k; let c:= clim A k; let P₀:= bill (e/4) c |
| 71 | let B:= bill (-4+3*(e/4)) c; let δ:= bill (-3) c |
| 72 | have ht := hL.moth (g i) (g j); have hl : 0<s := div_pos (A.S.a_pos l) (A.S.a_pos _) |
| 73 | have h₁ : 1≤p₀ := Real.one_le_exp (sq_nonneg _); have hC : 0 ≤ P₀ := (Real.exp_pos _).le |
| 74 | have h₂ : 0<a := mag_pos ..; have he₂ : 0 < p₀^4 := pow_pos (zero_lt_one.trans_le h₁) _ |
| 75 | have he₁ : δ ≤ P₀ := billed _ (by linarith) |
| 76 | have hE (x : Degree G) : 0 < amount a x := pow_pos h₂ _ |
| 77 | have Hk (x y : Degree G) (hx : attends d (wood A k) x) (hy : attends d (wood A k) y) : |
| 78 | amount a x * amount a y * ‖mourn (gesture x) (gesture y) L‖ ≤ B := by |
| 79 | have hs : a*p₀^2 ≤ s:= ha.dilation |
| 80 | apply le_of_mul_le_mul_left _ (pow_pos (zero_lt_one.trans_le h₁) 4) |
| 81 | calc |
| 82 | _ = amount a x*p₀^4 * amount a y * _ := by ring |
| 83 | _ ≤ amount s x* amount s y * ‖mourn (gesture x) (gesture y) L‖ := mul_le_mul_of_nonneg_right (mul_le_mul (thump h₂ h₁ hs x) |
| 84 | ((le_mul_of_one_le_right (hE y).le (one_le_pow₀ h₁)).trans (thump h₂ h₁ hs y)) (hE y).le (pow_nonneg hl.le _)) (norm_nonneg _) |
| 85 | _ ≤ P₀^3 := hL.dusk (g i) (g j) _ _ (order _ hx) (order _ hy) hl hC |
| 86 | _ = _ := by dsimp only [P₀,B]; rw [show p₀=bill 1 c from fire_bill A k,bills,bills,overlap]; push_cast; ring_nf |
| 87 | rw [called F]; by_cases hy : i=j |
| 88 | · subst j; rw [if_pos rfl]; subst L |
| 89 | have hz : collect d (Ship.fitting h) a G i i=0 := by |
| 90 | unfold collect arc; simp only [dies,Complex.zero_re,zero_smul, Finset.sum_const_zero] |
| 91 | rw [hz,sub_zero]; have hB : B ≤ δ := billed c (by linarith) |
| 92 | let L:= looked (scope (lines F l (before A b k)) (F.κ l)) (g i) (g i) |
| 93 | have ho (x y : Degree G) (hx : attends d (wood A k) x) (hy : attends d (wood A k) y) : amount a x*amount a y*‖mourn (gesture x) (gesture y) (0-L)‖≤δ := by rw [zero_sub,map_neg,norm_neg]; exact (Hk x y hx hy).trans hB |
| 94 | exact ⟨fun i => (signal G).sub_mem (signal G).zero_mem (ht.1 i),fun i => (signal G).sub_mem (signal G).zero_mem (ht.2 i),fun x y H H' => (ho x y H H').trans he₁, fun x y => ho _ _ (attend ..) (attend ..)⟩ |
| 95 | rw [if_neg hy] |
| 96 | let a' := looked (F.κ k) (g i) (g j) |
| 97 | let s' := collect d (Ship.fitting h) a G i j |
| 98 | let C:= fun s t=> (K.cov (i,s) (j,t)).re |
| 99 | have hv := hS p F hM i j hy |
| 100 | have hs (X y : Hub G d 0) : |
| 101 | amount a X.val * amount a y.val * ‖mourn (gesture X.val) (gesture y.val) (a'-L-s')‖ ≤ δ := by |
| 102 | let f:= mourn (gesture X.val) (gesture y.val) |
| 103 | let c' := amount a X.val * amount a y.val |
| 104 | have hc' : 0 ≤ c' := mul_nonneg (hE _).le (hE _).le |
| 105 | let M:= Prayer.light X.val y.val (tested A b k x i) (tested A b k x j) |
| 106 | have he : ‖c' * f a'-M‖≤bill (-4) c := hv.origin X y |
| 107 | have ha : ‖c'*f s'-M‖≤bill (-4) c := hQ h i j X y hy |
| 108 | have he' : c'*‖f L‖ ≤ B := Hk _ _ (attend ..) (attend ..) |
| 109 | change c'*‖f _‖ ≤ _; calc |
| 110 | _ = ‖((c'*f a'-M)-(c'*f s'-M))-c'*f L‖ := by rw [map_sub,map_sub,show (c'*_-M)-(c'*_-M)-c'*_ = c'*(f a'-f L-f s') by ring,norm_mul, Real.norm_of_nonneg hc'] |
| 111 | _ ≤ _ := by |
| 112 | apply (norm_sub_le ..).trans |
| 113 | apply (add_le_add ((norm_sub_le ..).trans (add_le_add he ha)) ((by rw [norm_mul, Real.norm_of_nonneg hc']; exact he') : ‖c'*f L‖ ≤ B)).trans |
| 114 | have hr : bill (-4) c ≤ B := billed _ (by linarith); linarith only [hr,t₀] |
| 115 | refine ⟨fun i => (signal G).sub_mem ((signal G).sub_mem (hv.closures.1 i) (ht.1 i)) (choke d a C i), |
| 116 | fun i => (signal G).sub_mem ((signal G).sub_mem (hv.closures.2 i) (ht.2 i)) (chokes d a C i), ?_, hs⟩ |
| 117 | intro x y he hk |
| 118 | by_cases hh : (x.degree+2 ≤ d ∧ x.point=0) ∧ (y.degree+2 ≤ d ∧ y.point=0) |
| 119 | · exact (hs ⟨x,hh.1.2,Nat.zero_le _,hh.1.1⟩ ⟨y,hh.2.2,Nat.zero_le _,hh.2.1⟩).trans he₁ |
| 120 | have hb' : x.degree=d-1 ∨ y.degree=d-1 := (not_and_or.mp hh).elim (fun H => Or.inl ((he.resolve_left (fun ⟨a,b⟩ => H ⟨b,a⟩)).1)) (fun H => Or.inr ((hk.resolve_left (fun ⟨a,b⟩ => H ⟨b,a⟩)).1)) |
| 121 | let t := amount a x * amount a y |
| 122 | change t * ‖mourn _ _ (a'-L-s')‖≤P₀ |
| 123 | rw [map_sub,show mourn (gesture x) (gesture y) s'=0 from bled x y C hb', sub_zero, map_sub] |
| 124 | apply le_trans (mul_le_mul_of_nonneg_left (norm_sub_le ..) (show 0≤t from mul_nonneg (hE _).le (hE _).le)) |
| 125 | rw [mul_add] |
| 126 | have hU : B ≤ bill (e/8) c := billed _ (by linarith) |
| 127 | apply (add_le_add (hv.extent x y he hk) (Hk x y he hk)).trans; linarith only [hU,t₁] |
| 128 | end YM.Next.Rank.Wall |