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.Next.UV_STRESS.Focus |
| 2 | import YM.Next.UV_STRESS.Gate |
| 3 | |
| 4 | |
| 5 | /-! |
| 6 | # Zoomed comparison on aligned points plus two-cost cells |
| 7 | |
| 8 | `Spots` is the primitive pricing target here. Uses finite **basis lists** when |
| 9 | requested below. No bounds on point/gradient of S assumed. Aligned numerical |
| 10 | comparison can be requested only away from projection ties. |
| 11 | -/ |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | namespace YM.Next.UVStress |
| 15 | open Function Set Filter MeasureTheory Metric Analysis Extraction Table Ward Climb Cells Lattice |
| 16 | open scoped Topology ContDiff BigOperators |
| 17 | variable {G : Gauge} {C : Family G} {S : Table C.book} {F : Extraction.Order} {n D : ℕ} |
| 18 | |
| 19 | structure Wheel (C : Family G) (D : ℕ) extends Station C D where |
| 20 | grid : ℕ |
| 21 | /-- stripe parameter (normalized units) -/ |
| 22 | σ : ℝ |
| 23 | stripe : 0<σ |
| 24 | |
| 25 | namespace Wheel |
| 26 | variable (X : Wheel C D) {R : ℝ} {t : Caps n} |
| 27 | def spacing := C.S.a X.grid / X.r |
| 28 | lemma space : 0<X.spacing := div_pos (C.S.a_pos _) X.rad |
| 29 | |
| 30 | def tones (h : ∀ i, t i ≤ D) (w : Ribbon (Bel C.book) t) (u : ℕ×ℕ) (i : Fin n) : C.book.Ref (t i) := |
| 31 | X.atCut u ⟨t i,Nat.lt_succ_of_le (h i)⟩ (w i) |
| 32 | |
| 33 | def inspection (F : Extraction.Order) (e : ℝ) (W : Set (Points n)) (h : ∀ i, t i ≤ D) (w : Ribbon (Bel C.book) t) : Prop := |
| 34 | ∀ x : Fin n → Cover, tag X.spacing x∈W → tag X.spacing x∈generic n → |
| 35 | F.upper (fun N p => ‖C.numeric N p (ripped (t:=t) (C:=C) (X.tones h w (N,p))) |
| 36 | (location C.S X.grid N p ∘ x) - disc (hang t w) (tag X.spacing x)‖) e |
| 37 | |
| 38 | structure Spots (F : Extraction.Order) (R e A B : ℝ) (h : ∀ i, t i ≤ D) (w : Ribbon (Bel C.book) t) : Prop where |
| 39 | compare : X.inspection F e (Scaling.window (2*R) n) h w |
| 40 | crude : ∃ m k : ℕ, C.S.a m < X.r/(2*R) ∧ m≤k ∧ (n:ℝ)*(2*(3*C.S.a k)) < C.S.a m ∧ |
| 41 | bulk (C:=C) (t:=t) (X.tones h w) F A k |
| 42 | slab : ∃ j : ℕ,C.S.a j < X.r*X.σ ∧ generous (C:=C) (t:=t) (X.tones h w) F B j |
| 43 | |
| 44 | lemma covers_tag (x : Fin n → Cover) : X.r • tag X.spacing x=tag (C.S.a X.grid) x := by |
| 45 | ext i a; change X.r*(C.S.a X.grid/X.r * _) = _ |
| 46 | rw [← mul_assoc, mul_div_cancel₀ _ X.rad.ne']; rfl |
| 47 | |
| 48 | lemma spots_upon {A B e : ℝ} {h} {w : Ribbon (Bel C.book) t} (hA : X.Spots F R e A B h w) (f : Extraction.Order) : |
| 49 | X.Spots (F.refine f) R e A B h w := by |
| 50 | obtain ⟨H,⟨m,k,he,hb,hg,hc⟩,j,hj,hD⟩:=hA |
| 51 | exact ⟨fun x hx hv ε hε => F.late_refine f (H x hx hv _ hε), |
| 52 | ⟨m,k,he,hb,hg,fun i j => F.late_refine f (hc i j)⟩,⟨j,hj,F.late_refine f (A:=fun N p => Difference.Permit (C:=C) (ripped (t:=t) (C:=C) (X.tones h w (N,p))) B j N p) hD⟩⟩ |
| 53 | end Wheel |
| 54 | |
| 55 | section cushions |
| 56 | |
| 57 | lemma scales_wild {r : ℝ} (hr : 0<r) (x : Points n) (hx : x∈generic n) : r•x∈generic n := by |
| 58 | intro a i j hij; exact hx a (mul_left_cancel₀ hr.ne' hij) |
| 59 | |
| 60 | lemma centered_in {R r : ℝ} (hR : 0<R) (hr : 0<r) (x : Points n) (hx : x∈Scaling.window R n) : |
| 61 | r•x ∈ airy n (r/(2*R)) := by |
| 62 | intro i j hij |
| 63 | have he : cubedist ((r • x) i) ((r • x) j)= r * cubedist (x i) (x j) := by |
| 64 | unfold cubedist |
| 65 | simp only [PiLp.smul_apply, WithLp.ofLp_smul] |
| 66 | rw [dist_eq_norm,dist_eq_norm,← smul_sub,norm_smul,Real.norm_eq_abs,abs_of_pos hr] |
| 67 | rw [he,div_eq_mul_inv] |
| 68 | exact mul_lt_mul_of_pos_left ((inv_lt_inv₀ (by positivity) hR).mpr (by linarith) |>.trans_le (hx.1 i j hij)) hr |
| 69 | |
| 70 | lemma strict_thin {r σ : ℝ} (hr : 0<r) (x : Points n) (hx : x∈openFilm n (4*σ)) : r•x∈openFilm n (4*(r*σ)) := by |
| 71 | intro i j hij a |
| 72 | have he : Gaps.distances (r • x) i j a=r*Gaps.distances x i j a := by |
| 73 | unfold Gaps.distances; rw [mul_sub]; rfl |
| 74 | rw [he, abs_mul, abs_of_pos hr]; have hh := mul_lt_mul_of_pos_left (hx i j hij a) hr |
| 75 | linarith |
| 76 | |
| 77 | lemma closed_thin {σ : ℝ} (hs : 0≤σ) (x : Points n) (hx : x∈openFilm n (8*σ)) : |
| 78 | closedBall x σ ⊆ openFilm n (4*σ) := by |
| 79 | intro y hy i j hij a |
| 80 | have he : dist x y ≤ σ := by rw [dist_comm]; exact hy |
| 81 | rw [dist_eq_norm] at he |
| 82 | have hh (i : Fin n) : |x i a-y i a| ≤ σ := |
| 83 | ((PiLp.norm_apply_le ((x-y) i) a).trans ((PiLp.norm_apply_le (x-y) i).trans he)) |
| 84 | have hh' : |Gaps.distances x i j a| ≤ |Gaps.distances y i j a| + 2*σ := by |
| 85 | rw [show Gaps.distances x i j a = Gaps.distances y i j a + ((x j a-y j a)-(x i a-y i a)) by unfold Gaps.distances; abel] |
| 86 | apply (abs_add_le ..).trans; apply add_le_add_right |
| 87 | exact (abs_sub _ _).trans (by linarith [hh i, hh j]) |
| 88 | linarith [hx i j hij a] |
| 89 | |
| 90 | lemma upgrade_window (R : ℝ) (hr : 0<R) : ∃ σ : ℝ,0<σ ∧ cthickening σ (Scaling.window R n) ⊆ Scaling.window (2*R) n := by |
| 91 | let A := ball (0:Points n) (2*R) ∩ airy n (2*R)⁻¹ |
| 92 | have he : Scaling.window R n ⊆ A := by |
| 93 | rintro x ⟨hx,h⟩ |
| 94 | exact ⟨mem_ball_zero_iff.mpr (h.trans_lt (by linarith)), fun i j hij => |
| 95 | ((inv_lt_inv₀ (by positivity) hr).mpr (by linarith)).trans_le (hx i j hij)⟩ |
| 96 | obtain ⟨σ,hσ,hA⟩ := (window_closed R n).exists_cthickening_subset_open (show IsOpen A from isOpen_ball.inter (airy_open _)) he |
| 97 | exact ⟨σ,hσ,fun x hx => ⟨fun i j hij => ((hA hx).2 i j hij).le,(mem_ball_zero_iff.mp (hA hx).1).le⟩⟩ |
| 98 | end cushions |
| 99 | |
| 100 | section fringe |
| 101 | variable (X : Wheel C D) (𝓛 : Filter (ℕ×ℕ)) [𝓛.NeBot] (hp : 𝓛≤F.fuse) |
| 102 | variable {t : Caps n} (w : Ribbon (Bel C.book) t) {Y : Bud C t} (P : C.Makes) (H : F.PointLimits C S) (h : S.Smooth) |
| 103 | variable {R A B e : ℝ} {u : ∀ i,t i ≤ D} |
| 104 | |
| 105 | def glow (S : Table C.book) (Y : Bud C t) (x : Points n) : ℂ := S.value t (X.r • x) Y |
| 106 | lemma glow_smooth (h : S.Smooth) (Y : Bud C t) : ContDiffOn ℝ ∞ (glow X S Y) (conf n) := |
| 107 | (S.smooth_read h (ripped (C:=C) (t:=t) Y)).comp (show ContDiffOn ℝ ∞ (fun x : Points n => X.r • x) (conf n) by fun_prop) |
| 108 | (fun x hx => (enlarged X.rad x).1 hx) |
| 109 | include H hp |
| 110 | |
| 111 | lemma match_phase (ha : Tendsto (X.tones u w) 𝓛 (𝓝 Y)) (hx : X.Spots F R e A B u w) (x : Fin n → Cover) |
| 112 | (hu : tag X.spacing x∈Scaling.window (2*R) n) (hw : tag X.spacing x∈generic n) : |
| 113 | ‖glow X S Y (tag X.spacing x)-disc (hang t w) (tag X.spacing x)‖ ≤ e := by |
| 114 | have he : tag (C.S.a X.grid) x∈generic n := by rw [← X.covers_tag]; exact scales_wild X.rad _ hw |
| 115 | rw [glow,X.covers_tag] |
| 116 | apply le_of_forall_pos_le_add |
| 117 | intro ε hε |
| 118 | let V := disc (hang t w) (tag X.spacing x) |
| 119 | have ht : ∀ᶠ i in F.fuse, ‖C.numeric i.1 i.2 (ripped (C:=C) (t:=t) (X.tones u w i)) |
| 120 | (location C.S X.grid i.1 i.2 ∘ x)-V‖ ≤ e+ε := hx.compare x hu hw ε hε |
| 121 | exact le_of_tendsto (((paid_point (X.tones u w) Y ha hp H X.grid x he).sub_const V).norm) (ht.filter_mono hp) |
| 122 | |
| 123 | include P h |
| 124 | lemma covers_cost (hr : 0<R) (ha : Tendsto (X.tones u w) 𝓛 (𝓝 Y)) (hx : X.Spots F R e A B u w) |
| 125 | (x : Points n) (hh : x∈Scaling.window R n) : ‖glow X S Y x‖ ≤ A^n := by |
| 126 | obtain ⟨m,k,hm,hv,hw,hA⟩:=hx.crude |
| 127 | exact large_gate P h H 𝓛 hp (X.tones u w) Y ha (div_pos X.rad (by positivity)) m k hm hv hw hA _ (centered_in hr X.rad x hh) |
| 128 | |
| 129 | lemma pays_gradient (ha : Tendsto (X.tones u w) 𝓛 (𝓝 Y)) (hx : X.Spots F R e A B u w) (hB : 0 ≤ B) |
| 130 | (x : Points n) (hh : x∈openFilm _ (4*X.σ)) : ‖fderiv ℝ (glow X S Y) x‖ ≤ (n:ℝ)*4*(B^n/X.σ) := by |
| 131 | obtain ⟨j,hj,HT⟩ := hx.slab |
| 132 | apply (Work.B10.norm_le_direction_sum ..).trans |
| 133 | let r := X.r |
| 134 | have hr : 0<r := X.rad |
| 135 | have hi := X.stripe |
| 136 | have hz := strict_thin hr x hh |
| 137 | have hs := generic_conf _ (open_fit _ (by positivity) hz) |
| 138 | let U (x : Points n) := S.value t x Y |
| 139 | have hD : DifferentiableAt ℝ U (X.r • x) := |
| 140 | (((S.smooth_read h (ripped (C:=C) (t:=t) Y)) _ hs).contDiffAt ((conf_open _).mem_nhds hs)).differentiableAt (by simp) |
| 141 | calc |
| 142 | _ ≤ ∑ _ : Fin n × Axis,B^n/X.σ := by |
| 143 | apply Finset.sum_le_sum; rintro ⟨k,a⟩ _ |
| 144 | have hh := Work.A04.gradient_scaled r U x hD k a |
| 145 | change ‖Points.gradient k a (fun x => U (r • x)) x‖ ≤ _ |
| 146 | rw [hh,norm_smul,Real.norm_eq_abs,abs_of_pos hr] |
| 147 | refine (mul_le_mul_of_nonneg_left (slope_gate P H h (X.tones u w) 𝓛 hp Y ha j B _ hB (by positivity) |
| 148 | HT hj k a _ hz) hr.le).trans_eq ?_ |
| 149 | field_simp |
| 150 | change r * B^n / r = B^n; field_simp |
| 151 | _ = _ := by simp [Axis] |
| 152 | |
| 153 | lemma glide (ha : Tendsto (X.tones u w) 𝓛 (𝓝 Y)) (hx : X.Spots F R e A B u w) (hB : 0 ≤ B) |
| 154 | (x : Points n) (hh : x∈openFilm _ (8*X.σ)) (hw : (4*n:ℝ)*X.spacing ≤ X.σ) : |
| 155 | dist (glow X S Y (tag X.spacing (address X.spacing x))) (glow X S Y x) ≤ |
| 156 | ((n:ℝ)*4*(B^n/X.σ))*((4*n:ℝ)*X.spacing) := by |
| 157 | let U := closedBall x X.σ |
| 158 | have hs := X.stripe |
| 159 | have hk : U ⊆ openFilm _ (4*X.σ) := closed_thin hs.le x hh |
| 160 | have hy (y) (hx' : y ∈ U) : DifferentiableAt ℝ (glow X S Y) y := by |
| 161 | have he := generic_conf _ (open_fit _ (by positivity) (hk hx')) |
| 162 | exact (((glow_smooth X h Y) y he).contDiffAt ((conf_open _).mem_nhds he)).differentiableAt (by simp) |
| 163 | let y := tag X.spacing (address X.spacing x) |
| 164 | have ht := approximate X.space x |
| 165 | have he := (convex_closedBall x X.σ).norm_image_sub_le_of_norm_fderiv_le hy |
| 166 | (fun y hy => pays_gradient X 𝓛 hp w P H h ha hx hB y (hk hy)) (mem_closedBall_self hs.le) (show y∈U from ht.trans hw) |
| 167 | rw [dist_eq_norm] at ht ⊢; exact he.trans (mul_le_mul_of_nonneg_left ht (by positivity)) |
| 168 | end fringe |
| 169 | end YM.Next.UVStress |