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.Box |
| 2 | |
| 3 | /-! Coordinate route with starting corner retained. -/ |
| 4 | |
| 5 | set_option autoImplicit false |
| 6 | namespace YM.Lattice |
| 7 | |
| 8 | open Finset |
| 9 | |
| 10 | @[simp] theorem reverse_append (p q : Walk) : reverse (p++q) = reverse q ++ reverse p := by simp [reverse] |
| 11 | |
| 12 | theorem reverse_straight (i : Axis) (d : ℤ) : reverse (straight i d) = straight i (-d) := by |
| 13 | rcases lt_trichotomy d 0 with h|h|h |
| 14 | all_goals simp [*,straight, reverse, Step.rev] |
| 15 | all_goals omega |
| 16 | |
| 17 | theorem axisRoute_append (p q : List Axis) (x y) : axisRoute x y (p++q)=axisRoute x y p++axisRoute x y q := by simp [axisRoute] |
| 18 | |
| 19 | theorem axisRoute_reverse (l : List Axis) (x y) : axisRoute y x l.reverse = reverse (axisRoute x y l) := by |
| 20 | induction l with |
| 21 | | nil => simp [reverse,axisRoute] |
| 22 | | cons a l ih => rw [List.reverse_cons,axisRoute_append,ih]; simp [axisRoute,reverse_straight] |
| 23 | |
| 24 | lemma rev_range : (List.finRange 4).map Fin.rev = (List.finRange 4).reverse := by decide |
| 25 | |
| 26 | def backward (o : Lattice.Order) : Lattice.Order := (Fin.revPerm).trans o |
| 27 | |
| 28 | @[simp] theorem backward_back (o : Lattice.Order) : backward (backward o) = o := by ext; simp [backward] |
| 29 | |
| 30 | def backOrder : Equiv.Perm Lattice.Order := ⟨backward,backward, backward_back, backward_back⟩ |
| 31 | |
| 32 | theorem back_axes (o : Lattice.Order) : allAxes (backOrder o) = (allAxes o).reverse := by |
| 33 | unfold allAxes |
| 34 | rw [← List.map_reverse, ← rev_range, List.map_map]; rfl |
| 35 | |
| 36 | theorem back_route (x y) (o : Lattice.Order) : route x y (backOrder o) = reverse (route y x o) := by |
| 37 | unfold route; rw [back_axes, axisRoute_reverse] |
| 38 | |
| 39 | lemma indexRoute (d : ℤ) (a : Axis) (s : Signed) : List.map (·.rotate s) (straight a d) = |
| 40 | straight (s.perm a) (if s.flip a then -d else d) := by |
| 41 | cases hf : s.flip a <;> rcases lt_trichotomy d 0 with h|h|h |
| 42 | all_goals simp [*,straight,Step.rotate] |
| 43 | all_goals omega |
| 44 | |
| 45 | def sendOrder (s : Signed) (o : Lattice.Order) : Lattice.Order := o.trans s.perm |
| 46 | |
| 47 | @[simp] lemma sendOrder_inv (s : Signed) (o : Lattice.Order) : sendOrder s⁻¹ (sendOrder s o) = o := by ext; simp [sendOrder,Signed.inv_perm] |
| 48 | |
| 49 | def orderEquiv (s : Signed) : Equiv.Perm Lattice.Order where |
| 50 | toFun := sendOrder s |
| 51 | invFun := sendOrder s⁻¹ |
| 52 | left_inv := sendOrder_inv s |
| 53 | right_inv := by intro h; simpa using sendOrder_inv s⁻¹ h |
| 54 | |
| 55 | theorem send_route (x y) (o : Lattice.Order) (s : Signed) (b) : |
| 56 | List.map (·.rotate s) (route x y o) = route (affine s b x) (affine s b y) (orderEquiv s o) := by |
| 57 | have he : allAxes (orderEquiv s o) = List.map s.perm (allAxes o) := by unfold allAxes; rw [List.map_map]; rfl |
| 58 | unfold route; rw [he]; unfold axisRoute; rw [List.map_flatMap,List.flatMap_map]; congr 1 |
| 59 | funext i |
| 60 | rw [indexRoute]; simp only [affine, Pi.add_apply, s.act_at, add_sub_add_right_eq_sub] |
| 61 | split <;> simp [*, sub_neg_eq_add]; congr 1; abel |
| 62 | end YM.Lattice |