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 PublicTheory |
| 2 | |
| 3 | /-! Four-dimensional periodic Wilson lattice and its ordered continuum limit. -/ |
| 4 | set_option autoImplicit false |
| 5 | noncomputable section |
| 6 | namespace YangMills |
| 7 | open MeasureTheory TopologicalSpace Filter Set |
| 8 | open scoped Topology BigOperators Distributions Matrix.Norms.Frobenius |
| 9 | |
| 10 | abbrev Points (n : ℕ) := PiLp 2 (fun _ : Fin n => Spacetime) |
| 11 | abbrev Site (l : ℕ+) := Axis → ZMod l.val |
| 12 | abbrev Configuration (g : GaugeGroup) (l : ℕ+) := (Site l × Axis) → g.image |
| 13 | abbrev Directions := {p : Axis × Axis // p.1 < p.2} |
| 14 | |
| 15 | namespace GaugeGroup |
| 16 | instance (g : GaugeGroup) : MeasurableSpace g.image := borel _ |
| 17 | instance (g : GaugeGroup) : BorelSpace g.image := ⟨rfl⟩ |
| 18 | end GaugeGroup |
| 19 | |
| 20 | def plaquette {g : GaugeGroup} {l : ℕ+} (U : Configuration g l) (x : Site l) |
| 21 | (i j : Axis) : g.image := |
| 22 | U (x,i) * (U (x + Pi.single i 1,j) * |
| 23 | ((U (x + Pi.single j 1,i))⁻¹ * (U (x,j))⁻¹)) |
| 24 | |
| 25 | def wilsonEnergy {g : GaugeGroup} {l : ℕ+} (U : Configuration g l) : ℝ := |
| 26 | ∑ p : Site l × Directions, |
| 27 | (1 - ((plaquette U p.1 p.2.val.1 p.2.val.2).val.val.trace).re / ((g.n+1 : ℕ) : ℝ)) |
| 28 | |
| 29 | def wilsonLaw (g : GaugeGroup) (l : ℕ+) (β : ℝ) (haar : Measure g.image) : |
| 30 | Measure (Configuration g l) := |
| 31 | let prior : Measure (Configuration g l) := Measure.pi fun _ => haar |
| 32 | let density := fun U : Configuration g l => Real.exp (-β * wilsonEnergy U) |
| 33 | prior.withDensity fun U => ENNReal.ofReal (density U / ∫ V, density V ∂prior) |
| 34 | |
| 35 | structure WilsonFamily (g : GaugeGroup) where |
| 36 | period : ℕ → ℕ+ |
| 37 | denominator : ℕ → ℕ+ |
| 38 | periodStrict : StrictMono fun p => (period p).val |
| 39 | denominatorStrict : StrictMono fun N => (denominator N).val |
| 40 | beta : ℕ → ℕ → ℝ |
| 41 | haar : Measure g.image |
| 42 | probability : IsProbabilityMeasure haar |
| 43 | invariantHaar : haar.IsHaarMeasure |
| 44 | Token : Type |
| 45 | insertion (N p : ℕ) : Token → Site (period p * denominator N) → |
| 46 | Configuration g (period p * denominator N) → ℂ |
| 47 | |
| 48 | namespace WilsonFamily |
| 49 | variable {g : GaugeGroup} (C : WilsonFamily g) |
| 50 | def mesh (N : ℕ) := ((C.denominator N).val : ℝ)⁻¹ |
| 51 | def place (N p : ℕ) (y : Site (C.period p * C.denominator N)) : Spacetime := |
| 52 | WithLp.toLp 2 fun i => C.mesh N * (ZMod.valMinAbs (y i) : ℝ) |
| 53 | |
| 54 | def finiteMoment (N p : ℕ) {n : ℕ} (labels : Fin n → C.Token) |
| 55 | (x : Fin n → Site (C.period p * C.denominator N)) : ℂ := |
| 56 | ∫ U, ∏ i, C.insertion N p (labels i) (x i) U |
| 57 | ∂wilsonLaw g (C.period p * C.denominator N) (C.beta N p) C.haar |
| 58 | |
| 59 | def separated (n : ℕ) : Opens (Points n) := |
| 60 | ⟨{x | Function.Injective x.ofLp}, by |
| 61 | classical |
| 62 | have eqSet : {x : Points n | Function.Injective x.ofLp} = |
| 63 | ⋂ (i : Fin n) (j : Fin n) (_ : i ≠ j), {x : Points n | x i ≠ x j} := by |
| 64 | ext x |
| 65 | simp only [mem_setOf_eq, mem_iInter] |
| 66 | exact ⟨fun h i j hij => fun he => hij (h he), fun h i j he => by_contra fun hij => h i j hij he⟩ |
| 67 | rw [eqSet] |
| 68 | apply isOpen_iInter_of_finite; intro i |
| 69 | apply isOpen_iInter_of_finite; intro j |
| 70 | apply isOpen_iInter_of_finite; intro _ |
| 71 | exact isOpen_ne_fun (PiLp.continuous_apply _ _ i) (PiLp.continuous_apply _ _ j)⟩ |
| 72 | |
| 73 | abbrev SeparatedTest (n : ℕ) := _root_.TestFunction (separated n) ℂ ⊤ |
| 74 | |
| 75 | def suitable (p : ℕ) {n : ℕ} (t : SeparatedTest n) : Prop := |
| 76 | tsupport t ⊆ {x : Points n | ∀ i a, -((C.period p).val / (2:ℝ)) < x i a ∧ |
| 77 | x i a < (C.period p).val / (2:ℝ)} |
| 78 | |
| 79 | def smear (N p : ℕ) {n : ℕ} (v : Fin n → C.Token) (t : SeparatedTest n) : ℂ := |
| 80 | (C.mesh N : ℂ) ^ (4*n) * ∑ x : Fin n → Site (C.period p * C.denominator N), |
| 81 | t (WithLp.toLp 2 fun i => C.place N p (x i)) * C.finiteMoment N p v x |
| 82 | |
| 83 | /-- Full mesh limit at each suitable fixed physical volume; then the |
| 84 | infinite-volume limit along the indicated strictly increasing sequence. -/ |
| 85 | def Converges (volumeOrder : ℕ → ℕ) |
| 86 | (unselected : {n : ℕ} → (Fin n → C.Token) → Points n → ℂ) : Prop := |
| 87 | ∀ n (v : Fin n → C.Token) (t : SeparatedTest n), |
| 88 | (∀ᶠ k : ℕ in atTop, C.suitable (volumeOrder k) t) ∧ ∃ row : ℕ → ℂ, |
| 89 | (∀ p, C.suitable p t → Tendsto (fun N => C.smear N p v t) atTop (𝓝 (row p))) ∧ |
| 90 | Tendsto (fun k => row (volumeOrder k)) atTop (𝓝 (∫ x, t x * unselected v x)) |
| 91 | end WilsonFamily |
| 92 | end YangMills |