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.TableCosts |
| 2 | import YM.SectorTools.PHYSICAL_GAUSSIAN_SWITCH.Weighted |
| 3 | |
| 4 | /-! |
| 5 | # Switching finitely many columns of a window law |
| 6 | |
| 7 | Prices both the ordered mean shift and symmetric cloud. The assumption |
| 8 | on U,V's discrepancy is a small Schur price as bought after delay. |
| 9 | Can spend two ways: exact RN *moment* cost on a halo of X in the |
| 10 | geometry of the window (see LocalLpWindows), or a trace-weighted |
| 11 | price via absolute table masses. The latter depends just on card X (not |
| 12 | even on card of the halo, and retains small δ), allowing ν component |
| 13 | columns for ν marks with a sub-Gaussian source cost. Neither gives the |
| 14 | means small in g-rescaled coordinates for free. -/ |
| 15 | set_option autoImplicit false |
| 16 | noncomputable section |
| 17 | namespace YM.SectorTools.PhysicalGaussianSwitch.ColumnCosts |
| 18 | open Function Filter Matrix Lattice MeasureTheory |
| 19 | open Next.SectorChange Next.SectorChange.Gaussian Next.SectorChange.Wisps Next.SectorChange.Schur |
| 20 | open AnalyticBridge.GaussianFieldAlignment.Relative (symPart sym_of_sub sym_pours trade source) |
| 21 | open TableCosts |
| 22 | open scoped Topology BigOperators ENNReal |
| 23 | local notation "Covar" => Next.SectorChange.Gaussian.Table |
| 24 | |
| 25 | variable {I : Type} [Fintype I] [DecidableEq I] {U V : Covar I} {X H : Finset I} |
| 26 | variable {c : Side} {o : I → Site c} {s K δ p : ℝ} |
| 27 | |
| 28 | /-- U is the starting ORDERED window table (symmetrize later). Use columns |
| 29 | of V instead at X. Rank/trace costs below don't require these columns even |
| 30 | to have a halo. -/ |
| 31 | def hybrid (U V : Covar I) (X : Finset I) := U+columns X (V-U) |
| 32 | omit [Fintype I] in |
| 33 | lemma column_cov (U V : Covar I) (X : Finset I) : symPart (hybrid U V X)-symPart U = symPart (columns X (V-U)) := by |
| 34 | rw [← sym_of_sub,hybrid,add_sub_cancel_left] |
| 35 | |
| 36 | /-- Earlier data only. No quantity costing the new law or new dimensional |
| 37 | space assumed given. -/ |
| 38 | structure License (U V : Covar I) (o : I → Site c) (s K δ : ℝ) : Prop where |
| 39 | coef : Pours (V-U) o o s δ |
| 40 | pos : (symPart U).PosDef |
| 41 | hi : Pours (symPart U) o o s K |
| 42 | lo : Pours ((symPart U)⁻¹) o o s K |
| 43 | large : 1 ≤ K |
| 44 | rate_pos : 0 ≤ s |
| 45 | afford : K*δ ≤ 1/2 |
| 46 | |
| 47 | namespace License |
| 48 | variable (h : License U V o s K δ) |
| 49 | include h |
| 50 | lemma pure : Elliptic K (symPart U) := from_pours h.pos h.hi h.lo h.rate_pos h.large |
| 51 | lemma change_cost (X : Finset I) : let x:=symPart (hybrid U V X)-symPart U |
| 52 | Pours x o o s δ ∧ mass x ≤ X.card*δ := by |
| 53 | simp_rw [column_cov] |
| 54 | exact ⟨sym_pours (columns_pour _ h.coef), (mass_sym _).trans (mass_columns _ h.coef h.rate_pos)⟩ |
| 55 | |
| 56 | lemma positive (X : Finset I) : Elliptic (2*K) (symPart (hybrid U V X)) := by |
| 57 | have he (x : Vec I) := abs_le.mp (quad_schur (h.change_cost X).1 h.rate_pos x) |
| 58 | have hk := h.pure.positive; have ht := h.large |
| 59 | have hd : δ ≤ (2*K)⁻¹ := by |
| 60 | have hx := h.afford |
| 61 | field_simp |
| 62 | linarith |
| 63 | have hz : δ ≤ K := by nlinarith only [ht,h.coef.pos,h.afford] |
| 64 | have hp : K⁻¹=2*(2*K)⁻¹ := by field_simp |
| 65 | let A:=symPart U; let M:=symPart (hybrid U V X) |
| 66 | refine ⟨by linarith,symm_sym _,fun x => ?_⟩ |
| 67 | obtain ⟨h1,h2⟩ := he x |
| 68 | let q:=x ⬝ᵥ x; have hq:0≤q:=sumsq_nonneg _ |
| 69 | obtain ⟨ha,hb⟩ := h.pure.numeric x |
| 70 | change (2*K)⁻¹*q ≤ quad M _ ∧ quad M _ ≤ (2*K)*q |
| 71 | rw [quad_diff] at h1 h2 |
| 72 | change -(δ*q) ≤ quad M x-quad A x at h1; change quad M x-quad A x ≤ δ*q at h2 |
| 73 | change K⁻¹*q ≤ quad A x at ha; change quad A x ≤ K*q at hb; rw [hp] at ha |
| 74 | constructor <;> linarith only [h1,h2,ha,hb,mul_le_mul_of_nonneg_right hd hq,mul_le_mul_of_nonneg_right hz hq] |
| 75 | end License |
| 76 | |
| 77 | def mean (U : Covar I) (b : Vec I) := -U.transpose *ᵥ b |
| 78 | lemma mean_diff (U V : Covar I) (X : Finset I) (b : Vec I) : |
| 79 | mean (hybrid U V X) b - mean U b = -(columns X (V-U)).transpose *ᵥ b := by |
| 80 | unfold mean hybrid; rw [Matrix.transpose_add,neg_add,add_mulVec,add_sub_cancel_left] |
| 81 | |
| 82 | lemma mean_bound (hc : License U V o s K δ) (X : Finset I) (b : Vec I) : |
| 83 | ‖mean (hybrid U V X) b - mean U b‖ ≤ δ*‖b‖ := by |
| 84 | rw [mean_diff]; exact source hc.rate_pos (columns_pour X hc.coef) b |
| 85 | lemma mean_support {i : I} (hi : i ∉ X) (b : Vec I) : |
| 86 | (mean (hybrid U V X) b - mean U b) i=0 := by |
| 87 | rw [mean_diff]; simp [mulVec,dotProduct,columns,hi] |
| 88 | |
| 89 | /-- Reference law is the fresh hybrid, so this is the displacement |
| 90 | in Relative's coordinates. -/ |
| 91 | def delta (U V : Covar I) (X : Finset I) (g : ℝ) (b : Vec I) := g⁻¹ • (mean (hybrid U V X) b - mean U b) |
| 92 | lemma delta_cost (hc : License U V o s K δ) (X : Finset I) {g y : ℝ} (hg : 0<g) (b : Vec I) (hb : ‖b‖ ≤ y) : |
| 93 | let h:=delta U V X g b |
| 94 | (∀ i∉X,h i=0) ∧ ‖h‖ ≤ δ*y/g ∧ h ⬝ᵥ h ≤ X.card*(δ*y/g)^2 := by |
| 95 | intro h; have hd := hc.coef.pos; have hy := (norm_nonneg b).trans hb |
| 96 | have hi i (he : i ∉ X) : h i=0 := by unfold h delta; simp only [Pi.smul_apply,mean_support he,smul_zero] |
| 97 | have ht : ‖h‖ ≤ δ*y/g := by |
| 98 | unfold h delta; rw [norm_smul,Real.norm_of_nonneg (inv_pos.mpr hg).le,div_eq_mul_inv,mul_comm (δ*y)] |
| 99 | exact mul_le_mul_of_nonneg_left ((mean_bound hc X _).trans (mul_le_mul_of_nonneg_left hb hd)) (inv_pos.mpr hg).le |
| 100 | refine ⟨hi,ht,?_⟩ |
| 101 | calc |
| 102 | _ = ∑ i∈X,(h i)^2 := by |
| 103 | unfold dotProduct; simp_rw [sq]; exact (Finset.sum_subset (Finset.subset_univ X) fun i _ hx => by rw [hi i hx]; ring).symm |
| 104 | _ ≤ ∑ _i∈X,(δ*y/g)^2 := by |
| 105 | refine Finset.sum_le_sum fun i _ => ?_ |
| 106 | rw [← sq_abs]; exact pow_le_pow_left₀ (abs_nonneg _) ((norm_le_pi_norm h i).trans ht) _ |
| 107 | _ = _ := by simp |
| 108 | |
| 109 | /-- Lp cost with NO halo factor via trace. Costs in addition a ratio of |
| 110 | coupling/shift retained. The `Mp.PosDef` conclusion (needed even if |
| 111 | wishing to use just relative comparison tools) is paid too. -/ |
| 112 | def sumPrice (p K δ g y : ℝ) (n : ℕ) := Real.exp ((p+1)*Weighted.spend p (2*K) (2*K^2*(n*δ)) (K^2 * (n * (δ*y/g)^2))) |
| 113 | |
| 114 | theorem paid (hc : License U V o s K δ) (hp : 1 ≤ p) (hδ : (2*K)*(2*p*(2*K^2*δ)) ≤ 1/4) (X : Finset I) |
| 115 | {g y : ℝ} (hg : 0<g) (b : Vec I) (hb : ‖b‖ ≤ y) : |
| 116 | let h:=delta U V X g b; let A:=symPart U; let D:=symPart (hybrid U V X) |
| 117 | (mixed A D p).PosDef ∧ price A D p h ≤ sumPrice p K δ g y X.card := by |
| 118 | intro h A D |
| 119 | have he := hc.change_cost X; have ha := hc.pure |
| 120 | have hd := hc.positive X; have hk := ha.positive |
| 121 | obtain ⟨h1,h2⟩ := precision_costs hd.posDef ha.posDef hc.lo he.1 hc.rate_pos hc.afford he.2 |
| 122 | let B := A⁻¹-D⁻¹ |
| 123 | have hw : Pours B o o s (2*K^2*δ) := by dsimp only [B]; rw [← neg_sub]; exact pour_neg h1 |
| 124 | let w:=load B |
| 125 | have hv := load_nonneg B; have hr : ∀ i, w i ≤ 2*K^2*δ := row_budget hw hc.rate_pos |
| 126 | have hy : Weighted.Trace B w := Weighted.by_rows (by unfold B Matrix.IsSymm; rw [transpose_sub,(symm_pos ha.posDef.inv).eq,(symm_pos hd.posDef.inv).eq]) hv (fun i => by change w i ≤ 2*w i; have := hv i; unfold w; linarith) |
| 127 | have hW : ∑ i, w i ≤ 2*K^2*(X.card*δ) := by |
| 128 | change mass B ≤ _; dsimp only [B]; rw [← neg_sub,mass_neg]; exact h2 |
| 129 | have h3' := Weighted.weighted ha.posDef hd.posDef (show Weighted.Upper (2*K) D from hd.upper) (by positivity) hy hW hp |
| 130 | (fun i => le_trans (mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_left (hr i) (by linarith)) (by positivity)) hδ) h |
| 131 | have hl := (delta_cost hc X hg b hb).2.2 |
| 132 | have hh : (-(A⁻¹ *ᵥ h)) ⬝ᵥ (-(A⁻¹ *ᵥ h)) ≤ K^2*(X.card*(δ*y/g)^2) := by |
| 133 | rw [neg_dotProduct,dotProduct_neg,neg_neg]; exact (ha.op h).trans (mul_le_mul_of_nonneg_left hl (sq_nonneg _)) |
| 134 | refine ⟨h3'.2.1,h3'.2.2.trans (Real.exp_monotone ?_)⟩ |
| 135 | unfold Weighted.spend; gcongr |
| 136 | |
| 137 | /-- Now if the changed columns were also actually supported on H, |
| 138 | including their centers, can integrate just on that supported space |
| 139 | (Schur residual). -/ |
| 140 | def confined (U V : Covar I) (X H : Finset I) := X ⊆ H ∧ ∀ i∈X, ∀ j∉H, V j i=0 ∧ U j i=0 |
| 141 | |
| 142 | lemma on_halo (h : confined U V X H) (g : ℝ) (b : Vec I) : |
| 143 | ConfinedCovariance (Function.Embedding.subtype (· ∈ H)) (symPart U) (symPart (hybrid U V X)) (delta U V X g b) := by |
| 144 | let e:=Function.Embedding.subtype (· ∈ H) |
| 145 | have he {i} (hi : i∉ Set.range e) : i ∉ H := fun hh => hi ⟨⟨i,hh⟩,rfl⟩ |
| 146 | have ht (i j : I) (hm : i∉H ∨ j∉H) : columns X (V-U) i j=0 := by |
| 147 | unfold columns; rw [Matrix.of_apply]; split |
| 148 | next hp => obtain ⟨h1,h2⟩ := h.2 _ hp _ (hm.resolve_right (not_not.mpr (h.1 hp))); rw [Matrix.sub_apply,h1,h2]; ring |
| 149 | rfl |
| 150 | refine ⟨fun i j hq => ?_,fun i hi => ?_⟩ |
| 151 | · have hm := hq.imp he he |
| 152 | rw [← neg_sub,column_cov]; change -((1/2:ℝ)*(columns X _ i j+columns X _ j i)) = _ |
| 153 | rw [ht i j hm,ht j i hm.symm]; ring |
| 154 | have hm : i∉X:=fun h1=>he hi (h.1 h1); unfold delta |
| 155 | rw [Pi.smul_apply,mean_support hm,smul_zero] |
| 156 | |
| 157 | |
| 158 | |
| 159 | section use |
| 160 | -- normalize expectation after changing law (none of the multiplier |
| 161 | -- factors external to the normalized Gaussian are asserted to stay fixed). |
| 162 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 163 | |
| 164 | def shifted (b : Vec I) (g : ℝ) (f : Vec I → E) (U : Covar I) (z : Vec I) := f (mean U b + g • z) |
| 165 | |
| 166 | theorem normalized (hc : License U V o s K δ) (hp : 1<p) (hδ : (2*K)*(2*p*(2*K^2*δ)) ≤ 1/4) |
| 167 | (X : Finset I) {g y : ℝ} (hg : 0<g) (b : Vec I) (hb : ‖b‖ ≤ y) (f : Vec I → E) : |
| 168 | let T := hybrid U V X; let q := Real.conjExponent p |
| 169 | MemLp (shifted b g f T) (ENNReal.ofReal q) (cloud (symPart T)) → |
| 170 | Integrable (shifted b g f U) (cloud (symPart U)) ∧ |
| 171 | ‖∫ z, shifted b g f U z ∂cloud (symPart U)‖ ≤ sumPrice p K δ g y X.card ^ (1/p) * (∫ z, ‖shifted b g f T z‖ ^ q ∂cloud (symPart T))^(1/q) := by |
| 172 | intro T q hf; let d:=delta U V X g b |
| 173 | have he z : shifted b g f U (d+z)= shifted b g f T z := by |
| 174 | unfold shifted d delta; rw [smul_add,smul_smul,mul_inv_cancel₀ hg.ne', one_smul]; congr 1; unfold T; abel |
| 175 | obtain ⟨ha,ht⟩ := paid hc hp.le hδ X hg b hb |
| 176 | obtain ⟨hi,hu⟩ := trade_comparison hc.pos (hc.positive X).posDef hp ha (show MemLp (fun z => shifted b g f U (d+z)) _ _ by simp_rw [he]; exact hf) |
| 177 | simp_rw [he] at hu |
| 178 | have hy : 0 < p := zero_lt_one.trans hp |
| 179 | refine ⟨hi,hu.trans (mul_le_mul_of_nonneg_right (Real.rpow_le_rpow ?_ ht (by positivity)) |
| 180 | (Real.rpow_nonneg (integral_nonneg fun _ => Real.rpow_nonneg (norm_nonneg _) _) _))⟩ |
| 181 | unfold price; positivity |
| 182 | end use |
| 183 | end YM.SectorTools.PhysicalGaussianSwitch.ColumnCosts |