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.Lattice.Cubical |
| 2 | import Mathlib.Analysis.SpecialFunctions.Complex.CircleAddChar |
| 3 | /-! Character convention on the finite top torus. -/ |
| 4 | noncomputable section |
| 5 | namespace YM.Pert.Full |
| 6 | open Lattice Function Complex BigOperators |
| 7 | variable {n : Side} |
| 8 | |
| 9 | def dot (p x : Site n) : Per n := ∑ i, p i * x i |
| 10 | def char (p x : Site n) : ℂ := ZMod.stdAddChar (dot p x) |
| 11 | def incVec (r : ℝ) (x : Cover) : E4 := WithLp.toLp 2 (fun i => r*(x i : ℝ)) |
| 12 | def mesh (n : Side) : ℝ := 2 * Real.pi / n.val |
| 13 | def moment (p : Site n) : E4 := incVec (mesh n) (lift p) |
| 14 | lemma val_pos (n : Side) : 0 < (n.val : ℝ) := by exact_mod_cast n.pos |
| 15 | @[simp] lemma incVec_apply (r : ℝ) (x : Cover) (i : Axis) : incVec r x i = r * x i := rfl |
| 16 | @[simp] lemma moment_apply (p : Site n) (i : Axis) : moment p i = mesh n * (lift p i : ℝ) := rfl |
| 17 | lemma mesh_pos : 0 < mesh n := by unfold mesh; positivity |
| 18 | lemma mesh_val : mesh n * n.val = 2 * Real.pi := by unfold mesh; field_simp |
| 19 | lemma moment_cube (p : Site n) : moment p ∈ cube := by |
| 20 | intro i; rw [moment_apply]; have low : - (n.val : ℝ) < 2*(lift p i:ℝ) := by exact_mod_cast (lift_centers p i).1 |
| 21 | have high : 2*(lift p i:ℝ) ≤ (n.val:ℝ) := by exact_mod_cast (lift_centers p i).2 |
| 22 | apply abs_le.mpr; have hm := mesh_pos (n:=n); have e := mesh_val (n:=n); constructor |
| 23 | · nlinarith |
| 24 | nlinarith |
| 25 | lemma moment_ne {p : Site n} (hp : p ≠ 0) : moment p ≠ 0 := by |
| 26 | intro he; have eh (i : Axis) := congrArg (fun x : E4 => x i) he |
| 27 | apply hp |
| 28 | rw [← wrap_lift p]; have h : lift p = 0 := by |
| 29 | ext i; have hv := eh i; change mesh n * (lift p i : ℝ) = 0 at hv |
| 30 | have hz := (mul_eq_zero.mp hv).resolve_left mesh_pos.ne'; exact_mod_cast hz |
| 31 | rw [h,map_zero] |
| 32 | lemma char_zero (p : Site n) : char p 0 = 1 := by unfold char dot; simp |
| 33 | lemma zero_char (x : Site n) : char 0 x = 1 := by unfold char dot; simp |
| 34 | lemma swap (p x : Site n) : char p x = char x p := by unfold char dot; simp_rw [mul_comm] |
| 35 | lemma dot_add (p x y : Site n) : dot p (x+y) = dot p x + dot p y := by simp only [dot, Pi.add_apply,mul_add,Finset.sum_add_distrib] |
| 36 | lemma char_add (p x y : Site n) : char p (x+y) = char p x * char p y := by unfold char; rw [dot_add, AddChar.map_add_eq_mul] |
| 37 | lemma dot_wrapped (p : Site n) (x : Cover) : dot p (wrap n x) = ↑(∑ i, (lift p i)*(x i):ℤ) := by |
| 38 | calc _ = dot (wrap n (lift p)) (wrap n x) := by rw [wrap_lift] |
| 39 | _ = _ := by simp [dot,wrap] |
| 40 | lemma char_wrapped (p : Site n) (x : Cover) : char p (wrap n x) = Complex.exp ((corner x (moment p) : ℂ)*I) := by |
| 41 | rw [char,dot_wrapped,ZMod.stdAddChar_coe] |
| 42 | unfold corner |
| 43 | congr 1 |
| 44 | push_cast |
| 45 | rw [Finset.sum_mul]; simp_rw [div_eq_mul_inv, Finset.mul_sum, Finset.sum_mul] |
| 46 | apply Finset.sum_congr rfl; intro i hi; push_cast; simp only [moment_apply,mesh, Complex.ofReal_mul, Complex.ofReal_div, Complex.ofReal_intCast, Complex.ofReal_ofNat, Complex.ofReal_natCast]; ring |
| 47 | lemma corner_step (i : Axis) (p : E4) : corner (step i) p = p i := by simp [corner, Finset.sum_ite_irrel,step,Pi.single_apply] |
| 48 | lemma char_step (p : Site n) (i : Axis) : char p (step i) = Complex.exp ((moment p i)*I) := by simpa only [corner_step, wrap_step] using char_wrapped p (step i) |
| 49 | lemma char_neg_step (p : Site n) (i : Axis) : char p (- step i) = Complex.exp (-((moment p i)*I)) := by |
| 50 | have hn : corner (-step i) (moment p) = -(moment p i) := by rw [← corner_step i]; simp [corner, neg_mul] |
| 51 | simpa only [hn, map_neg, wrap_step, Complex.ofReal_neg, neg_mul] using char_wrapped p (-step i) |
| 52 | lemma scan (p : Site n) : ∑ x : Site n, char p x = if p=0 then (n.val:ℂ)^4 else 0 := by |
| 53 | split |
| 54 | next h => rw [h]; simp [zero_char,site_card] |
| 55 | next h => |
| 56 | suffices hz : ∃ y : Site n, char p y ≠ 1 by |
| 57 | obtain ⟨y,hy⟩ := hz |
| 58 | have he := Equiv.sum_comp (Equiv.addRight y) (char p) |
| 59 | change ∑ i, char p (i+y) = _ at he |
| 60 | simp_rw [char_add, ← Finset.sum_mul] at he |
| 61 | by_contra hz; exact hy ((mul_eq_left₀ hz).mp he) |
| 62 | by_contra! h' |
| 63 | apply h; ext i |
| 64 | have he := h' (step i); unfold char at he; rw [← (ZMod.stdAddChar (N:=n.val)).map_zero_eq_one] at he; apply ZMod.injective_stdAddChar at he |
| 65 | rw [dot, Finset.sum_eq_single i] at he <;> simp_all [step_apply,eq_comm] |
| 66 | lemma norm_char (p x : Site n) : ‖char p x‖ = 1 := Circle.norm_coe _ |
| 67 | end YM.Pert.Full |