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.AnalyticBridge.ANNULUS_RATIO_INSERTIONS.Buoy |
| 2 | |
| 3 | /-! |
| 4 | # Companions on a common marginal |
| 5 | |
| 6 | Leaves chain-to-envelope estimates to the field/window |
| 7 | producer (applications also offer a version on unseparated actual ratio |
| 8 | correction entries). More generally here, endpoints may repeat and no |
| 9 | independence assertions on factors. Applicable with some new derivative |
| 10 | costs provided (NOT claiming differentiate-the-integral), proves the |
| 11 | needed quantitative consumption under the integral. |
| 12 | -/ |
| 13 | set_option autoImplicit false |
| 14 | set_option linter.unusedSectionVars false |
| 15 | noncomputable section |
| 16 | namespace YM.AnalyticBridge.AnnulusRatioInsertions.Prism.Arc |
| 17 | open Function Filter ProbabilityTheory MeasureTheory Matrix Precision |
| 18 | open Next.SectorChange Next.SectorChange.Gaussian Next.SectorChange.Schur |
| 19 | open scoped Topology BigOperators Classical ENNReal |
| 20 | variable {I : Type} [Fintype I] [DecidableEq I] |
| 21 | {Ξ : Type*} {G : Gauge} {Ω : Type*} [MeasurableSpace Ω] |
| 22 | (e : Ξ → I × I) |
| 23 | |
| 24 | def meets (i : Ξ) (x : I) := (e i).1=x ∨ (e i).2=x |
| 25 | |
| 26 | def hits (Y : Finset Ξ) (d : Ξ → ℝ) (x : I) := ∑ i∈Y, if meets e i x then d i else 0 |
| 27 | |
| 28 | /-- Positions are relative to the genuine covariance. -/ |
| 29 | def mast (i : Ξ) (z : Prices G I) := 1+load z (e i).1+load z (e i).2 |
| 30 | lemma mast_one (i : Ξ) (z : Prices G I) : 1 ≤ mast e i z := by |
| 31 | have hh := load_nonneg z (e i).1 |
| 32 | have hl := load_nonneg z (e i).2 |
| 33 | unfold mast; linarith |
| 34 | |
| 35 | /-- Buy this hits cap on exponential score tariffs per endpoint. |
| 36 | Cost-per-letter also depends on this in return (not height). -/ |
| 37 | def pinch (L : ℝ) := leisure L / 6 |
| 38 | lemma pinch_pos {L : ℝ} (hL : 0<L) : 0 < pinch L := by unfold pinch; have := leisure_pos hL; linarith |
| 39 | |
| 40 | def tail (L ρ : ℝ) (m : ℕ) := Real.exp (-(pinch L)*(m:ℝ)*ρ^2) |
| 41 | lemma tail_pos (L ρ : ℝ) (m : ℕ) : 0 < tail L ρ m := Real.exp_pos _ |
| 42 | |
| 43 | variable (Y : Finset Ξ) |
| 44 | |
| 45 | def ends : Finset I := Y.biUnion (fun i=>{(e i).1,(e i).2}) |
| 46 | |
| 47 | lemma wakes (i : Ξ) (h : i∈Y) (x : I) (ht : meets e i x) : x∈ends e Y := Finset.mem_biUnion.mpr ⟨i,h, by simpa [meets] using (Or.imp Eq.symm Eq.symm ht)⟩ -- meets unfolds? |
| 48 | lemma ends_price : (ends e Y).card ≤ Y.card*2 := |
| 49 | (Finset.card_biUnion_le).trans (by simpa using Finset.sum_le_sum (s:=Y) (f:=fun i=> ({(e i).1,(e i).2}:Finset I).card) (g:=fun _=> (2:ℕ)) (fun i _=>by |
| 50 | by_cases h : (e i).1=(e i).2 <;> simp [h])) |
| 51 | |
| 52 | variable (w d : Ξ→ℝ) (r : Ξ → Ω × Prices G I → ℝ) |
| 53 | /-- envelope form can be used as a sufficient test (sets |
| 54 | `w_i=x_gamma`, `d_i=2 x_gamma` for order 1 L1; include 4 multiplier |
| 55 | on tariff & pow on w before charging L4). Even if z positions are |
| 56 | coincident on every label, requires NO independence on that overlap. |
| 57 | Arbitrary other conditional variables through Ω. -/ |
| 58 | structure Covered (L : ℝ) : Prop where |
| 59 | pos_w i : i∈Y → 0≤w i |
| 60 | pos_d i : i∈Y → 0≤d i |
| 61 | spent x : hits e Y d x ≤ pinch L |
| 62 | honest i : i∈Y → Measurable (r i) |
| 63 | quote i (hi : i∈Y) (y) : ‖r i y‖ ≤ w i * Real.exp (d i*mast e i y.2) |
| 64 | |
| 65 | variable {Y r w d} {L : ℝ} |
| 66 | |
| 67 | lemma Covered.rate {e : Ξ → I × I} (h : Covered e Y w d r L) (i : Ξ) (hi : i∈Y) : d i ≤ pinch L := by |
| 68 | let x := (e i).1 |
| 69 | apply le_trans ?_ (h.spent x) |
| 70 | unfold hits |
| 71 | let v j : ℝ := if meets e j x then d j else 0 |
| 72 | have hv j (hj:j∈Y) : 0 ≤ v j := by unfold v; split; exact h.pos_d j hj; exact le_rfl |
| 73 | calc |
| 74 | d i = v i := by unfold v; rw [if_pos (show meets _ _ _ from Or.inl rfl)] |
| 75 | _ ≤ ∑ j∈Y,v j := Finset.single_le_sum hv hi |
| 76 | |
| 77 | lemma two_power (i : Ξ) {a : ℝ} (ha : 0≤a) (z : Prices G I) : |
| 78 | a*(load z (e i).1+load z (e i).2) ≤ |
| 79 | 2 * ∑ x, (if meets e i x then a else 0)*load z x := by |
| 80 | let f x : ℝ := (if meets e i x then a else 0)*load z x |
| 81 | have hf x : 0 ≤ f x := mul_nonneg (show 0≤(if meets e i x then a else 0) from by split; exact ha; rfl) (load_nonneg ..) |
| 82 | have ht x (hx : meets e i x) : a*load z x ≤ ∑ j,f j := (le_of_eq (by simp [f,hx])).trans (Finset.single_le_sum (f:=f) (fun j _=> hf j) (Finset.mem_univ x)) |
| 83 | have hl := ht _ (show meets e i _ from Or.inl (Eq.refl (e i).1)) |
| 84 | have hr := ht _ (show meets e i _ from Or.inr (Eq.refl (e i).2)) |
| 85 | change _≤2*∑ j,f j; linarith |
| 86 | |
| 87 | lemma Covered.strike {e : Ξ → I × I} (h : Covered e Y w d r L) (z : Prices G I) : |
| 88 | (∑ i∈Y,d i * mast e i z) ≤ (Y.card:ℝ)* pinch L + 2*pinch L * enrolled (ends e Y) z := by |
| 89 | let f i x : ℝ := (if meets e i x then d i else 0)*load z x |
| 90 | let u i := pinch L+ 2*∑ x,f i x |
| 91 | have hp i (hi : i∈Y) : d i * mast e i z ≤ u i := by |
| 92 | have hz := h.rate i hi |
| 93 | have hv := two_power e i (h.pos_d i hi) z |
| 94 | unfold mast u; change d i*_ ≤ pinch L+2*(∑ x, _); unfold f; linarith |
| 95 | apply le_trans (Finset.sum_le_sum hp) |
| 96 | unfold u |
| 97 | rw [Finset.sum_add_distrib,← Finset.mul_sum,Finset.sum_comm,Finset.sum_const,nsmul_eq_mul] |
| 98 | have hs x : ∑ i∈Y,f i x = hits e Y d x * load z x := by unfold f hits; rw [Finset.sum_mul] |
| 99 | simp_rw [hs] |
| 100 | rw [add_le_add_iff_left,mul_assoc 2]; gcongr 2 * ?_ |
| 101 | calc |
| 102 | (∑ x:I, hits e Y d x * load z x) = ∑ x∈ends e Y, hits e Y d x * load z x := (Finset.sum_subset (Finset.subset_univ _) fun i _ hi => by |
| 103 | rw [hits,Finset.sum_eq_zero (fun j hj=>if_neg (fun h=>hi (wakes e _ _ hj i h))),zero_mul]).symm |
| 104 | _ ≤ _ := by unfold enrolled; rw [Finset.mul_sum]; exact Finset.sum_le_sum (fun i hi=>mul_le_mul_of_nonneg_right (h.spent i) (load_nonneg _ _)) |
| 105 | |
| 106 | def wires (Y : Finset Ξ) (r : Ξ → Ω × Prices G I → ℝ) (y : Ω × Prices G I) := ∏ i∈Y,r i y |
| 107 | |
| 108 | lemma Covered.net {e : Ξ → I × I} (h : Covered e Y w d r L) (y) : |
| 109 | ‖wires Y r y‖ ≤ (∏ i∈Y,w i)*Real.exp ((Y.card:ℝ)*pinch L+2*pinch L * enrolled (ends e Y) y.2) := by |
| 110 | let f i := w i * Real.exp (d i*mast e i y.2) |
| 111 | have he := h.strike y.2 |
| 112 | unfold wires; rw [norm_prod] |
| 113 | apply le_trans (Finset.prod_le_prod (s:=Y) (fun i _=>norm_nonneg _) (fun i hi=>h.quote i hi y)) |
| 114 | rw [Finset.prod_mul_distrib,← Real.exp_sum] |
| 115 | exact mul_le_mul_of_nonneg_left (Real.exp_le_exp.mpr he) (Finset.prod_nonneg (fun i hi=>h.pos_w i hi)) |
| 116 | |
| 117 | lemma Covered.wise {e : Ξ → I × I} (h : Covered e Y w d r L) : Measurable (wires Y r) := Finset.measurable_fun_prod _ (fun i hi=>h.honest i hi) |
| 118 | |
| 119 | variable (μ : Measure Ω) [IsProbabilityMeasure μ] |
| 120 | |
| 121 | def scores (J : Finset I) (k : ℕ) (z : Prices G I) := (1+enrolled J z)^k |
| 122 | lemma scores_nn (J : Finset I) (k : ℕ) (z : Prices G I) : 0 ≤ scores J k z := pow_nonneg (by linarith only [enrolled_nn J z]) _ |
| 123 | @[fun_prop] lemma measurable_scores (J : Finset I) (k : ℕ) : Measurable (α:=Prices G I) (scores J k) := by unfold scores; fun_prop |
| 124 | |
| 125 | def dusk (G : Gauge) (q : ℕ) (k : ℕ) : ℝ := (1+(q*Fintype.card G.ColorIndex:ℕ))^(k+1) |
| 126 | lemma dusk_one (G : Gauge) (k q : ℕ) : 1 ≤ dusk G q k := one_le_pow₀ (by have hh : 0≤((q*Fintype.card G.ColorIndex:ℕ):ℝ) := Nat.cast_nonneg _; linarith) |
| 127 | |
| 128 | lemma score_power (L : ℝ) (hL : 0<L) (k : ℕ) : |
| 129 | ∃ D : ℝ, 0<D ∧ ∀ {I : Type} [Fintype I] [DecidableEq I] (J : Finset I) {C : Gaussian.Table (I × G.ColorIndex)} {η}, |
| 130 | C.PosSemidef → Numeric C η L → Integrable (scores J k) (cloud C) ∧ |
| 131 | (∫ z,scores J k z ∂cloud C) ≤ D*dusk G J.card k := by |
| 132 | obtain ⟨D,hD,H⟩ := many L hL k; refine ⟨D,hD,?_⟩ |
| 133 | intro I hI _ J C η hC h |
| 134 | let e : J × G.ColorIndex → I × G.ColorIndex := fun i => (i.1,i.2) |
| 135 | have he : Function.Injective e := fun i j h' => Prod.ext (Subtype.ext (congr_arg Prod.fst h')) (congr_arg (fun t : I × G.ColorIndex => t.2) h') |
| 136 | let A := C.submatrix e e |
| 137 | have hA : Numeric A η L := nominated e he h |
| 138 | let g (z:Prices G J):=(1+gaugeMark z)^k |
| 139 | obtain ⟨ht,hb⟩ := H (hC.submatrix e) hA |
| 140 | have hM (z : Prices G I) : enrolled J z = gaugeMark (pocket e z) := by |
| 141 | rw [gaugeMark,price_square (ι:=J)] |
| 142 | unfold enrolled load |
| 143 | rw [Finset.sum_subtype J (show ∀ i, i∈J ↔ i∈J from fun _=>Iff.rfl)]; rfl |
| 144 | obtain ⟨hz,hf⟩ := consumes (pocket_eq e hC) g (by unfold g; fun_prop) |
| 145 | rw [dusk,← Fintype.card_coe J,← Fintype.card_prod (↥J) G.ColorIndex] |
| 146 | simp_rw [show scores J k (G:=G)=g ∘ pocket e from by funext z; unfold scores g; rw [hM]; rfl] |
| 147 | exact ⟨hz.mpr ht,hf.trans_le hb⟩ |
| 148 | |
| 149 | lemma balanced {U P : Finset I} {C : Gaussian.Table (I × G.ColorIndex)} {η : ℝ} {k} (hL : 0<L) |
| 150 | (h : C.PosSemidef) (hC : Numeric C η L) (D : ℝ) (hD : 0<D) |
| 151 | (hk : Integrable (scores P (2*k)) (cloud C)) (hm : (∫ z,scores P (2*k) z ∂cloud C) ≤ D * dusk G P.card (2*k)) : |
| 152 | let t:= 3*pinch L |
| 153 | let f z := scores P k z*levy U t z |
| 154 | Integrable f (cloud C) ∧ (∫ z,f z ∂cloud C) ≤ (1+D)*dusk G P.card (2*k)*tuck G^U.card := by |
| 155 | intro t f |
| 156 | have ht : 2*t = leisure L := by unfold t pinch; ring |
| 157 | have hx : t ≥ 0 := by unfold t; have := pinch_pos hL; positivity |
| 158 | obtain ⟨hi,hb⟩ := held_mgf h hC hL (show 0≤2*t by linarith) ht.le U |
| 159 | let g (z : Prices G I) := scores P (2*k) z + levy U (2*t) z |
| 160 | have hp z : ‖f z‖ ≤ g z := by |
| 161 | change ‖scores P k z*levy U t z‖ ≤ _ |
| 162 | rw [Real.norm_of_nonneg (mul_nonneg (scores_nn ..) (levy_pos ..).le)] |
| 163 | have hz := sq_nonneg (scores P k z-levy U t z) |
| 164 | have hf : scores P k z (G:=G)^2 = scores P (2*k) z := by unfold scores; rw [← pow_mul,Nat.mul_comm k 2] |
| 165 | have he : levy U t z (G:=G)^2 = levy U (2*t) z := by unfold levy; rw [sq,← Real.exp_add]; congr 1; ring |
| 166 | unfold g; nlinarith only [hz,mul_nonneg (scores_nn P k z) (levy_pos U t z).le,hf,he] |
| 167 | have hg : Integrable g (cloud C) := hk.add hi |
| 168 | have hf : Integrable f (cloud C) := hg.mono' (by unfold f; fun_prop) (ae_of_all _ hp) |
| 169 | refine ⟨hf,(integral_mono hf hg (fun i=>(le_abs_self _).trans (hp i))).trans ?_⟩ |
| 170 | unfold g; rw [integral_add hk hi]; apply le_trans (add_le_add hm hb) |
| 171 | set p := dusk G P.card (2*k); set q:ℝ:= tuck G^U.card |
| 172 | have ht : 1≤p := dusk_one .. |
| 173 | have hu : 1≤q := one_le_pow₀ (tuck_one _) |
| 174 | nlinarith [mul_le_mul_of_nonneg_left ht (show 0 ≤ q by linarith),mul_le_mul_of_nonneg_left hu (show 0≤D*p by positivity)] |
| 175 | |
| 176 | /-- Even without turning rarity/ratio/scores over to integration over |
| 177 | components, terms with these explicit tests get payment on the true sector |
| 178 | law. Score coordinates P can be arbitrarily larger than the endpoints |
| 179 | (e.g. unselected derivative receipts). H bill could also be compulsory |
| 180 | price/companions already legitimately incurred; combine at point evaluation. |
| 181 | Zero-test availability of all distinct triggers required EVEN after striking |
| 182 | the term. C is not inferred from a matrix of another law or assigned per |
| 183 | factor. All constants common for same L and fixed k. |
| 184 | |
| 185 | `w i` may include old-cover or path-polynomial charges and small E parent |
| 186 | coefficient. Endpoint-less optionals can be included with arbitrary pair |
| 187 | and d=0 (or if type empty, beforehand in H). |
| 188 | -/ |
| 189 | theorem same_law {G : Gauge} (L : ℝ) (hL : 0<L) (k : ℕ) : ∃ D : ℝ, 1≤D ∧ |
| 190 | ∀ {I : Type} [Fintype I] [DecidableEq I] {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω) [IsProbabilityMeasure μ] |
| 191 | {C : Gaussian.Table (I × G.ColorIndex)} {η : ℝ}, C.PosSemidef → Numeric C η L → |
| 192 | ∀ {Ξ : Type*} {Y : Finset Ξ} {e : Ξ → I × I} (P J : Finset I) {ρ H : ℝ} {w d : Ξ→ℝ} {r : Ξ→Ω × Prices G I→ℝ}, |
| 193 | Covered e Y w d r L → 0≤ρ → 0≤H → |
| 194 | ∀ v : Ω × Prices G I → ℝ, Measurable v → |
| 195 | (∀ y, ‖v y‖ ≤ H*scores P k y.2) → (∀ y, v y≠0 → y.2∈triggered J ρ) → |
| 196 | let U := μ.prod (cloud C) |
| 197 | let f y := v y*wires Y r y |
| 198 | Integrable f U ∧ |
| 199 | (∫ y,‖f y‖ ∂U) ≤ H*D*dusk G P.card (2*k)*(tail L ρ J.card*tuck G^J.card) * |
| 200 | ∏ i∈Y, (Real.exp (pinch L)*tuck G^2*w i) := by |
| 201 | obtain ⟨D,hD,H⟩ := score_power (G:=G) L hL (2*k) |
| 202 | refine ⟨1+D,by linarith,?_⟩ |
| 203 | intro I hI _ Ω hΩ μ hμ C η hC hx Ξ Y e P J ρ H0 w d r h hρ hH v hv hb he U0 f |
| 204 | let X:=ends e Y; let U:=J∪X |
| 205 | have hm {z : Prices G I} (Y : Finset I) (h : Y ⊆ U) : enrolled Y z ≤ enrolled U z := |
| 206 | Finset.sum_le_sum_of_subset_of_nonneg h (fun _ _ _=>load_nonneg ..) |
| 207 | let t := pinch L |
| 208 | have ht : 0≤t := (pinch_pos hL).le |
| 209 | let p := ∏ i∈Y,w i |
| 210 | have hp : 0 ≤ p := Finset.prod_nonneg h.pos_w |
| 211 | let R := tail L ρ J.card |
| 212 | have hR : 0<R := tail_pos .. |
| 213 | let M := H0*R*p*(Real.exp ((Y.card:ℝ)*t)) |
| 214 | let g (z : Prices G I) := scores P k z*levy U (3*t) z |
| 215 | have hg y : ‖f y‖ ≤ M*g y.2 := by |
| 216 | by_cases hz : v y=0 |
| 217 | · change ‖v y*_‖ ≤ _; rw [hz,zero_mul,norm_zero]; unfold M g |
| 218 | have h1 := scores_nn P k y.2; have h2 := levy_pos U (3*t) y.2; positivity |
| 219 | have hN : R*levy J t y.2 ≥ 1 := (le_of_eq (show 1=buzzer J ρ y.2 from (Set.indicator_of_mem (he y hz) (fun _=> (1:ℝ))).symm)).trans (buzzing J ht hρ y.2) |
| 220 | have hs:=h.net y |
| 221 | have hE : levy J t y.2 * Real.exp ((Y.card:ℝ)*pinch L + 2*pinch L * enrolled X y.2) ≤ |
| 222 | Real.exp ((Y.card:ℝ)*t) * levy U (3*t) y.2 := by |
| 223 | unfold levy; rw [← Real.exp_add,← Real.exp_add]; apply Real.exp_le_exp.mpr |
| 224 | change _+((Y.card:ℝ)*t+2*t*_)≤ _ |
| 225 | linarith only [mul_le_mul_of_nonneg_left (hm (z:=y.2) J (Finset.subset_union_left)) ht, |
| 226 | mul_le_mul_of_nonneg_left (hm (z:=y.2) X (Finset.subset_union_right)) ht] |
| 227 | have h1 := scores_nn P k y.2 |
| 228 | unfold f; rw [norm_mul] |
| 229 | apply le_trans (mul_le_mul (le_trans (hb y) (le_mul_of_one_le_right (mul_nonneg hH h1) hN)) hs (norm_nonneg _) (by positivity : 0≤H0*_*_)) |
| 230 | change H0*scores _ _ _*(_*_) * (p*Real.exp _) ≤ _ |
| 231 | convert_to H0*scores P k y.2 * R * p * |
| 232 | (levy J t y.2 * Real.exp ((Y.card:ℝ)*pinch L + 2*pinch L * enrolled X y.2)) ≤ |
| 233 | H0*scores P k y.2 * R * p * (Real.exp ((Y.card:ℝ)*t)*levy U (3*t) y.2) using 1 |
| 234 | · ring |
| 235 | · unfold M g t; ring |
| 236 | exact mul_le_mul_of_nonneg_left hE (by positivity) |
| 237 | obtain ⟨hf,hm⟩ := balanced hL hC hx D hD (H P hC hx).1 (H P hC hx).2 (U:=U) (k:=k) -- e binder? balanced included e erroneously? |
| 238 | obtain ⟨h1,h2⟩ := consumes (measurePreserving_snd (μ:=μ) (ν:=cloud C)) g (by unfold g; fun_prop) |
| 239 | have h0 : Integrable (fun y : Ω × Prices G I=>M*g y.2) U0 := (h1.mpr hf).const_mul _ |
| 240 | have hi : Integrable f U0 := h0.mono' (hv.mul h.wise).aestronglyMeasurable (ae_of_all _ hg) |
| 241 | refine ⟨hi,(integral_mono hi.norm h0 hg).trans ?_⟩ |
| 242 | rw [integral_const_mul,h2] |
| 243 | have hM : 0 ≤ M := by unfold M; positivity |
| 244 | have hU : tuck G^U.card ≤ tuck G^(J.card+Y.card*2) := pow_le_pow_right₀ (tuck_one _) |
| 245 | (Finset.card_union_le _ _|>.trans (Nat.add_le_add_left (ends_price e Y) _)) |
| 246 | set a := (1+D)*dusk G P.card (2*k) |
| 247 | have ha : 0 ≤ a := by unfold a; have := dusk_one G (2*k) P.card; positivity |
| 248 | refine le_trans (mul_le_mul_of_nonneg_left (hm.trans (mul_le_mul_of_nonneg_left hU ha)) hM) ?_ |
| 249 | unfold M p |
| 250 | rw [Finset.prod_mul_distrib,Finset.prod_const,pow_add,pow_mul,Real.exp_nat_mul] |
| 251 | dsimp only [t,R] |
| 252 | rw [mul_pow, ← pow_mul, ← pow_mul, Nat.mul_comm Y.card]; unfold a |
| 253 | exact le_of_eq (by ring) |
| 254 | end YM.AnalyticBridge.AnnulusRatioInsertions.Prism.Arc |