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.RG08.Packets.Norm |
| 2 | import YM.Pert.Bulk.Keys |
| 3 | |
| 4 | /-! |
| 5 | # Cover substitution with true widths, in both-source and mixed-rank kernels |
| 6 | |
| 7 | `change L K T U`: first (held) root leg travels via T; other legs independently U_i, |
| 8 | possibly depending also on the first input/root (for subtractions). Gives `fullTransmit` |
| 9 | when the tail laws coincide. Use a different predictor on each leg when comparing hierarchies. |
| 10 | Keep distinct output and input width choices (critical when the infinite UV tail moves between |
| 11 | plateaus). Rank one here = two curvature slots total. |
| 12 | -/ |
| 13 | noncomputable section |
| 14 | namespace YM.RG08.Packets |
| 15 | open Filter Finset Pert.Bulk Laurent Lattice |
| 16 | open scoped Topology ENNReal |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | universe v w u |
| 20 | variable {α β : Type} |
| 21 | |
| 22 | abbrev Feed (r : ℕ) (α β : Type) := Fin r → Market α → Kernel α β |
| 23 | variable {r : ℕ} {L : Side} |
| 24 | |
| 25 | def push (K : Packet r α) (T : Kernel α β) (U : Feed r α β) : Packet r β := fun y z=> |
| 26 | ∑'x, T x y * ∑'w,K x w * ∏ i,U i x (w i) (z i) |
| 27 | |
| 28 | def term (K : Packet r α) (T : Kernel α β) (U : Feed r α β) (z : Fin r→Market β) (y : Market β) (x : Market α) (w : Fin r→Market α) := (T x y * K x w) * ∏ i,U i x (w i) (z i) |
| 29 | |
| 30 | theorem push_unify (K : Packet r α) (T : Kernel α β) (V : Market α→Kernel α β) : push K T (fun _=>V) = fullTransmit K T V := rfl |
| 31 | |
| 32 | variable (K : Packet r α) (T : Kernel α β) (U : Feed r α β) {σ τ : ℝ} |
| 33 | |
| 34 | theorem price_one (L : Side) (z y x w) (hs : 0 ≤ σ) : bill (term K T U z y x w) (charge β r σ y z) ≤ |
| 35 | bill (T x y) (r*σ*delta L x.1 y.1) * bill (K x w) 0 * ∏ i,bill (U i x (w i) (z i)) (σ*delta L x.1 (z i).1) := by |
| 36 | exact (bill_mono (x:=term K T U z y x w) le_rfl (expense_sep (L:=L) x y z σ hs)).trans_eq (by rw [term,purchase,bill_products, ← add_zero (r*σ*delta L ..), purchase]; simp) |
| 37 | |
| 38 | def purse (L : Side) (σ τ : ℝ) (q : Fin r → ℝ≥0∞) := |
| 39 | ∀ i x v, (∑'z,bill (U i x v z) (σ*delta L x.1 z.1)) ≤ q i * bill 1 (τ*sep x.1 v.1) |
| 40 | |
| 41 | theorem sends (L : Side) (q : Fin r→ℝ≥0∞) (hU : purse U L σ τ q) (x y w) (hs : 0 ≤ σ) : |
| 42 | (∑'z,bill (term K T U z y x w) (charge β r σ y z)) ≤ |
| 43 | bill (T x y) (r*σ*delta L x.1 y.1) * (∏ i,q i) * bill (K x w) (charge α r τ x w) := by |
| 44 | let b := bill (T x y) (r*σ*delta L x.1 y.1) |
| 45 | calc _ ≤ ∑'z : Fin r → Market β,b * bill (K x w) 0 * ∏ i,bill (U i x (w i) (z i)) (σ*delta L x.1 (z i).1) := ENNReal.tsum_le_tsum fun z=>price_one K T U L z y x w hs |
| 46 | _ ≤ b*bill (K x w) 0 * ∏ i,(q i*bill 1 (τ*sep x.1 (w i).1)) := by |
| 47 | rw [ENNReal.tsum_mul_left, all_Δ (a:=fun i (z:Market β)=>bill (U i x (w i) z) (σ*delta L x.1 z.1))] |
| 48 | apply mul_le_mul_right |
| 49 | exact Finset.prod_le_prod' (fun i _=>hU i x (w i)) |
| 50 | _ = _ := by |
| 51 | rw [prod_mul_distrib, mul_mul_mul_comm b, ← bill_products,prod_const_one,← Finset.mul_sum, ← purchase,mul_one,zero_add]; rfl |
| 52 | |
| 53 | theorem revenue (L : Side) (q : Fin r→ℝ≥0∞) (c p : ℝ≥0∞) |
| 54 | (hU : purse U L σ τ q) (hK : ∀ x, ∑'w,bill (K x w) (charge α r τ x w) ≤ p) |
| 55 | (hs : 0 ≤ σ) (hT : ∀ y, (∑' x,bill (T x y) (r*σ*delta L x.1 y.1)) ≤ c) (y) : |
| 56 | (∑' z, ∑' a : Market α × (Fin r→Market α), bill (term K T U z y a.1 a.2) (charge β r σ y z)) ≤ (c*(∏ i,q i))*p := by |
| 57 | let e (z) (x w):=bill (term K T U z y x w) (charge β r σ y z) |
| 58 | let b (x : Market α) := bill (T x y) (r*σ*delta L x.1 y.1) |
| 59 | change (∑' z,∑' a: Market α × _,e z a.1 a.2) ≤ _ |
| 60 | calc |
| 61 | _ = ∑'x:Market α, ∑'w:Fin r→Market α, ∑'z,e z x w := by |
| 62 | simp_rw [ENNReal.tsum_comm (f:=fun z (a : Market α × (Fin r → Market α))=>e z a.1 a.2), ENNReal.tsum_prod (f:=fun x w=> ∑'z,e z x w)] |
| 63 | _ ≤ (∑'x:Market α,b x)*(∏ i,q i)*p := by |
| 64 | rw [← ENNReal.tsum_mul_right, ← ENNReal.tsum_mul_right] |
| 65 | refine ENNReal.tsum_le_tsum fun x=>?_ |
| 66 | exact (ENNReal.tsum_le_tsum fun w=>sends K T U L q hU x y w hs).trans (by rw [ENNReal.tsum_mul_left]; gcongr; exact hK _) |
| 67 | _ ≤ _ := by gcongr; exact hT y |
| 68 | |
| 69 | theorem push_tsum (y z) : push K T U y z = ∑'x,∑'w,term K T U z y x w := by |
| 70 | simp_rw [term,push,mul_assoc, tsum_mul_left] |
| 71 | |
| 72 | theorem push_est (L : Side) (q : Fin r→ℝ) (c p : ℝ) |
| 73 | (hU : purse U L σ τ fun i=> ENNReal.ofReal (q i)) (hK : Folded τ K p) |
| 74 | (hs : 0 ≤ σ) (hT : ∀ y, (∑' x,bill (T x y) (r*σ*delta L x.1 y.1)) ≤ ENNReal.ofReal c) (hc : 0 ≤ c) (hq : ∀ i,0 ≤ q i) : |
| 75 | Folded σ (push K T U) (c*(∏ i,q i)*p) := by |
| 76 | intro y |
| 77 | let e (z) (x w):=bill (term K T U z y x w) (charge β r σ y z) |
| 78 | calc |
| 79 | _ ≤ ∑' z,∑' a: Market α × (Fin r→Market α),e z a.1 a.2 := ENNReal.tsum_le_tsum fun z=> by |
| 80 | rw [ENNReal.tsum_prod (f:=fun x w=> e z x w),push_tsum] |
| 81 | exact (bill_tsum ..).trans (ENNReal.tsum_le_tsum fun x=> bill_tsum ..) |
| 82 | _ ≤ (ENNReal.ofReal c * ∏ i,ENNReal.ofReal (q i)) * ENNReal.ofReal p := revenue K T U L _ _ _ hU hK hs hT y |
| 83 | _ = _ := by |
| 84 | have H (s : Finset (Fin r)) : ENNReal.ofReal (∏ i∈s,q i) = ∏ i∈s,ENNReal.ofReal (q i) := by |
| 85 | induction s using Finset.induction_on with |
| 86 | | empty => simp |
| 87 | | insert a s ha ih => rw [prod_insert ha,prod_insert ha,ENNReal.ofReal_mul (hq _),ih] |
| 88 | rw [ENNReal.ofReal_mul (mul_nonneg hc (prod_nonneg fun i _=>hq i)), ENNReal.ofReal_mul hc, H] |
| 89 | |
| 90 | theorem pushes (L : Side) (q : Fin r→ℝ) (c p : ℝ) |
| 91 | (hU : purse U L σ τ fun i=> ENNReal.ofReal (q i)) (hK : Folded τ K p) |
| 92 | (hs : 0 ≤ σ) (hT : ∀ y, (∑' x,bill (T x y) (r*σ*delta L x.1 y.1)) ≤ ENNReal.ofReal c) (y z) : |
| 93 | Summable (fun a: Market α × (Fin r→Market α)=>term K T U z y a.1 a.2) := by |
| 94 | apply summable_from_receipt (fun _=>mul_nonneg hs (expense_nonneg y z)) |
| 95 | have he := revenue K T U L (fun i=>ENNReal.ofReal (q i)) (ENNReal.ofReal c) (ENNReal.ofReal p) hU hK hs hT y |
| 96 | exact ne_top_of_le_ne_top (ENNReal.mul_ne_top (ENNReal.mul_ne_top (show ENNReal.ofReal c ≠ ⊤ by simp) (by |
| 97 | have ht (s : Finset (Fin r)) : (∏ i∈s, ENNReal.ofReal (q i)) ≠ ⊤ := by |
| 98 | induction s using Finset.induction_on with |
| 99 | | empty => simp |
| 100 | | insert a s ha ih => rw [prod_insert ha]; exact ENNReal.mul_ne_top (by simp) ih |
| 101 | exact ht Finset.univ)) (show ENNReal.ofReal p ≠ ⊤ by simp)) ((ENNReal.le_tsum (f:=fun z=> ∑' a: Market α × (Fin r→Market α),bill (term K T U z y a.1 a.2) (charge _ _ σ y z)) z).trans he) |
| 102 | |
| 103 | theorem push_full (y z) (h : Summable (fun a: Market α × (Fin r→Market α)=>term K T U z y a.1 a.2)) : |
| 104 | push K T U y z= ∑' a : Market α × (Fin r→Market α),term K T U z y a.1 a.2 := by |
| 105 | rw [push_tsum,h.tsum_prod] |
| 106 | |
| 107 | end YM.RG08.Packets |