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 Mathlib.Data.Fintype.Perm |
| 2 | import Mathlib.Data.Fintype.Pi |
| 3 | import Mathlib.Data.Fintype.Prod |
| 4 | import Mathlib.Algebra.Group.Subgroup.Defs |
| 5 | import Mathlib.Algebra.Group.Pi.Basic |
| 6 | |
| 7 | /-! |
| 8 | # Coordinate and signed permutation conventions |
| 9 | |
| 10 | Time is axis 3 throughout (spatial axes `i.castSucc`). |
| 11 | The flip flag is indexed by the **input** axis. This action will be used on |
| 12 | sites/paths in native coordinates and on spacetime arguments. |
| 13 | -/ |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | namespace YM |
| 17 | |
| 18 | abbrev Axis := Fin 4 |
| 19 | abbrev SpaceAxis := Fin 3 |
| 20 | abbrev timeAxis : Axis := Fin.last 3 |
| 21 | abbrev Four (R : Type*) := Axis → R |
| 22 | |
| 23 | @[ext] structure Signed where |
| 24 | perm : Equiv.Perm Axis |
| 25 | flip : Axis → Bool |
| 26 | deriving DecidableEq |
| 27 | |
| 28 | namespace Signed |
| 29 | |
| 30 | instance : Fintype Signed := Fintype.ofEquiv (Equiv.Perm Axis × (Axis → Bool)) |
| 31 | { toFun a := ⟨a.1,a.2⟩, invFun b := (b.perm,b.flip), left_inv _ := rfl, right_inv _ := rfl } |
| 32 | |
| 33 | instance : One Signed := ⟨⟨Equiv.refl _, fun _ => false⟩⟩ |
| 34 | instance : Mul Signed := ⟨fun a b => |
| 35 | ⟨b.perm.trans a.perm, fun i => (a.flip (b.perm i)).xor (b.flip i)⟩⟩ |
| 36 | instance : Inv Signed := ⟨fun a => ⟨a.perm.symm, fun i => a.flip (a.perm.symm i)⟩⟩ |
| 37 | |
| 38 | @[simp] theorem one_perm : (1 : Signed).perm = Equiv.refl _ := rfl |
| 39 | @[simp] theorem one_flip (i : Axis) : (1 : Signed).flip i = false := rfl |
| 40 | theorem mul_perm (a b : Signed) : (a*b).perm = b.perm.trans a.perm := rfl |
| 41 | @[simp] theorem mul_perm_apply (a b : Signed) (i : Axis) : (a*b).perm i = a.perm (b.perm i) := rfl |
| 42 | @[simp] theorem mul_flip (a b : Signed) (i : Axis) : |
| 43 | (a*b).flip i = (a.flip (b.perm i)).xor (b.flip i) := rfl |
| 44 | @[simp] theorem inv_perm (a : Signed) : a⁻¹.perm = a.perm.symm := rfl |
| 45 | @[simp] theorem inv_flip (a : Signed) (i : Axis) : a⁻¹.flip i = a.flip (a.perm.symm i) := rfl |
| 46 | |
| 47 | instance : Group Signed where |
| 48 | one_mul x := Signed.ext (by ext; simp) (by funext; simp) |
| 49 | mul_one x := Signed.ext (by ext; simp) (by funext; simp) |
| 50 | mul_assoc a b c := Signed.ext (by ext; simp) (by funext; simp) |
| 51 | inv_mul_cancel x := Signed.ext (by ext; simp) (by funext; simp) |
| 52 | |
| 53 | variable {R : Type*} |
| 54 | |
| 55 | def mirror (i : Axis) : Signed := ⟨Equiv.refl _, fun j => decide (i = j)⟩ |
| 56 | |
| 57 | @[simp] theorem mirror_inv (i : Axis) : (mirror i)⁻¹ = mirror i := rfl |
| 58 | |
| 59 | section |
| 60 | variable [AddGroup R] |
| 61 | |
| 62 | def act (s : Signed) (x : Four R) : Four R := fun i => |
| 63 | if s.flip (s.perm.symm i) then -x (s.perm.symm i) else x (s.perm.symm i) |
| 64 | |
| 65 | @[simp] theorem act_at (s : Signed) (x : Four R) (i : Axis) : |
| 66 | s.act x (s.perm i) = if s.flip i then - x i else x i := by simp [act] |
| 67 | |
| 68 | @[simp] theorem act_one (x : Four R) : act 1 x = x := by funext; simp [act] |
| 69 | |
| 70 | theorem act_mul (s r : Signed) (x : Four R) : (s*r).act x = s.act (r.act x) := by |
| 71 | funext i |
| 72 | obtain ⟨j,rfl⟩ := (s*r).perm.surjective i |
| 73 | rw [act_at, mul_perm_apply, act_at, act_at, mul_flip] |
| 74 | cases s.flip _ <;> cases r.flip _ <;> simp |
| 75 | |
| 76 | @[simp] theorem act_inv (s : Signed) (x : Four R) : s.act (s⁻¹.act x) = x := by rw [← act_mul]; simp |
| 77 | @[simp] theorem inv_act (s : Signed) (x : Four R) : s⁻¹.act (s.act x) = x := by rw [← act_mul]; simp |
| 78 | end |
| 79 | |
| 80 | section |
| 81 | variable [AddCommGroup R] |
| 82 | |
| 83 | @[simp] theorem act_add (s : Signed) (x y : Four R) : s.act (x+y) = s.act x + s.act y := by |
| 84 | ext i |
| 85 | dsimp only [Pi.add_apply, act]; split <;> simp [add_comm] |
| 86 | |
| 87 | def actEquiv (s : Signed) : Four R ≃+ Four R where |
| 88 | toFun := act s |
| 89 | invFun := act s⁻¹ |
| 90 | left_inv := s.inv_act |
| 91 | right_inv := s.act_inv |
| 92 | map_add' := act_add _ |
| 93 | |
| 94 | @[simp] theorem act_zero (s : Signed) : s.act (0 : Four R) = 0 := (actEquiv (R := R) s).map_zero |
| 95 | @[simp] theorem act_neg (s : Signed) (x : Four R) : s.act (- x) = - s.act x := (actEquiv (R := R) s).map_neg _ |
| 96 | @[simp] theorem act_sub (s : Signed) (x y : Four R) : s.act (x-y) = s.act x - s.act y := (actEquiv (R := R) s).map_sub _ _ |
| 97 | |
| 98 | theorem act_injective (s : Signed) : Function.Injective (s.act (R := R)) := s.actEquiv.injective |
| 99 | end |
| 100 | end Signed |
| 101 | end YM |