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.WilsonBulk.Web.Accounts |
| 2 | |
| 3 | /-! |
| 4 | # Operations composing rooted, connected (bulk) coefficients |
| 5 | |
| 6 | `seam` has one shared vertex (including any type-coordinate in its alphabet). |
| 7 | `pluck` is used only with nonempty remaining legs on the cover, so never a |
| 8 | volume sum in the vacuum recursion. A weighted loop may additionally need a |
| 9 | pointwise product estimate but not a second width penalty. Strict-event lifts |
| 10 | will insert Γ using these operations on mixed cells. Utilities also encode |
| 11 | simple accuracy comparisons. |
| 12 | -/ |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | namespace YM.WilsonBulk.Sheet |
| 16 | open scoped Topology Classical BigOperators ENNReal |
| 17 | open Function Lattice Pert.Bulk |
| 18 | variable {X Y α β : Type} {σ θ p q : ℝ} {k n m : ℕ} {D : Rule X} |
| 19 | |
| 20 | def pluck (u : Page X (n+1)) : Page X n := fun v => ∑' x, u (hitch x v) |
| 21 | def seam (a : Page X (k+1)) (b : Page X (n+1)) : Page X ((k+n)+1) := |
| 22 | fun v => a (hitch (v 0) (snip k n (crop v))) * b (hitch (v 0) (keep k n (crop v))) |
| 23 | lemma seam_apply (a : Page X (k+1)) (b : Page X (n+1)) (x : X) (u : Legs X k) (v : Legs X n) : |
| 24 | seam a b (hitch x (Fin.append u v)) = a (hitch x u)*b (hitch x v) := by simp [seam] |
| 25 | |
| 26 | variable {a a' : Page X (k+1)} {b b' : Page X (n+1)} |
| 27 | |
| 28 | lemma Within.plucked (h : Within D σ p b) (hσ : 0 ≤ σ) : Within D σ p (pluck b) := by |
| 29 | refine ⟨h.1,fun i x=>?_⟩ |
| 30 | apply LE.le.trans ?_ (h.2 i.succ x); rw [rent_tail, ENNReal.tsum_comm] |
| 31 | refine ENNReal.tsum_le_tsum fun v=>?_ |
| 32 | by_cases he : v i=x; swap; · simp [he] |
| 33 | simp only [he,↓reduceIte]; apply (bill_tsum ..).trans (ENNReal.tsum_le_tsum fun y=>?_) |
| 34 | exact bill_mono le_rfl (mul_le_mul_of_nonneg_left ((le_add_of_nonneg_left (D.nonneg x y)).trans_eq (run_some ..).symm) hσ) |
| 35 | -- summability for use in nonextensive operations |
| 36 | lemma Within.over_pluck (h : Within D σ p b) (hσ : 0 ≤ σ) (hn : n ≠ 0) (v : Legs X n) : |
| 37 | Summable fun x => b (hitch x v) := by |
| 38 | let j : Fin n := ⟨0,by omega⟩ |
| 39 | have H := within_total h hσ j.succ (v j) |
| 40 | let f (x : X) := hitch x v |
| 41 | have h' : Injective f := fun a b e=>congr_fun e 0 |
| 42 | apply (H.comp_injective h').congr |
| 43 | intro x; simp [f] |
| 44 | |
| 45 | @[simp] lemma pluck_zero : pluck (0:Page X (n+1))=0 := by simp [pluck, funext_iff] |
| 46 | lemma pluck_scale (r : ℝ) : pluck (r • b)=r • pluck b := by funext x; simp [pluck,tsum_mul_left] |
| 47 | lemma pluck_add (h : Within D σ p b) (h' : Within D θ q b') (hp : 0≤σ) (hq : 0≤θ) (hn : n ≠ 0) : |
| 48 | pluck (b+b') = pluck b+pluck b' := funext fun v=> (h.over_pluck hp hn v).tsum_add (h'.over_pluck hq hn v) |
| 49 | lemma pluck_sub (h : Within D σ p b) (h' : Within D θ q b') (hp : 0≤σ) (hq : 0≤θ) (hn : n ≠ 0) : |
| 50 | pluck (b-b') = pluck b-pluck b' := funext fun v=> (h.over_pluck hp hn v).tsum_sub (h'.over_pluck hq hn v) |
| 51 | |
| 52 | lemma rent_seam_root (ha : Within D σ p a) (hb : Within D σ q b) (x : X) : |
| 53 | rent D σ (seam a b) 0 x ≤ ENNReal.ofReal (p*q) := by |
| 54 | have he := ha.2 0 x; have hh := hb.2 0 x |
| 55 | rw [rent_head] at he hh ⊢; rw [ts_plus] |
| 56 | simp_rw [seam_apply,run_joint,mul_add,purchase,ENNReal.tsum_mul_left, ENNReal.tsum_mul_right, ENNReal.ofReal_mul ha.1] |
| 57 | exact mul_le_mul' he hh |
| 58 | |
| 59 | lemma run_across (hp : 0≤θ) (he : ((n:ℝ)+1)*θ ≤ σ) (x y : X) (u : Legs X k) (v : Legs X n) : |
| 60 | θ*(D.cost x y+run D x u+run D x v) ≤ σ*run D x (hitch y u)+θ*run D y v := by |
| 61 | rw [run_some] |
| 62 | calc _ ≤ θ*(D.cost x y+run D x u+ (n*D.cost x y+ run D y v)) := mul_le_mul_of_nonneg_left (by gcongr; exact run_move ..) hp |
| 63 | _ ≤ ((n:ℝ)+1)*θ*(D.cost x y+run D x u)+θ*run D y v := by |
| 64 | nlinarith only [mul_nonneg (Nat.cast_nonneg n) (mul_nonneg hp (run_nonneg D x u))] |
| 65 | _ ≤ _ := by gcongr; exact add_nonneg (D.nonneg ..) (run_nonneg ..) |
| 66 | |
| 67 | lemma purchase_across (hp : 0 ≤ θ) (he : ((n:ℝ)+1)*θ ≤ σ) (a b : ℝ) |
| 68 | (x y : X) (u : Legs X k) (v : Legs X n) : bill (a*b) (θ*(D.cost x y+run D x u+run D x v)) ≤ |
| 69 | bill a (σ*run D x (hitch y u))*bill b (θ*run D y v) := bill_mul _ _ _ _ _ (run_across hp he ..) |
| 70 | |
| 71 | lemma rent_seam_left (ha : Within D σ p a) (hb : Within D θ q b) (hp : 0≤θ) (he : ((n:ℝ)+1)*θ ≤ σ) (i : Fin k) (x : X) : |
| 72 | rent D θ (seam a b) (Fin.castAdd n i).succ x ≤ ENNReal.ofReal (p*q) := by |
| 73 | rw [rent_tail, ENNReal.ofReal_mul ha.1] |
| 74 | have hx := mul_le_mul_left (ha.2 i.succ x) (ENNReal.ofReal q) |
| 75 | rw [rent_tail] at hx |
| 76 | simp_rw [← ENNReal.tsum_mul_right] at hx |
| 77 | refine LE.le.trans (ENNReal.tsum_le_tsum (fun y=>?_)) hx |
| 78 | rw [ts_plus]; refine ENNReal.tsum_le_tsum fun u=>?_ |
| 79 | simp only [Fin.append_left]; split_ifs with hk; swap; · simp |
| 80 | have ht := mul_le_mul_right (hb.2 0 y) (bill (a (hitch y u)) (σ*run D x (hitch y u))) |
| 81 | rw [rent_head, ← ENNReal.tsum_mul_left] at ht |
| 82 | refine LE.le.trans (ENNReal.tsum_le_tsum fun v=>?_) ht |
| 83 | rw [seam_apply,run_some,run_joint,← add_assoc] |
| 84 | exact purchase_across hp he (a (hitch y u)) (b (hitch y v)) .. |
| 85 | |
| 86 | lemma rent_seam_right (ha : Within D θ p a) (hb : Within D σ q b) (hp : 0≤θ) (he : ((k:ℝ)+1)*θ ≤ σ) (i : Fin n) (x : X) : |
| 87 | rent D θ (seam a b) (Fin.natAdd k i).succ x ≤ ENNReal.ofReal (p*q) := by |
| 88 | rw [rent_tail,ENNReal.ofReal_mul ha.1] |
| 89 | have hx := mul_le_mul_right (hb.2 i.succ x) (ENNReal.ofReal p) |
| 90 | rw [rent_tail] at hx |
| 91 | simp_rw [← ENNReal.tsum_mul_left] at hx |
| 92 | refine LE.le.trans (ENNReal.tsum_le_tsum (fun y=>?_)) hx |
| 93 | rw [ts_plus, ENNReal.tsum_comm]; refine ENNReal.tsum_le_tsum fun u=>?_ |
| 94 | simp only [Fin.append_right]; split_ifs with hk; swap; · simp |
| 95 | have ht := mul_le_mul_left (ha.2 0 y) (bill (b (hitch y u)) (σ*run D x (hitch y u))) |
| 96 | rw [rent_head, ← ENNReal.tsum_mul_right] at ht |
| 97 | refine LE.le.trans (ENNReal.tsum_le_tsum fun v=>?_) ht |
| 98 | rw [seam_apply, run_some, run_joint, add_comm (run D x v), ← add_assoc, mul_comm (a _), mul_comm (bill (a _) _)] |
| 99 | exact purchase_across hp he (b (hitch y u)) (a (hitch y v)) .. |
| 100 | |
| 101 | lemma Within.sewn (ha : Within D σ p a) (hb : Within D σ q b) (hp : 0≤θ) (he : ((n:ℝ)+1)*θ ≤ σ) (hh : ((k:ℝ)+1)*θ ≤ σ) : |
| 102 | Within D θ (p*q) (seam a b) := by |
| 103 | have hs : θ ≤ σ := (le_mul_of_one_le_left hp (by norm_cast; omega)).trans he |
| 104 | have h₁ := ha.mono hs le_rfl; have h₂ := hb.mono hs le_rfl |
| 105 | refine ⟨mul_nonneg ha.1 hb.1,fun j x=> Fin.cases (rent_seam_root h₁ h₂ x) (fun i=>?_) j⟩ |
| 106 | exact Fin.addCases (fun v=> rent_seam_left ha h₂ hp he v x) (fun v=> rent_seam_right h₁ hb hp hh v x) i |
| 107 | |
| 108 | @[simp] lemma seam_zero_left (a : Page X (n+1)) : seam (0:Page X (k+1)) a=0 := by ext1 x; simp [seam] |
| 109 | @[simp] lemma seam_zero_right (a : Page X (k+1)) : seam a (0:Page X (n+1))=0 := by ext1 x; simp [seam] |
| 110 | lemma seam_scale (r : ℝ) : seam (r • a) b = seam a (r • b) ∧ seam a (r • b)=r • seam a b := by |
| 111 | constructor <;> ext1 x <;> simp [seam] <;> ring |
| 112 | lemma seam_add_left : seam (a+a') b = seam a b + seam a' b := by ext1 v; exact add_mul .. |
| 113 | lemma seam_add_right : seam a (b+b') = seam a b + seam a b' := by ext1 v; exact mul_add .. |
| 114 | lemma seam_sub_left : seam (a-a') b = seam a b - seam a' b := by ext1 v; exact sub_mul .. |
| 115 | lemma seam_sub_right : seam a (b-b') = seam a b - seam a b' := by ext1 v; exact mul_sub .. |
| 116 | lemma seam_tele : seam a b-seam a' b' = seam (a-a') b + seam a' (b-b') := by rw [seam_sub_left, seam_sub_right]; abel |
| 117 | |
| 118 | lemma Within.bound_mul {u v : Page X n} (ha : Within D σ p u) (hp : 0≤q) (hh : ∀ x,|v x|≤q) : Within D σ (q*p) (u*v) := by |
| 119 | have ht := ha.scale q; rw [abs_of_nonneg hp] at ht |
| 120 | refine ht.by_abs fun x=>?_ |
| 121 | dsimp only [Pi.mul_apply,Pi.smul_apply,smul_eq_mul]; rw [mul_comm (u x),abs_mul,abs_mul q,abs_of_nonneg hp]; gcongr; exact hh _ |
| 122 | lemma Within.prod {u v : Page X n} (ha : Within D σ p u) (hb : Within D θ q v) (hp : 0≤θ) : Within D σ (q*p) (u*v) := by |
| 123 | by_cases he : n=0 |
| 124 | · subst n; exact ⟨mul_nonneg hb.1 ha.1,(fun i=>Fin.elim0 i)⟩ |
| 125 | exact ha.bound_mul hb.1 (within_entry hb hp he) |
| 126 | |
| 127 | end YM.WilsonBulk.Sheet |