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.CStarAlgebra.ContinuousLinearMap |
| 2 | import Mathlib.MeasureTheory.Function.ContinuousMapDense |
| 3 | import Mathlib.MeasureTheory.Function.L2Space |
| 4 | import Mathlib.MeasureTheory.Integral.RieszMarkovKakutani.Real |
| 5 | import Mathlib.MeasureTheory.Measure.Support |
| 6 | import YM.Hilbert.Kolmogorov |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | /-! |
| 12 | # C(X) representation to actual compact spectral measure |
| 13 | |
| 14 | No separability assumption on H. Riesz positive Λ's owely in refl-positive |
| 15 | character steps. std Lean linear second slot. Quotient later. |
| 16 | -/ |
| 17 | set_option autoImplicit false |
| 18 | noncomputable section |
| 19 | namespace YM.Spectral.Rep |
| 20 | open MeasureTheory Measure Filter Set Function Complex CompactlySupported |
| 21 | open scoped Topology NNReal ENNReal Real InnerProductSpace |
| 22 | variable {X : Type*} [TopologicalSpace X] {H : Hilbert} |
| 23 | |
| 24 | /-- Integrands on character space. -/ |
| 25 | abbrev CC (X : Type*) [TopologicalSpace X] := C(X,ℂ) |
| 26 | abbrev CR (X : Type*) [TopologicalSpace X] := C(X,ℝ) |
| 27 | |
| 28 | variable (A : CC X →⋆ₐ[ℂ] H.Op) |
| 29 | |
| 30 | def insert : CR X →ₗ[ℝ] CC X where |
| 31 | toFun f := ⟨fun x => (f x:ℂ),continuous_ofReal.comp f.continuous⟩ |
| 32 | map_add' f g := by apply ContinuousMap.ext; intro x; exact ofReal_add .. |
| 33 | map_smul' c f := by apply ContinuousMap.ext; intro x; exact ofReal_mul .. |
| 34 | |
| 35 | @[simp] lemma insertion (f : CR X) x : insert f x=(f x:ℂ) := rfl |
| 36 | |
| 37 | /-- Positive vector state. (No unit assumption on v.) -/ |
| 38 | def Λ (v : H) : CC X →ₗ[ℂ] ℂ := |
| 39 | (innerSL ℂ v).toLinearMap.comp (((ContinuousLinearMap.apply ℂ H.space v).toLinearMap).comp A.toAlgHom.toLinearMap) |
| 40 | lemma atState (v : H) f : Λ A v f=inner ℂ v (A f v) := rfl |
| 41 | |
| 42 | def Λ₀ (v : H) : CR X →ₗ[ℝ] ℝ := |
| 43 | reCLM.toLinearMap.comp (((Λ A v).restrictScalars ℝ).comp insert) |
| 44 | |
| 45 | lemma real (v : H) (u : CR X) : Λ A v (insert u) = ↑(Λ₀ A v u) := by |
| 46 | have h : (A (insert u)).adjoint=A (insert u) := by |
| 47 | change star _=_ |
| 48 | rw [← map_star, show star (insert u)=insert u from ContinuousMap.ext fun x => by |
| 49 | change star (↑(u x):ℂ) = _ |
| 50 | simp] |
| 51 | have he : starRingEnd ℂ (Λ A v (insert u))=Λ A v (insert u) := by |
| 52 | rw [atState,inner_conj_symm,← ContinuousLinearMap.adjoint_inner_right,h] |
| 53 | have hf := congr_arg im he |
| 54 | simp only [conj_im] at hf |
| 55 | apply Complex.ext; exact rfl |
| 56 | rw [ofReal_im]; linarith |
| 57 | |
| 58 | lemma squares (v : H) (u f : CC X) : Λ A v (star u*f)=inner ℂ (A u v) (A f v) := by |
| 59 | rw [atState,map_mul,map_star] |
| 60 | exact ContinuousLinearMap.adjoint_inner_right (A u) v (A f v) |
| 61 | |
| 62 | theorem positive (v : H) (u : CR X) (hw : ∀ x, 0 ≤ u x) : 0 ≤ Λ₀ A v u := by |
| 63 | let y : CR X := ⟨fun i => √(u i), Real.continuous_sqrt.comp u.continuous⟩ |
| 64 | let f := insert y |
| 65 | have he : insert u=star f*f := by |
| 66 | apply ContinuousMap.ext; intro i |
| 67 | change ↑(u i)=star (↑(√(u i)):ℂ)*(↑(√(u i)):ℂ) |
| 68 | rw [show star _= (↑(√(u i)):ℂ) from conj_ofReal _,← sq,← ofReal_pow,Real.sq_sqrt (hw i)] |
| 69 | change 0 ≤ (Λ A v (insert u)).re |
| 70 | rw [he,squares]; exact inner_self_nonneg (𝕜 := ℂ) (x := (A f v)) |
| 71 | |
| 72 | variable [MeasurableSpace X] [BorelSpace X] [T2Space X] [CompactSpace X] |
| 73 | omit [MeasurableSpace X] [BorelSpace X] [T2Space X] [CompactSpace X] in |
| 74 | def Lambda (v : H) : C_c(X,ℝ) →ₚ[ℝ] ℝ where |
| 75 | toFun f := Λ₀ A v f.toContinuousMap |
| 76 | map_add' x y := map_add (Λ₀ A v) .. |
| 77 | map_smul' c x := map_smul (Λ₀ A v) .. |
| 78 | monotone' x y h := by |
| 79 | rw [← sub_nonneg,← map_sub] |
| 80 | exact positive A v _ (fun i => sub_nonneg.mpr (h i)) |
| 81 | |
| 82 | def sees (v : H) : Measure X := RealRMK.rieszMeasure (Lambda A v) |
| 83 | instance fin (v : H) : IsFiniteMeasure (sees A v) := by unfold sees; infer_instance |
| 84 | instance regal (v : H) : Regular (sees A v) := by unfold sees; infer_instance |
| 85 | |
| 86 | theorem pairings (v : H) (f : CC X) : (∫ x, f x ∂sees A v) = inner ℂ v (A f v) := by |
| 87 | let μ := sees A v |
| 88 | have he (y : CR X) : (∫ x, (insert y) x ∂μ)=Λ A v (insert y) := by |
| 89 | rw [real]; simp_rw [insertion]; rw [integral_complex_ofReal] |
| 90 | let j : C_c(X,ℝ) := { toContinuousMap := y, hasCompactSupport' := HasCompactSupport.of_compactSpace _ } |
| 91 | exact congrArg (fun p : ℝ => (p:ℂ)) (RealRMK.integral_rieszMeasure (Lambda A v) j) |
| 92 | let hr : CR X := ⟨fun i => (f i).re,continuous_re.comp f.continuous⟩ |
| 93 | let hi : CR X := ⟨fun i => (f i).im,continuous_im.comp f.continuous⟩ |
| 94 | have ht : insert hr + I • insert hi=f := by |
| 95 | apply ContinuousMap.ext; intro i; rw [ContinuousMap.add_apply,ContinuousMap.smul_apply] |
| 96 | simp only [smul_eq_mul,insertion]; rw [mul_comm I] |
| 97 | exact re_add_im _ |
| 98 | have hI (f : CC X) : Integrable ⇑f μ := f.continuous.integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _) |
| 99 | rw [← atState, ← ht,map_add,map_smul] |
| 100 | simp_rw [ContinuousMap.add_apply,ContinuousMap.smul_apply] |
| 101 | rw [integral_add (hI _) (show Integrable (fun i => I • insert hi i) μ from (hI (insert hi)).smul I), integral_smul,he,he] |
| 102 | |
| 103 | lemma size (v : H) : (sees A v).real univ = ‖v‖^2 := by |
| 104 | have he := pairings A v 1 |
| 105 | rw [map_one] at he |
| 106 | simpa [show (1:H.Op) v=v from rfl,← Complex.ofReal_pow] using congr_arg re he -- re |
| 107 | end YM.Spectral.Rep |