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.SHARP_NORMALIZED_TAIL.Tags |
| 2 | import YM.SectorNext.GAUSSIAN_SECTOR_CHANGE.Ledger |
| 3 | |
| 4 | |
| 5 | /-! |
| 6 | # Same sector and Gaussian normalization |
| 7 | |
| 8 | `body` is the *actual* integrand for this comparison, relative to the |
| 9 | uniform tag law and the piHaar×**probability** Gaussian on this Store **and |
| 10 | this k**, with output base and common ledger separated. See `undecorated` |
| 11 | for equality to the retained costs and actual `sleeves` (and hence dyed). |
| 12 | |
| 13 | Don't mix the relative convention with counting Choices on the original |
| 14 | slice! Works even with additional Borel densities (say coefficient with |
| 15 | many marked spectators), with its L¹ license. No estimates about those |
| 16 | source histories are asserted here. |
| 17 | -/ |
| 18 | set_option autoImplicit false |
| 19 | set_option linter.unusedSectionVars false |
| 20 | noncomputable section |
| 21 | namespace YM.AnalyticBridge.Sharp |
| 22 | open Function Filter Lattice Wilson RG Precision Exterior Tree MeasureTheory Metric Matrix |
| 23 | open Next.SectorChange Next.SectorChange.Gaussian Next.SectorChange.Rows |
| 24 | open Pressure Pressure.Tube Pressure.Stores YM.Bid YM.Push.SectorMeasure |
| 25 | open YM.Next.Fluctuations.Sector YM.Push.SectorMeasure.Oriented YM.Push.SectorMeasure.Presented |
| 26 | open scoped Topology BigOperators Classical Matrix.Norms.Frobenius YM.Push.SectorMeasure |
| 27 | |
| 28 | variable {G : Gauge} {c f : Side} {S : StepData c f} {x W : ℝ} |
| 29 | |
| 30 | abbrev Room (G : Gauge) (x : ℝ) (F : Forest S.ratio) (A : Stores S) := |
| 31 | LinkArray G (Frozen A x F) × Prices G (Active A x F) |
| 32 | |
| 33 | /-- 'Read' as a numerical input, does not claim it's a valid component of |
| 34 | any history. No forcing gauge invariance for working *on this slice*. -/ |
| 35 | abbrev ReadAt (S : StepData c f) (G : Gauge) := S.Choices → Config G f → ℝ |
| 36 | |
| 37 | def touch (F : Forest S.ratio) (D : Allocation G S x W) (β : ℝ) (V : Config G c) (A : Stores S) (g : ReadAt S G) |
| 38 | (k : S.Choices) : F.Slice G → ℝ := D.portion A F V (through S F β V fun k a => g k (F.drape a)) k |
| 39 | |
| 40 | /-- True Haar sector integral against an arbitrary signed input density. |
| 41 | Fixed-V, not omitting output noise denominator. Use with `each_touch`. -/ |
| 42 | def amount (F : Forest S.ratio) (D : Allocation G S x W) (β : ℝ) (V : Config G c) (A : Stores S) (g : ReadAt S G) := |
| 43 | ∑ k,∫ a,touch F D β V A g k a ∂F.order G |
| 44 | |
| 45 | lemma each_touch (F : Forest S.ratio) (D : Allocation G S x W) (hm : S.patch.Branches S.kernel G) (β : ℝ) |
| 46 | (V : Config G c) (A : Stores S) (g : ReadAt S G) (k : S.Choices) (h : Envelope (g k)) : |
| 47 | Integrable (touch F D β V A g k) (F.order G) := |
| 48 | D.portion_integrable hm A F V _ k |
| 49 | (through_integrable F β V _ hm k ((Env.along h F.continuous_drape.measurable).integrable _)) |
| 50 | |
| 51 | lemma touch_wrong (F : Forest S.ratio) (D : Allocation G S x W) (β : ℝ) (V : Config G c) (A : Stores S) |
| 52 | (g : ReadAt S G) (h : A.flags≠RG.flags (temp x) V) : |
| 53 | amount F D β V A g=0 := by |
| 54 | have hu k U : D.bill A k U V=0 := not_not.mp fun hx => h (D.actual _ _ _ _ hx).exactFlags |
| 55 | unfold amount touch Allocation.portion; simp_rw [hu, zero_smul, integral_zero, Finset.sum_const_zero] |
| 56 | |
| 57 | /-- Data named once. |
| 58 | |
| 59 | The comparison is at this lottery (may be instantiated |
| 60 | with `fog`, `meanLog`, `shots` exactly). |
| 61 | |
| 62 | In particular it does NOT vary with locations of requests. -/ |
| 63 | structure Almanac (T : Tube G S) (_D : Allocation G S x W) (_R : Rep G f) (F : Forest S.ratio) where |
| 64 | point : BudgetPoint |
| 65 | H : Gaussian.Table (F.Free × G.ColorIndex) |
| 66 | J : ChartRatio G |
| 67 | d : ℝ |
| 68 | q : Chi |
| 69 | list : Stores S → Stencils S |
| 70 | C : (A : Stores S) → Config G c → S.Choices → Gaussian.Table (Rows.In x A F (G:=G)) |
| 71 | m : (A : Stores S) → Config G c → S.Choices → LinkArray G (Frozen A x F) → Prices G (Active A x F) |
| 72 | |
| 73 | namespace Almanac |
| 74 | variable {T : Tube G S} {R : Rep G f} {F : Forest S.ratio} {D : Allocation G S x W} |
| 75 | (L : Almanac T D R F) (V : Config G c) (A : Stores S) (k : S.Choices) |
| 76 | |
| 77 | structure Available : Prop where |
| 78 | beta : 0 < R.beta |
| 79 | ratio : LocalRatio L.J |
| 80 | refPrice : L.H.PosDef |
| 81 | keeps : L.point.threshold=temp x |
| 82 | trueCov (A : Stores S) (k : S.Choices) : A.flags=RG.flags (temp x) V → |
| 83 | Permitted x V k A F D L.J L.d R.beta (L.C A V k) (L.m A V k) |
| 84 | gram (A : Stores S) (k : S.Choices) : A.flags=RG.flags (temp x) V → (Rows.gram T x V k (L.list A) A F).PosDef |
| 85 | |
| 86 | def ledger := Real.exp R.scalar * prefactor S G R.beta * spare L.J R.beta ^ Fintype.card F.Free * |
| 87 | (Real.sqrt L.H.det)⁻¹ |
| 88 | |
| 89 | def rate := banker T L.point V R.beta * L.ledger |
| 90 | |
| 91 | lemma ledger_pos (h : L.Available V) : 0 < L.ledger := by |
| 92 | unfold ledger |
| 93 | exact mul_pos (mul_pos (mul_pos (Real.exp_pos _) (prefactor_pos _)) |
| 94 | (pow_pos (spare_pos L.J h.ratio h.beta) _)) (inv_pos.mpr (Real.sqrt_pos.mpr h.refPrice.det_pos)) |
| 95 | lemma rate_pos (h : L.Available V) : 0 < L.rate V := mul_pos (Real.exp_pos _) (L.ledger_pos V h) |
| 96 | |
| 97 | /-- Still to be paid, **not** a per-volume upper bound. -/ |
| 98 | def fees := |
| 99 | let Q := Rows.gram T x V k (L.list A) A F |
| 100 | Real.exp (-(Fintype.card (Frozen A x F):ℝ)*Real.log (spare L.J R.beta) - |
| 101 | (1/2)*(Real.log Q.det-Real.log L.H.det) + (1/2)*Real.log (1+(Q*L.C A V k-1)).det) |
| 102 | |
| 103 | lemma aligned (h : L.Available V) (hv : A.flags=RG.flags (temp x) V) : |
| 104 | L.J.scale ^ Fintype.card (Active A x F)*chartCost (L.C A V k) (coupling R.beta) = |
| 105 | spare L.J R.beta ^ Fintype.card F.Free * (Real.sqrt L.H.det)⁻¹ * L.fees V A k := by |
| 106 | rw [scalars_align x A R F L.J] |
| 107 | exact solvent_ledger x A R F L.J L.point _ _ _ h.refPrice (h.gram A k hv) |
| 108 | ((h.trueCov A k hv).nativePos) h.ratio h.beta |
| 109 | |
| 110 | abbrev climate := (piHaar G (Frozen A x F)).prod (cloud (L.C A V k)) |
| 111 | |
| 112 | def pattern (y : Room G x F A) := displaced (L.m A V k y.1) (coupling R.beta) y.2 |
| 113 | |
| 114 | def texture (y : Room G x F A) := physical A F V y.1 (L.pattern V A k y) |
| 115 | |
| 116 | private def atlas (g : ReadAt S G) (y : Room G x F A) := |
| 117 | Real.exp (force (L.C A V k) y.2/2) * regularized D A F V k L.q L.J L.d |
| 118 | (fun U => S.noise R.beta (S.prediction U k) V * g k U) y.1 (L.pattern V A k y) |
| 119 | |
| 120 | /-- Exact data whose pointwise expansion should be bought. The real mark |
| 121 | input may be signed (even a nonmultiplicative rep coefficient). -/ |
| 122 | def body (g : ReadAt S G) (y : Room G x F A) := |
| 123 | ((Fintype.card S.Choices:ℝ) * L.fees V A k * |
| 124 | (banker T L.point V R.beta * Real.exp R.scalar * prefactor S G R.beta)⁻¹) * |
| 125 | L.atlas V A k g y |
| 126 | |
| 127 | lemma adjusted_body (g u : ReadAt S G) (y : Room G x F A) : |
| 128 | L.body V A k (fun k x => u k x*g k x) y = u k (L.texture V A k y) * L.body V A k g y := by |
| 129 | unfold body atlas regularized attending texture; simp only [physical, smul_eq_mul]; ring |
| 130 | |
| 131 | -- Payment pipeline with integrable at actual content and |
| 132 | -- before any hypothetical expansion, including the norm integral. |
| 133 | set_option maxHeartbeats 500000 in |
| 134 | private lemma stage (hS : S.patch.Branches S.kernel G) (g : ReadAt S G) (hg : Envelope (g k)) |
| 135 | (h : L.Available V) (hx : A.flags=RG.flags (temp x) V) : |
| 136 | Integrable (L.atlas V A k g) (L.climate V A k) ∧ |
| 137 | (∫ a,touch F D R.beta V A g k a ∂F.order G) = L.J.scale^ Fintype.card (Active A x F) * |
| 138 | chartCost (L.C A V k) (coupling R.beta) * ∫ y,L.atlas V A k g y ∂L.climate V A k := by |
| 139 | let C := L.C A V k |
| 140 | let Z := cloud C |
| 141 | let M := piHaar G (Frozen A x F) |
| 142 | let cost := chartCost C (coupling R.beta) |
| 143 | let u := L.atlas V A k g |
| 144 | let w U := S.noise R.beta (S.prediction U k) V * g k U |
| 145 | let r := regularized D A F V k L.q L.J L.d w |
| 146 | have hu y z : u (y,z)=Real.exp (force C z/2) • r y (L.pattern V A k (y,z)) := rfl |
| 147 | have he : Envelope w := (env_noise S R.beta (S.prediction_meas hS k) measurable_const).mul hg |
| 148 | have hp := h.trueCov A k hx |
| 149 | have hm : Measurable (L.pattern V A k) := |
| 150 | tape.measurable.comp ((hp.shift.comp measurable_fst).add (by fun_prop)) |
| 151 | have hf : Continuous (fun z : Prices G (Active A x F) => force C z) := by unfold force dotProduct mulVec; fun_prop |
| 152 | have ha : Measurable u := by |
| 153 | have h₁ : Measurable (fun y : Room G x F A => Real.exp (force C y.2/2)) := |
| 154 | ((hf.measurable.comp measurable_snd).div_const 2).exp |
| 155 | have h₂ : Measurable (uncurry r) := regularized_meas D A F V k hp.trueChart L.q hp.doorPos hp.scalePaid w hS he |
| 156 | change Measurable (fun y : Room G x F A => Real.exp (force C y.2/2) * r y.1 (L.pattern V A k y)) |
| 157 | let E (y : Room G x F A) := (y.1,L.pattern V A k y) |
| 158 | have ht : Measurable E := measurable_fst.prodMk hm |
| 159 | have hc : Measurable (fun y : Room G x F A => (uncurry r) (E y)) := h₂.comp ht |
| 160 | have hg : Measurable (fun y : Room G x F A => r y.1 (L.pattern V A k y)) := by |
| 161 | exact hc |
| 162 | have hE := h₁.mul hg; exact hE |
| 163 | obtain ⟨hi,hy,hπ,_,hr⟩ := regularized_price D A F V k hp.trueChart L.q hp.doorPos hp.scalePaid hp.core w hS he |
| 164 | have hh (Y) (v : LogArray G (Active A x F) → ℝ) := at_price C hp.nativePos (coupling_pos hp.bpos) |
| 165 | (L.m A V k Y) v |
| 166 | have hI : Integrable u (M.prod (cloud (L.C A V k))) := by |
| 167 | refine (integrable_prod_iff ha.aestronglyMeasurable).mpr |
| 168 | ⟨Eventually.of_forall (fun i => (hh i (r i)).1.mp (hy i)),?_⟩ |
| 169 | let e (y : LinkArray G (Frozen A x F)) := ∫ z, ‖u (y,z)‖ ∂Z |
| 170 | have he y : (∫ a, ‖r y a‖) = cost * e y := by |
| 171 | unfold e |
| 172 | simp_rw [hu,norm_smul, Real.norm_of_nonneg (Real.exp_pos _).le] |
| 173 | exact (hh y (fun a => ‖r y a‖)).2 |
| 174 | change Integrable (fun Y => ∫ a, ‖r Y a‖) M at hπ |
| 175 | simp_rw [he] at hπ |
| 176 | have hq := hπ.smul cost⁻¹ |
| 177 | change Integrable (cost⁻¹ • cost • e) M at hq |
| 178 | have hf : 0 < cost := chartCost_pos C hp.nativePos (coupling_pos hp.bpos) |
| 179 | rw [smul_smul,inv_mul_cancel₀ hf.ne',one_smul] at hq |
| 180 | exact hq |
| 181 | refine ⟨hI,?_⟩ |
| 182 | have hT : touch F D R.beta V A g k = attending D A F V k w := by |
| 183 | funext y |
| 184 | unfold touch Allocation.portion attending through w taggedKernel |
| 185 | simp only [smul_eq_mul]; ring |
| 186 | rw [hT,hr,integral_prod _ hI] |
| 187 | have ht y : (∫ a,r y a)=cost * (∫ z, u (y,z)∂ Z) := (hh y (r y)).2 |
| 188 | change _ * (∫ Y, (∫ a,r Y a)∂M)=_*cost * ∫ y, (∫ z,u (y,z)∂Z) ∂M |
| 189 | simp_rw [ht,integral_const_mul]; ring |
| 190 | |
| 191 | lemma body_tag (hm : S.patch.Branches S.kernel G) (g : ReadAt S G) (hg : Envelope (g k)) |
| 192 | (h : L.Available V) (hx : A.flags=RG.flags (temp x) V) : |
| 193 | Integrable (L.body V A k g) (L.climate V A k) ∧ |
| 194 | (∫ a,touch F D R.beta V A g k a ∂F.order G) = L.rate V * SectorNext.Vacuum.tagRef k * |
| 195 | ∫ y,L.body V A k g y ∂L.climate V A k := by |
| 196 | obtain ⟨hT,hi⟩ := L.stage V A k hm g hg h hx |
| 197 | refine ⟨hT.const_mul _,?_⟩ |
| 198 | rw [hi,L.aligned V A k h hx] |
| 199 | unfold body |
| 200 | rw [integral_const_mul] |
| 201 | unfold Almanac.rate ledger SectorNext.Vacuum.tagRef |
| 202 | letI : Nonempty S.Choices := Tags.populated hm |
| 203 | have hp : (Fintype.card S.Choices:ℝ) ≠ 0 := Tags.pos.ne' |
| 204 | have hb : banker T L.point V R.beta ≠ 0 := (Real.exp_pos _).ne' |
| 205 | have hs : prefactor S G R.beta ≠ 0 := (prefactor_pos _).ne' |
| 206 | field_simp |
| 207 | |
| 208 | theorem body_column (hS : S.patch.Branches S.kernel G) (g : ReadAt S G) |
| 209 | (hg : ∀ k, Envelope (g k)) (h : L.Available V) (hx : A.flags=RG.flags (temp x) V) : |
| 210 | amount F D R.beta V A g = L.rate V * Tags.average (fun k => |
| 211 | ∫ y,L.body V A k g y ∂L.climate V A k) := by |
| 212 | unfold amount |
| 213 | rw [Tags.vacuum,Finset.mul_sum]; apply Finset.sum_congr rfl; intro k _ |
| 214 | rw [(L.body_tag V A k hS g (hg k) h hx).2,mul_assoc] |
| 215 | |
| 216 | /-- Calibration to the existing sector formula. The zeroth-mark call, |
| 217 | pointwise even before summing any choices or taking any volume comparison. |
| 218 | No re-running of the lottery. -/ |
| 219 | theorem undecorated {P : Teller G} (hT : P.Funds S T) (ht : Fits T R x) (h : L.Available V) |
| 220 | (y : Room G x F A) : |
| 221 | L.body V A k (fun _ => R.eval) y = |
| 222 | Fintype.card S.Choices * L.fees V A k * |
| 223 | sleeves T x V k A R (L.list A) F D L.q L.J L.d L.point (L.C A V k) (L.m A V k) y.1 y.2 := by |
| 224 | let w U := S.noise R.beta (S.prediction U k) V * R.eval U |
| 225 | have h₀ U : S.likelihood U k * w U = sieve T R.beta x V * (S.likelihood U k * garments T x V k A R U) := by |
| 226 | rw [clothed _ _ _ _ _ _ (funds_branch hT), ← use_gap ht] |
| 227 | unfold w taggedKernel; ring |
| 228 | obtain ⟨_,_,hl,_⟩ := hT.feeds |
| 229 | let Y (f : Config G f → ℝ) := regularized D A F V k L.q L.J L.d f |
| 230 | let m := L.pattern V A k y |
| 231 | have hf : Y w y.1 m = sieve T R.beta x V * Y (garments T x V k A R) y.1 m := by |
| 232 | unfold Y regularized attending |
| 233 | simp only [smul_eq_mul, mul_assoc,h₀]; ring |
| 234 | let b := banker T L.point V R.beta |
| 235 | let s := prefactor S G R.beta |
| 236 | let f := dyed T x V k A R (L.list A) F D L.q L.J L.d (L.C A V k) (L.m A V k) y.1 y.2 |
| 237 | have he : L.atlas V A k (fun _ => R.eval) y = sieve T R.beta x V * (s * f) := by |
| 238 | rw [show s * f = Real.exp (force (L.C A V k) y.2/2) * Y (garments T x V k A R) y.1 m from |
| 239 | recolored T x V k A R _ F D L.q L.d hl h.beta _ _ _ _] |
| 240 | change _ * Y w y.1 m = _ |
| 241 | rw [hf]; ring |
| 242 | unfold body |
| 243 | rw [he,convert_full T x V _ _ h.keeps,sleeves_unfold] |
| 244 | -- same coarse/fine scalar conventions |
| 245 | change (_*L.fees _ _ _* (b*Real.exp R.scalar*s)⁻¹) * (b * Real.exp _*(s*f)) = |
| 246 | _ * L.fees V A k * (Real.exp (coarseTail T x L.point V R.beta-R.scalar)*f) |
| 247 | have hs : s≠0 := (prefactor_pos _).ne' |
| 248 | have hb : b≠0 := (Real.exp_pos _).ne' |
| 249 | rw [Real.exp_sub]; field_simp |
| 250 | end Almanac |
| 251 | end YM.AnalyticBridge.Sharp |