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.Craft |
| 2 | import YM.Corona.Spend |
| 3 | import YM.Laurent.Art |
| 4 | import YM.Next.BOUNDARY.Heights |
| 5 | import YM.Next.EXTRACTION.Relay |
| 6 | import YM.Next.FOUNDATIONS.SU2 |
| 7 | import YM.Work.A15 |
| 8 | import YM.Work.I01 |
| 9 | |
| 10 | /-! |
| 11 | # Connected-cover reserves in a many-marker budget (E eqs.1shape, JMmq, JshapeM) |
| 12 | |
| 13 | On the actual four-dimensional native tori, at any volume. Address types need |
| 14 | not even be countable. Marker sets are keyed by **name**, not by site. Prices |
| 15 | are nonnegative sums (with summability), not analytic continuations of signed |
| 16 | sums. No claim of any source trajectory / exact gas identity here. |
| 17 | -/ |
| 18 | |
| 19 | set_option autoImplicit false |
| 20 | noncomputable section |
| 21 | namespace YM.Extra.Multi |
| 22 | open Filter Function Lattice RG Wilson Marker Finset |
| 23 | open scoped Topology BigOperators Matrix.Norms.Frobenius Classical |
| 24 | |
| 25 | namespace Budget |
| 26 | variable {ι α : Type*} {f g : ι → ℝ} {b c : ℝ} |
| 27 | |
| 28 | theorem certify (hf : ∀ i, 0 ≤ f i) (h : ∀ t : Finset ι, ∑ i∈t, f i ≤ b) : SumBudget f b := |
| 29 | let hs := summable_of_sum_le hf h |
| 30 | ⟨hf,hs,hs.tsum_le_of_sum_le h⟩ |
| 31 | |
| 32 | theorem cap (h : SumBudget f b) (s : Finset ι) : ∑ i∈s, f i ≤ b := |
| 33 | (h.2.1.sum_le_tsum s fun i _ => h.1 i).trans h.2.2 |
| 34 | |
| 35 | theorem mono (h : SumBudget f b) (hg : ∀ i, 0 ≤ g i) (he : ∀ i, g i ≤ f i) (hb : b≤c) : SumBudget g c := |
| 36 | certify hg fun t => ((sum_le_sum fun i _ => he i).trans (cap h t)).trans hb |
| 37 | |
| 38 | theorem scale (h : SumBudget f b) (hc : 0≤c) : SumBudget (fun i => c*f i) (c*b) := |
| 39 | certify (fun i => mul_nonneg hc (h.1 i)) fun s => by |
| 40 | rw [← mul_sum]; exact mul_le_mul_of_nonneg_left (cap h s) hc |
| 41 | |
| 42 | theorem plus (h : SumBudget f b) (h' : SumBudget g c) : SumBudget (fun i => f i + g i) (b+c) := |
| 43 | certify (fun i => add_nonneg (h.1 i) (h'.1 i)) fun s => by |
| 44 | rw [sum_add_distrib]; exact add_le_add (cap h s) (cap h' s) |
| 45 | |
| 46 | theorem pull_le {g : α → ℝ} {q : ι → α} {p : ι → Prop} (h : SumBudget g b) |
| 47 | (hf : ∀ i, 0 ≤ f i) (hs : ∀ i, f i ≠ 0 → p i) (hh : Set.InjOn q {i | p i}) |
| 48 | (he : ∀ i, p i → f i ≤ g (q i)) : SumBudget f b := by |
| 49 | apply certify hf; intro t |
| 50 | let T := t.filter p |
| 51 | calc |
| 52 | _ = ∑ i∈T, f i := Eq.symm <| sum_subset (filter_subset ..) fun i hi hx => by |
| 53 | by_contra H; exact hx (mem_filter.mpr ⟨hi,hs i H⟩) |
| 54 | _ ≤ ∑ i∈T, g (q i) := sum_le_sum fun i hi => he i (mem_filter.mp hi).2 |
| 55 | _ = ∑ j∈T.image q, g j := (sum_image (fun _ hj _ hk h => hh (mem_filter.mp hj).2 (mem_filter.mp hk).2 h)).symm |
| 56 | _ ≤ _ := cap h _ |
| 57 | |
| 58 | theorem zero (hb : 0 ≤ b) : SumBudget (fun _ : ι => (0 : ℝ)) b := by |
| 59 | apply certify (by simp); simpa |
| 60 | |
| 61 | end Budget |
| 62 | |
| 63 | variable {V ι : Type*} {m n : Side} |
| 64 | |
| 65 | /-- Marker-rooted cover budget. `f` excludes the displayed exponential, but |
| 66 | can already include all marker tolls and tests on the name set of an address. -/ |
| 67 | def Rooted (mode : ι → Finset V) (X : ι → Support n) (M : ℕ) (a : ℝ) (f : ι → ℝ) (c : ℝ) := |
| 68 | ∀ s : V, SumBudget (fun i => if s ∈ mode i then Real.exp (a*coverNumber M (X i)) * f i else 0) c |
| 69 | |
| 70 | namespace Rooted |
| 71 | variable {M : ℕ} {a b c d : ℝ} {mode : ι → Finset V} {X : ι → Support n} {f g : ι → ℝ} |
| 72 | |
| 73 | theorem cap (h : Rooted mode X M a f b) (v : V) (s : Finset ι) (hs : ∀ i∈s, v∈mode i) : |
| 74 | ∑ i∈s, Real.exp (a*coverNumber M (X i)) * f i ≤ b := by |
| 75 | refine Eq.trans_le ?_ (Budget.cap (h v) s) |
| 76 | exact sum_congr rfl (fun i hi => (if_pos (hs i hi)).symm) |
| 77 | |
| 78 | theorem mono (h : Rooted mode X M a f b) (hg : ∀ i, 0 ≤ g i) (he : ∀ i, g i ≤ f i) (hd : d ≤ a) |
| 79 | (hc : b ≤ c) : Rooted mode X M d g c := by |
| 80 | intro s; refine Budget.mono (h s) (fun i => ?_) (fun i => ?_) hc |
| 81 | · split <;> first | exact mul_nonneg (Real.exp_pos _).le (hg i) | exact le_rfl |
| 82 | split_ifs; rotate_left |
| 83 | · exact le_rfl |
| 84 | exact mul_le_mul (Real.exp_le_exp.mpr (by gcongr)) (he i) (hg i) (Real.exp_pos _).le |
| 85 | |
| 86 | theorem add (h : Rooted mode X M a f b) (hg : Rooted mode X M a g c) : Rooted mode X M a (fun i => f i+g i) (b+c) := by |
| 87 | intro s |
| 88 | convert Budget.plus (h s) (hg s) using 1 |
| 89 | funext i; split_ifs <;> ring |
| 90 | |
| 91 | end Rooted |
| 92 | |
| 93 | /-- At a given projection count all simultaneous markers, including |
| 94 | alternative names and zero inputs. Use separately at each level in use. -/ |
| 95 | def Occupancy [Fintype V] (o : V → Site n) (μ : ℕ) := ∀ y : Site n, (univ.filter fun i => o i = y).card ≤ μ |
| 96 | |
| 97 | namespace Occupancy |
| 98 | variable [Fintype V] {o : V → Site n} {μ : ℕ} |
| 99 | |
| 100 | theorem card (h : Occupancy o μ) (s : Finset V) : s.card ≤ (s.image o).card * μ := by |
| 101 | classical |
| 102 | calc |
| 103 | _ = ∑ y ∈ s.image o, (s.filter fun i => o i = y).card := by |
| 104 | simp only [card_filter, sum_comm (s := s.image o)] |
| 105 | rw [show s.card = ∑ _ ∈ s, (1:ℕ) by simp]; refine sum_congr rfl fun i hi => ?_ |
| 106 | simp [show ∃ a∈s, o a=o i from ⟨i,hi,rfl⟩] |
| 107 | _ ≤ ∑ _ ∈ s.image o, μ := sum_le_sum fun i _ => (card_le_card (filter_subset_filter _ (subset_univ _))).trans (h i) |
| 108 | _ = _ := by simp |
| 109 | |
| 110 | theorem total (h : Occupancy o μ) : Fintype.card V ≤ Fintype.card (Site n)*μ := by |
| 111 | simpa only [card_univ] using (h.card univ).trans (Nat.mul_le_mul_right _ (card_le_card (subset_univ _))) |
| 112 | |
| 113 | theorem of_injective (h : Function.Injective o) : Occupancy o 1 := by |
| 114 | intro y; apply card_le_one.mpr; intro i hi j hj |
| 115 | exact h ((mem_filter.mp hi).2.trans (mem_filter.mp hj).2.symm) |
| 116 | |
| 117 | theorem weighted (h : Occupancy o μ) (f : Site n → ℝ) (hf : ∀ y, 0 ≤ f y) : |
| 118 | ∑ i, f (o i) ≤ μ * ∑ y, f y := by |
| 119 | calc |
| 120 | _ = ∑ i, ∑ y : Site n, if o i = y then f y else 0 := by simp |
| 121 | _ ≤ ∑ y, μ * f y := by |
| 122 | rw [sum_comm] |
| 123 | refine sum_le_sum fun y _ => ?_ |
| 124 | rw [← sum_filter]; simpa using mul_le_mul_of_nonneg_right (Nat.cast_le (α:=ℝ).mpr (h y)) (hf y) |
| 125 | _ = _ := by rw [mul_sum] |
| 126 | |
| 127 | end Occupancy |
| 128 | |
| 129 | section Hit |
| 130 | variable [Fintype V] {M : ℕ} {o : V → Site n} {μ : ℕ} |
| 131 | |
| 132 | /-- Polynomial independent of period paying marker-root → site-hit at a |
| 133 | reserve of 1 in the native cover exponent. -/ |
| 134 | def siteFactor (M : ℕ) : ℝ := Real.exp 1 * (2*(16*(M:ℝ)+9))^4 |
| 135 | |
| 136 | lemma torus_kernel (x : Site n) : |
| 137 | ∑ y : Site n, Real.exp (-(separation y x : ℝ) / (4*(M:ℝ)+2)) ≤ (2*(16*(M:ℝ)+9))^4 := by |
| 138 | let t y := lift (y-x) |
| 139 | have hi : Injective t := fun y z h => by |
| 140 | have := congr_arg (wrap n) h |
| 141 | simpa only [t,wrap_lift, sub_left_inj] using this |
| 142 | let b := ((4:ℝ)*(4*M+2))⁻¹ |
| 143 | have hp : 0 < b := by unfold b; positivity |
| 144 | have he (y : Site n) : Laurent.size (t y) ≤ 4*separation y x := by |
| 145 | calc |
| 146 | _ ≤ ∑ _i : Axis, separation y x := sum_le_sum fun i _ => component_le _ _ |
| 147 | _ = _ := by simp [Axis] |
| 148 | have hn := Laurent.Width.compactPay (α:=Axis) b hp |
| 149 | calc |
| 150 | _ ≤ ∑ y, Real.exp (-b*Laurent.size (t y)) := sum_le_sum fun i _ => Real.exp_le_exp.mpr (by |
| 151 | have h : (Laurent.size (t i):ℝ) ≤ 4*(separation i x : ℝ) := by exact_mod_cast he i |
| 152 | change -_/_ ≤ -((4:ℝ)*(4*M+2))⁻¹*_ |
| 153 | field_simp; linarith) |
| 154 | _ = ∑ y∈univ.image t, Real.exp (-b*Laurent.size y) := by rw [sum_image hi.injOn] |
| 155 | _ ≤ (2*((1+b)/b))^(Fintype.card Axis) := Budget.cap hn _ |
| 156 | _ = _ := by simp [Axis,b]; congr 1; field_simp; ring |
| 157 | |
| 158 | /-- Eq.JMmq on the native torus. Each positive source vertex has at least |
| 159 | one name anchored in its support. Nothing about the location of that name |
| 160 | relative to other vertices. -/ |
| 161 | theorem root_hit {a c : ℝ} {mode : ι → Finset V} {X : ι → Support n} {f : ι → ℝ} |
| 162 | (hh : Occupancy o μ) (hf : ∀ i, 0 ≤ f i) (hc : 0 ≤ c) |
| 163 | (pins : ∀ i, 0<f i → ∃ v∈mode i, o v∈X i) |
| 164 | (cost : Rooted mode X M (a+1) f c) : Ac.Hit X M f a ((μ:ℝ)*siteFactor M*c) := by |
| 165 | intro x; refine Budget.certify (fun i => ?_) fun s => ?_ |
| 166 | · split |
| 167 | · exact mul_nonneg (hf _) (Real.exp_pos _).le |
| 168 | exact le_rfl |
| 169 | let k (y : Site n) := Real.exp (1-(separation y x : ℝ)/(4*(M:ℝ)+2)) |
| 170 | let p (v : V) (i : ι) := if v ∈ mode i then Real.exp ((a+1)*coverNumber M (X i)) * f i else 0 |
| 171 | calc |
| 172 | _ ≤ ∑ i∈s, ∑ v, k (o v)*p v i := sum_le_sum fun i _ => by |
| 173 | by_cases h : x∈X i ∧ 0<f i |
| 174 | · obtain ⟨v,hv,hw⟩ := pins i h.2 |
| 175 | apply le_trans ?_ (single_le_sum (f:=fun v => k (o v)*p v i) |
| 176 | (fun v _ => mul_nonneg (Real.exp_pos _).le ((cost v).1 i)) (mem_univ v)) |
| 177 | rw [if_pos h.1,show p v i = _ from if_pos hv,mul_comm (f i),← mul_assoc] |
| 178 | refine mul_le_mul_of_nonneg_right ?_ (hf i) |
| 179 | rw [show k (o v)=_ from rfl, ← Real.exp_add, Real.exp_le_exp] |
| 180 | have he : (separation (o v) x : ℝ) ≤ coverNumber M (X i) * (4*(M:ℝ)+2)+2*(M:ℝ) := by |
| 181 | exact_mod_cast Corona.extent _ _ hw h.1 |
| 182 | have hp : 0 < (4*(M:ℝ)+2) := by positivity |
| 183 | field_simp; nlinarith |
| 184 | have he : (if x∈X i then f i * Real.exp (a*coverNumber M (X i)) else 0) = 0 := by |
| 185 | by_cases hx : x∈X i |
| 186 | · simp [le_antisymm (le_of_not_gt (fun hi => h ⟨hx,hi⟩)) (hf i)] |
| 187 | simp [hx] |
| 188 | rw [he]; exact sum_nonneg fun v _ => mul_nonneg (Real.exp_pos _).le ((cost v).1 i) |
| 189 | _ ≤ ∑ v, k (o v)*c := by |
| 190 | rw [sum_comm]; refine sum_le_sum fun v _ => ?_ |
| 191 | rw [← mul_sum] |
| 192 | exact mul_le_mul_of_nonneg_left (Budget.cap (cost v) _) (Real.exp_pos _).le |
| 193 | _ ≤ _ := by |
| 194 | rw [← sum_mul] |
| 195 | apply mul_le_mul_of_nonneg_right _ hc |
| 196 | refine (hh.weighted k fun _ => (Real.exp_pos _).le).trans (mul_le_mul_of_nonneg_left ?_ (by positivity)) |
| 197 | dsimp [siteFactor,k] |
| 198 | simp only [sub_eq_add_neg, Real.exp_add,← mul_sum, ← neg_div] |
| 199 | exact mul_le_mul_of_nonneg_left (torus_kernel x) (Real.exp_pos _).le |
| 200 | |
| 201 | end Hit |
| 202 | |
| 203 | section Shape |
| 204 | /-- Cost of projecting an entire possibly winding/support-address before |
| 205 | doing the block integration, subject to the footprint containment test. |
| 206 | `s` counts output balls in the halo radius, fixed before L. -/ |
| 207 | def tilePrice (s : ℕ) : ℕ := ((s+6)+(s+6)+1)^4 |
| 208 | |
| 209 | theorem projection_reserve (q : Ratio m n) {B M s : ℕ} (hB : 0<B) (hM : M ≤ 2*B) |
| 210 | {a A : ℝ} (ha : 0≤a) (hL : 20*a*tilePrice s ≤ (q.count.val:ℝ)*A) |
| 211 | (X : Support n) (Y : Support m) (hY : Y ⊆ halo (s*B) (X.image q.parent)) : |
| 212 | a*coverNumber B Y ≤ a*tilePrice s + (A/2)*coverNumber M X := by |
| 213 | have h := (Nat.mul_le_mul_left q.count.val (Corona.cover_mono hY B)).trans (Corona.collapse q X M B hB hM s) |
| 214 | have he : (q.count.val:ℝ)*coverNumber B Y ≤ ((q.count.val:ℝ) + 10*coverNumber M X) * (tilePrice s : ℝ) := by |
| 215 | exact_mod_cast h |
| 216 | have hp : (0:ℝ)<q.count.val := by exact_mod_cast q.count.property |
| 217 | apply le_of_mul_le_mul_left (a:=(q.count.val:ℝ)) ?_ hp |
| 218 | nlinarith [mul_le_mul_of_nonneg_left he ha, mul_le_mul_of_nonneg_right hL (coverNumber M X).cast_nonneg (α:=ℝ)] |
| 219 | |
| 220 | lemma exp_absorbs (k : ℕ) (a : ℝ) (ha : 0 < a) : ∃ C : ℝ, 1≤C ∧ ∀ s : ℕ, |
| 221 | (1+(s:ℝ))^k ≤ C * Real.exp (a*s) := by |
| 222 | -- 1+s ≤ (1+k/a)*exp((a/k)*s) when k>0. |
| 223 | refine ⟨(1+k/a)^k, one_le_pow₀ (le_add_of_nonneg_right (by positivity)), fun s => ?_⟩ |
| 224 | by_cases hk : k=0 |
| 225 | · simpa [hk] using Real.one_le_exp (mul_nonneg ha.le (Nat.cast_nonneg _)) |
| 226 | have hk' : (0:ℝ)<k := by exact_mod_cast Nat.pos_of_ne_zero hk |
| 227 | let u := (a/k)*(s:ℝ) |
| 228 | have hu := Real.add_one_le_exp u |
| 229 | have hs : (s:ℝ) = (k/a)*u := by unfold u; field_simp |
| 230 | have he : 1+(s:ℝ) ≤ (1+k/a)*Real.exp u := by |
| 231 | rw [add_mul,one_mul,hs]; gcongr |
| 232 | · exact Real.one_le_exp (by unfold u; positivity) |
| 233 | exact le_trans (by linarith : u ≤ u+1) hu |
| 234 | apply (pow_le_pow_left₀ (by positivity) he k).trans_eq |
| 235 | rw [mul_pow, ← Real.exp_nat_mul,show (k:ℝ)*u = a*s by unfold u; field_simp] |
| 236 | |
| 237 | |
| 238 | |
| 239 | end Shape |
| 240 | |
| 241 | section Reset |
| 242 | variable [Fintype V] {o : V → Site n} {μ B : ℕ} |
| 243 | |
| 244 | /-- For ≥2 distinct geometrically separated locations. Counting multiplicity |
| 245 | at each site, separately for each allowed monomial, not dividing the total |
| 246 | claim count by any factorial. -/ |
| 247 | theorem mixed_pack (hB : 8≤B) (hh : Occupancy o μ) (s : Finset V) |
| 248 | (hr : 2 ≤ (s.image o).card) (hs : (↑(s.image o) : Set (Site n)).Pairwise fun x y => B^2 ≤ separation x y) |
| 249 | (X : Support n) (hp : s.image o ⊆ X) : B*s.card ≤ 64*coverNumber B X * μ := by |
| 250 | have h := Work.I01.answer n (Site n) id B hB (s.image o) hs hr X (by simpa using hp) |
| 251 | exact (Nat.mul_le_mul_left _ (hh.card s)).trans (le_trans (by rw [Nat.mul_assoc] : B*((s.image o).card*μ) ≤ B*(s.image o).card*μ) (Nat.mul_le_mul_right _ h)) |
| 252 | |
| 253 | |
| 254 | |
| 255 | omit [Fintype V] in |
| 256 | /-- Pay full repaint on `hot`. If the high-rate tags are too concentrated, |
| 257 | an alternative is to have at least as many discounted tags in this monomial. |
| 258 | In particular a downset can permit pure contact monomials; one should not |
| 259 | then assume all their rates were recovered for free via connectedness. -/ |
| 260 | theorem toll_reset [DecidableEq V] {u w : V → ℝ} {D r δ : ℝ} (hot s : Finset V) |
| 261 | (hu : ∀ v∈s, 0≤u v) (hw : ∀ v∈s, 0≤w v) (hr : 1≤r) (hD : 1≤D) |
| 262 | (hδ : 0 ≤ δ) (hμ : 0<μ) |
| 263 | (hi : ∀ v∈s ∩ hot,D*w v ≤ u v*r) (hc : ∀ v∈s\hot,D*w v ≤ u v/r) |
| 264 | (hg : r ≤ Real.exp (δ*B/(64*μ))) (h : s.Nonempty) |
| 265 | {X : Support n} (hs : (s∩hot).card ≤ (s\hot).card ∨ B*(s∩hot).card ≤ 64*coverNumber B X * μ) : |
| 266 | D*(∏ i∈s, w i) ≤ (∏ i∈s, u i)* Real.exp (δ*coverNumber B X) := by |
| 267 | let R i := if i∈hot then r else r⁻¹ |
| 268 | have hR : (∏ i∈s, R i) ≤ Real.exp (δ*coverNumber B X) := by |
| 269 | have he : (∏ i∈s, R i) = r^(s∩hot).card * (r⁻¹)^(s\hot).card := by |
| 270 | dsimp only [R]; rw [prod_ite]; congr 1 <;> (rw [prod_const]; congr 2) |
| 271 | ext; simp |
| 272 | rw [he,inv_pow,← div_eq_mul_inv] |
| 273 | rcases hs with hs | hs |
| 274 | · exact (div_le_one_of_le₀ (pow_le_pow_right₀ hr hs) (by positivity)).trans (Real.one_le_exp (by positivity)) |
| 275 | apply (div_le_self (by positivity) (one_le_pow₀ hr)).trans |
| 276 | have hp : (B:ℝ)*(s∩hot).card ≤ 64*(coverNumber B X : ℝ)*μ := by exact_mod_cast hs |
| 277 | refine (pow_le_pow_left₀ (zero_le_one.trans hr) hg _).trans ?_ |
| 278 | rw [← Real.exp_nat_mul]; apply Real.exp_monotone |
| 279 | have hμ : (0:ℝ)<μ := by exact_mod_cast hμ |
| 280 | rw [← mul_div_assoc]; apply (div_le_iff₀ (by positivity)).mpr |
| 281 | nlinarith only [mul_le_mul_of_nonneg_left hp hδ] |
| 282 | calc |
| 283 | _ ≤ (D^s.card)*(∏ i∈s, w i) := mul_le_mul_of_nonneg_right |
| 284 | (by nth_rewrite 1 [← pow_one D]; exact pow_le_pow_right₀ hD (card_pos.mpr h)) (prod_nonneg hw) |
| 285 | _ = ∏ i∈s, D*w i := by rw [prod_mul_distrib,prod_const] |
| 286 | _ ≤ ∏ i∈s, u i*R i := prod_le_prod (fun i h => mul_nonneg (zero_le_one.trans hD) (hw i h)) (fun i h => by |
| 287 | by_cases hh : i∈hot |
| 288 | · simpa only [R,if_pos hh] using! hi i (mem_inter.mpr ⟨h,hh⟩) |
| 289 | simpa only [R, if_neg hh,div_eq_mul_inv] using! hc i (mem_sdiff.mpr ⟨h,hh⟩)) |
| 290 | _ ≤ _ := by rw [prod_mul_distrib]; exact mul_le_mul_of_nonneg_left hR (prod_nonneg hu) |
| 291 | |
| 292 | end Reset |
| 293 | end YM.Extra.Multi |