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.SectorTools.PHYSICAL_GAUSSIAN_SWITCH.Trade |
| 2 | |
| 3 | /-! |
| 4 | # L¹ identity and Lp comparison as normalized laws of physical coordinates |
| 5 | -/ |
| 6 | set_option autoImplicit false |
| 7 | noncomputable section |
| 8 | namespace YM.SectorTools.PhysicalGaussianSwitch |
| 9 | open Function Filter Set Matrix MeasureTheory |
| 10 | open Next.SectorChange.Gaussian |
| 11 | open AnalyticBridge.GaussianFieldAlignment.Relative (trade) |
| 12 | open scoped Topology BigOperators ENNReal |
| 13 | local notation "Covar" => Next.SectorChange.Gaussian.Table |
| 14 | |
| 15 | variable {I : Type} [Fintype I] [DecidableEq I] |
| 16 | |
| 17 | def shift (C : Covar I) (m : Vec I) := (cloud C).map (fun z => m+z) |
| 18 | |
| 19 | lemma to_shift (C : Covar I) (m : Vec I) : |
| 20 | MeasurePreserving (MeasurableEquiv.addLeft m) (cloud C) (shift C m) := |
| 21 | ⟨by fun_prop,rfl⟩ |
| 22 | |
| 23 | lemma shift_probability (C : Covar I) (m : Vec I) : IsProbabilityMeasure (shift C m) := |
| 24 | Measure.isProbabilityMeasure_map (show AEMeasurable (fun z : Vec I => m+z) (cloud C) by fun_prop) |
| 25 | attribute [local instance] shift_probability |
| 26 | |
| 27 | lemma centered (C : Covar I) : shift C 0 = cloud C := by unfold shift; simp |
| 28 | |
| 29 | variable {A D : Covar I} {a d : Vec I} {p : ℝ} |
| 30 | /-- Target `shift A a` against `shift D d`, common absolute address x. -/ |
| 31 | def likelihood (A : Covar I) (a : Vec I) (D : Covar I) (d x : Vec I) := trade A D (d-a) (x-d) |
| 32 | lemma like_pos (hA : A.PosDef) (hD : D.PosDef) (a d x : Vec I) : 0 < likelihood A a D d x := trade_pos hA hD .. |
| 33 | lemma like_cont (A : Covar I) (a : Vec I) (D : Covar I) (d : Vec I) : Continuous (likelihood A a D d) := |
| 34 | (trade_cont ..).comp (continuous_id.sub continuous_const) |
| 35 | lemma like_meas (A : Covar I) (a : Vec I) (D : Covar I) (d : Vec I) : Measurable (likelihood A a D d) := (like_cont ..).measurable |
| 36 | lemma likeref (A : Covar I) (a : Vec I) (D : Covar I) (d z : Vec I) : likelihood A a D d (d+z) = trade A D (d-a) z := by rw [likelihood, add_sub_cancel_left] |
| 37 | |
| 38 | section expectations |
| 39 | variable {X : Type*} [NormedAddCommGroup X] [NormedSpace ℝ X] |
| 40 | lemma shift_int (C : Covar I) (m : Vec I) (f : Vec I → X) : |
| 41 | (Integrable f (shift C m) ↔ Integrable (fun z => f (m+z)) (cloud C)) ∧ |
| 42 | (∫ x,f x ∂shift C m) = ∫ z,f (m+z) ∂cloud C := |
| 43 | ⟨((to_shift C m).integrable_comp_emb (MeasurableEquiv.addLeft m).measurableEmbedding).symm, |
| 44 | ((to_shift C m).integral_comp' f).symm⟩ |
| 45 | |
| 46 | lemma shift_identity (hA : A.PosDef) (hD : D.PosDef) (a d : Vec I) (f : Vec I → X) : |
| 47 | (Integrable f (shift A a) ↔ Integrable (fun x => likelihood A a D d x • f x) (shift D d)) ∧ |
| 48 | (∫ x,f x ∂shift A a)=∫ x,likelihood A a D d x • f x ∂shift D d := by |
| 49 | rw [(shift_int A a f).1,(shift_int A a f).2,(shift_int D d _).1,(shift_int D d _).2] |
| 50 | simp_rw [likeref] |
| 51 | have he (z : Vec I) : a+(d-a+z)=d+z := by abel |
| 52 | simpa only [he] using AnalyticBridge.GaussianFieldAlignment.Relative.change hA hD (d-a) (fun z => f (a+z)) |
| 53 | end expectations |
| 54 | |
| 55 | lemma like_mean (hA : A.PosDef) (hD : D.PosDef) : |
| 56 | Integrable (likelihood A a D d) (shift D d) ∧ (∫ x,likelihood A a D d x ∂shift D d)=1 := by |
| 57 | rw [(shift_int ..).1, (shift_int ..).2]; simp_rw [likeref]; exact normalized_trade hA hD _ |
| 58 | |
| 59 | /-- Equality of measures, not just a formal quotient of expressions in the |
| 60 | exponent. -/ |
| 61 | theorem with_likelihood (hA : A.PosDef) (hD : D.PosDef) : |
| 62 | (shift D d).withDensity (fun x => ENNReal.ofReal (likelihood A a D d x)) = shift A a := by |
| 63 | let μ := shift D d; let ν := shift A a; let f := likelihood A a D d |
| 64 | change μ.withDensity _ = ν |
| 65 | refine Measure.ext fun s hs => ?_ |
| 66 | rw [withDensity_apply _ hs] |
| 67 | have ht : Integrable f (μ.restrict s) := (like_mean hA hD).1.integrableOn |
| 68 | rw [← ofReal_integral_eq_lintegral_ofReal ht (Eventually.of_forall fun x => (like_pos hA hD a d x).le)] |
| 69 | have he := (shift_identity hA hD a d (s.indicator (1 : Vec I → ℝ))).2 |
| 70 | rw [integral_indicator_one hs] at he |
| 71 | have hh (x : Vec I) : f x • s.indicator (1 : Vec I → ℝ) x = s.indicator f x := by by_cases x∈s <;> simp [*] |
| 72 | change ν.real s = ∫ x,f x • s.indicator (1 : Vec I → ℝ) x ∂μ at he |
| 73 | simp_rw [hh,integral_indicator hs] at he |
| 74 | haveI : IsProbabilityMeasure ν := shift_probability .. |
| 75 | rw [← he, measureReal_def, ENNReal.ofReal_toReal (measure_ne_top ν s)] |
| 76 | |
| 77 | theorem likelihood_deriv (hA : A.PosDef) (hD : D.PosDef) : |
| 78 | (shift A a).rnDeriv (shift D d) =ᵐ[shift D d] fun x => ENNReal.ofReal (likelihood A a D d x) := by |
| 79 | rw [← with_likelihood (d:=d) hA hD] |
| 80 | exact Measure.rnDeriv_withDensity _ (like_meas ..).ennreal_ofReal |
| 81 | |
| 82 | lemma like_integrable_iff (hA : A.PosDef) (hD : D.PosDef) : |
| 83 | Integrable (fun x => likelihood A a D d x ^ p) (shift D d) ↔ (mixed A D p).PosDef := by |
| 84 | rw [(shift_int ..).1]; simp_rw [likeref]; exact trade_integrable_iff hA hD |
| 85 | |
| 86 | |
| 87 | theorem like_integral (hA : A.PosDef) (hD : D.PosDef) (he : (mixed A D p).PosDef) : |
| 88 | (∫ x, likelihood A a D d x ^ p ∂ shift D d) = price A D p (d-a) := by |
| 89 | rw [(shift_int ..).2]; simp_rw [likeref]; exact trade_integral hA hD he |
| 90 | |
| 91 | |
| 92 | |
| 93 | |
| 94 | |
| 95 | |
| 96 | end YM.SectorTools.PhysicalGaussianSwitch |