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.Ac.Table |
| 2 | import YM.Bid.Drops |
| 3 | import YM.Next.SCHEDULE.Clocks |
| 4 | import YM.Org.Theatre |
| 5 | |
| 6 | /-! |
| 7 | # Entrance arithmetic: uniform neighboring hat-beta levels |
| 8 | |
| 9 | Stronger than needed to choose fixed-L *one-step* adjacent references: look all |
| 10 | the way up and down within √x of x, suitable for sublinear comparison work |
| 11 | stretches (actual h budget charged separately). Pay even the displayed |
| 12 | `exp (-P^(1/5))`-ratio, through an UNBOUNDED number of such close levels |
| 13 | (pairwise comparison, don't multiply any per-step ratio). d parameters here |
| 14 | include both ordinary and restarted weak monitor conventions. |
| 15 | -/ |
| 16 | set_option autoImplicit false |
| 17 | noncomputable section |
| 18 | namespace YM.Next.Scheduling.Clock |
| 19 | open Filter Function Asymptotics Real Set |
| 20 | open scoped Topology |
| 21 | |
| 22 | def near (x a : ℝ) := |x-a| ≤ √x |
| 23 | |
| 24 | lemma same (x : ℝ) : near x x := by simp only [near,sub_self,abs_zero]; exact Real.sqrt_nonneg _ |
| 25 | |
| 26 | lemma away {x a : ℝ} (hx : 4 ≤ x) (h : near x a) : x/2 ≤ a := by |
| 27 | obtain ⟨-,h⟩:= abs_le.mp h |
| 28 | nlinarith [Real.sqrt_nonneg x, Real.sq_sqrt (by linarith : 0 ≤ x)] |
| 29 | |
| 30 | lemma advance {P : ℝ → Prop} (he : ∀ᶠ x in atTop, P x) : ∀ᶠ x in atTop, ∀ a, near x a → P a := by |
| 31 | obtain ⟨B,hB⟩:=eventually_atTop.1 he |
| 32 | filter_upwards [eventually_ge_atTop (2*B),eventually_ge_atTop (4:ℝ)] with x hX hx |
| 33 | exact fun a ha => hB a (le_trans (by linarith) (away hx ha)) |
| 34 | |
| 35 | def Lags (f : ℝ → ℝ) := ∀ ε : ℝ, 0<ε → ∀ᶠ x in atTop, ∀ a b, near x a → near x b → |f a - f b| ≤ ε |
| 36 | |
| 37 | lemma mean {f f' : ℝ → ℝ} (h : ∀ᶠ x : ℝ in atTop, HasDerivAt f (f' x) x) |
| 38 | (hp : Tendsto (fun x : ℝ => f' x*√x) atTop (𝓝 0)) : Lags f := by |
| 39 | intro ε hε |
| 40 | have he := hp.norm.eventually (ge_mem_nhds (show ‖(0:ℝ)‖ < ε/4 by simp [hε])) |
| 41 | filter_upwards [eventually_ge_atTop (4:ℝ),advance (he.and h)] with x hx hF |
| 42 | intro a b ha hb |
| 43 | have ht : 0 < x := by linarith |
| 44 | have hX : 0 < √x := Real.sqrt_pos.2 ht |
| 45 | let I := Icc (x-√x) (x+√x) |
| 46 | have hi (u : ℝ) : u∈I ↔ near x u := by simp only [I,mem_Icc,near,abs_le]; constructor <;> rintro ⟨h,h'⟩ <;> constructor <;> linarith |
| 47 | have hz (u) (hu : u∈I) : ‖f' u‖ ≤ ε/(2*√x) := by |
| 48 | have hk := away hx ((hi u).mp hu) |
| 49 | have hh := (hF u ((hi u).mp hu)).1 |
| 50 | simp only [norm_mul,norm_of_nonneg (Real.sqrt_nonneg _)] at hh |
| 51 | have hy : √x ≤ 2*√u := by |
| 52 | have := Real.sqrt_nonneg u; nlinarith [Real.sq_sqrt ht.le, Real.sq_sqrt (by linarith : 0 ≤ u)] |
| 53 | apply (le_div_iff₀ (by positivity)).mpr |
| 54 | have hr := mul_le_mul_of_nonneg_left hy (norm_nonneg (f' u)) |
| 55 | linarith |
| 56 | have hR := Convex.norm_image_sub_le_of_norm_hasDerivWithin_le (fun u hu => (hF u ((hi u).1 hu)).2.hasDerivWithinAt) |
| 57 | hz (convex_Icc ..) ((hi b).2 hb) ((hi a).2 ha) |
| 58 | simp only [Real.norm_eq_abs] at hR |
| 59 | apply hR.trans |
| 60 | have hh : |a-b| ≤ 2*√x := by |
| 61 | obtain ⟨h,h'⟩:=abs_le.mp ha |
| 62 | obtain ⟨hx,hx'⟩:=abs_le.mp hb |
| 63 | apply abs_le.mpr; constructor <;> linarith |
| 64 | calc |
| 65 | _ ≤ _ := mul_le_mul_of_nonneg_left hh (by positivity) |
| 66 | _ = ε := by field_simp |
| 67 | |
| 68 | lemma root_identity {x : ℝ} (h : 0 < x) : x⁻¹*√x=gap x := by |
| 69 | unfold gap |
| 70 | have he : 0 < √x := Real.sqrt_pos.2 h |
| 71 | field_simp; nlinarith [Real.sq_sqrt h.le] |
| 72 | |
| 73 | lemma lags_log : Lags log := by |
| 74 | apply mean (f':=fun x => x⁻¹) |
| 75 | · filter_upwards [eventually_gt_atTop (0:ℝ)] with x hx using Real.hasDerivAt_log hx.ne' |
| 76 | apply checks_gauge.congr'; filter_upwards [eventually_gt_atTop (0:ℝ)] with x hx using (root_identity hx).symm |
| 77 | |
| 78 | lemma Lags.scale {f : ℝ → ℝ} (h : Lags f) (p : ℝ) : Lags (fun x => p*f x) := by |
| 79 | intro ε hε; filter_upwards [h (ε/(|p|+1)) (by positivity)] with x hx |
| 80 | intro a b ha hb; have hz := hx a b ha hb |
| 81 | have ht := (le_div_iff₀ (by positivity)).1 hz |
| 82 | rw [← mul_sub,abs_mul]; linarith [abs_nonneg (f a-f b)] |
| 83 | |
| 84 | lemma Lags.fixes {f g : ℝ → ℝ} (h : Lags f) (he : f =ᶠ[atTop] g) : Lags g := by |
| 85 | intro ε hε; filter_upwards [h ε hε,advance he] with x hx he a b ha hb |
| 86 | rw [← he a ha, ← he b hb]; exact hx a b ha hb |
| 87 | |
| 88 | private def tickDeriv (d x : ℝ) := d * tick x ^ (d-1)*(log x)⁻¹*x⁻¹ |
| 89 | private lemma deriv_tick (d : ℝ) : ∀ᶠ x : ℝ in atTop, HasDerivAt (fun x => tick x^d) (tickDeriv d x) x := by |
| 90 | filter_upwards [eventually_gt_atTop (exp 1),clock.eventually (eventually_gt_atTop (0:ℝ))] with x hx h1 |
| 91 | have ht : 1 < x := (one_lt_exp_iff.2 zero_lt_one).trans hx |
| 92 | have h := HasDerivAt.rpow_const (p:=d) (HasDerivAt.log (Real.hasDerivAt_log (show x≠0 by linarith)) (log_pos ht).ne') |
| 93 | (Or.inl (ne_of_gt (show 0<tick x from h1))) |
| 94 | convert h using 1 <;> simp only [tickDeriv,tick] |
| 95 | ring |
| 96 | |
| 97 | private lemma tick_rate (d : ℝ) : Tendsto (fun x : ℝ => tick x^(d-1)*(log x)⁻¹) atTop (𝓝 0) := by |
| 98 | have hl := tendsto_rpow_mul_exp_neg_mul_atTop_nhds_zero (d-1) 1 zero_lt_one |
| 99 | refine (hl.comp clock).congr' ?_ |
| 100 | filter_upwards [eventually_gt_atTop (1:ℝ)] with x hx; dsimp only [comp_apply] |
| 101 | rw [neg_mul,one_mul,exp_neg,log_tick hx] |
| 102 | |
| 103 | lemma lags_tick (d : ℝ) : Lags (fun x => tick x^d) := by |
| 104 | apply mean (deriv_tick d) |
| 105 | have ht : Tendsto (fun x : ℝ => d*(tick x^(d-1)*(log x)⁻¹)*gap x) atTop (𝓝 0) := by |
| 106 | simpa using (((tick_rate d).const_mul d).mul checks_gauge) |
| 107 | apply ht.congr'; filter_upwards [eventually_gt_atTop (0:ℝ)] with x hx |
| 108 | unfold tickDeriv; rw [← root_identity hx]; ring |
| 109 | |
| 110 | lemma lags_watch (d p : ℝ) : Lags (fun x => watch d x^p) := by |
| 111 | let f (x : ℝ) := exp (p*tick x^d) |
| 112 | have he : (fun x => watch d x^p)=f := by ext x; unfold f watch; rw [← exp_mul,mul_comm p] |
| 113 | rw [he] |
| 114 | apply mean (f':=fun x => f x*p*tickDeriv d x) |
| 115 | · filter_upwards [deriv_tick d] with x hx |
| 116 | convert (hx.const_mul p).exp using 1; unfold f; ring |
| 117 | have hx : Tendsto (fun x => f x*gap x) atTop (𝓝 0) := by |
| 118 | rw [← he]; simpa using light d p 1 (by norm_num) |
| 119 | have ht : Tendsto (fun x => (f x*gap x)*p*d*(tick x^(d-1)*(log x)⁻¹)) atTop (𝓝 0) := by |
| 120 | simpa using (((hx.mul_const _).mul_const _).mul (tick_rate d)) |
| 121 | apply ht.congr'; filter_upwards [eventually_gt_atTop (0:ℝ)] with x hx |
| 122 | unfold tickDeriv; rw [← root_identity hx]; ring |
| 123 | |
| 124 | def Similar (f : ℝ → ℝ) := ∀ θ : ℝ, 1<θ → ∀ᶠ x in atTop, ∀ a b, near x a → near x b → f a ≤ θ*f b |
| 125 | |
| 126 | lemma Lags.affords {f : ℝ → ℝ} (h : Lags (fun x => log (f x))) (hp : ∀ᶠ x in atTop,0 < f x) : Similar f := by |
| 127 | intro θ hθ |
| 128 | filter_upwards [h _ (log_pos hθ),advance hp] with x hx hm a b ha hb |
| 129 | apply (Real.log_le_log_iff (hm a ha) (mul_pos (by linarith) (hm b hb))).mp |
| 130 | rw [Real.log_mul (by linarith) (hm b hb).ne'] |
| 131 | have := (abs_le.mp (hx a b ha hb)).2; linarith |
| 132 | |
| 133 | lemma similar_gap_power (a : ℝ) : Similar (fun x => gap x ^ a) := by |
| 134 | apply Lags.affords |
| 135 | · refine (lags_log.scale (-(a/2))).fixes ?_ |
| 136 | filter_upwards [eventually_gt_atTop (0:ℝ)] with x hx |
| 137 | rw [log_rpow (gp hx),log_gap hx]; ring |
| 138 | filter_upwards [eventually_gt_atTop (0:ℝ)] with x hx using Real.rpow_pos_of_pos (gp hx) _ |
| 139 | |
| 140 | lemma similar_watch_power (d p : ℝ) : Similar (fun x => watch d x ^ p) := by |
| 141 | apply Lags.affords |
| 142 | · simpa only [watch, ← exp_mul, log_exp,mul_comm p] using (lags_tick d).scale p |
| 143 | exact Eventually.of_forall fun x => Real.rpow_pos_of_pos (wp d x) _ |
| 144 | |
| 145 | lemma similar_gas (d p u : ℝ) : Similar (fun x => exp (-u * watch d x ^ p)) := by |
| 146 | apply Lags.affords _ (Eventually.of_forall fun x => exp_pos _) |
| 147 | simpa only [log_exp] using (lags_watch d p).scale (-u) |
| 148 | |
| 149 | lemma similar_log_sq : Similar (fun x => log x^ (2:ℕ)) := by |
| 150 | apply Lags.affords |
| 151 | · simpa [tick] using (lags_tick 1).scale 2 |
| 152 | filter_upwards [eventually_gt_atTop (1:ℝ)] with x hx using pow_pos (log_pos hx) _ |
| 153 | |
| 154 | lemma similar_cover : Similar (fun x => (cover x:ℝ)) := by |
| 155 | intro θ hθ |
| 156 | let c := (1+θ)/2 |
| 157 | have hh : 1 < c := by unfold c; linarith |
| 158 | have ht : 0 < θ-c := by unfold c; linarith |
| 159 | have hm := (Tendsto.const_mul_atTop ht ((tendsto_pow_atTop (by norm_num : (2:ℕ)≠0)).comp tendsto_log_atTop)) |
| 160 | filter_upwards [similar_log_sq c hh,advance (hm.eventually_ge_atTop 1)] with x hx hp a b ha hb |
| 161 | have he : log a^ (2:ℕ) ≤ c*log b^ (2:ℕ) := hx a b ha hb |
| 162 | have hu : 1 ≤ (θ-c)*log b^ (2:ℕ) := hp b hb |
| 163 | apply le_trans _ (mul_le_mul_of_nonneg_left (Nat.le_ceil (log b^ (2:ℕ))) (by linarith)) |
| 164 | exact le_trans (Nat.ceil_lt_add_one (sq_nonneg _)).le (by linarith) |
| 165 | end YM.Next.Scheduling.Clock |