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.Probability.Distributions.Gaussian.HasGaussianLaw.Independence |
| 2 | import YM.SectorNext.GAUSSIAN_SECTOR_CHANGE.Gaussian |
| 3 | |
| 4 | |
| 5 | /-! |
| 6 | # Keeping the actual marginals |
| 7 | |
| 8 | Zero *cross* covariance only; no independence hypothesis among the links |
| 9 | read inside one species. Different reads may use different within-A matrices |
| 10 | if one rebooks the sector; that is **not** licensed here. |
| 11 | -/ |
| 12 | set_option autoImplicit false |
| 13 | set_option linter.unusedSectionVars false |
| 14 | noncomputable section |
| 15 | namespace YM.AnalyticBridge.Sharp.Projection |
| 16 | open Set Function Filter MeasureTheory ProbabilityTheory Matrix WithLp |
| 17 | open Next.SectorChange.Gaussian (Table Vec cloud) |
| 18 | open scoped Topology BigOperators MatrixOrder RealInnerProductSpace ENNReal Classical |
| 19 | |
| 20 | section gaussian |
| 21 | variable {I J K : Type} [Fintype I] [Fintype J] [DecidableEq J] {C : Table J} |
| 22 | [Fintype K] [DecidableEq K] |
| 23 | |
| 24 | private def wideMap (e : K → J) : EuclideanSpace ℝ J →L[ℝ] EuclideanSpace ℝ K := |
| 25 | (PiLp.continuousLinearEquiv 2 ℝ (fun _ : K => ℝ)).symm.toContinuousLinearMap.comp |
| 26 | (ContinuousLinearMap.pi (fun i : K => EuclideanSpace.proj (𝕜:=ℝ) (e i))) |
| 27 | |
| 28 | private lemma wide_apply (e : K → J) (x : EuclideanSpace ℝ J) (i : K) : |
| 29 | wideMap e x i = x (e i) := rfl |
| 30 | -- wide_projection adapts the Gaussian coordinate marginal proof from Mathlib's measurePreserving_restrict₂_multivariateGaussian (Rémy Degenne and Etienne Marion). Copyright (c) 2026 Rémy Degenne. All rights reserved. Apache-2.0. See NOTICE. |
| 31 | private lemma wide_projection (e : K → J) (H : C.PosSemidef) : |
| 32 | MeasurePreserving (wideMap e) (multivariateGaussian 0 C) (multivariateGaussian 0 (C.submatrix e e)) := by |
| 33 | refine ⟨Continuous.measurable (wideMap e).continuous,?_⟩ |
| 34 | apply IsGaussian.ext |
| 35 | · simp only [id_eq, integral_id_multivariateGaussian] |
| 36 | rw [ContinuousLinearMap.integral_id_map, integral_id_multivariateGaussian, map_zero] |
| 37 | exact IsGaussian.integrable_id |
| 38 | rw [← ContinuousLinearMap.toBilinForm_inj]; refine LinearMap.BilinForm.ext_basis |
| 39 | (EuclideanSpace.basisFun K ℝ).toBasis fun i j => ?_ |
| 40 | rw [ContinuousLinearMap.toBilinForm_apply, ContinuousLinearMap.toBilinForm_apply, |
| 41 | covarianceBilin_apply_eq_cov, covariance_map] |
| 42 | · have h (i : K) : (fun u => ⟪(EuclideanSpace.basisFun K ℝ).toBasis i,u⟫) ∘ wideMap e = |
| 43 | fun u : EuclideanSpace ℝ J => u (e i) := by |
| 44 | funext x; rw [Function.comp_apply]; simp [PiLp.inner_apply,wide_apply] |
| 45 | simp_rw [h, covariance_eval_multivariateGaussian H, covarianceBilin_multivariateGaussian (H.submatrix e)] |
| 46 | simp |
| 47 | any_goals exact Measurable.aestronglyMeasurable (by fun_prop) |
| 48 | · fun_prop |
| 49 | · exact IsGaussian.memLp_two_id |
| 50 | |
| 51 | lemma cloud_projection (hC : C.PosDef) (e : K → J) : |
| 52 | MeasurePreserving (fun y : Vec J => fun i => y (e i)) (cloud C) (cloud (C.submatrix e e)) := by |
| 53 | let f := fun y : Vec J => fun i : K => y (e i) |
| 54 | have hf : Measurable f := measurable_pi_lambda _ fun i => measurable_pi_apply _ |
| 55 | refine ⟨hf,?_⟩ |
| 56 | let u := (MeasurableEquiv.toLp 2 (Vec J)).symm |
| 57 | let v := (MeasurableEquiv.toLp 2 (Vec K)).symm |
| 58 | change ((multivariateGaussian 0 C).map u).map f = (multivariateGaussian 0 (C.submatrix e e)).map v |
| 59 | rw [Measure.map_map hf u.measurable,← (wide_projection e hC.posSemidef).map_eq, |
| 60 | Measure.map_map v.measurable (wideMap e).continuous.measurable]; rfl |
| 61 | |
| 62 | /-- Projection on several groups of coordinates, the *only* independence |
| 63 | used for component locality under the normalized Gaussian. -/ |
| 64 | lemma independent (hC : C.PosDef) {P : I → Type} [∀ i, Fintype (P i)] [∀ i, DecidableEq (P i)] |
| 65 | (e : ∀ i, P i → J) (h : ∀ i j, i ≠ j → ∀ a b, C (e i a) (e j b) = 0) : |
| 66 | MeasurePreserving (fun y : Vec J => fun i a => y (e i a)) (cloud C) |
| 67 | (Measure.pi fun i => cloud (C.submatrix (e i) (e i))) := by |
| 68 | let X (i : I) (y : Vec J) : Vec (P i) := fun a => y (e i a) |
| 69 | let Z : Measure (Vec J) := cloud C |
| 70 | have hm (i) : Measurable (X i) := (cloud_projection hC (e i)).measurable |
| 71 | have hf : HasGaussianLaw (id (α:=Vec J)) Z := by |
| 72 | have hz : IsGaussian (cloud C) := by |
| 73 | let L := PiLp.continuousLinearEquiv 2 ℝ (fun _ : J => ℝ) |
| 74 | change IsGaussian ((multivariateGaussian 0 C).map (L : EuclideanSpace ℝ J → Vec J)) |
| 75 | infer_instance |
| 76 | exact IsGaussian.hasGaussianLaw_id |
| 77 | let L : Vec J →L[ℝ] (∀ i, Vec (P i)) := ContinuousLinearMap.pi (fun i => |
| 78 | ContinuousLinearMap.pi (fun j => ContinuousLinearMap.proj (R:=ℝ) (e i j))) |
| 79 | have H : HasGaussianLaw (fun y i => X i y) Z := hf.map L |
| 80 | have he : iIndepFun X Z := H.iIndepFun_of_covariance_eval (fun i j hij a b => |
| 81 | (Next.SectorChange.Gaussian.cloud_cov C hC (e i a) (e j b)).trans (h i j hij a b)) |
| 82 | refine ⟨measurable_pi_lambda _ hm,?_⟩ |
| 83 | change Z.map (fun y i => X i y) = Measure.pi _ |
| 84 | rw [he.map_fun_eq_pi_map (fun i => (hm i).aemeasurable)] |
| 85 | exact congr_arg Measure.pi (funext fun i => (cloud_projection hC (e i)).map_eq) |
| 86 | end gaussian |
| 87 | |
| 88 | section other |
| 89 | open MeasurableSpace |
| 90 | |
| 91 | variable {J I K : Type} [Fintype J] [Fintype I] [Fintype K] |
| 92 | |
| 93 | variable {X : Type*} [MeasurableSpace X] (μ : Measure X) [IsProbabilityMeasure μ] |
| 94 | |
| 95 | lemma pi_projection (e : I ↪ J) : |
| 96 | MeasurePreserving (fun y : J → X => fun i => y (e i)) |
| 97 | (Measure.pi fun _ => μ) (Measure.pi fun _ => μ) := by |
| 98 | let v := Measure.pi fun _ : J => μ |
| 99 | let H (j : J) (x : J → X) := x j |
| 100 | have h (i) : MeasurePreserving (H i) v μ := measurePreserving_eval _ _ |
| 101 | have hf : iIndepFun H v := iIndepFun_pi (μ:=fun _ => μ) (X:=fun _ => id) (fun _ => aemeasurable_id) |
| 102 | let Y (i : I) := H (e i) |
| 103 | have he : iIndepFun Y v := hf.precomp e.injective |
| 104 | refine ⟨measurable_pi_lambda _ (fun i => (h (e i)).measurable),?_⟩ |
| 105 | change v.map (fun x i => Y i x) = Measure.pi _ |
| 106 | rw [he.map_fun_eq_pi_map (fun i => (h (e i)).measurable.aemeasurable)] |
| 107 | exact congr_arg Measure.pi (funext fun i => (h (e i)).map_eq) |
| 108 | |
| 109 | lemma arrays {R : I → Type} [∀ i, Fintype (R i)] (e : (i : I) → R i ↪ J) |
| 110 | (h : ∀ i j, i≠j → ∀ a b,e i a ≠ e j b) : |
| 111 | MeasurePreserving (fun y : J → X => fun i a => y (e i a)) |
| 112 | (Measure.pi fun _ => μ) (Measure.pi fun i => (Measure.pi fun _ : R i => μ)) := by |
| 113 | let E : Sigma R ↪ J := ⟨fun u => e u.1 u.2, by |
| 114 | rintro ⟨i,a⟩ ⟨j,b⟩ hab |
| 115 | have ht : i=j := Classical.not_not.mp fun hn => h i j hn a b hab |
| 116 | subst j |
| 117 | exact congr_arg (Sigma.mk i) ((e i).injective hab)⟩ |
| 118 | let m (x : I) := Measure.pi fun _ : R x => μ |
| 119 | let S : Measure (Sigma R → X) := Measure.pi fun _ => μ |
| 120 | let L : (∀ i, R i → X) ≃ᵐ (Sigma R → X) := { |
| 121 | toFun y a := y a.1 a.2 |
| 122 | invFun y i a := y ⟨i,a⟩ |
| 123 | left_inv _ := rfl |
| 124 | right_inv _ := rfl |
| 125 | measurable_toFun := by |
| 126 | change Measurable (fun (y : (i : I) → R i → X) a => y (Sigma.fst a) (Sigma.snd a)) |
| 127 | exact measurable_pi_lambda _ fun a => (measurable_pi_apply a.2).comp (measurable_pi_apply a.1) |
| 128 | measurable_invFun := by |
| 129 | change Measurable (fun (y : Sigma R → X) (i : I) (a : R i) => y ⟨i,a⟩) |
| 130 | exact measurable_pi_lambda _ fun a => measurable_pi_lambda _ fun i => measurable_pi_apply _ } |
| 131 | have ht : MeasurePreserving L (Measure.pi m) S := by |
| 132 | refine ⟨L.measurable,(Measure.pi_eq (μ:=fun _ : Sigma R => μ) fun t ht => ?_).symm⟩ |
| 133 | have hp : L ⁻¹' univ.pi t = univ.pi (fun i : I => univ.pi (fun a : R i => t ⟨i,a⟩)) := by |
| 134 | ext y |
| 135 | simp [Set.mem_pi,L,Sigma.forall] |
| 136 | simp_rw [MeasurableEquiv.map_apply,hp,m,Measure.pi_pi,Fintype.prod_sigma] |
| 137 | exact ht.symm.comp (pi_projection μ E) |
| 138 | end other |
| 139 | |
| 140 | section join |
| 141 | variable {I : Type} [Fintype I] {X Y : I → Type*} [∀ i,MeasurableSpace (X i)] |
| 142 | [∀ i,MeasurableSpace (Y i)] (μ : ∀ i,Measure (X i)) (ν : ∀ i,Measure (Y i)) |
| 143 | [∀ i, SigmaFinite (μ i)] [∀ i, SigmaFinite (ν i)] |
| 144 | |
| 145 | lemma join : |
| 146 | MeasurePreserving (fun a : (∀ i,X i) × (∀ i,Y i) => fun i => (a.1 i,a.2 i)) |
| 147 | ((Measure.pi μ).prod (Measure.pi ν)) (Measure.pi (fun i => (μ i).prod (ν i))) := by |
| 148 | let F := fun a : (∀ i,X i) × (∀ i,Y i) => fun i => (a.1 i,a.2 i) |
| 149 | have he : Measurable F := measurable_pi_lambda _ fun i => ((measurable_pi_apply _).comp measurable_fst).prodMk |
| 150 | ((measurable_pi_apply _).comp measurable_snd) |
| 151 | refine ⟨he, (Measure.pi_eq_generateFrom (μ:=fun i => (μ i).prod (ν i)) |
| 152 | (fun i => generateFrom_prod) (fun i => isPiSystem_prod) |
| 153 | (fun i => (μ i).toFiniteSpanningSetsIn.prod (ν i).toFiniteSpanningSetsIn) (μν:=(((Measure.pi μ).prod (Measure.pi ν)).map F)) |
| 154 | (fun s hs => ?_)).symm⟩ |
| 155 | choose A hA B hB hb using hs |
| 156 | have hm i : MeasurableSet (s i) := hb i ▸ MeasurableSet.prod (s:=A i) (t:=B i) (hA i) (hB i) |
| 157 | rw [Measure.map_apply he (MeasurableSet.univ_pi hm)] |
| 158 | have hp : F ⁻¹' univ.pi s = univ.pi A ×ˢ univ.pi B := by |
| 159 | ext y; simp [Set.mem_pi,F,← hb,forall_and] |
| 160 | rw [hp,Measure.prod_prod]; simp_rw [Measure.pi_pi,← hb, Measure.prod_prod]; rw [Finset.prod_mul_distrib] |
| 161 | end join |
| 162 | |
| 163 | section locality |
| 164 | |
| 165 | variable {J K I : Type} [Fintype J] [Fintype I] [Fintype K] [DecidableEq K] |
| 166 | |
| 167 | variable {X : Type*} [MeasurableSpace X] (μ : Measure X) [IsProbabilityMeasure μ] {C : Table K} |
| 168 | {R P : I → Type} [∀ i, Fintype (R i)] [∀ i, Fintype (P i)] [∀ i, DecidableEq (P i)] |
| 169 | |
| 170 | variable (hC : C.PosDef) (e : ∀ i, R i ↪ J) (h : ∀ i j, i≠j → ∀ a b,e i a ≠ e j b) |
| 171 | (p : ∀ i, P i → K) (hc : ∀ i j, i≠j → ∀ a b,C (p i a) (p j b)=0) |
| 172 | (M : ∀ i, Table (P i)) (hm : ∀ i,C.submatrix (p i) (p i)=M i) |
| 173 | include h hm hc hC |
| 174 | |
| 175 | lemma localizes : |
| 176 | MeasurePreserving (fun y : (J → X) × Vec K => fun i => (fun a => y.1 (e i a),fun b => y.2 (p i b))) |
| 177 | ((Measure.pi fun _ => μ).prod (cloud C)) (Measure.pi fun i => (Measure.pi fun _ : R i => μ).prod (cloud (M i))) := by |
| 178 | have hz := independent hC p hc; simp_rw [hm] at hz |
| 179 | exact (join (fun i => (Measure.pi fun _ : R i => μ)) _).comp ((arrays μ e h).prod hz) |
| 180 | |
| 181 | /-- Actual L¹ and literal extraction under the localized reads of the marginal. |
| 182 | Includes empty index types. Even if Y sections are not registered on every dust |
| 183 | fiber. -/ |
| 184 | theorem integrals (f : (i : I) → (R i → X) × Vec (P i) → ℝ) |
| 185 | (hf : ∀ i, Integrable (f i) ((Measure.pi fun _ => μ).prod (cloud (M i)))) : |
| 186 | let V := (Measure.pi fun _ : J => μ).prod (cloud C) |
| 187 | let w := fun y : (J → X) × Vec K => ∏ i, f i ((fun a => y.1 (e i a)),fun b => y.2 (p i b)) |
| 188 | Integrable w V ∧ (∫ y,w y ∂V) = ∏ i,∫ y,f i y ∂((Measure.pi fun _ => μ).prod (cloud (M i))) := by |
| 189 | intro V w |
| 190 | let F := fun y : (J→X) × Vec K => fun i => ((fun a : R i => y.1 (e i a)),fun b => y.2 (p i b)) |
| 191 | let L := Measure.pi fun i => (Measure.pi fun _ : R i => μ).prod (cloud (M i)) |
| 192 | let G := fun y : (∀ i,(R i→X) × Vec (P i)) => ∏ i, f i (y i) |
| 193 | have hi := Integrable.fintype_prod_dep hf |
| 194 | have hh : MeasurePreserving F V L := localizes μ hC e h p hc M hm |
| 195 | refine ⟨(hh.integrable_comp hi.1).mpr hi,?_⟩ |
| 196 | have hp := integral_fintype_prod_eq_prod f (μ:=fun i => (Measure.pi fun _ => μ).prod (cloud (M i))) |
| 197 | change (∫ y,G y ∂L)=_ at hp |
| 198 | rw [← hp,← hh.map_eq,integral_map hh.measurable.aemeasurable] |
| 199 | exact hh.map_eq.symm ▸ hi.1 |
| 200 | |
| 201 | end locality |
| 202 | end YM.AnalyticBridge.Sharp.Projection |