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.Pert.Fourier.Power |
| 2 | /-! Uniform IR pole budget and finite count on centered grid. -/ |
| 3 | set_option autoImplicit false |
| 4 | noncomputable section |
| 5 | namespace YM.Pert.Band |
| 6 | open Function Filter Lattice Full Finset Set |
| 7 | open scoped BigOperators |
| 8 | variable {n : Side} |
| 9 | |
| 10 | def inside (n : Side) (m : ℕ) := univ.filter fun p : Site n => pdist p ≤ m |
| 11 | def talc (m : ℕ) (n : Side) := ∑ p ∈ inside n m, (‖incVec 1 (Lattice.lift p)‖^2)⁻¹ |
| 12 | lemma pdist_small (x : Site n) (k : ℕ) (h : x ∈ inside n k) (i : Axis) : |Lattice.lift x i| ≤ (k:ℤ) := by |
| 13 | have hp : pdist x ≤ k := (mem_filter.mp h).2; have := component_le x i; rw [Int.abs_eq_natAbs]; exact_mod_cast this.trans hp |
| 14 | lemma inside_count (m : ℕ) : ((inside n m).card) ≤ (2*m+1)^4 := by |
| 15 | apply le_trans (counts (n:=n) (m:ℤ) (fun p hp => pdist_small p m hp)) |
| 16 | have e : (((m:ℤ)+1+(m:ℤ))).toNat = (2*m+1) := by omega |
| 17 | rw [e] |
| 18 | lemma inside_diff (m : ℕ) (x : Site n) (hx : x ∉ inside n (m/2)) (hm : m>0) : |
| 19 | (‖incVec 1 (Lattice.lift x)‖^2)⁻¹ ≤ 4/(m:ℝ)^2 := by |
| 20 | obtain ⟨i,hi⟩ : ∃ i, (m/2:ℕ) < (Lattice.lift x i).natAbs := by by_contra! hi; exact hx (mem_filter.mpr ⟨mem_univ _,Finset.sup_le (fun i _ => hi i)⟩) |
| 21 | have hQ : (m:ℝ) < 2*‖incVec 1 (Lattice.lift x)‖ := by |
| 22 | have hh := coordinate_le (incVec 1 (Lattice.lift x)) i; rw [incVec_apply,one_mul] at hh |
| 23 | have he : m < 2 * (Lattice.lift x i).natAbs := by omega |
| 24 | apply lt_of_lt_of_le (b:=2 * |(Lattice.lift x i:ℝ)|) _ (by linarith); rw [← Int.cast_abs, Int.abs_eq_natAbs]; exact_mod_cast he |
| 25 | apply (le_div_iff₀ (by positivity : 0 < (m:ℝ)^2)).mpr |
| 26 | have h0 : 0 < ‖incVec 1 (Lattice.lift x)‖ := by linarith |
| 27 | rw [inv_mul_eq_div, div_le_iff₀ (sq_pos_of_pos h0)] |
| 28 | nlinarith only [hQ, show 0 < (m:ℝ) by exact_mod_cast hm] |
| 29 | lemma inner_weight (m : ℕ) : talc m n ≤ 432*(m:ℝ)^2 := by |
| 30 | induction m using Nat.strongRec with |
| 31 | | ind m h => |
| 32 | by_cases hm:m=0 |
| 33 | · subst m |
| 34 | have he (x : Site n) (hx : x ∈ inside n 0) : ‖incVec 1 (Lattice.lift x)‖=0 := by rw [norm_eq_zero]; ext i; have hh := pdist_small x _ hx i; have hf := abs_nonneg (lift x i); have ht := (abs_eq_zero.mp (by omega : |Lattice.lift x i|=0)); simp [incVec_apply,ht] |
| 35 | unfold talc; rw [show (∑ p ∈ inside n 0, (‖incVec 1 (Lattice.lift p)‖^2)⁻¹)=0 from sum_eq_zero (fun i hi => by rw [he i hi]; norm_num)]; positivity |
| 36 | have hm0 : 0<m := Nat.pos_of_ne_zero hm |
| 37 | let A := inside n (m/2) |
| 38 | have hi : A ⊆ inside n m := fun x hx=>mem_filter.mpr ⟨mem_univ _, le_trans (mem_filter.mp hx).2 (Nat.div_le_self _ _)⟩ |
| 39 | have hhalf := h (m/2) (by omega) |
| 40 | have hs := inside_count (m) (n:=n) |
| 41 | have hdiff : ((inside n m \ A).card : ℝ) ≤ (3*(m:ℝ))^4 := by |
| 42 | calc _ ≤ ((2*m+1:ℕ):ℝ)^4 := by exact_mod_cast le_trans (Finset.card_le_card (Finset.sdiff_subset (s:=inside n m))) hs |
| 43 | _ ≤ _ := by |
| 44 | gcongr; push_cast |
| 45 | suffices _h : (2:ℕ)*m+1≤3*m by exact_mod_cast _h |
| 46 | omega |
| 47 | unfold talc |
| 48 | rw [← Finset.sum_sdiff hi] |
| 49 | change _ + talc (m/2) n ≤ _ |
| 50 | grw [Finset.sum_le_sum (g:=fun _=>4/(m:ℝ)^2) (fun x hx=> inside_diff m x (mem_sdiff.mp hx).2 hm0),hhalf] |
| 51 | have hv : (2:ℕ)*(m/2) ≤ m := by omega |
| 52 | have e : ((m/2:ℕ):ℝ)^2 ≤ (m/2:ℝ)^2 := by |
| 53 | have hf : 2*((m/2:ℕ):ℝ) ≤ (m:ℝ) := by exact_mod_cast hv |
| 54 | have hg : 0 ≤ ((m/2:ℕ):ℝ) := by positivity |
| 55 | nlinarith only [hf,hg] |
| 56 | rw [Finset.sum_const,nsmul_eq_mul]; grw [e,hdiff]; field_simp; nlinarith |
| 57 | |
| 58 | lemma piece_unwrap {h s : ℝ} (hh : h>0) (hs : s>0) (D : List Axis) (x : Site n) : piece h s D x = (((n.val:ℂ)*h)⁻¹^4*(s:ℂ)^((D.length:ℤ)-2)) * ∑ p : Site n, char p x * symbol D (h*s) (stretch (h*s) p) * ↑(crop (h*s) p) := by |
| 59 | unfold piece; simp_rw [Finset.mul_sum,multiplier D _ (h*s) (mul_pos hh hs),← norm_factor hh hs D.length]; exact Finset.sum_congr rfl (fun p hp => by ring) |
| 60 | lemma sinc1 {x : ℝ} (h : |x| ≤ 1) : 2/Real.pi ≤ sinQ x := by |
| 61 | by_cases hz : x=0 |
| 62 | · subst x; rw [sinQ_zero]; exact div_le_one Real.pi_pos|>.mpr Real.two_le_pi |
| 63 | have hx := abs_pos.mpr hz |
| 64 | have ht := Real.mul_le_sin (x:=|x|) hx.le (h.trans (by linarith [Real.two_le_pi])) |
| 65 | have he : Real.sin |x| = sinQ x * |x| := by by_cases xh : 0≤x |
| 66 | · simpa only [abs_of_nonneg xh,mul_comm] using (sinQ_mul x).symm |
| 67 | simpa only [abs_of_neg (lt_of_not_ge xh),Real.sin_neg,neg_mul,mul_neg,mul_comm, neg_inj] using! (sinQ_mul x).symm |
| 68 | rw [he] at ht; exact le_of_mul_le_mul_right ht hx |
| 69 | lemma lattice_approx {t : ℝ} (ht : t ∈ Set.Icc (0:ℝ) 2) {x : E4} (hx : ‖x‖≤1) : ‖x‖^2 * (2/Real.pi)^2 ≤ latticeD t x := by |
| 70 | rw [norm_four,Finset.sum_mul,latticeD]; apply Finset.sum_le_sum; intro i hi |
| 71 | have hh := coordinate_le x i; have hp : |t*x i/2|≤1 := by simpa [abs_div,abs_mul,abs_of_nonneg ht.1] using (show t*|x i|/|2|≤1 by have := mul_le_mul ht.2 (hh.trans hx) (abs_nonneg (x i)) (le_of_lt (by norm_num : (0:ℝ)<2)); rw [abs_of_pos (by norm_num : (0:ℝ)<2)]; linarith) |
| 72 | have h := sinc1 hp; have hpi : 0≤(2/Real.pi) := by positivity |
| 73 | have h2 : (2/Real.pi)^2 ≤ (sinQ (t*x i/2))^2 := by have := Real.pi_pos; nlinarith only [h,hpi] |
| 74 | simpa only [mul_pow] using mul_le_mul_of_nonneg_left h2 (sq_nonneg (x i)) |
| 75 | lemma lattice_inv {t : ℝ} (ht : t ∈ Set.Icc (0:ℝ) 2) {x : E4} (hn : ‖x‖≤1) : (latticeD t x)⁻¹ ≤ (‖x‖^2)⁻¹*(Real.pi/2)^2 := by |
| 76 | by_cases hx : x=0; · simp [hx,latticeD] |
| 77 | by_cases hd : latticeD t x=0; · rw [hd,inv_zero]; positivity |
| 78 | have hy := lattice_approx ht hn |
| 79 | have hp : 0 < ‖x‖ := norm_pos_iff.mpr hx |
| 80 | have h2 : 0<latticeD t x := (show 0 < ‖x‖^2*(2/Real.pi)^2 by positivity).trans_le hy |
| 81 | convert! (one_div_le_one_div_of_le (mul_pos (sq_pos_of_pos hp) (sq_pos_of_pos (div_pos zero_lt_two Real.pi_pos))) hy) using 1 <;> field_simp |
| 82 | end YM.Pert.Band |