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.AnalyticBridge.RELATIVE_LOGDET_TRACE.Boards |
| 2 | import YM.AnalyticBridge.RELATIVE_LOGDET_TRACE.Currencies |
| 3 | |
| 4 | /-! |
| 5 | # Fixed-L price of the actual transforms |
| 6 | |
| 7 | Explicit order of commitments. All volume factors go through the **same** |
| 8 | constant at this patch price (not adjusted to actual torus, evaluated before |
| 9 | ∀ sufficiently large x). `Certified` gives Q, window Schur, gap kept numerically |
| 10 | for Q, covariance and determinant data on the actual fog, at every correct |
| 11 | D' test, even for fine seeds not realized by a fine field. No Book at |
| 12 | incompatible output masks. H is only a Teller input, no inverse assumption |
| 13 | at this call. Not a pre-L price; especially not computing α or its rate. |
| 14 | -/ |
| 15 | set_option autoImplicit false |
| 16 | noncomputable section |
| 17 | namespace YM.AnalyticBridge.RelativeLogdet |
| 18 | open Filter Function Set Matrix Lattice RG Pressure Tree Wilson |
| 19 | open Next.SectorChange FreeResolvent |
| 20 | open scoped Topology BigOperators Classical |
| 21 | |
| 22 | lemma price_discount {ι X : Type} [Fintype ι] [DecidableEq ι] {W : ι→Set ι} {D : Cost X} {p A v C q q'} |
| 23 | (h : Priced D p W A v C q) (hp : q ≤ q') : Priced D p W A v C q' where |
| 24 | root := h.root |
| 25 | gram := h.gram |
| 26 | paid := h.paid |
| 27 | rate := h.rate |
| 28 | coupon := h.coupon.trans hp |
| 29 | kernel := h.kernel |
| 30 | inverse := h.inverse |
| 31 | columns := h.columns |
| 32 | shift u hu := (h.shift u hu).mono le_rfl (mul_le_mul_of_nonneg_right hp (attenuation_pos hu).le) |
| 33 | mix := h.mix.mono le_rfl hp |
| 34 | |
| 35 | section exp |
| 36 | /-- Repeated use across patch prices. -/ |
| 37 | def currency (b : ℝ) (B : ℕ) := Real.exp (-b*B) |
| 38 | lemma currency_pos (b : ℝ) (B : ℕ) : 0 < currency b B := Real.exp_pos _ |
| 39 | lemma currency_small {b : ℝ} (hb : 0<b) : Tendsto (currency b) atTop (𝓝 0) := |
| 40 | Real.tendsto_exp_atBot.comp ((tendsto_natCast_atTop_atTop (R:=ℝ)).const_mul_atTop_of_neg (neg_lt_zero.mpr hb)) |
| 41 | lemma currency_eventual {b b' : ℝ} (h : b < b') (C : ℝ) : ∀ᶠ B : ℕ in atTop,C * currency b' B ≤ currency b B := by |
| 42 | have hp : Tendsto (fun B => C*currency (b'-b) B) atTop (𝓝 0) := by simpa using (currency_small (sub_pos.mpr h)).const_mul C |
| 43 | filter_upwards [hp.eventually (ge_mem_nhds zero_lt_one)] with B hb |
| 44 | have he : currency b' B = currency (b'-b) B * currency b B := by unfold currency; rw [← Real.exp_add]; ring_nf |
| 45 | rw [he, ← mul_assoc]; exact mul_le_of_le_one_left (currency_pos ..).le hb |
| 46 | |
| 47 | /-- A sufficient delay for the `x∈pocket` hit sum, exp gates only. |
| 48 | Can eat every polynomial overhead at this point too, but retain lens |
| 49 | multiples BEFORE doing so. -/ |
| 50 | lemma worth {θ b d L V C : ℝ} (a : ℝ) (l n : ℕ) (hv : 0 ≤ V) (hl : 0 ≤ L) (hc : 0 ≤ C) (hb : θ<b) |
| 51 | (ht : d < b-θ*(n+1+l:ℕ)) : ∀ᶠ B in atTop, pass L (currency b B) a θ l B < 1 ∧ |
| 52 | totalCost n L V C (currency b B) a θ l B ≤ currency d B := by |
| 53 | let A := Real.exp (a*tilePrice l) |
| 54 | let K := V*C*L^n * A^(n+2) |
| 55 | let r : ℝ := b-θ*(n+1+l:ℕ) |
| 56 | have he B : pass L (currency b B) a θ l B=L*A*currency (b-θ) B := by |
| 57 | unfold pass A |
| 58 | rw [show currency (b-θ) B = currency b B * Real.exp (θ*B) by unfold currency; rw [← Real.exp_add]; ring_nf]; ring |
| 59 | have hm B : permitCost n L V C (currency b B) a θ l B=K*currency r B := by |
| 60 | have hi : currency r B = currency b B * Real.exp (θ*B)^(n+1+l) := by |
| 61 | unfold currency; rw [← Real.exp_nat_mul, ← Real.exp_add]; unfold r; ring_nf |
| 62 | rw [hi]; unfold permitCost K A; ring |
| 63 | have hp : Tendsto (fun B => pass L (currency b B) a θ l B) atTop (𝓝 0) := by |
| 64 | simp_rw [he]; simpa using! (currency_small (sub_pos.mpr hb)).const_mul (L*A) |
| 65 | filter_upwards [hp.eventually (ge_mem_nhds (by norm_num : (0:ℝ)<1/2)),currency_eventual ht (2*K)] with B hH hx |
| 66 | change pass L _ a θ l B ≤ 1/2 at hH |
| 67 | refine ⟨by linarith only [hH],?_⟩ |
| 68 | unfold totalCost; rw [hm] |
| 69 | have h1 : 0 ≤ K := by unfold K A; positivity |
| 70 | have h2 := inv_anti₀ (by norm_num : (0:ℝ)<1/2) (show 1/2 ≤ 1-pass L (currency b B) a θ l B by linarith only [hH]) |
| 71 | apply le_trans _ hx |
| 72 | exact (mul_le_mul_of_nonneg_left h2 (mul_nonneg h1 (currency_pos r B).le)).trans_eq (by ring) |
| 73 | end exp |
| 74 | |
| 75 | namespace Physical |
| 76 | variable {G : Gauge} {c f : Side} {S : StepData c f} |
| 77 | |
| 78 | def parcel (G : Gauge) (S : StepData c f) (l : ℕ) (a v C b d : ℝ) (B n : ℕ) := |
| 79 | Ac.Hit (inventory (place S (G:=G)) l B (n:=n)) B (ticket (place S) B v C (currency b B)) a (currency d B) |
| 80 | |
| 81 | /-- Joint Book. Actual mask predicates, fixed physical record. All |
| 82 | constants *uniform after L*, independent of occurrences. Doesn't say log Q |
| 83 | itself is small. `Certified.geometry` used even for remote lettering. |
| 84 | Widths of any increments etc. (separate tasks) must be bought compatibly. -/ |
| 85 | structure Certified (S : StepData c f) (T : Tube G S) (x : ℝ) (v C η b : ℝ) : Prop where |
| 86 | basis : 120 ≤ radiusB x |
| 87 | geometry : Next.SectorChange.span S.patch x ≤ radiusB x/50 |
| 88 | precision : 0 < η |
| 89 | small : currency b (radiusB x) < 1 |
| 90 | text (A : Stores S) (F : Forest S.ratio) (k : S.Choices) (V : Config G c) : |
| 91 | A.flags=RG.flags (temp x) V → |
| 92 | let Q := Rows.gram T x V k (shots S x) A F |
| 93 | Schur.Gapped Q η ∧ Q.PosDef ∧ (fog A F T x V k).PosDef ∧ |
| 94 | Priced (native c) (place S) (windows S x) (AFull T A F x V k) v C (currency b (radiusB x)) |
| 95 | |
| 96 | /-- Sensitivity recuts (on the actual full precision). Doesn't |
| 97 | retroactively change the selected fog. -/ |
| 98 | wider (A : Stores S) (F : Forest S.ratio) (k : S.Choices) (V : Config G c) : |
| 99 | A.flags=RG.flags (temp x) V → ∀ W : Key G f→Set (Key G f), Schur.Bars W (place S) (radiusB x/60) → |
| 100 | Priced (native c) (place S) W (AFull T A F x V k) v C (currency b (radiusB x)) ∧ |
| 101 | (Schur.clouded W (AFull T A F x V k)).PosDef |
| 102 | |
| 103 | private lemma pours_of {α : Type} [Fintype α] (p : α → Site c) (A : Square α) |
| 104 | {s K : ℝ} (hk : 0 ≤ K) (h : (native c).Schur p p s K A) : Schur.Pours A p p s K := by |
| 105 | refine ⟨hk,h.rows.bound,fun j => ?_⟩ |
| 106 | change ∑ i, (native c).weight s (p i) (p j)*|A i j| ≤ K |
| 107 | have ht : ∀ i, (native c).weight s (p i) (p j)=(native c).weight s (p j) (p i) := fun i => Cost.weight_symm .. |
| 108 | -- rewriting a symmetric function generically can rewrite both ways |
| 109 | convert h.cols.bound j using 1 |
| 110 | exact Finset.sum_congr rfl fun i _ => congr_arg (fun x => x*|A i j|) (ht i) |
| 111 | |
| 112 | /-- Compatibility tests in Marked, Client use this estimate. -/ |
| 113 | theorem late_price (H : Teller G) (P : Patch) (l : ℕ) (hl : 1≤l) (hB : P.Branches H.bind G) {a : ℝ} (ha : 0 ≤ a) : |
| 114 | ∃ v C η b d : ℝ, 0<v ∧ 1≤C ∧ 0 < η ∧ 0<b ∧ 0<d ∧ ∀ᶠ x in atTop, |
| 115 | ∀ (c f : Side) (S : StepData c f) (T : Tube G S), S.patch=P → 100*(1+radiusB x) ≤ c.val → H.Funds S T → |
| 116 | Certified S T x v C η b ∧ parcel G S l a v C b d (radiusB x) 0 ∧ parcel G S l a v C b d (radiusB x) 1 := by |
| 117 | obtain ⟨s,M,η,u,J,hs,hM,hη,-,-,hQ⟩ := opaqueCost G P H hB |
| 118 | let L := max M 1 |
| 119 | let h := min η 1 |
| 120 | let Y := safeRate s L h |
| 121 | let m := Y/2 |
| 122 | let v := m/2 |
| 123 | let U := ceiling G P (Y-m) |
| 124 | let C := max L (U*(min (h/2) 1)⁻¹) |
| 125 | have hL : 0 ≤ L := le_trans hM (le_max_left ..) |
| 126 | have hh : 0 < h := lt_min hη zero_lt_one |
| 127 | have hy : 0 < Y := rate_pos hs hL hh |
| 128 | have hs' : Y<s := rate_lt hs |
| 129 | have hm : 0 < m := half_pos hy |
| 130 | have hm' : m<Y := half_lt_self hy |
| 131 | have hu : 0 ≤ U := ceiling_nn .. |
| 132 | have hv : 0 < v := half_pos hm |
| 133 | have hv' : v<m := half_lt_self hm |
| 134 | have hc : 1 ≤ C := (show 1≤L from le_max_right ..).trans (le_max_left ..) |
| 135 | let R := (m-v)/120 |
| 136 | let b := R/2 |
| 137 | let d := b/2 |
| 138 | let θ := (b/4)/(l+2:ℕ) |
| 139 | have hr : 0<R := div_pos (sub_pos.mpr hv') (by norm_num) |
| 140 | have hb : 0<b := half_pos hr |
| 141 | have hd : 0<d := half_pos hb |
| 142 | have ht : 0<θ := div_pos (by positivity) (by positivity) |
| 143 | have he : θ*(l+2:ℕ)=b/4 := div_mul_cancel₀ _ (by positivity) |
| 144 | have ht' : θ<b := by nlinarith only [he,hb, mul_le_mul_of_nonneg_left (show 1≤((l+2:ℕ):ℝ) by exact_mod_cast (show 1≤l+2 by omega)) ht.le] |
| 145 | let S₀ := ceiling G P v |
| 146 | let S' := ceiling G P θ |
| 147 | have hy (n : ℕ) (hn : n≤1) := worth a l n (show 0≤S' from ceiling_nn ..) (show 0≤S₀ from ceiling_nn ..) |
| 148 | (zero_le_one.trans hc) ht' (show d<b-θ*(n+1+l:ℕ) by |
| 149 | have ho : θ*(n+1+l:ℕ) ≤ b/4 := by rw [← he]; exact mul_le_mul_of_nonneg_left (by exact_mod_cast (show n+1+l≤l+2 by omega)) ht.le |
| 150 | unfold d; linarith) |
| 151 | refine ⟨v,C,η,b,d,hv,hc,hη,hb,hd,?_⟩ |
| 152 | obtain ⟨b₀,C₀,u₀,-,-,-,hWin⟩ := Schur.windows hs hh hL (ceiling G P) (ceiling_nn P G) |
| 153 | have htail : Tendsto (fun x : ℝ => radiusB x/60) atTop atTop := by |
| 154 | apply Filter.tendsto_atTop.mpr; intro n |
| 155 | filter_upwards [Work.E01.radiusB_tendsto.eventually_ge_atTop (60*n)] with x hx; omega |
| 156 | filter_upwards [hQ, Work.E01.radiusB_tendsto.eventually (currency_eventual (show b<R from half_lt_self hr) (C^4)), |
| 157 | Work.E01.radiusB_tendsto.eventually_ge_atTop 120, small_span P, |
| 158 | Work.E01.radiusB_tendsto.eventually (hy 0 (by omega)),Work.E01.radiusB_tendsto.eventually (hy 1 le_rfl), htail.eventually hWin] with x hx h₁ h₂ h₃ h₄ h₅ hW |
| 159 | intro c f S T he' hy' hF |
| 160 | have ht (s : ℝ) (h : 0<s) : (native c).Volume (place S (G:=G)) s (ceiling G P s) := he' ▸ audience S G h |
| 161 | set q := currency b (radiusB x) |
| 162 | have hq : q < 1 := by |
| 163 | have hi : 0<radiusB x := by omega |
| 164 | unfold q currency; exact Real.exp_lt_one_iff.mpr (mul_neg_of_neg_of_pos (neg_lt_zero.mpr hb) (by positivity)) |
| 165 | have hn (n : ℕ) (hn : n≤1) (hr : pass S₀ q a θ l (radiusB x) < 1) (he : totalCost n S₀ S' C q a θ l (radiusB x) ≤ currency d (radiusB x)) : |
| 166 | parcel G S l a v C b d (radiusB x) n := by |
| 167 | intro s |
| 168 | obtain ⟨hp,hv,hl⟩ := Counting.passports hv.le (zero_le_one.trans hc) (currency_pos b (radiusB x)).le |
| 169 | (show 0<radiusB x by omega) hl ha (show 0 ≤ θ from ‹0<θ›.le) (ceiling_nn P G v) |
| 170 | (ht _ hv) (ht _ ‹0 < θ›) hr n s |
| 171 | exact ⟨hp,hv,hl.trans he⟩ |
| 172 | have hAny (A : Stores S) (F : Forest S.ratio) (k : S.Choices) (V : Config G c) (hz : A.flags=RG.flags (temp x) V) |
| 173 | (W : Key G f→Set (Key G f)) (H : Schur.Bars W (place S) (radiusB x/60)) : |
| 174 | Priced (native c) (place S) W (AFull T A F x V k) v C q ∧ (Schur.clouded W (AFull T A F x V k)).PosDef := by |
| 175 | obtain ⟨hP,hG,hA,-,-⟩ := hx S T he' hy' hF A F k V hz |
| 176 | obtain ⟨hX,hN⟩ := blueprint T A F x V k hP hG |
| 177 | constructor |
| 178 | · refine price_discount (tilted_price hL hs hh hv.le hv'.le (hm'.le.trans hs'.le) hu hc |
| 179 | (le_max_left ..) (le_max_right ..) hX hN (a_pos _ _ _ k hA) (ht (Y-m) (sub_pos.mpr hm')) (fun i=>H i i (by simp)) |
| 180 | (R:=(↑(radiusB x / 60):ℝ)) ?_) ?_ |
| 181 | · intro i j hij |
| 182 | have hh : radiusB x / 60 ≤ separation (place S i) (place S j) := Nat.le_of_not_ge (mt (H i j) hij) |
| 183 | exact show (↑(radiusB x /60):ℝ) ≤ (separation (place S i) (place S j):ℝ) from by exact_mod_cast hh |
| 184 | apply le_trans _ h₁ |
| 185 | apply mul_le_mul_of_nonneg_left _ (by positivity) |
| 186 | apply Real.exp_monotone; unfold R |
| 187 | have hg : (radiusB x:ℝ) ≤ 120* ((radiusB x / 60:ℕ):ℝ) := by exact_mod_cast (show radiusB x ≤ 120*(radiusB x/60) by omega) |
| 188 | nlinarith only [mul_le_mul_of_nonneg_left hg (sub_nonneg.mpr hv'.le)] |
| 189 | let z:=place S (G:=G); let Q:=AFull T A F x V k |
| 190 | have hr : Schur.Pours Q z z s L := pours_of _ _ hL hX |
| 191 | have hp : Schur.Gapped Q h := fun i => by rw [Schur.sumSq_dot]; exact hN.lower _ |
| 192 | have hu : Schur.Revenue z (ceiling G P) := fun x he y => (ht x he).bound y |
| 193 | exact (hW z Q W hu hr (Matrix.isHermitian_iff_isSymm.mp (a_pos T A F k hA).1) hp H).2.2 |
| 194 | refine ⟨⟨h₂, he'.symm ▸ h₃,hη,hq,?_, hAny⟩,hn 0 (by omega) h₄.1 h₄.2,hn 1 le_rfl h₅.1 h₅.2⟩ |
| 195 | intro A F k V hz Q |
| 196 | obtain ⟨-,hG,hA,-,he⟩ := hx S T he' hy' hF A F k V hz |
| 197 | exact ⟨hG,hA,he,(hAny A F k V hz (windows S x) (fun _ _ => near_contains h₂)).1⟩ |
| 198 | end Physical |
| 199 | end YM.AnalyticBridge.RelativeLogdet |