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.Push.SECTOR_MEASURE.Oriented |
| 2 | import YM.Push.SECTOR_MEASURE.Output |
| 3 | import YM.Work.F05.Actions |
| 4 | |
| 5 | /-! |
| 6 | # A compatible representation (input to one step) |
| 7 | |
| 8 | At the ACTUAL densities, cut out the one budget's short columns |
| 9 | (`wholeGap`, etc.). Keep the rest including channel averages, |
| 10 | literal true `cuff` tails, loop, additive, gas and v. Then exact |
| 11 | push/price formula applies. No bound on those remainder costs except |
| 12 | integrability at this T. No assuming the existence of an input/output |
| 13 | representation pair linked by the step. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | noncomputable section |
| 18 | namespace YM.Push.SectorMeasure.Presented |
| 19 | |
| 20 | open Filter Function Lattice RG Wilson Pressure Pressure.Stores Tree MeasureTheory Oriented |
| 21 | open Next.Fluctuations.Sector |
| 22 | open scoped Topology Matrix.Norms.Frobenius BigOperators Classical |
| 23 | |
| 24 | variable {G : Gauge} {c f : Side} {S : StepData c f} {P : Teller G} {T : Tube G S} {x W κ : ℝ} |
| 25 | |
| 26 | /-- Replace `baseTerm` by true fine tail difference in `principal`. |
| 27 | All terms evaluate exactly as before, including masks. -/ |
| 28 | def reduced (R : Rep G f) (n : ℕ) (U : Config G f) : ℝ := |
| 29 | R.beta * ((∑ i, cuff R.path R.clip R.p 1 n U i) + ∑ i : Site f, |
| 30 | (PathData.atomSeries R.path.cubic R.p U i + PathData.atomSeries R.path.quartic R.p U i)) + |
| 31 | ∑ i, PathData.atomSeries R.path.loop R.p U i |
| 32 | |
| 33 | def exposed (R : Rep G f) (n : ℕ) (U : Config G f) := |
| 34 | Real.exp (R.v * Fintype.card (Site f) - (averaged fun s => reduced R n (pull s 0 U)) - |
| 35 | R.activities.additive R.p U) * R.activities.gas R.p U |
| 36 | |
| 37 | def cutR (R : Rep G f) (n : ℕ) (U : Config G f) := |
| 38 | averaged fun s => ∑ i, crown R.path R.clip n 1 R.p.threshold (pull s 0 U) i |
| 39 | |
| 40 | theorem expel (R : Rep G f) (n : ℕ) (U : Config G f) : |
| 41 | exposed R n U = Real.exp (R.beta * cutR R n U) * R.eval U := by |
| 42 | let r := R.path |
| 43 | have he : r.inChannels R.clip R.p R.beta U = |
| 44 | averaged (fun s => reduced R n (pull s 0 U)) + R.beta * cutR R n U := by |
| 45 | let q (s : Signed) := ∑ i, crown R.path R.clip n 1 R.p.threshold (pull s 0 U) i |
| 46 | have hk (s : Signed) : r.principal R.clip R.p R.beta (pull s 0 U) = |
| 47 | reduced R n (pull s 0 U) + R.beta * q s := by |
| 48 | simp only [PathData.principal,q,reduced,cuff,Finset.sum_sub_distrib,mul_sub,mul_add,r]; abel |
| 49 | have hx : r.inChannels R.clip R.p R.beta U = averaged fun s => reduced R n (pull s 0 U) + R.beta * q s := by |
| 50 | simp only [PathData.inChannels,hk,averaged] |
| 51 | rw [hx, av_add] |
| 52 | unfold q cutR averaged; rw [← Finset.mul_sum]; ring |
| 53 | unfold exposed Rep.eval Rep.exponent |
| 54 | rw [← mul_assoc, ← Real.exp_add] |
| 55 | dsimp only [r] at he |
| 56 | rw [he]; ring_nf |
| 57 | |
| 58 | structure Fits (T : Tube G S) (R : Rep G f) (x : ℝ) : Prop where |
| 59 | path : R.path = T.up |
| 60 | clip : R.clip = T.high |
| 61 | temp : R.p.threshold = fiery G x S.patch.L |
| 62 | |
| 63 | def sieve (T : Tube G S) (β x : ℝ) (V : Config G c) : ℝ := Real.exp (-β * (averaged fun s => |
| 64 | ∑ i, crown T.down T.low (till x) S.patch.L.val (temp x) (pull s 0 V) i)) |
| 65 | |
| 66 | lemma use_gap {R : Rep G f} (h : Fits T R x) (U : Config G f) (k : S.Choices) (V : Config G c) : |
| 67 | taggedKernel S R.beta k U V * R.eval U = sieve T R.beta x V * |
| 68 | (exposed R (till x) U * enters T R.beta x k V U) := by |
| 69 | let F := cutR R (till x) U |
| 70 | let C := averaged fun s => ∑ i, crown T.down T.low (till x) S.patch.L.val (temp x) (pull s 0 V) i |
| 71 | rw [expel, enters] |
| 72 | have hl : wholeGap T x U V = F-C := by |
| 73 | unfold wholeGap crownGap F cutR C; rw [h.clip, h.path, h.temp]; exact av_sub .. |
| 74 | rw [hl] |
| 75 | change _ = Real.exp (-R.beta*C) * ((Real.exp (R.beta*F)*_) * (_*_)) |
| 76 | have he : Real.exp (-R.beta*C)*Real.exp (R.beta*F)*Real.exp (-R.beta*(F-C)) = 1 := by |
| 77 | rw [← Real.exp_add, ← Real.exp_add]; ring_nf; rw [Real.exp_zero] |
| 78 | nth_rw 1 [← one_mul (taggedKernel ..), ← he]; ring |
| 79 | |
| 80 | section producers |
| 81 | variable {R : Rep G f} {σ C Λ δ w : ℝ} (hR : R.Lawful σ C Λ δ w) |
| 82 | |
| 83 | lemma env_exposed (R : Rep G f) (hR : R.Lawful σ C Λ δ w) (n : ℕ) : Envelope (exposed R n) := by |
| 84 | have h : ∀ s : Signed, Envelope (fun U : Config G f => ∑ i, crown R.path R.clip n 1 R.p.threshold (pull s 0 U) i) := by |
| 85 | intro s |
| 86 | exact Envelope.sum _ _ fun i => Env.along (env_crown hR.paths ..) (continuous_pull s 0).measurable |
| 87 | have hi : Envelope (cutR R n) := env_mean h |
| 88 | rw [show exposed R n = fun U => _ from funext (expel R n)] |
| 89 | exact (((Envelope.const _).mul hi).exp).mul (R.envelope hR) |
| 90 | |
| 91 | lemma sieve_env (β x : ℝ) (hT : P.Funds S T) : Envelope (sieve T β x) := by |
| 92 | obtain ⟨a,b,ha,hb⟩ := hT.feeds |
| 93 | rw [← hT.low] at hb |
| 94 | have h : ∀ s : Signed, Envelope (fun V : Config G c => |
| 95 | ∑ i, crown T.down T.low (till x) S.patch.L.val (temp x) (pull s 0 V) i) := by |
| 96 | intro s |
| 97 | exact Envelope.sum _ _ fun i => Env.along (env_crown hb ..) (continuous_pull s 0).measurable |
| 98 | exact ((Envelope.const _).mul (env_mean h)).exp |
| 99 | |
| 100 | open Work.F05 |
| 101 | |
| 102 | private lemma maskgi (Y : Support f) (g : Config G f → ℝ) (u : GaugeInvariant g) (x : ℝ) : |
| 103 | GaugeInvariant (masked x Y g) := by |
| 104 | intro t V |
| 105 | unfold masked |
| 106 | simp only [Set.indicator, Set.mem_setOf_eq, Healthy,gauge_flags,u t V] |
| 107 | congr! |
| 108 | |
| 109 | lemma lawful_gi {R : Rep G f} (hR : R.Lawful σ C Λ δ w) : GaugeInvariant R.eval := by |
| 110 | have hm {k} (h : ℕ → Atom G k) (m : ∀ i, (h i).Invariant) |
| 111 | (x : Site f) (t : Site f → G.El) (U : Config G f) : |
| 112 | PathData.atomSeries h R.p (gauge t U) x = PathData.atomSeries h R.p U x := by |
| 113 | apply tsum_congr |
| 114 | intro i |
| 115 | refine maskgi ((h i).footprint x) _ ?_ _ t U |
| 116 | intro t U; unfold Atom.unmasked; simp_rw [slot_gauge]; exact m i .. |
| 117 | let q := hR.paths |
| 118 | have hp (U : Config G f) (s : Site f → G.El) (i : Cell f) : |
| 119 | R.path.baseTerm R.clip R.p (gauge s U) i = R.path.baseTerm R.clip R.p U i := by |
| 120 | simp only [PathData.baseTerm, PathData.kept, face_gauge,G.chord_conj,ell_gauge q, G.norm_adjoint] |
| 121 | congr! |
| 122 | intro t U |
| 123 | have he : R.exponent (gauge t U)=R.exponent U := by |
| 124 | have hh i := (hR.labels.regular.smooth i).symmetry |
| 125 | have hs i : R.activities.regularOccurrence R.p i (gauge t U)=R.activities.regularOccurrence R.p i U := |
| 126 | maskgi _ _ (hh i) _ _ _ |
| 127 | simp only [Rep.exponent, PathData.inChannels, Activities.additive, hs, PathData.principal, pull_gauge_zero, |
| 128 | hp, hm R.path.cubic (fun i => (q.invariant i).2.1), hm R.path.quartic (fun i => (q.invariant i).2.2), |
| 129 | hm R.path.loop (fun i => (q.invariant i).1)] |
| 130 | have hk i : R.activities.gasOccurrence R.p i (gauge t U) = R.activities.gasOccurrence R.p i U := by |
| 131 | simp only [Activities.gasOccurrence, Activities.admissible,gauge_flags,hR.labels.forced.sym _ t U] |
| 132 | congr! |
| 133 | unfold Rep.eval; rw [he]; simp only [Activities.gas,hk] |
| 134 | |
| 135 | end producers |
| 136 | |
| 137 | /-- The rest of the integral RHS under charge (using absolute values |
| 138 | before any assumption on signs on an interval of represented inputs). |
| 139 | Volume dependent. No scalar divisions introduced here. -/ |
| 140 | def leftOver (D : Allocation G S x W) (F : Forest S.ratio) (T : Tube G S) |
| 141 | (R : Rep G f) (A : Stores S) (V : Config G c) : ℝ := |
| 142 | sieve T R.beta x V * D.column A F V (fun k a => |
| 143 | ‖exposed R (till x) (F.drape a)‖ * leaves A T R.beta x k V (F.drape a)) |
| 144 | |
| 145 | def cutEntry (D : Allocation G S x W) (F : Forest S.ratio) (T : Tube G S) |
| 146 | (R : Rep G f) (A : Stores S) (V : Config G c) : ℝ := |
| 147 | sieve T R.beta x V * D.column A F V (fun k a => |
| 148 | exposed R (till x) (F.drape a) * enters T R.beta x k V (F.drape a)) |
| 149 | |
| 150 | /-- The precise fixed-volume statements bought by the receipts. -/ |
| 151 | structure PortionCost (D : Allocation G S x W) (F : Forest S.ratio) (T : Tube G S) (κ : ℝ) (R : Rep G f) : Prop where |
| 152 | envelopes A : Envelope (cutEntry D F T R A) ∧ Envelope (leftOver D F T R A) |
| 153 | total V : S.push R.beta R.eval V = ∑ A, cutEntry D F T R A V |
| 154 | each A V : output D F R.beta R.eval A V = cutEntry D F T R A V |
| 155 | cost A V : ‖cutEntry D F T R A V‖ ≤ earn S G x κ R.beta A.shares * leftOver D F T R A V |
| 156 | |
| 157 | theorem portionCost {σ C Λ δ w : ℝ} {R : Rep G f} (h : PointCharge T x W κ) (hT : P.Funds S T) |
| 158 | (hR : R.Lawful σ C Λ δ w) (hl : 0 ≤ R.beta) (ht : Fits T R x) (F : Forest S.ratio) |
| 159 | (D : Allocation G S x W) : PortionCost D F T κ R := by |
| 160 | let hb := funds_branch hT |
| 161 | let b := R.beta |
| 162 | have he := R.envelope hR |
| 163 | let E := exposed R (till x) |
| 164 | have hE : Envelope E := env_exposed R hR _ |
| 165 | have hw (A : Stores S) (V : Config G c) : output D F R.beta R.eval A V = cutEntry D F T R A V := by |
| 166 | unfold output cutEntry Allocation.column tagTotal |
| 167 | rw [Finset.mul_sum] |
| 168 | refine Finset.sum_congr rfl fun k _ => ?_ |
| 169 | rw [← integral_const_mul] |
| 170 | apply integral_congr_ae |
| 171 | filter_upwards with a |
| 172 | unfold Allocation.portion through |
| 173 | simp only [smul_eq_mul, use_gap ht] |
| 174 | ring |
| 175 | constructor |
| 176 | · intro A; constructor |
| 177 | · rw [show cutEntry D F T R A = output D F R.beta R.eval A from (funext (hw A)).symm] |
| 178 | exact output_env D F b R.eval hb he A |
| 179 | unfold leftOver |
| 180 | let L := fun (k : S.Choices) (p : F.Slice G × Config G c) => |
| 181 | ‖E (F.drape p.1)‖ * leaves A T R.beta x k p.2 (F.drape p.1) |
| 182 | apply (sieve_env b x hT).mul (D.column_env hb A F L ?_) |
| 183 | have eh : Envelope (fun u => ‖E u‖) := by |
| 184 | obtain ⟨C,H⟩ := hE.cost |
| 185 | exact ⟨hE.meas.norm,C,fun a => (Real.norm_of_nonneg (norm_nonneg _)).trans_le (H a)⟩ |
| 186 | intro k |
| 187 | have h1 : Measurable (fun a : F.Slice G × Config G c => F.drape a.1) := |
| 188 | F.continuous_drape.measurable.comp measurable_fst |
| 189 | have h2 : Measurable (fun a : F.Slice G × Config G c => a.2) := measurable_snd |
| 190 | exact (Env.along eh h1).mul (env_leaves hT A b x k h1 h2) |
| 191 | · intro V; simp_rw [← hw] |
| 192 | exact (push_columns D F b R.eval hb (he.integrable _) (lawful_gi hR) V).symm |
| 193 | · exact hw |
| 194 | intro A V |
| 195 | let L := fun (_ : S.Choices) (a : F.Slice G) => ‖E (F.drape a)‖ |
| 196 | have hD := turn_charge D F b V L A hT h hl |
| 197 | (fun k => ((Env.along hE F.continuous_drape.measurable).integrable _).norm) (fun _ _ => norm_nonneg _) |
| 198 | have hh : 0 ≤ sieve T b x V := (Real.exp_pos _).le |
| 199 | unfold cutEntry leftOver |
| 200 | rw [norm_mul,Real.norm_of_nonneg hh,mul_left_comm] |
| 201 | apply mul_le_mul_of_nonneg_left _ hh |
| 202 | apply le_trans ?_ hD |
| 203 | unfold Allocation.column tagTotal |
| 204 | apply (norm_sum_le ..).trans |
| 205 | refine Finset.sum_le_sum fun k _ => ?_ |
| 206 | refine (norm_integral_le_integral_norm _).trans_eq ?_ |
| 207 | unfold Allocation.portion |
| 208 | have hy a : 0 ≤ enters T b x k V (F.drape a) := mul_nonneg (kernel_nonneg ..) (Real.exp_pos _).le |
| 209 | change (∫ a, ‖_ * (E (F.drape a) * enters T b x k V (F.drape a))‖ ∂F.order G) = _ |
| 210 | simp only [L, norm_mul, Real.norm_of_nonneg (D.nonneg ..), Real.norm_of_nonneg (hy _), smul_eq_mul, E] |
| 211 | |
| 212 | end YM.Push.SectorMeasure.Presented |