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.Footprint |
| 2 | |
| 3 | /-! |
| 4 | # Winding path support and multiplicity charges |
| 5 | |
| 6 | No replacing true length by a torus number. Anchor budgets pay TRUE LENGTH and include the actual address sums. This makes it possible to pay both complete output-support exponents |
| 7 | (with surrounding test halos) and a true length tail. Works for every |
| 8 | period. Can apply to input `PathData.Bounds` on the prescribed arrays. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | noncomputable section |
| 13 | namespace YM.Push.AbsoluteSums.Paths |
| 14 | open RG Wilson Lattice Corona Finset Footprint |
| 15 | open scoped Classical Topology BigOperators |
| 16 | variable {n c f : Side} |
| 17 | |
| 18 | section Geometry |
| 19 | |
| 20 | def native (x : Site n) (w : Walk) : Support n := (visits x w).toFinset |
| 21 | |
| 22 | -- also use on cover |
| 23 | private lemma start {V : Type*} [AddCommGroup V] [One V] (x : Four V) (w : Walk) : x ∈ visits x w := by |
| 24 | cases w <;> simp [visits] |
| 25 | private lemma ending (x : Site n) (w : Walk) : stop x w ∈ native x w := by |
| 26 | unfold native; rw [List.mem_toFinset]; induction w generalizing x with |
| 27 | | nil => simp [stop,visits] |
| 28 | | cons a w IH => exact List.mem_cons_of_mem x (IH (x+a.vec)) |
| 29 | private lemma visits_cat {V : Type*} [AddCommGroup V] [One V] (x y : Four V) (w v : Walk) : |
| 30 | y ∈ visits x (w++v) ↔ y ∈ visits x w ∨ y ∈ visits (stop x w) v := by |
| 31 | induction w generalizing x with |
| 32 | | nil => |
| 33 | simp only [List.nil_append,visits,List.mem_singleton,stop] |
| 34 | exact ⟨fun h => Or.inr h, fun h => h.elim (fun hh => hh.symm ▸ start x v) id⟩ |
| 35 | | cons a w IH => simp only [List.cons_append,visits,List.mem_cons, IH, stop]; rw [or_assoc] |
| 36 | private lemma native_cat (x : Site n) (w v : Walk) : |
| 37 | native x (w++v) = native x w ∪ native (stop x w) v := by |
| 38 | ext; simp [native, visits_cat] |
| 39 | |
| 40 | lemma to_ball (x : Site n) (w : Walk) {y : Site n} (hy : y∈native x w) : separation x y ≤ w.length := by |
| 41 | unfold native at hy; rw [List.mem_toFinset] at hy |
| 42 | induction w generalizing x with |
| 43 | | nil => simp only [visits,List.mem_singleton] at hy; simp [hy] |
| 44 | | cons a w IH => |
| 45 | rcases List.mem_cons.mp hy with rfl|h |
| 46 | · simp |
| 47 | have he : separation x (x+a.vec) ≤ 1 := by |
| 48 | rw [separation_comm,separation,add_comm x,add_sub_cancel_right, Step.vec]; split |
| 49 | · rw [pdist_neg]; exact pdist_step _ |
| 50 | exact pdist_step _ |
| 51 | have hh := IH _ h |
| 52 | exact (separation_triangle x (x+a.vec) y).trans (by simp only [List.length_cons]; omega) |
| 53 | |
| 54 | private lemma covered (M : ℕ) (x : Site n) (w : Walk) (h : w.length ≤ M) : |
| 55 | coverNumber M (native x w) ≤ 1 := by |
| 56 | have hx (y : Site n) (hy : y∈native x w) := (to_ball _ _ hy).trans h |
| 57 | have he : covers M (native x w) {x} := ⟨fun y hy => halo_spec.mpr ⟨x,mem_singleton_self x,hx y hy⟩, |
| 58 | ship_halo _ (by intro i hi j hj; rw [mem_singleton.mp hi,mem_singleton.mp hj])⟩ |
| 59 | simpa using list_cost _ he |
| 60 | |
| 61 | /-- Include revisits and endpoints; chunk path into M-step pieces. -/ |
| 62 | lemma native_cover (x : Site n) {M : ℕ} (hm : 0 < M) (w : Walk) : |
| 63 | M * coverNumber M (native x w) ≤ M+w.length := by |
| 64 | suffices he : ∀ k : ℕ, ∀ (x : Site n) (w : Walk), w.length=k → |
| 65 | M*coverNumber M (native x w) ≤ M+k from he w.length x w rfl |
| 66 | intro k; induction k using Nat.strong_induction_on with |
| 67 | | h k IH => |
| 68 | intro x w hk |
| 69 | by_cases h : k≤M |
| 70 | · simpa only [mul_one] using le_trans (Nat.mul_le_mul_left M (covered M x w (hk ▸ h))) (by omega) |
| 71 | let u := w.take M; let v := w.drop M |
| 72 | have hu : u.length=M := by unfold u; rw [List.length_take,hk,min_eq_left (by omega)] |
| 73 | have hv : v.length=k-M := by unfold v; rw [List.length_drop,hk] |
| 74 | let y := stop x u |
| 75 | have he : native x w = native x u ∪ native y v := by |
| 76 | rw [← native_cat,List.take_append_drop] |
| 77 | rw [he] |
| 78 | have hi := meets_sum (ending x u) (show y ∈ native y v from List.mem_toFinset.mpr (start ..)) M |
| 79 | apply (Nat.mul_le_mul_left M hi).trans; rw [Nat.mul_add] |
| 80 | have ht := Nat.mul_le_mul_left M (covered M x u hu.le) |
| 81 | rw [Nat.mul_one] at ht |
| 82 | have hz := IH (k-M) (by omega) y v hv |
| 83 | omega |
| 84 | |
| 85 | -- Bundle of curvature slots at one anchor, length old cost as in `Atom.length` |
| 86 | private def slot (x : Site n) (a : Slot) := a.stencil.image (fun u => wrap n u+x) |
| 87 | private def walk (a : Slot) := a.walk ++ square a.plaq.val.1 a.plaq.val.2 |
| 88 | |
| 89 | private lemma priced (x : Site n) (a : Slot) : slot x a = native x (walk a) := by |
| 90 | have he (w : Walk) (y : Cover) : (visits y w).map (fun v => wrap n v + x) = visits (wrap n y + x) w := by |
| 91 | induction w generalizing y with |
| 92 | | nil => simp [visits] |
| 93 | | cons a w IH => simp [visits, IH, wrap_vec, add_right_comm] |
| 94 | have hx : (visits (0:Cover) (walk a)).toFinset = a.stencil := by |
| 95 | ext; simp [Slot.stencil, Slot.offset,walk, visits_cat] |
| 96 | unfold slot native; rw [← hx] |
| 97 | have hw : (visits (0:Cover) (walk a)).map (fun v => wrap n v+x) = visits x (walk a) := by |
| 98 | simpa using he (walk a) 0 |
| 99 | rw [← hw]; ext; simp |
| 100 | |
| 101 | private lemma slot_span (x : Site n) (a : Slot) (y : Site n) (h : y ∈ slot x a) : separation x y ≤ a.length := by |
| 102 | rw [priced x a] at h; exact (to_ball x _ h).trans_eq (List.length_append ..) |
| 103 | private lemma slot_size (x : Site n) (a : Slot) (M : ℕ) (hM : 0 < M) : |
| 104 | M*coverNumber M (slot x a) ≤ M+a.length := by |
| 105 | rw [priced]; apply (native_cover x hM (walk a)).trans_eq |
| 106 | unfold walk; rw [List.length_append]; rfl |
| 107 | private lemma first (x : Site n) (a : Slot) : x∈slot x a := by rw [priced]; exact List.mem_toFinset.mpr (start ..) |
| 108 | |
| 109 | variable {d : ℕ} |
| 110 | |
| 111 | def bundle (x : Site n) (A : Fin d → Slot) := insert x (univ.biUnion fun i => slot x (A i)) |
| 112 | def length (A : Fin d → Slot) := ∑ i, (A i).length |
| 113 | |
| 114 | lemma size (x : Site n) (A : Fin d → Slot) {M : ℕ} (hM : 0 < M) : |
| 115 | M*coverNumber M (bundle x A) ≤ (1+d)*M+length A := by |
| 116 | let Z (s : Finset (Fin d)) := insert x (s.biUnion fun i => slot x (A i)) |
| 117 | have he (s : Finset (Fin d)) : M*coverNumber M (Z s) ≤ (1+s.card)*M+∑ i∈s,(A i).length := by |
| 118 | induction s using Finset.induction_on with |
| 119 | | empty => |
| 120 | have he' := covered M x ([]:Walk) (by simp) |
| 121 | simpa [Z,native,visits] using (show M*coverNumber M (native x []) ≤ M*1 from |
| 122 | Nat.mul_le_mul_left M he') |
| 123 | | @insert a s ha IH => |
| 124 | have eq : Z (insert a s) = slot x (A a) ∪ Z s := by ext i; simp [Z] |
| 125 | rw [eq,sum_insert ha,card_insert_of_notMem ha] |
| 126 | apply (Nat.mul_le_mul_left M (meets_sum (first x (A a)) (show x∈Z s from mem_insert_self ..) M)).trans |
| 127 | have hi := slot_size x (A a) M hM |
| 128 | nlinarith |
| 129 | simpa only [card_univ,Fintype.card_fin,Z,bundle,length] using he univ |
| 130 | |
| 131 | lemma where_slot (x : Site n) (A : Fin d → Slot) (y : Site n) (h : y∈bundle x A) : |
| 132 | separation x y ≤ length A := by |
| 133 | rcases mem_insert.mp h with rfl|h |
| 134 | · simp |
| 135 | obtain ⟨i,hi,h⟩ := mem_biUnion.mp h |
| 136 | exact (slot_span x (A i) y h).trans (Finset.single_le_sum (f:=fun i => (A i).length) (fun j _ => |
| 137 | Nat.zero_le _) hi) |
| 138 | end Geometry |
| 139 | |
| 140 | section Charges |
| 141 | variable {d : ℕ} {ι : Type*} (p : Ratio c f) (l B : ℕ) |
| 142 | |
| 143 | def baseFee := preCost l + conversion p l*(1+(d:ℝ)) |
| 144 | def legFee := conversion p l / (B:ℝ) |
| 145 | -- charge W uses `B`; need post-L. |
| 146 | def originFee := l*B+1 |
| 147 | |
| 148 | lemma pay_locations (o : Site f) (A : Fin d → Slot) (Y : Support c) |
| 149 | (h : Y ⊆ enlargement p l B (bundle o A)) : ∀ y ∈ Y, |
| 150 | separation y (p.parent o) ≤ originFee l B * (1+length A) := by |
| 151 | intro y hy; obtain ⟨x,hx,he⟩ := halo_spec.mp (h hy) |
| 152 | obtain ⟨x,hx',rfl⟩ := mem_image.mp hx |
| 153 | have hv := where_slot o A x hx' |
| 154 | have hr := foreshorten p o x |
| 155 | have hm : 1 ≤ p.count.val := p.count.property |
| 156 | have hi : separation (p.parent o) (p.parent x) ≤ separation o x + 1 := by |
| 157 | apply Nat.le_of_mul_le_mul_left _ (show 0 < p.count.val from hm) |
| 158 | calc |
| 159 | _ ≤ _ := hr |
| 160 | _ ≤ _ := by rw [Nat.mul_add,Nat.mul_one] |
| 161 | exact Nat.add_le_add_right (by nth_rw 1 [← one_mul (separation o x)] |
| 162 | exact Nat.mul_le_mul_right _ hm) _ |
| 163 | rw [separation_comm y] |
| 164 | apply (separation_triangle (p.parent o) (p.parent x) _).trans |
| 165 | unfold originFee; nlinarith |
| 166 | |
| 167 | lemma pay_bundle (o : Site f) (A : Fin d → Slot) (Y : Support c) |
| 168 | (h : Y ⊆ enlargement p l B (bundle o A)) (hB : 0 < B) : |
| 169 | (coverNumber B Y:ℝ) ≤ baseFee (d:=d) p l + legFee p l B * length A := by |
| 170 | have he := footprint p l B B (bundle o A) hB (by omega) |
| 171 | apply le_trans _ (le_trans he ?_) |
| 172 | · exact_mod_cast cover_mono h B |
| 173 | have hp : 0 < (B:ℝ) := by exact_mod_cast hB |
| 174 | have hi : (B:ℝ)*coverNumber B (bundle o A) ≤ (1+(d:ℝ))*B+length A := by |
| 175 | exact_mod_cast size o A hB |
| 176 | have hh : 0 ≤ conversion p l := by unfold conversion preCost; positivity |
| 177 | unfold baseFee legFee; field_simp; nlinarith [mul_le_mul_of_nonneg_left hi hh] |
| 178 | |
| 179 | /-- Output hit with COMPLETE path coefficients at common anchors. |
| 180 | The tail here is in TRUE length, with full cover charges and any fixed |
| 181 | polynomial true-length costs. -/ |
| 182 | theorem bundle_hit (A : ι → Fin d → Slot) {σ Γ : ℝ} (w : ι → ℝ) (_hσ : 0 < σ) |
| 183 | (hw : ∀ i, 0≤w i) (h : SumBudget (fun i => w i * Real.exp (σ*length (A i))) Γ) |
| 184 | (Y : Site f × ι → Support c) (hy : ∀ i, Y i ⊆ enlargement p l B (bundle i.1 (A i.2))) |
| 185 | (hB : 0 < B) {C a ε : ℝ} (hC : 0 ≤ C) (hr : reserve σ a (legFee p l B) ε) |
| 186 | (k : ℕ) (g : Site f × ι → ℝ) (hg : ∀ i, 0≤g i) |
| 187 | (he : ∀ i, g i ≤ C*w i.2*(1+(length (A i.2):ℝ))^k) (m : ℕ) (x : Site c) : |
| 188 | SumBudget (fun i => if m ≤ length (A i.2) then (if x∈Y i then |
| 189 | g i*Real.exp (a*coverNumber B (Y i)) else 0) else 0) |
| 190 | (payment (p.count.val^4) (originFee l B) k ε C Γ a (baseFee (d:=d) p l) * Real.exp (-ε)^m) := by |
| 191 | have hp : Footprint.Anchored (Prod.fst (α:=Site f) (β:=ι)) (w ∘ Prod.snd) |
| 192 | (fun i => length (A i.2)) σ Γ := by |
| 193 | let b (x : Site f) (i : Site f) := if i=x then (1:ℝ) else 0 |
| 194 | have hb x : SumBudget (b x) 1 := budget_finite (fun i => by unfold b; split <;> norm_num) (by simp [b]) |
| 195 | intro x |
| 196 | convert budget_prod (hb x) h using 1 |
| 197 | · ext i; simp [b] |
| 198 | simp |
| 199 | refine assigned_tail p.parent _ (crowd p) Prod.fst (w ∘ Prod.snd) (fun i => hw i.2) |
| 200 | _ Y hp (originFee l B) k B (fun i x hx => pay_locations p l B _ (A i.2) _ (hy i) x hx) |
| 201 | (fun i => pay_bundle p l B _ _ _ (hy i) hB) hC hr g hg he m x |
| 202 | end Charges |
| 203 | section Applications |
| 204 | variable {G : Gauge} {d : ℕ} (p : Ratio c f) (l B : ℕ) |
| 205 | |
| 206 | lemma atom_foot (x : Site f) (A : Atom G d) : A.footprint x = bundle x A.leg := by |
| 207 | unfold Atom.footprint Atom.stencil bundle slot |
| 208 | rw [image_insert]; simp only [map_zero,zero_add]; congr 1 |
| 209 | ext i; simp [Finset.mem_image, Finset.mem_biUnion]; tauto |
| 210 | |
| 211 | |
| 212 | |
| 213 | /-- Ordered pairs of row labels (squares) at fixed root type. Other |
| 214 | root types are finite pre-L. The sum is not over pairs of positions |
| 215 | only. Any other cost from a kept-row test needs to be checked as well; |
| 216 | if it fits in the surrounding halo use l here including THAT expense. -/ |
| 217 | def duplex (R : PathData G) (r : PlaqAxes) (i : ℕ × ℕ) : Fin 2 → Slot := |
| 218 | ![(R.row r i.1).2,(R.row r i.2).2] |
| 219 | |
| 220 | def mate (R : PathData G) (r : PlaqAxes) (i : ℕ × ℕ) := |(R.row r i.1).1| * |(R.row r i.2).1| |
| 221 | |
| 222 | lemma duplex_price (R : PathData G) (r : PlaqAxes) (i : ℕ × ℕ) : length (duplex R r i) = |
| 223 | (R.row r i.1).2.length + (R.row r i.2).2.length := by simp [length,duplex,Fin.sum_univ_succ] |
| 224 | |
| 225 | |
| 226 | end Applications |
| 227 | end YM.Push.AbsoluteSums.Paths |