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.RG08.Line.Recipe |
| 2 | |
| 3 | /-! |
| 4 | # Cell packing on cover and all period sides. Accounting for phase-origin offsets. |
| 5 | -/ |
| 6 | noncomputable section |
| 7 | namespace YM.RG08.Cell |
| 8 | open Stationary Function Matrix Lattice Exterior Precision RG Tree Wilson Laurent Bloch Finset RG08.Rows RG08.Flat Pert.Bulk RG08.Packets RG08.Line |
| 9 | open scoped Matrix BigOperators Topology Classical ENNReal |
| 10 | set_option autoImplicit false |
| 11 | variable {α β : Type} {L c f: Side} |
| 12 | |
| 13 | def column (L : Side)(α:Type) : Market (Co L α) ≃ Market α := |
| 14 | { toFun x:=(lift x.2.1+L.val • x.1,x.2.2) |
| 15 | invFun x:=(rent L x.1,wrap L x.1,x.2) |
| 16 | left_inv x:= by |
| 17 | obtain ⟨h₁,h₂⟩ := rent_raw (L:=L) x.1 _ x.2.1 rfl |
| 18 | simp only [h₁,h₂] |
| 19 | right_inv x:= by change (lift _ + _,_)=_; rw [← rent_balance L] } |
| 20 | |
| 21 | lemma column_pos (x : Market (Co L α)) : (column L _ x).1=lift x.2.1+L.val • x.1:=rfl |
| 22 | |
| 23 | lemma column_map (x : Market (Co L α)) (v:Cover) : column L _ (pass v x)=pass (L.val • v) (column L _ x):= by |
| 24 | ext1 |
| 25 | · dsimp [column,pass]; rw [smul_add]; abel |
| 26 | rfl |
| 27 | |
| 28 | def tile (L : Side)(K:Kernel α β) : Kernel (Co L α) (Co L β):= fun x y=> K (column L _ x) (column L _ y) |
| 29 | def spread (L : Side)(K:Kernel (Co L α) (Co L β)): Kernel α β:= fun x y=> K ((column L _).symm x) ((column L _).symm y) |
| 30 | |
| 31 | lemma tile_city {K:Kernel α β} (L:Side) (h:city 1 K): city 1 (tile L K) := by |
| 32 | intro x y v |
| 33 | unfold tile; rw [show (1:Side).val=1 from rfl,one_smul,column_map,column_map]; simpa only [show (1:Side).val=1 from rfl,one_smul] using h (column L _ x) (column L _ y) (L.val • v) |
| 34 | |
| 35 | lemma separation_to (x:Market (Co L α))(y:Market (Co L β)): |
| 36 | Pert.Bulk.sep x.1 y.1 ≤ Pert.Bulk.sep (column L _ x).1 (column L _ y).1 / (L.val:ℝ) + 8:=by |
| 37 | have hL : 0 < (L.val:ℝ):=by positivity |
| 38 | have hx:=length_lift L x.2.1; have hy:=length_lift L y.2.1 |
| 39 | have he:=sep_triangle (L.val • x.1) (column L _ x).1 (L.val • y.1) |
| 40 | have hi:=(sep_triangle (column L _ x).1 (column L _ y).1 (L.val • y.1)) |
| 41 | rw [scale_sep,sep_comm (L.val • x.1),column_pos] at he; rw [column_pos,column_pos] at hi |
| 42 | have hh v (u:Cover): Pert.Bulk.sep (v+L.val • u) (L.val • u)=Pert.Bulk.length v:=by unfold Pert.Bulk.sep; rw [add_sub_cancel_right] |
| 43 | rw [hh] at he hi |
| 44 | field_simp at hx hy ⊢; unfold Pert.Bulk.length at *; rw [column_pos,column_pos]; linarith |
| 45 | |
| 46 | lemma separation_from (x:Market (Co L α))(y:Market (Co L β)): |
| 47 | Pert.Bulk.sep (column L _ x).1 (column L _ y).1 ≤ (L.val:ℝ)*(Pert.Bulk.sep x.1 y.1 + 8):=by |
| 48 | rw [column_pos,column_pos] |
| 49 | have he:=sep_triangle (lift x.2.1+L.val • x.1) (L.val • x.1) (lift y.2.1+L.val • y.1) |
| 50 | have hg:=sep_triangle (L.val • x.1) (L.val • y.1) (lift y.2.1+L.val • y.1) |
| 51 | rw [scale_sep,sep_comm (L.val • y.1)] at hg |
| 52 | have hh (v u:Cover):Pert.Bulk.sep (v+L.val • u) (L.val • u)=Pert.Bulk.length v:=by unfold Pert.Bulk.sep; rw [add_sub_cancel_right] |
| 53 | rw [hh] at he hg |
| 54 | have hL : 0 < (L.val:ℝ):=by positivity |
| 55 | have hx:=length_lift L x.2.1; have hy:=length_lift L y.2.1 |
| 56 | field_simp at hx hy; linarith |
| 57 | |
| 58 | variable {σ τ p : ℝ} |
| 59 | |
| 60 | theorem route {K:Kernel α β} (L:Side) (hτ : 0 ≤ τ)(ht : τ ≤ L.val * σ)(h : RowCost σ 1 K p): |
| 61 | RowCost τ 1 (tile L K) (Real.exp (8*τ)*p):=by |
| 62 | rw [mul_comm] |
| 63 | intro x i |
| 64 | have hf : Function.Injective (fun z : Cover=> (column L β (z,i)).1) := fun _ _ hi=> congr_arg Prod.fst ((column L β).injective (Prod.ext hi rfl)) |
| 65 | let H (v:Cover):= bill (K (column L _ x) (v,i.2)) (σ*delta 1 (column L _ x).1 v) |
| 66 | let w:=8*τ |
| 67 | have he (y:Market (Co L β)): τ * delta 1 x.1 y.1 ≤ σ*delta 1 (column L _ x).1 (column L _ y).1+w := by |
| 68 | rw [delta_one,delta_one]; unfold w |
| 69 | let s:=Pert.Bulk.sep (column L α x).1 (column L β y).1 |
| 70 | have hL:0 < (L.val:ℝ):=by positivity |
| 71 | calc _ ≤ τ*(s/L.val+8):=mul_le_mul_of_nonneg_left (separation_to x y) hτ |
| 72 | _ ≤ _:= by |
| 73 | rw [mul_add,mul_comm τ 8]; apply add_le_add_left |
| 74 | rw [show τ * (s / (L.val:ℝ))= τ/L.val*s by ring]; unfold s; gcongr |
| 75 | · exact sep_nonneg .. |
| 76 | rw [div_le_iff₀ hL]; linarith only [ht] |
| 77 | calc _ ≤ ∑' z:Cover, ENNReal.ofReal (Real.exp w) * H ((column L β (z,i)).1):= by |
| 78 | apply ENNReal.tsum_le_tsum; intro z; unfold H; rw [mul_comm (ENNReal.ofReal _),← bill_add]; apply bill_mono (x:=tile L K x (z,i)) le_rfl (he (z,i)) |
| 79 | _ ≤ ENNReal.ofReal (Real.exp w)* ENNReal.ofReal p:= by rw [ENNReal.tsum_mul_left]; gcongr; exact (ENNReal.tsum_comp_le_tsum_of_injective hf H).trans (h ..) |
| 80 | _ = _:= by rw [mul_comm p, ENNReal.ofReal_mul (Real.exp_pos _).le] |
| 81 | |
| 82 | lemma tile_price {K:Kernel α β} (L:Side)(hτ:0≤τ)(ht:τ≤L.val*σ)(h: Priced σ p K) : Priced τ (Real.exp (8*τ)*p) (tile L K) := by |
| 83 | have hs: 0 ≤ σ := nonneg_of_mul_nonneg_right (hτ.trans ht) (by positivity : (0:ℝ)<L.val) |
| 84 | have hp:=h.pos |
| 85 | refine ⟨by positivity,tile_city L h.city,route L hτ ht h.row,fun i x=>?_⟩ |
| 86 | simpa only [tile,swap,delta_one,sep_comm x.1] using (route L hτ ht (h.row_t hs) x i) |
| 87 | |
| 88 | lemma tile_torus {K:Kernel α β}{H:Matrix (Co f α) (Co f β) ℝ}(S:StepData c f)(h: Matches K H):Matches (tile S.patch.L K) (repackM (splitCo S.ratio _) (splitCo S.ratio _) H):= by |
| 89 | have hratio (g : Ratio c f) : |
| 90 | Matches (tile g.count K) |
| 91 | (repackM (splitCo g α) (splitCo g β) H) := by |
| 92 | have hcolumn (γ : Type) (u : Market (Co g.count γ)) : |
| 93 | (splitCo g γ).symm (wrap c u.1,u.2) = |
| 94 | (wrap f (column g.count γ u).1,(column g.count γ u).2) := by |
| 95 | change (g.assemble (wrap c u.1,u.2.1),u.2.2) = |
| 96 | (wrap f (lift u.2.1 + g.count.val • u.1),u.2.2) |
| 97 | apply Prod.ext |
| 98 | · change g.embed (wrap c u.1) + wrap f (lift u.2.1) = |
| 99 | wrap f (lift u.2.1 + g.count.val • u.1) |
| 100 | rw [g.embed_wrap, map_add] |
| 101 | exact add_comm _ _ |
| 102 | · rfl |
| 103 | intro x y |
| 104 | let b : Market β := column g.count β (lift y.1,y.2) |
| 105 | have hy : (splitCo g β).symm y = (wrap f b.1,b.2) := by |
| 106 | simpa only [wrap_lift] using hcolumn β (lift y.1,y.2) |
| 107 | have hsize : g.count.val * c.val = f.val := |
| 108 | (Nat.mul_comm _ _).trans g.exact_size.symm |
| 109 | have hperiod (z : Cover) : |
| 110 | column g.count β (lift y.1 + c.val • z,y.2) = |
| 111 | (lift (wrap f b.1) + f.val • (z + rent f b.1),b.2) := by |
| 112 | apply Prod.ext |
| 113 | · change lift y.2.1 + g.count.val • (lift y.1 + c.val • z) = |
| 114 | lift (wrap f b.1) + f.val • (z + rent f b.1) |
| 115 | calc |
| 116 | _ = b.1 + f.val • z := by |
| 117 | change lift y.2.1 + g.count.val • (lift y.1 + c.val • z) = |
| 118 | (lift y.2.1 + g.count.val • lift y.1) + f.val • z |
| 119 | rw [smul_add, ← mul_smul, hsize] |
| 120 | exact (add_assoc _ _ _).symm |
| 121 | _ = (lift (wrap f b.1) + f.val • rent f b.1) + f.val • z := |
| 122 | congrArg (fun v : Cover => v + f.val • z) (rent_balance f b.1) |
| 123 | _ = lift (wrap f b.1) + f.val • (z + rent f b.1) := by |
| 124 | rw [smul_add] |
| 125 | abel |
| 126 | · rfl |
| 127 | change display (tile g.count K) c x y = |
| 128 | H ((splitCo g α).symm (wrap c x.1,x.2)) ((splitCo g β).symm y) |
| 129 | rw [hcolumn α x, hy, ← h (column g.count α x) (wrap f b.1,b.2)] |
| 130 | rw [circuit, circuit] |
| 131 | change (∑' z : Cover, |
| 132 | K (column g.count α x) (column g.count β (lift y.1 + c.val • z,y.2))) = |
| 133 | ∑' z : Cover, K (column g.count α x) (lift (wrap f b.1) + f.val • z,b.2) |
| 134 | rw [← (Equiv.addRight (rent f b.1)).tsum_eq |
| 135 | (fun z : Cover => K (column g.count α x) (lift (wrap f b.1) + f.val • z,b.2))] |
| 136 | apply tsum_congr |
| 137 | intro z |
| 138 | change K (column g.count α x) (column g.count β (lift y.1 + c.val • z,y.2)) = |
| 139 | K (column g.count α x) (lift (wrap f b.1) + f.val • (z + rent f b.1),b.2) |
| 140 | exact congrArg (K (column g.count α x)) (hperiod z) |
| 141 | exact hratio S.ratio |
| 142 | end YM.RG08.Cell |