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.Space.Configurations |
| 2 | import Mathlib.LinearAlgebra.UnitaryGroup |
| 3 | import Mathlib.Analysis.SpecialFunctions.Exponential |
| 4 | import Mathlib.Analysis.Matrix.Normed |
| 5 | import Mathlib.Topology.Algebra.Star.Unitary |
| 6 | |
| 7 | /-! |
| 8 | Orthogonal transformations, skew generators and the restriction to `H`. |
| 9 | (later acts on the actual W spaces). |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | namespace YM |
| 15 | |
| 16 | open MeasureTheory Set Filter WithLp |
| 17 | open scoped Matrix.Norms.Frobenius Matrix InnerProductSpace Topology |
| 18 | |
| 19 | abbrev M4 := Matrix Axis Axis ℝ |
| 20 | abbrev Ortho := ↥(Matrix.unitaryGroup Axis ℝ) |
| 21 | |
| 22 | namespace M4 |
| 23 | |
| 24 | def move (A : M4) (x : E4) := Matrix.toEuclideanLin A x |
| 25 | |
| 26 | theorem at_coord (A : M4) (x : E4) (i : Axis) : move A x i = ∑ j, A i j * x j := rfl |
| 27 | |
| 28 | @[simp] theorem move_one (x : E4) : move 1 x = x := by |
| 29 | apply WithLp.ofLp_injective 2 |
| 30 | change (1 : M4) *ᵥ ofLp x = ofLp x |
| 31 | rw [Matrix.one_mulVec] |
| 32 | |
| 33 | theorem move_mul (A B : M4) (x : E4) : move (A*B) x = move A (move B x) := by |
| 34 | apply WithLp.ofLp_injective 2 |
| 35 | exact (Matrix.mulVec_mulVec (ofLp x) A B).symm |
| 36 | |
| 37 | @[simp] theorem move_basis (A : M4) (i j : Axis) : move A (basis j) i = A i j := by |
| 38 | simp [at_coord, basis_eq] |
| 39 | end M4 |
| 40 | |
| 41 | namespace Ortho |
| 42 | |
| 43 | @[simp] theorem transp (s : Ortho) : s.val.transpose * s.val = 1 := by |
| 44 | simpa [Matrix.star_eq_conjTranspose] using (show star s.val * s.val = 1 from s.2.1) |
| 45 | |
| 46 | def move (s : Ortho) (x : E4) := M4.move s.val x |
| 47 | |
| 48 | theorem move_mul (s r : Ortho) (x : E4) : move (s*r) x = move s (move r x) := |
| 49 | M4.move_mul _ _ _ |
| 50 | |
| 51 | @[simp] theorem move_one (x : E4) : move 1 x = x := M4.move_one x |
| 52 | @[simp] theorem move_inv (s : Ortho) (x : E4) : move s (move s⁻¹ x) = x := by rw [← move_mul]; simp |
| 53 | @[simp] theorem inv_move (s : Ortho) (x : E4) : move s⁻¹ (move s x) = x := by rw [← move_mul]; simp |
| 54 | |
| 55 | theorem move_norm (s : Ortho) (x : E4) : ‖move s x‖ = ‖x‖ := by |
| 56 | rw [← sq_eq_sq₀ (norm_nonneg _) (norm_nonneg _), ← real_inner_self_eq_norm_sq, |
| 57 | ← real_inner_self_eq_norm_sq] |
| 58 | simp only [EuclideanSpace.inner_eq_star_dotProduct, star_trivial] |
| 59 | change dotProduct (s.val *ᵥ ofLp x) (s.val *ᵥ ofLp x) = _ |
| 60 | rw [← Matrix.dotProduct_transpose_mulVec s.val (ofLp x) (s.val *ᵥ ofLp x), |
| 61 | Matrix.mulVec_mulVec, transp, Matrix.one_mulVec] |
| 62 | |
| 63 | def motion (s : Ortho) : E4 ≃ₗᵢ[ℝ] E4 where |
| 64 | toFun := move s |
| 65 | invFun := move s⁻¹ |
| 66 | map_add' _ _ := (Matrix.toEuclideanLin s.val).map_add _ _ |
| 67 | map_smul' _ _ := (Matrix.toEuclideanLin s.val).map_smul _ _ |
| 68 | left_inv := inv_move _ |
| 69 | right_inv := move_inv _ |
| 70 | norm_map' := move_norm _ |
| 71 | |
| 72 | @[simp] theorem motion_at (s : Ortho) (x : E4) : motion s x = move s x := rfl |
| 73 | |
| 74 | theorem move_injective (s : Ortho) : Function.Injective (move s) := (motion s).injective |
| 75 | |
| 76 | @[ext] theorem ext (s r : Ortho) (h : ∀ x, move s x = move r x) : s = r := by |
| 77 | apply Subtype.ext |
| 78 | apply Matrix.ext |
| 79 | intro i j |
| 80 | rw [← M4.move_basis s.val i j, ← M4.move_basis r.val i j] |
| 81 | exact congrArg (fun x : E4 => x i) (h (basis j)) |
| 82 | end Ortho |
| 83 | |
| 84 | /-! Restriction to signed-permutation group. -/ |
| 85 | namespace Signed |
| 86 | |
| 87 | def matrix (s : Signed) : M4 := Matrix.of fun b a => |
| 88 | if s.perm a = b then (if s.flip a then -1 else 1) else 0 |
| 89 | |
| 90 | lemma matrix_at (s : Signed) (a b : Axis) : |
| 91 | s.matrix b a = if s.perm a = b then (if s.flip a then -1 else 1) else 0 := rfl |
| 92 | |
| 93 | def ortho (s : Signed) : Ortho := ⟨s.matrix, by |
| 94 | rw [Matrix.mem_unitaryGroup_iff'] |
| 95 | apply Matrix.ext |
| 96 | intro i j |
| 97 | simp only [Matrix.star_eq_conjTranspose, Matrix.conjTranspose_eq_transpose_of_trivial, |
| 98 | Matrix.mul_apply, Matrix.transpose_apply] |
| 99 | rw [Finset.sum_eq_single_of_mem (s.perm i) (Finset.mem_univ _)] |
| 100 | · rcases eq_or_ne i j with e | e |
| 101 | · subst j; rw [matrix_at]; split_ifs <;> simp_all |
| 102 | · rw [matrix_at, matrix_at] |
| 103 | simp [e, Ne.symm e] |
| 104 | · intro b hb h |
| 105 | rw [matrix_at] |
| 106 | simp [Ne.symm h]⟩ |
| 107 | |
| 108 | theorem ortho_move (s : Signed) (x : E4) : Ortho.move s.ortho x = toLp 2 (s.act x.ofLp) := by |
| 109 | apply PiLp.ext |
| 110 | intro b |
| 111 | obtain ⟨a,rfl⟩ := s.perm.surjective b |
| 112 | rw [Ortho.move, M4.at_coord] |
| 113 | rw [Finset.sum_eq_single_of_mem a (Finset.mem_univ a)] |
| 114 | · simp only [ortho, matrix_at, ↓reduceIte, act_at]; split <;> simp |
| 115 | · intro j _ h; simp [ortho, matrix_at, h] |
| 116 | |
| 117 | def inclusionO : Signed →* Ortho where |
| 118 | toFun := ortho |
| 119 | map_one' := Ortho.ext _ _ (by simp [ortho_move]) |
| 120 | map_mul' x y := Ortho.ext _ _ (by simp [Ortho.move_mul, ortho_move, act_mul]) |
| 121 | |
| 122 | def reflect (i : Axis) := ortho (mirror i) |
| 123 | |
| 124 | @[simp] theorem mirrored (a i : Axis) (x : E4) : |
| 125 | Ortho.move (reflect a) x i = if i = a then - x i else x i := by |
| 126 | simp [reflect, ortho_move, act, mirror, eq_comm] |
| 127 | end Signed |
| 128 | |
| 129 | namespace Ortho |
| 130 | |
| 131 | /-- `so(4)` as real skew matrices. -/ |
| 132 | def skewSpace : Submodule ℝ M4 where |
| 133 | carrier := {A | star A = - A} |
| 134 | add_mem' := by |
| 135 | intro a b ha hb |
| 136 | change star (a+b) = -(a+b) |
| 137 | rw [star_add, ha, hb, neg_add] |
| 138 | smul_mem' := by |
| 139 | intro t a h |
| 140 | change star (t • a) = -(t • a) |
| 141 | rw [star_smul, star_trivial, h, smul_neg] |
| 142 | zero_mem' := by simp |
| 143 | |
| 144 | abbrev Skew := ↥skewSpace |
| 145 | |
| 146 | def oneParameter (Ω : Skew) (t : ℝ) : Ortho := ⟨NormedSpace.exp (t • Ω.val), by |
| 147 | haveI : NormedAlgebra ℚ M4 := .restrictScalars ℚ ℝ _ |
| 148 | exact NormedSpace.exp_mem_unitary_of_mem_skewAdjoint (skewSpace.smul_mem _ Ω.property)⟩ |
| 149 | |
| 150 | /-- Entry `(i,j)=1`, `(j,i)=-1` when distinct. In `Plane timeAxis l`, |
| 151 | coordinate vector field is `xˡ∂_y - y∂_l` with `y = Euclidean time` . -/ |
| 152 | def plane (i j : Axis) : Skew := ⟨Matrix.single i j 1 - Matrix.single j i 1, by |
| 153 | change star _ = -_ |
| 154 | simp [Matrix.star_eq_conjTranspose]⟩ |
| 155 | end Ortho |
| 156 | |
| 157 | end YM |