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.RESET_INCOME_PORT.Tail |
| 2 | |
| 3 | set_option warningAsError false |
| 4 | |
| 5 | /-! |
| 6 | # Prerequisite pricing tests on one realized plate |
| 7 | |
| 8 | Use especially where about to issue a raw Split. Comparators / prices are |
| 9 | *parameters*, e.g. from determinant, tail and local logarithm analysis. An |
| 10 | optional log-density test for the core reference never takes a log of a |
| 11 | possibly zero kernel, a door or a signed gas. All numerator prices are at |
| 12 | the same scalar/predictor that is going to be tested, BEFORE modifying β or |
| 13 | v. Work per Store AND tag, not a threshold implication on abstract fields. |
| 14 | These are fixed finite-volume/order-zero tests; numerical caps expose how |
| 15 | many of these errors would really have to add, *not* asserting a Split with |
| 16 | head = just an apparently good sector at all periods could actually pay |
| 17 | these. For uniform-in-period deployment a log price from a reorganized gas |
| 18 | (e.g., HeadGas in this module series) can be much more appropriate than |
| 19 | this price. See LocalPrice for composing order-zero local budgets. |
| 20 | -/ |
| 21 | set_option autoImplicit false |
| 22 | noncomputable section |
| 23 | namespace YM.AnalyticBridge.ResetIncome |
| 24 | |
| 25 | open Function Filter Set Lattice Wilson RG Precision Exterior Tree MeasureTheory Matrix |
| 26 | open Pressure Pressure.Tube Pressure.Stores Bid Push.SectorMeasure |
| 27 | open Next.Fluctuations.Sector Push.SectorMeasure.Oriented Push.SectorMeasure.Presented |
| 28 | open Next.SectorChange Next.SectorChange.Gaussian Next.SectorChange.Rows |
| 29 | open scoped Topology BigOperators Classical Matrix.Norms.Frobenius |
| 30 | |
| 31 | variable {G : Gauge} {c f : Side} {S : StepData c f} |
| 32 | |
| 33 | namespace Plate |
| 34 | variable (e : Plate G S) (R : Rep G f) (A : Stores S) (V : Config G c) (k : S.Choices) |
| 35 | |
| 36 | def posLog (z : e.Sample A) := |
| 37 | let q := e.center A V k z.1 |
| 38 | let l := q + coupling R.beta • z.2 |
| 39 | let U := e.image R A V k z |
| 40 | Real.log (reserve e.chip e.chart e.d (tape l)) - |
| 41 | averaged (fun s => reduced R (till e.x) (pull s 0 U)) - R.activities.additive R.p U + |
| 42 | coarseTail e.tube e.x e.point V R.beta - R.beta * |
| 43 | averaged (Rows.residual e.tube e.x V k (shots S e.x) A e.forest e.chip e.d z.1 U l) + |
| 44 | adjustment e.tube e.x V k (shots S e.x) A e.forest e.chip e.d z.1 (e.Cov A V k) q (coupling R.beta) z.2 |
| 45 | |
| 46 | def screen (z : e.Sample A) := |
| 47 | let U := e.image R A V k z |
| 48 | doors e.chip e.d (displaced (e.center A V k z.1) (coupling R.beta) z.2) * e.book.bill A k U V * S.likelihood U k |
| 49 | |
| 50 | def signed (z : e.Sample A) := e.screen R A V k z * R.activities.gas R.p (e.image R A V k z) |
| 51 | |
| 52 | |
| 53 | |
| 54 | lemma color_prices (z : e.Sample A) : |
| 55 | e.color R A V k z = Real.exp (e.posLog R A V k z) * e.signed R A V k z := by |
| 56 | unfold posLog color sleeves signed screen image displaced |
| 57 | simp only [uncurry, sub_eq_add_neg, Real.exp_add, Real.exp_log (reserve_pos ..)]; ring |
| 58 | end Plate |
| 59 | |
| 60 | /-- Log-pair prices, Gram (relative to the one FLAT det) and Gram*Cov |
| 61 | (the nonsymmetric one), on the one region respectively. Units full volume; |
| 62 | use e.g., local block estimates paying a sum across the windows to provide |
| 63 | `Pays` below. No eigen log on the second input. -/ |
| 64 | structure Quote where |
| 65 | main : ℝ |
| 66 | trab : ℝ |
| 67 | high : ℝ |
| 68 | bend : ℝ |
| 69 | |
| 70 | variable (e : Plate G S) (R : Rep G f) (A : Stores S) (V : Config G c) (k : S.Choices) |
| 71 | namespace Quote |
| 72 | variable (w : Quote) |
| 73 | |
| 74 | def assessment := -(Fintype.card (Frozen A e.x e.forest) : ℝ) * Real.log (spare e.chart R.beta) - |
| 75 | (1/2) * w.main + (1/2) * w.trab |
| 76 | |
| 77 | def tip := (w.high + w.bend) / 2 |
| 78 | |
| 79 | structure Pays (w : Quote) (e : Plate G S) (A : Stores S) (V : Config G c) (k : S.Choices) : Prop where |
| 80 | one : |(Real.log (e.Gram A V k).det - Real.log e.Flat.det) - w.main| ≤ w.high |
| 81 | two : |Real.log (1 + (e.Gram A V k * e.Cov A V k - 1)).det - w.trab| ≤ w.bend |
| 82 | |
| 83 | lemma adjust (h : w.Pays e A V k) : |e.cost R A V k - w.assessment e R A| ≤ w.tip := by |
| 84 | obtain ⟨h1,h2⟩ := abs_le.mp h.one; obtain ⟨h3,h4⟩ := abs_le.mp h.two |
| 85 | unfold Plate.cost assessment tip; exact abs_le.mpr ⟨by linarith,by linarith⟩ |
| 86 | end Quote |
| 87 | |
| 88 | /-- Amount still to be supplied by signed multiplier, relative (log leading |
| 89 | forecast units at the output) to `u`. `posLog` is the only log-price of the |
| 90 | *integrand* inside this formula. The dets need a separate Quote.Pays. -/ |
| 91 | def shipped (q : Quote) (u : ℝ) (z : e.Sample A) := e.outside R V + q.assessment e R A - u + e.posLog R A V k z |
| 92 | |
| 93 | /-- Prescriptions not asserted to exist. The comparison mass uses the |
| 94 | SAME cloud law, can include mask/probability factors. `slack` will be |
| 95 | needed on the comparison support only. For a reference strictly zero in |
| 96 | some regions, the `ports` test then bills the entire absolute numerator |
| 97 | there, normalized at the same q,u it uses elsewhere. -/ |
| 98 | structure Coupon (e : Plate G S) (A : Stores S) where |
| 99 | q : Quote |
| 100 | seen : e.Sample A → ℝ |
| 101 | lens : e.Sample A → ℝ -- LOG baseline of terms in shipped |
| 102 | miss : e.Sample A → ℝ |
| 103 | slack : ℝ |
| 104 | weight : ℝ |
| 105 | extra : ℝ |
| 106 | |
| 107 | namespace Coupon |
| 108 | variable {e A} |
| 109 | variable (w : Coupon e A) |
| 110 | |
| 111 | def base (z : e.Sample A) := Real.exp (w.lens z) * w.seen z |
| 112 | |
| 113 | def down := Real.exp (-(w.slack+w.q.tip)) * w.weight - Real.exp w.q.tip * w.extra |
| 114 | |
| 115 | def up := Real.exp (w.slack+w.q.tip)*w.weight + Real.exp w.q.tip*w.extra |
| 116 | |
| 117 | /-- Pointwise tests on the raw integrations and their prices. Need the log |
| 118 | error only where comparison mass is present. No uniform smallness premise |
| 119 | on actual output normalized evaluator, signed sector sums or their ratios. |
| 120 | Still a strong condition. In particular `mass` would have to be paid for |
| 121 | the actual comparison integral, not just relative to a hypothesized |
| 122 | Gaussian unknown determinant. -/ |
| 123 | structure Uses (w : Coupon e A) (R : Rep G f) (V : Config G c) (k : S.Choices) (u : ℝ) : Prop where |
| 124 | det : w.q.Pays e A V k |
| 125 | pos : ∀ᵐ z ∂(e.law A V k), 0 ≤ w.seen z |
| 126 | bill : Integrable w.base (e.law A V k) |
| 127 | mass : (∫ z, w.base z ∂(e.law A V k)) = w.weight |
| 128 | errlog : ∀ᵐ z ∂(e.law A V k), w.seen z ≠ 0 → |shipped e R A V k w.q u z - w.lens z| ≤ w.slack |
| 129 | ports : ∀ᵐ z ∂(e.law A V k), Real.exp (shipped e R A V k w.q u z) * |e.signed R A V k z - w.seen z| ≤ w.miss z |
| 130 | monitor : Integrable w.miss (e.law A V k) |
| 131 | surplus : (∫ z, w.miss z ∂ (e.law A V k)) ≤ w.extra |
| 132 | |
| 133 | private lemma compare {r m g h b K H M E D : ℝ} (hg : 0 ≤ g) (hb : g ≠ 0 → |r-h| ≤ b) |
| 134 | (hv : Real.exp r * |m-g| ≤ M) (hK : |K-H| ≤ D) (he : E=K-H+r) : |
| 135 | Real.exp E*m ∈ Icc (Real.exp (-(b+D))*(Real.exp h*g) - Real.exp D * M) |
| 136 | (Real.exp (b+D)*(Real.exp h*g) + Real.exp D * M) := by |
| 137 | have hm : 0 ≤ M := (mul_nonneg (Real.exp_pos _).le (abs_nonneg _)).trans hv |
| 138 | have hx : |Real.exp E*(m-g)| ≤ Real.exp D*M := by |
| 139 | rw [he,abs_mul,abs_of_pos (Real.exp_pos _),Real.exp_add,mul_assoc] |
| 140 | exact (mul_le_mul_of_nonneg_left hv (Real.exp_pos _).le).trans (mul_le_mul_of_nonneg_right |
| 141 | (Real.exp_le_exp.mpr (le_of_abs_le hK)) hm) |
| 142 | have ht : Real.exp (-(b+D))*(Real.exp h*g) ≤ Real.exp E*g ∧ |
| 143 | Real.exp E*g ≤ Real.exp (b+D)*(Real.exp h*g) := by |
| 144 | by_cases hh : g=0 |
| 145 | · simp [hh] |
| 146 | have ⟨ha,hA⟩ := abs_le.mp (hb hh) |
| 147 | have ⟨hc,hC⟩ := abs_le.mp hK |
| 148 | rw [←mul_assoc,←mul_assoc (Real.exp (b+D)),←Real.exp_add,←Real.exp_add] |
| 149 | exact ⟨mul_le_mul_of_nonneg_right (Real.exp_le_exp.mpr (by linarith)) hg, |
| 150 | mul_le_mul_of_nonneg_right (Real.exp_le_exp.mpr (by linarith)) hg⟩ |
| 151 | obtain ⟨ha,hA⟩ := abs_le.mp hx |
| 152 | rw [mul_sub] at ha hA; exact ⟨by linarith only [ha,ht.1],by linarith only [hA,ht.2]⟩ |
| 153 | |
| 154 | variable {R V k} {u : ℝ} |
| 155 | lemma Uses.cashed {w : Coupon e A} (he : e.Receipt R) (hm : e.matched A V) (h : w.Uses R V k u) : |
| 156 | Real.exp (e.outside R V-u)*e.value R A V k ∈ Icc w.down w.up := by |
| 157 | let s := e.cost R A V k |
| 158 | let y := e.outside R V-u+s |
| 159 | let L z := Real.exp y * e.color R A V k z |
| 160 | have hp : Integrable L (e.law A V k) := (Plate.integrable_color he A V k).const_mul _ |
| 161 | let F z := Real.exp (-(w.slack+w.q.tip))*w.base z |
| 162 | let H z := Real.exp (w.slack+w.q.tip)*w.base z |
| 163 | let T z := Real.exp w.q.tip*w.miss z |
| 164 | have hF := h.bill.const_mul (Real.exp (-(w.slack+w.q.tip))); have hH := h.bill.const_mul (Real.exp (w.slack+w.q.tip)) |
| 165 | have hT := h.monitor.const_mul (Real.exp w.q.tip) |
| 166 | have hx : ∀ᵐ z ∂(e.law A V k), F z - T z ≤ L z ∧ L z ≤ H z + T z := by |
| 167 | filter_upwards [h.pos,h.errlog,h.ports] with z hg hb hv |
| 168 | unfold L; rw [Plate.color_prices,←mul_assoc,←Real.exp_add] |
| 169 | exact compare hg hb hv (w.q.adjust e R A V k h.det) (by unfold y shipped s; ring) |
| 170 | have h0 := integral_mono_ae (hF.sub hT) hp (hx.mono fun z hh => hh.1) |
| 171 | have h1 := integral_mono_ae hp (hH.add hT) (hx.mono fun z hh => hh.2) |
| 172 | rw [Plate.value, if_pos hm, ←mul_assoc, ← Real.exp_add] |
| 173 | simp only [Pi.sub_apply] at h0; simp only [Pi.add_apply] at h1 |
| 174 | rw [integral_sub hF hT] at h0; rw [integral_add hH hT] at h1 |
| 175 | simp_rw [integral_const_mul, h.mass] at h0 h1 |
| 176 | have h2 := mul_le_mul_of_nonneg_left h.surplus (Real.exp_pos w.q.tip).le |
| 177 | change _ ≤ ∫ z, Real.exp y * _ ∂_ at h0; change (∫ z, Real.exp y * _ ∂ _) ≤ _ at h1 |
| 178 | rw [integral_const_mul] at h0 h1 |
| 179 | exact ⟨(sub_le_sub_left h2 _).trans h0,h1.trans (add_le_add_right h2 _)⟩ |
| 180 | end Coupon |
| 181 | |
| 182 | /-- Stronger bill on an outer selected Store. No dropping the earned |
| 183 | charge correction. There needn't exist a uniformly applicable outer |
| 184 | selection with these besides putting all Stores in the head! See also |
| 185 | E fsect:freset, where even many apparently unimportant contributors can |
| 186 | be important in pricing the log (large periods). -/ |
| 187 | structure Tariff (e : Plate G S) (A : Stores S) where |
| 188 | q : Quote |
| 189 | test : e.Sample A → ℝ |
| 190 | extra : ℝ |
| 191 | namespace Tariff |
| 192 | variable {e A} |
| 193 | |
| 194 | def ceiling (w : Tariff e A) := Real.exp w.q.tip*w.extra |
| 195 | |
| 196 | structure Paid (w : Tariff e A) (R : Rep G f) (V : Config G c) (k : S.Choices) (u κ : ℝ) : Prop where |
| 197 | det : w.q.Pays e A V k |
| 198 | probe : ∀ᵐ z ∂(e.law A V k), Real.exp (shipped e R A V k w.q u z) * |e.signed R A V k z| * |
| 199 | e.reverseFee R A V k κ (e.image R A V k z) ≤ w.test z |
| 200 | monitor : Integrable w.test (e.law A V k) |
| 201 | pays : (∫ z, w.test z ∂(e.law A V k)) ≤ w.extra |
| 202 | |
| 203 | variable {R V k} {u κ : ℝ} |
| 204 | lemma Paid.cashes {w : Tariff e A} (he : e.Receipt R) (hm : e.matched A V) (h : w.Paid R V k u κ) |
| 205 | {P : Teller G} (hP : P.Funds S e.tube) : |
| 206 | Real.exp (e.outside R V-u)*e.expense R A V k κ ≤ w.ceiling := by |
| 207 | let s := e.cost R A V k; let y := e.outside R V-u+s |
| 208 | rw [Plate.expense,if_pos hm,←mul_assoc,←Real.exp_add,←integral_const_mul] |
| 209 | let t := w.q.tip |
| 210 | have hp : 0 ≤ Real.exp t := (Real.exp_pos _).le |
| 211 | calc |
| 212 | _ ≤ ∫ z, Real.exp t*w.test z ∂(e.law A V k) := by |
| 213 | apply integral_mono_ae ((e.recoil_int R A V k he hP κ).const_mul _) (h.monitor.const_mul _) |
| 214 | filter_upwards [h.probe] with z hz |
| 215 | let X := e.reverseFee R A V k κ (e.image R A V k z); have hX : 0 ≤ X := (Real.exp_pos _).le |
| 216 | unfold Plate.recoil; rw [Plate.color_prices,norm_mul,Real.norm_of_nonneg (Real.exp_pos _).le,Real.norm_eq_abs] |
| 217 | calc |
| 218 | _ = Real.exp (s-w.q.assessment e R A)*(Real.exp (shipped e R A V k w.q u z)* |e.signed R A V k z| *X) := by |
| 219 | unfold shipped X; simp only [Real.exp_add,Real.exp_sub,s]; field_simp |
| 220 | _ ≤ Real.exp t*(Real.exp (shipped e R A V k w.q u z)*|e.signed R A V k z| *X) := mul_le_mul_of_nonneg_right |
| 221 | (Real.exp_monotone (le_of_abs_le (w.q.adjust e R A V k h.det))) (mul_nonneg (by positivity) hX) |
| 222 | _ ≤ _ := mul_le_mul_of_nonneg_left hz hp |
| 223 | _ ≤ _ := by rw [integral_const_mul]; exact mul_le_mul_of_nonneg_left h.pays hp |
| 224 | end Tariff |
| 225 | end YM.AnalyticBridge.ResetIncome |