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.WilsonBulk.Transit.Meaning |
| 2 | |
| 3 | /-! |
| 4 | # Total-degree finite differences on rank-variable Shift |
| 5 | |
| 6 | E4 `Newt...` works for single leg (earlier quadratic contraction uses). |
| 7 | For many legs in potential basis need its version on general `Laurent.Shift |
| 8 | α`; generalize recursion (via MVpolynomial throughout so elementary Ward |
| 9 | use later). Records a polynomial of TOTAL degree, not componentwise. Local |
| 10 | error bound in full exponent for truly arbitrary joint test. Handles negative |
| 11 | position integers in `Shift` sign convention. -/ |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | namespace YM.WilsonBulk.Sheet.Taylor |
| 15 | open scoped Topology BigOperators Classical |
| 16 | open Laurent Finset Function |
| 17 | open MvPolynomial (X C) |
| 18 | variable {α : Type} [Fintype α] [DecidableEq α] |
| 19 | abbrev Move (α : Type) := Shift α |
| 20 | abbrev Law (α : Type) := Move α→ℝ |
| 21 | def notch (i : α) : Move α:= Pi.single i 1 |
| 22 | def hop (i : α) (f : Law α) (x : Move α) := f (x+notch i)-f x |
| 23 | def chain (f : Law α) : List α→ Law α |
| 24 | | [] => f |
| 25 | | i::l => chain (hop i f) l |
| 26 | omit [Fintype α] in |
| 27 | lemma hop_hop (i j : α) (f : Law α) : hop i (hop j f)=hop j (hop i f) := by funext x; unfold hop; rw [add_right_comm x]; ring |
| 28 | abbrev lineRead (x : Move α) (f : Formula α) := MvPolynomial.eval (fun i=> (x i:ℝ)) f |
| 29 | |
| 30 | -- include address shift in polynomial output; avoids needing any bound on bind/subst totalDegree. |
| 31 | def scribble : ℕ → Law α → Move α→ Formula α |
| 32 | | 0,f,_ => C (f 0) |
| 33 | | n+1,f,c => C (((n+1:ℕ):ℝ)⁻¹) * ∑ i : α,(X i+C ((c i:ℤ):ℝ)) * scribble n (hop i f) (c-notch i) |
| 34 | lemma height (p : Law α) (n : ℕ) (u : Move α) : (scribble n p u).totalDegree ≤ n := by |
| 35 | induction n generalizing p u with |
| 36 | | zero=> simp [scribble] |
| 37 | | succ n ih=> |
| 38 | rw [scribble]; apply (MvPolynomial.totalDegree_mul _ _).trans; rw [MvPolynomial.totalDegree_C,zero_add] |
| 39 | apply sum_cap _; intro i _; refine (MvPolynomial.totalDegree_mul ..).trans (le_trans (Nat.add_le_add (le_trans (MvPolynomial.totalDegree_add ..) ?_) (ih ..)) (Nat.add_comm 1 n).le) |
| 40 | rw [MvPolynomial.totalDegree_X, MvPolynomial.totalDegree_C]; omega |
| 41 | lemma scrum (p : Law α) (n : ℕ) (u x : Move α) : |
| 42 | lineRead x (scribble (n+1) p u)=((n+1:ℕ):ℝ)⁻¹*∑ i:α, ((x+u) i:ℝ)*lineRead x (scribble n (hop i p) (u-notch i)) := by |
| 43 | simp only [lineRead,scribble,map_mul,map_sum,map_add,MvPolynomial.eval_X,MvPolynomial.eval_C,Pi.add_apply,Int.cast_add] |
| 44 | lemma origin (p : Law α) (n : ℕ) (u x : Move α) : |
| 45 | lineRead x (scribble n p u)=lineRead (x+u) (scribble n p 0) := by |
| 46 | induction n generalizing p x u with |
| 47 | | zero => simp [lineRead,scribble] |
| 48 | | succ n ih => |
| 49 | rw [scrum,scrum]; congr 1 |
| 50 | apply sum_congr rfl fun i _=>?_; rw [ih,ih (x:=x+u) (u:=0-_)]; rw [add_zero]; rw [show x+(u-notch i)=x+u+(0-notch i) from by abel] |
| 51 | lemma stride (p : Law α) (n : ℕ) (i : α) (x : Move α) : lineRead (x+notch i) (scribble (n+1) p 0) - lineRead x (scribble (n+1) p 0)= lineRead x (scribble n (hop i p) 0) := by |
| 52 | induction n generalizing p i x with |
| 53 | | zero => |
| 54 | rw [scrum,scrum]; simp_rw [add_zero,Pi.add_apply,Int.cast_add,add_mul,sum_add_distrib] |
| 55 | simp [notch,lineRead,scribble,Pi.single_apply,ite_mul,apply_ite Int.cast] |
| 56 | | succ n ih => |
| 57 | let a : ℝ := ((n+2:ℕ):ℝ) |
| 58 | have ha : a ≠ 0:= by unfold a; positivity |
| 59 | let c j y := lineRead y (scribble (n+1) (hop j p) (0-notch j)) |
| 60 | let b := lineRead x (scribble (n+1) (hop i p) 0) |
| 61 | have he (j:α) : c j (x+notch i)-c j x=lineRead x (scribble n (hop j (hop i p)) (0-notch j)) := by |
| 62 | unfold c; rw [origin _ _ _ (x+notch i),origin _ _ _ x,origin (hop j (hop i p)) n (0-notch j) x]; rw [add_right_comm x,ih]; rw [hop_hop] |
| 63 | have h0 : c i (x+notch i) =b := by unfold c b; rw [origin]; simp |
| 64 | rw [scrum,scrum]; simp_rw [add_zero] |
| 65 | change a⁻¹*(∑ j:α, ((x+notch i) j:ℝ)*c j (x+notch i))-a⁻¹*(∑ j:α, (x j:ℝ)*c j x) = b |
| 66 | rw [← mul_sub, inv_mul_eq_iff_eq_mul₀ ha] |
| 67 | have ht : (∑ j:α, ((notch i) j:ℝ)*c j (x+notch i)) = b := by simp [notch,ite_mul,apply_ite Int.cast,Pi.single_apply]; exact h0 |
| 68 | simp_rw [Pi.add_apply,Int.cast_add,add_mul,sum_add_distrib]; rw [ht,add_sub_right_comm,← sum_sub_distrib]; simp_rw [← mul_sub,he] |
| 69 | have hh : ((n+1:ℕ):ℝ)*b=∑ j:α,(x j:ℝ)*lineRead x (scribble n (hop j (hop i p)) (0-notch j)) := by |
| 70 | unfold b; rw [scrum,mul_inv_cancel_left₀ (by positivity)]; simp only [add_zero] |
| 71 | rw [← hh]; unfold a; push_cast; ring |
| 72 | |
| 73 | def abridge (i : ℕ) (p : Law α) := ∑ n∈range i,scribble n p 0 |
| 74 | def rest (n : ℕ) (p : Law α) (x : Move α) := p x-lineRead x (abridge n p) |
| 75 | lemma total_degree (i : ℕ) (p : Law α) (hi : i≠0) : (abridge i p).totalDegree < i := by |
| 76 | have h : (abridge i p).totalDegree ≤ i-1:= sum_cap _ (fun j hj=> (height ..).trans (by rw [mem_range] at hj; omega)); omega |
| 77 | lemma rest_origin (p : Law α) (n : ℕ) : rest (n+1) p 0=0 := by |
| 78 | have h i: lineRead 0 (scribble (i+1) p 0)=0:= by rw [scrum]; simp |
| 79 | unfold rest; simp only [lineRead,abridge,map_sum]; rw [sum_range_succ'] |
| 80 | simp_rw [show ∀ i,MvPolynomial.eval (fun i : α => ((0:Move α) i:ℝ)) (scribble (i+1) p 0)=0 from h] |
| 81 | simp [scribble] |
| 82 | lemma rest_shrink (p : Law α) (n : ℕ) (i : α) : hop i (rest (n+1) p)=rest n (hop i p) := by |
| 83 | funext x; unfold hop rest |
| 84 | have ht : lineRead (x+notch i) (abridge (n+1) p)-lineRead x (abridge (n+1) p)=lineRead x (abridge n (hop i p)) := by |
| 85 | unfold abridge; simp only [lineRead,map_sum]; rw [sum_range_succ' (fun j=> lineRead (x+notch i) (scribble j p 0)),sum_range_succ' (fun j=> lineRead x (scribble j p 0))] |
| 86 | have hz y : lineRead y (scribble 0 p 0)=p 0:= by simp [lineRead,scribble] |
| 87 | rw [hz,hz,add_sub_add_right_eq_sub,← sum_sub_distrib]; exact sum_congr rfl fun j _=> stride .. |
| 88 | change _ = p (x+notch i)-p x - lineRead x (abridge n (hop i p)); rw [← ht]; ring |
| 89 | |
| 90 | lemma back {x : Move α} (h : x≠0) : ∃ i y, (x=y+notch i ∨ y=x+notch i) ∧ size y+1=size x := by |
| 91 | obtain ⟨i,hi⟩ : ∃ i,x i≠0:= by contrapose! h; exact funext h |
| 92 | have hz (f : Move α) (s:ℕ) (h : ∀ j, j≠i→ f j=x j) (ht : (f i).natAbs+s=(x i).natAbs) : size f+s=size x := by |
| 93 | unfold size |
| 94 | rw [← add_sum_erase _ _ (mem_univ i),← add_sum_erase _ (fun j=> (x j).natAbs) (mem_univ i),add_right_comm ((f i).natAbs),ht]; congr 1; exact sum_congr rfl fun a ha=> by rw [h a (mem_erase.mp ha).1] |
| 95 | rcases hi.lt_or_gt with he|he |
| 96 | · refine ⟨i,x+notch i,Or.inr rfl,hz _ 1 (fun j hj=> by simp [notch,hj]) ?_⟩; simp only [Pi.add_apply,notch,Pi.single_eq_same]; omega |
| 97 | refine ⟨i,x-notch i,Or.inl (by abel),hz _ 1 (fun j hj=> by simp [notch,hj]) ?_⟩; simp only [Pi.sub_apply,notch,Pi.single_eq_same]; omega |
| 98 | |
| 99 | -- use with a (0≤) convex budget s=0, no width loss beyond the extras put in input |
| 100 | lemma envelope (n : ℕ) (p : Law α) (s M : ℝ) (hs : 0≤s) (hM : 0≤M) |
| 101 | (hp : ∀ l:List α,l.length=n → ∀ x, |chain p l x| ≤ M*Real.exp (s*size x)) (x : Move α) : |
| 102 | |rest n p x| ≤ (1+(size x:ℝ))^n*(M*Real.exp (s*size x)) := by |
| 103 | induction n generalizing p x with |
| 104 | | zero => simpa [rest,abridge,lineRead] using (show |p x|≤M*_ from hp [] rfl x) |
| 105 | | succ n ih => |
| 106 | let f := fun (x:Move α)=>(1+(size x:ℝ))^n*(M*Real.exp (s*size x)) |
| 107 | have he i : ∀ x, |hop i (rest (n+1) p) x| ≤ f x:= fun x=> by |
| 108 | rw [rest_shrink]; exact ih (hop i p) (fun l hl=> hp (i::l) (by simp [hl])) x |
| 109 | have hb (i : ℕ) (y : Move α) (hy : size y=i) : |rest (n+1) p y| ≤ (size y:ℝ)*f y := by |
| 110 | induction i using Nat.strong_induction_on generalizing y with |
| 111 | | h i hind => |
| 112 | by_cases hw : y=0; · subst y; rw [rest_origin,abs_zero]; unfold f; positivity |
| 113 | obtain ⟨i,z,hh,hz⟩:= back hw |
| 114 | have h := hind (size z) (by omega) z rfl |
| 115 | have hv : f z ≤ f y:= by unfold f; gcongr <;> omega |
| 116 | have hd : |rest (n+1) p y-rest (n+1) p z| ≤ f y := by |
| 117 | rcases hh with h|h |
| 118 | · rw [h]; have hl : f z≤ f (z+notch i):= by rwa [← h] |
| 119 | exact (he i z).trans hl |
| 120 | rw [abs_sub_comm, h]; exact he i y |
| 121 | calc |
| 122 | _ ≤ |rest (n+1) p z| + |rest (n+1) p y-rest (n+1) p z| := by simpa using abs_add_le (rest (n+1) p z) (rest (n+1) p y-rest (n+1) p z) |
| 123 | _ ≤ (size z:ℝ)*f y + f y := add_le_add (h.trans (by gcongr)) hd |
| 124 | _ = _ := by rw [← hz]; push_cast; ring |
| 125 | refine (hb (size x) x rfl).trans ?_; unfold f; rw [← mul_assoc,pow_succ']; gcongr; linarith |
| 126 | end YM.WilsonBulk.Sheet.Taylor |