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.PRICE_COMPILER.Basic |
| 2 | import YM.Work.C02 |
| 3 | import YM.Work.G07.Stencil |
| 4 | |
| 5 | /-! |
| 6 | # Numerical rates for path and support budgets |
| 7 | |
| 8 | For these widths get pre-L quote numbers for the |
| 9 | `r34cap`-style inequalities; with them fix the caps. |
| 10 | |
| 11 | Then take pre-L kinetic |
| 12 | error bounds and loop transfer costs and width-fit asks (like |
| 13 | `C_J η/L ≤ σ_J/2`), which can now use those widths/caps. |
| 14 | |
| 15 | All gates costed |
| 16 | here work for all sufficiently large L. |
| 17 | |
| 18 | None uses any actual block lengths |
| 19 | in another stage to set a LOWER bound on this stage's L. |
| 20 | |
| 21 | This doesn't prove the physics bounds/identities **at** these costs. See |
| 22 | later path consumer in this project for the actual required estimates. |
| 23 | -/ |
| 24 | |
| 25 | set_option autoImplicit false |
| 26 | noncomputable section |
| 27 | namespace YM.Push.PriceCompiler |
| 28 | open Filter Function Lattice RG Wilson RG.Supply |
| 29 | open scoped Topology Matrix.Norms.Frobenius BigOperators |
| 30 | |
| 31 | /-- Early quote. Can already include finite internal losses on an edge; it |
| 32 | is availability *after* those. May shrink each input by any further width |
| 33 | requirements **known before** the L gates; don't use a report after taking |
| 34 | the corresponding lengths. -/ |
| 35 | structure Openings where |
| 36 | born : ℕ → ℝ |
| 37 | transfers : ℕ → ℕ → ℝ |
| 38 | wish : ℕ → ℝ -- also cap the width by this (arbitrary positive) |
| 39 | bp i : 0 < born i |
| 40 | tp j i : 0 < transfers j i |
| 41 | wp i : 0 < wish i |
| 42 | |
| 43 | namespace Openings |
| 44 | variable (t : Openings) |
| 45 | /-- Commit a width for BOTH sides of every use. Also leave room for finite |
| 46 | moments at each j, not a repeated width erosion. -/ |
| 47 | def offered (i : ℕ) : ℝ := min (min (t.wish i) (t.born i)) (intoMin t.transfers i) |
| 48 | |
| 49 | def active (i : ℕ) : ℝ := rateLo t.offered i / 2 |
| 50 | |
| 51 | lemma active_anti : Antitone t.active := fun i j hij => |
| 52 | div_le_div_of_nonneg_right (rateLo_anti _ hij) (by norm_num) |
| 53 | |
| 54 | lemma active_pos (i) : 0 < t.active i := div_pos (rateLo_pos |
| 55 | (fun j : ℕ => lt_min (lt_min (t.wp j) (t.bp j)) (lt_min (t.tp ..) (t.tp ..))) _) (by norm_num) |
| 56 | |
| 57 | lemma offered_ge (i : ℕ) : 2 * t.active i ≤ t.offered i := by |
| 58 | unfold active |
| 59 | linarith only [rateLo_le t.offered i] |
| 60 | |
| 61 | lemma born_ge (i : ℕ) : 2 * t.active i ≤ t.born i := |
| 62 | (t.offered_ge i).trans ((min_le_left ..).trans (min_le_right ..)) |
| 63 | |
| 64 | lemma transfers_ge {i j : ℕ} (h : StepStages j i) : 2 * t.active i ≤ t.transfers j i := |
| 65 | (t.offered_ge i).trans ((min_le_right ..).trans (intoMin_le t.transfers h)) |
| 66 | |
| 67 | lemma wish_ge (i : ℕ) : 2 * t.active i ≤ t.wish i := |
| 68 | (t.offered_ge i).trans ((min_le_left ..).trans (min_le_left ..)) |
| 69 | end Openings |
| 70 | |
| 71 | /-- Next set of raw quotes (unified amount okay to be larger). After |
| 72 | committing widths. BEFORE fixing caps or quoting the kinetic error. -/ |
| 73 | structure Amounts where |
| 74 | born : ℕ → ℝ |
| 75 | sends : ℕ → ℕ → ℝ |
| 76 | extra : ℕ → ℝ |
| 77 | born_pos i : 0 < born i |
| 78 | sends_pos j i : 0 < sends j i |
| 79 | |
| 80 | namespace Amounts |
| 81 | variable (t : Amounts) |
| 82 | |
| 83 | def offered (i : ℕ) := max (max (t.extra i) (t.born i)) (intoMax t.sends i) |
| 84 | |
| 85 | /-- One cap for all rows/classical coefficients in `PathData.Bounds`. -/ |
| 86 | def active (i : ℕ) : ℝ := 4*payHi t.offered i |
| 87 | |
| 88 | lemma active_pos (i : ℕ) : 0 < t.active i := mul_pos (by norm_num) (payHi_pos ..) |
| 89 | lemma active_mono : Monotone t.active := fun _ _ hij => mul_le_mul_of_nonneg_left (payHi_mono t.offered hij) (by norm_num) |
| 90 | |
| 91 | |
| 92 | |
| 93 | lemma born_le (i : ℕ) : t.born i ≤ t.active i := calc |
| 94 | _ ≤ payHi t.offered i := le_trans ((le_max_right ..).trans (le_max_left ..)) (le_payHi t.offered i) |
| 95 | _ ≤ _ := le_mul_of_one_le_left (payHi_pos ..).le (by norm_num) |
| 96 | |
| 97 | lemma sends_le {j i : ℕ} (h : StepStages j i) : 4*t.sends j i ≤ t.active i := |
| 98 | mul_le_mul_of_nonneg_left |
| 99 | (le_trans ((le_intoMax _ h).trans (le_max_right ..)) (le_payHi t.offered i)) (by norm_num) |
| 100 | end Amounts |
| 101 | |
| 102 | /-- E `r34cap` shape, using a common `R` covering the path row, cubic |
| 103 | and quartic. Cubic quote `A*(1+μ²R)` bounded by this one. -/ |
| 104 | def classicalCost (A L R : ℝ) : ℝ := |
| 105 | A*(1+L⁻¹^(2:ℕ)*R+ L⁻¹^(4:ℕ)*R^2+L⁻¹^(4:ℕ)*R) |
| 106 | |
| 107 | |
| 108 | |
| 109 | |
| 110 | |
| 111 | |
| 112 | |
| 113 | /-- Take only after classical caps. `inputStrip` stands for the width |
| 114 | consumption numerator (scaling like `C_J η` on fine phases), not a |
| 115 | statement of any analytic estimate. -/ |
| 116 | structure LoopPrices where |
| 117 | inputStrip : ℕ → ℕ → ℝ -- pre-L quote, for classical & loops |
| 118 | add : ℕ → ℕ → ℝ |
| 119 | send : ℕ → ℕ → ℝ |
| 120 | kineticErr : ℕ → ℕ → ℝ -- slope correction bound for each transition |
| 121 | add_pos j i : 0 < add j i |
| 122 | send_pos j i : 0 < send j i |
| 123 | err_pos j i : 0 < kineticErr j i |
| 124 | input_pos j i : 0 < inputStrip j i |
| 125 | |
| 126 | namespace LoopPrices |
| 127 | variable (v : LoopPrices) |
| 128 | |
| 129 | def drift := payHi fun j => fromMax v.kineticErr j + 1 |
| 130 | |
| 131 | |
| 132 | /-- Variable loop-cap bound. E `b2loop` , allow different |
| 133 | constants. -/ |
| 134 | def cost (j i : ℕ) (L Λ : ℝ) := v.add j i * L^(4:ℕ) + v.send j i / L^(2:ℕ) * Λ |
| 135 | |
| 136 | |
| 137 | end LoopPrices |
| 138 | |
| 139 | /-- Support-projection budget quotes for each transition. `rad` is the |
| 140 | halo measured in **output B units** and quoted PRE-L. `allow` is an |
| 141 | extra output support exponent for the use. -/ |
| 142 | structure HaloBill where |
| 143 | rad : ℕ → ℕ → ℕ |
| 144 | allow : ℕ → ℕ → ℝ |
| 145 | extra j i : 0 ≤ allow j i |
| 146 | |
| 147 | def haloC (s : ℕ) : ℝ := (((s+6)+(s+6)+1)^4 : ℕ) |
| 148 | |
| 149 | |
| 150 | /-- Explicit pre-L inequalities on ONE transition (arguments j→i). |
| 151 | `A` support exponent by stage; do not confuse with the classical cost. |
| 152 | For kernel thresholds and all further asks one must **also** raise the |
| 153 | floor in the calendar. -/ |
| 154 | structure EdgeGate (A : ℕ → ℝ) (w : Openings) (u : Amounts) (t : LoopPrices) (b : HaloBill) |
| 155 | (j i L : ℕ) : Prop where |
| 156 | size : 0 < L |
| 157 | phase : t.inputStrip j i / L ≤ w.active j / 2 |
| 158 | cap : classicalCost (u.sends j i) L (u.active j) ≤ u.active i |
| 159 | loopTransfer : t.send j i / (L:ℝ)^2 ≤ 1/4 |
| 160 | covers : 10*haloC (b.rad j i)*(A i+b.allow j i)/L < A j/2 |
| 161 | |
| 162 | |
| 163 | |
| 164 | lemma EdgeGate.eventual (A : ℕ → ℝ) (hA : ∀ j, 0 < A j) (w : Openings) (u : Amounts) (t : LoopPrices) (b : HaloBill) |
| 165 | {j i : ℕ} (h : StepStages j i) : ∀ᶠ L in atTop, EdgeGate A w u t b j i L := by |
| 166 | have hu := u.sends_le h |
| 167 | have hl : Tendsto (fun k : ℕ => (k:ℝ)⁻¹) atTop (𝓝 0) := tendsto_inv_atTop_zero.comp tendsto_natCast_atTop_atTop |
| 168 | have hr (x : ℝ) : Tendsto (fun k : ℕ => x / (k:ℝ)) atTop (𝓝 0) := by |
| 169 | simpa only [div_eq_mul_inv, mul_zero] using hl.const_mul x |
| 170 | have hs (x : ℝ) : Tendsto (fun k : ℕ => x / (k:ℝ)^2) atTop (𝓝 0) := by |
| 171 | simpa only [inv_pow, div_eq_mul_inv, zero_pow two_ne_zero, mul_zero] using (hl.pow 2).const_mul x |
| 172 | have ht : Tendsto (fun k : ℕ => classicalCost (u.sends j i) k (u.active j)) atTop (𝓝 (u.sends j i)) := by |
| 173 | unfold classicalCost |
| 174 | let R := u.active j; let y := u.sends j i |
| 175 | have he := ((((tendsto_const_nhds (x:=(1:ℝ))).add ((hl.pow 2).mul_const R)).add |
| 176 | ((hl.pow (4:ℕ)).mul_const (R^2))).add ((hl.pow (4:ℕ)).mul_const R)).const_mul y |
| 177 | simpa only [OfNat.ofNat_ne_zero, ne_eq, not_false_eq_true, zero_pow, zero_mul, add_zero, mul_one] |
| 178 | using he |
| 179 | have hd := u.sends_pos j i |
| 180 | filter_upwards [eventually_gt_atTop 0, |
| 181 | (hr (t.inputStrip j i)).eventually (ge_mem_nhds (div_pos (w.active_pos j) (by norm_num : (0:ℝ)<2))), |
| 182 | ht.eventually (ge_mem_nhds (show u.sends j i < u.active i by linarith only [hd,hu])), |
| 183 | (hs (t.send j i)).eventually (ge_mem_nhds (show (0:ℝ)<1/4 by norm_num)), |
| 184 | (hr (10*haloC (b.rad j i)*(A i+b.allow j i))).eventually |
| 185 | (gt_mem_nhds (div_pos (hA j) (by norm_num : (0:ℝ)<2)))] with L hL hq hR hJ hb |
| 186 | exact ⟨hL,hq,hR,hJ,hb⟩ |
| 187 | |
| 188 | theorem edgeFloors (A : ℕ → ℝ) (hA : ∀ j, 0 < A j) (w : Openings) (u : Amounts) (t : LoopPrices) (b : HaloBill) |
| 189 | (f₀ : ℕ → ℕ) : ∃ f : ℕ → ℕ, Monotone f ∧ f₀ ≤ f ∧ ∀ j L, f j ≤ L → |
| 190 | ∀ i, StepStages j i → EdgeGate A w u t b j i L := by |
| 191 | apply collect_upper f₀ (fun j L => ∀ i, StepStages j i → EdgeGate A w u t b j i L) |
| 192 | exact fun j => eventually_transitions j atTop _ fun _ he => EdgeGate.eventual A hA w u t b he |
| 193 | |
| 194 | /-! New Clip: change ONLY `relaxation`, pre-L but after the rate budget is |
| 195 | known. `extra` can include all needed pre-L lower bounds. -/ |
| 196 | namespace Openings |
| 197 | variable (w : Openings) |
| 198 | |
| 199 | def relax (u : ℕ → Clip) (extra : ℕ → ℝ) : ℕ → ℝ := payHi (fun i => |
| 200 | max (max (u i).relaxation (extra i)) (12/w.active i)) |
| 201 | |
| 202 | def newClip (u : ℕ → Clip) (extra : ℕ → ℝ) (i : ℕ) : Clip := |
| 203 | { (u i) with relaxation := w.relax u extra i, radius_pos := payHi_pos _ i } |
| 204 | |
| 205 | lemma relax_ge (u : ℕ → Clip) (extra : ℕ → ℝ) (i : ℕ) : |
| 206 | let v := (w.newClip u extra i).relaxation |
| 207 | (u i).relaxation ≤ v ∧ extra i ≤ v ∧ 12 ≤ v * w.active i := by |
| 208 | intro v |
| 209 | have he : max (max (u i).relaxation (extra i)) (12 / w.active i) ≤ v := |
| 210 | le_payHi (fun i => max (max (u i).relaxation (extra i)) (12/w.active i)) i |
| 211 | rw [max_le_iff, max_le_iff] at he |
| 212 | exact ⟨he.1.1, he.1.2, (div_le_iff₀ (w.active_pos i)).mp he.2⟩ |
| 213 | end Openings |
| 214 | end YM.Push.PriceCompiler |