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.TraceExtension.Perfect.Salon |
| 2 | |
| 3 | set_option autoImplicit false |
| 4 | noncomputable section |
| 5 | namespace YM.Trace.Perfect |
| 6 | open Function Filter Matrix Lattice Precision Laurent Stationary Bloch Exterior Tree RG Wilson Finset |
| 7 | open scoped BigOperators Topology ContDiff Matrix.Norms.Frobenius Classical |
| 8 | namespace Lot |
| 9 | variable {P:Patch}{Y:KernelChoices} {p:Clip}{G:Gauge}{α D β v:ℝ} {W:Type*}(L:W→ Lot G P Y p α D) |
| 10 | set_option quotPrecheck false |
| 11 | variable (K:∀ w,Cross (L w).s.ratio.count (TypeFace 1) (TypeFace 1)) (o:∀ w,Site (L w).f)(u:∀ w,Site (L w).c)(hb:0<β)(hp: ∀ w,(K w).strip β (v/P.L.val)) (t:∀ w,(L w).s.Choices) |
| 12 | local notation "K!"=>fun w=> installed (L w).s.ratio (K w) |
| 13 | local notation "F!"=>fun w=>fresh (L w).wood (L w).ρ (K! w) (o w) |
| 14 | local notation "T!"=>fun w=>stampA (L w).s (t w) (F! w) |
| 15 | include hb hp |
| 16 | private lemma doubleC (n:ℕ) (y:∀ w,Lines G (L w).f 1): Calm (overLoc L fun w=> (y w).1) (fun w x=> (T! w) x (Sum.inl (y w))) n:= (left_output (fun i=>(L i).c) _ _ (entire L K o hb hp y)) |
| 17 | lemma calm_post (n:ℕ) (y:∀ w, pairA G (L w).f): Calm (overLoc L (fun w=>pairLoc (y w))) (fun w x=> (T! w) x (y w)) n:=by |
| 18 | classical |
| 19 | refine Calm.assemble (I:=(fun i=>pairA G (L i).c)) (P:=fun b w=> (y w).isLeft=b) (Finset.univ:Finset Bool) (fun i=>⟨_,mem_univ _,rfl⟩) ?_ |
| 20 | intro i _ |
| 21 | cases i |
| 22 | · let M:= {w:W// (y w).isLeft=false}; let p m:Lot G P Y p α D:= L (m:M).val |
| 23 | have h(i:M) : ∃ g,y i.val=Sum.inr g:= by |
| 24 | cases H:y i.val with |
| 25 | | inl j=> have h:= i.property; simp [H] at h |
| 26 | | inr j=> exact ⟨j,rfl⟩ |
| 27 | choose g hg using h |
| 28 | let D:=fun w:M=>overLoc L (fun w=> pairLoc (y w)) w.val |
| 29 | have he : overLoc p (fun i:M=>(g i).1)=D:= funext fun i=> by funext z; unfold D overLoc fromV; dsimp only; rw [hg i]; rfl |
| 30 | change Calm D _ n; erw [← he] |
| 31 | refine (touch_tangent p (fun i=>K i.val) (fun i=>o i.val) hb (fun i=>hp i.val) (fun i=>t i.val) g).near (fun w=>?_) |
| 32 | exact Eventually.of_forall fun x=>by rw [hg w] |
| 33 | let M:= {w:W// (y w).isLeft=true}; let p m:Lot G P Y p α D:= L (m:M).val |
| 34 | have h(i:M):∃ g,y i.val=Sum.inl g:=by |
| 35 | cases H:y i.val with |
| 36 | | inl j=> exact ⟨_,rfl⟩ |
| 37 | | inr j=>have h:= i.property; simp [H] at h |
| 38 | choose g hg using h |
| 39 | let D:=fun w:M=> overLoc L (fun w=> pairLoc (y w)) w.val |
| 40 | have he : overLoc p (fun i:M=>(g i).1)=D := funext fun i=> by funext z; unfold D overLoc fromV; dsimp only; rw [hg i]; rfl |
| 41 | change Calm D _ n; erw [← he];refine (doubleC p (fun i=>K i.val) (fun i=>o i.val) hb (fun i=>hp i.val) (fun i=>t i.val) n g).near (fun w=>?_); exact Eventually.of_forall fun x=>by rw [hg w] |
| 42 | -- fromV interpolation |
| 43 | lemma paid_post (T : ℝ)(hT:0≤T)(h:∀ w,separation ((L w).s.ratio.embed (u w)) (o w) ≤ T*P.L.val)(n γ:ℕ): |
| 44 | (∀ w,ContDiffAt ℝ ω (T! w) 0) ∧ ∃ a C:ℝ,0<a ∧ 0≤C ∧ ∀ w k i,k≤n → ∀ d:ℝ,0≤d→ d≤a→ |
| 45 | sail (T! w) 0 (landW (u w)) k i d γ (landW (o w) i /(P.L.val:ℝ)) ≤ C:=by |
| 46 | let W':=Σ w,pairA G (L w).f |
| 47 | let L' i:=L (i:W').1 |
| 48 | let Z(i:W'):= pairLoc i.2 |
| 49 | have he:= calm_post L' (fun i=>K i.1) (fun i=>o i.1) hb (fun i=>hp i.fst) (fun i=>t i.fst) n Sigma.snd |
| 50 | have ht (w): ContDiffAt ℝ ω (T! w) 0:= contDiffAt_pi.mpr fun i=> he.velvet (⟨w,i⟩:W') |
| 51 | obtain ⟨a,C,c,y,H⟩:= he.shape; let b:=a/2; have h0:= half_pos c |
| 52 | obtain ⟨M,hM,hx⟩:= shelter_paid (t:=γ) h0.le (half_lt_self c) |
| 53 | let V:= shelter b γ T; have hV :0≤ V:= (shelter_pos b _ hT).le |
| 54 | refine ⟨ht,b,(V*M)*C,h0,by positivity,fun w k i hk d hd hv=>?_⟩ |
| 55 | let A:= overLoc L' (fun k:W'=> pairLoc k.snd) ⟨w,i⟩ |
| 56 | apply le_trans ?_ (mul_le_mul_of_nonneg_left (H ⟨w,i⟩ k hk) (show 0 ≤ V*M by positivity)) |
| 57 | change sail (T! w) 0 (landW (u w)) k i d γ (landW (o w) i / _) ≤ V*M*cost A a 0 0 (leaf (fun x=> (T! w) x i) 0 k) |
| 58 | rw [← footed A (T! w) _ a i (ht w)]; unfold sail cost; rw [Finset.mul_sum]; apply sum_le_sum; intro j _; rw [← mul_assoc (V*M)]; apply mul_le_mul_of_nonneg_right _ (norm_nonneg _) |
| 59 | let l:ℝ:= P.L.val; have hL : 1 ≤ l:=by unfold l; exact_mod_cast (show 1 ≤ P.L.val from P.L.property) |
| 60 | let p:= (landW (o w) i:ℝ)/l |
| 61 | let F:=landW (u w) (G:=G); let s:ℝ:= ↑(limitN A j); have hS : 0 ≤ s:= by unfold s; positivity |
| 62 | have hp : ((limitN F j):ℝ) ≤ p+T+s:=by |
| 63 | by_cases hq : k = 0 |
| 64 | · subst k; unfold limitN; simp; have hv:0 ≤ p:=by unfold p; positivity |
| 65 | positivity |
| 66 | obtain ⟨b,hb⟩:=limitN_mem F j (Nonempty.intro ⟨0,Nat.pos_of_ne_zero hq⟩) |
| 67 | have he : (A (j b):ℝ) ≤ s:= Nat.cast_le.mpr (limitN_ge ..); rw [hb] |
| 68 | let R:= (L w).s.ratio; have ht : l=(R.count.val:ℝ):= by unfold l; rw [show R.count=P.L from congr_arg Patch.L (L w).patch] |
| 69 | let x:= pairLoc i; let y:=pairLoc (j b) |
| 70 | have hb : A (j b)= separation x (R.embed y):=by simp only [A,overLoc,fromV,x,y,pairLoc]; cases j b <;> rfl |
| 71 | have hh : F (j b)=separation (u w) y:=by simp only [F,y,landW,pairLoc]; cases j b <;> rfl |
| 72 | have hu : p=(separation (o w) x:ℝ)/l:=by unfold p x; congr 1; cases i<;>rfl |
| 73 | have hV := Corona.below R (u w) y; rw [hh,hu]; have hx': l* (separation (u w) y:ℝ) ≤ (T*l+(separation (o w) x:ℝ))+s:=by |
| 74 | calc |
| 75 | _ ≤ (separation (R.embed (u w)) (R.embed y):ℝ):=by rw [ht]; exact_mod_cast hV |
| 76 | _ ≤ ((separation (R.embed (u w)) (o w):ℝ)+(separation (o w) x:ℝ))+(separation x (R.embed y):ℝ) := by exact_mod_cast (separation_triangle (R.embed (u w)) x (R.embed y)).trans (Nat.add_le_add_right (separation_triangle (R.embed (u w)) (o w) x) _) |
| 77 | _ ≤ _:= add_le_add (add_le_add (h w) le_rfl) (hb ▸ he) |
| 78 | apply le_of_mul_le_mul_left _ (show 0<l by linarith only [hL]); field_simp; nlinarith only[hx',hL,mul_le_mul_of_nonneg_right hL hS] |
| 79 | change spot d γ p (limitN F j) ≤ V*M*spot a 0 0 _ |
| 80 | apply (shelter_top hd hv (le_max_left (0:ℝ) ((limitN F j:ℝ)-p)) (max_le (add_nonneg hT hS) (by linarith only[hp])) le_rfl).trans ((shelter_add b _ hT hS).trans ?_) |
| 81 | refine (mul_le_mul_of_nonneg_left (hx _ hS) hV).trans_eq ?_; unfold V; rw [mul_assoc]; congr 2; simp [spot,shelter,s] |
| 82 | |
| 83 | end Lot |
| 84 | end YM.Trace.Perfect |