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.LinearAlgebra.Multilinear.Basis |
| 2 | |
| 3 | /-! Basis constructor for covariances with unbounded Wick degree. |
| 4 | Arity handled uniformly, including constant arity zero. Useful also |
| 5 | for extracting coordinate moments. |
| 6 | -/ |
| 7 | set_option autoImplicit false |
| 8 | noncomputable section |
| 9 | namespace YM.Multilabel |
| 10 | open Module Function |
| 11 | open scoped BigOperators |
| 12 | |
| 13 | variable {R ι X : Type*} [CommSemiring R] [AddCommMonoid X] [Module R X] |
| 14 | variable {V : ι → Type*} [∀ i, AddCommMonoid (V i)] [∀ i, Module R (V i)] |
| 15 | variable {o : ι → Type*} |
| 16 | |
| 17 | variable [Fintype ι] |
| 18 | |
| 19 | def ofBasis (B : ∀ i, Basis (o i) R (V i)) (Q : (∀ i, o i) → X) : |
| 20 | MultilinearMap R V X := by |
| 21 | classical |
| 22 | let L (i : ι) : V i ≃ₗ[R] (Π₀ _ : o i, R) := (B i).repr.trans <| finsuppLequivDFinsupp R |
| 23 | exact ((MultilinearMap.fromDFinsuppEquiv o R) (fun p => MultilinearMap.piRingEquiv (Q p))).compLinearMap |
| 24 | fun i => (L i).toLinearMap |
| 25 | |
| 26 | theorem applyBasis (B : ∀ i, Basis (o i) R (V i)) (Q : (∀ i, o i) → X) (v : ∀ i, o i) : |
| 27 | ofBasis B Q (fun i => B i (v i)) = Q v := by |
| 28 | classical |
| 29 | simp only [ofBasis, MultilinearMap.compLinearMap_apply, LinearEquiv.coe_coe, |
| 30 | LinearEquiv.trans_apply, Basis.repr_self] |
| 31 | simp |
| 32 | change (∏ _ : ι, (1:R)) • Q v = _ |
| 33 | simp |
| 34 | |
| 35 | theorem expansion [DecidableEq ι] (B : ∀ i, Basis (o i) R (V i)) (T : MultilinearMap R V X) |
| 36 | (v : ∀ i, V i) : |
| 37 | T v = ∑ e ∈ Fintype.piFinset (fun i => ((B i).repr (v i)).support), |
| 38 | (∏ i, (B i).repr (v i) (e i)) • (T fun i => B i (e i)) := by |
| 39 | classical |
| 40 | have ht (i) : ∑ j ∈ ((B i).repr (v i)).support, ((B i).repr (v i)) j • B i j = v i := |
| 41 | (B i).linearCombination_repr _ |
| 42 | conv_lhs => rw [← funext ht] |
| 43 | rw [MultilinearMap.map_sum_finset] |
| 44 | exact Finset.sum_congr rfl fun e _ => T.map_smul_univ _ _ |
| 45 | end YM.Multilabel |