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.SCHEDULE.Postal |
| 2 | import YM.ProofPorts.COMMON_COMPLEX_PRODUCTION.BlockLaw |
| 3 | import YM.ProofPorts.COMMON_COMPLEX_PRODUCTION.Pin |
| 4 | |
| 5 | /-! # Pin exchange and return to the ORIGINAL common Gaussian. -/ |
| 6 | set_option autoImplicit false |
| 7 | set_option linter.unusedSectionVars false |
| 8 | noncomputable section |
| 9 | namespace YM.ProofPorts.CommonComplexProduction.Pin |
| 10 | open Set Function Filter Matrix Lattice RG Wilson Precision Multi.Vacuum Next.SectorChange |
| 11 | open MeasureTheory Gaussian Gauss |
| 12 | open scoped Topology BigOperators Classical MatrixOrder |
| 13 | variable {G : Gauge} {I : Type} [Fintype I] [DecidableEq I] (P : Pin G I) |
| 14 | |
| 15 | private abbrev Split := Prices G P.Floats × P.Shift |
| 16 | private def percentage (m z : P.Shift) : ℝ := if P.zone m z ∈ mouth P.chart then pay P.chart (P.zone m z) else 0 |
| 17 | |
| 18 | private lemma percentage_pos {P : Pin G I} (h : P.Clean) (m z : P.Shift) : 0 ≤ P.percentage m z := by |
| 19 | unfold percentage; split; next he => exact (h.chart_pos he).le |
| 20 | rfl |
| 21 | |
| 22 | variable {X : Type} [NormedAddCommGroup X] [NormedSpace ℝ X] [CompleteSpace X] [SecondCountableTopology X] |
| 23 | [MeasurableSpace X] [BorelSpace X] |
| 24 | |
| 25 | private def pct (m : P.Shift) (v : P.Group) (f : P.State → X) (z : P.Split) := |
| 26 | percentage P m z.2 • f (z.1,release v (P.zone m z.2)) |
| 27 | |
| 28 | def returnWeight (C : Gaussian.Table (I × G.ColorIndex)) (m : P.Shift) (v : P.Group) (f : P.State → X) (z : Prices G I) := |
| 29 | let y := CFC.sqrt C *ᵥ z |
| 30 | P.faceFee C m y • f (P.fetch m v y) |
| 31 | |
| 32 | namespace Clean |
| 33 | variable {P} (h : P.Clean) (m : P.Shift) (v : P.Group) (C : Gaussian.Table (I × G.ColorIndex)) (hc : C.PosDef) |
| 34 | include h |
| 35 | |
| 36 | private lemma part (f : P.State → X) (hm : Measurable f) (he : ∀ x, x∉P.scan v → f x=0) (z : Prices G P.Floats) : |
| 37 | let k := P.pct m v f |
| 38 | let μ := piHaar G P.Stays |
| 39 | (Integrable (fun y => f (z,y)) μ ↔ Integrable (fun y => k (z,y))) ∧ |
| 40 | (∫ y,f (z,y) ∂μ) = P.g ^ Fintype.card (P.Stays × G.ColorIndex) • ∫ y,k (z,y) := by |
| 41 | intro k μ |
| 42 | obtain ⟨ht,hI⟩ := release_integral h.legal v (fun y => f (z,y)) (hm.comp measurable_prodMk_left).stronglyMeasurable |
| 43 | (fun y => he (z,y)) |
| 44 | let F : LogArray G P.Stays→X := (mouth P.chart).indicator fun y => pay P.chart y • f (z, release v y) |
| 45 | obtain ⟨h1,h2⟩ := Gaussian.paid_scale h.pos (F ∘ tape) m |
| 46 | rw [(tape_volume (G:=G)).integrable_comp_emb tape.measurableEmbedding (g:=F)] at h1 |
| 47 | change (∫ y,F (tape y))=_ at h2 |
| 48 | rw [(tape_volume (G:=G)).integral_comp' F] at h2 |
| 49 | have hf y : (F ∘ tape) (m + P.g • y) = k (z,y) := by |
| 50 | change F (P.zone m y)=ite _ _ (0:ℝ) • _ |
| 51 | unfold F Set.indicator; split <;> simp_all |
| 52 | exact ⟨ht.trans (by simp_rw [hf] at h1; exact h1),hI.trans (by simp_rw [hf] at h2; exact h2)⟩ |
| 53 | |
| 54 | private lemma pct_meas (f : P.State → X) (hm : Measurable f) : Measurable (P.pct m v f) := by |
| 55 | have ht : Measurable (fun p:P.Split => P.zone m p.2) := (P.zone_meas m).comp (measurable_snd (α:=Prices G P.Floats) (β:=P.Shift)) |
| 56 | have he : Measurable (fun y : P.Split => P.percentage m y.2) := (Measurable.ite (ht (mouth_meas _)) ((pay_meas h.legal).comp ht) (measurable_const (a:=(0:ℝ)))) |
| 57 | exact he.smul (hm.comp (measurable_fst.prodMk ((release_continuous _).measurable.comp ht))) |
| 58 | |
| 59 | private lemma slice_price (f : P.State → X) (hm : Measurable f) (he : ∀ x, x∉P.scan v → f x=0) : |
| 60 | let k := P.pct m v f |
| 61 | (Integrable f P.basis ↔ Integrable k) ∧ |
| 62 | (∫ y,f y ∂P.basis) = P.g ^ Fintype.card (P.Stays × G.ColorIndex) • ∫ y,k y := by |
| 63 | intro k; let s := P.g ^ Fintype.card (P.Stays × G.ColorIndex) |
| 64 | have hs : s ≠ 0 := pow_ne_zero _ h.pos.ne' |
| 65 | haveI : SFinite (piHaar G P.Stays) := by unfold piHaar; infer_instance |
| 66 | have hm' := h.pct_meas m v _ hm |
| 67 | have hi : Integrable f P.basis ↔ Integrable k := by |
| 68 | rw [basis,Measure.volume_eq_prod (Prices G P.Floats) P.Shift,integrable_prod_iff hm'.aestronglyMeasurable, |
| 69 | integrable_prod_iff hm.aestronglyMeasurable] |
| 70 | simp_rw [(h.part m v _ hm he _).1,(h.part m v (fun x => ‖f x‖) hm.norm (fun x hx => by rw [he _ hx,norm_zero]) _).2] |
| 71 | have hk y : pct P m v (fun x => ‖f x‖) y = ‖k y‖ := (norm_smul_of_nonneg (percentage_pos h ..) _).symm |
| 72 | simp_rw [hk] |
| 73 | exact and_congr_right' (integrable_smul_iff (μ:=volume) hs (fun x => ∫ y, ‖k (x,y)‖)) |
| 74 | refine ⟨hi,?_⟩ |
| 75 | by_cases hf : Integrable f P.basis |
| 76 | · unfold basis; rw [Measure.volume_eq_prod (Prices G P.Floats) P.Shift,integral_prod _ (hi.mp hf),integral_prod f hf] |
| 77 | simp_rw [(h.part m v _ hm he _).2,integral_smul]; rfl |
| 78 | rw [integral_undef hf,integral_undef (mt hi.mpr hf),smul_zero] |
| 79 | |
| 80 | include hc |
| 81 | private lemma exchange_form (f : P.State → X) (hm : Measurable f) (he : ∀ x, x∉P.scan v → f x=0) : |
| 82 | let k y := Real.exp (force C y/2) • P.pct m v f (P.switch y) |
| 83 | let d := P.g ^ Fintype.card (P.Stays × G.ColorIndex) * Gaussian.coat C |
| 84 | (Integrable f P.basis ↔ Integrable k (cloud C)) ∧ (∫ y,f y ∂P.basis)= d • ∫ z,k z ∂cloud C := by |
| 85 | have hu:=h.slice_price m v f hm he |
| 86 | have he' := under_cloud hc (P.pct m v f ∘ P.switch) |
| 87 | refine ⟨(hu.1.trans (P.units.integrable_comp_emb P.switch.measurableEmbedding).symm).trans he'.1,?_⟩ |
| 88 | rw [hu.2,← P.units.integral_comp' (P.pct m v f),mul_smul]; exact congrArg _ he'.2 |
| 89 | |
| 90 | /-- The total integral (Bochner), in either direction, at a given θ,U. Needs |
| 91 | vanishing off the held chart in State; use for EACH derivative in unforced |
| 92 | price. No conditioning or deleting coordinates during derivative estimates. -/ |
| 93 | theorem exchange (f : P.State → X) (hm : Measurable f) (he : ∀ x, x∉P.scan v → f x=0) : |
| 94 | (Integrable f P.basis ↔ Integrable (P.returnWeight C m v f) (standard _)) ∧ |
| 95 | (∫ y,f y ∂P.basis)=∫ z,P.returnWeight C m v f z ∂standard _ := by |
| 96 | let k y := Real.exp (force C y/2) • P.pct m v f (P.switch y) |
| 97 | let d := P.g ^ Fintype.card (P.Stays × G.ColorIndex) * Gaussian.coat C |
| 98 | have hd : d≠0 := mul_ne_zero (pow_ne_zero _ h.pos.ne') (coat_pos hc).ne' |
| 99 | have hm' : Measurable k := by |
| 100 | have hq : Measurable (fun y => Real.exp (force C y / 2)) := by unfold force mulVec dotProduct; fun_prop |
| 101 | exact hq.smul ((h.pct_meas m v f hm).comp P.switch.measurable) |
| 102 | let w (y : Prices G I) := CFC.sqrt C *ᵥ y |
| 103 | have hw : P.returnWeight C m v f=d • (k ∘ w) := by |
| 104 | funext z; unfold returnWeight faceFee; dsimp only; split |
| 105 | next hi => |
| 106 | change _ = d • (Real.exp _ • ((ite (P.zone m (P.switch (w z)).2 ∈ mouth P.chart) _ (0:ℝ)) • (_ : X))) |
| 107 | rw [if_pos (show P.zone m (P.switch (w z)).2 ∈ mouth P.chart from hi),smul_smul,smul_smul] |
| 108 | congr 1 |
| 109 | unfold d w; ring |
| 110 | next hi => simp [smul_zero,zero_smul,d,w,k,pct,percentage, show P.zone m (P.switch (w z)).2 ∉ mouth P.chart from hi] |
| 111 | have hx := h.exchange_form m v C hc f hm he |
| 112 | have ht : Measure.map w (standard _) = cloud C := paid C |
| 113 | rw [hw,integrable_smul_iff hd,←integrable_map_measure hm'.aestronglyMeasurable (measurable_matVec _).aemeasurable,ht] |
| 114 | refine ⟨hx.1,hx.2.trans ?_⟩ |
| 115 | change _ = ∫ z,d • k (w z) ∂standard _ |
| 116 | rw [integral_smul,← integral_map (measurable_matVec _).aemeasurable hm'.aestronglyMeasurable,ht] |
| 117 | |
| 118 | lemma ret_pinned (f : Prices G I → ℂ) (he : ∀ y, y∉P.trace m → f y=0) (z : Prices G I) : |
| 119 | P.returnWeight C m v (P.pinned C m v f) z = f (CFC.sqrt C *ᵥ z) := by |
| 120 | unfold returnWeight pinned; dsimp only |
| 121 | by_cases hz : (CFC.sqrt C *ᵥ z) ∈ P.trace m |
| 122 | · rw [Set.indicator_of_mem (seen_inside v hz) _,smul_smul,h.reimbursed hc v hz,h.unwinds v hz,one_smul] |
| 123 | rw [faceFee,if_neg hz,zero_smul,he _ hz] |
| 124 | |
| 125 | lemma pinned_price (f : Prices G I → ℂ) (hm : Measurable (P.pinned C m v f)) (he : ∀ y, y∉P.trace m → f y=0) : |
| 126 | (Integrable (P.pinned C m v f) P.basis ↔ Integrable (fun z => f (CFC.sqrt C *ᵥ z)) (standard _)) ∧ |
| 127 | (∫ z,P.pinned C m v f z ∂P.basis) = ∫ z,f (CFC.sqrt C *ᵥ z) ∂standard _ := by |
| 128 | rw [← funext (h.ret_pinned m v C hc f he)] |
| 129 | exact h.exchange m v C hc _ hm (fun x hx => Set.indicator_of_notMem hx _) |
| 130 | end Clean |
| 131 | end YM.ProofPorts.CommonComplexProduction.Pin |