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.Extra.WILSON_STARTUP.Cake |
| 2 | |
| 3 | /-! |
| 4 | # Sufficient per-stage delays before realizing the schedule |
| 5 | |
| 6 | All asymptotics for startup asks only. s = log hatBeta (not the RG scale). |
| 7 | Stage fixed, delays upgradeable, no dependence on N,p or accumulated number |
| 8 | of steps in that stage. No assertion that continuation/source/spectral asks |
| 9 | have been purchased with these same choices. |
| 10 | -/ |
| 11 | noncomputable section |
| 12 | set_option autoImplicit false |
| 13 | namespace YM.WilsonStartup.Timing |
| 14 | open Function Filter RG Wilson Lattice Design Work Start |
| 15 | open Real (log exp) |
| 16 | open scoped Matrix.Norms.Frobenius Topology |
| 17 | variable {G : Gauge} |
| 18 | |
| 19 | def M (s : ℝ) := exp ((log s)^2) |
| 20 | def temp (s : ℝ) := exp (-(s/2)+(log s)^2) |
| 21 | def normE (s : ℝ) := exp (-(11/10)*s) |
| 22 | def normK (s : ℝ) := exp (-exp ((log s)^2/5)) |
| 23 | def balls (s : ℝ) := Nat.ceil (s^2) |
| 24 | def quota (s : ℝ) := exp (-M s/2) |
| 25 | |
| 26 | lemma small {ε : ℝ} (he : 0<ε) : ∀ᶠ s in atTop,(log s)^2 ≤ ε*s := by |
| 27 | filter_upwards [Real.isLittleO_pow_log_id_atTop (n:=2) |>.def he, eventually_ge_atTop (0:ℝ)] with s hs h |
| 28 | simpa only [Real.norm_of_nonneg (sq_nonneg _),id_eq,Real.norm_of_nonneg h] using hs |
| 29 | |
| 30 | lemma growing : Tendsto M atTop atTop := Real.tendsto_exp_atTop.comp ((tendsto_pow_atTop (n:=2) (by omega)).comp Real.tendsto_log_atTop) |
| 31 | lemma nballs : Tendsto balls atTop atTop := tendsto_nat_ceil_atTop.comp (tendsto_pow_atTop (n:=2) (by omega)) |
| 32 | |
| 33 | lemma shrinking : Tendsto temp atTop (𝓝 0) := by |
| 34 | refine Real.tendsto_exp_atBot.comp (f:=fun s => -(s/2)+(log s)^2) (tendsto_atBot_mono' atTop (f₁ := fun s : ℝ => (-1/4:ℝ)*s) ?_ ?_) |
| 35 | · filter_upwards [small (ε:=1/4) (by norm_num)] with s h; change -(s/2)+(log s)^2 ≤ _; linarith |
| 36 | exact tendsto_id.const_mul_atTop_of_neg (by norm_num) |
| 37 | |
| 38 | lemma cut (p : Clip) : ∀ᶠ s in atTop, 2 ≤ temp s * exp (((balls s - 2 : ℕ) : ℝ)/p.relaxation) := by |
| 39 | filter_upwards [nballs.eventually_ge_atTop 2, eventually_ge_atTop (2*p.relaxation),eventually_ge_atTop (log 2+2/p.relaxation)] with s h hs h' |
| 40 | have he : s^2 ≤ (balls s:ℝ) := Nat.le_ceil _ |
| 41 | have hp := p.radius_pos |
| 42 | have hx : 2*s ≤ (balls s:ℝ)/p.relaxation := (le_div_iff₀ hp).mpr (by nlinarith) |
| 43 | have hs0 : 0 ≤ s := by linarith |
| 44 | rw [temp, ← Real.exp_add,← Real.log_le_iff_le_exp (by norm_num), Nat.cast_sub h]; push_cast; rw [sub_div] |
| 45 | linarith [sq_nonneg (log s)] |
| 46 | |
| 47 | lemma afford (G : Gauge) (A : Stage) : ∀ᶠ s : ℝ in atTop,∀ b : BudgetPoint, |
| 48 | b.order=A.order → b.power=A.power → b.supportExponent=A.supportExponent → b.threshold=temp s → |
| 49 | book G b (2*exp s) ≤ normE s := by |
| 50 | let C := (Fintype.card Signed:ℝ)*Fintype.card PlaqAxes*(exp (A.supportExponent*5^4)*(2*Start.price G A.order A.power)) |
| 51 | have hC : 0<C := by unfold C; have := (constants G A.order A.power).1; positivity |
| 52 | filter_upwards [small (ε:=1/40) (by norm_num),eventually_ge_atTop (4*log C)] with s h hs b hk hP ha ht |
| 53 | have hh : book G b (2*exp s) = exp (log C + s + 5*(-(s/2)+(log s)^2)) := by |
| 54 | simp only [book,item,overhead,ha,hk,hP,ht,temp] |
| 55 | rw [Real.exp_add (log C + s), Real.exp_add (log C), Real.exp_log hC,show (5:ℝ)=(↑(5:ℕ):ℝ) by norm_num,Real.exp_nat_mul]; unfold C; push_cast; ring |
| 56 | rw [hh,normE,Real.exp_le_exp]; linarith [sq_nonneg (log s)] |
| 57 | |
| 58 | lemma hard_growth (N : ℕ) : ∀ᶠ s : ℝ in atTop, s^N ≤ exp ((log s)^2/5) := by |
| 59 | filter_upwards [Real.tendsto_log_atTop.eventually_ge_atTop ((5:ℝ)*N),eventually_gt_atTop (0:ℝ)] with s hs h |
| 60 | have hN : 0 ≤ (N : ℝ) := by positivity |
| 61 | rw [show s^N = exp ((N:ℝ)* log s) by rw [Real.exp_nat_mul,Real.exp_log h],Real.exp_le_exp]; nlinarith |
| 62 | |
| 63 | lemma many : ∀ᶠ s in atTop, ((2*balls s+2*balls s+1:ℕ):ℝ)^4 ≤ M s / 4 := by |
| 64 | filter_upwards [hard_growth 16,eventually_ge_atTop (4:ℝ)] with s hs hx |
| 65 | have hB : (balls s : ℝ) ≤ s^2+1 := (Nat.ceil_lt_add_one (sq_nonneg _)).le |
| 66 | have hM : s^16 ≤ M s := hs.trans (Real.exp_le_exp.mpr (by nlinarith [sq_nonneg (log s)])) |
| 67 | have he : 2 * (((2*balls s+2*balls s+1:ℕ):ℝ)) ≤ s^4 := by |
| 68 | push_cast; nlinarith [sq_nonneg (s^2-8)] |
| 69 | calc |
| 70 | _ ≤ (s^4/2)^4 := by gcongr; linarith |
| 71 | _ = s^16/16 := by ring |
| 72 | _ ≤ _ := by have hm : 0 < M s := Real.exp_pos _; linarith |
| 73 | |
| 74 | lemma loan (a : ℝ) : ∀ᶠ s in atTop, ∀ b : BudgetPoint, b.threshold=temp s → b.B=balls s → b.supportExponent=a → |
| 75 | Loan b (exp s/2) (M s) (M s) (quota s) ∧ Bid.quote (M s) (exp (quota s)-1) ≤ normK s := by |
| 76 | filter_upwards [many, growing.eventually_ge_atTop (64/share),growing.eventually_ge_atTop (4*((a+1+1)*5^4)), |
| 77 | Real.tendsto_log_atTop.eventually_ge_atTop 3] with s hM hh ha hs b ht hb he |
| 78 | have hm : 0 < M s := Real.exp_pos _ |
| 79 | have hq : 0 ≤ quota s := (Real.exp_pos _).le |
| 80 | have hw : exp (quota s)-1 ≤ 2*quota s := by |
| 81 | refine (le_abs_self _).trans ((Real.abs_exp_sub_one_le ?_).trans_eq (by rw [abs_of_nonneg hq])) |
| 82 | rw [abs_of_nonneg hq]; exact Real.exp_le_one_iff.mpr (by linarith) |
| 83 | have hc : ((b.B+b.B+1:ℕ):ℝ)^4 ≤ M s/4 := le_trans ?_ hM |
| 84 | · have hj := Real.add_one_le_exp (M s/2) |
| 85 | have hz : M s / 4 * (2*quota s) ≤ 1 := by |
| 86 | rw [quota,neg_div,Real.exp_neg]; field_simp; linarith |
| 87 | have hl := (mul_le_mul hc hw (sub_nonneg.mpr (Real.one_le_exp hq)) (by positivity)).trans hz |
| 88 | refine ⟨⟨by positivity,hm.le,?_,⟨by have := b.exponent_pos; positivity,?_,?_⟩,hl⟩,?_⟩ |
| 89 | · unfold gain; rw [ht] |
| 90 | have hf : exp s * (temp s)^2 = (M s)^2 := by |
| 91 | unfold temp M; rw [← Real.exp_nat_mul, ← Real.exp_add,← Real.exp_nat_mul]; congr 1; push_cast; ring |
| 92 | rw [div_le_iff₀ share_pos] at hh |
| 93 | calc |
| 94 | _ ≤ (M s)^2*(share/32) := by nlinarith |
| 95 | _ = _ := by rw [← hf]; ring |
| 96 | · exact (mul_le_mul hc (by linarith) hq (by positivity)).trans hz |
| 97 | · rw [he,hb,quota, show -M s / 2 = M s/4 + (M s/4 - M s) by ring,Real.exp_add] |
| 98 | gcongr |
| 99 | · exact hM.trans ((le_add_of_nonneg_right zero_le_one).trans (Real.add_one_le_exp _)) |
| 100 | · linarith |
| 101 | unfold Bid.quote normK |
| 102 | have h₁ : exp (quota s)-1 ≤ 1 := (le_mul_of_one_le_left (sub_nonneg.mpr (Real.one_le_exp hq)) (one_le_pow₀ (by simp))).trans hl |
| 103 | calc |
| 104 | _ ≤ exp (-M s) * exp 1 := by gcongr; exact (sub_le_self _ zero_le_one).trans (Real.exp_le_exp.mpr h₁) |
| 105 | _ ≤ _ := by |
| 106 | rw [← Real.exp_add,Real.exp_le_exp,M] |
| 107 | have ht := Real.add_one_le_exp (4/5*(log s)^2) |
| 108 | have hj : 1 ≤ exp ((log s)^2/5) := Real.one_le_exp (by positivity) |
| 109 | rw [show exp ((log s)^2)=exp ((log s)^2/5)*exp (4/5*(log s)^2) by rw [← Real.exp_add]; congr 1; ring] |
| 110 | nlinarith |
| 111 | rw [hb]; gcongr <;> omega |
| 112 | |
| 113 | lemma enough (G : Gauge) (A : Stage) (h : A.clip.direct ≤ 1) : ∀ᶠ x : ℝ in atTop, ∀ a : Levels G, ∀ N, |
| 114 | a.params N=A → a.clock.hatBeta N=x → Allows a N := by |
| 115 | filter_upwards [Real.tendsto_log_atTop.eventually (cut A.clip), |
| 116 | Real.tendsto_log_atTop.eventually (shrinking.eventually (ge_mem_nhds (constants G A.order A.power).2.1)), |
| 117 | Real.tendsto_log_atTop.eventually (afford G A),Real.tendsto_log_atTop.eventually (loan A.supportExponent), |
| 118 | Real.tendsto_log_atTop.eventually (nballs.eventually_ge_atTop 2),eventually_gt_atTop (0:ℝ)] with x h₁ h₂ h₃ h₄ h₅ hx a N ha hN |
| 119 | let b := a.budget N |
| 120 | have hb : b.B=balls (log x) := congr_arg balls (congr_arg log hN) |
| 121 | have hp : (Real.sqrt x)⁻¹ = exp (-(log x / 2)) := by |
| 122 | rw [Real.exp_neg,Real.sqrt_eq_rpow,Real.rpow_def_of_pos hx]; congr 2; ring |
| 123 | have ht : b.threshold = temp (log x) := by |
| 124 | change (Real.sqrt (a.clock.hatBeta N))⁻¹ * exp _ = _ |
| 125 | unfold temp; rw [hN,hp,Real.exp_add] |
| 126 | have he : a.clock.allowance N = normE (log x) := by |
| 127 | unfold Calendar.allowance Calendar.hatCoupling normE; rw [hN,hp,← Real.exp_mul]; congr 1; ring |
| 128 | have hw : a.clock.forcedAllowance N = normK (log x) := by |
| 129 | unfold Calendar.forcedAllowance Calendar.monitor normK; rw [hN,← Real.exp_mul]; congr 3; ring |
| 130 | have hk : b.order=A.order := congr_arg Stage.order ha |
| 131 | have hP : b.power=A.power := congr_arg Stage.power ha |
| 132 | have hE : b.supportExponent=A.supportExponent := congr_arg Stage.supportExponent ha |
| 133 | refine ⟨⟨ha ▸ h,hb ▸ h₅,?_⟩, ?_, ?_,?_⟩ |
| 134 | · change 2 ≤ b.threshold*_ ; rw [ht, show (a.budget N).B=b.B from rfl,hb,ha]; exact h₁ |
| 135 | · rw [ha]; exact ht ▸ h₂ |
| 136 | · rw [he,hN,← Real.exp_log hx]; simpa using h₃ b hk hP hE ht |
| 137 | obtain ⟨q,r⟩ := h₄ b ht hb hE |
| 138 | rw [Real.exp_log hx] at q |
| 139 | rw [hN,hw]; exact ⟨_,_,_,q,r⟩ |
| 140 | end YM.WilsonStartup.Timing |