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.AnalyticNext.CONNECTED_ACTIVITY_BOUNDS.Speed |
| 2 | import YM.Push.ABSOLUTE_SUMS.Footprint |
| 3 | |
| 4 | |
| 5 | /-! |
| 6 | # Complete positional and Schur footprints of the counted array |
| 7 | |
| 8 | (Not yet clamp, branch or record extension work.) |
| 9 | -/ |
| 10 | set_option autoImplicit false |
| 11 | noncomputable section |
| 12 | namespace YM.AnalyticNext.ConnectedActivity.Aff |
| 13 | open Function Lattice RG Precision Wilson Pressure Pressure.Stores Exterior Turn |
| 14 | open Matrix Work.F03 Progress.StationaryScenes Push.AbsoluteSums Tree |
| 15 | open Win Animals |
| 16 | open scoped Topology BigOperators Matrix.Norms.Frobenius Classical |
| 17 | variable {G : Gauge} {c f n : Side} {S : StepData c f} |
| 18 | |
| 19 | section sites |
| 20 | variable {ι κ : Type*} [Fintype ι] [Fintype κ] (d : ι → Site c) {P Q : ℝ} |
| 21 | open Finset Corona |
| 22 | |
| 23 | lemma population_copy (hd : governs d P) : |
| 24 | governs (fun i : ι×κ => d i.1) (P*Fintype.card κ) := by |
| 25 | intro x r |
| 26 | let E : ι → Prop := fun i => separation x (d i) ≤ r |
| 27 | have he : ((univ : Finset (ι×κ)).filter fun i => separation x (d i.1) ≤ r) ⊆ |
| 28 | (univ.filter fun i => separation x (d i) ≤ r) ×ˢ univ := fun i hi => mem_product.mpr |
| 29 | ⟨mem_filter.mpr ⟨mem_univ _, (mem_filter.mp hi).2⟩,mem_univ _⟩ |
| 30 | have ht := card_le_card he |
| 31 | apply (Nat.cast_le (α:=ℝ).mpr ht).trans; rw [card_product,card_univ,Nat.cast_mul]; apply le_trans |
| 32 | (mul_le_mul_of_nonneg_right (hd x r) (by positivity)) (le_of_eq (by ring)) |
| 33 | |
| 34 | lemma population_signed (hd : governs d P) : |
| 35 | governs (fun i : Signed × ι => i.1.act (d i.2)) (Fintype.card Signed*P) := by |
| 36 | intro x r |
| 37 | let Y := univ.filter fun i : Signed×ι => separation x (i.1.act (d i.2)) ≤ r |
| 38 | have hs (p : Signed) : (((Y.filter fun i => i.1=p).card:ℕ):ℝ) ≤ P * (1+(r:ℝ))^4 := by |
| 39 | let V := Y.filter (fun i => i.1=p) |
| 40 | let W := univ.filter fun i => separation (p⁻¹.act x) (d i) ≤ r |
| 41 | have he : V ⊆ ({p} ×ˢ W) := by |
| 42 | rintro ⟨s,i⟩ h; obtain ⟨hn,h⟩ := mem_filter.mp h |
| 43 | change s=p at h; subst p; refine mem_product.mpr ⟨by simp,mem_filter.mpr ⟨mem_univ _,?_⟩⟩ |
| 44 | rw [← separation_signed (s⁻¹.act x) (d i) s, s.act_inv]; exact (mem_filter.mp hn).2 |
| 45 | have hp := card_le_card he; rw [card_product,card_singleton,one_mul] at hp |
| 46 | exact (Nat.cast_le.mpr hp).trans (hd _ _) |
| 47 | change (Y.card:ℝ) ≤ _ |
| 48 | calc |
| 49 | _ = ∑ p : Signed, (((Y.filter fun i => i.1=p).card:ℕ):ℝ) := by |
| 50 | simpa using (sum_fiberwise_of_maps_to (g:=Prod.fst) (t:=univ) (s:=Y) (fun _ _ => mem_univ _) (fun _ => (1:ℝ))).symm |
| 51 | _ ≤ ∑ _ : Signed,P*(1+(r:ℝ))^4 := sum_le_sum fun i _ => hs i |
| 52 | _ = _ := by simp [mul_assoc] |
| 53 | |
| 54 | lemma population_add (q : κ→Site c) (h : governs d P) (he : governs q Q) : governs (Sum.elim d q) (P+Q) := by |
| 55 | intro x r |
| 56 | let s := univ.filter (fun i=> separation x (d i) ≤ r); let t := univ.filter (fun i=> separation x (q i) ≤ r) |
| 57 | have hi : (univ.filter (fun i : ι⊕κ => separation x (Sum.elim d q i)≤r))⊆s.disjSum t := by |
| 58 | rintro (i|i) hi |
| 59 | · exact inl_mem_disjSum.mpr (Finset.mem_filter.mpr ⟨mem_univ _,(mem_filter.mp hi).2⟩) |
| 60 | exact inr_mem_disjSum.mpr (mem_filter.mpr ⟨mem_univ _,(mem_filter.mp hi).2⟩) |
| 61 | apply (Nat.cast_le.mpr (card_le_card hi)).trans |
| 62 | rw [card_disjSum,Nat.cast_add,add_mul]; exact add_le_add (h _ _) (he _ _) |
| 63 | |
| 64 | lemma population_physical (c : Side) : governs (id:Site c → Site c) 16 := by |
| 65 | intro x r |
| 66 | have he : (univ.filter (fun i=>separation x i≤r)) ⊆ neighbors r x := fun i hi => |
| 67 | (neighbors_mem ..).mpr (mem_filter.mp hi).2 |
| 68 | apply (Nat.cast_le (α:=ℝ).mpr ((card_le_card he).trans (neighbors_card ..))).trans |
| 69 | unfold ballCost; push_cast; rw [show (16:ℝ) = 2^4 by norm_num, ← mul_pow]; gcongr; linarith |
| 70 | |
| 71 | lemma population_parent (q : Ratio c f) : governs q.parent ((q.count.val:ℝ)^4*16) := by |
| 72 | intro x r |
| 73 | have he : (univ.filter (fun i=> separation x (q.parent i)≤r)) ⊆ |
| 74 | univ.filter (fun i=> q.parent i∈univ.filter (fun i : Site c => separation x i ≤ r)) := fun i hi => |
| 75 | mem_filter.mpr ⟨mem_univ _,mem_filter.mpr ⟨mem_univ _,(mem_filter.mp hi).2⟩⟩ |
| 76 | apply (Nat.cast_le (α:=ℝ).mpr ((card_le_card he).trans (Footprint.crowd q _))).trans |
| 77 | rw [Nat.cast_mul,Nat.cast_pow]; exact (mul_le_mul_of_nonneg_right (population_physical c x r) (by positivity)).trans_eq |
| 78 | (by ring) |
| 79 | end sites |
| 80 | |
| 81 | def density_home (L : Side) : ℝ := ((L.val:ℝ)^4*16)*Fintype.card Axis |
| 82 | def density_variables (G : Gauge) (L : Side) : ℝ := density_home L*Fintype.card G.ColorIndex |
| 83 | |
| 84 | def density_item (L : Side) : ℝ := (Fintype.card Signed:ℝ) * |
| 85 | ((((L.val:ℝ)^4*16)*Fintype.card PlaqAxes)*Fintype.card Bool + 16*Fintype.card Axis) |
| 86 | |
| 87 | def density_orbit (G : Gauge) (L : Side) : ℝ := density_item L*Fintype.card G.ColorIndex |
| 88 | |
| 89 | lemma governs_home (S : StepData c f) : governs (home S) (density_home S.patch.L) := |
| 90 | population_copy (κ:=Axis) S.ratio.parent (population_parent _) |
| 91 | |
| 92 | lemma governs_vars (S : StepData c f) : governs (fun i : Vars G f => home S i.1) (density_variables G S.patch.L) := |
| 93 | population_copy (home S) (governs_home S) |
| 94 | |
| 95 | lemma governs_item (S : StepData c f) : governs (base S) (density_item S.patch.L) := |
| 96 | population_signed (center S) |
| 97 | (population_add _ _ |
| 98 | (population_copy (κ:=Bool) (fun i : Cell f => S.ratio.parent i.1) (population_copy |
| 99 | (κ:=PlaqAxes) S.ratio.parent (population_parent S.ratio))) |
| 100 | (population_copy (κ:=Axis) (id:Site c → Site c) (population_physical c))) |
| 101 | |
| 102 | lemma governs_Ix (S : StepData c f) : governs (fun i : Ix G S => base S i.1) (density_orbit G S.patch.L) := |
| 103 | population_copy (base S) (governs_item S) |
| 104 | |
| 105 | def drow (S : StepData c f) (i : Ix G S) := base S i.1 |
| 106 | def dcol (S : StepData c f) (i : Vars G f) := home S i.1 |
| 107 | |
| 108 | section receipts |
| 109 | |
| 110 | -- Prices doesn't imply direction gap. |
| 111 | open Green |
| 112 | variable (S : StepData c f) (T : Tube G S) (F : Forest S.ratio) (A : Stores S) (V : Config G c) (x : ℝ) |
| 113 | |
| 114 | structure GramCost (ν C : ℝ) : Prop where |
| 115 | unmasked : Both (drow S) (dcol S) (scale T x V) ν C C |
| 116 | affine : Both (drow S) (dcol S) (Dmat T F x A V) ν C C |
| 117 | price : Both (dcol S) (dcol S) (gram T F x A V) ν (C^2+1) (C^2+1) |
| 118 | rangeB (i j : Vars G f) : gram T F x A V i j≠0 → separation (dcol S i) (dcol S j) ≤ 2*stencilD S.patch (till x) |
| 119 | |
| 120 | lemma stencil (P : Teller G) (hT : P.Funds S T) (η ν C : ℝ) (hC : 0 ≤ C) (hn : 0≤ν) (hη : ν<η) |
| 121 | (hc : ∀ i j, Green.wt η (drow S i) (dcol S j) * |scale T x V i j| ≤ C) : |
| 122 | let Y := max (density_orbit G S.patch.L) (density_variables G S.patch.L) |
| 123 | GramCost S T F A V x ν (planePrice Y (η-ν)*C) := by |
| 124 | intro Y |
| 125 | have hp : 0 ≤ Y := le_max_of_le_left (by unfold density_orbit density_item; positivity) |
| 126 | have h1 : governs (dcol (G:=G) S) Y := fun a b => (governs_vars (G:=G) S a b).trans |
| 127 | (mul_le_mul_of_nonneg_right (le_max_right ..) (by positivity)) |
| 128 | have h2 : governs (drow (G:=G) S) Y := fun a b => (governs_Ix (G:=G) S a b).trans |
| 129 | (mul_le_mul_of_nonneg_right (le_max_left ..) (by positivity)) |
| 130 | let L := planePrice Y (η-ν)*C |
| 131 | have hg : 0 ≤ L := mul_nonneg (Win.planePrice_nn hp (sub_pos.mpr hη)) hC |
| 132 | have hs i j : |Dmat T F x A V i j| ≤ |scale T x V i j| := by unfold Dmat; rw [Matrix.of_apply]; split <;> simp |
| 133 | have ht : Both (drow S) (dcol S) (Dmat T F x A V) ν L L := |
| 134 | point_both h1 h2 hp hp hη hC fun i j => ((mul_le_mul_of_nonneg_left (hs i j) (wt_pos ..).le).trans |
| 135 | (hc i j)) |
| 136 | refine ⟨point_both h1 h2 hp hp hη hC hc, ht, ?_, ?_⟩ |
| 137 | · unfold gram |
| 138 | simp_rw [pow_two] |
| 139 | apply plusBoth (timesBoth hn (both_transpose ht) ht hg hg) |
| 140 | let M := Matrix.diagonal (fun j : Vars G f => if j.1 ∉ activeB A F (radiusB x) then (1:ℝ) else 0) |
| 141 | have hy : Rows (dcol S) (dcol S) M ν 1 := by |
| 142 | intro i; dsimp only [M]; rw [Finset.sum_eq_single i (fun j _ hj => ?_) (by simp), diagonal_apply_eq] |
| 143 | · split <;> simp [wt] |
| 144 | rw [Matrix.diagonal_apply_ne _ (Ne.symm hj),abs_zero,mul_zero] |
| 145 | exact ⟨hy,by change Rows (dcol S) (dcol S) M.transpose ν 1; rw [show M.transpose = M from Matrix.isSymm_diagonal _]; exact hy⟩ |
| 146 | intro i j hi; contrapose! hi; unfold gram |
| 147 | rw [Matrix.add_apply, Matrix.diagonal_apply_ne _ ?_,add_zero,Matrix.mul_apply]; swap |
| 148 | · rintro e; simp [e] at hi |
| 149 | apply Finset.sum_eq_zero |
| 150 | intro q _; rw [Matrix.transpose_apply] |
| 151 | have hx l (he : stencilD S.patch (till x)<separation (drow S q) (dcol S l)) : Dmat T F x A V q l=0 := by |
| 152 | have hi := hs q l |
| 153 | rw [tangent_support T hT x V q l he, abs_zero] at hi |
| 154 | exact abs_eq_zero.mp (le_antisymm hi (abs_nonneg _)) |
| 155 | by_cases h : stencilD S.patch (till x)<separation (drow S q) (dcol S i) |
| 156 | · rw [hx i h,zero_mul] |
| 157 | have hh := separation_triangle (dcol S i) (drow S q) (dcol S j) |
| 158 | rw [separation_comm _ (drow S q)] at hh |
| 159 | rw [hx j (by omega),mul_zero] |
| 160 | |
| 161 | end receipts |
| 162 | |
| 163 | open Green |
| 164 | |
| 165 | theorem gram_budget (P : Teller G) (D : Patch) (h : D.Branches P.bind G) : |
| 166 | ∃ C : ℝ, 0 < C ∧ |
| 167 | ∀ (c f : Side) (S : StepData c f) (T : Tube G S), P.Funds S T → S.patch=D → |
| 168 | ∀ (F : Forest S.ratio) (A : Stores S) (V : Config G c) (x : ℝ), GramCost S T F A V x (P.top.width/2) C := by |
| 169 | obtain ⟨C,hC,H⟩ := received P D h |
| 170 | let Y := max (density_orbit G D.L) (density_variables G D.L) |
| 171 | let s := P.top.width; let T := planePrice Y (s-s/2)*C |
| 172 | have hs : 0 < s := P.top.width_pos |
| 173 | have hv : 0 ≤ Y := le_max_of_le_left (by unfold density_orbit density_item; positivity) |
| 174 | have hy : 0 ≤ T := mul_nonneg (planePrice_nn hv (by linarith)) hC.le |
| 175 | refine ⟨1+T,by positivity,fun c f S K hk hS F A V x => ?_⟩ |
| 176 | obtain ⟨h1,h2,h3,h4⟩ := stencil S K F A V x P hk s (s/2) C hC.le (by positivity) |
| 177 | (half_lt_self hs) (H c f S K hk hS x V) |
| 178 | have hl : T=planePrice (max (density_orbit G S.patch.L) (density_variables G S.patch.L)) (s-s/2)*C := by simp [T,Y,hS] |
| 179 | rw [← hl] at h1 h2 h3 |
| 180 | have hq : T ≤ 1+T := le_add_of_nonneg_left zero_le_one |
| 181 | exact ⟨monoBoth h1 le_rfl hq hq,monoBoth h2 le_rfl hq hq,monoBoth h3 le_rfl (by gcongr) (by gcongr),h4⟩ |
| 182 | end YM.AnalyticNext.ConnectedActivity.Aff |