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.Laurent.Turn |
| 2 | import YM.Next.FLUCTUATIONS.Grants |
| 3 | import YM.Push.SECTOR_MEASURE.Grant |
| 4 | import YM.Work.H03 |
| 5 | |
| 6 | /-! |
| 7 | # Extend intact sector payment to the cut crown's orientation average |
| 8 | |
| 9 | Retain one Forest and one tag array; at a turned expression use |
| 10 | turned tags and a turned copy of the same tree. No resampling. Keep |
| 11 | Plot prerequisites *through a single global booking*, so the same |
| 12 | price applies to all contributions. Average energies, not densities |
| 13 | (, RG.PathData.inChannels's averaging convention). |
| 14 | Still before uncut tails, and not a gas estimate. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | noncomputable section |
| 19 | namespace YM.Push.SectorMeasure |
| 20 | |
| 21 | open Filter Function Lattice RG Wilson Pressure Pressure.Stores Tree MeasureTheory |
| 22 | open Next.Fluctuations.Sector |
| 23 | open scoped Topology Matrix.Norms.Frobenius BigOperators Classical |
| 24 | |
| 25 | variable {G : Gauge} {c f n : Side} {S : StepData c f} {P : Teller G} {T : Tube G S} {x W κ : ℝ} |
| 26 | |
| 27 | /-- Point receipt needed for *simultaneous* expenditure on several |
| 28 | orientations. -/ |
| 29 | def PointCharge (T : Tube G S) (x W κ : ℝ) : Prop := |
| 30 | ∀ (F : Forest S.ratio) (A : Stores S) (U : Config G f) (k : S.Choices) (V : Config G c), |
| 31 | SliceSet S F U → Plot A U k V x W → |
| 32 | κ*(fiery G x S.patch.L)^2*A.shares ≤ A.assessed T x U (S.prediction U k) V |
| 33 | |
| 34 | theorem PointCharge.charged (h : PointCharge T x W κ) (he : P.Funds S T) : Charged T x W κ := |
| 35 | charged_at he fun A F V a k ha => h F A _ k V (fun i hi => F.on_tree a ⟨i,hi⟩) ha |
| 36 | |
| 37 | theorem points_grant (P : Teller G) : |
| 38 | ∃ n : ℕ, ∀ L : Side, n ≤ L.val → ∀ᶠ W : ℝ in atTop, 0 < W ∧ |
| 39 | ∃ κ : ℝ, 0 < κ ∧ ∀ᶠ x : ℝ in atTop, 0 < x ∧ 0 < fiery G x L ∧ |
| 40 | ∀ (c f : Side) (S : StepData c f) (T : Tube G S), S.patch.L = L → |
| 41 | 100*(1+radiusB x) ≤ c.val → P.Funds S T → PointCharge T x W κ := by |
| 42 | obtain ⟨n,h⟩ := (Next.Fluctuations.grants P).precedes |
| 43 | refine ⟨n,fun L hL => ?_⟩ |
| 44 | filter_upwards [h L hL,eventually_gt_atTop 0] with W hw hw' |
| 45 | obtain ⟨κ,hκ,hp⟩ := hw |
| 46 | refine ⟨hw',κ,hκ,?_⟩ |
| 47 | filter_upwards [hp.late,eventually_gt_atTop 0,(Work.E09.betaF_growth G L).eventually (eventually_gt_atTop 0)] |
| 48 | with x hx hu ht |
| 49 | refine ⟨hu,Work.E09.temp_pos ht,fun c f S T hs hR hT F A U k V hm he => ?_⟩ |
| 50 | rw [hs] |
| 51 | exact hx c f S hs hR T hT F A U k V hm he |
| 52 | |
| 53 | namespace Oriented |
| 54 | |
| 55 | section turn |
| 56 | |
| 57 | variable (s : Signed) |
| 58 | |
| 59 | def choice (s : Signed) (k : S.Choices) := (S.withinChoice s 0).symm k |
| 60 | |
| 61 | theorem carry (h : S.patch.Branches S.kernel G) (k : S.Choices) (U : Config G f) : |
| 62 | S.likelihood (pull s 0 U) (choice s k) = S.likelihood U k ∧ |
| 63 | S.prediction (pull s 0 U) (choice s k) = pull s 0 (S.prediction U k) := by |
| 64 | have hl : S.ratio.embed 0=0 := S.ratio.root.map_zero |
| 65 | have he := S.mass_channel h s 0 U (choice s k) |
| 66 | have hp := S.prediction_channel h s 0 U (choice s k) |
| 67 | simp_rw [choice,hl,Equiv.apply_symm_apply] at he hp |
| 68 | exact ⟨he,hp⟩ |
| 69 | |
| 70 | def faces (s : Signed) (n : Side) : Equiv.Perm (Cell n) := Equiv.ofBijective (Face.send s 0) |
| 71 | ⟨Face.injective_send s 0, Finite.injective_iff_surjective.mp (Face.injective_send s 0)⟩ |
| 72 | |
| 73 | /-- Records needed by an expression in turned coordinates. -/ |
| 74 | def turnStore (s : Signed) (A : Stores S) : Stores S where |
| 75 | costs := A.costs.map (faces s f).symm.toEmbedding |
| 76 | aisles := A.aisles.map (StepData.sendBonds s 0).symm.toEmbedding |
| 77 | flags := A.flags.map (StepData.sendSites s 0).symm.toEmbedding |
| 78 | |
| 79 | theorem same_price (A : Stores S) : (turnStore s A).shares = A.shares := by simp [turnStore, Stores.shares] |
| 80 | |
| 81 | theorem wire_pulled (Q V : Config G n) (b : Bond n) : |
| 82 | wire (pull s 0 Q) (pull s 0 V) b = wire Q V (sendEdge s 0 b) := by |
| 83 | have ht (u v : G.El) : G.chord (u⁻¹*(v⁻¹)⁻¹) = G.chord (u*v⁻¹) := by |
| 84 | rw [← G.chord_inv (u*v⁻¹), show (u*v⁻¹)⁻¹ = u*(u⁻¹*(v⁻¹)⁻¹)*u⁻¹ by group,G.chord_conj] |
| 85 | unfold wire pull sendEdge Step.read |
| 86 | split |
| 87 | · exact ht .. |
| 88 | rfl |
| 89 | |
| 90 | lemma pull_seeded {A : Stores S} (hm : S.patch.Branches S.kernel G) {U : Config G f} {V : Config G c} |
| 91 | {k : S.Choices} (h : Seeded A U k V x W) : |
| 92 | Seeded (turnStore s A) (pull s 0 U) (choice s k) (pull s 0 V) x W := by |
| 93 | constructor |
| 94 | · intro p |
| 95 | have hl : toll (pull s 0 U) p = toll U (faces s f p) := |
| 96 | Face.send_price U p s 0 G.chord G.chord_inv fun k g => G.chord_conj g k |
| 97 | have he : p ∈ (turnStore s A).costs ↔ faces s f p ∈ A.costs := by |
| 98 | simp [turnStore] |
| 99 | rw [hl,he]; exact h.fine _ |
| 100 | · intro b; rw [(carry s hm k U).2,wire_pulled] |
| 101 | have he : b ∈ (turnStore s A).aisles ↔ (StepData.sendBonds s 0 b) ∈ A.aisles := by |
| 102 | dsimp only [turnStore]; simp |
| 103 | rw [he]; exact h.coarse (sendEdge s 0 b) |
| 104 | have hp := Work.H03.flags_send s (0:Site c) (temp x) V |
| 105 | let e := StepData.sendSites s (0:Site c) |
| 106 | have hh : ((RG.flags (temp x) (pull s 0 V)).map e.toEmbedding) = RG.flags (temp x) V := by |
| 107 | rw [Finset.map_eq_image]; exact hp |
| 108 | change A.flags.map e.symm.toEmbedding = _ |
| 109 | rw [h.exactFlags,← hh]; ext; simp |
| 110 | |
| 111 | /-- Turn the (one, actual) tree g-coordinate. |
| 112 | No wrap ambiguity in parent action because block ratio odd. -/ |
| 113 | private def rotatedStep (F : Forest S.ratio) (i : Site f) := (F.up (s.act i)).rotate s⁻¹ |
| 114 | |
| 115 | private theorem lands (F : Forest S.ratio) (i : Site f) : |
| 116 | s.act (i+(rotatedStep s F i).vec) = s.act i + (F.up (s.act i)).vec := by |
| 117 | rw [s.act_add,rotatedStep,Step.vec_rotate,Signed.act_inv] |
| 118 | |
| 119 | private theorem in_leaf (i : Site f) (h : leaf S.ratio i) : leaf S.ratio (s.act i) := by |
| 120 | unfold leaf at * |
| 121 | intro he; apply h |
| 122 | rw [S.ratio.parent_signed S.patch.odd_side, S.ratio.signed] at he |
| 123 | exact s.act_injective he |
| 124 | |
| 125 | def turnForest (F : Forest S.ratio) : Forest S.ratio where |
| 126 | up := rotatedStep s F |
| 127 | height i := F.height (s.act i) |
| 128 | bound i := F.bound _ |
| 129 | rise i hi := by rw [lands]; exact F.rise _ (in_leaf s i hi) |
| 130 | stays i hi := by |
| 131 | apply s.act_injective |
| 132 | rw [← S.ratio.parent_signed S.patch.odd_side, ← S.ratio.parent_signed S.patch.odd_side,lands] |
| 133 | exact F.stays _ (in_leaf s i hi) |
| 134 | |
| 135 | theorem turn_sliced (F : Forest S.ratio) (U : Config G f) (h : SliceSet S F U) : |
| 136 | SliceSet S (turnForest s F) (pull s 0 U) := by |
| 137 | intro i hi |
| 138 | obtain ⟨j,hj,rfl⟩ := ((turnForest s F).trunk_mem_iff _).1 hi |
| 139 | let k := rotatedStep s F j |
| 140 | have he : k.read (pull s 0 U) j = 1 := by |
| 141 | have ht := h _ ((F.trunk_mem_iff _).mpr ⟨_,in_leaf s j hj,rfl⟩) |
| 142 | rw [Step.pull_read] |
| 143 | simp only [k, rotatedStep, Step.rotate_mul, mul_inv_cancel,Step.rotate_one,affine,add_zero,Step.read] |
| 144 | simp [ht] |
| 145 | unfold Step.read at he |
| 146 | split at he |
| 147 | · exact inv_eq_one.mp he |
| 148 | exact he |
| 149 | |
| 150 | end turn |
| 151 | |
| 152 | def averaged (F : Signed → ℝ) := (Fintype.card Signed : ℝ)⁻¹ * ∑ s, F s |
| 153 | |
| 154 | lemma av_add (F H : Signed → ℝ) : averaged (fun s => F s + H s) = averaged F + averaged H := by |
| 155 | simp only [averaged, Finset.sum_add_distrib, mul_add] |
| 156 | |
| 157 | lemma av_sub (F H : Signed → ℝ) : averaged (fun s => F s - H s) = averaged F - averaged H := by |
| 158 | simp only [averaged, Finset.sum_sub_distrib, mul_sub] |
| 159 | |
| 160 | lemma av_const (r : ℝ) : averaged (fun _ => r) = r := by |
| 161 | have h : 0 < (Fintype.card Signed : ℝ) := by exact_mod_cast Fintype.card_pos |
| 162 | simp [averaged,h.ne'] |
| 163 | |
| 164 | lemma av_mono {F H : Signed → ℝ} (h : ∀ s, F s ≤ H s) : averaged F ≤ averaged H := by |
| 165 | unfold averaged; gcongr _ * ?_; exact Finset.sum_le_sum fun i _ => h i |
| 166 | |
| 167 | def wholeGap (T : Tube G S) (x : ℝ) (U : Config G f) (V : Config G c) : ℝ := |
| 168 | averaged fun s => crownGap T x (pull s 0 U) (pull s 0 V) |
| 169 | |
| 170 | def meanEnergy (A : Stores S) (T : Tube G S) (x : ℝ) (U : Config G f) (k : S.Choices) (V : Config G c) := |
| 171 | averaged fun s => |
| 172 | (turnStore s A).assessed T x (pull s 0 U) (S.prediction (pull s 0 U) (choice s k)) (pull s 0 V) |
| 173 | |
| 174 | def meanRest (A : Stores S) (T : Tube G S) (x : ℝ) (U : Config G f) (k : S.Choices) (V : Config G c) := |
| 175 | averaged fun s => unassigned (turnStore s A) T x (pull s 0 U) (choice s k) (pull s 0 V) |
| 176 | |
| 177 | /-- Cut crown, average Gap. Don't replicate the likelihood or noise, |
| 178 | and don't demand that all predictors use the minimizing branch. -/ |
| 179 | def enters (T : Tube G S) (β x : ℝ) (k : S.Choices) (V : Config G c) (U : Config G f) := |
| 180 | taggedKernel S β k U V * Real.exp (-β * wholeGap T x U V) |
| 181 | |
| 182 | def leaves (A : Stores S) (T : Tube G S) (β x : ℝ) (k : S.Choices) (V : Config G c) (U : Config G f) := |
| 183 | S.likelihood U k * Real.exp (-β * meanRest A T x U k V) |
| 184 | |
| 185 | lemma enters_eq (hm : S.patch.Branches S.kernel G) (A : Stores S) (β x : ℝ) (k : S.Choices) |
| 186 | (V : Config G c) (U : Config G f) : |
| 187 | enters T β x k V U = prefactor S G β * Real.exp (-β * meanEnergy A T x U k V) * leaves A T β x k V U := by |
| 188 | let Q := S.prediction U k |
| 189 | let m := ∑ i, Tube.monetary S Q V i |
| 190 | have he : S.noise β Q V = prefactor S G β * Real.exp (-β*m) := by |
| 191 | unfold StepData.noise m prefactor |
| 192 | rw [Finset.prod_mul_distrib, Finset.prod_const, Finset.card_univ, Finset.mul_sum, Real.exp_sum]; congr 1 |
| 193 | refine Finset.prod_congr rfl fun i _ => ?_ |
| 194 | unfold StepData.penaltyWeight Tube.monetary wire; rw [G.chord_price]; ring_nf |
| 195 | have hg : meanEnergy A T x U k V + meanRest A T x U k V = m + wholeGap T x U V := by |
| 196 | unfold meanEnergy meanRest wholeGap |
| 197 | rw [← av_const m, ← av_add, ← av_add] |
| 198 | apply congr_arg averaged |
| 199 | funext s |
| 200 | dsimp only [crownGap,unassigned]; rw [T.locates] |
| 201 | have hu : (∑ i, Tube.monetary S (S.prediction (pull s 0 U) (choice s k)) (pull s 0 V) i) = m := by |
| 202 | rw [(carry s hm k U).2]; unfold Tube.monetary; simp_rw [wire_pulled] |
| 203 | exact Equiv.sum_comp (StepData.sendBonds s 0) fun i => Tube.monetary S Q V i |
| 204 | rw [hu]; abel |
| 205 | unfold enters leaves taggedKernel; rw [he] |
| 206 | calc |
| 207 | _ = prefactor S G β * S.likelihood U k * Real.exp (-β*(m+wholeGap T x U V)) := by rw [mul_add,Real.exp_add]; ring |
| 208 | _ = _ := by rw [← hg,mul_add,Real.exp_add]; ring |
| 209 | |
| 210 | lemma mean_pays (F : Forest S.ratio) (A : Stores S) (x W : ℝ) (U : Config G f) (k : S.Choices) |
| 211 | (V : Config G c) (hm : S.patch.Branches S.kernel G) (hU : SliceSet S F U) |
| 212 | (hx : Seeded A U k V x W) (he : Alive S U k) (h : PointCharge T x W κ) : |
| 213 | κ*(fiery G x S.patch.L)^2*A.shares ≤ meanEnergy A T x U k V := by |
| 214 | rw [← av_const (κ*(fiery G x S.patch.L)^2*A.shares)] |
| 215 | apply av_mono; intro s |
| 216 | have hl : Alive S (pull s 0 U) (choice s k) := by simpa only [Alive,(carry s hm k U).1] using he |
| 217 | have hh := h (turnForest s F) (turnStore s A) (pull s 0 U) (choice s k) (pull s 0 V) |
| 218 | (turn_sliced s F U hU) ((pull_seeded s hm hx).plot hl) |
| 219 | rw [same_price s A] at hh; exact hh |
| 220 | |
| 221 | section envelopes |
| 222 | variable {α : Type*} [MeasurableSpace α] {U : α → Config G f} {V : α → Config G c} |
| 223 | |
| 224 | lemma env_mean {F : Signed → α → ℝ} (h : ∀ i, Envelope (F i)) : |
| 225 | Envelope (fun a => averaged fun s => F s a) := (Envelope.const _).mul (Envelope.sum _ F h) |
| 226 | |
| 227 | lemma pulling_meas {n : Side} (s : Signed) {U : α → Config G n} (h : Measurable U) : |
| 228 | Measurable (fun a => pull s 0 (U a)) := (continuous_pull ..).measurable.comp h |
| 229 | |
| 230 | lemma env_enters (hT : P.Funds S T) (β x : ℝ) (k : S.Choices) (h : Measurable U) (l : Measurable V) : |
| 231 | Envelope (fun a => enters T β x k (V a) (U a)) := by |
| 232 | have hm : Envelope (fun a => wholeGap T x (U a) (V a)) := env_mean |
| 233 | (F:=fun s a => crownGap T x (pull s 0 (U a)) (pull s 0 (V a))) |
| 234 | fun s => env_gap hT x (pulling_meas s h) (pulling_meas s l) |
| 235 | exact (env_tagged β k (funds_branch hT) h l).mul (((Envelope.const _).mul hm).exp) |
| 236 | |
| 237 | lemma env_leaves (hT : P.Funds S T) (A : Stores S) (β x : ℝ) (k : S.Choices) |
| 238 | (h : Measurable U) (l : Measurable V) : |
| 239 | Envelope (fun a => leaves A T β x k (V a) (U a)) := by |
| 240 | have hm : Envelope (fun a => meanRest A T x (U a) k (V a)) := env_mean |
| 241 | (F:=fun s a => unassigned (turnStore s A) T x (pull s 0 (U a)) (choice s k) (pull s 0 (V a))) |
| 242 | fun s => env_unassigned hT x _ (pulling_meas s h) (pulling_meas s l) _ |
| 243 | exact (env_likelihood k (funds_branch hT) h).mul (((Envelope.const _).mul hm).exp) |
| 244 | end envelopes |
| 245 | |
| 246 | section sums |
| 247 | variable (D : Allocation G S x W) (F : Forest S.ratio) (β : ℝ) (V : Config G c) |
| 248 | (g : S.Choices → F.Slice G → ℝ) (A : Stores S) |
| 249 | |
| 250 | lemma turn_parts (hT : P.Funds S T) (hg : ∀ k, Integrable (g k) (F.order G)) : |
| 251 | let L := fun k a => g k a * enters T β x k V (F.drape a) |
| 252 | let R := fun A k a => g k a * leaves A T β x k V (F.drape a) |
| 253 | (∀ k, Integrable (L k) (F.order G) ∧ ∀ A : Stores S, Integrable (R A k) (F.order G)) ∧ |
| 254 | (∑ A : Stores S, D.column A F V L) = tagTotal F L := by |
| 255 | intro L R |
| 256 | have h k : Integrable (L k) (F.order G) ∧ ∀ A : Stores S, Integrable (R A k) (F.order G) := by |
| 257 | constructor |
| 258 | · simpa only [L,mul_comm,smul_eq_mul] using Env.smul_L1 |
| 259 | (env_enters hT β x k F.continuous_drape.measurable (V:=fun _ => V) measurable_const) (hg k) |
| 260 | intro A |
| 261 | simpa only [R,mul_comm,smul_eq_mul] using Env.smul_L1 |
| 262 | (env_leaves hT A β x k F.continuous_drape.measurable (V:=fun _ => V) measurable_const) (hg k) |
| 263 | exact ⟨h,D.partitions (funds_branch hT) _ _ _ (fun k => (h k).1)⟩ |
| 264 | |
| 265 | /-- Payment for every sector with the orientation-averaged cut rows, |
| 266 | not asserting anything yet for full/uncut or reweighting costs. -/ |
| 267 | lemma turn_charge (hT : P.Funds S T) (h : PointCharge T x W κ) (hβ : 0 ≤ β) |
| 268 | (hg : ∀ k, Integrable (g k) (F.order G)) (hz : ∀ k a, 0 ≤ g k a) : |
| 269 | D.column A F V (fun k a => g k a * enters T β x k V (F.drape a)) ≤ earn S G x κ β A.shares * |
| 270 | D.column A F V (fun k a => g k a * leaves A T β x k V (F.drape a)) := by |
| 271 | let hb := funds_branch hT |
| 272 | let m := earn S G x κ β A.shares |
| 273 | let L := fun k a => g k a * enters T β x k V (F.drape a) |
| 274 | let R := fun k a => g k a * leaves A T β x k V (F.drape a) |
| 275 | change (∑ k, ∫ a, D.portion A F V L k a ∂F.order G) ≤ m * ∑ k, ∫ a, D.portion A F V R k a ∂F.order G |
| 276 | rw [Finset.mul_sum]; apply Finset.sum_le_sum |
| 277 | intro k _ |
| 278 | obtain ⟨h1,h2⟩ := (turn_parts D F β V g hT hg).1 k |
| 279 | rw [← integral_const_mul] |
| 280 | apply integral_mono (D.portion_integrable hb A F V L k h1) |
| 281 | ((D.portion_integrable hb A F V R k (h2 A)).const_mul _) |
| 282 | intro a |
| 283 | let U := F.drape a |
| 284 | change D.bill A k U V * (g k a * enters T β x k V U) ≤ m * (D.bill A k U V * (g k a * leaves A T β x k V U)) |
| 285 | by_cases ht : Alive S U k |
| 286 | swap |
| 287 | · simp [enters,taggedKernel,dead ht,leaves] |
| 288 | by_cases he : D.bill A k U V = 0 |
| 289 | · simp [he] |
| 290 | have hl := mean_pays F A x W U k V hb (fun i hi => F.on_tree a ⟨i,hi⟩) (D.actual _ _ _ _ he) ht h |
| 291 | rw [enters_eq hb A] |
| 292 | have hy : prefactor S G β * Real.exp (-β * meanEnergy A T x U k V) ≤ m := by |
| 293 | exact mul_le_mul_of_nonneg_left (Real.exp_monotone (mul_le_mul_of_nonpos_left hl (neg_nonpos.mpr hβ))) (prefactor_pos β).le |
| 294 | simp_rw [mul_left_comm m] |
| 295 | have hu : 0 ≤ leaves A T β x k V U := mul_nonneg (S.likelihood_pos ..) (Real.exp_pos _).le |
| 296 | exact mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_right hy hu) (hz k a)) |
| 297 | (D.nonneg ..) |
| 298 | |
| 299 | end sums |
| 300 | end Oriented |
| 301 | end YM.Push.SectorMeasure |