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.SharpGram.Weak.Reading |
| 2 | import YM.SharpGram.Clauses |
| 3 | import YM.OPE.Levy.Invoice |
| 4 | import YM.Extra.WILSON_STARTUP.Fast |
| 5 | /-! |
| 6 | # Exact quota ratios, residual costs of crossing |
| 7 | |
| 8 | Transport from r = atK k up to actual k costs a single coefficient price |
| 9 | power; not optimizing exponent. Inverse/readout bound applies even after |
| 10 | cutoff-dependent reps and on auxiliary sublimits. Cost explicit. |
| 11 | No claim about all-order physical coefficients; keep each marked observable's |
| 12 | frame costs for when paying perturbative comparisons. |
| 13 | -/ |
| 14 | set_option autoImplicit false |
| 15 | noncomputable section |
| 16 | namespace YM.SharpGram.Weak.Portfolio |
| 17 | open Function Filter Set MeasureTheory Lattice Wilson RG Marker Source Extra.Histories |
| 18 | open Extraction Bid Push Next.Extract Dash Cells Next.Rank PhysicalNext.RankCovariance |
| 19 | open Org Spec Next.Rank.Station Next.Rank.East Further.CorrectedLift Analysis Next.UVStress Climb Ward |
| 20 | open scoped Topology Matrix.Norms.Frobenius BigOperators Classical ContDiff |
| 21 | open Price |
| 22 | set_option quotPrecheck false |
| 23 | variable {G:Gauge}{C:Family G}{S:Table C.book}{f:Extraction.Order}(U:Final C f S) |
| 24 | variable {D:ℕ}{u:Filter (ℕ×ℕ)}{H:C.Makes} (X : Portfolio C H D u) |
| 25 | local notation "A" => C.path.levels |
| 26 | local notation "P" => C.path.levels.clock.hatBeta |
| 27 | local notation "a" => C.S.a |
| 28 | local notation "F"=> standard C |
| 29 | local notation "σ"=> U.room.kernel.spin |
| 30 | local notation "θ"=> Maxwell.Free.spin_free C.labels |
| 31 | variable {W r T0} (T : OPE.TableTickets C W r T0) (hG:G.Simple) |
| 32 | |
| 33 | section microscopeB |
| 34 | include H |
| 35 | include T |
| 36 | lemma reverseWalk {d m k N p : ℕ} (x : C.label d) (he : C.ref d ≤ m) (hk : m ≤ k) (hp : k ≤ N) : |
| 37 | quota C d k N p x ≤ a m / a k * quota C d m N p x := by |
| 38 | induction k,hk using Nat.le_induction with |
| 39 | | base => rw [div_self (C.S.a_pos m).ne',one_mul] |
| 40 | | succ i hi ih => |
| 41 | let K := C.path.levels |
| 42 | let ℓ : ℝ := (C.S.block i).val |
| 43 | have hL : 0 < ℓ := by unfold ℓ; positivity |
| 44 | have hs : (K.params (i+1)).columns ≤ ℓ := OPE.Columns.column_small T.system.costs.back |
| 45 | calc |
| 46 | _ ≤ _ := (H.calibrated _ _ p ((he.trans hi).trans ((Nat.le_succ i).trans hp))).back i (he.trans hi) hp _ |
| 47 | _ ≤ ℓ * (a m / a i * quota C d m N p x) := mul_le_mul hs (ih (by omega)) (quota_nonneg _) hL.le |
| 48 | _ = _ := by rw [Schedule.a_step]; unfold ℓ; field_simp [(C.S.a_pos i).ne']; |
| 49 | |
| 50 | omit T in |
| 51 | lemma resqueeze : ∀ᶠ k : ℕ in atTop, a (X.atK k) / a k ≤ P k := by |
| 52 | filter_upwards [X.onLevel] with k ⟨_,h,_⟩ |
| 53 | have hP : 0 < P k := zero_lt_one.trans ((A).fits.delayed k) |
| 54 | rw [Stock.a_log C.S k,Stock.a_log C.S (X.atK k),← Real.exp_sub] |
| 55 | exact (Real.le_log_iff_exp_le hP).mp (by linarith only [h]) |
| 56 | |
| 57 | include hG |
| 58 | omit T in |
| 59 | lemma narrowed : ∀ᶠ k : ℕ in atTop, ∀ N p : ℕ, k ≤ N → Price.shrink C k N p ≤ 1 := by |
| 60 | have he : Tendsto (A).clock.monitor atTop atTop := (Station.mag_rate _ hG (show (0:ℝ)<1 from zero_lt_one)).congr (fun i => Real.rpow_one _) |
| 61 | filter_upwards [he.eventually_ge_atTop 2] with k hk N p hN |
| 62 | have hP := zero_lt_one.trans ((A).fits.delayed k); have hw := (H.wilson.represents N p k hN).band.1 |
| 63 | have hb := Overlay.beta_positive (N:=N) (p:=p) H.wilson hN |
| 64 | have hh : Real.sqrt (P k) ≤ 2 * Real.sqrt (C.path.β N p k) := by |
| 65 | nlinarith only [hw,hb,Real.sqrt_nonneg (P k),Real.sqrt_nonneg (C.path.β N p k),Real.sq_sqrt hb.le, Real.sq_sqrt hP.le] |
| 66 | have hs := Real.sqrt_pos.2 hP |
| 67 | unfold Price.shrink Calendar.threshold Calendar.hatCoupling |
| 68 | rw [div_le_one (mul_pos (inv_pos.mpr hs) (lt_of_lt_of_le zero_lt_two hk))] |
| 69 | rw [inv_le_comm₀ (Real.sqrt_pos.2 hb) (mul_pos (inv_pos.mpr hs) (lt_of_lt_of_le zero_lt_two hk))] |
| 70 | rw [mul_inv_rev,inv_inv] |
| 71 | refine (inv_mul_le_iff₀ (lt_of_lt_of_le zero_lt_two hk)).2 ?_ |
| 72 | exact hh.trans (mul_le_mul_of_nonneg_right hk (Real.sqrt_nonneg _)) |
| 73 | |
| 74 | omit hG |
| 75 | local notation "g!" => X.atK |
| 76 | -- solve for ANY label, no assumption it's detectable |
| 77 | lemma undo {d : Fin (D+1)} {k N p : ℕ} |
| 78 | (q : C.label d) (hm : (g! k) ≤ k) (hn : k ≤ N) (hr : C.ref d ≤ g! k) |
| 79 | (hy : Tested C d (g! k) N p (X.matrix k N p d)) (hl : Price.shrink C (g! k) N p ≤ 1) |
| 80 | (hL : 1 ≤ mag A X.aperture (g! k)) : |
| 81 | ∃ y : C.label d, microscope C X.aperture (X.atK k) (X.matrix k) d (N,p) y = q ∧ |
| 82 | ‖y‖ ≤ 2 / a k ^ d.val * quota C d k N p q := by |
| 83 | let b:=shrink C (g! k) N p; let mu0 := mag A X.aperture (g! k) |
| 84 | let l := C.labels.level d; let t := X.matrix k N p d |
| 85 | have hb : 0 < b := shrink_pos C H (hm.trans hn) _ |
| 86 | have hu : 0 < mu0 := zero_lt_one.trans_le hL |
| 87 | let w := l.scaled b (t q) |
| 88 | let y := weightTag C d mu0⁻¹ w |
| 89 | have hf : Solves C mu0 d (X.atK k) N p t y q := by |
| 90 | change w = weightTag C _ mu0 y |
| 91 | unfold y; rw [← LinearMap.comp_apply,← facsimile,mul_inv_cancel₀ hu.ne']; ext i; simp [weightTag] |
| 92 | obtain ⟨z,hz,ht⟩:=solve C H hr (hm.trans hn) hy y mu0 |
| 93 | refine ⟨y,(ht _ (poured H hr (hm.trans hn) mu0 t hy y)).trans (ht _ hf).symm,?_⟩ |
| 94 | let x := awake C d (X.atK k) N p q |
| 95 | let s := l.coeffSize; have hs : s (t q) ≤ 2*s x:= by linarith only [Work.G08.size_triangle l (t q) x, Work.G08.size_sub_rev l (t q) x, hy.score q, Work.G08.size_nonneg l x] |
| 96 | have hw : s w ≤ s (t q) := by |
| 97 | unfold s Labels.Frame.coeffSize |
| 98 | apply Finset.sum_le_sum; intro i hi |
| 99 | change ‖((↑(b^(l.grades i).2):ℂ)) * t q i‖ ≤ _ |
| 100 | rw [norm_mul,Complex.norm_real, Real.norm_of_nonneg (pow_pos hb _|>.le)] |
| 101 | exact mul_le_of_le_one_left (norm_nonneg _) (pow_le_one₀ hb.le hl) |
| 102 | have hx0 : s y ≤ s w := by |
| 103 | unfold s Labels.Frame.coeffSize |
| 104 | apply Finset.sum_le_sum; intro i hi |
| 105 | change ‖(↑mu0⁻¹:ℂ)^(l.grades i).1 * w i‖ ≤ _ |
| 106 | rw [norm_mul,norm_pow,Complex.norm_real,Real.norm_of_nonneg (inv_pos.mpr hu|>.le)] |
| 107 | exact mul_le_of_le_one_left (norm_nonneg _) (pow_le_one₀ ((inv_pos.mpr hu).le) (inv_le_one_of_one_le₀ hL)) |
| 108 | have ha : s x = quota C d (g! k) N p q / a (g! k)^d.val := by |
| 109 | unfold x Price.awake s; rw [Size.smul,norm_inv,norm_pow,Complex.norm_real,Real.norm_of_nonneg (C.S.a_pos _).le]; exact (div_eq_inv_mul ..).symm |
| 110 | apply ((Size.norm_le l y).trans (hx0.trans (hw.trans hs))).trans |
| 111 | rw [ha] |
| 112 | calc |
| 113 | _ ≤ 2 * _ := mul_le_mul_of_nonneg_left (div_le_div_of_nonneg_right (passPrice T q hr hm hn) (pow_pos (C.S.a_pos _) d.val).le) zero_le_two |
| 114 | _ = _ := by rw [div_pow];field_simp [(C.S.a_pos k).ne',(C.S.a_pos (g! k)).ne'] |
| 115 | |
| 116 | include hG |
| 117 | lemma unzoom (d : Fin (D+1)) : ∀ᶠ k : ℕ in atTop, ∀ N p : ℕ, k < N → ∀ q : C.label d, |
| 118 | ∃ y : C.label d, microscope C X.aperture (X.atK k) (X.matrix k) d (N,p) y = q ∧ |
| 119 | ‖y‖ ≤ 2 / a k ^ d.val * quota C d k N p q := by |
| 120 | filter_upwards [X.onLevel, X.admits.eventually (narrowed (H:=H) hG), |
| 121 | ((mag_rate _ hG X.apertures).comp X.admits).eventually_ge_atTop 1] with k ⟨hk,_,hy,_⟩ h0 hb N p hN q |
| 122 | exact undo X T q hk hN.le (hy.early _ (Nat.le_of_lt_succ d.isLt)) (hy.charts N p (hk.trans_lt hN) d|>.1) (h0 _ _ (hk.trans hN.le)) hb |
| 123 | |
| 124 | -- Stronger horizon-independent price exponents. Useful diagonally in k with bigger D(y) calibration, |
| 125 | -- same meters via physical reflected forms after crossing allowance. |
| 126 | omit T in |
| 127 | lemma energy_clock (d : ℕ) : OPE.RateLE atTop (fun k : ℕ=>Real.log (P k)) |
| 128 | (fun k => OPE.Levy.preExpense C d (X.atK k) X.aperture) 0:= by |
| 129 | have hp := (Station.hat_rate C.path.levels hG) |
| 130 | let t(k:ℕ) := Real.log (P k) |
| 131 | have hr : Tendsto t atTop atTop:=Real.tendsto_log_atTop.comp hp |
| 132 | let m(i:ℕ) := 2*((A).clock.monitor (X.atK i)) |
| 133 | have hh (b : ℝ) : OPE.RateLE atTop t (fun i=> mag C.path.levels b (X.atK i)) 0:=by |
| 134 | intro r hr |
| 135 | filter_upwards [X.onLevel, (hp.comp X.admits).eventually (Vac.Numbers.cost b r hr)] with k ⟨hk,_⟩ he |
| 136 | change mag C.path.levels b (X.atK k) ≤ P (X.atK k) ^ r at he |
| 137 | dsimp only [t]; rw [Real.norm_of_nonneg (Station.mag_pos ..).le, mul_comm r, ← Real.rpow_def_of_pos (zero_lt_one.trans ((A).fits.delayed k))] |
| 138 | exact he.trans (Real.rpow_le_rpow (zero_le_one.trans ((A).fits.delayed (X.atK k)).le) (WilsonStartup.Timing.hat_mono C.path.levels (Gauge.slopeConstant_pos hG).le hk) hr.le) |
| 139 | have hm : OPE.RateLE atTop t (fun i => (A).clock.monitor (X.atK i)) 0 := (hh 1).congr (Eventually.of_forall fun i => Real.rpow_one _) |
| 140 | have he : OPE.RateLE atTop t m 0 := by simpa only [zero_add] using (OPE.RateLE.const (2:ℝ) hr).mul hm |
| 141 | let u (i : ℕ) (k :(C.labels.level d).Index) := (m i)^((C.labels.level d).grades k).2 * ((mag C.path.levels X.aperture (X.atK i))^((C.labels.level d).grades k).1) |
| 142 | have ha i : OPE.RateLE atTop t (fun k=>u k i) 0 := by |
| 143 | simpa only [mul_zero,zero_add] using! ((he.pow _ hr).mul ((hh X.aperture).pow ((C.labels.level d).grades i).1 hr) : OPE.RateLE _ _ (fun k=>u k i) (↑((C.labels.level d).grades i).2*(0:ℝ)+↑((C.labels.level d).grades i).1*0)) -- maybe |
| 144 | have hx:= (OPE.RateLE.sum (f:=fun i k=>‖u k i‖) (S:=Finset.univ) hr (fun k _=>(ha k).norm)) |
| 145 | simpa only [zero_add] using! (OPE.RateLE.const (2:ℝ) hr).mul hx |
| 146 | |
| 147 | omit T in |
| 148 | lemma energy_cap (d : ℕ) : ∀ᶠ i in atTop, ‖OPE.Levy.preExpense C d (X.atK i) X.aperture‖ ≤ P i ^ (1:ℕ) := by |
| 149 | refine (X.energy_clock hG d 1 zero_lt_one).mono fun i hi=>?_ -- lemma/dot issue |
| 150 | rw [one_mul, Real.exp_log (zero_lt_one.trans ((A).fits.delayed i))] at hi |
| 151 | simpa only [pow_one] using hi |
| 152 | |
| 153 | -- retained adapter |
| 154 | omit T in |
| 155 | lemma energy (d : ℕ) : OPE.Wallet atTop P (fun k => OPE.Levy.preExpense C d (X.atK k) X.aperture) := |
| 156 | ⟨_, energy_cap X hG d⟩ |
| 157 | |
| 158 | -- crossing used before zoomPrice; sharp local geometric price |
| 159 | omit T in |
| 160 | lemma length_power : ∀ᶠ k in atTop, a k ≤ X.radius k ∧ X.radius k ≤ a k*P k^2 := by |
| 161 | filter_upwards [X.onLevel, (hp.comp X.admits).eventually (Vac.Numbers.cost X.aperture 1 zero_lt_one), X.resqueeze] |
| 162 | with k ⟨hk,_⟩ he hw |
| 163 | let b := X.atK k |
| 164 | have hu : mag (A) X.aperture b ≤ P b ^ (1:ℝ):=he |
| 165 | let v := mag (A) X.aperture b |
| 166 | have hv : 1 ≤ v := Real.one_le_rpow (Real.one_le_exp (sq_nonneg _)) X.apertures.le |
| 167 | have hP : 0 < P k := zero_lt_one.trans ((A).fits.delayed k) |
| 168 | have hx : v ≤ P k := (hu.trans_eq (Real.rpow_one (P b))).trans (WilsonStartup.Timing.hat_mono _ (Gauge.slopeConstant_pos hG).le hk) |
| 169 | have hf := C.S.a_pos k |
| 170 | refine ⟨(C.S.strictAnti.antitone hk).trans (le_mul_of_one_le_right (C.S.a_pos b|>.le) hv),?_⟩ |
| 171 | change a b * v ≤ a k * (P k)^2 |
| 172 | exact (mul_le_mul ((div_le_iff₀ hf).mp hw) hx (mag_pos ..|>.le) (by positivity)).trans_eq (by ring) |
| 173 | where hp := Station.hat_rate (A) hG |
| 174 | lemma zoom_price (d : Fin (D+1)) : ∀ᶠ k in atTop, ∀ N p : ℕ, k < N → ∀ x, |
| 175 | quota C d k N p (microscope C X.aperture (X.atK k) (X.matrix k) d (N,p) x) ≤ P k ^ (1+(d.val+1)) * a k ^ d.val * ‖x‖ := by |
| 176 | let e : ℕ := 1 |
| 177 | have hc := energy_cap X hG d |
| 178 | filter_upwards [hc,X.onLevel,X.resqueeze] with k hc ⟨hk,_,hY,hZ⟩ he N p hN x |
| 179 | let b := g! k |
| 180 | let m := OPE.Levy.preExpense C d b X.aperture |
| 181 | have hp' := zero_lt_one.trans ((A).fits.delayed k); have ha':= C.S.a_pos k;have hb' := C.S.a_pos b |
| 182 | have hf := OPE.Levy.quotation C (b:=X.aperture) (p:=p) d b H (hY.early _ (Nat.le_of_lt_succ d.isLt)) (le_trans hk hN.le) (X.matrix k N p d) (hY.charts _ _ (hk.trans_lt hN) _).1 x |
| 183 | apply le_trans (reverseWalk (H:=H) T _ (hY.early _ (Nat.le_of_lt_succ d.isLt)) hk hN.le) |
| 184 | have he : a b / a k ≤ P k:=he; let y:=microscope C X.aperture b (X.matrix k) d (N,p) x |
| 185 | calc |
| 186 | _ ≤ P k * _ := mul_le_mul he (le_refl (quota C d b N p y)) (quota_nonneg _) hp'.le |
| 187 | _ ≤ P k * (a b ^ d.val * m * ‖x‖) := mul_le_mul_of_nonneg_left hf hp'.le |
| 188 | _ ≤ P k * ((P k * a k)^d.val * (P k ^ e) * ‖x‖) := mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_right (le_trans (mul_le_mul_of_nonneg_left ((Real.le_norm_self _).trans hc) (pow_pos hb' d.val).le) (mul_le_mul_of_nonneg_right (pow_le_pow_left₀ hb'.le ((div_le_iff₀ ha').mp he) _) (pow_pos hp' e).le)) (norm_nonneg _)) hp'.le |
| 189 | _ = _ := by rw [pow_add,pow_succ,mul_pow];ring |
| 190 | lemma zoomPrice (d : Fin (D+1)) : ∃ e : ℕ, ∀ᶠ k in atTop, ∀ N p : ℕ, k < N → ∀ x, |
| 191 | quota C d k N p (microscope C X.aperture (X.atK k) (X.matrix k) d (N,p) x) ≤ P k ^ e * a k ^ d.val * ‖x‖ := ⟨_, zoom_price X T hG d⟩ |
| 192 | end microscopeB |
| 193 | end YM.SharpGram.Weak.Portfolio |