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.TraceExtension.Perfect.Margin |
| 2 | import YM.Next.FREE_KERNELS.Traffic |
| 3 | |
| 4 | /-! |
| 5 | # Second order θ polynomial on raw low modes |
| 6 | -/ |
| 7 | set_option autoImplicit false |
| 8 | noncomputable section |
| 9 | namespace YM.Trace.Perfect |
| 10 | open Stationary Filter Function Matrix Lattice Precision Finset Laurent |
| 11 | open scoped Topology BigOperators ContDiff |
| 12 | variable {I : Type}[Fintype I] |
| 13 | lemma sh_zero (A:I→ℕ)(a t r): sh A a t r 0=0:=by simp [sh] |
| 14 | lemma sh_scale (A a t r)(q : I→ℝ)(v : ℝ): sh A a t r (v • q)= |v| * sh A a t r q:=by unfold sh; simp_rw [Pi.smul_apply,norm_smul, Real.norm_eq_abs, Finset.mul_sum, mul_left_comm |v|] |
| 15 | lemma sh_sum (A a t r){Y:Type}(F:Y→I→ℝ)(J:Finset Y): sh A a t r (∑ i∈J,F i) ≤ ∑ i∈J, sh A a t r (F i):=by |
| 16 | classical |
| 17 | induction J using Finset.induction with |
| 18 | | empty=>simp [sh_zero] |
| 19 | | insert i s hi ih=> rw [sum_insert hi,sum_insert hi]; exact (sh_add ..).trans (add_le_add_right ih _) |
| 20 | |
| 21 | lemma backwalk (x : Cover) (h:x≠0) : ∃ (i:Axis)(y:Cover), size x=size y+1 ∧ (x=y+step i ∨ y=x+step i):=by |
| 22 | obtain ⟨i,hi⟩ : ∃ i : Axis,x i≠0:= by simpa [Ne,funext_iff] using h |
| 23 | have h s (hs : ∀ j : Axis, j≠i → s j = x j) (hp :(s i).natAbs+1=(x i).natAbs) : size x=size s+1:=by |
| 24 | unfold Laurent.size |
| 25 | rw [← add_sum_erase _ _ (mem_univ i)]; rw [← add_sum_erase _ (fun j=> (s j).natAbs) (mem_univ i)] |
| 26 | rw [← hp,add_right_comm]; congr 2; apply Finset.sum_congr rfl; intro j h; rw [hs j (mem_erase.mp h|>.1)] |
| 27 | rcases lt_or_gt_of_ne hi with hu|hu |
| 28 | · refine ⟨i,x+step i,h _ ?_ ?_,Or.inr rfl⟩ |
| 29 | · intro j hj; simp [hj,Ne.symm hj] |
| 30 | have hx:=hu; simp; omega |
| 31 | refine ⟨i,x-step i,h _ ?_ ?_,Or.inl (sub_add_cancel ..).symm⟩ |
| 32 | · intro j hj; simp [hj,Ne.symm hj] |
| 33 | have hx:=hu; simp; omega |
| 34 | |
| 35 | variable {A:I→ℕ}{α:ℝ}{t R:ℕ} |
| 36 | def move (V:Cover→ I→ℝ)(i:Axis) := fun x : Cover=> V (x+step i)-V x |
| 37 | private lemma crawls (V: Cover→ I→ℝ)(P:ℝ)(h:∀ x:Cover,size x≤R →∀ a:Axis, sh A α t 0 (move V a x) ≤ P) (x : Cover) (hr:size x ≤ R): |
| 38 | sh A α t 0 (V x-V 0)≤size x*P:=by |
| 39 | generalize he : size x=n |
| 40 | rw [he] at hr |
| 41 | induction n using Nat.strong_induction_on generalizing x with | h n IH=>_ |
| 42 | by_cases ht:x=0 |
| 43 | · subst x; rw [← he]; simp [Laurent.size,sh_zero] |
| 44 | obtain ⟨i,y,hY,hp|hp⟩:= backwalk x ht |
| 45 | · specialize IH (size y) (by omega) y (by omega) rfl |
| 46 | rw [show V x-V 0=move V i y+(V y-V 0) from by rw [hp]; unfold move;abel] |
| 47 | refine (sh_add ..).trans ((add_le_add (h y (by omega) i) IH).trans_eq ?_); rw [← he,hY]; push_cast;ring |
| 48 | specialize IH (size y) (by omega) y (by omega) rfl |
| 49 | rw [show V x-V 0= -(move V i x)+(V y-V 0) from by rw [hp]; unfold move; abel] |
| 50 | apply (sh_add ..).trans; rw [sh_neg] |
| 51 | exact (add_le_add (h x (by omega) i) IH).trans_eq (by rw [← he,hY];push_cast;ring) |
| 52 | |
| 53 | lemma walk_tiny (V:Cover→I→ℝ)(P:ℝ)(h:∀ x:Cover,size x≤R →∀ a:Axis,sh A α t 0 (move V a x)≤P)(x:Cover)(hx:size x≤R) : sh A α t 0 (V x-V 0)≤size x*P:= crawls V P h x hx |
| 54 | |
| 55 | def lin (V:Cover→ I→ℝ)(x : Cover): I→ℝ:=∑ i:Axis,(x i:ℝ) • move V i 0 |
| 56 | def quadT (i j:Axis)(x : Cover):ℝ:= ((x i:ℝ)*(x j)-(if i=j then (x i:ℝ) else 0))/2 |
| 57 | def quad (V:Cover→ I→ℝ)(x : Cover): I→ℝ:=∑ i:Axis,∑ j:Axis,quadT i j x • move (move V i) j 0 |
| 58 | |
| 59 | lemma move_swap (V:Cover→ I→ℝ)(x:Cover)(i j:Axis): move (move V i) j x= move (move V j) i x:=by unfold move; rw [add_right_comm]; abel |
| 60 | lemma move_lin (V:Cover→ I→ℝ)(a : Axis) (x:Cover): move (lin V) a x=move V a 0:=by |
| 61 | unfold move lin; rw [← Finset.sum_sub_distrib,Finset.sum_eq_single a]; rotate_left |
| 62 | · intro b _ hb; simp [hb,Ne.symm hb] |
| 63 | · simp |
| 64 | simp [add_smul, move] |
| 65 | private lemma tip (a b c:Axis)(x:Cover): (quadT b c (x+step a) - quadT b c x)= (if b=a then (x c:ℝ)/2 else 0)+(if c=a then (x b:ℝ)/2 else 0):=by |
| 66 | by_cases hb:b=a <;> by_cases hc:c=a <;> subst_vars <;> push_cast [quadT] <;> simp_all [quadT,eq_comm,Int.cast_one] <;> ring_nf |
| 67 | lemma move_quad (V : Cover→ I→ℝ)(a : Axis)(x : Cover): move (quad V) a x=lin (move V a) x:=by |
| 68 | let T i j:= move (move V i) j 0 |
| 69 | change (∑ i: Axis, ∑ j:Axis,quadT i j (x+step a) • T i j) -_=_ |
| 70 | unfold quad |
| 71 | rw [← Finset.sum_sub_distrib] |
| 72 | change (∑ i:Axis,(_-(∑ j:Axis, quadT i j x • T i j)))=_ |
| 73 | simp_rw [← Finset.sum_sub_distrib,← sub_smul,tip, add_smul,Finset.sum_add_distrib] |
| 74 | rw [Finset.sum_comm (f:=fun i j => (if i=a then (x j:ℝ)/2 else 0) • T i j)]; unfold lin; simp [apply_ite (fun u:ℝ=> u • _)] |
| 75 | rw [← Finset.sum_add_distrib]; apply Finset.sum_congr rfl; intro i _; rw [show T i a=T a i from move_swap .., ← add_smul]; congr 1;ring |
| 76 | lemma move_subV (V W:Cover→I→ℝ)(a:Axis): move (V-W) a=move V a-move W a:= by funext j; simp only [move,Pi.sub_apply]; abel |
| 77 | |
| 78 | lemma second_tiny (V:Cover→ I→ℝ)(P:ℝ)(h:∀ x:Cover,size x ≤ R→ ∀ i j k, sh A α t 0 (move (move (move V i) j) k x) ≤ P)(hu:0≤P)(x:Cover)(ht:size x≤R) : |
| 79 | sh A α t 0 (V x-V 0-lin V x-quad V x) ≤ R^3*P:=by |
| 80 | let F (z:Cover):= V z-V 0-lin V z-quad V z |
| 81 | have he (i:Axis)(x:Cover): move F i x=move V i x-move V i 0-lin (move V i) x:=by |
| 82 | change move (V-(fun _ => V 0)-lin V-quad V) i x=_; rw [move_subV,move_subV,move_subV]; simp only [Pi.sub_apply,move_lin,move_quad,show move (fun _=>V 0) i x=0 from sub_self _,sub_zero] |
| 83 | have he' (i j:Axis)(z:Cover): move (move F i) j z= move (move V i) j z-move (move V i) j 0:=by |
| 84 | change move F i (z+step j)-move F i z=_; rw [he,he]; have hx:= move_lin (move V i) j z |
| 85 | rw [← hx]; unfold move;abel |
| 86 | have hu' : sh A α t 0 (F x-F 0) ≤ size x*((R:ℝ)^2*P):=by |
| 87 | refine walk_tiny F _ (R:=R) (fun i hi j=>?_) _ ht |
| 88 | have hN : move F j 0=0:=by rw [he]; simp [lin] |
| 89 | have hy : sh A α t 0 (move F j i-move F j 0) ≤ size i*((R:ℝ)*P):=by |
| 90 | refine walk_tiny (move F j) _ (R:=R) (fun i hi k=>?_) _ hi |
| 91 | rw [he']; refine (walk_tiny (move (move V j) k) _ (fun i hi l=> h i hi j k l) i hi).trans (mul_le_mul_of_nonneg_right (Nat.cast_le.mpr hi) hu) |
| 92 | rw [hN,sub_zero] at hy; exact hy.trans ((mul_le_mul_of_nonneg_right (Nat.cast_le.mpr hi) (show 0 ≤ (R:ℝ)*P by positivity)).trans_eq (by ring)) |
| 93 | have hF : F 0=0:=by simp [F,lin,quad,quadT] |
| 94 | rw [hF,sub_zero] at hu'; exact hu'.trans ((mul_le_mul_of_nonneg_right (Nat.cast_le.mpr ht) (show 0≤(R:ℝ)^2*P by positivity)).trans_eq (by ring)) |
| 95 | end YM.Trace.Perfect |