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.Multi.Collar |
| 2 | /-! Filling one root while retaining the incompatible grids at arbitrary independent other scales. -/ |
| 3 | set_option autoImplicit false |
| 4 | set_option maxHeartbeats 1400000 |
| 5 | set_option maxRecDepth 100000 |
| 6 | noncomputable section |
| 7 | namespace YM.MultipleContact.Joins |
| 8 | open Filter Set Function MeasureTheory Extraction Table Ward MergeProof Acme Ribbons Cells Next.UVStress Wilson Lattice Arbor |
| 9 | open Script Scene Bunching |
| 10 | open Accent Matching |
| 11 | open RG Bunching.Cord |
| 12 | open Drama ScheduleRow |
| 13 | open scoped Topology BigOperators Classical ContDiff |
| 14 | variable {G:Gauge}{C:Family G}{F:Extraction.Order}{S:Table C.book} |
| 15 | variable {b:ℕ}{n d:Fin b→ℕ} (V:∀i:Fin b,Fin (n i)→ S.Tag) (D:∀i:Fin b,Detector S (d i)) (p:Fin b →Mode) |
| 16 | variable [hn:∀i,Inhabited (Fin (n i))] |
| 17 | variable {P:DiffPlan S}(hA:Acme.Aroma C)(hT:Treasury C)(hc:CellHyp C F)(hM:F.PointLimits C S)(H:S.Hierarchy)(hP:P.Derivatives S)(hC:C.Makes) |
| 18 | variable {X:S.Rotation}(hX:X.Oriented S)(hG:G.Simple) |
| 19 | variable {t:ℕ} (h:Store S t)(L:Lattice.Side)(hb:(Finset.univ.filter fun i=>p i=.signed).card ≤ t+1) (κ ε:ℝ)(hs:0<κ)(hε:0<ε) {Θ: Fin b→ℝ} |
| 20 | def Clause (Q:Finset (Fin b))(j:Fin b→ℕ→ℕ)(K:ℝ)(M:ℕ)(r:ℝ):Prop:= ∀ (m:Fin b →ℕ)(z:Fin b→ E4),Close z κ → ∀ρ:Fin b → ℝ, (∀i,M≤ m i ∧ tail C (ρ i) (m i) ∧ 0<ρ i ∧ ρ i < r) → ∀ y:∀i:Fin b,Fin (n i) → E4, (∀ i,p i≠.fused → Cord.Band (n i) L (ρ i) (y i)) → (∀i∈Q,Cord.Near (n i) L (ρ i) (y i)) → (∀i:Fin b,i∉Q→p i=.signed→∀ a:Fin (n i)×Axis,Placed (n i) (C.S.a (j i (m i))) (y i) a) → ∀w:∀i:Fin b,S.Field (d i),(∀i,p i=.fused→‖w i‖≤1) → ‖evaluation S (planted p V D z w y)‖ ≤ K*due V D p ρ ε |
| 21 | variable {Q:Finset (Fin b)}{j:Fin b→ℕ→ℕ}{K:ℝ}{M:ℕ}{r:ℝ} |
| 22 | variable (hj:∀k:Fin b,1< Θ k ∧ Tendsto (j k) atTop atTop ∧ Tendsto (fun m=>C.S.scale (j k m)/C.S.scale m) atTop (𝓝 (Θ k))) |
| 23 | include hP hA hT hc hM H hC hG hX h hb hj hn hs hε |
| 24 | set_option quotPrecheck false |
| 25 | lemma raise {k:Fin b} (hprev:Clause V D p L κ ε Q j K M r)(hK:0 < K)(hr:0 < r)(hq: k∉Q)(hk:p k=.signed):∃ K'> (0:ℝ),∃ r'> (0:ℝ),∃ M',Clause V D p L κ ε (insert k Q) j K' M' r':=by |
| 26 | obtain ⟨l,hL⟩:=airfare hA (j k) (Θ k) (n k) (hj k).1 (hj k).2.1 (hj k).2.2 ((d k:ℝ)+1/64+ε) -- order |
| 27 | let T (i:Fin (n k)×Axis):= update V k (Line.tags (V k) P i.1 i.2 l) |
| 28 | obtain ⟨K0,hK0,hproof⟩:= Cord.sample L l (n k) |
| 29 | choose U r1 hU hr1 hweak using (fun i:Fin (n k)×Axis=>weaker (T i) D p hA hT hc hM H hP hC hX hG h L hk hb κ ε hs hε) |
| 30 | obtain ⟨m1,hm⟩:=eventually_atTop.mp hL |
| 31 | obtain ⟨a,ha,hag,hprobe⟩:= collar_pos (D:=D) hs -- positive margin wrt configurations and probe j=0 |
| 32 | have hR : ∃r₂ : ℝ,0 < r₂ ∧ ∀i:Fin (n k)×Axis,r₂ < r1 i:= by |
| 33 | have h:(∀ᶠ r in 𝓝 (0:ℝ),∀ i,r< r1 i):= eventually_all.mpr (fun i:Fin (n k)×Axis=>gt_mem_nhds (hr1 i)) -- named params error |
| 34 | have h'':=h.filter_mono (nhdsWithin_le_nhds (s:=Ioi 0)); obtain ⟨u,hu,hv⟩:=Eventually.exists ((show ∀ᶠ x:ℝ in 𝓝[>]0,0<x from self_mem_nhdsWithin).and h''); exact ⟨u,hu,hv⟩ |
| 35 | obtain ⟨r₀,hr₀,hfine⟩:=hR |
| 36 | obtain ⟨C',hC'⟩:=Finite.bddAbove_range U |
| 37 | let Amax:= max K C'; have hAmax:0 < Amax:=hK.trans_le (le_max_left ..) |
| 38 | let r'':=min r₀ (min r (a/(4*(L.val:ℝ)))) |
| 39 | have hlv:(0:ℝ)<L.val:=by exact_mod_cast L.pos |
| 40 | refine ⟨Amax*K0,mul_pos hAmax hK0,r'',lt_min hr₀ (lt_min hr (by positivity)),max m1 M,?_⟩ |
| 41 | intro m z hz ρ hρ xe hband hp hplaced w hw |
| 42 | let price := due V D p ρ ε |
| 43 | let num (v:Fin b→ ℕ):=C.S.a (j k (v k)); let a' := num m; have ht:0<a':= C.S.a_pos _ |
| 44 | have hc := hm (m k) ((le_max_left ..).trans (hρ k).1) _ (hρ k).2.2.1 (hρ k).2.1 |
| 45 | let y (v):= update xe k v |
| 46 | let f (v):=evaluation S (planted p V D z w (y v)) |
| 47 | have hρ₀ (i):0<ρ i:=(hρ i).2.2.1 |
| 48 | have hp₀:0<price:=Finset.prod_pos fun i _=>Real.rpow_pos_of_pos (hρ₀ i) _ |
| 49 | have hs (x) (hB:Cord.Band (n k) L (ρ k) x)(hX':∀v,Placed (n k) a' x v):‖f x‖≤ Amax*price:=by |
| 50 | apply (hprev m z hz _ ?_ (y x) ?_ ?_ ?_ w hw)|>.trans; exact mul_le_mul_of_nonneg_right (le_max_left ..) hp₀.le |
| 51 | · intro i; exact ⟨(le_max_right ..).trans (hρ i).1,(hρ i).2.1,hρ₀ _,((hρ i).2.2.2.trans_le ((min_le_right ..).trans (min_le_left ..)))⟩ |
| 52 | · intro i hi; by_cases h:i=k |
| 53 | · rw [h]; unfold y; rw [update_self]; exact hB |
| 54 | dsimp only [y]; rw [update_of_ne h];exact hband i hi --update_self]; exact hB; rw [← h,update_of_ne h] -- replace |
| 55 | · intro i hi; have hu':i≠k:=fun h=>(hq (h ▸ hi)); unfold y; rw [update_of_ne hu']; exact hp _ (Finset.mem_insert_of_mem hi) |
| 56 | intro i hi h'; by_cases hh:i=k |
| 57 | · rw [hh]; unfold y; rw [update_self]; exact hX' |
| 58 | unfold y; rw [update_of_ne hh]; exact hplaced i (by simpa only [Finset.mem_insert,not_or] using! And.intro hh hi) h' |
| 59 | have hd (i:Fin (n k)×Axis)(hi:i.fst≠default) (x:Fin (n k)→ E4) |
| 60 | (hP':∀t∈ Icc (-Cord.radius (n k) l) (Cord.radius (n k) l),Cord.Band (n k) L (ρ k) (Cord.polar i x a' t)): |
| 61 | ∃ z':ℕ→ℝ→ℂ,z' 0=(f ∘ Cord.polar i x a') ∧ (∀s<l,∀t∈Icc (-Cord.radius (n k) l) (Cord.radius (n k) l),HasDerivAt (z' s) (z' (s+1) t) t) ∧ ∀t∈Icc (-Cord.radius (n k) l) (Cord.radius (n k) l),‖z' l t‖≤Amax*price:=by |
| 62 | let v i:=T i |
| 63 | let X1(s):= y (Cord.polar i x a' s); let V₀ s:= update V k (Line.tags (V k) P i.1 i.2 s) |
| 64 | let Z' (v:ℕ)(t:ℝ):=a'^v • evaluation S (planted p (V₀ v) D z w (X1 t)) |
| 65 | have hB' (t:ℝ) (ht:t∈Icc (-Cord.radius (n k) l) (Cord.radius (n k) l)) (l:Fin b) (h:l≠k ∨ True) (h':p l≠ .fused): Band (n l) L (ρ l) (X1 t l):=by |
| 66 | unfold X1 y; by_cases h:l=k |
| 67 | · subst l;rw [update_self]; exact hP' _ ht |
| 68 | rw [update_of_ne h]; exact hband _ h' |
| 69 | have hSmall t (ht:t∈Icc (-Cord.radius (n k) l) (Cord.radius (n k) l)) (u:Fin b) (hL:p u≠.fused)(v):‖(X1 t) u v‖ < a:=((hB' _ ht _ (Or.inr trivial) hL).2.2 v).trans (by have hp:=((lt_div_iff₀ (show 0 < 4*(L.val:ℝ) from mul_pos (by positivity) hlv)).mp ((hρ u).2.2.2.trans_le ((min_le_right ..).trans (min_le_right ..))));linarith only [hp]) |
| 70 | refine ⟨Z',?_,fun s h t ht=>(?_), fun t ht=>?_⟩ |
| 71 | · funext u |
| 72 | have he : V₀ 0=V:=by unfold V₀ Line.tags; simp only [trek, update_eq_self] |
| 73 | simp [Z',he,f,X1] |
| 74 | · refine deform H hP s k i hk a' x t a ha (fun i j hij=>hag.trans_le (hz i j hij)) (fun l h' h₁=>?_ ) ?_ ?_ ?_ |
| 75 | · constructor |
| 76 | · exact band_inj (hband _ h₁) (hρ₀ _) |
| 77 | intro u; specialize hSmall t ht l h₁ u; simpa only [X1,y,update_of_ne h'] using! hSmall.le |
| 78 | · intro u; simpa only [X1,y,update_self] using (hSmall t ht k (hk.symm ▸ (by decide)) u).le |
| 79 | · exact band_inj (hP' _ ht) (hρ₀ _) |
| 80 | exact band_avoids D L _ _ (hP' t ht) ((hρ k).2.2.2.trans_le ((min_le_right ..).trans (min_le_right ..))) (hprobe k) |
| 81 | let q:= update p k .raw |
| 82 | have h0 : ‖evaluation S (planted p (T i) D z w (X1 t))‖ ≤ U i * due (T i) D q ρ ε:= hweak i z hz ρ (fun l=>(by exact ⟨hρ₀ _, (hfine i).trans_le' ((hρ l).2.2.2.le.trans (min_le_left ..))⟩)) (X1 t) (fun l h=>hB' t ht l (Or.inr trivial) h) w hw |
| 83 | change ‖a'^l • evaluation _ _‖ ≤ _ |
| 84 | rw [norm_smul,Real.norm_of_nonneg (pow_nonneg (C.S.a_pos _).le _)] -- ht clash |
| 85 | apply (mul_le_mul_of_nonneg_left h0 (pow_nonneg (C.S.a_pos _).le _) |>.trans) |
| 86 | rw [mul_left_comm]; exact mul_le_mul ((hC' (mem_range_self i)).trans (le_max_right ..)) (due_step P hk l i hρ₀ (hρ₀ k) ε (C.S.a_pos _) hc.1) (mul_nonneg (pow_nonneg (C.S.a_pos _).le _) (weight_pos (T i) D q ρ hρ₀).le) hAmax.le |
| 87 | have hv:= hproof (ρ k) a' (Amax*price) ht (mul_pos hAmax hp₀) (hρ₀ k) hc.2 f hs hd (xe k) (hp k (Finset.mem_insert_self ..)); rw [mul_right_comm] at hv; apply hv.trans'; unfold f y; rw [update_eq_self]; -- maybe fail |
| 88 | end YM.MultipleContact.Joins |
| 89 | |
| 90 | namespace YM.MultipleContact.Joins |
| 91 | open Filter Set Function MeasureTheory Extraction Table Ward MergeProof Acme Ribbons Cells Next.UVStress Wilson Lattice Arbor |
| 92 | open Script Scene Bunching |
| 93 | open Accent Matching |
| 94 | open RG Bunching.Cord |
| 95 | open Drama ScheduleRow |
| 96 | open scoped Topology BigOperators Classical ContDiff |
| 97 | variable {G:Gauge}{C:Family G}{F:Extraction.Order}{S:Table C.book} |
| 98 | variable {b:ℕ}{n d:Fin b→ℕ} (V:∀i:Fin b,Fin (n i)→ S.Tag) (D:∀i:Fin b,Detector S (d i)) (p:Fin b →Mode) |
| 99 | variable [hn:∀i,Inhabited (Fin (n i))] |
| 100 | variable {P:DiffPlan S}(hA:Acme.Aroma C)(hT:Treasury C)(hc:CellHyp C F)(hM:F.PointLimits C S)(H:S.Hierarchy)(hP:P.Derivatives S)(hC:C.Makes) |
| 101 | variable {X:S.Rotation}(hX:X.Oriented S)(hG:G.Simple) |
| 102 | include hA hC hT hc hM H |
| 103 | lemma clause_init (L:Lattice.Side) (κ ε:ℝ)(hs:0<κ)(hε:0<ε):∃ (t:Fin b→ℝ)(j:Fin b→ℕ→ℕ) (K₀:ℝ)(M:ℕ),0<K₀ ∧ Clause V D p L κ ε ∅ j K₀ M 1 ∧ (∀ k:Fin b,1 < t k ∧ Tendsto (j k) atTop atTop ∧ Tendsto (fun m:ℕ=>C.S.scale (j k m)/C.S.scale m) atTop (𝓝 (t k))):=by |
| 104 | obtain ⟨K',Θ,j,M,h0,h1,hV⟩:=cost_grid V D p hA hT hc H hM hC hε hs (L:=L) -- arg order? |
| 105 | refine ⟨Θ,j,K',M,h0,?_ ,h1⟩ |
| 106 | intro m z hh ρ hr y he _ hG w hW |
| 107 | exact hV _ _ (fun i=>⟨(hr i).1, (hr i).2.2.1, (hr i).2.1⟩) _ hh _ he (fun i=>hG i (by simp)) _ hW |
| 108 | lemma clause_done {j:Fin b→ ℕ→ℕ}(hG:G.Simple)(L:Lattice.Side)(κ ε:ℝ){A r:ℝ}{M:ℕ}(Q:Finset (Fin b))(hQ:Q=Finset.univ.filter fun i=>p i=.signed)(hA':0<A)(hr:0<r)(h:Clause V D p L κ ε Q j A M r): |
| 109 | ∃ (A r:ℝ),0 < A ∧ 0<r ∧ ∀ z:Fin b → E4,Close z κ → ∀ρ:Fin b → ℝ, (∀i,0<ρ i ∧ ρ i < r)→ ∀ y:∀i:Fin b,Fin (n i) → E4,(∀i:Fin b,p i ≠.fused → Cord.Near (n i) L (ρ i) (y i)) →∀w:∀i:Fin b,S.Field (d i),(∀i:Fin b,p i=.fused→‖w i‖≤1)→ |
| 110 | ‖evaluation S (planted p V D z w y)‖ ≤ A*due V D p ρ ε:=by |
| 111 | obtain ⟨u,hu,hU⟩:=shell_bound hA.notes hG M |
| 112 | refine ⟨A,min r u,hA',lt_min hr hu,fun z hz ρ hρ y hy w hw=> ?_⟩ |
| 113 | choose m h1 h2 using fun i:Fin b=>hU (ρ i) (hρ i).1 ((hρ i).2.trans_le (min_le_right ..)) |
| 114 | apply h m _ hz _ (fun i=>⟨h1 i, h2 i, (hρ i).1,(hρ i).2.trans_le (min_le_left ..)⟩) _ (fun i hi=> band_of_near (hy _ hi) (hρ i).1) (fun i hiQ=> hy i (fun hi=> Mode.noConfusion ((Finset.mem_filter.mp (hQ ▸ hiQ)).2.symm.trans hi))) (fun i hQ' hg=>(False.elim (hQ' (hQ.symm ▸ Finset.mem_filter.mpr ⟨Finset.mem_univ _,hg⟩)))) w hw |
| 115 | include hP hX hG |
| 116 | -- No assumption `Store` retained |
| 117 | lemma fills :∀m:ℕ,Store S m:=by |
| 118 | intro s |
| 119 | induction s |
| 120 | case zero=> |
| 121 | intro t n hN V d D p hb κ ε hs hε lamp |
| 122 | obtain ⟨Θ,j,K₀,M,h1,hQ,HQ⟩:= clause_init V D p hA hT hc hM H hC lamp κ ε hs hε |
| 123 | exact clause_done V D p hA hT hc hM H hC hG lamp κ ε ∅ (Finset.card_eq_zero.mp (Nat.eq_zero_of_le_zero hb)|>.symm) h1 (show (0:ℝ)<1 from zero_lt_one) hQ |
| 124 | rename_i s IH |
| 125 | intro t n hN V d D p hb κ ε hs hε lamp |
| 126 | let Q:= Finset.univ.filter fun i:Fin t=> p i=.signed |
| 127 | obtain ⟨Θ,j,K₀,M,h1,hQ,HQ⟩:= clause_init V D p hA hT hc hM H hC lamp κ ε hs hε |
| 128 | have he(Q':Finset (Fin t)) (hq:Q' ⊆ Q): ∃ A> (0:ℝ),∃r> (0:ℝ),∃m,Clause V D p lamp κ ε Q' j A m r:=by |
| 129 | induction Q' using Finset.induction_on with |
| 130 | | empty=> exact ⟨K₀,h1,1,one_pos,M,hQ⟩ |
| 131 | | @insert a q ha ih => |
| 132 | obtain ⟨K',hP',r,hr,M',he⟩:= ih (fun i hi=> hq (Finset.mem_insert_of_mem hi)) |
| 133 | have hq:=raise V D p hA hT hc hM H hP hC hX hG IH lamp hb κ ε hs hε HQ he hP' hr ha (Θ:=Θ) (by have hq:=hq (Finset.mem_insert_self a q); simpa only [Q,Finset.mem_filter,Finset.mem_univ,true_and] using hq) |
| 134 | exact hq |
| 135 | obtain ⟨A,hA',r,hR,m,hb⟩:=he Q (by rfl) |
| 136 | exact clause_done V D p hA hT hc hM H hC hG lamp κ ε Q rfl hA' hR hb |
| 137 | end YM.MultipleContact.Joins |