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.Analysis.PSeries |
| 2 | import YM.Push.LOOP_COEFFICIENT.Block.Basis |
| 3 | import YM.Push.LOOP_COEFFICIENT.Block.Induce |
| 4 | |
| 5 | /-! |
| 6 | # Internal pair identification needed only at flat |
| 7 | -/ |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | namespace YM.Push.Loops.Block |
| 11 | open Matrix Function Set Filter Lattice Laurent RG Bloch Wilson Complex Portal |
| 12 | open scoped Topology ContDiff BigOperators Matrix.Norms.L2Operator |
| 13 | variable {L : Side} {a b c d e : Type} [Fintype a] [Fintype b] [Fintype c] [Fintype e] [DecidableEq a] [DecidableEq b] [DecidableEq c] {S : Set Momentum} |
| 14 | def Rep (S : Set Momentum) (U : Vertex e (Co L a) (Co L b)) (V : Vertex d a b) := ∀ q∈S,∀ l : Site L, U.base q * place b q l = place a q l * V.base (aliasAt q l) |
| 15 | namespace Rep |
| 16 | variable {U U' : Vertex e (Co L a) (Co L b)} {V V' : Vertex d a b} |
| 17 | lemma induce (Y : Profiles L d e) (V : Vertex d a b) : Rep S (induce V Y) V := fun q _ l => by |
| 18 | simp only [Block.induce,channel,LinearMap.comp_apply,LinearMap.flip_apply,matrixMulLinear,LinearMap.mk₂_apply,Matrix.sum_mul] |
| 19 | rw [Fintype.sum_eq_single l (fun j hj => ?_), Matrix.mul_assoc _ (select b q l),basis_pair,if_pos rfl,Matrix.mul_one] |
| 20 | rw [Matrix.mul_assoc _ (select b q j),basis_pair,if_neg hj, Matrix.mul_zero] |
| 21 | omit [Fintype e] in |
| 22 | lemma realize (h : Rep S U V) {q} (hq : q∈S) : U.base q = ∑ l : Site L, channel q q l l (V.base (aliasAt q l)) := by rw [← Matrix.mul_one (U.base q), ← place_select (L:=L) q, Matrix.mul_sum]; exact Finset.sum_congr rfl fun l _ => by rw [← Matrix.mul_assoc,h q hq]; rfl |
| 23 | |
| 24 | omit [Fintype e] in lemma add (h : Rep S U V) (h' : Rep S U' V') : Rep S (U.add U') (V.add V') := fun q hq l => by simp only [Vertex.add,Pi.add_apply, Matrix.add_mul,Matrix.mul_add,h q hq,h' q hq] |
| 25 | omit [Fintype e] in lemma smul (h : Rep S U V) (z : ℂ) : Rep S (U.smul z) (V.smul z) := fun q hq l => by simp only [Vertex.smul,Pi.smul_apply, Matrix.smul_mul,Matrix.mul_smul,h q hq] |
| 26 | omit [Fintype e] in lemma zero : Rep S (Vertex.const (d:=e) (a:=Co L a) (b:=Co L b) 0) (Vertex.const (d:=d) 0) := by intro q hq l; simp [Vertex.const] |
| 27 | omit [Fintype e] in lemma id : Rep S (Vertex.id (d:=e) (a:=Co L a)) (Vertex.id (d:=d)) := by intro q hq l; simp [Vertex.id,Vertex.const] |
| 28 | omit [Fintype e] in |
| 29 | lemma mul {U' : Vertex e (Co L b) (Co L c)} {V'} (h : Rep S U V) (h' : Rep S U' V') : Rep S (U.mul U') (V.mul V') := by intro q hq l; dsimp only [Vertex.mul]; rw [Matrix.mul_assoc,h' q hq,← Matrix.mul_assoc,h q hq,Matrix.mul_assoc] |
| 30 | omit [Fintype e] in lemma pow {U : Vertex e (Co L a) (Co L a)} {V : Vertex d a a} (h : Rep S U V) (k : ℕ) : Rep S (U.pow k) (V.pow k) := by induction k with |
| 31 | | zero => exact Rep.id |
| 32 | | succ _ ih => exact ih.mul h |
| 33 | omit [Fintype e] in lemma roll {U : Vertex e (Co L a) (Co L a)} {V : Vertex d a a} (h : Rep S U V) : Rep S U.roll V.roll := by |
| 34 | apply Rep.id.add; generalize depth=k; induction k with |
| 35 | | zero => exact Rep.zero |
| 36 | | succ k ih => exact ih.add (h.pow _) |
| 37 | omit [Fintype e] in lemma unit {U : Vertex e (Co L a) (Co L a)} {V : Vertex d a a} (h : Rep S U V) {q} (hq : q∈S) (hu : ∀ i : Site L, IsUnit (V.base (aliasAt q i))) : IsUnit (U.base q) := by |
| 38 | let M := ∑ l,place a q l * (V.base (aliasAt q (L:=L) l))⁻¹ * select a q l |
| 39 | have he : U.base q * M = 1 := by |
| 40 | rw [show (1:Matrix (Co L a) (Co L a) ℂ) = _ from (place_select (L:=L) q).symm]; unfold M; rw [Matrix.mul_sum]; refine Finset.sum_congr rfl fun i _ => ?_; rw [← Matrix.mul_assoc, ← Matrix.mul_assoc,h q hq,Matrix.mul_assoc (place a q i),Matrix.mul_nonsing_inv _ (Matrix.isUnit_iff_isUnit_det _ |>.mp (hu i)),Matrix.mul_one] |
| 41 | exact IsUnit.mul_iff.mp (he.symm ▸ isUnit_one) |>.1 |
| 42 | omit [Fintype e] in lemma inv {U : Vertex e (Co L a) (Co L a)} {V : Vertex d a a} (h : Rep S U V) (hu : ∀ q∈S,∀ i : Site L, IsUnit (V.base (aliasAt q i))) : Rep S U.inv V.inv := by |
| 43 | intro q hq l; simp only [Vertex.inv,Vertex.add,Vertex.const,Vertex.mul,Vertex.inc,Vertex.neg,Pi.neg_apply,Pi.add_apply, Pi.zero_apply,Matrix.mul_zero,Matrix.zero_mul,add_zero]; have he := congr_arg ((U.base q)⁻¹ * · * (V.base (aliasAt q l))⁻¹) (h q hq l) |
| 44 | rw [← Matrix.mul_assoc, Matrix.nonsing_inv_mul _ (Matrix.isUnit_iff_isUnit_det _ |>.mp (h.unit hq (hu _ hq))),Matrix.one_mul,Matrix.mul_assoc,Matrix.mul_assoc,Matrix.mul_nonsing_inv _ (Matrix.isUnit_iff_isUnit_det _ |>.mp (hu _ hq l)),Matrix.mul_one] at he; exact he.symm |
| 45 | omit [Fintype e] in lemma transpose (hS : ∀ q∈S, -q∈S) (h : Rep S U V) (he : ∀ q∈S,∀ i : Site L, V.base (-aliasAt q i) = V.base (aliasAt (-q) (-i))) : Rep S U.transpose V.transpose := by |
| 46 | intro q hq i |
| 47 | apply transpose_injective |
| 48 | rw [Vertex.transpose, transpose_mul,transpose_mul, transpose_transpose, select_opposite,Matrix.smul_mul]; rw [Vertex.transpose, transpose_transpose,select_opposite,Matrix.mul_smul, h.realize (hS q hq),he q hq] |
| 49 | rw [Matrix.mul_sum,Fintype.sum_eq_single (-i) (fun j hj => ?_)] |
| 50 | · dsimp [channel,matrixMulLinear]; rw [← Matrix.mul_assoc,← Matrix.mul_assoc,basis_pair,if_pos rfl,Matrix.one_mul] |
| 51 | dsimp [channel,matrixMulLinear]; rw [← Matrix.mul_assoc,← Matrix.mul_assoc,basis_pair,if_neg (Ne.symm hj),Matrix.zero_mul,Matrix.zero_mul] |
| 52 | end Rep |
| 53 | end YM.Push.Loops.Block |