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.Terrace.Fund |
| 2 | set_option autoImplicit false |
| 3 | noncomputable section |
| 4 | namespace YM.Trace.Terrace |
| 5 | open Function Filter Set Lattice RG Wilson Labels Source MergeProof MergeProof.Accent Extra.Histories Bid Zn |
| 6 | open Extraction Next.UVStress Next.Rank.Price Next.Rank.East MergeProof.East Further.CorrectedLift Ward Climb Analysis StressFlux |
| 7 | open Further.PhysicalPeriodLimitF933 Work.D01 Work.G08 Next.Rank.Station |
| 8 | open scoped BigOperators Topology Matrix.Norms.Frobenius ContDiff Classical |
| 9 | variable {G:Gauge}{C:Family G} |
| 10 | private lemma stage_logs (P:Levels G)(c:ℝ)(h:0 <c):∀ᶠ i in atTop,∀ j:ℕ,i ≤ j → Work.D01.columnLogs P j -Work.D01.columnLogs P i ≤ c*gap P i j:=by |
| 11 | have hd : Tendsto (fun i : ℕ => ((P.clock.J (i+1):ℝ)^2)⁻¹) atTop (𝓝 0) := by |
| 12 | have ht := P.fits.deep.comp (tendsto_add_atTop_nat 1); exact tendsto_inv_atTop_zero.comp |
| 13 | ((tendsto_pow_atTop (n := 2) (by decide)).comp (tendsto_natCast_atTop_atTop.comp ht)) |
| 14 | obtain ⟨k,hk⟩:= eventually_atTop.mp (hd.eventually (ge_mem_nhds h)) |
| 15 | filter_upwards [eventually_ge_atTop k] with i hi j hj |
| 16 | induction j,hj using Nat.le_induction with |
| 17 | | base=> simp [gap] |
| 18 | | succ j hv ih=> |
| 19 | let p:=P.params (j+1); let z:= Real.log ((P.S.block j).val:ℝ); have he:0 < z:= zero_lt_one.trans_le ( (lowerQ P j).trans_eq (qNext P j)) |
| 20 | have hp: Real.log p.columns/z ≤ c:= le_trans ((Real.log_le_log (zero_lt_one.trans_le p.columns_ge) (show p.columns ≤ 1+p.paths+p.width⁻¹+p.columns+p.clip.relaxation+p.supportExponent by linarith only[p.paths_pos, inv_pos.mpr p.width_pos, p.clip.radius_pos, p.price_pos])|>.trans_eq rfl) |> fun h=> div_le_div_of_nonneg_right h he.le) ((P.fits.logCost j).trans (hk _ (hi.trans hv))) |
| 21 | rw [columnLogs_succ,triangle P i j, qNext]; linarith only [ih,(div_le_iff₀ he).mp hp] |
| 22 | lemma crescent (P:Levels G)(c:ℝ)(θ:PostT P)(h:G.Simple)(ht:0<c):∀ᶠ i in atTop,∀ j:ℕ,i≤j → j ≤ summit P i→ Real.exp (columnLogs P j-columnLogs P i) ≤ watch P c i:=by |
| 23 | filter_upwards [stage_logs P (c/2) (half_pos ht),back_gate _ h θ] with i he hv j hp hx |
| 24 | refine Real.exp_monotone ((he j hp).trans ((mul_le_mul_of_nonneg_left ((mono_gap P i j hx).trans hv) (by linarith only[ht]:0 ≤ c/2)).trans_eq ?_)); ring |
| 25 | set_option quotPrecheck false |
| 26 | local notation "A"=> C.path.levels |
| 27 | variable (H:C.Makes) {N i p d j k:ℕ} |
| 28 | local notation "T!"=> C.labels.level d |
| 29 | include H |
| 30 | lemma ribbon_cost(hN:j≤N)(hk:C.ref d ≤ i)(ht:i ≤ j) (v:C.label d) : (T!).coeffSize (Cturn C d j N p v) ≤ Real.exp (columnLogs (A) j-columnLogs (A) i)*(T!).coeffSize (Cturn C d i N p v) :=by |
| 31 | induction j,ht using Nat.le_induction with |
| 32 | | base=> rw[sub_self,Real.exp_zero,one_mul] |
| 33 | | succ j he IH=> |
| 34 | let c:= ((A).params (j+1)).columns; have hc:0<c:= zero_lt_one.trans_le ((A).params _).columns_ge |
| 35 | refine ((H.calibrated d N p ((hk.trans he).trans (j.le_succ.trans hN))).back j (hk.trans he) hN ((C.factory d N p).terminal.symm v)).trans ((mul_le_mul_of_nonneg_left (IH (by omega)) hc.le).trans_eq ?_) |
| 36 | rw [columnLogs_succ, add_comm (columnLogs (A) j),add_sub_assoc, Real.exp_add,Real.exp_log hc,mul_assoc] |
| 37 | |
| 38 | omit H in |
| 39 | lemma tiltP (b:ℝ){i:ℕ}(hp:b ≤ Next.Rank.Perch.y (C.path.levels.clock.hatBeta i)): mag (A) b i≤tilt_cap (A) i:=Real.rpow_le_rpow_of_exponent_le (Real.one_le_exp (sq_nonneg _)) hp |
| 40 | lemma ages_cost (T: Module.End ℂ (C.label d))(V: Tested C d k N p T)(hk:C.ref d ≤ k)(hn:k≤N)(v:C.label d)(hG:G.Simple)(ht:d≤5)(u:ℝ)(hp:1≤u): let a:=C.S.a k; let t:=(A|>.clock.monitor k); let L:= ladd C u k N p d T |
| 41 | (T!).coeffSize (Cturn C d k N p (L v)) ≤ a^d*(2*((2*t)^2 * u^d))* (T!).coeffSize v:=by |
| 42 | intro a t L; let y:=weightTag C d u v; let z:=shrink C k N p; have hy:0<z:=shrink_pos C H hn p; have he:T (L v)=(T!).scaled z⁻¹ y:=by unfold L ladd; rw[dif_pos (Tested.bijective C H hk hn T V)]; exact (LinearEquiv.ofBijective T (Tested.bijective C H hk hn T V)).apply_symm_apply _ |
| 43 | have hr:1 ≤ t:=Real.one_le_exp (sq_nonneg _) |
| 44 | have h(w:C.label d): (T!).coeffSize ((T!).scaled z⁻¹ w) ≤ (2*t)^2*(T!).coeffSize w:=by |
| 45 | have hK:z⁻¹ ≤ 2*t:=shrink_min C H hn p |
| 46 | unfold Frame.coeffSize; rw[Finset.mul_sum]; refine Finset.sum_le_sum (fun i _=>?_); rw [Frame.scaled_apply,norm_mul,Complex.norm_real,Real.norm_of_nonneg (pow_nonneg (inv_pos.mpr hy).le _)]; refine mul_le_mul_of_nonneg_right ((pow_le_pow_left₀ (inv_pos.mpr hy).le hK _).trans (pow_le_pow_right₀ (by linarith only[hr]) ?_)) (norm_nonneg _) |
| 47 | by_cases hi:i=0; · rw[hi,(T!).zero_degree];decide |
| 48 | exact (nbase (T!) ht i hi hG).2.2.le |
| 49 | have hy : (T!).coeffSize y ≤ u^d*(T!).coeffSize v:=by unfold Frame.coeffSize;rw[Finset.mul_sum]; refine Finset.sum_le_sum (fun i _=>?_); unfold y weightTag; simp only [LinearMap.coe_mk,AddHom.coe_mk,norm_mul,Complex.norm_pow, Complex.norm_real,Real.norm_of_nonneg (zero_le_one.trans hp)]; exact mul_le_mul_of_nonneg_right (pow_le_pow_right₀ hp ((T!).bound _)) (norm_nonneg _) |
| 50 | have hs:= V.cost C T (L v); rw [he] at hs; have hz := hs.trans (mul_le_mul_of_nonneg_left ((h _).trans (mul_le_mul_of_nonneg_left hy (sq_nonneg _))) zero_le_two) |
| 51 | unfold awake at hz; rw[Size.smul,norm_inv,norm_pow,Complex.norm_real,Real.norm_of_nonneg (C.S.a_pos _).le] at hz; have hg:0<a:=C.S.a_pos _ |
| 52 | apply le_of_mul_le_mul_left _ (show 0 < (a^d)⁻¹ from by positivity); refine hz.trans_eq ?_; generalize (T!).coeffSize v = Q |
| 53 | field_simp |
| 54 | lemma capacity_cost (d:ℕ)(ht:d≤5)(hG:G.Simple)(θ:PostT C.path.levels)(v:C.label d)(c:ℝ)(hc:0<c):∀ᶠ i:ℕ in atTop,∀ N p,summit C.path.levels i ≤ N →∀ (T:Module.End ℂ (C.label d)) (hv:Tested C d i N p T) (b:ℝ),1≤ b→ b ≤ tilt_cap C.path.levels i→∀ j:ℕ,i≤j→ j ≤ summit C.path.levels i → (C.labels.level d).coeffSize (Cturn C d j N p (ladd C b i N p d T v)) ≤ C.S.a i^d*watch C.path.levels c i:=by |
| 55 | let P:= C.path.levels; let f:= C.labels.level d; let y i:= P.clock.monitor i |
| 56 | have ht':Ticket P 0 y:= (favorite P hG).mono (( (hrate P hG).eventually (wave_sub 1 1 zero_lt_one)).mono (fun i h=>by |
| 57 | have hp : y i= Wave 1 (P.clock.hatBeta i):=by unfold y Wave RLog Calendar.monitor; rw [one_mul] |
| 58 | rw[hp];exact ⟨(wake ..).le, h.trans_eq (Real.rpow_one _)⟩)) |
| 59 | have he:Ticket P 0 (fun i=> 2*((2*y i)^2 * tilt_cap P i ^ d) * f.coeffSize v ):= ((sapTree hG P 2 zero_le_two).push ((((sapTree hG P 2 zero_le_two).push ht').pows hG 2).push ((titles P hG).pows hG d))).push (sapTree hG P _ (size_nonneg ..)) |
| 60 | filter_upwards [crescent P (c/2) θ hG (half_pos hc),he (c/2) (half_pos hc),eventually_ge_atTop (C.ref d)] with i hj hF hC N p hN T H' b hy hq j hm hk |
| 61 | let a:= C.S.a i; let m:= tilt_cap P i; have hp: 0<a:=C.S.a_pos _; have hε: b^d ≤ m^d:= pow_le_pow_left₀ (zero_le_one.trans hy) hq _ |
| 62 | let W:=watch P (c/2) i; have hw: 0 ≤ W:=(Real.exp_pos _).le |
| 63 | have hh: f.coeffSize (Cturn C d i N p (ladd C b i N p d T v)) ≤ a^d* W:=by |
| 64 | apply (ages_cost H T H' hC ((hm.trans hk).trans hN) v hG ht b hy).trans; change a^d*(2*((2*y i)^2 * b^d))*_≤_ ; linarith only [mul_le_mul_of_nonneg_left hF.2 (pow_nonneg hp.le d),mul_le_mul_of_nonneg_right hε (mul_nonneg (mul_nonneg (pow_nonneg hp.le d) (size_nonneg f v)) (sq_nonneg (2* y i)))] |
| 65 | refine (ribbon_cost H (p:=p) (hk.trans hN) hC hm _).trans ((mul_le_mul (hj _ hm hk) hh (size_nonneg ..) hw).trans_eq ?_); change W*(a^d*W)=_; rw [mul_left_comm]; unfold W; |
| 66 | unfold watch; rw [← Real.exp_add]; apply congr_arg; congr 1; ring |
| 67 | end YM.Trace.Terrace |