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.Forest |
| 2 | import YM.Push.ABSOLUTE_SUMS.Ursell |
| 3 | |
| 4 | /-! |
| 5 | Occurrence indexing by Option (Fin m) for convenience, equivalently |
| 6 | number `1+m` of vertices, using exponent weight on ACTUAL union. We |
| 7 | also export the *stronger bound* with PRODUCT of the support weights, |
| 8 | so the summability of marks/cost-polynomials can be tested before |
| 9 | regrouping them. Uses a concrete conflict relation R (usually `blocked X`), |
| 10 | which may even be a subset of overlaps in the test. Thus X here can also |
| 11 | be a handle for a larger B-coverage estimate. Need R symmetric and |
| 12 | including same-address conflicts for the hard-core logarithm meaning; |
| 13 | just `pay` works also for tighter edge filters. |
| 14 | |
| 15 | No positivity of the gas, analytic branches or exponential/logarithm |
| 16 | *identity* assumed here. Proves the absolute bounds ON that second |
| 17 | graph series, not a step producing the actual unforced/forced weights. |
| 18 | -/ |
| 19 | set_option autoImplicit false |
| 20 | noncomputable section |
| 21 | namespace YM.Push.AbsoluteSums.Ursell |
| 22 | open Trees Graph RG Lattice Relation Finset |
| 23 | open scoped BigOperators Classical Topology |
| 24 | variable {ι : Type*} (R : ι → ι → Prop) {n : Side} |
| 25 | variable (X : ι → Support n) (B : ℕ) |
| 26 | |
| 27 | -- No arity zero term in the cluster/log series |
| 28 | abbrev Tuple (ι : Type*) (m : ℕ) := Option (Fin m) → ι |
| 29 | abbrev Clusters (ι : Type*) := Σ m, Tuple ι m |
| 30 | |
| 31 | def unionOf {m : ℕ} (z : Tuple ι m) := univ.biUnion (X ∘ z) |
| 32 | def charge (w : ι → ℝ) (a : ℝ) (i : ι) := w i * Trees.currency B a (X i) |
| 33 | |
| 34 | def clusters (w : ι → ℝ) {m : ℕ} (z : Tuple ι m) : ℝ := |
| 35 | |coefficient R z| * (∏ i, w (z i)) / (m+1).factorial |
| 36 | |
| 37 | /-- Root at an arbitrary tuple position pays possibly different weights u, |
| 38 | using the normalization for ROOT-hit counts (n−1)!. -/ |
| 39 | def atVertex (w u : ι → ℝ) {m : ℕ} (j : Option (Fin m)) (z : Tuple ι m) : ℝ := |
| 40 | |coefficient R z| * (∏ i, if i=j then u (z i) else w (z i)) / m.factorial |
| 41 | |
| 42 | lemma clusters_nonneg {w : ι → ℝ} (hw : ∀ i, 0 ≤ w i) {m : ℕ} (z : Tuple ι m) : |
| 43 | 0 ≤ clusters R w z := div_nonneg (mul_nonneg (abs_nonneg _) (prod_nonneg fun i _ => hw _)) |
| 44 | (by positivity) |
| 45 | |
| 46 | lemma atVertex_pos {w u : ι → ℝ} (hw : ∀ i, 0 ≤ w i) (hu : ∀ i, 0 ≤ u i) {m : ℕ} |
| 47 | (j : Option (Fin m)) (z : Tuple ι m) : 0 ≤ atVertex R w u j z := |
| 48 | div_nonneg (mul_nonneg (abs_nonneg _) (prod_nonneg fun i _ => by |
| 49 | split |
| 50 | · exact hu _ |
| 51 | · exact hw _)) |
| 52 | (by positivity) |
| 53 | |
| 54 | lemma charge_pos {w : ι → ℝ} (hw : ∀ i, 0 ≤ w i) (a : ℝ) (i : ι) : |
| 55 | 0 ≤ charge X B w a i := mul_nonneg (hw _) (Real.exp_pos _).le |
| 56 | |
| 57 | /-- Only comparison from ACTUAL incompatibilities to estimated overlaps! |
| 58 | Doesn't impose extra incompatibilities on the gas. -/ |
| 59 | def Tests := ∀ i j : ι, R i j → Ac.meets X j (X i) |
| 60 | |
| 61 | lemma literal_test (hn : ∀ i, (X i).Nonempty) : Tests (blocked X) X := by |
| 62 | rintro i j (hi|hi) |
| 63 | · subst j; obtain ⟨x,hx⟩ := hn i; exact ⟨_,hx,hx⟩ |
| 64 | exact hi |
| 65 | |
| 66 | abbrev indexRoot {m : ℕ} (z : Tuple ι m) (p : Fin m → Option (Fin m)) : RootAt ι m := |
| 67 | (z none,p,z ∘ some) |
| 68 | |
| 69 | lemma spanned (h : Tests R X) {m : ℕ} {z : Tuple ι m} {p : Fin m → Option (Fin m)} |
| 70 | (hp : Graph.sprouts (pot R z) p) : Trees.Sprouts X (X (z none)) p (z ∘ some) := by |
| 71 | constructor |
| 72 | · exact hp.1 |
| 73 | intro i |
| 74 | have he := h _ _ (allow R z (hp.2 i)) |
| 75 | cases hk : p i <;> rw [hk] at he <;> exact he |
| 76 | |
| 77 | private lemma test_none (ht : Tests R X) (m : ℕ) (z : Tuple ι m) (w u : ι → ℝ) |
| 78 | (hw : ∀ i, 0 ≤ w i) (hu : ∀ i, 0 ≤ u i) (a : ℝ) : |
| 79 | atVertex R (charge X B w a) (charge X B u a) none z ≤ |
| 80 | ∑ p : Fin m → Option (Fin m), rootW X B w u a ⟨m,indexRoot z p⟩ := by |
| 81 | let W := charge X B w a; let U := charge X B u a |
| 82 | have hg := Graph.pay (pot R z) |
| 83 | let P (p : Fin m → Option (Fin m)) : Prop := Graph.sprouts (pot R z) p |
| 84 | let o := ∏ i : Option (Fin m), if i=none then U (z i) else W (z i) |
| 85 | have he : o=U (z none)*∏ i : Fin m, W (z (some i)) := by simp [o,Fintype.prod_option] |
| 86 | have hb : 0 ≤ o := he ▸ mul_nonneg (charge_pos X B hu ..) (prod_nonneg fun i _ => charge_pos X B hw ..) |
| 87 | change |coefficient R z| * o/m.factorial ≤ _ |
| 88 | calc |
| 89 | _ ≤ (∑ p, if P p then (1:ℝ) else 0)*o/m.factorial := div_le_div_of_nonneg_right |
| 90 | (mul_le_mul_of_nonneg_right hg hb) (by positivity) |
| 91 | _ ≤ _ := by |
| 92 | rw [sum_mul,sum_div]; apply sum_le_sum; intro i _; split |
| 93 | next h => |
| 94 | unfold rootW forestW; dsimp only; rw [forestWeight,if_pos (spanned R X ht h),Fintype.card_fin, |
| 95 | he,one_mul,mul_div_assoc]; exact le_rfl |
| 96 | next h => simpa only [zero_mul,zero_div] using rootW_nonneg X B hw hu a ⟨m,indexRoot z i⟩ |
| 97 | |
| 98 | private lemma indexRoot_inj {m : ℕ} : Function.Injective |
| 99 | (fun p : Tuple ι m × (Fin m → Option (Fin m)) => indexRoot p.1 p.2) := by |
| 100 | rintro ⟨z,p⟩ ⟨w,q⟩ h |
| 101 | have hp : p=q := congr_arg (fun x => x.2.1) h |
| 102 | suffices he : z=w by rw [he,hp] |
| 103 | funext i; cases i with |
| 104 | | none => exact congr_arg (fun x => x.1) h |
| 105 | | some j => exact congr_arg (fun x : RootAt ι m => x.2.2 j) h |
| 106 | |
| 107 | private lemma budget_none (ht : Tests R X) {w u : ι → ℝ} {a γ δ q b : ℝ} (hu : ∀ i, 0 ≤ u i) |
| 108 | (h : Ready X B w a γ δ q) (he : SumBudget (charge X B u (a+δ)) b) |
| 109 | (m : ℕ) : SumBudget (fun z : Tuple ι m => atVertex R (charge X B w a) (charge X B u a) none z) |
| 110 | (b*q^m) := by |
| 111 | have hw := h.2.2.2.2.1 |
| 112 | have hh := budget_pull _ (@indexRoot_inj ι m) (root_at X B hu h he m) |
| 113 | let f := fun p : Tuple ι m × (Fin m → Option (Fin m)) => rootW X B w u a ⟨m,indexRoot p.1 p.2⟩ |
| 114 | refine budget_of_sum (fun z => atVertex_pos R (charge_pos X B hw a) (charge_pos X B hu a) none z) |
| 115 | fun s => ?_ |
| 116 | calc |
| 117 | _ ≤ ∑ z∈s, ∑ p, f (z,p) := sum_le_sum fun z _ => test_none R X B ht m z w u hw hu a |
| 118 | _ = ∑ i∈s ×ˢ univ, f i := by rw [sum_product] |
| 119 | _ ≤ _ := budget_sum hh _ |
| 120 | |
| 121 | lemma budget_root (ht : Tests R X) {w u : ι → ℝ} {a γ δ q b : ℝ} (hu : ∀ i, 0 ≤ u i) |
| 122 | (h : Ready X B w a γ δ q) (he : SumBudget (charge X B u (a+δ)) b) |
| 123 | (m : ℕ) (i : Option (Fin m)) : |
| 124 | SumBudget (fun z : Tuple ι m => atVertex R (charge X B w a) (charge X B u a) i z) (b*q^m) := by |
| 125 | let e := Equiv.swap i none |
| 126 | let W := charge X B w a; let U := charge X B u a |
| 127 | have he' : Function.Injective (fun z : Tuple ι m => z ∘ e) := fun z p h => by |
| 128 | funext i; obtain ⟨i,rfl⟩ := e.surjective i; exact congr_fun h i |
| 129 | have eq (z : Tuple ι m) : atVertex R W U i z = atVertex R W U none (z ∘ e) := by |
| 130 | unfold atVertex |
| 131 | rw [relabel R e z]; congr 2 |
| 132 | symm; apply Fintype.prod_equiv e; intro j |
| 133 | by_cases h : j=none |
| 134 | · rw [h]; simp [e] |
| 135 | have he : e j ≠ i := by rw [← show e none=i by simp [e]]; exact e.injective.ne h |
| 136 | simp only [h,he,↓reduceIte,Function.comp_apply] |
| 137 | simp_rw [show ∀ z : Tuple ι m, atVertex R (charge X B w a) (charge X B u a) i z = _ from eq] |
| 138 | exact budget_pull _ he' (budget_none R X B ht hu h he m) |
| 139 | |
| 140 | /-- The designated weight u is an ordinary vertex cost, charged with the |
| 141 | same support exponential as the others. -/ |
| 142 | def marked (Q : ι → Prop) (w : ι → ℝ) (i : ι) := if Q i then w i else 0 |
| 143 | |
| 144 | -- Parenthesized conditional uses classical checks in a uniform grammar. |
| 145 | lemma marked_pos (Q : ι → Prop) {w : ι → ℝ} (hw : ∀ i, 0 ≤ w i) : ∀ i, 0 ≤ marked Q w i := by |
| 146 | intro i; unfold marked; split <;> first | exact hw i | exact le_rfl |
| 147 | |
| 148 | theorem cluster_at (ht : Tests R X) {w : ι → ℝ} {a γ δ q b : ℝ} (Q : ι → Prop) |
| 149 | (h : Ready X B w a γ δ q) (he : SumBudget (charge X B (marked Q w) (a+δ)) b) (m : ℕ) : |
| 150 | SumBudget (fun z : Tuple ι m => if ∃ i, Q (z i) then clusters R (charge X B w a) z else 0) |
| 151 | (b*q^m) := by |
| 152 | let V := Option (Fin m) |
| 153 | let W := charge X B w a; let u := marked Q w; let U := charge X B u a |
| 154 | have hw := h.2.2.2.2.1; have hw' := charge_pos X B hw a |
| 155 | have hu := marked_pos Q hw; have hu' := charge_pos X B hu a |
| 156 | let n : ℝ := (m:ℝ)+1 |
| 157 | have hn : 0 < n := by unfold n; positivity |
| 158 | have hb := budget_scale (show 0 ≤ n⁻¹ by positivity) (budget_over univ |
| 159 | (fun (i : Option (Fin m)) z => atVertex R W U i z) (fun _ => b*q^m) |
| 160 | (fun i _ => budget_root R X B ht hu h he m i)) |
| 161 | have hc : SumBudget (fun z : Tuple ι m => n⁻¹ * ∑ i : Option (Fin m), atVertex R W U i z) |
| 162 | (b*q^m) := budget_loosen hb (by unfold n; simp; apply le_of_eq; field_simp) |
| 163 | -- once z hits, one possible root i suffices; after sum use all of them. |
| 164 | refine budget_mono hc (fun i => ?_) fun i => ?_ |
| 165 | · split |
| 166 | next h => exact clusters_nonneg R hw' i |
| 167 | next h => exact le_rfl |
| 168 | split |
| 169 | next h => |
| 170 | obtain ⟨j,hj⟩ := h |
| 171 | refine le_trans ?_ (mul_le_mul_of_nonneg_left (single_le_sum (fun a _ => |
| 172 | atVertex_pos R hw' hu' a i) (mem_univ j)) (by positivity)) |
| 173 | have he : U (i j)=W (i j) := by simp only [U,W,u,charge,marked,if_pos hj] |
| 174 | unfold atVertex clusters |
| 175 | rw [prod_congr rfl (show ∀ a ∈ (univ:Finset V), |
| 176 | (if a=j then U (i a) else W (i a)) = W (i a) from fun a _ => by |
| 177 | split |
| 178 | · subst a; exact he |
| 179 | · rfl), |
| 180 | Nat.factorial_succ,Nat.cast_mul,Nat.cast_add,Nat.cast_one] |
| 181 | unfold W n |
| 182 | apply le_of_eq; ring_nf; field_simp; ring |
| 183 | next h => exact hc.1 i |
| 184 | |
| 185 | theorem cluster_tail (ht : Tests R X) {w : ι → ℝ} {a γ δ q b : ℝ} (Q : ι → Prop) |
| 186 | (h : Ready X B w a γ δ q) (he : SumBudget (charge X B (marked Q w) (a+δ)) b) (m : ℕ) : |
| 187 | SumBudget (fun z : Clusters ι => if m ≤ z.1 then (if ∃ i, Q (z.2 i) then |
| 188 | clusters R (charge X B w a) z.2 else 0) else 0) (b*q^m*(1-q)⁻¹) := by |
| 189 | -- work around potential distinct `Classical.decEq` instances |
| 190 | apply sigma_tail (fun z : Clusters ι => if ∃ i, Q (z.2 i) then clusters R (charge X B w a) z.2 else 0) |
| 191 | (fun k => cluster_at R X B ht Q h he k) (budget_nonneg he) (ready_pos X B h).le |
| 192 | h.2.2.2.1 m |
| 193 | |
| 194 | lemma connected_pay (ht : Tests R X) {m : ℕ} (z : Tuple ι m) {a : ℝ} (ha : 0 ≤ a) |
| 195 | (he : coefficient R z ≠ 0) : currency B a (unionOf X z) ≤ |
| 196 | ∏ i : Option (Fin m), currency B a (X (z i)) := by |
| 197 | let T := pot R z |
| 198 | have hg : (connectedGroups T).Nonempty := by |
| 199 | by_contra hh; rw [not_nonempty_iff_eq_empty] at hh |
| 200 | exact he (by change ∑ i∈connectedGroups T, alternating i=0; rw [hh,sum_empty]) |
| 201 | obtain ⟨s,hs⟩ := hg |
| 202 | obtain ⟨hk,hs⟩ := belongs.mp hs |
| 203 | obtain ⟨p,d,hp⟩ := Breadth.build (Graph.link s) (fun _ => 0) (hs none) |
| 204 | have hh : Graph.sprouts T p := ⟨Breadth.growth_ranked hp.toGrowth, |
| 205 | fun i => ⟨(hp.edges i).1,hk (hp.edges i).2⟩⟩ |
| 206 | have hx := overall_paid X B ha (spanned R X ht hh) |
| 207 | rw [Fintype.prod_option] |
| 208 | have he : unionOf X z = overall X (X (z none)) (z ∘ some) := by |
| 209 | unfold unionOf overall |
| 210 | congr 1; funext i; cases i <;> rfl |
| 211 | rw [he]; exact hx |
| 212 | |
| 213 | lemma pay_cover (ht : Tests R X) {w : ι → ℝ} (hw : ∀ i, 0≤w i) {a : ℝ} (ha : 0≤a) |
| 214 | {m : ℕ} (z : Tuple ι m) : clusters R w z * currency B a (unionOf X z) ≤ |
| 215 | clusters R (charge X B w a) z := by |
| 216 | by_cases hh : coefficient R z = 0 |
| 217 | · simp [clusters,hh] |
| 218 | unfold charge clusters |
| 219 | rw [Finset.prod_mul_distrib,div_mul_eq_mul_div,mul_assoc]; |
| 220 | gcongr |
| 221 | · exact prod_nonneg fun i _ => hw _ |
| 222 | exact connected_pay R X B ht z ha hh |
| 223 | |
| 224 | theorem log_hit_tail (ht : Tests R X) {w : ι → ℝ} {a γ δ q : ℝ} (h : Ready X B w a γ δ q) |
| 225 | (ha : 0 ≤ a) (m : ℕ) (x : Site n) : |
| 226 | SumBudget (fun z : Clusters ι => if m ≤ z.1 ∧ x∈unionOf X z.2 then |
| 227 | clusters R w z.2 * currency B a (unionOf X z.2) else 0) (γ*q^m*(1-q)⁻¹) := by |
| 228 | let Q := fun i => x∈X i |
| 229 | have he : SumBudget (charge X B (marked Q w) (a+δ)) γ := by |
| 230 | convert test_hit X B h x using 1; ext i; simp [charge,hit,marked,Q] |
| 231 | have hc := cluster_tail R X B ht Q h he m |
| 232 | have hw := h.2.2.2.2.1 |
| 233 | refine budget_mono hc (fun i => ?_) fun i => ?_ |
| 234 | · split |
| 235 | next he => exact mul_nonneg (clusters_nonneg R hw _) (Real.exp_pos _).le |
| 236 | next he => exact le_rfl |
| 237 | split |
| 238 | next he => |
| 239 | have hh : ∃ j, Q (i.2 j) := by |
| 240 | obtain ⟨j,hj,hx⟩ := mem_biUnion.mp he.2 |
| 241 | exact ⟨j,hx⟩ |
| 242 | rw [if_pos he.1,if_pos hh]; exact pay_cover R X B ht hw ha i.2 |
| 243 | next he => exact hc.1 i |
| 244 | end YM.Push.AbsoluteSums.Ursell |