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.Bid.Fuels |
| 2 | |
| 3 | /-! |
| 4 | # Resale from mixed and grain budgets |
| 5 | |
| 6 | We work per site label in the marker set (both sorts of addresses), not |
| 7 | summing up over the markers. The path reserve in `intake` buys toll only |
| 8 | at rank ≥ 2; the rest has to be paid already. Thereafter shrink the |
| 9 | radius once to pay a common nonfactorial bound in the actual stop order. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | namespace YM.Work.I02 |
| 15 | open Finset RG Lattice Marker Wilson Overlay Mix |
| 16 | open scoped Topology Matrix.Norms.Frobenius BigOperators |
| 17 | |
| 18 | private lemma budget_mono {ι : Type*} {f g : ι → ℝ} {c : ℝ} |
| 19 | (hb : SumBudget g c) (hf : ∀ i, 0 ≤ f i) (h : ∀ i, f i ≤ g i) : SumBudget f c := by |
| 20 | have hs := hb.2.1.of_nonneg_of_le hf h |
| 21 | exact ⟨hf, hs, (hs.tsum_le_tsum h hb.2.1).trans hb.2.2⟩ |
| 22 | |
| 23 | variable {G : Gauge} {n : Side} |
| 24 | |
| 25 | private lemma sup_of_grain (p : BudgetPoint) {S : Support n} {F : Config G n → ℂ} |
| 26 | {x : Site n} {a : ℝ} (ha : 0 ≤ a) (h : grain p S F x a) : |
| 27 | p.supBounds x S F (a*(p.order.factorial:ℝ)) := by |
| 28 | obtain ⟨f, hf, hs, H⟩ := h |
| 29 | refine ⟨mul_nonneg ha (by positivity), fun U hu k hk hv => ?_⟩ |
| 30 | have hz : f k.length / (k.length.factorial:ℝ) ≤ a := by |
| 31 | refine le_trans ?_ hs |
| 32 | apply Finset.single_le_sum (f:=fun i : ℕ => f i / (i.factorial:ℝ)) (a:=k.length) |
| 33 | · intro i _ |
| 34 | exact div_nonneg (hf i) (by positivity) |
| 35 | exact Finset.mem_range.mpr (Nat.lt_succ_of_le hk) |
| 36 | have hh : f k.length ≤ a*(k.length.factorial:ℝ) := (div_le_iff₀ (by positivity)).mp hz |
| 37 | exact (H k hk hv U hu).trans (hh.trans (mul_le_mul_of_nonneg_left |
| 38 | (by exact_mod_cast Nat.factorial_le hk) ha)) |
| 39 | |
| 40 | variable {V : Type} [DecidableEq V] {R : Census V} |
| 41 | |
| 42 | private lemma rank_total {ι : Type*} (m : ι → R.Mode) (f : ι → ℝ) (i : V) |
| 43 | (h0 : SumBudget (fun j => if ranked (m j)=false ∧ i∈(m j).val then f j else 0) 1) |
| 44 | (h1 : SumBudget (fun j => if ranked (m j)=true ∧ i∈(m j).val then f j else 0) 1) : |
| 45 | SumBudget (fun j => if i∈ (m j).val then f j else 0) 2 := by |
| 46 | let g (b : Bool) (j : ι) := if ranked (m j)=b ∧ i∈(m j).val then f j else 0 |
| 47 | change SumBudget (g false) 1 at h0 |
| 48 | change SumBudget (g true) 1 at h1 |
| 49 | rw [show (fun j => if i∈ (m j).val then f j else 0)=(fun j => g false j+g true j) by |
| 50 | funext j; cases hj : ranked (m j) <;> simp [g, hj]] |
| 51 | refine ⟨fun j => add_nonneg (h0.1 j) (h1.1 j), h0.2.1.add h1.2.1, ?_⟩ |
| 52 | rw [Summable.tsum_add h0.2.1 h1.2.1] |
| 53 | exact (add_le_add h0.2.2 h1.2.2).trans_eq (by norm_num) |
| 54 | |
| 55 | -- Spend the factorial on a nonempty root key. Bigger keys don't |
| 56 | -- need a bigger factor; the smaller price suffices for all the others. |
| 57 | -- Used also on forced hits (there we can afford to loosen the bound). |
| 58 | private lemma shrink_budget {ι : Type*} (p : BudgetPoint) {c r D : ℝ} |
| 59 | (m : ι → R.Mode) (S : ι → Support n) (f : ι → ℝ) (i : V) |
| 60 | (hf : ∀ j, 0 ≤ f j) (hr : 0 < r) (hD : 1 ≤ D) |
| 61 | (h : SumBudget (fun j => if i∈ (m j).val then |
| 62 | Poly.toll (fun _ => r) (m j)*loaf p (S j) 0 (f j) else 0) c) : |
| 63 | SumBudget (fun j => if i∈ (m j).val then |
| 64 | Poly.toll (fun _ => r/D) (m j)*p.mass (S j) (f j*D) else 0) c := by |
| 65 | have hP : 0 < D := lt_of_lt_of_le zero_lt_one hD |
| 66 | have hb : 0 < r/D := div_pos hr hP |
| 67 | apply budget_mono h |
| 68 | · intro j |
| 69 | split |
| 70 | · exact mul_nonneg (Poly.worth (fun _ => hb) _).le (mul_nonneg (Real.exp_pos _).le (mul_nonneg (hf j) hP.le)) |
| 71 | exact le_rfl |
| 72 | intro j |
| 73 | split_ifs with hj |
| 74 | · have ht : Poly.toll (fun _ => r/D) (m j)*D ≤ Poly.toll (fun _ => r) (m j) := by |
| 75 | have he : 0 < (m j).val.card := Finset.card_pos.mpr ⟨i,hj⟩ |
| 76 | obtain ⟨l, hl⟩ := Nat.exists_eq_succ_of_ne_zero he.ne' |
| 77 | simp only [Poly.toll, prod_const, hl, pow_succ, mul_assoc, div_mul_cancel₀ _ hP.ne'] |
| 78 | exact mul_le_mul_of_nonneg_right (pow_le_pow_left₀ hb.le (div_le_self hr.le hD) _) hr.le |
| 79 | calc |
| 80 | _ = (Poly.toll (fun _ => r/D) (m j)*D)*loaf p (S j) 0 (f j) := by |
| 81 | rw [BudgetPoint.mass, loaf, add_zero] |
| 82 | ring |
| 83 | _ ≤ _ := mul_le_mul_of_nonneg_right ht (mul_nonneg (Real.exp_pos _).le (hf j)) |
| 84 | exact le_rfl |
| 85 | |
| 86 | variable [Fintype V] {X : Rep G n} {A : Bands R X} |
| 87 | |
| 88 | -- On the mixed keys support can finance the change from provisional |
| 89 | -- rates t. Cost x = 0 is free even if there's no support pin. |
| 90 | private lemma support_pays (hI : Bid.I01) (hs : Stubs.far (A:=A)) |
| 91 | {t w : V → ℝ} {δ : ℝ} (hδ : 0 ≤ δ) (hw : ∀ i, 0 < w i) |
| 92 | (hr : ∀ i, 0<t i ∧ w i ≤ t i*Real.exp (δ*X.p.B/64)) {q : R.Mode} |
| 93 | (hq : ranked q=true) (S : Support n) {x : ℝ} (hx : 0 ≤ x) |
| 94 | (h : 0 < x → ∀ i∈ q.val, A.origins i ∈ S) : |
| 95 | Poly.toll w q*loaf X.p S 0 x ≤ Poly.toll t q*loaf X.p S δ x := by |
| 96 | rcases eq_or_lt_of_le hx with he|he |
| 97 | · simp [← he, loaf] |
| 98 | have hk : 2 ≤ q.val.card := by simpa [ranked] using hq |
| 99 | let B := X.p.B |
| 100 | let d := coverNumber B S |
| 101 | have hB : 8 ≤ B := by |
| 102 | obtain ⟨a, -, b, -, hab⟩ := Finset.one_lt_card.1 (show 1 < q.val.card from hk) |
| 103 | exact (hs a b hab).1 |
| 104 | have hp : B*q.val.card ≤ 64*d := by |
| 105 | apply hI n V A.origins B hB q.val _ hk S |
| 106 | · intro y hy |
| 107 | obtain ⟨i, hi, rfl⟩ := Finset.mem_image.mp hy |
| 108 | exact h he i hi |
| 109 | intro i _ j _ hij |
| 110 | simpa only [sq] using (hs i j hij).2 |
| 111 | have hp' : (B:ℝ)*q.val.card ≤ 64*(d:ℝ) := by exact_mod_cast hp |
| 112 | have heδ : (q.val.card:ℝ)*(δ*B/64) ≤ δ*d := by |
| 113 | have := mul_le_mul_of_nonneg_left hp' hδ |
| 114 | linarith |
| 115 | have ht : Poly.toll w q ≤ Poly.toll t q*Real.exp (δ*d) := by |
| 116 | calc |
| 117 | _ ≤ ∏ i∈q.val, (t i * Real.exp (δ*B/64)) := |
| 118 | prod_le_prod (fun i _ => (hw i).le) (fun i _ => (hr i).2) |
| 119 | _ = Poly.toll t q*Real.exp ((q.val.card:ℝ)*(δ*B/64)) := by |
| 120 | rw [Finset.prod_mul_distrib, Finset.prod_const, Real.exp_nat_mul, Poly.toll] |
| 121 | _ ≤ _ := mul_le_mul_of_nonneg_left (Real.exp_le_exp.mpr heδ) |
| 122 | (Poly.worth (fun i => (hr i).1) q).le |
| 123 | calc |
| 124 | _ ≤ (Poly.toll t q*Real.exp (δ*d))*loaf X.p S 0 x := |
| 125 | mul_le_mul_of_nonneg_right ht (mul_nonneg (Real.exp_pos _).le hx) |
| 126 | _ = _ := by |
| 127 | unfold loaf |
| 128 | rw [add_zero, add_mul, Real.exp_add] |
| 129 | dsimp only [d, B] |
| 130 | ring |
| 131 | |
| 132 | private lemma intake_pays (hI : Bid.I01) (T : Stubs A) (ha : A.Active) |
| 133 | (hs : Stubs.far (A:=A)) {w : V → ℝ} (hw : ∀ i, 0 < w i) |
| 134 | (h : T.intake w) : T.funded w 0 true 1 := by |
| 135 | rcases h with he|⟨t, δ, hδ, hr, hF, hG⟩ |
| 136 | · exact he |
| 137 | constructor |
| 138 | · intro i |
| 139 | apply budget_mono (hF i) |
| 140 | · intro j |
| 141 | split |
| 142 | · exact mul_nonneg (Poly.worth hw _).le (mul_nonneg (Real.exp_pos _).le (T.nonnegative j)) |
| 143 | exact le_rfl |
| 144 | intro j |
| 145 | split_ifs with hj |
| 146 | · exact support_pays hI hs hδ hw hr hj.1 _ (T.nonnegative _) (fun _ => ha.pins j) |
| 147 | exact le_rfl |
| 148 | intro i |
| 149 | apply budget_mono (hG i) |
| 150 | · intro j |
| 151 | split |
| 152 | · exact mul_nonneg (Poly.worth hw _).le (mul_nonneg (Real.exp_pos _).le (T.usable j)) |
| 153 | exact le_rfl |
| 154 | intro j |
| 155 | split_ifs with hj |
| 156 | · exact support_pays hI hs hδ hw hr hj.1 _ (T.usable _) (fun he => ha.retained j.1 j.2 (T.paid j he)) |
| 157 | exact le_rfl |
| 158 | |
| 159 | theorem answer : YM.Bid.I02 := by |
| 160 | intro hI G n V FV DV R X P r hr h |
| 161 | obtain ⟨T, h0, h1⟩ := h.atC |
| 162 | have h2 := intake_pays hI T h.ready h.spaced (fun _ => hr) h1 |
| 163 | let D : ℝ := X.p.order.factorial |
| 164 | have hD : 1 ≤ D := by |
| 165 | dsimp only [D] |
| 166 | exact_mod_cast (show 1 ≤ X.p.order.factorial from Nat.factorial_pos _) |
| 167 | have hP : 0 < D := lt_of_lt_of_le zero_lt_one hD |
| 168 | refine ⟨fun _ => div_pos hr hP, fun i => ?_, zero_lt_one, ?_, ?_⟩ |
| 169 | · exact (mul_le_mul_of_nonneg_right (div_le_self hr.le hD) (norm_nonneg _)).trans (h.units i) |
| 170 | · refine ⟨fun i => T.a i*D, fun i => |
| 171 | ⟨mul_nonneg (T.nonnegative _) hP.le, fun x hx => |
| 172 | sup_of_grain _ (T.nonnegative _) (T.kernels i x hx)⟩, fun i => ?_⟩ |
| 173 | exact shrink_budget X.p P.rays P.support T.a i T.nonnegative hr hD |
| 174 | (rank_total P.rays (T.crown _ 0) i (h0.1 i) (h2.1 i)) |
| 175 | refine ⟨fun q => T.k q*D, fun i j => ⟨mul_nonneg (T.usable _) hP.le, fun x => |
| 176 | (T.supplies i j x).trans (le_mul_of_one_le_right (T.usable _) hD)⟩, fun i => ?_⟩ |
| 177 | rw [mul_one] |
| 178 | exact shrink_budget X.p (fun j => P.marks j.1 j.2) |
| 179 | (fun j => (X.activities.forced j.1).support) T.k i T.usable hr hD |
| 180 | (rank_total _ (T.cord _ 0) i (h0.2 i) (h2.2 i)) |
| 181 | |
| 182 | end YM.Work.I02 |