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.CUBIC_MATCH.Lift.Count |
| 2 | import YM.Next.FREE_KERNELS.Lifts |
| 3 | |
| 4 | set_option warningAsError false |
| 5 | |
| 6 | /-! |
| 7 | # Passing the single-momentum stock up a leg |
| 8 | |
| 9 | The single lift of verified `Next.Free` works on *all* its stipulated input |
| 10 | rows, not just the linear-horizon applications; costs and linearity to use it |
| 11 | also here. Basic (degree-zero value-zero) lift provided here alongside; acts |
| 12 | again in one group. |
| 13 | -/ |
| 14 | set_option autoImplicit false |
| 15 | noncomputable section |
| 16 | namespace YM.CubicMatch.Lift |
| 17 | open Filter Function Lattice Exterior Matrix Next.Free Work.F08 Bloch Laurent RG |
| 18 | open scoped Topology BigOperators |
| 19 | |
| 20 | variable {r : ℕ} {α β γ ι : Type*} |
| 21 | |
| 22 | /-- Rows supported in one independent group. -/ |
| 23 | abbrev Array1 (r : ℕ) := TypeFace r → Cover → ℝ |
| 24 | abbrev emptyPrefix (A : Array1 r) : Row Unit (TypeFace r) := fun _ => A |
| 25 | |
| 26 | |
| 27 | lemma plus_rows (R T : Row α β) : plusRows R T = R + T := by |
| 28 | funext i j x |
| 29 | change R _ _ _ - -1*T _ _ _=R _ _ _+T _ _ _ |
| 30 | ring |
| 31 | lemma scale_rows (l : ℝ) (R : Row α β) : scaleRows l R=l • R := rfl |
| 32 | |
| 33 | lemma payout_add {m : Cover → Cover → ℝ} {η θ D} (p : Tariff m η θ D) (ht : 0 ≤ θ) (hd : 0 ≤ D) |
| 34 | {u v : Cover → ℝ} {B C} (hu : Laurent.Width η B u) (hv : Laurent.Width η C v) : |
| 35 | payOut m (u+v) = payOut m u+payOut m v := by |
| 36 | funext i; simp only [payOut,Pi.add_apply,add_mul] |
| 37 | have h (z : Cover → ℝ) (M : ℝ) (h : Laurent.Width η M z) : |
| 38 | Summable fun j => z j*m j i := .of_norm ((p.freedom hd h ht).prod_symm.prod_factor i) |
| 39 | exact (h u _ hu).tsum_add (h v _ hv) |
| 40 | lemma payout_scale (m : Cover → Cover → ℝ) (u : Cover → ℝ) (a : ℝ) : payOut m (a • u) = a • payOut m u := by |
| 41 | funext i; simp [payOut,mul_assoc,tsum_mul_left] |
| 42 | |
| 43 | variable {R T : Row α β} |
| 44 | lemma pending_linear (h : Whole R) (f : Whole T) (s : Axis) : pending s (R+T)=pending s R+pending s T := by |
| 45 | obtain ⟨η,x,y,hθ,hR,hT⟩ := h.ditto f |
| 46 | funext i j; exact payout_add (eval_axis η hθ.le s) hθ.le zero_le_one (hR i j) (hT i j) |
| 47 | lemma dash_linear (h : Whole R) (f : Whole T) (s : Axis) : dashAxis s (R+T)=dashAxis s R+dashAxis s T := by |
| 48 | obtain ⟨η,x,y,hθ,hR,hT⟩ := h.ditto f |
| 49 | funext i j; exact payout_add (dividend η hθ s) (by positivity) (by positivity) (hR i j) (hT i j) |
| 50 | lemma shed_linear {A M : Row α (TypeFace (r+1))} (h : Whole A) (f : Whole M) (s : Axis) : |
| 51 | shed s r (A+M) = shed s r A + shed s r M := by |
| 52 | have he := pending_linear h f s |
| 53 | funext i j x; simp only [shed,Pi.add_apply]; split |
| 54 | · simp only [add_zero] |
| 55 | rw [he]; rfl |
| 56 | lemma shed_scale (R : Row α (TypeFace (r+1))) (s : Axis) (a : ℝ) : |
| 57 | shed s r (a • R)=a • shed s r R := by |
| 58 | funext i j x; simp only [shed,Pi.smul_apply]; split |
| 59 | · rw [smul_zero] |
| 60 | exact congr_fun (payout_scale _ _ _) x |
| 61 | |
| 62 | private lemma compose_plus [Fintype α] [Fintype β] [Fintype γ] {P : Row β γ} |
| 63 | (h : Whole R) (f : Whole T) (g : Whole P) : composeRows (R+T) P=composeRows R P+composeRows T P := by |
| 64 | rw [← plus_rows,← plus_rows (composeRows R P)] |
| 65 | refine bank_injective (((h.plus f).prod g).safe) (((h.prod g).plus (f.prod g)).safe) (fun i => ?_) |
| 66 | rw [(h.plus f).acts g i,h.acts_plus f i,Matrix.add_mul,(h.prod g).acts_plus (f.prod g) i,h.acts g i,f.acts g i] |
| 67 | private lemma compose_scale [Fintype α] [Fintype β] [Fintype γ] {P : Row β γ} |
| 68 | (h : Whole R) (f : Whole P) (l : ℝ) : composeRows (l • R) P=l • composeRows R P := by |
| 69 | rw [← scale_rows,← scale_rows] |
| 70 | refine bank_injective (((h.weight _).prod f).safe) (((h.prod f).weight _).safe) (fun i => ?_) |
| 71 | rw [(h.weight _).acts f,acts_scale,Matrix.smul_mul,acts_scale,h.acts f i] |
| 72 | lemma fold_linear {A M : Row Unit (TypeFace (r+1))} (h : Whole A) (g : Whole M) (l : List Axis) : |
| 73 | folded r (A+M) l=folded r A l+folded r M l := by |
| 74 | induction l generalizing A M with |
| 75 | | nil => simp [folded] |
| 76 | | cons a l ih => |
| 77 | simp only [folded,shed_linear h g, relief,dash_linear h g, plus_rows] |
| 78 | rw [compose_plus (dash_whole h _) (dash_whole g _) (constant_whole _), ih (shed_whole _ h) (shed_whole _ g)] |
| 79 | abel |
| 80 | lemma fold_scale {A : Row Unit (TypeFace (r+1))} (h : Whole A) (l : List Axis) (s : ℝ) : |
| 81 | folded r (s • A) l=s • folded r A l := by |
| 82 | induction l generalizing A with |
| 83 | | nil => simp [folded] |
| 84 | | cons a l ih => |
| 85 | have he : dashAxis a (s • A) = s • dashAxis a A := funext fun i => funext fun j => payout_scale _ _ _ |
| 86 | simp only [folded, shed_scale, plus_rows, ih (shed_whole _ h), relief,he, |
| 87 | compose_scale (dash_whole h _) (constant_whole _) s, smul_add] |
| 88 | |
| 89 | /-- Scalar contraction by z_i−1. -/ |
| 90 | def boundary (d : ℕ) (A : Array1 (d+1)) (b : TypeFace d) (x : Cover) := |
| 91 | ∑ k : TypeFace (d+1), ∑ a : Axis, Exterior.left ℝ d a k b * (A k (x-step a)-A k x) |
| 92 | |
| 93 | lemma boundary_rows (A : Array1 (r+1)) : emptyPrefix (boundary r A) = composeRows (emptyPrefix A) (cobound r) := by |
| 94 | funext i j x |
| 95 | symm |
| 96 | refine Finset.sum_congr rfl (fun k hk => ?_) |
| 97 | change routed id (A k) (fun _ => cobound r k j) x = _ |
| 98 | let e : Equiv.Perm Cover := (Equiv.neg _).trans (Equiv.addLeft x) |
| 99 | have he (i : Cover) : e i=x-i := by simp [e,sub_eq_add_neg] |
| 100 | unfold routed; rw [← e.tsum_eq] |
| 101 | simp_rw [he,id_eq,sub_sub_cancel]; rw [tsum_eq_sum (s:=support)]; swap |
| 102 | · exact fun i hi => by rw [certified _ _ _ _ hi, mul_zero] |
| 103 | simp_rw [cobound,Finset.mul_sum]; rw [Finset.sum_comm] |
| 104 | refine Finset.sum_congr rfl (fun d hd => ?_) |
| 105 | have ht : step d ∈ support := Finset.mem_insert_of_mem (Finset.mem_image.mpr ⟨_, Finset.mem_univ _,rfl⟩) |
| 106 | have hx : (0:Cover) ∈ support := Finset.mem_insert_self .. |
| 107 | simp only [mul_sub,mul_ite,mul_one,mul_zero,Finset.sum_sub_distrib,Finset.sum_ite_eq', ht, hx, if_true,sub_zero] |
| 108 | ring |
| 109 | |
| 110 | def Lifted (A : Array1 (r+1)) : Array1 (r+2) := capLift r (emptyPrefix A) () |
| 111 | |
| 112 | lemma lift_rows (A : Array1 (r+1)) : emptyPrefix (Lifted A)=capLift r (emptyPrefix A) := by |
| 113 | funext i; exact congr_arg _ (Subsingleton.elim _ i) |
| 114 | |
| 115 | /-- Equality on coefficients, includes the motion/shears in later use. -/ |
| 116 | lemma single_lift {A : Array1 (r+1)} (h : Whole (emptyPrefix A)) (p : boundary r A=0) : |
| 117 | boundary (r+1) (Lifted A)=A := by |
| 118 | have hh : Whole (emptyPrefix (Lifted A)) := lift_rows A ▸ whole_fold h _ |
| 119 | have hs : emptyPrefix (boundary (r+1) (Lifted A))=emptyPrefix A := by |
| 120 | rw [boundary_rows]; refine bank_injective (hh.prod (Whole.boundary _)).safe h.safe fun c => ?_ |
| 121 | rw [hh.acts (Whole.boundary _) _,lift_rows] |
| 122 | apply dormant_right h _ c |
| 123 | intro x; rw [← h.acts (Whole.boundary r), ← boundary_rows, p] |
| 124 | exact barren_acts x |
| 125 | exact congr_fun hs () |
| 126 | |
| 127 | section vacuum |
| 128 | variable {A B : Array1 0} |
| 129 | |
| 130 | def partialRise (s : Axis) (R : Row α (TypeFace 0)) := |
| 131 | composeRows (dashAxis s R) (constantRows (left ℝ 0 s).transpose) |
| 132 | def climb (R : Row α (TypeFace 0)) : List Axis → Row α (TypeFace 1) |
| 133 | | [] => 0 |
| 134 | | a :: l => plusRows (partialRise a R) (climb (pending a R) l) |
| 135 | |
| 136 | lemma climb_stock {w : ι → ℝ} {A : ι → Row Unit (TypeFace 0)} (h : Next.Free.Stock (α:=fun _ => Unit) (β:=fun _ => TypeFace 0) w A) (l : List Axis) : |
| 137 | Next.Free.Stock (α:=fun _ => Unit) (β:=fun _ => TypeFace 1) w fun i => climb (A i) l := by |
| 138 | induction l generalizing A with |
| 139 | | nil => exact Stock.home h.cash |
| 140 | | cons a l ih => |
| 141 | have hh := (dash_stock h a).times (Stock.constant (constantRows (left ℝ 0 a).transpose) (constant_whole _)) |
| 142 | simp only [mul_one] at hh |
| 143 | exact hh.plus (ih (pending_stock h a)) |
| 144 | |
| 145 | lemma pending_whole {R : Row α β} (h : Whole R) (a : Axis) : Whole (pending a R) := |
| 146 | (pending_stock (Stock.constant (ι:=Unit) R h) a).whole () |
| 147 | lemma climb_whole {R : Row Unit (TypeFace 0)} (h : Whole R) (l : List Axis) : Whole (climb R l) := |
| 148 | (climb_stock (Stock.constant (ι:=Unit) R h) l).whole () |
| 149 | lemma climb_linear {R T : Row Unit (TypeFace 0)} (h : Whole R) (g : Whole T) (l : List Axis) : |
| 150 | climb (R+T) l=climb R l+climb T l := by |
| 151 | induction l generalizing R T with |
| 152 | | nil => simp [climb] |
| 153 | | cons a l ih => |
| 154 | simp only [climb,pending_linear h g,partialRise, dash_linear h g, plus_rows] |
| 155 | rw [compose_plus (dash_whole h _) (dash_whole g _) (constant_whole _), ih (pending_whole h a) (pending_whole g a)]; abel |
| 156 | lemma climb_scale {R : Row Unit (TypeFace 0)} (h : Whole R) (l : List Axis) (x : ℝ) : |
| 157 | climb (x • R) l=x • climb R l := by |
| 158 | induction l generalizing R with |
| 159 | | nil => simp [climb] |
| 160 | | cons a l ih => |
| 161 | have he : dashAxis a (x • R)=x • dashAxis a R := funext fun i => funext fun j => payout_scale _ _ _ |
| 162 | have hg : pending a (x • R)=x • pending a R := funext fun i => funext fun j => payout_scale _ _ _ |
| 163 | simp only [climb, partialRise, plus_rows,hg,ih (pending_whole h a),he, |
| 164 | compose_scale (dash_whole h _) (constant_whole _) x, smul_add] |
| 165 | |
| 166 | lemma weave (p : Momentum) (s : Axis) : (left ℂ 0 s).transpose*symbol 0 p=q p s • 1 := by |
| 167 | ext i j |
| 168 | rw [vac_only i,vac_only j,Matrix.mul_apply] |
| 169 | rw [Finset.sum_eq_single (coord s)] |
| 170 | · have he (a : Axis) : left ℂ 0 a (coord s) vac = if a=s then 1 else 0 := by |
| 171 | simp only [left,Matrix.of_apply,coord, Finset.mem_singleton] |
| 172 | split_ifs with h |
| 173 | · subst a; simp [parity,pre,Finset.filter_singleton] |
| 174 | · rename_i H; exact False.elim (H (vac_only _)) |
| 175 | rfl |
| 176 | simp only [Matrix.transpose_apply,symbol,wedge,Matrix.sum_apply,Matrix.smul_apply,smul_eq_mul,he] |
| 177 | simp |
| 178 | · intro b hb hw |
| 179 | rw [Matrix.transpose_apply,left,Matrix.of_apply,dif_neg] |
| 180 | · rw [zero_mul] |
| 181 | intro he; obtain ⟨i,rfl⟩ := axisEquiv.surjective b |
| 182 | simp only [coord_map, coord, Finset.mem_singleton] at he |
| 183 | exact hw (he ▸ rfl) |
| 184 | simp |
| 185 | |
| 186 | def swept (p : Momentum) (l : List Axis) := fun i => if i∈l then 0 else p i |
| 187 | lemma swept_physical (p : Momentum) (hp : physical p) (l : List Axis) : physical (swept p l) := by |
| 188 | rw [physical_iff] at *; intro i; by_cases he : i∈l <;> simp [swept,he,hp] |
| 189 | lemma climbed {R : Row Unit (TypeFace 0)} (h : Whole R) (l : List Axis) (p : Momentum) (hp : physical p) : |
| 190 | (climb R l).read p*symbol 0 p=R.read p - R.read (swept p l) := by |
| 191 | induction l generalizing R with |
| 192 | | nil => rw [show swept p []=p from funext fun i => if_neg (by simp)]; simp [climb] |
| 193 | | cons a l ih => |
| 194 | let K := constantRows (left ℝ 0 a).transpose; have he : Whole K := constant_whole _ |
| 195 | have hh : Whole (partialRise a R) := (dash_whole h _).prod he |
| 196 | rw [climb,hh.read_plus (climb_whole (pending_whole h a) _) hp,Matrix.add_mul, |
| 197 | ih (pending_whole h _), partialRise,(dash_whole h _).read he hp,constant_read] |
| 198 | rw [show approached _ = (left ℂ 0 a).transpose from ?eq, Matrix.mul_assoc,weave,Matrix.mul_smul, |
| 199 | Matrix.mul_one,read_part h a hp,read_blank h a hp,read_blank h a (swept_physical p hp l), |
| 200 | show update (swept p l) a 0 = swept p (a :: l) from ?m]; abel |
| 201 | case eq => rw [← left_crank]; rfl |
| 202 | case m => funext i; by_cases hi : i=a <;> simp [hi,update,swept] |
| 203 | |
| 204 | def fromZero (A : Array1 0) : Array1 1 := climb (emptyPrefix A) (List.finRange 4) () |
| 205 | lemma empty_climb (R : Array1 0) : emptyPrefix (fromZero R)=climb (emptyPrefix R) (List.finRange 4) := by |
| 206 | funext i; exact congr_arg _ (Subsingleton.elim _ i) |
| 207 | lemma vacuum_lift (h : Whole (emptyPrefix A)) (p : ∑' i, A vac i = 0) : boundary 0 (fromZero A)=A := by |
| 208 | let R := emptyPrefix (fromZero A) |
| 209 | have hr : Whole R := by unfold R; rw [empty_climb]; exact climb_whole h _ |
| 210 | have hh : emptyPrefix (boundary 0 (fromZero A))=emptyPrefix A := by |
| 211 | rw [boundary_rows]; apply bank_injective (hr.prod (Whole.boundary _)).safe h.safe (Whole.eq_on (hr.prod (Whole.boundary _)) h ?_) |
| 212 | intro z hz |
| 213 | rw [hr.read (Whole.boundary _) hz.1, show R=_ from empty_climb A, reading,climbed h _ z hz.1] |
| 214 | rw [show swept z (List.finRange 4)=0 from funext fun i => if_pos (List.mem_finRange _)] |
| 215 | rw [show (emptyPrefix A).read 0 = 0 from ?_,sub_zero]; ext _ i |
| 216 | rw [vac_only i]; simp only [emptyPrefix,Row.read,Matrix.of_apply,Laurent.read,mode_constant,one_smul] |
| 217 | rw [← Complex.ofReal_tsum,p,Complex.ofReal_zero]; rfl |
| 218 | exact congr_fun hh () |
| 219 | end vacuum |
| 220 | |
| 221 | /-- Uniformly in arbitrarily many passive indices (including additional Cover |
| 222 | coordinates). Use Decay there rather than summing post-width estimates first. -/ |
| 223 | def Price1 (η C : ℝ) (A : Array1 r) := ∀ i, Decay size η C (A i) |
| 224 | |
| 225 | variable {η θ C D : ℝ} {A R₁ : Array1 r} |
| 226 | |
| 227 | def share η := ∑' x : Cover, wanes η (size x) |
| 228 | lemma share_pos (hη : 0 < η) : 0 < share η := by |
| 229 | apply lt_of_lt_of_le (a:=0) (b:=wanes η (size (0:Cover))) (wanes_pos _ _) (Summable.le_tsum (wanes_summable hη) _ (fun x _ => (wanes_pos ..).le)) |
| 230 | lemma Price1.strip (h : Price1 η C A) (hθ : θ < η) : |
| 231 | (emptyPrefix A).strip θ (C*share (η-θ)) := by |
| 232 | intro _ i |
| 233 | let w (x : Cover) := C*wanes (η-θ) (size x) |
| 234 | have he : SumBudget w (C*share (η-θ)) := by |
| 235 | refine ⟨fun x => mul_nonneg (h i|>.cash) (wanes_pos ..).le, (wanes_summable (sub_pos.mpr hθ)).mul_left C,?_⟩ |
| 236 | unfold w share; rw [tsum_mul_left] |
| 237 | unfold Width |
| 238 | refine budget_minor he (fun x => by positivity) fun x => ?_ |
| 239 | exact (mul_le_mul_of_nonneg_left (h i x) (Real.exp_pos _).le).trans_eq (by unfold wanes w; rw [mul_left_comm,← Real.exp_add]; unfold wanes; congr 2; ring) |
| 240 | lemma Price1.whole (h : Price1 η C A) (hη : 0 < η) : Whole (emptyPrefix A) := |
| 241 | ⟨η/2,_,half_pos hη,h.strip (half_lt_self hη)⟩ |
| 242 | lemma strip_gives {η C : ℝ} (h : (emptyPrefix A).strip η C) : Price1 η C A := by |
| 243 | intro i x |
| 244 | have he := h () i |
| 245 | have hh : Real.exp (η*size x)*‖A i x‖ ≤ C := (he.2.1.le_tsum x (fun t _ => he.1 _)).trans he.2.2 |
| 246 | unfold wanes |
| 247 | rw [neg_mul,Real.exp_neg, ← div_eq_mul_inv] |
| 248 | exact (le_div_iff₀ (Real.exp_pos _)).2 (by rwa [mul_comm]) |
| 249 | |
| 250 | /-- Package a cost lemma from the single-row Stock. *Before* any A or cap. -/ |
| 251 | lemma upright {n : ℕ} (u : Row Unit (TypeFace r) → Row Unit (TypeFace n)) |
| 252 | (h : ∀ (ι : Type) (w : ι → ℝ) (a : ι → Row Unit (TypeFace r)), |
| 253 | Next.Free.Stock (α:=fun _ => Unit) (β:=fun _ => TypeFace r) w a → |
| 254 | Next.Free.Stock (α:=fun _ => Unit) (β:=fun _ => TypeFace n) w (fun i => u (a i))) (hη : 0 < η) : |
| 255 | ∃ θ F : ℝ, 0<θ ∧ 0<F ∧ ∀ A : Array1 r, ∀ C ≥ 0, Price1 η C A → Price1 θ (F*C) (u (emptyPrefix A) ()) := by |
| 256 | let ι := {i : (Array1 r × ℝ) // 0 ≤ i.2 ∧ Price1 η i.2 i.1} |
| 257 | let a (i : ι) := emptyPrefix i.val.1 |
| 258 | let w (i : ι) := i.val.2 |
| 259 | obtain ⟨θ,F,hp,hF,H⟩ := (h ι w a ⟨fun i => i.property.1,η/2,share (η-η/2),half_pos hη, |
| 260 | share_pos (sub_pos.mpr (half_lt_self hη)), fun i => mul_comm (w i) _ ▸ Price1.strip i.property.2 (half_lt_self hη)⟩).uniform |
| 261 | refine ⟨θ,F,hp,hF,fun R C hv hy => ?_⟩ |
| 262 | apply strip_gives |
| 263 | rintro x j; exact H ⟨(R,C),hv,hy⟩ () j |
| 264 | lemma preRise {r} (hη : 0 < η) : |
| 265 | ∃ θ F : ℝ, 0<θ ∧ 0<F ∧ ∀ A : Array1 (r+1), ∀ C ≥ 0, Price1 η C A → Price1 θ (F*C) (Lifted A) := |
| 266 | upright (capLift r) (fun _ _ _ h => folded_stock h _) hη |
| 267 | lemma preEmpty (hη : 0 < η) : ∃ θ F : ℝ, 0<θ ∧ 0<F ∧ ∀ A : Array1 0, ∀ C ≥ 0, |
| 268 | Price1 η C A → Price1 θ (F*C) (fromZero A) := upright (fun x => climb x (List.finRange 4)) (fun _ _ _ h => climb_stock h _) hη |
| 269 | |
| 270 | /-- Both lifts linear on all funded sums. The cycle hypothesis will be used only |
| 271 | to prove the right-inverse property. -/ |
| 272 | structure Single (r s : ℕ) (U : Array1 r → Array1 s) : Prop where |
| 273 | price : ∀ η : ℝ, 0<η → ∃ θ F : ℝ, 0<θ ∧ 0<F ∧ ∀ A : Array1 r, ∀ C ≥ 0, |
| 274 | Price1 η C A → Price1 θ (F*C) (U A) |
| 275 | add : ∀ (f g : Array1 r), Whole (emptyPrefix f) → Whole (emptyPrefix g) → U (f+g)=U f+U g |
| 276 | smul : ∀ (f : Array1 r) (x : ℝ), Whole (emptyPrefix f) → U (x • f)=x • U f |
| 277 | |
| 278 | theorem lifted_single (r) : Single (r+1) (r+2) Lifted := by |
| 279 | refine ⟨fun _ => preRise,fun P Q h g => ?_,fun P a h => ?_⟩ |
| 280 | · exact congr_fun (fold_linear h g (List.finRange 4)) () |
| 281 | exact congr_fun (fold_scale h (List.finRange 4) _) () |
| 282 | theorem empty_single : Single 0 1 fromZero := by |
| 283 | refine ⟨fun _ => preEmpty,fun P Q h g => ?_,fun P a h => ?_⟩ |
| 284 | · exact congr_fun (climb_linear h g (List.finRange 4)) () |
| 285 | exact congr_fun (climb_scale h (List.finRange 4) _) () |
| 286 | end YM.CubicMatch.Lift |