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.RELAY_DIFFERENCE.Estimate |
| 2 | import YM.Push.RELAY_DIFFERENCE.Subtraction |
| 3 | import YM.Work.G09 |
| 4 | |
| 5 | |
| 6 | /-! |
| 7 | # A cutoff match and the price of its signed singleton |
| 8 | |
| 9 | Accountable prerequisites for . Use with an equation cylinder, |
| 10 | the literal same weight-w primary, or the heighten comparison. All use |
| 11 | `Solo` in their **comparison weight** e. Proof of this part will need |
| 12 | one-source producers: see Encoded & LocalBounds (includes the additional |
| 13 | canonical/error majorants on the SIGNED step; DON'T try to deduce from |
| 14 | the separate materialized representations via triangle after running). |
| 15 | No assumption of a rent or moment estimate from that producer. Gives |
| 16 | the match working row, its dollar and the discounted envelopes to spend |
| 17 | in the multi-source problem. |
| 18 | -/ |
| 19 | set_option autoImplicit false |
| 20 | noncomputable section |
| 21 | namespace YM.Push.RelayDifference |
| 22 | open Function Filter MeasureTheory Extraction Extraction.Lease Wilson RG Lattice Cells Marker Overlay Bid Source |
| 23 | open scoped Topology Matrix.Norms.Frobenius ContDiff BigOperators |
| 24 | variable {G : Gauge} {C : Family G} {N p m k e : ℕ} {W : Worth} {f : Extraction.Order} {F : Trial C} |
| 25 | |
| 26 | def weight (C : Family G) (e m : ℕ) : ℂ := (C.S.a m : ℂ)^e |
| 27 | |
| 28 | /-- Origin source propagating on C at comparison weight e. Include N,p in |
| 29 | every receipt (using `(N,p)` also for the envelopes). No meaningful proofs |
| 30 | required at skipped cutoffs by definition. `deltaFee` is only used below N. |
| 31 | -/ |
| 32 | structure Solo (C : Family G) (F : Trial C) (e : ℕ) where |
| 33 | source (N p i : ℕ) : Coefficient (C.labels.level e) (C.side i p) |
| 34 | ticket (N p i : ℕ) : ℝ |
| 35 | deltaFee (N p i : ℕ) : ℝ |
| 36 | total : Cutoffs → ℝ |
| 37 | |
| 38 | namespace Solo |
| 39 | variable (S : Solo C F e) |
| 40 | |
| 41 | def row : Rowe C e := fun i => (S.source i.1 i.2 (C.ref e)).x |
| 42 | def top (i : Cutoffs) := (C.factory e i.1 i.2).terminal.symm (S.row i) |
| 43 | def column (N p i : ℕ) := (C.factory e N p).entries i (S.top (N,p)) |
| 44 | def diff : Trial C := upper C S.row - F |
| 45 | |
| 46 | def uniform (i : Cutoffs) := 4*(1+(C.path.levels.params i.1).columns)*S.total i |
| 47 | |
| 48 | def primaryBill (N p i : ℕ) := (C.path.levels.params i).columns * (C.labels.level e).coeffSize |
| 49 | ((C.labels.level e).core (S.column N p i).x) |
| 50 | def duet (N p : ℕ) : Duet C.path (C.labels.level e) N p (C.ref e) N where |
| 51 | voice i := combine (S.column N p i) (S.source N p i) |
| 52 | atPoint _ := 0 |
| 53 | cost i := if i=N then S.primaryBill N p i+S.ticket N p i else S.deltaFee N p i |
| 54 | |
| 55 | /-- Supplies normalized-source step identities *at density level* on full |
| 56 | configuration spaces including all tags in push. All bounds on true reps, |
| 57 | not projection size at a test measure. Budgets needed eventual N. -/ |
| 58 | structure Encoded (N p : ℕ) : Prop where |
| 59 | active : C.ref e ≤ N |
| 60 | valid i : C.ref e ≤ i → i ≤ N → (S.source N p i).Format 0 C.params (C.path.rep N p i) |
| 61 | cap i : C.ref e ≤ i → i ≤ N → (S.source N p i).remBound 0 (C.path.rep N p i) |
| 62 | (Real.sqrt (C.path.levels.clock.forcedAllowance i)) (S.ticket N p i) |
| 63 | put (U) : (S.source N p N).density 0 (C.localSection e) (C.path.rep N p N) U = |
| 64 | weight C e N * (bare (C.beta N p) U : ℂ) * F N p 0 U |
| 65 | step (i) : C.ref e ≤ i → i < N → |
| 66 | (S.source N p i).density 0 (C.localSection e) (C.path.rep N p i) = |
| 67 | ((C.S.block i).val : ℂ)^e • (C.path.levels.clock.op i p).push (C.path.β N p (i+1)) |
| 68 | ((S.source N p (i+1)).density 0 (C.localSection e) (C.path.rep N p (i+1))) |
| 69 | positive : 0 < S.total (N,p) |
| 70 | afford : S.ticket N p N + (C.labels.level e).coeffSize (S.source N p N).x ≤ S.total (N,p) |
| 71 | |
| 72 | /-- One-step PSREC-type majorants (both parts of `direction`). |
| 73 | |
| 74 | On the **chosen** |
| 75 | source (incl column S.top), their literal signed budgets `deltaFee`/initial |
| 76 | fee, not existence of a matched hierarchy or its downward attenuation. |
| 77 | |
| 78 | `deltaFee` may vary; `income` bounds actual signed components, not a norm |
| 79 | of a chosen unlabelled rewrite. |
| 80 | |
| 81 | Need fund even transitions. -/ |
| 82 | structure LocalBounds (W : Worth) (N p : ℕ) : Prop where |
| 83 | income (i : ℕ) : C.ref e ≤ i → i < N → ((S.duet N p).voice i).remBound 0 (C.path.rep N p i) |
| 84 | (Real.sqrt (C.path.levels.clock.forcedAllowance i)) (S.deltaFee N p i) |
| 85 | one (i : ℕ) : C.ref e ≤ i → i < N → let P := S.duet N p; direction C.path W i (C.labels.level e) |
| 86 | (P.voice i).x (P.voice (i+1)).x (P.cost i) (P.cost (i+1)) |
| 87 | |
| 88 | end Solo |
| 89 | |
| 90 | private lemma cap_price {n : Side} {H : Labels.Frame G e} {P : Coefficient H n} {κ p : ℝ} {s : Site n} {B : Rep G n} |
| 91 | (h : P.remBound s B κ p) : 0 ≤ p := by |
| 92 | obtain ⟨a,b,ha,hb,he,-⟩ := h; exact (add_nonneg ha hb).trans he |
| 93 | |
| 94 | section Norm |
| 95 | variable (H : Labels.Frame G e) (x y : H.Coeff) |
| 96 | lemma plus_coords : H.coeffSize (x+y) ≤ H.coeffSize x + H.coeffSize y := by |
| 97 | unfold Labels.Frame.coeffSize |
| 98 | rw [← Finset.sum_add_distrib] |
| 99 | exact Finset.sum_le_sum fun _ _ => norm_add_le .. |
| 100 | |
| 101 | lemma core_price : H.coeffSize (H.core x) ≤ H.coeffSize x := by |
| 102 | unfold Labels.Frame.coeffSize |
| 103 | refine Finset.sum_le_sum fun i _ => ?_ |
| 104 | change ‖(Function.update x 0 0) i‖ ≤ _ |
| 105 | by_cases h : i=0 <;> simp [h] |
| 106 | |
| 107 | lemma coeff_pos : 0 ≤ H.coeffSize x := Finset.sum_nonneg (fun _ _ => norm_nonneg _) |
| 108 | lemma norm_cost : ‖x‖ ≤ H.coeffSize x := by |
| 109 | refine (pi_norm_le_iff_of_nonneg (coeff_pos H x)).mpr fun i => ?_ |
| 110 | exact Finset.single_le_sum (fun _ _ => norm_nonneg _) (Finset.mem_univ i) |
| 111 | end Norm |
| 112 | |
| 113 | namespace Solo |
| 114 | variable {S : Solo C F e} (h : S.Encoded N p) (hc : C.Makes) |
| 115 | |
| 116 | include hc h in |
| 117 | lemma Encoded.both {i : ℕ} (hr : C.ref e ≤ i) (hi : i ≤ N) : |
| 118 | let H := C.path.rep N p i |
| 119 | (S.column N p i).Format 0 C.params H ∧ |
| 120 | (S.column N p i).remBound 0 H (Real.sqrt (C.path.levels.clock.forcedAllowance i)) (S.primaryBill N p i) := by |
| 121 | have H := hc.calibrated e N p h.active |
| 122 | exact ⟨H.format i hr hi (S.top (N,p)),H.cap i hr hi _⟩ |
| 123 | |
| 124 | include hc h in |
| 125 | lemma Encoded.sub {i : ℕ} (hr : C.ref e ≤ i) (hi : i ≤ N) : |
| 126 | let R := C.path.rep N p i |
| 127 | let X := C.localSection e |
| 128 | ((S.duet N p).voice i).density 0 X R = |
| 129 | (S.column N p i).density 0 X R - (S.source N p i).density 0 X R := by |
| 130 | obtain ⟨ha,hb⟩ := h.both hc hr hi |
| 131 | exact combo_density ha (h.valid i hr hi) hb (h.cap i hr hi) (hc.wilson.represents _ p _ hi).good _ |
| 132 | |
| 133 | include hc h in |
| 134 | /-- The genuine discrepancy one-source read in exactly weight e. -/ |
| 135 | theorem Encoded.difference (U) : |
| 136 | ((S.duet N p).voice N).density 0 (C.localSection e) (C.path.rep N p N) U = |
| 137 | weight C e N * (bare (C.beta N p) U : ℂ) * S.diff N p 0 U := by |
| 138 | rw [h.sub hc h.active le_rfl, Pi.sub_apply] |
| 139 | rw [Solo.column, (hc.calibrated e N p h.active).encode, h.put U, (hc.wilson.starts N p).2] |
| 140 | change weight C e N * _ * _ - _ = weight C e N * _ * (upper C S.row N p 0 U - _) |
| 141 | rw [mul_sub]; rfl |
| 142 | |
| 143 | private lemma pay (hp : S.Encoded N p) : |
| 144 | (S.duet N p).cost N ≤ S.total (N,p)+(C.path.levels.params N).columns * (S.total (N,p) + |
| 145 | (C.labels.level e).coeffSize ((S.duet N p).voice N).x) := by |
| 146 | let L := C.labels.level e |
| 147 | let x := (S.column N p N).x |
| 148 | let y := (S.source N p N).x |
| 149 | let p' := (C.path.levels.params N).columns |
| 150 | have ha : 0 ≤ p' := zero_le_one.trans (C.path.levels.params _).columns_ge |
| 151 | have ht : S.ticket N p N + L.coeffSize y ≤ S.total (N,p) := hp.afford |
| 152 | have hu := cap_price (hp.cap N hp.active le_rfl) |
| 153 | have hc : L.coeffSize (L.core x) ≤ S.total (N,p) + L.coeffSize (x-y) := by |
| 154 | have hv := plus_coords L y (x-y) |
| 155 | rw [add_sub_cancel ..] at hv |
| 156 | exact (core_price _ _).trans (hv.trans (add_le_add_left ((le_add_of_nonneg_left hu).trans ht) _)) |
| 157 | change (S.duet N p).cost N ≤ _ + p' * (_ + L.coeffSize (x-y)) |
| 158 | rw [show (S.duet N p).cost N=p'*L.coeffSize (L.core x)+S.ticket N p N by simp [duet,primaryBill,x,p',L]] |
| 159 | linarith only [ht, coeff_pos L y, mul_le_mul_of_nonneg_left hc ha] |
| 160 | |
| 161 | private theorem push_minus (C : Family G) {X Y : Config G (C.side (m+1) p) → ℂ} |
| 162 | (hX : Integrable X (prior G _)) (hY : Integrable Y (prior G _)) (β : ℝ) : |
| 163 | let s := C.path.levels.clock.op m p |
| 164 | s.push β (X-Y) = s.push β X - s.push β Y := by |
| 165 | let H := C.path.levels.transition_mass m p β |
| 166 | funext V |
| 167 | simp only [Pi.sub_apply,StepData.push,smul_sub] |
| 168 | exact integral_sub (StepData.push_slice H V X hX) (StepData.push_slice H V Y hY) |
| 169 | |
| 170 | include hc h in |
| 171 | lemma Encoded.ships (i : ℕ) (hi : C.ref e ≤ i) (ht : i < N) : |
| 172 | ((S.duet N p).voice i).density 0 (C.localSection e) (C.path.rep N p i) = |
| 173 | ((C.S.block i).val : ℂ)^e • (C.path.levels.clock.op i p).push (C.path.β N p (i+1)) |
| 174 | (((S.duet N p).voice (i+1)).density 0 (C.localSection e) (C.path.rep N p (i+1))) := by |
| 175 | have he := hc.calibrated e N p h.active |
| 176 | let H := C.path.rep N p (i+1) |
| 177 | let X := (S.column N p (i+1)).density 0 (C.localSection e) H |
| 178 | let Y := (S.source N p (i+1)).density 0 (C.localSection e) H |
| 179 | have hb : C.ref e ≤ i+1 := hi.trans i.le_succ |
| 180 | have hX : Integrable X (prior G _) := Source.TransferData.density_int hc.wilson he _ _ hb ht |
| 181 | obtain ⟨hM,A,hA⟩ := Coefficient.envelope (C.localSection e) (hc.wilson.represents N p _ ht).good |
| 182 | (h.cap (i+1) hb ht) (h.valid (i+1) hb ht) |
| 183 | have hY : Integrable Y (prior G _) := Integrable.of_bound hM.aestronglyMeasurable A (Eventually.of_forall hA) |
| 184 | -- expose BOTH zero anchors (not terms in Prop-based Format) |
| 185 | change ((S.duet N p).voice i).density 0 _ _ = _ • (C.path.levels.clock.op i p).push _ |
| 186 | (((S.duet N p).voice (i+1)).density 0 _ _) |
| 187 | rw [h.sub hc hi ht.le, h.sub hc hb ht, show (S.column N p i).density 0 _ _ = |
| 188 | ((C.S.block i).val:ℂ)^e • (C.path.levels.clock.op i p).push _ X from he.unnormalized i hi ht _, h.step i hi ht] |
| 189 | rw [push_minus C hX hY, smul_sub] |
| 190 | |
| 191 | include hc h in |
| 192 | lemma Encoded.woke (hs : S.LocalBounds W N p) : |
| 193 | (S.duet N p).Woke C.params W (C.localSection e) (S.total (N,p)) := by |
| 194 | refine ⟨⟨h.active,le_rfl⟩,?_,?_, hs.one, h.ships hc,?_,pay h⟩ |
| 195 | · intro i hi ht |
| 196 | have hp := h.both hc hi ht |
| 197 | refine ⟨combo_format hp.1 (h.valid i hi ht),?_⟩ |
| 198 | rcases eq_or_lt_of_le ht with hN|hk |
| 199 | · subst i |
| 200 | have hw := combo_cap hp.1 (h.valid N hi ht) hp.2 (h.cap N hi ht) |
| 201 | rw [show (S.duet N p).cost N=S.primaryBill N p N+S.ticket N p N by simp [duet]] |
| 202 | exact hw |
| 203 | rw [show (S.duet N p).cost i=S.deltaFee N p i by simp only [duet,if_neg hk.ne]] |
| 204 | exact hs.income i hi hk |
| 205 | · -- ancestor zero |
| 206 | intro i hi ht |
| 207 | let t := (C.path.levels.clock.op i p).ratio |
| 208 | change 0 = t.parent 0 |
| 209 | have he := t.embed_parent 0; simpa only [show t.embed 0=0 from (t.root.map_zero)] using he.symm |
| 210 | |
| 211 | -- pairing |
| 212 | change (S.column N p (C.ref e)).x - S.row (N,p) = 0 |
| 213 | rw [show (S.column N p (C.ref e)).x=_ from C.normalized hc h.active _, sub_self] |
| 214 | |
| 215 | include hc h in |
| 216 | /-- Discounted estimate for genuine signed components *including unit*. -/ |
| 217 | theorem Encoded.coins (hs : S.LocalBounds W N p) (hx : roomCost C.path.levels W) (hk : Bank W C.path.levels) |
| 218 | (i : ℕ) (hr : C.ref e ≤ i) (ht : i ≤ N) : |
| 219 | let P := S.duet N p |
| 220 | P.cost i+(C.labels.level e).coeffSize (P.voice i).x ≤ escrow C N i (S.uniform (N,p)) := by |
| 221 | have he := Work.G09.answer W C.path hx hk N p e (C.ref e) N _ _ _ (S.duet N p) _ |
| 222 | h.positive.le (h.woke hc hs) i hr ht |
| 223 | dsimp only |
| 224 | unfold escrow; apply (le_div_iff₀ (show 0 < gainChart _ _ _ from Real.exp_pos _)).mpr |
| 225 | rw [mul_comm]; exact he |
| 226 | |
| 227 | include hc h in |
| 228 | theorem Encoded.top_price (hs : S.LocalBounds W N p) (hx : roomCost C.path.levels W) (hk : Bank W C.path.levels) : |
| 229 | (C.labels.level e).coeffSize (S.top (N,p)) ≤ S.uniform (N,p) + S.total (N,p) := by |
| 230 | let L := C.labels.level e |
| 231 | let P := S.duet N p |
| 232 | let z := S.top (N,p) |
| 233 | let x := (S.source N p N).x |
| 234 | have he : L.coeffSize (P.voice N).x + L.coeffSize x ≤ S.uniform (N,p) + S.total (N,p) := by |
| 235 | have ht : S.ticket N p N + L.coeffSize x ≤ S.total (N,p) := h.afford |
| 236 | have hw := cap_price (h.cap N h.active le_rfl) |
| 237 | have hv : 0 ≤ P.cost N := cap_price ((h.woke hc hs).origin N h.active le_rfl).2 |
| 238 | have hp : P.cost N + L.coeffSize (P.voice N).x ≤ S.uniform (N,p) := by |
| 239 | simpa only [escrow, gainChart,sub_self,mul_zero,Real.exp_zero,div_one] using |
| 240 | h.coins hc hs hx hk N h.active le_rfl |
| 241 | linarith only [ht,hw,hv,hp] |
| 242 | have ht := (plus_coords L (P.voice N).x x).trans he |
| 243 | refine (le_of_eq ?_).trans ht |
| 244 | change L.coeffSize z = _ |
| 245 | rw [show (P.voice N).x=z-x from congrArg (· - x) ((hc.calibrated e N p h.active).bare_coord _),sub_add_cancel] |
| 246 | |
| 247 | variable (S : Solo C F e) |
| 248 | |
| 249 | |
| 250 | |
| 251 | structure Priced (W : Worth) (f : Extraction.Order) : Prop where |
| 252 | initial : Slow C f S.total |
| 253 | every : ∀ᶠ i in f.fuse, S.Encoded i.1 i.2 ∧ S.LocalBounds W i.1 i.2 |
| 254 | |
| 255 | variable {S} |
| 256 | |
| 257 | lemma uniform_slow (h : Slow C f S.total) : Slow C f S.uniform := |
| 258 | ((Slow.const (C:=C) (f:=f) (4:ℝ)).mul ((Slow.const (C:=C) (f:=f) (1:ℝ)).add (columns_slow (C:=C)))).mul h |
| 259 | |
| 260 | lemma uniform_pos (h : S.Encoded N p) : 0 < S.uniform (N,p) := by |
| 261 | unfold uniform |
| 262 | have he := (C.path.levels.params N).columns_ge |
| 263 | have hz := h.positive; dsimp; positivity |
| 264 | |
| 265 | include hc in |
| 266 | /-- No cost assumption on the MATCH reference coordinates. Charge the |
| 267 | true terminal-inverse size. -/ |
| 268 | theorem Priced.cost (p : S.Priced W f) (hx : roomCost C.path.levels W) (hk : Bank W C.path.levels) : dollar C f S.row := by |
| 269 | rw [dollar_slow] |
| 270 | apply ((uniform_slow p.initial).add p.initial).reduce |
| 271 | filter_upwards [p.every] with i ⟨h,hs⟩ |
| 272 | exact (norm_cost _ (S.top i)).trans ((h.top_price hc hs hx hk).trans (Real.le_norm_self _)) |
| 273 | end Solo |
| 274 | end YM.Push.RelayDifference |