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.MergeProof.TeamLedger |
| 2 | import YM.Push.ABSOLUTE_SUMS.Gas |
| 3 | |
| 4 | /-! |
| 5 | # Real reference insertion and rollback. Adapt E6.Buoy machinery WITHOUT dividing by densities. |
| 6 | Use true held active patches and measures on *complete* raw Ledger incl force eras. |
| 7 | -/ |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | namespace YM.ConnectedActivityE6.Coat |
| 11 | open Filter Function Lattice RG Pressure Pressure.Stores Pressure.Tube Tree Wilson Finset MeasureTheory Matrix |
| 12 | open Push Push.AbsoluteSums Precision Exterior Shell Channel Next.Fluctuations SectorMeasure Oriented Work.E03 |
| 13 | open Bloch Laurent Work.F03 Progress.StationaryScenes Bid SliceRows Control Window Census Green Mask Pulse Itinerary |
| 14 | open Packets Presented LabelSum Sector |
| 15 | open scoped Topology InnerProductSpace Matrix.Norms.Frobenius ContDiff BigOperators Classical |
| 16 | variable {G : Gauge} {P : Teller G} {c f n : Side} {S : StepData c f} {T : Tube G S} {F : Forest S.ratio} |
| 17 | variable {A W γ μ C : ℝ} {L : Side} {R : Rep G f} {Q : YM.ConnectedActivityE6.Target G P} {o : Target.Order G W} |
| 18 | variable (X : Coat T F) |
| 19 | |
| 20 | |
| 21 | open PhysicalNext.Repeat.Lotus |
| 22 | variable (M : Team R) (l : Finset ℕ) |
| 23 | lemma shore_touchTeam (hR : Intake P T X.x R) (hw : 0<W) : |
| 24 | (∫ Y, M.realP X Y l W ∂F.order G)=∫ Y, ∫ z,M.realP X ((X.wrapY Y).shifted z) l W ∂X.stages ∂F.order G := by |
| 25 | let f (Y) := M.realP X Y l W |
| 26 | have he : Integrable (f ∘ X.shore.symm) _ := (X.propagation.symm.integrable_comp_emb |
| 27 | X.shore.symm.measurableEmbedding).mpr ((M.world X hR hw).1 l) |
| 28 | let g (v) := ∫ z,f (X.shore.symm (z,v)) ∂X.stages |
| 29 | have hr : Integrable (fun w : (X.Signal → G.El) × (X.Fog→G.El) => g w.2) (X.stages.prod X.forecast) := |
| 30 | he.integral_prod_right.comp_snd _ |
| 31 | rw [← X.propagation.symm.integral_comp' f]; symm |
| 32 | change (∫ Y, ∫ z, f _ ∂X.stages ∂_)=_ |
| 33 | rw [← X.propagation.symm.integral_comp' (fun Y=> ∫ z,f ((X.wrapY Y).shifted z) ∂X.stages)] |
| 34 | simp_rw [shifted] |
| 35 | change (∫ v, ∫ z, f (X.shore.symm (z,(X.shore (X.shore.symm v)).2)) ∂X.stages ∂_)=_ |
| 36 | simp_rw [X.shore.apply_symm_apply]; rw [Function.comp_def] at he; rw [integral_prod_symm _ hr, integral_prod_symm _ he]; simp [g] |
| 37 | |
| 38 | lemma licensesPTeam (K : Cash W X.x μ L Q o C T R) (hk : X.width=o.K) |
| 39 | {Y : F.Slice G} (h : M.realP X Y l W ≠ 0) (i : Bond f) (hi : X.Hot i) : |
| 40 | ∃ v ∈ Metric.ball (0:G.Color) Q.table.radius, ‖v‖ ≤ o.a*X.t ∧ |
| 41 | F.drape Y i=G.lieExp v*replica S.ratio X.V i := by |
| 42 | have hz := K.laws.data |
| 43 | let A := X.χ.profiles G S X.x W hz.W_pos hz.room.fiery |
| 44 | have hv : A.bill X.seeds X.k (F.drape Y) X.V ≠ 0 := right_ne_zero_of_mul (left_ne_zero_of_mul (left_ne_zero_of_mul h)) |
| 45 | have hu : S.likelihood (F.drape Y) X.k≠0 := left_ne_zero_of_mul (left_ne_zero_of_mul (right_ne_zero_of_mul h)) |
| 46 | have hf := hz.covers; rw [← hz.funds.length_eq] at hf |
| 47 | refine buys_empty X (γ:=o.γ) (?_) (?_) Q.table_exists (?_) (F.drape Y) (A.actual _ _ _ _ hv) |
| 48 | (lt_of_le_of_ne (S.likelihood_pos ..) (Ne.symm hu)) (fun i hi=> F.on_tree _ ⟨_,hi⟩) i hi |
| 49 | · rw [hk]; exact hz.access |
| 50 | · rw [hk]; exact o.gamma |
| 51 | nlinarith only [hf, mul_pos o.large hz.room.fiery] |
| 52 | |
| 53 | private def passP (Ñ : ChartRatio G) := Metric.ball (0:G.Color) Ñ.radius |
| 54 | private def native (P : ChartRatio G) (a : G.Color) := ENNReal.ofReal (P.scale * P.J a) |
| 55 | private def localP (V : G.El) (P : ChartRatio G) := (fun z : G.Color=> G.lieExp z*V) '' passP P |
| 56 | private def capP (Ñ : ChartRatio G) := Set.univ.pi fun i : X.Signal => localP (replica S.ratio X.V i.1.1) Ñ |
| 57 | |
| 58 | private lemma exposing {P : ChartRatio G} (h : LocalRatio P) (V : G.El) : |
| 59 | MeasurePreserving (fun a => G.lieExp a * V) |
| 60 | ((volume.restrict (passP P)).withDensity (native P)) (G.probHaar.restrict (localP V P)) := by |
| 61 | let L := MeasurableEquiv.mulRight V |
| 62 | have hp : MeasurePreserving L G.probHaar G.probHaar := measurePreserving_mul_right _ _ |
| 63 | have hf : MeasurePreserving G.lieExp ((volume.restrict (passP P)).withDensity (native P)) |
| 64 | (G.probHaar.restrict (G.lieExp '' passP P)) := ⟨G.lieExp_cont.measurable,h.actual⟩ |
| 65 | have hk := L.restrict_map G.probHaar (localP V P) |
| 66 | rw [hp.map_eq] at hk |
| 67 | have he : localP V P = L '' (G.lieExp '' passP P) := Set.image_comp L G.lieExp _ |
| 68 | have hx : MeasurePreserving L (G.probHaar.restrict (G.lieExp '' passP P)) (G.probHaar.restrict (localP V P)) := by |
| 69 | rw [hk, he,L.injective.preimage_image]; exact ⟨hp.measurable,rfl⟩ |
| 70 | exact hx.comp hf |
| 71 | |
| 72 | private def rangeP (Ñ : ChartRatio G) := Set.univ.pi fun _ : X.Signal => passP Ñ |
| 73 | private def expandP (a : X.Signal→G.Color) := (fun i : X.Signal=> G.lieExp (a i)*replica S.ratio X.V i.1.1) |
| 74 | |
| 75 | private lemma expansion {Ñ : ChartRatio G} (h : LocalRatio Ñ) : MeasurePreserving X.expandP |
| 76 | ((volume.restrict (X.rangeP Ñ)).withDensity (fun y => ∏ i : X.Signal, native Ñ (y i))) |
| 77 | (X.stages.restrict (X.capP Ñ)) := by |
| 78 | let μ : Measure G.Color := volume.restrict (passP Ñ) |
| 79 | have hm : volume.restrict (X.rangeP Ñ)=Measure.pi fun _ => μ := Measure.restrict_pi_pi .. |
| 80 | haveI : SigmaFinite μ := by unfold μ; infer_instance |
| 81 | have hv : Measurable (native Ñ) := (measurable_const.mul h.borel).ennreal_ofReal |
| 82 | haveI : SigmaFinite (μ.withDensity (native Ñ)) := SigmaFinite.withDensity_ofReal _ |
| 83 | rw [hm, Work.F05.piDensity (fun _ : X.Signal=> μ) (fun _=>native Ñ) (fun _=>hv),stages,capP,Measure.restrict_pi_pi] |
| 84 | exact measurePreserving_pi _ _ fun i : X.Signal=> exposing h (replica S.ratio X.V i.1.1) |
| 85 | |
| 86 | private lemma regains (u) (i : X.Signal) : X.shifted u i.val=u i := by |
| 87 | change (if h : X.Hot i.1.1 then u _ else _ )=_; exact dif_pos i.2 |
| 88 | private lemma expend (a : X.Signal→G.Color) : X.view (X.tune a) = X.shifted (X.expandP a) := by |
| 89 | funext i; by_cases h : X.Hot i.val |
| 90 | · rw [show X.shifted (X.expandP a) i = X.expandP a ⟨i,h⟩ from X.regains _ ⟨i,h⟩,view, if_pos h,increment, tune, dif_pos h]; rfl |
| 91 | rw [view, if_neg h]; symm |
| 92 | change (if hh : X.Hot i.val then _ else X.Y i)=_; exact dif_neg h |
| 93 | |
| 94 | /-- Borel scaled weight post-chart. -/ |
| 95 | def ascentPTeam (M : Team R) (Ñ : ChartRatio G) (W a : ℝ) (l : Finset ℕ) (u : Directions G f) := |
| 96 | (M.realP X (X.view u) l W *Ñ.scale ^ X.tier.card)*Real.exp (∑ i∈X.tier, X.gentry Ñ a u i)*X.enforce a u X.tier |
| 97 | |
| 98 | variable (K : Cash W X.x μ L Q o C T R) (hk : X.width=o.K) |
| 99 | |
| 100 | include K hk in |
| 101 | lemma chartersMTeam (l : Finset ℕ) : |
| 102 | (∫ u,M.realP X (X.shifted u) l W ∂X.stages)=∫ a : X.Signal → G.Color,X.ascentPTeam M Q.table W o.a l (X.tune a) := by |
| 103 | let P' := Q.table; have h := Q.table_exists |
| 104 | have hb := K.laws.data; have hh := hb.covers; rw [← hb.funds.length_eq] at hh |
| 105 | have hc := mul_pos o.large hb.room.fiery |
| 106 | have hΔ : 2*o.a*X.t < P'.radius := by dsimp only [Coat.t,P']; nlinarith only [hc,hh] |
| 107 | let s := X.capP Q.table |
| 108 | let t := X.rangeP Q.table |
| 109 | let f (u) := M.realP X u l W |
| 110 | have hX : MeasurableSet t := MeasurableSet.univ_pi (fun i => Metric.isOpen_ball.measurableSet) |
| 111 | have he (u : F.Slice G) (hf : f u≠0) (i : X.Signal) : ∃ v∈passP P', ‖v‖≤o.a*X.t ∧ |
| 112 | (u i.val)=G.lieExp v*replica S.ratio X.V i.val.val := by |
| 113 | rw [← F.off_tree u i.val]; exact X.licensesPTeam M _ K hk hf _ i.2 |
| 114 | have hg z (hz : z ∉ s) : f (X.shifted z)=0 := by |
| 115 | by_contra hp; apply hz; intro i _; obtain ⟨v,hv,-,he⟩ := he _ hp i |
| 116 | exact ⟨v,hv, he.symm.trans (regains ..)⟩ |
| 117 | let g (a : X.Signal→G.Color) := X.ascentPTeam M P' W o.a l (X.tune a) |
| 118 | let ν (u : X.Signal → G.Color) := ∏ i : X.Signal,native P' (u i) |
| 119 | have hM : Measurable ν := Finset.measurable_fun_prod _ fun i _=> |
| 120 | ((show Measurable (native P') from (measurable_const.mul h.borel).ennreal_ofReal).comp (measurable_pi_apply i)) |
| 121 | have hW a (i : X.Signal) : X.tune a i.val.val=a i := dif_pos i.2 |
| 122 | have ht (a) (ha : a ∈ t) : (ν a).toReal • f (X.shifted (X.expandP a))=g a := by |
| 123 | rw [← X.expend]; unfold g ascentPTeam |
| 124 | by_cases hi : f (X.view (X.tune a))=0 |
| 125 | · change _=f _ * _ * _ * _; rw [hi]; simp |
| 126 | have hf (i : X.Signal) : X.cone o.a (X.tune a) i.val.val=1 := by |
| 127 | obtain ⟨v,hv,hk,hy⟩ := he _ hi i |
| 128 | rw [X.expend,X.regains] at hy |
| 129 | apply X.premiere (a:=o.a) hc |
| 130 | rw [hW a i,h.inject (ha i (Set.mem_univ i)) hv (mul_right_cancel hy)]; exact hk |
| 131 | have hR (i : X.Signal) : Real.exp (X.gentry P' o.a (X.tune a) ((X.advance i).val))=P'.J (a i) := by |
| 132 | rw [show (X.advance i).val=i.1.1 from rfl, (X.doorway (a:=o.a) hc _ _ (by rw [hf]; norm_num) h hΔ).2,hW] |
| 133 | unfold ν enforce; rw [Real.exp_sum,ENNReal.toReal_prod] |
| 134 | have hF : Fintype.card X.Signal = X.tier.card := (Fintype.card_congr X.advance).trans (Fintype.card_coe _) |
| 135 | have hG i : (native P' (a i)).toReal=P'.scale*P'.J (a i) := ENNReal.toReal_ofReal (mul_nonneg h.scale.le (h.pos (a i) (ha i (Set.mem_univ _))).le) |
| 136 | have hv (F : Bond _ → ℝ) : ∏ i∈X.tier,F i=∏ i : X.Signal,F (X.advance i) := by |
| 137 | rw [← Finset.prod_coe_sort X.tier, X.advance.prod_comp (fun i=> F i.val)] |
| 138 | simp_rw [hv,hG,hR, prod_mul_distrib,prod_const,card_univ,hF] |
| 139 | change _= f _*_*(∏ i : X.Signal,P'.J (a i))*(∏ i : X.Signal,X.cone o.a (X.tune a) i.val.val); simp_rw [hf]; simp only [prod_const_one,smul_eq_mul,mul_one]; ring |
| 140 | have hy (a) (ha : a ∉ t) : g a=0 := by |
| 141 | by_contra hp |
| 142 | have he : X.enforce o.a (X.tune a) X.tier≠0 := right_ne_zero_of_mul hp |
| 143 | apply ha; intro i _ |
| 144 | rw [← hW a i]; exact (X.doorway hc _ _ (fun hm=> he (prod_eq_zero (X.advance i).2 hm)) h hΔ).1 |
| 145 | have hr := X.expansion h |
| 146 | rw [← setIntegral_eq_integral_of_forall_compl_eq_zero hg, ← setIntegral_eq_integral_of_forall_compl_eq_zero hy] |
| 147 | have hm : Measurable (X.shifted) := X.shore.symm.measurable.comp (measurable_id.prodMk measurable_const) |
| 148 | have hM' : Measurable (fun i=> f (X.shifted i)) := (((M.escorts X K.laws.intake hb.W_pos).2 l)).comp hm |
| 149 | rw [← hr.map_eq,integral_map hr.measurable.aemeasurable hM'.aestronglyMeasurable, |
| 150 | integral_withDensity_eq_integral_toReal_smul hM (ae_of_all _ fun i => lt_top_iff_ne_top.mpr (ENNReal.prod_ne_top (by intro; simp [native])))] |
| 151 | exact setIntegral_congr_fun hX ht |
| 152 | |
| 153 | def tokenUTeam (M : Team R) (W a : ℝ) (Ñ : ChartRatio G) (z : Air f G) (l : Finset ℕ) := |
| 154 | let U := X.liftA R.beta z |
| 155 | M.realP X (X.view U) l W * X.ribbons z Ñ R.beta a * X.enforce a U X.tier |
| 156 | |
| 157 | |
| 158 | include K hk |
| 159 | theorem seatPTeam (l : Finset ℕ) : |
| 160 | (∫ u,M.realP X (X.shifted u) l W ∂X.stages)=∫ z, X.tokenUTeam M W o.a Q.table z l := by |
| 161 | rw [X.chartersMTeam M K hk l]; symm |
| 162 | let g := gStep R.beta; have hg : 0<g := by unfold g gStep; have := K.laws.intake.positive; positivity |
| 163 | let p := X.arised.card; let h:=Units.mk0 _ hg.ne' |
| 164 | let f (i) := X.ascentPTeam M Q.table W o.a l i |
| 165 | let D : (X.Speck→ℝ) ≃ᵐ( X.Signal→G.Color) := (blast h (fun i => X.μ i.val.1 i.val.2)).trans X.tunes |
| 166 | let Y (x) := f (X.tune (D x)) |
| 167 | have hD : MeasurePreserving D (ENNReal.ofReal (g^p) • volume) volume := by |
| 168 | unfold D p; rw [X.arised_size]; exact X.preserves_tunes.comp (preserving_blast h hg _) |
| 169 | have hM := hD.integral_comp' (fun i=> f (X.tune i)) |
| 170 | rw [integral_smul_measure] at hM |
| 171 | simp only [ENNReal.toReal_ofReal (pow_nonneg hg.le _),smul_eq_mul] at hM |
| 172 | have hv (z) : X.tokenUTeam M W o.a Q.table z l=Y (X.partB z).1*g^p*X.comfort (X.partB z).2 := by |
| 173 | let x := X.liftA R.beta z; let x':= X.tune (D (X.partB z).1) |
| 174 | have hx (j) (he : X.Hot j) : x j=x' j := by |
| 175 | unfold x' tune; rw [dif_pos he]; ext k |
| 176 | let i:X.Speck := ⟨(j,k),he⟩ |
| 177 | change _= X.tunes _ _ k; rw [X.tunes_val _ i ⟨⟨j,he.1⟩,he⟩ k rfl]; rfl |
| 178 | have he : X.view x=X.view x' := by |
| 179 | funext i; unfold view; split <;> rename_i h |
| 180 | · unfold increment; rw [hx _ h] |
| 181 | rfl |
| 182 | have hg : X.enforce o.a x X.tier = X.enforce o.a x' X.tier := by |
| 183 | unfold enforce; apply prod_congr rfl; intro i hi; unfold cone; rw [hx _ (mem_filter.mp hi).2] |
| 184 | have hd : (∑ j∈X.tier, X.gentry Q.table o.a x j)= ∑ j∈X.tier, X.gentry Q.table o.a x' j := by |
| 185 | apply sum_congr rfl; intro j hj; unfold gentry cone; rw [hx _ (mem_filter.mp hj).2] |
| 186 | unfold Y f ascentPTeam tokenUTeam; dsimp only |
| 187 | rw [he,hg,ribbons, hd,comfort,inv_pow,Real.exp_add]; rw [X.dormant_energy, neg_div]; unfold x' g p; ring |
| 188 | rw [← X.partP.symm.integral_comp' (fun z=> X.tokenUTeam M W o.a Q.table z l)] |
| 189 | simp_rw [hv,X.partB.apply_symm_apply] |
| 190 | rw [← hM]; change (∫ z : ((X.Speck→ℝ) × (X.Vacant→ℝ)), Y z.1*g^p*X.comfort z.2 ∂volume.prod volume)=_ |
| 191 | rw [integral_prod_mul (fun i=> Y i*g^p) X.comfort, X.comfy,mul_one, integral_mul_const]; exact mul_comm .. |
| 192 | |
| 193 | |
| 194 | end YM.ConnectedActivityE6.Coat |