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.Lattice.Faces |
| 2 | import Mathlib.Order.Interval.Finset.Fin |
| 3 | import Mathlib.Data.Int.Interval |
| 4 | import Mathlib.Order.Interval.Finset.Basic |
| 5 | import Mathlib.Data.Pi.Interval |
| 6 | |
| 7 | /-! Ordinary patch operations on the lattice cover. -/ |
| 8 | |
| 9 | set_option autoImplicit false |
| 10 | namespace YM.Lattice |
| 11 | open Finset |
| 12 | |
| 13 | def box (r : ℕ) : Finset Cover := Icc (fun _ => -(r : ℤ)) (fun _ => (r : ℤ)) |
| 14 | |
| 15 | @[simp] theorem box_test {r : ℕ} {x : Cover} : x ∈ box r ↔ |
| 16 | (∀ i, - (r : ℤ) ≤ x i) ∧ (∀ i, x i ≤ (r : ℤ)) := mem_Icc |
| 17 | |
| 18 | @[simp] theorem center_box (r : ℕ) : 0 ∈ box r := by simp |
| 19 | |
| 20 | theorem box_covariant (r : ℕ) (s : Signed) : (box r).image s.act = box r := by |
| 21 | have he (h : Signed) (x : Cover) (ha : x ∈ box r) : h.act x ∈ box r := by |
| 22 | simp only [box_test, Signed.act] at *; constructor |
| 23 | all_goals intro i; split |
| 24 | · exact neg_le_neg (ha.2 _) |
| 25 | · exact ha.1 _ |
| 26 | · simpa only [neg_neg] using neg_le_neg (ha.1 (h.perm.symm i)) |
| 27 | · exact ha.2 _ |
| 28 | ext x; rw [mem_image] |
| 29 | constructor |
| 30 | · rintro ⟨y,hy,rfl⟩; exact he s y hy |
| 31 | intro hx; exact ⟨_, he s⁻¹ x hx, s.act_inv x⟩ |
| 32 | |
| 33 | /-- Leg with integer signed length in axis `a`. -/ |
| 34 | def straight (a : Axis) (d : ℤ) : Walk := List.replicate d.natAbs ⟨a,decide (d<0)⟩ |
| 35 | |
| 36 | def axisRoute (x y : Cover) (l : List Axis) : Walk := |
| 37 | l.flatMap fun a => straight a (y a - x a) |
| 38 | |
| 39 | abbrev Order := Equiv.Perm Axis |
| 40 | |
| 41 | def allAxes (l : Order) := (List.finRange 4).map l |
| 42 | |
| 43 | |
| 44 | def route (x y : Cover) (l : Order) : Walk := axisRoute x y (allAxes l) |
| 45 | |
| 46 | theorem straight_stop (x : Cover) (a : Axis) (d : ℤ) : stop x (straight a d) = x + d • step a := by |
| 47 | have h (x : Cover) (n : ℕ) (s : Step) : stop x (List.replicate n s) = x + n • s.vec := by |
| 48 | induction n generalizing x with |
| 49 | | zero => simp [stop] |
| 50 | | succ n ih => rw [List.replicate_succ, stop, ih, succ_nsmul]; abel |
| 51 | rw [straight, h]; congr 1 |
| 52 | by_cases hl : d < 0 |
| 53 | · simp only [hl, decide_true] |
| 54 | rw [show (Step.vec ⟨a,true⟩ : Cover) = - step a from rfl] |
| 55 | have hd : (d.natAbs : ℤ) = -d := by omega |
| 56 | rw [smul_neg, ← Nat.cast_smul_eq_nsmul ℤ _ _] |
| 57 | rw [hd, neg_smul, neg_neg] |
| 58 | · simp only [hl, decide_false] |
| 59 | rw [show (Step.vec ⟨a,false⟩ : Cover) = step a from rfl] |
| 60 | have hd : (d.natAbs : ℤ) = d := by omega |
| 61 | rw [← Nat.cast_smul_eq_nsmul ℤ _ _, hd] |
| 62 | |
| 63 | theorem axisRoute_end (x y z : Cover) (l : List Axis) (h : l.Nodup) : |
| 64 | stop z (axisRoute x y l) = fun i => z i + if i ∈ l then y i - x i else 0 := by |
| 65 | induction l generalizing z with |
| 66 | | nil => simp [stop, axisRoute] |
| 67 | | cons a l ih => |
| 68 | funext i |
| 69 | have e := List.nodup_cons.mp h |
| 70 | rw [show axisRoute x y (a::l) = straight a (y a-x a) ++ axisRoute x y l from rfl, |
| 71 | stop_append, straight_stop, ih _ e.2] |
| 72 | rcases eq_or_ne i a with H|H <;> simp [*, Pi.smul_apply] |
| 73 | |
| 74 | theorem route_end (x y : Cover) (l : Order) : stop x (route x y l) = y := by |
| 75 | unfold route |
| 76 | rw [axisRoute_end] |
| 77 | · funext i |
| 78 | have e : i ∈ allAxes l := List.mem_map.mpr ⟨l.symm i, by simp, by simp⟩ |
| 79 | simp [e] |
| 80 | exact (List.nodup_finRange _).map l.injective |
| 81 | |
| 82 | @[simp] theorem route_same (x : Cover) (l : Order) : route x x l = [] := by simp [route, axisRoute, straight] |
| 83 | end YM.Lattice |