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.MeasureTheory.Integral.RieszMarkovKakutani.Real |
| 2 | import Mathlib.Topology.ContinuousMap.Compact |
| 3 | import Mathlib.Analysis.Normed.Module.HahnBanach |
| 4 | |
| 5 | /-! |
| 6 | # Representation of per-slot, per-test bounds |
| 7 | |
| 8 | Formal estimates on functionals in kforms must give **derivative-address** |
| 9 | representations; bounding scalar evaluations alone does not pay the sum over |
| 10 | ordered field slots. Use Riesz extension per tape; no compatibility of the |
| 11 | witnesses across widths is needed. |
| 12 | |
| 13 | Real signs via one extra Hahn extension on the double. Does not assert |
| 14 | mutual singularity of the resulting positive pair, not needed here. |
| 15 | -/ |
| 16 | set_option autoImplicit false |
| 17 | noncomputable section |
| 18 | namespace YM.RG08.Jetty |
| 19 | open scoped Topology ENNReal BigOperators Classical |
| 20 | open Function MeasureTheory Set CompactlySupported |
| 21 | |
| 22 | section lift |
| 23 | variable {U : Type*} [AddCommGroup U][Module ℝ U] |
| 24 | variable {V : Type*} [NormedAddCommGroup V][NormedSpace ℝ V] |
| 25 | |
| 26 | lemma lift (p : U→ₗ[ℝ] V)(hp : Injective p)(q : U→ₗ[ℝ] ℝ){K:ℝ}(hk:0≤K) |
| 27 | (h : ∀ x:U, ‖q x‖ ≤ K*‖p x‖) : ∃ F : V →L[ℝ] ℝ, (∀ x, F (p x) = q x) ∧ ‖F‖≤K:=by |
| 28 | let e:=LinearEquiv.ofInjective p hp |
| 29 | let f:=q.comp e.symm.toLinearMap |
| 30 | have he(x:U): (e x).1=p x:=rfl |
| 31 | have hf(x:LinearMap.range p): ‖f x‖ ≤ K*‖x‖:=by |
| 32 | change ‖q (e.symm x)‖ ≤ _ |
| 33 | apply (h _).trans_eq; rw [← he,e.apply_symm_apply];rfl |
| 34 | obtain ⟨g,hg,hv⟩:= exists_extension_norm_eq (LinearMap.range p) (f.mkContinuous K hf) |
| 35 | refine ⟨g,?_,hv.le.trans (LinearMap.mkContinuous_norm_le f hk hf)⟩ |
| 36 | intro x;rw [← he,hg];change q (e.symm (e x))=q x;rw [e.symm_apply_apply] |
| 37 | end lift |
| 38 | |
| 39 | variable {X:Type*}[TopologicalSpace X][Nonempty X][CompactSpace X] |
| 40 | abbrev Air (X:Type*)[TopologicalSpace X]:= C(X,ℝ) |
| 41 | abbrev Signboard (X:Type*)[TopologicalSpace X]:=Air X×Air X |
| 42 | private def pin (a:ℝ):Air X:= ContinuousMap.const X a |
| 43 | private def mirror : ℝ × Air X →ₗ[ℝ] Signboard X where |
| 44 | toFun p:= (pin p.1+p.2,pin p.1-p.2) |
| 45 | map_add' p q:= by |
| 46 | apply Prod.ext <;> apply ContinuousMap.ext <;> intro x |
| 47 | · change (p.1+q.1)+(p.2 x+q.2 x)=p.1+p.2 x+(q.1+q.2 x);ring |
| 48 | · change (p.1+q.1)-(p.2 x+q.2 x)=p.1-p.2 x+(q.1-q.2 x);ring |
| 49 | map_smul' a p:=by |
| 50 | apply Prod.ext <;> apply ContinuousMap.ext <;> intro x |
| 51 | · change a*p.1+a*p.2 x=a*(p.1+p.2 x);ring |
| 52 | · change a*p.1-a*p.2 x=a*(p.1-p.2 x);ring |
| 53 | |
| 54 | private lemma shades (p:ℝ×Air X) : |p.1|+‖p.2‖ ≤ ‖mirror p‖:=by |
| 55 | let b:=‖mirror p‖ |
| 56 | have hx(x:X): |p.1| + |p.2 x| ≤ b:=by |
| 57 | have he:= (norm_prod_le_iff.mp (le_refl ‖mirror p‖)) |
| 58 | have h₁:= (ContinuousMap.norm_coe_le_norm (mirror p).1 x).trans he.1 |
| 59 | have h₂:= (ContinuousMap.norm_coe_le_norm (mirror p).2 x).trans he.2 |
| 60 | change ‖p.1+p.2 x‖ ≤ b at h₁; change ‖p.1-p.2 x‖ ≤ b at h₂ |
| 61 | rw [Real.norm_eq_abs,abs_le'] at h₁ h₂ |
| 62 | obtain h|h := le_total 0 p.1 <;> obtain h'|h' := le_total 0 (p.2 x) <;> |
| 63 | simp [abs_of_nonneg, abs_of_nonpos, h, h'] <;> linarith only [h₁.1,h₁.2,h₂.1,h₂.2] |
| 64 | have h':0≤b-|p.1|:=by |
| 65 | let x:X:= Classical.ofNonempty |
| 66 | linarith only [hx x,abs_nonneg (p.2 x)] |
| 67 | have hs:= (ContinuousMap.norm_le p.2 h').mpr (fun x=> (Real.norm_eq_abs _).trans_le (by linarith only [hx x])) |
| 68 | change _≤b;linarith only [hs] |
| 69 | |
| 70 | private lemma flips : Injective (mirror (X:=X)):=by |
| 71 | intro p p' he; have ht:= shades (p-p'); rw [map_sub,he,sub_self,norm_zero] at ht |
| 72 | have hnn := abs_nonneg (p-p').1; have hnn' := norm_nonneg (p-p').2 |
| 73 | have hv: p-p'=0:= Prod.ext (abs_eq_zero.mp (by linarith)) (norm_eq_zero.mp (by linarith)) |
| 74 | exact sub_eq_zero.mp hv |
| 75 | |
| 76 | private def nick (q : Air X→ₗ[ℝ] ℝ)(K:ℝ): ℝ×Air X →ₗ[ℝ] ℝ:= LinearMap.coprod (K • LinearMap.id) q |
| 77 | |
| 78 | /-- Positive doubled extension. -/ |
| 79 | theorem feather (q : Air X→ₗ[ℝ] ℝ){K:ℝ}(hk:0≤K)(h : ∀ x, |q x|≤K*‖x‖) : |
| 80 | ∃ F: Signboard X→L[ℝ] ℝ, (∀ p:ℝ×Air X,F (pin p.1+p.2,pin p.1-p.2)=K*p.1+q p.2) ∧ ‖F‖≤K:=by |
| 81 | have he(p:ℝ×Air X): ‖nick q K p‖≤K*‖mirror p‖:=by |
| 82 | rw [Real.norm_eq_abs];change |K*p.1+q p.2| ≤_ |
| 83 | apply (abs_add_le ..).trans |
| 84 | rw [abs_mul,abs_of_nonneg hk] |
| 85 | exact (add_le_add_right (h _) _).trans ((mul_add K _ _).ge.trans (mul_le_mul_of_nonneg_left (shades p) hk)) |
| 86 | obtain ⟨F,hF,hv⟩:=lift mirror flips (nick q K) hk he |
| 87 | exact ⟨F,hF,hv⟩ |
| 88 | |
| 89 | omit [Nonempty X] in |
| 90 | private lemma blessed (F: Signboard X→L[ℝ] ℝ){K:ℝ} |
| 91 | (hF : F (pin 1,pin 1)=K)(hv: ‖F‖ ≤ K)(p: Signboard X) |
| 92 | (hp: (∀ x, 0≤p.1 x) ∧ ∀ x, 0≤p.2 x): 0 ≤ F p:=by |
| 93 | let x:Signboard X:= (pin 1,pin 1) |
| 94 | have he{f:Air X}(h₁:∀ t,0≤f t)(h₂:‖f‖ ≤ ‖p‖): ‖‖p‖ • pin 1-f‖≤‖p‖:= (ContinuousMap.norm_le _ (norm_nonneg p)).mpr (fun t=>by |
| 95 | rw [ContinuousMap.sub_apply,ContinuousMap.smul_apply,Real.norm_eq_abs,abs_le'];change ‖p‖ * 1-f t≤ _ ∧ -(‖p‖ * 1-f t)≤_ |
| 96 | have h:= (ContinuousMap.norm_coe_le_norm f t).trans h₂; rw [Real.norm_eq_abs,abs_le'] at h |
| 97 | constructor <;> linarith [h₁ t,norm_nonneg p]) |
| 98 | have hs:= (norm_prod_le_iff.mp (le_refl ‖p‖)) |
| 99 | have h' : ‖‖p‖ • x-p‖≤‖p‖:= norm_prod_le_iff.mpr ⟨he hp.1 hs.1,he hp.2 hs.2⟩ |
| 100 | have hz: ‖F (‖p‖ • x -p)‖ ≤ K*‖p‖:= (F.le_opNorm _).trans (mul_le_mul hv h' (norm_nonneg _) ((norm_nonneg F).trans hv)) |
| 101 | rw [map_sub,map_smul,show F x=K from hF,Real.norm_eq_abs,abs_le'] at hz |
| 102 | change ‖p‖*K-F p ≤ K*‖p‖ ∧ _ at hz; nlinarith only [hz.1] |
| 103 | |
| 104 | variable [T2Space X][MeasurableSpace X][BorelSpace X] |
| 105 | omit [Nonempty X] in |
| 106 | theorem carrier (q:Air X→ₗ[ℝ] ℝ)(h: ∀ f:Air X,(∀ t,0≤f t)→0≤q f): |
| 107 | ∃ μ:Measure X, IsFiniteMeasure μ ∧μ.real univ = q (pin 1) ∧ ∀ f:Air X,q f=∫ x,f x ∂μ:=by |
| 108 | let Λ:C_c(X,ℝ) →ₚ[ℝ] ℝ:={ |
| 109 | toFun f:=q f.toContinuousMap |
| 110 | map_add' f g:=map_add q .. |
| 111 | map_smul' c f:=map_smul q .. |
| 112 | monotone' f g hf:=by rw [←sub_nonneg,←map_sub]; exact h _ fun t=> sub_nonneg.mpr (hf t) } |
| 113 | let μ:=RealRMK.rieszMeasure Λ |
| 114 | have hm:IsFiniteMeasure μ:=by unfold μ; infer_instance |
| 115 | have he (f:Air X):q f=∫ x,f x ∂μ:=by |
| 116 | let g:C_c(X,ℝ):= {toContinuousMap:=f,hasCompactSupport':=HasCompactSupport.of_compactSpace _} |
| 117 | exact (RealRMK.integral_rieszMeasure Λ g).symm |
| 118 | refine ⟨μ,hm,?_,he⟩ |
| 119 | rw [he];simp [pin] |
| 120 | |
| 121 | theorem render (q:Air X→ₗ[ℝ] ℝ){K:ℝ}(hk:0≤K)(h : ∀ x,|q x|≤K*‖x‖): |
| 122 | ∃ μ ν:Measure X, IsFiniteMeasure μ ∧ IsFiniteMeasure ν ∧ μ.real univ+ν.real univ = K ∧ |
| 123 | ∀ f:Air X,q f = (∫ x,f x ∂μ)-(∫ x,f x ∂ν):=by |
| 124 | obtain ⟨F,hF,hN⟩:=feather q hk h |
| 125 | have he:F (pin 1,pin 1)=K:=by |
| 126 | have ha:=hF (1,0); simpa using ha |
| 127 | let A := F.toLinearMap.comp (LinearMap.inl ℝ (Air X) (Air X)) |
| 128 | let B := F.toLinearMap.comp (LinearMap.inr ℝ (Air X) (Air X)) |
| 129 | obtain ⟨μ,hμ,ha,hA⟩:= carrier A (fun f hf=>blessed F he hN (f,0) ⟨hf,fun _=>le_refl _⟩) |
| 130 | obtain ⟨ν,hν,hb,hB⟩:= carrier B (fun f hf=>blessed F he hN (0,f) ⟨fun _=>le_refl _,hf⟩) |
| 131 | have hp(f g:Air X):F (f,g)=A f+B g:=by change _=F (f,0)+F (0,g); rw [← map_add]; change _=F (f+0,0+g); simp |
| 132 | refine ⟨μ,ν,hμ,hν,?_,fun f=>?_⟩ |
| 133 | · rw [ha,hb,← hp,he] |
| 134 | · rw [←hA,←hB];have ht:=hF (0,f); dsimp only at ht |
| 135 | rw [show pin (X:=X) 0=(0:Air X) from rfl,zero_add,zero_sub, mul_zero,zero_add,hp,map_neg] at ht |
| 136 | simpa [sub_eq_add_neg] using ht.symm |
| 137 | end YM.RG08.Jetty |