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.Push.STATIONARY_UNIFORM.Scatter |
| 2 | import YM.Push.STATIONARY_UNIFORM.Support |
| 3 | import YM.Work.A15 |
| 4 | |
| 5 | /-! |
| 6 | # Path entries before translating |
| 7 | |
| 8 | Actual atoms and ℓ's, including winding. Allow all real analytic derivatives |
| 9 | through n, at arbitrary points in a real sup ball. Use their *given* path |
| 10 | weights, spending width only in these field-entry estimates (do not update |
| 11 | widths on the output history!). Different from etc which also use |
| 12 | kinetic inputs for sharp small factors. No determinant/alpha claim here. |
| 13 | -/ |
| 14 | set_option autoImplicit false |
| 15 | noncomputable section |
| 16 | namespace YM.Push.Uniform |
| 17 | open Lattice Wilson RG Precision Tree Pressure Gauge Exterior Work.F02 |
| 18 | open Next.Fluctuations Filter Function Set Metric |
| 19 | open scoped Topology Matrix.Norms.Frobenius ContDiff BigOperators InnerProductSpace Classical |
| 20 | |
| 21 | variable {G : Gauge} {c f : Side} {ratio : Ratio c f} (B : Forest ratio) (s : Signed) |
| 22 | {n k : ℕ} {Z C Λ μ : ℝ} |
| 23 | |
| 24 | lemma signed_supply (hp : PaintSupply G n Z) (v : Positions (Joint B G)) (hv : ‖v‖ ≤ 1) (i : Bond f) : |
| 25 | Allows n (fun z => G.mat (signedFine B z s i)) v (fineCost G n Z) := by |
| 26 | let d := (posDir i.2).rotate s; let j := affine s 0 i.1 |
| 27 | have h := (fine_supply B hp).2.2 (d.used j) v hv |
| 28 | unfold signedFine pull Step.read; split |
| 29 | next he => exact h.inverse (f:=fun z => _) |
| 30 | next he => exact h |
| 31 | |
| 32 | /-- Weight also counts tree replica locations in fine units; proof uses |
| 33 | no more than this rate. -/ |
| 34 | def entryWidth (n : ℕ) (L : Side) (μ : ℝ) := μ/(4*((n:ℝ)+1)*(1+L.val)) |
| 35 | lemma width_positive (hm : 0<μ) (n : ℕ) (L : Side) : 0 < entryWidth n L μ := by unfold entryWidth; positivity |
| 36 | lemma pay_support (hm : 0<μ) (n t : ℕ) (L : Side) : |
| 37 | Real.exp (μ/2*t) * Real.exp (entryWidth n L μ*((n*signedCost L (2*t):ℕ):ℝ)) ≤ |
| 38 | Real.exp (μ*t) * Real.exp μ := by |
| 39 | rw [← Real.exp_add, ← Real.exp_add, Real.exp_le_exp] |
| 40 | unfold entryWidth signedCost |
| 41 | push_cast |
| 42 | -- widening paid by one buffer |
| 43 | calc |
| 44 | _ = μ/2*t + (μ*(n*(2*(t:ℝ)+1+L.val))) /(4*(n+1:ℝ)*(1+L.val)) := by ring |
| 45 | _ ≤ μ/2*t + (μ/2*t+μ) := by |
| 46 | gcongr; apply (div_le_iff₀ (by positivity : 0 < 4*(n+1:ℝ)*(1+L.val))).mpr |
| 47 | ring_nf |
| 48 | -- preserve positive powers |
| 49 | have hu : 0 ≤ μ*n*t*(L.val:ℝ) := by positivity |
| 50 | have hv : 0 ≤ μ*n*(L.val:ℝ) := by positivity |
| 51 | have hy : 0 ≤ μ*n := by positivity |
| 52 | have he : 0 ≤ μ*t := by positivity |
| 53 | have hz : 0 ≤ μ*(L.val:ℝ) := by positivity |
| 54 | have ha : 0 ≤ μ*t*(L.val:ℝ) := by positivity |
| 55 | linarith |
| 56 | _ = _ := by ring |
| 57 | |
| 58 | -- ambient estimates use exponential length summability on coefficients (NOT |
| 59 | -- concluding any nonlocal metric estimate from analyticity alone). |
| 60 | |
| 61 | def pathPrice (G : Gauge) (Z μ : ℝ) (n : ℕ) := composeCost n ((1+2^n / (Work.F02.radius (μ/2)))^n) (fineCost G n Z) |
| 62 | lemma fine_pos (h : PaintSupply G n Z) : 0 ≤ fineCost G n Z := by |
| 63 | have he := outer_pos G n h.1; unfold fineCost; positivity |
| 64 | lemma pathPrice_pos (hp : PaintSupply G n Z) (hm : 0 < μ) : 0 < pathPrice G Z μ n := by |
| 65 | have hr := Work.F02.radius_pos (half_pos hm); have hf := fine_pos hp |
| 66 | unfold pathPrice composeCost; positivity |
| 67 | |
| 68 | def rootsCost (G : Gauge) (Z μ : ℝ) (n : ℕ) := pathPrice G Z μ n * |Work.F02.slotConst G| * ‖Work.F02.colorReal G‖ * Real.exp μ |
| 69 | lemma roots_nn (hp : PaintSupply G n Z) (hm : 0 < μ) : 0 ≤ rootsCost G Z μ n := by |
| 70 | have h := pathPrice_pos hp hm; unfold rootsCost; positivity |
| 71 | |
| 72 | def atomCost (G : Gauge) (Z μ : ℝ) (n k : ℕ) := pathPrice G Z μ n * |Work.F02.slotConst G|^k * Real.exp μ |
| 73 | lemma atomCost_nn (hp : PaintSupply G n Z) (hm : 0 < μ) (k) : 0 ≤ atomCost G Z μ n k := by |
| 74 | have h := pathPrice_pos hp hm; unfold atomCost; positivity |
| 75 | |
| 76 | lemma piece (h : PaintSupply G n Z) (p : Positions (Joint B G)) (hp : ‖p‖ ≤ 1) (x : Site f) (q : Slot) (hm : 0<μ) (w : ℝ) : |
| 77 | let J := (q.atSite (n:=f) (G:=G)); let a := entryWidth n ratio.count μ; let r := signedCost ratio.count (2*q.length) |
| 78 | ∃ M : ℝ, Allows n (fun z => w • J (signedFine B z s) x) p M ∧ |
| 79 | M*Real.exp (a*((n*r:ℕ):ℝ)) ≤ (|w| * Real.exp (μ*q.length))*rootsCost G Z μ n := by |
| 80 | let A (z : Positions (Joint B G)) := signedFine B z s |
| 81 | let P (z : Positions (Joint B G)) := physical (A z) |
| 82 | let α := entryWidth n ratio.count μ; let m := μ/2; let r := signedCost ratio.count (2*q.length) |
| 83 | have he := signed_supply B s h p hp |
| 84 | have hh := allows_real_of_entire n (Work.F02.slotExt_contDiff q (G:=G) x) (x:=P p) |
| 85 | (Work.F02.radius_pos (half_pos hm)) (fun y hy => |
| 86 | (slotExt_bound (A p) (half_pos hm) y (ball_subset_closedBall hy) q x).trans |
| 87 | (show _ ≤ |Work.F02.slotConst G| * Real.exp (m*q.length) from |
| 88 | mul_le_mul_of_nonneg_right (le_abs_self _) (by positivity))) |
| 89 | let M := |Work.F02.slotConst G| * pathPrice G Z μ n * Real.exp (m*q.length) |
| 90 | have hj : Allows n (fun z => slotExt q x (P z)) p M := by |
| 91 | refine (hh.comp (f:=P) (allows_ambient (U:=A) he)).mono ?_ |
| 92 | unfold M pathPrice m composeCost; exact le_of_eq (by ring) |
| 93 | have HX (z : Positions (Joint B G)) : colorReal G (slotExt q x (P z)) = q.atSite (A z) x := by |
| 94 | unfold P; rw [slotExt_physical,colorReal_up] |
| 95 | have hk := (hj.linear (colorReal G) le_rfl).smul w |
| 96 | refine ⟨|w| * (‖colorReal G‖ * M),?_ ,?_⟩ |
| 97 | · simp_rw [HX] at hk; exact hk |
| 98 | have hδ := pay_support hm n q.length ratio.count |
| 99 | let D := |w| * ‖colorReal G‖ * |slotConst G| * pathPrice G Z μ n |
| 100 | have hz : 0 ≤ D := mul_nonneg (mul_nonneg (by positivity) (by positivity)) (pathPrice_pos h hm).le |
| 101 | calc |
| 102 | _ = D*(Real.exp (m*q.length)*Real.exp (α*((n*r:ℕ):ℝ))) := by unfold D α M r; ring |
| 103 | _ ≤ D*(Real.exp (μ*q.length)*Real.exp μ) := mul_le_mul_of_nonneg_left hδ hz |
| 104 | _ = _ := by unfold D rootsCost; ring |
| 105 | |
| 106 | lemma pay_atom (h : PaintSupply G n Z) (p : Positions (Joint B G)) (hp : ‖p‖ ≤ 1) (x : Site f) (q : Atom G k) (hm : 0<μ) : |
| 107 | let a := entryWidth n ratio.count μ; let r := signedCost ratio.count (2*q.length) |
| 108 | ∃ M : ℝ, Allows n (fun z => q.unmasked (signedFine B z s) x) p M ∧ |
| 109 | M*Real.exp (a*((n*r:ℕ):ℝ)) ≤ q.budget μ * atomCost G Z μ n k := by |
| 110 | let A (z : Positions (Joint B G)) := signedFine B z s |
| 111 | let P (z : Positions (Joint B G)) := physical (A z) |
| 112 | let m := μ/2 |
| 113 | have hy : 0 ≤ q.magnitude := by unfold Atom.magnitude; positivity |
| 114 | have hh := allows_real_of_entire n (Work.F02.atomExt_contDiff q x) (x:=P p) (Work.F02.radius_pos (half_pos hm)) |
| 115 | (fun y hv => (atomExt_bound q _ (half_pos hm) y (ball_subset_closedBall hv) x).trans (show _ ≤ q.budget m * |slotConst G|^k by |
| 116 | by_cases h : 0 ≤ slotConst G |
| 117 | · rw [abs_of_nonneg h] |
| 118 | apply mul_le_mul_of_nonneg_left _ (mul_nonneg hy (Real.exp_pos _).le) |
| 119 | rw [← abs_pow]; exact le_abs_self _)) |
| 120 | let M := q.budget m * pathPrice G Z μ n * |slotConst G|^k |
| 121 | have hj : Allows n (fun z => atomExt q x (P z)) p M := by |
| 122 | refine (hh.comp (f:=P) (allows_ambient (U:=A) (signed_supply B s h p hp))).mono ?_ |
| 123 | unfold M pathPrice m composeCost; exact le_of_eq (by ring) |
| 124 | refine ⟨M,?_,?_⟩ |
| 125 | · have he (z) : Complex.reCLM (atomExt q x (P z)) = q.unmasked (A z) x := by unfold P; rw [Work.F02.atomExt_physical]; rfl |
| 126 | have h := hj.linear Complex.reCLM Complex.reCLM_norm.le; simp_rw [he,one_mul] at h; exact h |
| 127 | let D := q.magnitude * pathPrice G Z μ n * |Work.F02.slotConst G|^k |
| 128 | have ht := mul_le_mul_of_nonneg_left (pay_support hm n q.length ratio.count) |
| 129 | (show 0≤D from mul_nonneg (mul_nonneg hy (pathPrice_pos h hm).le) (by positivity)) |
| 130 | unfold D at ht |
| 131 | unfold M atomCost m Atom.budget; linarith only [ht] |
| 132 | |
| 133 | lemma ell_beacon (p : Clip) (W : PathData G) (h : W.Bounds p μ C Λ) (hs : PaintSupply G n Z) (x : Positions (Joint B G)) |
| 134 | (hx : x∈ball 0 1) (i : Face (Per f)) : Beacon (address B G) (entryWidth n ratio.count μ) n |
| 135 | (fun z => W.ell (signedFine B z s) i) (affine s 0 i.1) x (C*rootsCost G Z μ n) := by |
| 136 | let a := W.row i.2; let M := rootsCost G Z μ n |
| 137 | have ht := h.rows i.2 |
| 138 | have hm := roots_nn hs h.width |
| 139 | let U j := (|(a j).1| * Real.exp (μ*(a j).2.length))*M |
| 140 | have hU : SumBudget U (C*M) := ⟨fun i => mul_nonneg (ht.1 _) hm, ht.2.1.mul_right M, by |
| 141 | rw [show (∑' i,U i)=_ from tsum_mul_right]; exact mul_le_mul_of_nonneg_right ht.2.2 hm⟩ |
| 142 | have he (j : ℕ) (x : Positions (Joint B G)) (hx : x∈ball 0 1) := piece B s hs x (show ‖x‖ ≤ 1 from (show ‖x‖ < 1 by simpa using hx).le) |
| 143 | i.1 (a j).2 h.width (a j).1 |
| 144 | have hh := width_positive h.width n ratio.count |
| 145 | refine beacon_tsum (u:=fun j z => W.ellTerms i j (signedFine B z s)) isOpen_ball (convex_ball (0:Positions (Joint B G)) 1).isPreconnected hU.2.1 hU ?_ hx ?_ |
| 146 | · intro j x hx; obtain ⟨T,ht,hM⟩ := he j x hx |
| 147 | exact ht.mono ((le_mul_of_one_le_right ht.nonneg (Real.one_le_exp (by positivity))).trans hM) |
| 148 | intro j; obtain ⟨T,ht,hM⟩ := he j x hx |
| 149 | apply Beacon.mono _ hM; apply Allows.beacon ht (s:=Set.univ) _ univ_mem hh.le |
| 150 | intro u _ v _ he |
| 151 | change (a j).1 • (a j).2.atSite _ _=(a j).1 • (a j).2.atSite _ _ |
| 152 | rw [slot_read B s i.1 _ le_rfl he] |
| 153 | |
| 154 | lemma atom_beacon {W : ℕ → Atom G k} (hm : 0<μ) (h : SumBudget (fun j => (W j).budget μ) C) |
| 155 | (hs : PaintSupply G n Z) (x : Positions (Joint B G)) (hx : x ∈ ball 0 1) (i : Site f) : Beacon (address B G) |
| 156 | (entryWidth n ratio.count μ) n (fun z => ∑' j, (W j).unmasked (signedFine B z s) i) (affine s 0 i) x (C*atomCost G Z μ n k) := by |
| 157 | let M := atomCost G Z μ n k |
| 158 | let U j := (W j).budget μ*M |
| 159 | have hM := atomCost_nn hs hm k |
| 160 | have hU : SumBudget U (C*M) := ⟨fun i => mul_nonneg (h.1 _) hM,h.2.1.mul_right M, by |
| 161 | rw [show (∑' i,U i)=_ from tsum_mul_right]; exact mul_le_mul_of_nonneg_right h.2.2 hM⟩ |
| 162 | have he (j : ℕ) (x : Positions (Joint B G)) (hx : x∈ball 0 1) := pay_atom B s hs x (show ‖x‖ ≤ 1 from (show ‖x‖ < 1 by simpa using hx).le) |
| 163 | i (W j) hm |
| 164 | have hh := width_positive hm n ratio.count |
| 165 | refine beacon_tsum (u:=fun j z => (W j).unmasked (signedFine B z s) i) isOpen_ball (convex_ball (0:Positions (Joint B G)) 1).isPreconnected hU.2.1 hU ?_ hx ?_ |
| 166 | · intro j x hx; obtain ⟨T,ht,hM⟩ := he j x hx |
| 167 | exact ht.mono ((le_mul_of_one_le_right ht.nonneg (Real.one_le_exp (by positivity))).trans hM) |
| 168 | intro j; obtain ⟨T,ht,hM⟩ := he j x hx |
| 169 | apply Beacon.mono _ hM; apply Allows.beacon ht (s:=Set.univ) _ univ_mem hh.le |
| 170 | intro u _ v _ he |
| 171 | unfold Atom.unmasked |
| 172 | refine congr_arg _ (funext fun b => slot_read B s i _ ?_ he) |
| 173 | have h : ((W j).leg b).length ≤ (W j).length := Finset.single_le_sum (fun i _ => Nat.zero_le ((W j).leg i).length) (Finset.mem_univ b) |
| 174 | unfold signedCost; gcongr |
| 175 | end YM.Push.Uniform |