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.ABSOLUTE_SUMS.Charge |
| 2 | import YM.Push.ABSOLUTE_SUMS.Labels |
| 3 | import YM.Push.ABSOLUTE_SUMS.Reserves |
| 4 | |
| 5 | |
| 6 | |
| 7 | /-! |
| 8 | # Charging a whole connected result |
| 9 | |
| 10 | Combine optional input costs and grant-paid packet costs, retaining a |
| 11 | polynomial on the WHOLE word and a reduced exponential receipt, for |
| 12 | example for the forced labels. Yields HIT per address, not a statement |
| 13 | about running an RG automaton or proof that its outputs do have the |
| 14 | per-term tests. Can use before committing post-L budgets. A concrete |
| 15 | sufficient set of inequalities; larger halo factors for overlaps can |
| 16 | be included via the l parameter. |
| 17 | -/ |
| 18 | set_option autoImplicit false |
| 19 | noncomputable section |
| 20 | namespace YM.Push.AbsoluteSums.Mixed |
| 21 | open Lattice Wilson RG Pressure Finset Reserves Packets |
| 22 | open scoped Classical Topology BigOperators Matrix.Norms.Frobenius |
| 23 | variable {c f : Side} |
| 24 | |
| 25 | /-- Numerical controls at one step. -/ |
| 26 | structure Costs where |
| 27 | exponent : ℝ -- awarded output support exponent |
| 28 | reservePoly : ℝ -- ε |
| 29 | reserveTree : ℝ -- δ |
| 30 | cap : ℝ -- C charged to packet |
| 31 | spendSeed : ℝ -- unpriced per-seed expenses (log cost) |
| 32 | extraSeed : ℝ -- coefficient of seed count in D* |
| 33 | markSeed : ℝ -- what to EXTRACT per seed |
| 34 | gain : ℝ -- e.g. μ β t² |
| 35 | optionalHit : ℝ |
| 36 | packetRatio : ℝ |
| 37 | rootHit : ℝ |
| 38 | q : ℝ |
| 39 | |
| 40 | namespace Costs |
| 41 | |
| 42 | def head (b : Costs) := b.exponent + 2*b.reservePoly + b.reserveTree |
| 43 | def spend (b : Costs) := b.spendSeed + 2*b.reservePoly*b.extraSeed + b.markSeed |
| 44 | |
| 45 | /-- Named sufficient test. Doesn't rely on topology of any possible |
| 46 | partial choice, beta path, etc. Applies pointwise. -/ |
| 47 | structure Buy (b : Costs) (L : Side) (l B : ℕ) : Prop where |
| 48 | eps : 0 < b.reservePoly |
| 49 | δ : 0 < b.reserveTree |
| 50 | γ : 0 < b.rootHit |
| 51 | capture : 0 ≤ b.cap |
| 52 | extra : 0 ≤ b.extraSeed |
| 53 | marked : 0 ≤ b.markSeed |
| 54 | price : 0 ≤ b.exponent |
| 55 | packet : Packets.fit L l B b.head b.spend b.gain b.packetRatio |
| 56 | combined : totalCharge L b.cap l B b.packetRatio 0 + b.optionalHit ≤ b.rootHit |
| 57 | trees : Trees.degreePrice B b.rootHit b.reserveTree ≤ b.q |
| 58 | grows : b.q < 1 |
| 59 | |
| 60 | /-- Degree/stencil/mandatory-seed answer -/ |
| 61 | def ceiling (b : Costs) (m k r : ℕ) (T : ℝ) := Reserves.extract b.reservePoly k T |
| 62 | (b.markSeed*r) * Reserves.treeYield b.rootHit b.q m |
| 63 | end Costs |
| 64 | |
| 65 | abbrev Alphabet (S : StepData c f) (ι : Type*) := Stores S ⊕ ι |
| 66 | variable {ι : Type*} (S : StepData c f) |
| 67 | |
| 68 | def foot (l B : ℕ) (X : ι → Support c) : Alphabet S ι → Support c := |
| 69 | Sum.elim (fun A => A.dome (l*B)) X |
| 70 | |
| 71 | def shares : Alphabet S ι → ℕ := Sum.elim Pressure.Stores.shares (fun _ => 0) |
| 72 | |
| 73 | def lengths (a : Costs) (d : ι → ℝ) : Alphabet S ι → ℝ := |
| 74 | Sum.elim (fun A => a.extraSeed*A.shares) d |
| 75 | |
| 76 | def costs (l B : ℕ) (p : Stores S → ℝ) (w : ι → ℝ) : Alphabet S ι → ℝ := |
| 77 | Sum.elim (fun A => if connected S l B A then p A else 0) w |
| 78 | |
| 79 | def stamp (b : Costs) (i : Alphabet S ι) : ℝ := b.markSeed * shares S i |
| 80 | |
| 81 | def charges (l B : ℕ) (X : ι → Support c) (a : Costs) (d : ι → ℝ) := |
| 82 | setPrice (foot S l B X) B (lengths S a d) |
| 83 | |
| 84 | structure Accounts (l B : ℕ) (b : Costs) (X : ι → Support c) (w d : ι → ℝ) (p : Stores S → ℝ) : Prop where |
| 85 | packetBound : ∀ A : Stores S, connected S l B A → 0 ≤ p A ∧ |
| 86 | p A ≤ Packets.income b.cap b.spendSeed b.gain A.shares |
| 87 | holds : ∀ i,0 ≤ w i |
| 88 | extra : ∀ i,0 ≤ d i |
| 89 | pays : Ac.Hit X B (tariff w d (fun _ => 0) b.reservePoly) b.head b.optionalHit |
| 90 | |
| 91 | section Components |
| 92 | variable (l B : ℕ) (b : Costs) (X : ι → Support c) (w d : ι → ℝ) (p : Stores S → ℝ) |
| 93 | variable (hr : b.Buy S.patch.L l B) (ha : Accounts S l B b X w d p) |
| 94 | |
| 95 | include hr ha in |
| 96 | theorem ready_vertices : |
| 97 | let Y := foot S l B X; let f := costs S l B p w |
| 98 | Trees.Ready Y B (tariff f (lengths S b d) (stamp S b) b.reservePoly) (b.exponent+2*b.reservePoly) |
| 99 | b.rootHit b.reserveTree b.q := by |
| 100 | intro Y f |
| 101 | let w1 A := p A * Real.exp (2*b.reservePoly*(b.extraSeed*A.shares)+b.markSeed*A.shares) |
| 102 | have he A (hh : connected S l B A) : 0 ≤ w1 A ∧ w1 A ≤ Packets.income b.cap b.spend b.gain A.shares := by |
| 103 | obtain ⟨hi,hI⟩ := ha.packetBound A hh |
| 104 | unfold w1; refine ⟨mul_nonneg hi (Real.exp_pos _).le, |
| 105 | (mul_le_mul_of_nonneg_right hI (Real.exp_pos _).le).trans_eq ?_⟩ |
| 106 | unfold Packets.income Costs.spend; rw [mul_assoc,← Real.exp_add]; ring_nf |
| 107 | have hv := Packets.packet_hit S l B w1 hr.capture hr.packet he |
| 108 | let z := Sum.elim (fun A => if connected S l B A then w1 A else 0) |
| 109 | (tariff w d (fun _ => 0) b.reservePoly) |
| 110 | have hZ : tariff f (lengths S b d) (stamp S b) b.reservePoly = z := by |
| 111 | funext i; rcases i with A|i |
| 112 | · by_cases h : connected S l B A <;> simp [f,costs,lengths,shares,stamp,w1,z,tariff,h] |
| 113 | simp [f,costs,lengths,stamp,shares,w1,tariff,z] |
| 114 | rw [hZ] |
| 115 | refine ⟨hr.γ,hr.δ,hr.trees,hr.grows,?_,?_⟩ |
| 116 | · rintro (A|i) |
| 117 | · unfold z; dsimp only [Sum.elim]; split |
| 118 | next h => exact (he A h).1 |
| 119 | next h => exact le_rfl |
| 120 | exact mul_nonneg (ha.holds _) (Real.exp_pos _).le |
| 121 | intro x |
| 122 | exact budget_loosen (Labels.together _ _ _ hv ha.pays x) hr.combined |
| 123 | |
| 124 | -- Connectivity is for the union of packets and additional addresses, |
| 125 | -- not pretending packets separated by the original sector choices |
| 126 | -- cannot interact through other read supports. |
| 127 | def Allowed (m r : ℕ) (T : ℝ) (s : Finset (Alphabet S ι)) := |
| 128 | Ac.Spark (foot S l B X) s ∧ m ≤ s.card-1 ∧ r ≤ (∑ i∈s, shares S i) ∧ |
| 129 | T ≤ charges S l B X b d s |
| 130 | |
| 131 | def Price (k : ℕ) (s : Finset (Alphabet S ι)) := |
| 132 | (∏ i∈s, costs S l B p w i)*(1+charges S l B X b d s)^k |
| 133 | |
| 134 | def selected (m k r : ℕ) (T : ℝ) (s : Finset (Alphabet S ι)) := |
| 135 | if Allowed S l B b X d m r T s then Price S l B b X w d p k s else 0 |
| 136 | |
| 137 | include hr ha in |
| 138 | lemma zero_le_price (k : ℕ) (s : Finset (Alphabet S ι)) : 0 ≤ Price S l B b X w d p k s := by |
| 139 | have he i : 0 ≤ costs S l B p w i := by |
| 140 | rcases i with A|i |
| 141 | · unfold costs; dsimp only [Sum.elim]; split |
| 142 | next hh => exact (ha.packetBound _ hh).1 |
| 143 | next hh => exact le_rfl |
| 144 | exact ha.holds i |
| 145 | have ht i : 0 ≤ lengths S b d i := by |
| 146 | rcases i with A|i |
| 147 | · exact mul_nonneg hr.extra (Nat.cast_nonneg _) |
| 148 | exact ha.extra i |
| 149 | have hh : 0 ≤ charges S l B X b d s := sum_nonneg fun i _ => |
| 150 | add_nonneg (Nat.cast_nonneg _) (ht i) |
| 151 | unfold Price; exact mul_nonneg (prod_nonneg fun i _ => he i) (by positivity) |
| 152 | |
| 153 | include hr ha in |
| 154 | /-- The shape used for absolute hit/KBound consumption. -/ |
| 155 | theorem mixed_hit (m k r : ℕ) (T : ℝ) : Ac.Hit |
| 156 | (fun s : Finset (Alphabet S ι) => s.biUnion (foot S l B X)) B |
| 157 | (selected S l B b X w d p m k r T) b.exponent (b.ceiling m k r T) := by |
| 158 | let Y := foot S l B X; let f := costs S l B p w |
| 159 | have he i : 0 ≤ f i := by |
| 160 | rcases i with A|i |
| 161 | · unfold f costs; dsimp only [Sum.elim]; split |
| 162 | next hh => exact (ha.packetBound A hh).1 |
| 163 | next hh => exact le_rfl |
| 164 | exact ha.holds i |
| 165 | have ht i : 0 ≤ lengths S b d i := by |
| 166 | rcases i with A|i |
| 167 | · exact mul_nonneg hr.extra (Nat.cast_nonneg _) |
| 168 | exact ha.extra i |
| 169 | have hh := ready_vertices S l B b X w d p hr ha |
| 170 | intro x |
| 171 | let Q := Allowed S l B b X d m r T |
| 172 | have hs (s : Finset (Alphabet S ι)) (h : Q s) : |
| 173 | T ≤ charges S l B X b d s ∧ b.markSeed * r ≤ ∑ i∈s, stamp S b i := by |
| 174 | refine ⟨h.2.2.2,?_⟩ |
| 175 | simp only [stamp,← mul_sum] |
| 176 | exact mul_le_mul_of_nonneg_left (by exact_mod_cast h.2.2.1) hr.marked |
| 177 | convert Reserves.sets Y B f (lengths S b d) (stamp S b) he ht hr.eps hr.price hh |
| 178 | m k x Q (fun s _ _ _ h => hs s h) using 1; ext s |
| 179 | by_cases hl : x∈s.biUnion Y |
| 180 | · change (if x ∈ s.biUnion Y then _ else _) = _ |
| 181 | by_cases hy : Q s |
| 182 | · have he := hy.1; have hm := hy.2.1 |
| 183 | rw [if_pos hl,selected,if_pos hy,if_pos ⟨hy,hm⟩,rooted,if_pos ⟨he,hl⟩] |
| 184 | unfold Price; change _*_*_ = _ |
| 185 | dsimp only [Trees.currency,charges,f,Y]; ring |
| 186 | rw [if_pos hl,selected,if_neg hy,zero_mul,if_neg (fun ⟨h,_⟩ => hy h)] |
| 187 | · change (if x ∈ s.biUnion Y then _ else _) = _ |
| 188 | rw [if_neg hl]; unfold rooted; split <;> simp [hl] |
| 189 | rfl |
| 190 | |
| 191 | include hr ha in |
| 192 | /-- Cost converter at all cutoffs. p is the PER-PACKET cost before |
| 193 | hit summation; optional Hit likewise pertains to individual optional |
| 194 | addresses. At output, distinct occurrences still have their own costs. |
| 195 | Don't mistake `he` for a bound on FIRST-INTEGRATION analytic coefficients |
| 196 | without actually deriving it there (on the corresponding geometry). |
| 197 | `Y` is actual overlap footprint, may be smaller than the charged one. |
| 198 | Taking `r = 1` extracts an exponential for all K-type terms that use a |
| 199 | packet (retain this test where needed; not inferred universally!). -/ |
| 200 | theorem output {κ : Type*} (Y : κ → Support c) (g : κ → ℝ) (spell : κ → Finset (Alphabet S ι)) |
| 201 | (hg : ∀ i, 0 ≤ g i) (m k r : ℕ) (T C : ℝ) (hC : 0 ≤ C) |
| 202 | (hy : ∀ i, g i≠0 → Y i ⊆ (spell i).biUnion (foot S l B X)) |
| 203 | (he : ∀ (s : Finset (Alphabet S ι)) (L : Finset κ), (∀ i∈L, spell i=s) → |
| 204 | ∑ i∈L, g i ≤ C*selected S l B b X w d p m k r T s) : |
| 205 | Ac.Hit Y B g b.exponent (C*b.ceiling m k r T) := by |
| 206 | refine Labels.variants (fun s => s.biUnion (foot S l B X)) B hr.price ?_ Y spell g hg hy he |
| 207 | intro i |
| 208 | have he := budget_scale hC (mixed_hit S l B b X w d p hr ha m k r T i) |
| 209 | convert he using 1; ext s |
| 210 | split |
| 211 | next he => ring |
| 212 | next he => rw [mul_zero] |
| 213 | |
| 214 | include hr ha in |
| 215 | /-- Example output application on `A` itself. External estimate `hv` |
| 216 | requires actual sales to have been tied to packets and optional costs |
| 217 | on the actual labels (no term outside these forms unless it too is |
| 218 | charged as another form). Contract gives no other fields of Valid. -/ |
| 219 | theorem forcedBudget {G : Gauge} (A : Activities G c) (P : BudgetPoint) (spell : ℕ → Finset (Alphabet S ι)) |
| 220 | (hb : P.B=B) (hh : P.supportExponent=b.exponent) |
| 221 | (g : ℕ → ℝ) (he : ∀ i,0 ≤ g i ∧ ∀ U, ‖A.K i U‖ ≤ g i) (k : ℕ) (C : ℝ) (hC : 0 ≤ C) |
| 222 | (hy : ∀ i, g i≠0 → (A.forced i).support ⊆ (spell i).biUnion (foot S l B X)) |
| 223 | (hv : ∀ (s : Finset (Alphabet S ι)) (L : Finset ℕ), (∀ i∈L, spell i=s) → |
| 224 | ∑ i∈L, g i ≤ C*selected S l B b X w d p 0 k 1 0 s) : |
| 225 | A.KBound P (C*b.ceiling 0 k 1 0) := by |
| 226 | refine ⟨g,he,?_⟩ |
| 227 | intro x |
| 228 | simpa only [BudgetPoint.mass,hb,hh,mul_comm] using |
| 229 | output S l B b X w d p hr ha _ _ spell (fun i => (he i).1) _ _ _ _ _ hC hy hv x |
| 230 | end Components |
| 231 | end YM.Push.AbsoluteSums.Mixed |