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.Further.GAUSSIAN_SCALAR_LEDGER.Affine |
| 2 | import YM.Further.GAUSSIAN_SCALAR_LEDGER.Correction |
| 3 | import YM.Further.GAUSSIAN_SCALAR_LEDGER.Opening |
| 4 | |
| 5 | set_option warningAsError false |
| 6 | |
| 7 | /-! |
| 8 | # Surface on the true columns |
| 9 | |
| 10 | From the exact Haar opening and a named Gram/covariance system. Here |
| 11 | Gram rows, affine constants, choice of any centering (window caller |
| 12 | may supply $-Π₀^* b$) and output base value to extract are *parameters*, |
| 13 | not identifying any truncation with the full Hessian. All arbitrary |
| 14 | because we actually ADD AND SUBTRACT the rows with the given numerical |
| 15 | data before doing any integration. Proves value identities; pricing |
| 16 | those very same rows uniformly, or cancelling them in interactions, |
| 17 | requires more. `Rates` an input about real matrices (see Local for |
| 18 | producing in some settings), not beta running bounds. B0 denotes the |
| 19 | caller's flat comparator table to EXTRACT. In E application supply the |
| 20 | real truncated comparator in the actual channels (`no_hole` etc useful |
| 21 | if then averaging forests). Not charging it from an untruncated Hessian. |
| 22 | All lengths/dimensions native here. |
| 23 | -/ |
| 24 | |
| 25 | set_option autoImplicit false |
| 26 | noncomputable section |
| 27 | namespace YM.Further.GaussianScalar |
| 28 | |
| 29 | open Function MeasureTheory Filter Set Matrix |
| 30 | open Lattice RG Wilson Tree Precision SectorNext.Vacuum Pressure Push.SectorMeasure |
| 31 | open scoped Topology BigOperators Matrix.Norms.Frobenius Classical |
| 32 | |
| 33 | variable {c f : Side} {S : StepData c f} {G : Gauge} {x W : ℝ} {O : ChartRatio G} |
| 34 | {F : Forest S.ratio} |
| 35 | |
| 36 | /-- Per physical, **whole** tag record. No iid mixture over rows. |
| 37 | Rooms (real finite labels) can just use zero rows when reserving space |
| 38 | but need to retain all channel weights within rows and b0 to use those |
| 39 | very D rows as in the source. Compare/sample within each Y before outer |
| 40 | integration. -/ |
| 41 | structure Fiber (F : Forest S.ratio) (O : ChartRatio G) (rooms : Type*) where |
| 42 | H : Finset F.Free |
| 43 | veil : Curtain O H |
| 44 | D : Frozen H G → Matrix rooms (Bits G H) ℝ |
| 45 | b0 : Frozen H G → VV rooms |
| 46 | C : Frozen H G → Wall (Bits G H) |
| 47 | μ : Frozen H G → VV (Bits G H) |
| 48 | |
| 49 | variable {rooms : Type*} [Fintype rooms] |
| 50 | namespace Fiber |
| 51 | |
| 52 | variable (d : Allocation G S x W) (P : Stores S) (k : S.Choices) (V : Config G c) |
| 53 | (R : Rep G f) (u : Fiber F O rooms) (U : ℝ) |
| 54 | |
| 55 | def sigma (Y : Frozen u.H G) : Wall (Key F G) := filled u.H (precision (u.D Y)) |
| 56 | def complete (Y : Frozen u.H G) : Wall (Key F G) := filled u.H (u.C Y) |
| 57 | def eps (Y : Frozen u.H G) := u.sigma Y * u.complete Y - 1 |
| 58 | |
| 59 | /-- Full numeric receipts. Require absolute row rate on S, *not* symmetry |
| 60 | of S. Can equivalently check it on regular-only (`rates_filled`). See |
| 61 | `Local` for production of these costs from the principal-window rules. -/ |
| 62 | structure Rates (η L q : ℝ) : Prop where |
| 63 | pos : 0 < η |
| 64 | mind : η ≤ L |
| 65 | low : 0 ≤ q |
| 66 | high : q < 1 |
| 67 | gap Y : Numeric (u.sigma Y) η L |
| 68 | rate Y : Round.rowRate q (u.eps Y) |
| 69 | symm Y : (u.C Y).IsHermitian |
| 70 | |
| 71 | variable {η L q : ℝ} |
| 72 | |
| 73 | lemma real_precision (Y : Frozen u.H G) : (u.sigma Y).IsHermitian := |
| 74 | hermitian_filled _ _ (hermitian_precision (u.D Y)) |
| 75 | lemma rates_gap (h : u.Rates η L q) (Y : Frozen u.H G) : (u.sigma Y).PosDef := |
| 76 | numeric_positive _ (u.real_precision Y) η L (h.gap Y) h.pos |
| 77 | lemma rates_cov (h : u.Rates η L q) (Y : Frozen u.H G) : (u.complete Y).PosDef := |
| 78 | covariance_from_rate (u.rates_gap h Y) (hermitian_filled _ _ (h.symm Y)) (h.rate Y) h.high |
| 79 | lemma rates_core (h : u.Rates η L q) (Y : Frozen u.H G) : (u.C Y).PosDef := by |
| 80 | have he := blank_positive u.H (u.complete Y) (u.rates_cov h Y) |
| 81 | unfold complete filled at he; rwa [blank_meets] at he |
| 82 | |
| 83 | /-- Matrix identities for density ratio bookkeeping. Finite |
| 84 | real Gram/cov matrices. -/ |
| 85 | lemma rates_trace (h : u.Rates η L q) (Y : Frozen u.H G) : |
| 86 | 0 < (1+u.eps Y).det ∧ Round.traceLog (u.eps Y)=Real.log (1+u.eps Y).det ∧ |
| 87 | Real.log (u.C Y).det= -Real.log (precision (u.D Y)).det + Round.traceLog (u.eps Y) ∧ |
| 88 | ∀ i j, HasSum (fun n : ℕ => ((-u.eps Y)^(n+1) * u.sigma Y) i j) |
| 89 | (((u.complete Y)⁻¹-u.sigma Y) i j) := by |
| 90 | obtain ⟨_,_,_,hp,_,he,hh,hM⟩ := split_costs (S:=u.eps Y) (u.rates_gap h Y) |
| 91 | (u.rates_cov h Y).1 rfl (h.rate Y) h.low h.high |
| 92 | unfold complete sigma at hh |
| 93 | rw [paid_filled, paid_filled] at hh |
| 94 | exact ⟨hp,he,hh,hM⟩ |
| 95 | |
| 96 | def spread (β : ℝ) := (Real.sqrt β)⁻¹ |
| 97 | omit [Fintype rooms] in |
| 98 | lemma spread_beta (Y : ℝ) (h : 0 < Y) : 0 < spread Y ∧ spread Y ^ 2=Y⁻¹ := |
| 99 | ⟨inv_pos.mpr (Real.sqrt_pos.mpr h), by rw [spread,inv_pow,Real.sq_sqrt h.le]⟩ |
| 100 | |
| 101 | def material (β : ℝ) (L : F.Slice G → ℝ) (Y : Frozen u.H G) (a : VV (Bits G u.H)) := |
| 102 | Real.exp U * Real.exp (charge (u.D Y) (u.b0 Y) (spread β) a) * |
| 103 | (leafRatio O u.veil a * (raw d P k V (included V Y a) * L (included V Y a))) |
| 104 | |
| 105 | def visit (β : ℝ) (L : F.Slice G → ℝ) (Y : Frozen u.H G) (z : VV (Bits G u.H)) := |
| 106 | sample (u.D Y) (u.C Y) (u.b0 Y) (u.μ Y) (spread β) (u.material d P k V U β L Y) z |
| 107 | |
| 108 | def chargeOut (B0 : Wall (Key F G)) (β : ℝ) (Y : Frozen u.H G) := |
| 109 | residualLog F O β u.H B0 (u.sigma Y) (u.complete Y) |
| 110 | |
| 111 | private lemma fibre_cost (Y : Frozen u.H G) (β : ℝ) (L : F.Slice G → ℝ) |
| 112 | (a : VV (Bits G u.H)) : |
| 113 | coupon O u.veil d P k V L Y a = |
| 114 | (Real.exp (-U) * O.scale ^ (nt F-u.H.card)) * |
| 115 | (Real.exp (-charge (u.D Y) (u.b0 Y) (spread β) a) * u.material d P k V U β L Y a) := by |
| 116 | rw [coupon,material, leaf_order] |
| 117 | dsimp only |
| 118 | rw [Real.exp_neg, Real.exp_neg]; field_simp |
| 119 | |
| 120 | /-- Expose every `surface` with its Y-dependent exponent. No determinant |
| 121 | signed square roots presumed silently. -/ |
| 122 | lemma pricing (hO : LocalRatio O) (hm : S.patch.Branches S.kernel G) (h : u.Rates η L q) |
| 123 | (β : ℝ) (hp : 0 < β) (J : F.Slice G → ℝ) (he : Envelope J) (Y : Frozen u.H G) : |
| 124 | Integrable (u.visit d P k V U β J Y) (fieldLaw (u.C Y)) ∧ |
| 125 | (∫ a, coupon O u.veil d P k V J Y a) = Real.exp (-U) * surface F O β u.H (u.complete Y) * |
| 126 | ∫ z, u.visit d P k V U β J Y z ∂fieldLaw (u.C Y) := by |
| 127 | let ψ := u.material d P k V U β J Y |
| 128 | let g := spread β |
| 129 | let f := fun a => Real.exp (-charge (u.D Y) (u.b0 Y) g a) * ψ a |
| 130 | let x := Real.exp (-U) * O.scale^(nt F-u.H.card) |
| 131 | have hx : 0 < x := mul_pos (Real.exp_pos _) (pow_pos hO.scale _) |
| 132 | have hv : coupon O u.veil d P k V J Y = fun a => x * f a := funext (fun _ => u.fibre_cost ..) |
| 133 | have hz := (coupon_cost O u.veil d P k V hm hO J he).2.2 Y |
| 134 | have hf : Integrable f := (integrable_const_mul_iff (isUnit_iff_ne_zero.mpr hx.ne') f).mp (hv ▸ hz) |
| 135 | have ha := u.rates_core h Y |
| 136 | have hg : 0 < g := (spread_beta β hp).1 |
| 137 | obtain ⟨hN,hU⟩ := charge_integral _ _ ha (u.μ Y) g hg ψ hf |
| 138 | change (∫ a,f a) = _ * _ * _ at hU |
| 139 | refine ⟨hN,?_⟩ |
| 140 | unfold surface complete |
| 141 | rw [hv, integral_const_mul, hU,count_bits,paid_filled] |
| 142 | rw [show 2*Real.pi*g^2= 2*Real.pi/β by rw [show g^2=_ from (spread_beta β hp).2]; ring] |
| 143 | unfold visit ψ x g; ring |
| 144 | |
| 145 | lemma free_line (F : Forest S.ratio) (O : ChartRatio G) (β : ℝ) (B0 : Wall (Key F G)) |
| 146 | (hO : LocalRatio O) (hp : 0 < β) (hb : 0 < B0.det) : 0 < flatLine F O β B0 := |
| 147 | mul_pos (pow_pos (link_factor_pos O hO β hp) _) (inv_pos.mpr (Real.sqrt_pos.mpr hb)) |
| 148 | |
| 149 | def till (B0 : Wall (Key F G)) := ∫ Y, |
| 150 | Real.exp (u.chargeOut B0 R.beta Y) * (∫ z, u.visit d P k V U R.beta (pressureRows k V R) Y z |
| 151 | ∂fieldLaw (u.C Y)) ∂bins u.H G |
| 152 | |
| 153 | lemma drop_surface (B0 : Wall (Key F G)) (hO : LocalRatio O) (β : ℝ) (hp : 0 < β) (hb : 0 < B0.det) |
| 154 | (h : u.Rates η L q) (Y : Frozen u.H G) : |
| 155 | surface F O β u.H (u.complete Y) = flatLine F O β B0 * Real.exp (u.chargeOut B0 β Y) := |
| 156 | (unloads F O hO β hp u.H B0 _ _ hb (u.rates_gap h Y) (u.rates_cov h Y).1 h.low h.high (h.rate Y)).2.symm |
| 157 | |
| 158 | /-- `Fsct` part track inside the same Y-integral. Thus no need for |
| 159 | pulling a seed-independent factor across a change in precision without |
| 160 | charging its field-dependent ratio. -/ |
| 161 | lemma assembled (hO : LocalRatio O) (hm : S.patch.Branches S.kernel G) (h : u.Rates η L q) |
| 162 | (β : ℝ) (hp : 0 < β) (J : F.Slice G → ℝ) (he : Envelope J) (B0 : Wall (Key F G)) |
| 163 | (hb : 0 < B0.det) : |
| 164 | let I := fun Y => Real.exp (u.chargeOut B0 β Y) * (∫ z, u.visit d P k V U β J Y z ∂fieldLaw (u.C Y)) |
| 165 | (∀ Y, (∫ a, coupon O u.veil d P k V J Y a) = flatLine F O β B0 * Real.exp (-U) * I Y) ∧ |
| 166 | Integrable I (bins u.H G) := by |
| 167 | intro I |
| 168 | have hx : 0 < flatLine F O β B0 * Real.exp (-U) := mul_pos |
| 169 | (free_line F O β B0 hO hp hb) (Real.exp_pos _) |
| 170 | have hg Y : (∫ a, coupon O u.veil d P k V J Y a) = flatLine F O β B0 * Real.exp (-U) * I Y := by |
| 171 | rw [(u.pricing d P k V U hO hm h β hp J he Y).2, u.drop_surface _ hO β hp hb h] |
| 172 | unfold I; ring |
| 173 | refine ⟨hg, (integrable_const_mul_iff (isUnit_iff_ne_zero.mpr hx.ne') I).mp ?_⟩ |
| 174 | have h' := (coupon_cost O u.veil d P k V hm hO J he).2.1.integral_prod_left |
| 175 | simp_rw [← hg]; exact h' |
| 176 | |
| 177 | /-- `balance` of this *exact* store/tag on the stripped interacting |
| 178 | input. Assumes only the Opened law and the named finite-table estimates |
| 179 | here (plus positive beta, base determinant and R.Lawful). |
| 180 | Proves pointwise value; log at identity handled separately. -/ |
| 181 | theorem supplies (hO : LocalRatio O) (hm : S.patch.Branches S.kernel G) (h : u.Rates η L q) |
| 182 | (A : Opened O u.veil d P k V) {σ C Λ δ w : ℝ} (hR : R.Lawful σ C Λ δ w) (hr : 0 < R.beta) |
| 183 | (B0 : Wall (Key F G)) (hb : 0 < B0.det) : |
| 184 | balance d F R.beta (stripped R) P k V = |
| 185 | flatLine F O R.beta B0 * Real.exp (-U) * u.till d P k V R U B0 := by |
| 186 | rw [press _ _ d P k V hm hR A, till,← integral_const_mul] |
| 187 | have hi := pressure_env (F:=F) k V hm hR |
| 188 | apply integral_congr_ae; filter_upwards with Y |
| 189 | exact (u.assembled d P k V U hO hm h R.beta hr _ hi B0 hb).1 Y |
| 190 | |
| 191 | omit [Fintype rooms] in |
| 192 | private lemma veil_nonneg (hO : LocalRatio O) (w : VV (Bits G u.H)) : 0 ≤ leafRatio O u.veil w := by |
| 193 | refine Finset.prod_nonneg (fun i _ => ?_) |
| 194 | by_cases he : u.veil.size < ‖hue i w‖ |
| 195 | · rw [u.veil.off i _ he,zero_mul] |
| 196 | apply mul_nonneg (u.veil.nonneg ..) |
| 197 | exact (hO.pos _ (Metric.mem_ball.mpr (by rw [dist_zero_right]; exact lt_of_le_of_lt (le_of_not_gt he) u.veil.small))).le |
| 198 | |
| 199 | |
| 200 | |
| 201 | |
| 202 | |
| 203 | end Fiber |
| 204 | end YM.Further.GaussianScalar |