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 |
| 2 | |
| 3 | /-! Public gauge and Wightman definitions adapted from an earlier challenge, |
| 4 | commit eea94292e31734d46498be7836d7e8fa50ca8cd2. The symmetry |
| 5 | coordinates cover every proper orthochronous Lorentz transformation and |
| 6 | translation. Their affine action fixes the transformation of test functions. -/ |
| 7 | set_option autoImplicit false |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace YangMills |
| 12 | |
| 13 | open MeasureTheory Set Function |
| 14 | open scoped Topology InnerProductSpace Matrix.Norms.Frobenius |
| 15 | |
| 16 | /-! ## Compact simple matrix gauge groups -/ |
| 17 | |
| 18 | /-- The fixed faithful unitary representation used to describe a gauge |
| 19 | group. -/ |
| 20 | abbrev UnitaryRepresentation (n : ℕ) := Matrix.unitaryGroup (Fin (n + 1)) ℂ |
| 21 | |
| 22 | /-- A compact matrix gauge group together with its one-parameter Lie |
| 23 | algebra. The last field prevents the Lie algebra from being arbitrary: it |
| 24 | consists exactly of the matrices whose exponentials stay in the group. -/ |
| 25 | structure GaugeGroup where |
| 26 | n : ℕ |
| 27 | image : Subgroup (UnitaryRepresentation n) |
| 28 | imageClosed : IsClosed (image : Set (UnitaryRepresentation n)) |
| 29 | lieAlgebra : Submodule ℝ (Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ) |
| 30 | generates : ∀ X, |
| 31 | X ∈ lieAlgebra ↔ |
| 32 | ∀ t : ℝ, NormedSpace.exp (t • X) ∈ |
| 33 | Set.range (fun u : image ↦ (u.1 : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ)) |
| 34 | |
| 35 | namespace GaugeGroup |
| 36 | |
| 37 | /-- Real simplicity of the Lie algebra, including the nonabelian |
| 38 | condition. -/ |
| 39 | def IsSimple (gauge : GaugeGroup) : Prop := |
| 40 | (∃ X ∈ gauge.lieAlgebra, ∃ Y ∈ gauge.lieAlgebra, |
| 41 | X * Y - Y * X ≠ 0) ∧ |
| 42 | ∀ ideal : Submodule ℝ (Matrix (Fin (gauge.n + 1)) (Fin (gauge.n + 1)) ℂ), |
| 43 | ideal ≤ gauge.lieAlgebra → |
| 44 | (∀ X ∈ gauge.lieAlgebra, ∀ Y ∈ ideal, X * Y - Y * X ∈ ideal) → |
| 45 | ideal = ⊥ ∨ ideal = gauge.lieAlgebra |
| 46 | |
| 47 | end GaugeGroup |
| 48 | |
| 49 | /-! ## Spacetime and test functions -/ |
| 50 | |
| 51 | abbrev Axis := Fin 4 |
| 52 | abbrev SpaceAxis := Fin 3 |
| 53 | abbrev timeAxis : Axis := Fin.last 3 |
| 54 | abbrev Spacetime := EuclideanSpace ℝ Axis |
| 55 | abbrev Space := EuclideanSpace ℝ SpaceAxis |
| 56 | |
| 57 | def time (x : Spacetime) : ℝ := x timeAxis |
| 58 | |
| 59 | def spatial (x : Spacetime) : Space := |
| 60 | WithLp.toLp 2 fun i ↦ x i.castSucc |
| 61 | |
| 62 | /-- The closed forward light cone in the convention where time is the final |
| 63 | coordinate. -/ |
| 64 | def forwardCone : Set Spacetime := {x | ‖spatial x‖ ≤ time x} |
| 65 | |
| 66 | def minkowskiSquare (x : Spacetime) : ℝ := time x ^ 2 - ‖spatial x‖ ^ 2 |
| 67 | |
| 68 | def spacelike : Set Spacetime := {x | minkowskiSquare x < 0} |
| 69 | |
| 70 | abbrev TestFunction := SchwartzMap Spacetime ℂ |
| 71 | |
| 72 | /-- Pointwise complex conjugation of a Schwartz test function. -/ |
| 73 | def conjugateTest : TestFunction →L[ℝ] TestFunction := |
| 74 | SchwartzMap.postcompCLM (Complex.conjCLE : ℂ →L[ℝ] ℂ) |
| 75 | |
| 76 | /-! ## Basic quantum-field structures -/ |
| 77 | |
| 78 | /-- A bundled complex Hilbert space. -/ |
| 79 | structure HilbertSpace where |
| 80 | carrier : Type |
| 81 | [normedAddCommGroup : NormedAddCommGroup carrier] |
| 82 | [innerProductSpace : InnerProductSpace ℂ carrier] |
| 83 | [completeSpace : CompleteSpace carrier] |
| 84 | |
| 85 | attribute [instance] HilbertSpace.normedAddCommGroup |
| 86 | attribute [instance] HilbertSpace.innerProductSpace |
| 87 | attribute [instance] HilbertSpace.completeSpace |
| 88 | |
| 89 | namespace HilbertSpace |
| 90 | |
| 91 | abbrev Operator (H : HilbertSpace) := H.carrier →L[ℂ] H.carrier |
| 92 | |
| 93 | end HilbertSpace |
| 94 | |
| 95 | /-- A bundled complex vector space of field labels. -/ |
| 96 | structure FieldLabels where |
| 97 | carrier : Type |
| 98 | [addCommGroup : AddCommGroup carrier] |
| 99 | [module : Module ℂ carrier] |
| 100 | |
| 101 | attribute [instance] FieldLabels.addCommGroup |
| 102 | attribute [instance] FieldLabels.module |
| 103 | |
| 104 | /-- Operator-valued tempered fields on one common invariant domain. -/ |
| 105 | structure FieldSystem (H : HilbertSpace) (Labels : FieldLabels) where |
| 106 | domain : Submodule ℂ H.carrier |
| 107 | vacuum : domain |
| 108 | field : Labels.carrier →ₗ[ℂ] |
| 109 | TestFunction →ₗ[ℂ] (domain →ₗ[ℂ] domain) |
| 110 | |
| 111 | namespace FieldSystem |
| 112 | |
| 113 | variable {H : HilbertSpace} {Labels : FieldLabels} |
| 114 | |
| 115 | def vector (fields : FieldSystem H Labels) : |
| 116 | List (Labels.carrier × TestFunction) → fields.domain |
| 117 | | [] => fields.vacuum |
| 118 | | letter :: word => fields.field letter.1 letter.2 (fields.vector word) |
| 119 | |
| 120 | /-- The vacuum expectation of an ordered product of smeared fields. -/ |
| 121 | def vacuumExpectation (fields : FieldSystem H Labels) {n : ℕ} |
| 122 | (labels : Fin n → Labels.carrier) (tests : Fin n → TestFunction) : ℂ := |
| 123 | inner ℂ fields.vacuum.1 |
| 124 | (fields.vector (List.ofFn fun i ↦ (labels i, tests i))).1 |
| 125 | |
| 126 | /-- W1's common-domain, temperedness, and cyclic-vacuum requirements. -/ |
| 127 | structure DomainAxioms (fields : FieldSystem H Labels) : Prop where |
| 128 | normalizedVacuum : ‖fields.vacuum.1‖ = 1 |
| 129 | denseDomain : Dense (fields.domain : Set H.carrier) |
| 130 | cyclicVacuum : fields.domain = |
| 131 | Submodule.span ℂ (Set.range fun word ↦ (fields.vector word).1) |
| 132 | tempered (label : Labels.carrier) (state : fields.domain) : |
| 133 | Continuous fun test ↦ (fields.field label test state).1 |
| 134 | |
| 135 | /-- The smeared adjoint identity on the common domain. -/ |
| 136 | def AdjointAxiom (fields : FieldSystem H Labels) |
| 137 | (adjointLabel : Labels.carrier →ₛₗ[starRingEnd ℂ] Labels.carrier) : Prop := |
| 138 | ∀ label test (left right : fields.domain), |
| 139 | inner ℂ (fields.field label test left).1 right.1 = |
| 140 | inner ℂ left.1 |
| 141 | (fields.field (adjointLabel label) (conjugateTest test) right).1 |
| 142 | |
| 143 | /-- Two test functions are causally disjoint when every difference of |
| 144 | points in their supports is spacelike. -/ |
| 145 | def SpacelikeSeparated (left right : TestFunction) : Prop := |
| 146 | ∀ x ∈ tsupport left, ∀ y ∈ tsupport right, x - y ∈ spacelike |
| 147 | |
| 148 | /-- W3's local commutativity condition. -/ |
| 149 | def LocalCommutativity (fields : FieldSystem H Labels) : Prop := |
| 150 | ∀ leftLabel rightLabel leftTest rightTest, |
| 151 | SpacelikeSeparated leftTest rightTest → |
| 152 | ∀ state : fields.domain, |
| 153 | fields.field leftLabel leftTest |
| 154 | (fields.field rightLabel rightTest state) = |
| 155 | fields.field rightLabel rightTest |
| 156 | (fields.field leftLabel leftTest state) |
| 157 | |
| 158 | /-- Each nonzero label has a nonzero smeared field operator. -/ |
| 159 | def Faithful (fields : FieldSystem H Labels) : Prop := |
| 160 | ∀ label : Labels.carrier, label ≠ 0 → |
| 161 | ∃ test : TestFunction, fields.field label test ≠ 0 |
| 162 | |
| 163 | end FieldSystem |
| 164 | |
| 165 | /-! ## Translations, spectrum, and Poincaré covariance -/ |
| 166 | |
| 167 | /-- A strongly continuous unitary representation of spacetime |
| 168 | translations. -/ |
| 169 | structure TranslationAction (H : HilbertSpace) where |
| 170 | operator : Spacetime → H.Operator |
| 171 | identity : operator 0 = ContinuousLinearMap.id ℂ _ |
| 172 | add (x y : Spacetime) : |
| 173 | (operator x).comp (operator y) = operator (x + y) |
| 174 | unitary (x : Spacetime) (state : H.carrier) : |
| 175 | ‖operator x state‖ = ‖state‖ |
| 176 | stronglyContinuous (state : H.carrier) : |
| 177 | Continuous fun x ↦ operator x state |
| 178 | |
| 179 | /-- A projection-valued joint energy–momentum measure. -/ |
| 180 | structure EnergyMomentumMeasure (H : HilbertSpace) where |
| 181 | projection : Set Spacetime → H.Operator |
| 182 | empty : projection ∅ = 0 |
| 183 | univ : projection Set.univ = ContinuousLinearMap.id ℂ _ |
| 184 | intersection {left right : Set Spacetime} : |
| 185 | MeasurableSet left → MeasurableSet right → |
| 186 | (projection left).comp (projection right) = projection (left ∩ right) |
| 187 | selfAdjoint {region : Set Spacetime} : |
| 188 | MeasurableSet region → |
| 189 | (projection region).adjoint = projection region |
| 190 | countablyAdditive (regions : ℕ → Set Spacetime) |
| 191 | (measurable : ∀ i, MeasurableSet (regions i)) |
| 192 | (disjoint : Pairwise (Disjoint on regions)) (state : H.carrier) : |
| 193 | HasSum (fun i ↦ projection (regions i) state) |
| 194 | (projection (⋃ i, regions i) state) |
| 195 | diagonal : H.carrier → Measure Spacetime |
| 196 | finite (state : H.carrier) : IsFiniteMeasure (diagonal state) |
| 197 | diagonalIdentity {region : Set Spacetime} (measurable : MeasurableSet region) |
| 198 | (state : H.carrier) : |
| 199 | ↑((diagonal state).real region) = |
| 200 | inner ℂ state (projection region state) |
| 201 | |
| 202 | namespace EnergyMomentumMeasure |
| 203 | |
| 204 | attribute [instance] finite |
| 205 | |
| 206 | end EnergyMomentumMeasure |
| 207 | |
| 208 | /-- Proper, time-orientation-preserving linear transformations of Minkowski space. -/ |
| 209 | abbrev ProperLorentz := {g : (Spacetime →L[ℝ] Spacetime)ˣ // |
| 210 | LinearMap.det g.val.toLinearMap = 1 ∧ |
| 211 | (∀ x, minkowskiSquare (g.val x) = minkowskiSquare x) ∧ |
| 212 | (∀ x, g.val x ∈ forwardCone ↔ x ∈ forwardCone)} |
| 213 | |
| 214 | /-- Standard coordinates on the full proper orthochronous Poincaré group. -/ |
| 215 | abbrev PoincareCoordinates := ProperLorentz × Spacetime |
| 216 | |
| 217 | /-- An action in any homeomorphic coordinate system, with its group law and |
| 218 | pullback of tests fixed by the ordinary affine action on spacetime. -/ |
| 219 | structure PoincareAction (H : HilbertSpace) (Labels : FieldLabels) where |
| 220 | Symmetry : Type |
| 221 | [one : One Symmetry] |
| 222 | [mul : Mul Symmetry] |
| 223 | [topology : TopologicalSpace Symmetry] |
| 224 | onStates : Symmetry → H.Operator |
| 225 | onLabels : Symmetry → Labels.carrier ≃ₗ[ℂ] Labels.carrier |
| 226 | onTests : Symmetry → TestFunction → TestFunction |
| 227 | pureTranslation : Spacetime → Symmetry |
| 228 | identity : onStates 1 = ContinuousLinearMap.id ℂ _ |
| 229 | composition (g h : Symmetry) : |
| 230 | onStates (g * h) = (onStates g).comp (onStates h) |
| 231 | unitary (g : Symmetry) (state : H.carrier) : |
| 232 | ‖onStates g state‖ = ‖state‖ |
| 233 | stronglyContinuous (state : H.carrier) : |
| 234 | Continuous fun g ↦ onStates g state |
| 235 | coordinates : Symmetry ≃ₜ PoincareCoordinates |
| 236 | identityCoordinates : (coordinates 1).1.val = 1 ∧ (coordinates 1).2 = 0 |
| 237 | productCoordinates (g h : Symmetry) : |
| 238 | (coordinates (g * h)).1.val = (coordinates g).1.val * (coordinates h).1.val ∧ |
| 239 | (coordinates (g * h)).2 = (coordinates g).1.val.val (coordinates h).2 + (coordinates g).2 |
| 240 | translationCoordinates (x : Spacetime) : |
| 241 | (coordinates (pureTranslation x)).1.val = 1 ∧ (coordinates (pureTranslation x)).2 = x |
| 242 | pullback (g : Symmetry) (f : TestFunction) (x : Spacetime) : |
| 243 | onTests g f x = f (((coordinates g).1.val⁻¹).val (x - (coordinates g).2)) |
| 244 | translationZero : pureTranslation 0 = 1 |
| 245 | translationAdd (x y : Spacetime) : |
| 246 | pureTranslation (x + y) = pureTranslation x * pureTranslation y |
| 247 | |
| 248 | attribute [instance] PoincareAction.one |
| 249 | attribute [instance] PoincareAction.mul |
| 250 | attribute [instance] PoincareAction.topology |
| 251 | |
| 252 | /-! ## Wightman axioms W0–W3 -/ |
| 253 | |
| 254 | /-- The observable data of a relativistic quantum field theory. -/ |
| 255 | structure WightmanTheory (H : HilbertSpace) (Labels : FieldLabels) where |
| 256 | fields : FieldSystem H Labels |
| 257 | adjointLabel : Labels.carrier →ₛₗ[starRingEnd ℂ] Labels.carrier |
| 258 | translations : TranslationAction H |
| 259 | energyMomentum : EnergyMomentumMeasure H |
| 260 | poincare : PoincareAction H Labels |
| 261 | translationCompatibility (x : Spacetime) : |
| 262 | poincare.onStates (poincare.pureTranslation x) = translations.operator x |
| 263 | |
| 264 | namespace WightmanTheory |
| 265 | |
| 266 | variable {H : HilbertSpace} {Labels : FieldLabels} |
| 267 | |
| 268 | /-- W0: Hilbert-space covariance, the spectrum condition, and uniqueness of |
| 269 | the invariant vacuum. -/ |
| 270 | structure W0 (theory : WightmanTheory H Labels) : Prop where |
| 271 | spectralRepresentation : ∀ state : H.carrier, ∀ momentum : Spacetime, |
| 272 | charFun (theory.energyMomentum.diagonal state) momentum = |
| 273 | inner ℂ state (theory.translations.operator momentum state) |
| 274 | positiveEnergy : |
| 275 | theory.energyMomentum.projection forwardConeᶜ = 0 |
| 276 | uniqueVacuum (state : H.carrier) : |
| 277 | (∀ x, theory.translations.operator x state = state) → |
| 278 | ∃ scalar : ℂ, scalar • theory.fields.vacuum.1 = state |
| 279 | |
| 280 | /-- W1: fields are tempered operator-valued distributions on a common dense |
| 281 | invariant domain, with the vacuum cyclic. -/ |
| 282 | structure W1 (theory : WightmanTheory H Labels) : Prop where |
| 283 | domain : theory.fields.DomainAxioms |
| 284 | adjoint : theory.fields.AdjointAxiom theory.adjointLabel |
| 285 | |
| 286 | /-- W2: Poincaré covariance of the fields and their common domain. -/ |
| 287 | structure W2 (theory : WightmanTheory H Labels) : Prop where |
| 288 | labelIdentity (label : Labels.carrier) : |
| 289 | theory.poincare.onLabels 1 label = label |
| 290 | labelComposition (g h : theory.poincare.Symmetry) |
| 291 | (label : Labels.carrier) : |
| 292 | theory.poincare.onLabels (g * h) label = |
| 293 | theory.poincare.onLabels g (theory.poincare.onLabels h label) |
| 294 | domainInvariant (g : theory.poincare.Symmetry) : |
| 295 | Set.MapsTo (theory.poincare.onStates g) |
| 296 | (theory.fields.domain : Set H.carrier) theory.fields.domain |
| 297 | vacuumInvariant (g : theory.poincare.Symmetry) : |
| 298 | theory.poincare.onStates g theory.fields.vacuum.1 = |
| 299 | theory.fields.vacuum.1 |
| 300 | fieldCovariance (g : theory.poincare.Symmetry) |
| 301 | (label : Labels.carrier) (test : TestFunction) |
| 302 | (state : theory.fields.domain) : |
| 303 | theory.poincare.onStates g (theory.fields.field label test state).1 = |
| 304 | (theory.fields.field (theory.poincare.onLabels g label) |
| 305 | (theory.poincare.onTests g test) |
| 306 | ⟨theory.poincare.onStates g state.1, |
| 307 | domainInvariant g state.2⟩).1 |
| 308 | |
| 309 | /-- W3: local commutativity at spacelike separation. -/ |
| 310 | structure W3 (theory : WightmanTheory H Labels) : Prop where |
| 311 | locality : theory.fields.LocalCommutativity |
| 312 | |
| 313 | /-- The four Wightman axioms are separate fields so the Comparator checks |
| 314 | each one explicitly. -/ |
| 315 | structure Axioms (theory : WightmanTheory H Labels) : Prop where |
| 316 | w0 : W0 theory |
| 317 | w1 : W1 theory |
| 318 | w2 : W2 theory |
| 319 | w3 : W3 theory |
| 320 | |
| 321 | end WightmanTheory |
| 322 | |
| 323 | end YangMills |
| 324 | |
| 325 | end |