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 YM.Next.STATIONARY.Joint.Completion |
| 2 | |
| 3 | set_option autoImplicit false |
| 4 | /-! # Probability Haar to real counting ratio inside the exponential patches. |
| 5 | |
| 6 | Reindex Free tangent to LEFT coordinates based at actual slice point. Use |
| 7 | `order_exposed` for the physical order; no statement about density off |
| 8 | these open chart neighborhoods. We compare densities on compact sets |
| 9 | (by F05.Jacobian method) rather than assuming an inverse for a ratio or |
| 10 | spin ≡ 1 in the germ. |
| 11 | -/ |
| 12 | noncomputable section |
| 13 | namespace YM.Stationary |
| 14 | open Function MeasureTheory Filter Lattice RG Wilson Exterior Precision Bloch Laurent Tree Matrix Module |
| 15 | open scoped Matrix Topology ContDiff BigOperators InnerProductSpace Matrix.Norms.Frobenius ENNReal |
| 16 | open Work.F05 |
| 17 | variable {G : Gauge} {c f : Side} {S : StepData c f} (F : Forest S.ratio) |
| 18 | |
| 19 | -- Free left increments in exp patch |
| 20 | |
| 21 | def buck (y x : AxisChart G F) := fun i : F.Free => G.lieExp (x i) * (G.lieExp (y i))⁻¹ |
| 22 | def saver (y x : AxisChart G F) : AxisChart G F := fun i => plogC G (buck F y x i) |
| 23 | @[simp] lemma buck_zero (y : AxisChart G F) : buck F y y=1 := by funext i; rw [buck,mul_inv_cancel]; rfl |
| 24 | @[simp] lemma saver_zero (y : AxisChart G F) : saver F y y=0 := by funext i; rw [saver,buck_zero]; exact plogC_one |
| 25 | |
| 26 | lemma buck_lit (y : AxisChart G F) : Army (buck F y) y := by |
| 27 | intro i |
| 28 | simp only [buck,G.mat_mul]; exact ContDiffAt.mul (G.exp_jet.contDiffAt.comp _ (contDiffAt_apply ..)) contDiffAt_const |
| 29 | lemma cologne (y : AxisChart G F) : ContDiffAt ℝ ω (saver F y) y := by |
| 30 | apply contDiffAt_pi.mpr; intro i; unfold saver plogC |
| 31 | refine ContDiffAt.comp (g:=G.plog) (f:=fun x => G.mat (buck F y x i)) y ?_ (buck_lit F y i) |
| 32 | rw [buck_zero,Pi.one_apply,G.mat_one]; exact G.plog_diff |
| 33 | lemma spends (y : AxisChart G F) : ∀ᶠ x in 𝓝 y, ∀ i, G.lieExp (saver F y x i)=buck F y x i := by |
| 34 | have hp : Tendsto (buck F y) (𝓝 y) (𝓝 1) := by rw [← buck_zero F y]; exact (buck_lit F y).cont.tendsto |
| 35 | refine eventually_all.mpr (fun i => (tendsto_pi_nhds.mp hp i).eventually G.plog_right) |
| 36 | |
| 37 | section jacobian |
| 38 | open Set Metric |
| 39 | |
| 40 | -- pointwise extraction from compact chart tests (cf Work.F05.Jacobian) |
| 41 | private lemma account_comp {X : Type} [MetricSpace X] [MeasureSpace X] [BorelSpace X] |
| 42 | [IsFiniteMeasureOnCompacts (volume : Measure X)] [Measure.IsOpenPosMeasure (volume : Measure X)] |
| 43 | [ProperSpace X] (x : X) {s : Set X} (h : s∈𝓝 x) (f g : X→ℝ) |
| 44 | (he : ∀ A : Set X, IsCompact A → A⊆s → (∫⁻ y in A, ENNReal.ofReal (f y))=∫⁻ y in A,ENNReal.ofReal (g y)) |
| 45 | (hf : ContinuousAt f x) (hg : ContinuousAt g x) (p : 0≤f x) : g x ≤ f x := by |
| 46 | by_contra! hu |
| 47 | obtain ⟨a,ha,hb⟩ := exists_between hu |
| 48 | obtain ⟨b,hc,hd⟩ := exists_between hb |
| 49 | have hm : ∀ᶠ y in 𝓝 x,y∈s ∧ f y<a ∧ b<g y := (show ∀ᶠ y in 𝓝 x,y∈s from h).and |
| 50 | ((hf.eventually (gt_mem_nhds ha)).and (hg.eventually (lt_mem_nhds hd))) |
| 51 | obtain ⟨r,hr,h⟩ := nhds_basis_closedBall.mem_iff.mp hm |
| 52 | let A := Metric.closedBall x r |
| 53 | have hA : IsCompact A := isCompact_closedBall .. |
| 54 | have h' y (hy : y ∈ A) : y∈s ∧ f y<a ∧ b<g y := h hy |
| 55 | have hh : 0<volume A := lt_of_lt_of_le (Metric.isOpen_ball.measure_pos volume ⟨x,mem_ball_self hr⟩) (measure_mono ball_subset_closedBall) |
| 56 | apply (he A hA (fun y hy => (h' y hy).1)).not_lt |
| 57 | calc |
| 58 | _ ≤ ∫⁻ _ in A, ENNReal.ofReal a := setLIntegral_mono' hA.measurableSet fun y hy => ENNReal.ofReal_le_ofReal (h' y hy).2.1.le |
| 59 | _ < ∫⁻ _ in A, ENNReal.ofReal b := by |
| 60 | simp only [lintegral_const,Measure.restrict_apply_univ]; exact ENNReal.mul_lt_mul_left hh.ne' hA.measure_lt_top.ne ((ENNReal.ofReal_lt_ofReal_iff_of_nonneg (p.trans ha.le)).mpr hc) |
| 61 | _ ≤ _ := setLIntegral_mono' hA.measurableSet fun y hy => ENNReal.ofReal_le_ofReal (h' y hy).2.2.le |
| 62 | |
| 63 | lemma treasury (U : Bid.Dir G c) (P : ChartRatio G) (h : LocalRatio P) (y : AxisChart G F) (hy : y∈parcel F P) : |
| 64 | toll F P y = |(fderiv ℝ (saver F y) y).det| := by |
| 65 | let X := AxisChart G F |
| 66 | let d := exposure F U |
| 67 | let R := saver F y |
| 68 | let L := load F P |
| 69 | let H (z : X) := |(fderiv ℝ R z).det| * L (R z) |
| 70 | have hx : R y=0 := saver_zero F y |
| 71 | let T : Set X := {x : X | x∈parcel F P ∧ R x∈parcel F P ∧ ContDiffAt ℝ ω R x ∧ |
| 72 | exposure F 0 (R x) = d x*(d y)⁻¹} |
| 73 | have hR : ContDiffAt ℝ ω R y := cologne F y |
| 74 | have ht : T∈𝓝 y := by |
| 75 | have he : IsOpen (parcel F P) := isOpen_set_pi finite_univ fun _ _ => Metric.isOpen_ball |
| 76 | have hn : Tendsto R _ (𝓝 0) := hx ▸ hR.continuousAt.tendsto |
| 77 | filter_upwards [he.mem_nhds hy,hn.eventually (parcel_zero F h),hR.eventually (by simp),spends F y] with v hv hp hu hz |
| 78 | refine ⟨hv,hp,hu,?_⟩ |
| 79 | funext i; unfold R d; simp only [exposure, hz,buck,link_one,replica_one,Pi.one_apply,mul_one,Pi.mul_apply,Pi.inv_apply]; group |
| 80 | have h0 : (0:X)∈parcel F P := mem_of_mem_nhds (parcel_zero F h) |
| 81 | have hf := load_cont F h hy |
| 82 | have hg : ContinuousAt H y := by |
| 83 | apply ContinuousAt.mul |
| 84 | · exact ContinuousAt.abs (ContinuousLinearMap.continuous_det.continuousAt.comp (hR.fderiv_right (m:=ω) (by simp)).continuousAt) |
| 85 | exact ContinuousAt.comp (g:=L) (f:=R) (by rw [hx]; exact load_cont F h h0) hR.continuousAt |
| 86 | have he (A : Set X) (hA : IsCompact A) (h' : A⊆T) : |
| 87 | (∫⁻ x in A,ENNReal.ofReal (L x))=∫⁻ x in A,ENNReal.ofReal (H x) := by |
| 88 | let C := R '' A |
| 89 | let m := fun x : F.Slice G => x*(d y)⁻¹ |
| 90 | let Q := exposure F (0:Bid.Dir G c) |
| 91 | have ha (x) (hx : x ∈ A) : HasFDerivAt R (fderiv ℝ R x) x := ((h' hx).2.2.1.differentiableAt (by simp)).hasFDerivAt |
| 92 | have hc : IsCompact C := hA.image_of_continuousOn fun x hx => (ha x hx).continuousAt.continuousWithinAt |
| 93 | have hQ : Continuous Q := (exposure_continuous F).comp (f:=fun x => (0,x)) (continuous_const.prodMk continuous_id) |
| 94 | have hv : InjOn R A := fun x hx y hy hab => |
| 95 | exposure_inj F h U (h' hx).1 (h' hy).1 (mul_right_cancel (((h' hx).2.2.2).symm.trans ((congr_arg Q hab).trans (h' hy).2.2.2))) |
| 96 | have hT : MeasurePreserving m (F.order G) (F.order G) := measurePreserving_pi _ _ (fun i : F.Free => measurePreserving_mul_right G.probHaar ((d y)⁻¹ i)) |
| 97 | have hm := hT.measure_preimage ((hc.image hQ).measurableSet.nullMeasurableSet (μ:=F.order G)) |
| 98 | have hu : m ⁻¹' (Q '' C)=d '' A := by |
| 99 | have hp : Q '' C=m '' (d '' A) := by |
| 100 | unfold C |
| 101 | rw [Set.image_image,Set.image_image] |
| 102 | exact Set.EqOn.image_eq (f₁:=fun z => Q (R z)) (f₂:=fun z => m (d z)) fun z hz => (h' hz).2.2.2 |
| 103 | rw [hp,(show Injective m from fun x y p => mul_right_cancel p).preimage_image] |
| 104 | rw [hu] at hm |
| 105 | have hb : C⊆parcel F P := by rintro _ ⟨x,hx,rfl⟩; exact (h' hx).2.1 |
| 106 | calc |
| 107 | _ = _ := (order_exposed F h U A hA (fun x hx => (h' hx).1)).symm |
| 108 | _ = (F.order G) (Q '' C) := hm |
| 109 | _ = ∫⁻ x in C, ENNReal.ofReal (L x) := order_exposed F h _ C hc hb |
| 110 | _ = ∫⁻ x in A, ENNReal.ofReal |(fderiv ℝ R x).det| * ENNReal.ofReal (L (R x)) := lintegral_image_eq_lintegral_abs_det_fderiv_mul volume hA.measurableSet (fun x hx => (ha x hx).hasFDerivWithinAt) hv _ |
| 111 | _ = _ := by simp only [H, ENNReal.ofReal_mul (abs_nonneg _)] |
| 112 | have hh : L y=H y := le_antisymm (account_comp _ ht _ _ (fun A hA hs => (he A hA hs).symm) hg hf (by unfold H; rw [hx]; exact mul_nonneg (abs_nonneg _) (load_pos F h h0).le)) (account_comp _ ht _ _ he hf hg (load_pos F h hy).le) |
| 113 | unfold H L at hh; rw [hx,load_eq,load_eq,show toll F P 0=1 by simp [toll,h.anchored],mul_one,mul_comm |(fderiv ℝ R y).det|] at hh |
| 114 | exact mul_left_cancel₀ (pow_ne_zero _ h.scale.ne') hh |
| 115 | end jacobian |
| 116 | end YM.Stationary |
| 117 | end |
| 118 | |
| 119 | /-! # Factorization in the actual Haar score functions, finite period -/ |
| 120 | noncomputable section |
| 121 | namespace YM.Stationary |
| 122 | open Function MeasureTheory Filter Lattice RG Wilson Exterior Precision Bloch Laurent Tree Matrix Module |
| 123 | open scoped Matrix Topology ContDiff BigOperators InnerProductSpace Matrix.Norms.Frobenius ENNReal |
| 124 | open Work.F05 |
| 125 | variable {G : Gauge} {c f : Side} {S : StepData c f} {F : Forest S.ratio} |
| 126 | |
| 127 | variable (p : Clip) (R : PathData G) (x : Bid.Dir G c) |
| 128 | section single |
| 129 | variable (a : AxisChart G F) |
| 130 | lemma saving : ∀ᶠ b in 𝓝 a, Stationary.extend ((pad F (saver F a b)),0)*abode S F (represent x) a=abode S F (represent x) b := by |
| 131 | filter_upwards [spends F a] with b hb; refine Prod.ext ?_ ?_ |
| 132 | · funext e; simp only [Prod.fst_mul, Pi.mul_apply,Stationary.extend,abode,lifting,input_color] |
| 133 | by_cases h : e ∈ F.trunks |
| 134 | · have hl (u : F.Slice G) : F.drape u e=1 := F.on_tree _ ⟨e,h⟩ |
| 135 | rw [hl,hl,show edgeColor (pad F _) e=0 from pad_trunk F _ ⟨e,h⟩]; simp |
| 136 | let i : F.Free := ⟨e,h⟩ |
| 137 | have hh (u : F.Slice G) : F.drape u e=u i := F.off_tree u i |
| 138 | rw [hh,hh,show edgeColor (pad F _) e=_ from pad_free F (saver F a b) i,hb,buck]; group |
| 139 | simp [Stationary.extend,abode] |
| 140 | lemma certified (t : S.Choices) (h : Shell S t p R (represent x) (abode S F (represent x) a)) : |
| 141 | let K := damage (helmets _ _ _) (canon S t p R (represent x) (abode S F (represent x) a)) 0 |
| 142 | (hessian F t p R x a).det=(fderiv ℝ (saver F a) a).det^2 * ((rangers F G)ᵀ*K*rangers F G).det := by |
| 143 | intro K |
| 144 | let Q := canon S t p R (represent x) (abode S F (represent x) a) |
| 145 | let L : AxisChart G F →L[ℝ] Vault G c f := (pad F).prod 0 |
| 146 | let D := saver F a |
| 147 | have he : tested F t p R x =ᶠ[𝓝 a] Q ∘ (L ∘ D) := by |
| 148 | filter_upwards [saving x a] with b hb |
| 149 | rw [← merit_pin]; change _=muster S t p R (represent x) _; exact congr_arg (muster S t p R (represent x)) hb.symm |
| 150 | have hv : (L ∘ D) a=0 := by simp [D] |
| 151 | have hk : damage (countingBasis F G) (tested F t p R x) a= |
| 152 | (billsM (countingBasis F G) (helmets G c f) (L ∘L fderiv ℝ D a))ᵀ * K *billsM (countingBasis F G) (helmets G c f) (L ∘L fderiv ℝ D a) := by |
| 153 | rw [damage_congr _ he, damage_comp _ (helmets G c f) _ (L.contDiff.contDiffAt.comp a (cologne F a)) _,hv,(L.hasFDerivAt.comp a ((cologne F a).differentiableAt (by simp)).hasFDerivAt).fderiv] |
| 154 | · rw [hv]; exact h.1 |
| 155 | rw [hv]; exact h.2 |
| 156 | let A := billsM (countingBasis F G) (countingBasis F G) (fderiv ℝ (saver F a) a) |
| 157 | rw [show hessian F t p R x a = damage _ _ _ from hessian_eq ..,hk] |
| 158 | rw [show billsM _ _ (L ∘L fderiv ℝ D a)=rangers F G*A from bill_multiply _ (countingBasis F G) _ _ _] |
| 159 | rw [transpose_mul, show (Aᵀ*(rangers F G)ᵀ)* K * (rangers F G*A) = Aᵀ * ((rangers F G)ᵀ*K*rangers F G) * A by simp only [Matrix.mul_assoc], det_mul, det_mul,det_transpose, |
| 160 | show A.det=_ from (show A.det=(fderiv ℝ (saver F a) a).det from LinearMap.det_toMatrix ..)] |
| 161 | ring |
| 162 | end single |
| 163 | section wealth |
| 164 | variable (S) (μ : ℝ) |
| 165 | |
| 166 | def bounty (t : S.Choices) (K : Robe G c f) (V : Config G c) (U : Joint G c f) := |
| 167 | (1/2:ℝ)*Real.log (medals S t p R μ K V U).det-Real.log (grenade μ U.1).det |
| 168 | -- all logarithms real for moment evaluation, signs provided near origin by price and graph. |
| 169 | end wealth |
| 170 | |
| 171 | variable {p R x} {σ A Λ μ η : ℝ} {ρ : Bid.Dir G c → AxisChart G F} |
| 172 | (h : Critical F p R ρ) (hb : S.patch.Branches S.kernel G) (hp : R.Bounds p σ A Λ) |
| 173 | (hv : PriceGap F p R η) (hh : 0<η) (hg : 0<μ) (t : S.Choices) {C : ChartRatio G} (hC : LocalRatio C) |
| 174 | include h hb hp hv hh hg hC |
| 175 | |
| 176 | -- faithful det branch and real sign. No family compatibility assumed. |
| 177 | theorem tribute : ∀ᶠ z : Link G c in 𝓝 0, |
| 178 | 0 < (medals S t p R μ 1 (input G c z) (encamp F ρ z)).det ∧ |
| 179 | let T := thermal F t p R ρ C |
| 180 | T (arm G c 1 z)=Precision.loop R (encamp F ρ z).1+bounty S p R μ t 1 (input G c z) (encamp F ρ z) := by |
| 181 | have hm : Tendsto (arm G c 1) (𝓝 0) (𝓝 0) := by simpa using (arm G c 1).continuous.tendsto 0 |
| 182 | have hr : Tendsto ρ (𝓝 0) (𝓝 0) := h.1 ▸ h.2.1.continuousAt.tendsto |
| 183 | filter_upwards [camp_station h hb hp t,explosive S t hb root_customs (camp_thaw h) (by rw [encamp_zero h]; rfl),hm.eventually (hessian_pos hh hv h t),hm.eventually (hr.eventually (parcel_zero F hC))] with z hz he hx hf |
| 184 | let a := ρ (arm _ _ _ z) |
| 185 | let Gm := grenade μ (encamp F ρ z).1 |
| 186 | let M := (hessian F t p R (arm G c 1 z) (ρ (arm G c 1 z))) |
| 187 | let P := medals S t p R μ 1 (input G c z) (encamp F ρ z) |
| 188 | let T := toll F C a |
| 189 | have hi : T^2 * P.det=M.det*Gm.det^2 := by |
| 190 | have hy := root_determines F (represent (arm G c 1 z)) a t hb hp hz (μ:=μ) he |
| 191 | have hu : ρ (arm _ _ _ z) = a := rfl |
| 192 | unfold T; rw [treasury F (arm G c 1 z) C hC a hf,sq_abs,show P.det=_ from hy] |
| 193 | unfold M; rw [hu,certified p R (arm G c 1 z) a t hz] |
| 194 | have heG : grenade μ (abode S F (represent (arm G c 1 z)) a).1=Gm := rfl |
| 195 | rw [heG]; ring |
| 196 | have hK : 0<Gm.det := (grenade_safe _ hg).det_pos |
| 197 | have ha : 0<T := toll_pos F hC hf |
| 198 | have hc : 0<M.det := hx |
| 199 | have hP : 0<P.det := pos_of_mul_pos_right (show 0<T^2*P.det from hi ▸ mul_pos hc (pow_pos hK _)) (by positivity) |
| 200 | refine ⟨hP,?_⟩; dsimp only |
| 201 | change Precision.loop R (encamp F ρ z).1+_*Real.log M.det - Real.log T = Precision.loop R (encamp F ρ z).1 + (_*Real.log P.det - Real.log Gm.det) |
| 202 | have hk := congr_arg Real.log hi; rw [Real.log_mul (pow_ne_zero _ ha.ne') hP.ne', Real.log_mul hc.ne' (pow_ne_zero _ hK.ne'), Real.log_pow, Real.log_pow] at hk; push_cast at hk; linarith |
| 203 | end YM.Stationary |
| 204 | end |