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.Pert.Fourier.Cellular |
| 2 | /-! Quadrature cost on the common unweighted direct self line (fixed cover displacement). Keep power rate before engineering scaling. -/ |
| 3 | noncomputable section |
| 4 | set_option autoImplicit false |
| 5 | namespace YM.Pert.Cellular |
| 6 | open Topology Lattice Filter MeasureTheory Set Metric Function |
| 7 | open scoped BigOperators Classical ContDiff |
| 8 | |
| 9 | @[simp] lemma do_zero : dtype 0 = 0 := by simp [dtype,Full.delta] |
| 10 | lemma currency {x : E4} (hx : x∈cells) : ‖x‖^2 ≤ dtype x /4 := by |
| 11 | have e := Full.delta_bound (cells_cube x |>.mp hx) |
| 12 | have hp := Real.pi_pos |
| 13 | rw [norm_smul,norm_mul,Real.norm_of_nonneg (show (0:ℝ)≤2 by norm_num),Real.norm_of_nonneg (by positivity : 0≤Real.pi),←dtype] at e |
| 14 | suffices h : 4*‖x‖^2≤dtype x/4 by nlinarith only [h,sq_nonneg ‖x‖] |
| 15 | exact le_of_mul_le_mul_left (a:=Real.pi^2) (by linarith only [e]) (sq_pos_of_pos hp) |
| 16 | lemma inv_currency {x : E4} (hx : x ∈ cells) : |(dtype x)⁻¹| ≤ (‖x‖^2)⁻¹ := by |
| 17 | by_cases he : x=0; · simp [he] |
| 18 | have hp := norm_pos_iff.mpr he |
| 19 | have h : ‖x‖^2 ≤ dtype x := by nlinarith only [sq_nonneg ‖x‖,currency hx] |
| 20 | have hv : 0≤(dtype x)⁻¹ := inv_nonneg.2 <| le_trans (sq_nonneg _) h |
| 21 | rw [abs_of_nonneg hv]; gcongr |
| 22 | lemma handful (f : E4→ℝ) (h : ContDiff ℝ ∞ f) : ∃ c≥0,∀ x ∈ cells, ∀ y∈ cells, ‖f x - f y‖ ≤ c*‖x-y‖ := by |
| 23 | obtain ⟨C,H⟩ := isCompact_closedBall (0:E4) 1 |>.exists_bound_of_continuousOn (h.continuous_fderiv (by simp)).continuousOn |
| 24 | exact ⟨max C 0,le_max_right ..,fun x hx y hy => (Convex.norm_image_sub_le_of_norm_fderiv_le (𝕜:=ℝ) (fun _ _=>h.differentiable (by simp) _) H (convex_closedBall (0:E4) 1) (cells_ball hy) (cells_ball hx)).trans (mul_le_mul_of_nonneg_right (le_max_left ..) (norm_nonneg _))⟩ |
| 25 | lemma dtype_diff : ContDiff ℝ ∞ dtype := by unfold dtype Full.delta; apply ContDiff.sum; intro k _; fun_prop |
| 26 | lemma stash_diff (a : Cover) : ContDiff ℝ ∞ (clock a) := by unfold clock Full.corner; apply ContDiff.cos; apply ContDiff.sum; intro k _; fun_prop |
| 27 | lemma clock_price (a : Cover) (u : E4) : |clock a u| ≤ 1 := Real.abs_cos_le_one _ |
| 28 | lemma inv_rate (a : Cover) {x : E4} (hx:x∈cells) : ‖trace a x‖ ≤ (‖x‖^2)⁻¹ := by |
| 29 | unfold trace; simp only [norm_mul, Real.norm_eq_abs]; grw [clock_price a x, mul_one]; exact inv_currency hx |
| 30 | lemma inv_visits (a : Cover) (n : Side) (x : E4) (hx : x∈cells) (hy : visit n x∈cells) : ‖trace a (visit n x) - trace a x‖ ≤ 26*(‖x‖^2)⁻¹ := by |
| 31 | let y:=visit n x; have he := inv_rate a hy |
| 32 | suffices h : ‖trace a y‖ ≤ 25*(‖x‖^2)⁻¹ by nlinarith only [norm_sub_le (trace a y) (trace a x), inv_rate a hx,h] |
| 33 | by_cases H : y=0; · rw [H]; unfold trace; rw [do_zero,inv_zero,zero_mul, norm_zero]; positivity |
| 34 | by_cases h:x=0; · exact False.elim (H (by ext i; rw [show y=(0:E4) by ext j; unfold y visit; change _ = (0:ℝ); rw [Band.reads_wrap, h]; change (↑⌈(0:ℝ)/(n.val:ℝ)⁻¹⌉:ℝ)/_ = _; simp])) -- check simp. actually visit n zero. |
| 35 | have hv : ‖x‖ ≤ 5*‖y‖ := by have hw := norm_sub_le x y; nlinarith only [show ‖x‖≤‖y-x‖+‖y‖ by simpa only [sub_sub_cancel, norm_sub_rev,add_comm] using norm_sub_le y (y-x),visit_floor _ _ H, visit_eps n x] |
| 36 | have hw := norm_pos_iff.mpr H; have hv' := norm_pos_iff.mpr h |
| 37 | apply le_trans he |
| 38 | |
| 39 | rw [←one_div, ←div_eq_mul_inv, div_le_div_iff₀ (sq_pos_of_pos hw) (sq_pos_of_pos hv')]; nlinarith only [hv,hw,hv'] |
| 40 | lemma inv_matrix (a : Cover) : ∃ c≥0,∀ {r : ℝ},0 < r → r≤1 → ∀ x∈cells,∀ y∈cells,r ≤ ‖x‖ → r ≤ ‖y‖ → ‖trace a y - trace a x‖ ≤ (c/r^4)*‖y-x‖ := by |
| 41 | obtain ⟨A,hA,ha⟩ := handful dtype dtype_diff |
| 42 | obtain ⟨B,hB,hb⟩ := handful _ (stash_diff a) |
| 43 | refine ⟨B+A,add_nonneg hB hA,?_⟩ |
| 44 | intro r hr h1 x hx y hy hx0 hy0 |
| 45 | have hv (x : E4) (hx : x∈cells) (ht : r≤‖x‖) : |(dtype x)⁻¹| ≤ (r^2)⁻¹ := (inv_currency hx).trans (by gcongr) |
| 46 | have he (x:E4) (hx : x∈cells) (ht : r ≤ ‖x‖) : dtype x ≠ 0 := fun H=> by have := currency hx; rw [H] at this; nlinarith only [this,ht,hr] |
| 47 | rw [show trace a y - trace a x = (clock a y - clock a x)*(dtype y)⁻¹ + ((dtype x - dtype y)*(dtype y)⁻¹)* ((dtype x)⁻¹*clock a x) from by unfold trace; field_simp [he y hy hy0,he x hx hx0]; ring] |
| 48 | apply (norm_add_le ..).trans |
| 49 | simp only [norm_mul] |
| 50 | apply (add_le_add (mul_le_mul (hb _ hy _ hx) (hv y hy hy0) (abs_nonneg _) (by positivity)) (mul_le_mul (mul_le_mul (ha _ hx _ hy) (hv y hy hy0) (abs_nonneg _) (by positivity)) (mul_le_mul (hv _ hx hx0) (clock_price _ _) (abs_nonneg _) (by positivity)) (by positivity) (by positivity))).trans |
| 51 | have h2 : r^2≤1 := pow_le_one₀ hr.le h1 |
| 52 | push_cast; rw [norm_sub_rev y]; field_simp; nlinarith only [show B*‖x-y‖*r^2 ≤ B*‖x-y‖*1 from mul_le_mul_of_nonneg_left h2 (mul_nonneg hB (norm_nonneg _))] |
| 53 | |
| 54 | def spike (r : ℝ) := (ball (0:E4) (2*r)).indicator fun q=> (‖q‖^2)⁻¹ |
| 55 | lemma spike_int (r : ℝ) : Integrable (spike r) := (integrable_indicator_iff measurableSet_ball).2 (integrableOn_ball_of_norm_le_rpow (by simp : 1≤Module.finrank ℝ E4) (α:=2) (by norm_num [E4]) (C:=1) (Eventually.of_forall fun q:E4=> by rw [Real.rpow_neg (norm_nonneg q),show (2:ℝ)=((2:ℕ):ℝ) from by norm_num, Real.rpow_natCast, Real.norm_of_nonneg (by positivity)]; exact (one_mul _).symm.le) (by fun_prop)) |
| 56 | lemma strike (a : Cover) (n : Side) : Integrable (cells.indicator (trace a)) := by |
| 57 | refine (spike_int 3).mono' (Measurable.aestronglyMeasurable (by unfold trace; apply Measurable.indicator _ cells_closed.measurableSet; exact (dtype_diff.continuous.measurable.inv.mul ((stash_diff _).continuous.measurable)))) <| Eventually.of_forall ?_ |
| 58 | intro x |
| 59 | unfold spike |
| 60 | by_cases hx:x∈cells |
| 61 | · rw [indicator_of_mem hx, indicator_of_mem (mem_ball.mpr (by rw [dist_zero_right]; linarith [cells_bd hx]))]; exact inv_rate _ hx |
| 62 | rw [indicator_of_notMem hx]; exact (le_of_eq norm_zero).trans (indicator_nonneg (fun x (_hx:x∈ball (0:E4) (2*3))=> by positivity) _) |
| 63 | lemma spike_pos {r : ℝ} (hr : r>0) : (∫ k, spike r k) = r^2 * ∫ k, spike 1 k := by |
| 64 | have h : ∀ x, r^2 * spike r (r•x) = spike 1 x := by |
| 65 | intro x |
| 66 | have h1' : (r•x)∈ball (0:E4) (2*r) ↔ x∈ball 0 (2*1) := by simp only [mem_ball,dist_zero_right,mul_one,norm_smul,Real.norm_of_nonneg hr.le]; rw [mul_comm (2:ℝ) r]; exact mul_lt_mul_iff_right₀ hr |
| 67 | unfold spike; by_cases hx : x∈ball (0:E4) (2*1) |
| 68 | · rw [indicator_of_mem hx,indicator_of_mem (h1'.mpr hx),norm_smul,Real.norm_of_nonneg hr.le,mul_pow,mul_inv] |
| 69 | field_simp |
| 70 | rw [indicator_of_notMem hx,indicator_of_notMem (mt h1'.mp hx),mul_zero] |
| 71 | have hh := integral_const_mul (μ:=volume) (r^2) (fun x=>spike r (r • x)); simp_rw [h] at hh |
| 72 | have hd (f : E4→ℝ) := MeasureTheory.Measure.integral_comp_smul_of_nonneg volume f _ (hR:=hr.le) |
| 73 | simp only [YM.Next.Rank.Radian.spaceD,smul_eq_mul] at hd |
| 74 | rw [hd (spike r)] at hh |
| 75 | field_simp at hh; nlinarith only [hh] |
| 76 | |
| 77 | lemma linear_der (a : Cover) : ∃ C≥0,∀ {r : ℝ},0<r → r≤1 → ∀ {n : Side}, 8*(n.val:ℝ)⁻¹ ≤ r →∀ {x:E4}, x∈cells → visit n x∈cells → r<‖x‖ → ‖trace a (visit n x) - trace a x‖ ≤ C*((n.val:ℝ)⁻¹)/r^4 := by |
| 78 | obtain ⟨A,hA,H⟩ := inv_matrix a |
| 79 | refine ⟨A*(2^4)*4,by positivity,?_⟩; intro r hr h1 n hn x hx hy hw |
| 80 | let y:= visit n x |
| 81 | have hey : r/2 ≤ ‖y‖ := by have he := norm_sub_le y (y-x); rw [sub_sub_cancel] at he; linarith only [hw,hn, he,visit_eps n x] |
| 82 | apply le_trans (le_trans (H (half_pos hr) (by linarith) x hx y hy (by linarith) hey) (mul_le_mul_of_nonneg_left (visit_eps n x) (by positivity))) |
| 83 | apply le_of_eq; field_simp |
| 84 | lemma toroid_cost (a : Cover) : ∃ C≥0,∃ A≥0,∀ {n : Side}, Even n.val → ∀ {r : ℝ}, 0< r → r≤1 → 8*(n.val:ℝ)⁻¹ ≤ r → |
| 85 | ‖(∫ k,cells.indicator (fun p=> trace a (visit n p)) k)- (∫ k, cells.indicator (trace a) k)‖ ≤ C*(r^2) + A*(n.val:ℝ)⁻¹ / r^4 := by |
| 86 | obtain ⟨A,hA,H⟩ := linear_der a |
| 87 | let v:=A*volume.real cells |
| 88 | have hp : ∀ x,0 ≤ spike 1 x := indicator_nonneg (fun x _=>by exact inv_nonneg.2 (sq_nonneg _)) |
| 89 | refine ⟨26*∫ k,spike 1 k, by apply mul_nonneg (by positivity) <| integral_nonneg hp,v,(mul_nonneg hA ENNReal.toReal_nonneg),?_⟩ |
| 90 | intro n he r hr h1 hn |
| 91 | let C:= (n.val:ℝ)⁻¹ /r^4 |
| 92 | have hC : 0≤A*C := mul_nonneg hA (show 0≤ C by dsimp [C]; positivity) |
| 93 | let Base:=cells.indicator (fun _=> A*C) |
| 94 | rw [← MeasureTheory.integral_sub (integrate_visit n he (trace a)).1] |
| 95 | rotate_left |
| 96 | · exact strike a n |
| 97 | refine (norm_integral_le_of_norm_le (g:=fun x=>26*spike r x + Base x) ?_ ?_).trans (le_of_eq ?_) |
| 98 | · exact (MeasureTheory.Integrable.add ((spike_int r).const_mul 26) ((integrable_indicator_iff cells_closed.measurableSet).2 (integrableOn_const cells_compact.measure_ne_top))) |
| 99 | · filter_upwards [cell_AE] with x hx |
| 100 | by_cases ht : x∈cells |
| 101 | · rw [indicator_of_mem ht,indicator_of_mem ht, show Base x = A*C from indicator_of_mem ht _] |
| 102 | have hv : visit n x∈cells := by |
| 103 | apply (cells_cube (visit n x)).mpr; unfold visit; obtain ⟨p,hh⟩ := (marked_cell n he hx).mp ht;rw [←hh,visit_defensive]; apply Full.moment_cube |
| 104 | by_cases h : ‖x‖ ≤ r |
| 105 | · have hb : x∈ball (0:E4) (2*r) := by rw [mem_ball,dist_zero_right]; linarith only [h,hr] |
| 106 | unfold spike; rw [indicator_of_mem hb] |
| 107 | exact (inv_visits a n x ht hv).trans (le_add_of_nonneg_right hC) |
| 108 | grw [H hr h1 hn ht hv (lt_of_not_ge h),show (A*((n.val:ℝ)⁻¹) / r^4)=A*C from by dsimp only [C];ring]; unfold spike; have hx0 := indicator_nonneg (s:=ball (0:E4) (2*r)) (f:=fun x:E4=>(‖x‖^2)⁻¹) (fun q _ => by positivity) x; exact le_add_of_nonneg_left (by positivity) |
| 109 | rw [indicator_of_notMem ht,indicator_of_notMem ht,sub_self]; exact (le_of_eq norm_zero).trans (add_nonneg (mul_nonneg (by positivity) (indicator_nonneg (fun q (_hx:q∈ball (0:E4) (2*r))=>inv_nonneg.2 (sq_nonneg _)) x)) (indicator_nonneg (fun _ _=> hC) x)) |
| 110 | rw [integral_add ((spike_int r).const_mul _)]; swap |
| 111 | · exact (integrable_indicator_iff cells_closed.measurableSet).2 (integrableOn_const cells_compact.measure_ne_top) |
| 112 | unfold Base C v; rw [integral_const_mul, integral_indicator cells_closed.measurableSet, setIntegral_const, smul_eq_mul]; rw [spike_pos hr]; ring |
| 113 | end YM.Pert.Cellular |