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.Modes |
| 2 | /-! Zero-mode-subtracted scalar Wilson inverse. -/ |
| 3 | noncomputable section |
| 4 | namespace YM.Pert.Full |
| 5 | open Lattice Function Complex BigOperators |
| 6 | variable {n : Side} |
| 7 | |
| 8 | lemma exp_pair (r : ℝ) : Complex.exp (r*I)+Complex.exp (-(r*I))-2 = ((-4*(Real.sin (r/2))^2:ℝ) :ℂ) := by |
| 9 | rw [show -(r*I)=(-r:ℝ)*I by simp, Complex.exp_mul_I,Complex.exp_mul_I,← ofReal_cos,← ofReal_cos,← ofReal_sin,← ofReal_sin,Real.sin_neg,Real.cos_neg] |
| 10 | push_cast |
| 11 | have he := Real.cos_two_mul' (r/2); have hf : 2*(r/2)=r := by ring |
| 12 | rw [hf] at he |
| 13 | have hx : Complex.cos ↑r = 1 - 2*(Complex.sin ((r:ℂ)/2))^2 := by |
| 14 | norm_cast; have := Real.sin_sq_add_cos_sq (r/2); linarith |
| 15 | rw [hx]; ring |
| 16 | |
| 17 | def topWeight (n : Side) (p : Site n) : ℂ := (n.val:ℂ)^(-4:ℤ) * (delta (moment p) : ℂ)⁻¹ |
| 18 | /-- Scalar potential with omitted zero mode. -/ |
| 19 | def toroid (x : Site n) : ℂ := ∑ p : Site n, topWeight n p * char p x |
| 20 | lemma scalar_weight (x : Site n) : toroid x = (n.val:ℂ)^(-4:ℤ) * ∑ p, char p x * (delta (moment p):ℂ)⁻¹ := by |
| 21 | simp_rw [toroid,topWeight,Finset.mul_sum]; apply Finset.sum_congr rfl fun i _ => by ring |
| 22 | lemma second_char (p : Site n) (i : Axis) : |
| 23 | char p (step i) + char p (-step i)-2 = ((-4*(Real.sin ((moment p i)/2))^2:ℝ) :ℂ) := by rw [char_step,char_neg_step,exp_pair] |
| 24 | lemma char_lap (p x : Site n) : (∑ i, (char p (x+step i)+char p (x-step i)-2 • (char p x))) = char p x * ((-delta (moment p):ℝ):ℂ) := by |
| 25 | unfold delta; push_cast; simp_rw [← Finset.sum_neg_distrib, Finset.mul_sum] |
| 26 | apply Finset.sum_congr rfl |
| 27 | intro i _; rw [(sub_eq_add_neg x), char_add,char_add,two_smul] |
| 28 | convert! congrArg (char p x * ·) (second_char p i) using 1 <;> push_cast <;> ring |
| 29 | lemma lap_toroid (x : Site n) : (∑ i, (toroid (x+step i)+toroid (x-step i)-2 • (toroid x))) = |
| 30 | -(n.val:ℂ)^(-4:ℤ) * ((∑ p, char p x) - 1) := by |
| 31 | classical |
| 32 | simp only [toroid,two_smul,← Finset.sum_add_distrib,← Finset.sum_sub_distrib] |
| 33 | rw [Finset.sum_comm] |
| 34 | simp_rw [← two_smul ℕ] |
| 35 | have eh (a b c t : ℂ) : c * a+c*b-2 • (c*t) = c*(a+b-2 • t) := by simp only [two_smul]; ring |
| 36 | -- simplify before nsmul issues |
| 37 | simp_rw [eh,←Finset.mul_sum, char_lap] |
| 38 | conv_lhs => rw [← Finset.sum_erase_add _ _ (a:=(0:Site n)) (by simp)] |
| 39 | congr 0 |
| 40 | have hweight : ∀ p : Site n, p ∈ Finset.univ.erase (0:Site n) → (topWeight n p) * (char p x * ↑(-delta (moment p))) = -(n.val:ℂ)^(-4:ℤ) * char p x := by |
| 41 | intro p hp; unfold topWeight; have ht := (delta_pos (moment_cube p) (moment_ne (Finset.mem_erase.mp hp).1)).ne' |
| 42 | have he : ((delta (moment p):ℝ):ℂ) ≠ 0 := by exact_mod_cast ht |
| 43 | push_cast; field_simp |
| 44 | rw [Finset.sum_congr rfl hweight, ← Finset.mul_sum, ← Finset.sum_erase_add (s:=Finset.univ) (f:=fun p => char p x) (a:=(0:Site n)) (by simp)] |
| 45 | simp [delta,zero_char,mesh,incVec,moment,Lattice.lift] |
| 46 | lemma lap_eq (x : Site n) : (∑ i, (toroid (x+step i)+toroid (x-step i)-2 • (toroid x))) = |
| 47 | -(if x=0 then 1 else 0) + (n.val:ℂ)^(-4:ℤ) := by |
| 48 | rw [lap_toroid]; simp_rw [swap _ x,scan] |
| 49 | push_cast |
| 50 | by_cases hx : x=0 |
| 51 | · rw [if_pos hx,if_pos hx]; field_simp; ring |
| 52 | simp [hx] |
| 53 | lemma toroid_real (x : Site n) : (toroid x).re = ∑ p : Site n, (n.val:ℝ)^(-4:ℤ) * (delta (moment p):ℝ)⁻¹ * Real.cos (corner (lift x) (moment p)) := by |
| 54 | change reCLM (toroid x) = _ |
| 55 | have he (p : Site n) : reCLM (char p x) = Real.cos (corner (lift x) (moment p)) := by |
| 56 | conv_lhs => rw [←wrap_lift x,char_wrapped,Complex.exp_mul_I,← ofReal_cos,← ofReal_sin] |
| 57 | simp only [reCLM_apply,Complex.add_re,Complex.ofReal_re,Complex.mul_re,Complex.ofReal_im]; simp |
| 58 | have he' (p : Site n) : (char p x).re = _ := he p |
| 59 | unfold toroid; rw [map_sum]; apply Finset.sum_congr rfl; intro p _; simp only [reCLM_apply,Complex.mul_re,Complex.mul_im,he',topWeight,← Complex.ofReal_natCast,← Complex.ofReal_zpow,← Complex.ofReal_inv,Complex.ofReal_re,Complex.ofReal_im,mul_zero,sub_zero,zero_mul,add_zero] |
| 60 | lemma corner_neg (p : E4) (x : Cover) : corner (-x) p = -corner x p := by simp [corner,neg_mul] |
| 61 | lemma toroid_even (x : Site n) : (toroid (-x)).re=(toroid x).re := by |
| 62 | unfold toroid |
| 63 | congr 0 |
| 64 | have he (p : Site n) : (char p (-x)).re = (char p x).re := by |
| 65 | rw [←wrap_lift x,←map_neg,char_wrapped,char_wrapped]; simp only [corner_neg, Complex.exp_mul_I, ← ofReal_cos, ← ofReal_sin, Real.cos_neg]; simp only [reCLM_apply, Complex.add_re, Complex.mul_re, Complex.ofReal_im, Complex.ofReal_re, Complex.I_re]; simp |
| 66 | change reCLM _ = reCLM _ |
| 67 | rw [map_sum, map_sum] |
| 68 | simp [Complex.mul_re,he,topWeight,← Complex.ofReal_inv,← Complex.ofReal_zpow, ← Complex.ofReal_natCast] |
| 69 | end YM.Pert.Full |