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.Ballast.Slide |
| 2 | import YM.RG08.Wallet.Stays |
| 3 | |
| 4 | /-! # Linear substitution purchases |
| 5 | |
| 6 | Pre/post costs distinguished via Estate and Row width lenders. Inputs varying |
| 7 | index type (gauge etc potentially), not suppressing finite-color counts. -/ |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | namespace YM.RG08 |
| 11 | open RG Laurent Lattice Wilson Bloch Next.Free Push.AbsoluteSums Finset Function Filter |
| 12 | open Stationary Analysis UVExt.Paths Matrix |
| 13 | open scoped Topology ContDiff Classical |
| 14 | variable {r : ℕ} |
| 15 | section test |
| 16 | variable {α β : Type} [Fintype β] |
| 17 | variable {F U : Shale α r} {A B C : Fin r→ Row α β} |
| 18 | private lemma noCharge (h : Summable F) : Glow F 0 (∑' i, ‖F i‖) := by unfold Glow Charge ling; simp only [zero_mul,Real.exp_zero,one_mul]; exact ⟨fun i => norm_nonneg _,h.norm,le_rfl⟩ |
| 19 | private lemma noWard {α β : Type} {A : Row α β} (h : Whole A) : ∃ C : ℝ,0≤C ∧ A.strip 0 C := by obtain ⟨w,C,hp,H⟩:=h; exact ⟨max C 0,le_max_right ..,Work.F08.strip_mono H hp.le (le_max_left ..)⟩ |
| 20 | private lemma nonraid (h : Summable F) (u : ∀ i, Whole (A i)) : Summable (leads F (flicker A)) := by |
| 21 | choose C hc H using fun i=> noWard (u i) |
| 22 | exact (grow_cost _ _ (noCharge h) le_rfl hc H).summable (fun i=> ling_one le_rfl _) |
| 23 | lemma ribbons_sum (h : Summable F) (u : ∀ i,Whole (A i)) : Summable (ribbon F A) := ((nonraid h u).hasSum.tsum_fiberwise fieldsAt).summable |
| 24 | lemma ribbon_eval_all [Fintype α] (h : Summable F) (u : ∀ i,Whole (A i)) (c : Side) (v : Fin r→PAC β c) : |
| 25 | recital (ribbon F A) c v = recital F c (fun i => (A i).acts c *ᵥ v i) := by |
| 26 | choose C hc H using fun i=> noWard (u i) |
| 27 | exact strands _ _ (noCharge h) le_rfl hc H c v |
| 28 | lemma ribbon_less (h : Summable F) (v : Summable U) (hk : ∀ i, Whole (A i)) : ribbon (F-U) A=ribbon F A-ribbon U A := by |
| 29 | unfold ribbon; rw [leads_minus, pool_minus _ (nonraid h hk) (nonraid v hk)] |
| 30 | -- one changed leg ONLY |
| 31 | lemma noteRibbon (h : Summable F) (hk : ∀ i, Whole (A i)) (hv : ∀ i,Whole (B i)) (z : Fin r) (hq : ∀ j, j≠z → A j=B j) : |
| 32 | ribbon F (update A z (A z-B z))= ribbon F A-ribbon F B := by |
| 33 | let X := update A z (A z-B z) |
| 34 | suffices hp : flicker X=flicker A-flicker B by change ribbon F X=_; unfold ribbon; rw [hp, leads_diff,pool_minus _ (nonraid h hk) (nonraid h hv)] |
| 35 | ext1 i |
| 36 | have hx j hj : X j=A j := update_of_ne hj .. |
| 37 | let q := i.1; let k := i.2 |
| 38 | let f (A : Fin r→Row α β) (s) (_i : Fin r) := ∏ j∈s,A j (q j).2 (k j).2 (k j).1 |
| 39 | change f X univ z= f A univ z- f B univ z |
| 40 | let s := univ.erase z |
| 41 | have hp : f X s z=f A s z := prod_congr rfl fun i hi=> by rw [hx i (mem_erase.mp hi).1] |
| 42 | have he : f B s z=f A s z := prod_congr rfl fun i hi=> by rw [hq i (mem_erase.mp hi).1] |
| 43 | have hv (C : Fin r→Row α β): f C univ z=C z (q z).2 (k z).2 (k z).1*f C s z := (mul_prod_erase univ _ (mem_univ z)).symm |
| 44 | rw [hv,hv A,hv B,hp,he,show X z=A z-B z from update_self ..]; exact _root_.sub_mul .. |
| 45 | end test |
| 46 | |
| 47 | section variation |
| 48 | variable {I J : Type} {α β : I→Type} [∀ i,Fintype (β i)] {y v w δ : I→ℝ} {x : I→Side} |
| 49 | variable {V T : ∀ i,Shale (α i) r} {C B : ∀ i,Row (α i) (β i)} |
| 50 | lemma Weighed.prod (s : Finset J) {p : J→I→ℝ} (h : ∀ i∈s,Weighed y (p i)) : Weighed y (fun i=> ∏ j∈s,p j i) := by |
| 51 | induction s using Finset.induction_on with |
| 52 | | empty => simpa [Set.mem_setOf_eq] using Weighed.constant y zero_le_one |
| 53 | | insert i s hi ih => simp_rw [prod_insert hi]; exact (h i (mem_insert_self ..)).times (ih fun j hj=> h j (mem_insert_of_mem hj)) |
| 54 | lemma Weighed.powers {p : I→ℝ} (h : Weighed y p) (s : ℕ) : Weighed y (fun i=> (p i)^s) := by induction s with | zero => simp only [pow_zero]; exact Weighed.one| succ s ih => simp_rw [pow_succ]; exact ih.times h |
| 55 | private lemma bindR {η : Fin r→I→ℝ} {A : Fin r→ ∀ i, Row (α i) (β i)} (h : 0≤w) (hp : Voucher y δ V w) |
| 56 | (hq : ∀ i,0 ≤ η i) (hK : ∀ i, SafeRow y (η i) (A i) w) (hv : Weighed y (fun i=> (Fintype.card (β i):ℝ))) : |
| 57 | Voucher y (fun i=> (∏ j, η j i)*δ i) (fun i=> ribbon (V i) (fun j=> A j i)) w := by |
| 58 | obtain ⟨b,hb,H⟩:=hp; choose p hP H' using hK |
| 59 | refine ⟨_, ((hv.powers r).times (Weighed.prod univ fun i _=> hP i)).times hb,fun i=>?_⟩ |
| 60 | apply glow_less (ribbon_price _ _ (H i) (h i) (fun j=> mul_nonneg ((hP j).positive i) (hq j i)) (fun j=> H' j i)) le_rfl |
| 61 | simp only [Pi.mul_apply,prod_mul_distrib]; exact le_of_eq (by ring) |
| 62 | lemma bind_budget (h : 0≤w) (hp : Voucher y δ V w) {A : Fin r→ ∀ i,Row (α i) (β i)} |
| 63 | (hK : ∀ i, SafeRow y 1 (A i) w) (hv : Weighed y (fun i=> (Fintype.card (β i):ℝ))) : Voucher y δ (fun i => ribbon (V i) (fun j=> A j i)) w := by |
| 64 | simpa only [Pi.one_apply,prod_const_one,one_mul] using bindR h hp (fun j i=>show (0:ℝ)≤1 from zero_le_one) hK hv |
| 65 | |
| 66 | lemma exchangeR (h : ∀ i, 0<w i) (hg : Audience y) (hδ : 0 ≤ δ) (hv : Voucher y 1 V w) {F H : Fin r→∀ i,Row (α i) (β i)} |
| 67 | (hf : ∀ i,RowBoth y δ (F i) (H i) w) (hp : Weighed y (fun i=> (Fintype.card (β i):ℝ))) : |
| 68 | Voucher y δ (fun i=> ribbon (V i) (fun j=> F j i)-ribbon (V i) (fun j=> H j i)) w := by |
| 69 | let m (s : Finset (Fin r)) (j) := if j∈s then H j else F j |
| 70 | have hm s j : SafeRow y 1 (m s j) w := by |
| 71 | by_cases hx:j∈s; · simpa only [m,if_pos hx] using (hf j).again |
| 72 | simpa only [m,if_neg hx] using (hf j).fresh |
| 73 | have he (s : Finset (Fin r)) : Voucher y δ (fun i=> ribbon (V i) (fun j=> F j i)-ribbon (V i) (fun j=> m s j i)) w := by |
| 74 | induction s using Finset.induction_on with |
| 75 | | empty => simp only [m, notMem_empty, ↓reduceIte,sub_self]; exact Voucher.zero |
| 76 | | insert a s ha IH=> |
| 77 | let D (j) := if j=a then F a-H a else m s j |
| 78 | let W : Fin r→I→ℝ := fun j=> if j=a then δ else 1 |
| 79 | have hx j : SafeRow y (W j) (D j) w := by |
| 80 | unfold D W; split |
| 81 | · exact (hf a).moves |
| 82 | exact hm s j |
| 83 | have hh : ∀ j,0 ≤ W j := by intro j; unfold W; split; exact hδ; exact fun _=> zero_le_one |
| 84 | have hk := bindR (show 0≤w from fun i=>(h i).le) hv hh hx hp |
| 85 | let R i := ribbon (V i) (fun j=> D j i) |
| 86 | have hz : Voucher y δ R w := hk.raise (fun i=> by |
| 87 | change _*1 ≤ _; rw [mul_one, prod_eq_single a]; exact Eq.le (by simp [W]); intro b hb hh; simp [W,hh]; simp) |
| 88 | have ht i : R i=ribbon (V i) (fun j=> m s j i)-ribbon (V i) (fun j=> m (insert a s) j i) := by |
| 89 | unfold R |
| 90 | let M j := m s j i; let N j := m (insert a s) j i |
| 91 | rw [show (fun j=> D j i)=update M a (M a-N a) from funext fun b=> by by_cases hb:b=a <;> simp [hb,D,M,N,m,ha]] |
| 92 | refine noteRibbon ((hv.choose_spec.2 i).summable (ling_one (h i).le)) (fun j=> (hm s j).status h i) (fun j=> (hm (insert a s) j).status h i) a (fun j hj=> ?_); simp [m,hj] |
| 93 | have HX : (fun i=> ribbon (V i) (fun j=> F j i)-ribbon (V i) (fun j=> m s j i))+R=(fun i=>ribbon (V i) (fun j=> F j i)-ribbon (V i) (fun j=> m (insert a s) j i)) := (show _ from funext fun i=> (show ribbon (V i) (fun j=> F j i)-ribbon (V i) (fun j=> m s j i)+R i=_ by rw [ht]; abel)) -- lambda specify |
| 94 | rw [← HX]; exact IH.plus hz hg |
| 95 | simpa only [m,mem_univ,↓reduceIte] using he univ |
| 96 | end variation |
| 97 | end YM.RG08 |