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.MultipleContact.Matching.Arena |
| 2 | import YM.MultipleContact.Matching.Economist |
| 3 | import YM.MergeProof.West.Ozone |
| 4 | |
| 5 | /-! Euclidean estimates about the anchor with external cell positions kept compact and safe. -/ |
| 6 | |
| 7 | set_option autoImplicit false |
| 8 | set_option quotPrecheck false |
| 9 | noncomputable section |
| 10 | namespace YM.MultipleContact.Local |
| 11 | open Filter Function MeasureTheory Analysis Extraction Table Ward MergeProof Acme Ribbons Around Cells Wilson Lattice Climb Set |
| 12 | open Matching |
| 13 | open scoped Topology BigOperators Classical ContDiff |
| 14 | open YM.Next.UVStress |
| 15 | variable {G:Gauge}{C:Family G}{S:Table C.book}{F:Extraction.Order}{W:DiffPlan S} {t d D J:ℕ} (hG:G.Simple) |
| 16 | variable {ι:Type*}[Fintype ι]{n:ι→ℕ} |
| 17 | variable (K:Set ((i:ι)→Points (n i)))(hK:IsCompact K)(hsafe:∀x∈K,∀i, Points.cons 0 (x i) ∈ conf (n i+1)) |
| 18 | variable (hT:Acme.Aroma C)(hh:Matching C) |
| 19 | local notation "R'"=>fun (m:ℕ)=> fuga C.path.levels (m+1) |
| 20 | local notation "Yb"=>fun (m:ℕ)=> topZone C.path.levels (C.S.block m) (m+1) |
| 21 | -- when weighted sum of outputs cancels for every field |
| 22 | variable (q:∀i:ι,Fin (n i)→ C.book.Token) |
| 23 | def silent (S:Table C.book)(D:ℕ)(z:∀i,Points (n i))(c:ι→ℂ):Prop:=∀ v:S.Field D,(∑ i:ι,c i * once (q i) ⟨D,v⟩ (z i))=0 |
| 24 | |
| 25 | def predicate (q:∀i:ι,Fin (n i)→ C.book.Token)(V B:S.Tag)(P:((i:ι)→Points (n i))→(ι→ℂ)→Prop)(w:ℝ):Prop:= |
| 26 | ∃ r:ℝ,0<r∧∀z∈K,∀c:ι→ℂ,(∑ i:ι,‖c i‖)≤1→ P z c → ∀y:E4,0<‖y‖→‖y‖ < r → ‖combo q V B c z y‖≤‖y‖^w |
| 27 | variable (V B:S.Tag) |
| 28 | variable (hc:S.Hierarchy)(hp:F.PointLimits C S) |
| 29 | variable (hq:Cells.CellHyp C F)(hC:C.Makes)(hm:W.Derivatives S) |
| 30 | variable (ℓ:∀i,Fin (n i)→ Cover){r:ℝ}(hL: ∀i,Injective (Fin.cons (α:=fun _=>Cover) 0 (ℓ i))) |
| 31 | (hK':∀z∈K,∀ i,Locations C J r (ℓ i) (z i))(hr:0<r) |
| 32 | set_option maxHeartbeats 600000 |
| 33 | include hc hp hC hq hm hK hsafe hK' hL hr hT hh hG |
| 34 | local notation "Ne₀"=> Note C.S |
| 35 | |
| 36 | def outputCost (C:Family G)(S:Table C.book)(m J k D:ℕ)(A E:ℝ) := ‖LinearMap.toContinuousLinearMap (S.project D)‖*(lista C D m*(2*E)) |
| 37 | def error (C:Family G)(m J k:ℕ)(A:ℝ):= A*((2:ℝ)*(Accent.stakes C J k / pitts C m)) |
| 38 | lemma pack (D:ℕ) (w:ℝ)(hw:0<w): ∃ (A s β:ℝ)(j:ℕ→ℕ)(k:ℕ) (E:ℕ→ℝ), 1<s∧0<β∧Ne₀ E β∧0<A ∧0<s∧β<w∧ Tendsto j atTop atTop∧ Tendsto (fun m:ℕ=> C.S.scale (j m)/C.S.scale m) atTop (𝓝 s)∧ ∀ᶠ m in atTop,∀ r, (R') m≤ r→ r≤(Yb) m→ ∀ z∈K, ∀ y∈arena r, taper (C.S.a (j m)) y=Set.univ → ∃v:S.Field D,bonded q V B y ((R') m ^ ((B.1:ℝ)+V.1-D)) D z v (outputCost C S m J k D A (E m)) (error C m J k A):=by |
| 39 | let k0:= (Stock.Tabs.mayOpen C.path.levels 1 hT.opens J).choose; let k:= max k0 (C.ref D) |
| 40 | let qV:=S.representative V.1 V.2; let qB:=S.representative B.1 B.2 |
| 41 | let w':= max ((C.labels.level V.1).coeffSize qV) ((C.labels.level B.1).coeffSize qB) + 1 |
| 42 | let hh' := (w/2) |
| 43 | obtain ⟨t,j,H⟩:= hh.fees' B.1 V.1 D J k hh' (half_pos hw) (Stock.Tabs.open_later _ _ hT.opens ((Stock.Tabs.mayOpen C.path.levels 1 hT.opens J).choose_spec) (le_max_left ..) zero_le_one) (le_max_right ..) w' (show 0<w' from by have hv:= Finset.sum_nonneg (fun i (_ : i ∈ (Finset.univ:Finset (C.labels.level V.1).Index)) => norm_nonneg (qV i)); dsimp only [w']; change (0:ℝ)≤ (C.labels.level V.1).coeffSize qV at hv; linarith only [le_max_left ((C.labels.level V.1).coeffSize qV) ((C.labels.level B.1).coeffSize qB),hv]) |
| 44 | obtain ⟨hw',ht,hβ,hβ',hγ,hj,hJ,E,he,hf⟩:=H |
| 45 | let h := (B.fst:ℝ)+V.fst-D |
| 46 | obtain ⟨A,hA,hQ⟩:=comparableGrid (J:=J) (t:=V.1) (d:=B.1) (m:=0) q ℓ hc hp hq hC hL hr |
| 47 | have hV:V=(⟨V.1,S.project _ qV⟩:S.Tag):=(congr_arg (fun x:S.Field V.1=>Sigma.mk V.1 x) (S.rep _ V.2)).symm |
| 48 | have hB:B=(⟨B.1,S.project _ qB⟩:S.Tag):=(congr_arg (fun x:S.Field B.1=>Sigma.mk B.1 x) (S.rep _ B.2)).symm |
| 49 | let β:= -((B.1:ℝ)+V.1+8)*(1-t) |
| 50 | refine ⟨A,t,β,j,k,E,ht,hβ,he.swapP (by ring),hA,by linarith,by change β≤w/2 at hγ; linarith,hj,hJ,?_⟩ |
| 51 | filter_upwards [within_reach K hK hsafe hT.notes, hf qB qV ((le_max_right ..).trans (le_add_of_nonneg_right zero_le_one)) ((le_max_left ..).trans (le_add_of_nonneg_right zero_le_one)) F] with m hf hw r hr₁ hr₂ z z0 y hy htp |
| 52 | obtain ⟨c,hc,hN⟩:= read_grid (C:=C) htp |
| 53 | rw [← hc] at hN hy ⊢; rw [hV,hB] -- leaves V.1 changed definally |
| 54 | exact hQ qV qB m (j m) D h _ _ hw c (le_trans (by gcongr) hy.1.le) (le_trans hy.2.le (by gcongr)) z (hK' _ z0) (fun i=> slide_conf C.S _ (hf r hr₁ hr₂ z z0 _ hy i)) hN |
| 55 | |
| 56 | omit hc hp hC hq hm hK hsafe hK' hL hr hT hh hG in |
| 57 | lemma errorNote (C:Family G)(J k:ℕ)(A:ℝ)(ha:0<A):Note C.S (fun m=>error C m J k A) (-(1/32)):=by |
| 58 | have he(i):error C i J k A=A*(2* Accent.stakes C J k)/pitts C i:=by unfold error; ring |
| 59 | rw [funext he] |
| 60 | exact ((Note.notes C.S _ (mul_pos ha (mul_pos zero_lt_two (Real.exp_pos _)))).splits (Note.bell_exp C.S ((1:ℝ)/32))).swapP (by ring) |
| 61 | |
| 62 | set_option linter.unusedVariables false |
| 63 | lemma signedNear (D:ℕ):predicate K q V B (silent q S D) (-(B.1:ℝ)-V.1+D+1/64) :=by |
| 64 | obtain ⟨A,s,β,j,k,E,hs,hβ,hE,hA,hs',_,hj,hJ',H⟩:= pack hG K hK hsafe hT hh q V B hc hp hq hC hm ℓ hL hK' hr D 1 one_pos |
| 65 | refine (Eq.mp ?_ (priced (h:=(B.1:ℝ)+V.1-D) K hK hsafe hT.notes q V B hc hp hq hC hm (errorNote C J k A hA) hs hj hJ' (silent q S D) hG ?_ (1/64) (by norm_num))) |
| 66 | · apply congr_arg (predicate K q V B (silent q S D)); ring |
| 67 | filter_upwards [H] with m hv r hr hr' z hz c hc hcancel y hy ht |
| 68 | obtain ⟨v,h₀,hv⟩:= hv r hr hr' z hz y hy ht |
| 69 | have he:(R') m≤r:=hr |
| 70 | let w:=(R') m ^ ((B.1:ℝ)+V.1-D) |
| 71 | change ‖w • (∑ i:ι, c i *twice _ _ _ _ _)‖ ≤ error _ _ _ _ _ |
| 72 | rw [Finset.smul_sum]; change ‖∑ i,↑w * (c i*twice _ V B _ _)‖ ≤ _ |
| 73 | |
| 74 | have h':(∑ i:ι,↑w*(c i * twice (q i) V B y (z i)))=∑ i,c i*(↑w*twice (q i) V B y (z i)-once (q i) (⟨D,v⟩:S.Tag) (z i)):=by simp_rw [mul_sub,Finset.sum_sub_distrib,(show (∑ i,c i*once (q i) ⟨D,v⟩ (z i))=0 from hcancel v),sub_zero]; exact Finset.sum_congr rfl (fun i _=>by ring) |
| 75 | rw [h']; let p:=error C m J k A; have hp:0 < p:= errorNote C J k A hA|>.pos m |
| 76 | apply (norm_sum_le ..).trans ?_ |
| 77 | calc _ ≤ ∑ i:ι,‖c i‖*p:= Finset.sum_le_sum fun i _=> by rw [norm_mul];exact mul_le_mul_of_nonneg_left (hv i) (norm_nonneg _) |
| 78 | _ ≤ p:=by rw [← Finset.sum_mul];exact mul_le_of_le_one_left hp.le hc |
| 79 | |
| 80 | |
| 81 | |
| 82 | -- normal estimate has any power loss, still signed separately by positive fixed exponent. |
| 83 | lemma unconditionedNear (ε:ℝ)(hε:0<ε):predicate K q V B (fun _ _=>True) (-(B.1:ℝ)-V.1-ε):=by |
| 84 | obtain ⟨A,s,β,j,k,E,hs,hβ,hE,hA,hs',hβ',hj,hJ',H⟩:= pack hG K hK hsafe hT hh q V B hc hp hq hC hm ℓ hL hK' hr 0 ε hε |
| 85 | let f (i:ι)(z:Points (n i)):= Work.A01.frontRead (S.classTokens∘q i) (Points.cons 0 z) 0 |
| 86 | have h0(i z v):once (q i) (⟨0,v⟩:S.Tag) z=f i z v:=(Work.A01.front_eval ..).symm |
| 87 | obtain ⟨C₀,hC₀,hQ⟩:= normProd_bound K hK hsafe f fun i z hZ v=>by simpa only [← h0] using! once_tends (q i) _ hZ v hc |
| 88 | let cost m:= E m + C₀*((‖LinearMap.toContinuousLinearMap (S.project 0)‖+1)*(lista C 0 m*(2*E m))) |
| 89 | have hc0: Note C.S cost β := by |
| 90 | have ht: Ne₀ (lista C 0) 0 :=by unfold lista; simp only [pow_zero,mul_one]; exact (futon C).scales C.path.levels.fits.mesh |
| 91 | apply hE.extra ((((Note.notes C.S C₀ hC₀).mills ((Note.notes C.S (‖LinearMap.toContinuousLinearMap (S.project 0)‖+1) (by have h := norm_nonneg (LinearMap.toContinuousLinearMap (S.project 0)); positivity)).mills (ht.mills ((Note.notes C.S (2:ℝ) zero_lt_two).mills hE)))).swapP (by ring))) |
| 92 | refine Eq.mp ?_ (priced (h:=(B.1:ℝ)+V.1) K hK hsafe hT.notes q V B hc hp hq hC hm hc0 hs hj hJ' (fun _ _=>True) hG ?_ (-ε) (by linarith only [hβ'])) |
| 93 | · apply congr_arg (predicate K q V B (fun _ _=>True)); ring |
| 94 | filter_upwards [(errorNote C J k A hA).outweigh hE (by linarith),H] with m he h r hr hr' z hz c hc' _ y hy htp |
| 95 | obtain ⟨v,hv,h1⟩:= h r hr hr' z hz y hy htp |
| 96 | have hL := hc0.pos m |
| 97 | have ha(i): ‖((R') m) ^ ((B.1:ℝ)+V.1) • twice (q i) V B y (z i)‖ ≤ cost m:= by |
| 98 | set w := ((R') m)^((B.1:ℝ)+V.1) |
| 99 | have he₁:= (h1 i).trans he |
| 100 | simp only [Nat.cast_zero,sub_zero] at he₁ |
| 101 | calc _ ≤ ‖w • twice (q i) V B y (z i) - once (q i) ⟨0,v⟩ (z i)‖+‖once (q i) ⟨0,v⟩ (z i)‖ :=by rw [norm_sub_rev _ (once _ _ _), add_comm]; exact norm_le_insert (once _ _ _) _ |
| 102 | _ ≤ _:= add_le_add he₁ ((by |
| 103 | rw [h0]; refine (hQ z hz i v).trans (mul_le_mul_of_nonneg_left (hv.trans (mul_le_mul_of_nonneg_right (show ‖LinearMap.toContinuousLinearMap (S.project 0)‖ ≤ ‖LinearMap.toContinuousLinearMap (S.project 0)‖+1 from by linarith only) (by have he:=hc0.pos m; have he':=Finset.prod_nonneg (s:=Finset.range (m+1)) (f:=fun i=> (C.path.levels.params (i+1)).columns * (↑((C.S.block i).val))^0) (fun k _=>mul_nonneg (zero_le_one.trans (C.path.levels.params (k+1)).columns_ge) (by positivity : 0≤ ((C.S.block k).val :ℝ)^0)); exact mul_nonneg he' (mul_nonneg zero_le_two (hE.pos m).le)))) hC₀.le))) |
| 104 | _ ≤ cost m := le_refl _ |
| 105 | unfold combo; rw [Finset.smul_sum]; apply (norm_sum_le ..).trans |
| 106 | calc _ ≤ ∑ i:ι,‖c i‖*cost m:=Finset.sum_le_sum fun i _=>by change ‖↑((R') m^((B.1:ℝ)+V.1))*(c i*_)‖≤_; rw [mul_left_comm,norm_mul]; exact mul_le_mul_of_nonneg_left (ha i) (norm_nonneg _) |
| 107 | _ ≤ cost m :=by rw [← Finset.sum_mul]; exact mul_le_of_le_one_left hL.le hc' |
| 108 | end YM.MultipleContact.Local |