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.Perfect.Tensor |
| 2 | |
| 3 | /-! # Jet gain normalized -/ |
| 4 | set_option autoImplicit false |
| 5 | noncomputable section |
| 6 | namespace YM.Trace.Perfect |
| 7 | open Stationary Filter Function Matrix Lattice Precision Finset OrderedFinpartition |
| 8 | open scoped Topology BigOperators ContDiff |
| 9 | variable {I J W:Type} [Fintype I] [DecidableEq I] [Fintype J] [DecidableEq J] [Fintype W] [DecidableEq W] |
| 10 | {m : ℕ} {X : Type*}[NormedAddCommGroup X][NormedSpace ℝ X] |
| 11 | |
| 12 | def sail (f:Rays I → Rays J) (x:Rays I)(A:I→ℕ)(m : ℕ)(j:J)(α : ℝ)(t:ℕ)(r:ℝ) := cost A α t r fun v=> leaf f x m v j |
| 13 | lemma sail_nn (f:Rays I → Rays J)(x A m j α t r): 0 ≤ sail f x A m j α t r:= cost_nn .. |
| 14 | lemma sail_anti (f:Rays I → Rays J)(x A m j α t r s) (h:0 ≤ α)(hp:r ≤ s): sail f x A m j α t s ≤ sail f x A m j α t r:=cost_anti _ _ _ _ _ _ h hp |
| 15 | |
| 16 | def rush (L : ℝ)(r : ℕ):= L⁻¹ * min 1 ((1+r)/L) |
| 17 | lemma rush_nn {L:ℝ}(h:0<L)(r): 0 ≤ rush L r:=mul_nonneg (inv_nonneg.mpr h.le) (le_min (by norm_num) (by positivity)) |
| 18 | lemma rush_incr {L:ℝ}(h:0<L): Monotone (rush L):= by |
| 19 | intro i j he; unfold rush; gcongr |
| 20 | lemma moment_collect {α β L:ℝ}(t r)(ha:0 ≤ α)(hL:1 ≤ L)(he:α/L ≤ β) : shelter α t ((r:ℕ)/L) ≤ spot β t 0 r:=by |
| 21 | unfold shelter spot |
| 22 | have hp : 0<L:= lt_of_lt_of_le zero_lt_one hL; have ht : 0 ≤ (r:ℝ)/L:=by positivity |
| 23 | simp only [sub_zero, max_eq_right (show (0:ℝ) ≤ r from Nat.cast_nonneg _)] |
| 24 | refine mul_le_mul ?_ ?_ (Real.exp_pos _).le (by positivity) |
| 25 | · exact pow_le_pow_left₀ (by positivity) (by linarith only [div_le_self (show 0≤ (r:ℝ) from Nat.cast_nonneg _) hL]) t |
| 26 | apply Real.exp_monotone (le_trans (le_of_eq (show α*((r:ℝ)/L)=α/L*r by ring)) (mul_le_mul_of_nonneg_right he (Nat.cast_nonneg _))) |
| 27 | lemma golden {α β L:ℝ}(n t r)(hL:1 ≤ L)(he:α/L ≤ β)(hk:n ≤ t) : |
| 28 | shelter α t ((r:ℕ)/L) * rush L r^n ≤ (2:ℝ)^n/L^(2*n) * spot β t 0 r:=by |
| 29 | have h : 0<L:=lt_of_lt_of_le zero_lt_one hL |
| 30 | have hx:0≤(r:ℝ):=Nat.cast_nonneg _ |
| 31 | let u:= min 1 ((1+r)/L); let v:ℝ:= 1+r/L |
| 32 | have hu:0 ≤ u:= le_min zero_le_one (by positivity) |
| 33 | have hv0:0 ≤ v:= by unfold v; positivity |
| 34 | have hv:v ≤ 1+r := add_le_add_right (div_le_self hx hL) _ |
| 35 | have hf: v * (L⁻¹ * u) ≤ (2/L^2)*(1+r) := by |
| 36 | by_cases hh:(r:ℝ) ≤ L |
| 37 | · have hs : v ≤ 2:= by unfold v; linarith only [div_le_one h|>.mpr hh] |
| 38 | apply le_trans (mul_le_mul hs (mul_le_mul_of_nonneg_left (min_le_right ..) (inv_nonneg.mpr h.le)) (by positivity : 0 ≤ L⁻¹*u) (by norm_num : (0:ℝ)≤2)) (le_of_eq ?_); field_simp |
| 39 | have he: 1 ≤ (r:ℝ)/L:= (one_le_div h).mpr (le_of_not_ge hh) |
| 40 | calc |
| 41 | _ ≤ (2*((r:ℝ)/L))*(L⁻¹*1) := mul_le_mul (show v ≤ _ by unfold v; linarith) (mul_le_mul_of_nonneg_left (min_le_left ..) (by positivity)) (by positivity) (by positivity) |
| 42 | _ = (2/L^2)*r := by field_simp |
| 43 | _ ≤ _ := mul_le_mul_of_nonneg_left (by linarith) (by positivity) |
| 44 | have hr : rush L r = L⁻¹*u := rfl |
| 45 | have hm : Real.exp (α * ((r:ℝ)/L)) ≤ Real.exp (β*r) := Real.exp_monotone (le_trans (le_of_eq (show α*((r:ℝ)/L)=α/L*r by ring)) (mul_le_mul_of_nonneg_right he hx)) |
| 46 | have hh : v^t*(rush L r)^n ≤ ((2:ℝ)/L^2)^n * (1+(r:ℝ))^t := calc |
| 47 | _ = v^(t-n) * (v*rush L r)^n:= by rw [mul_pow, ← mul_assoc,← pow_add]; congr 2; omega |
| 48 | _ ≤ (1+(r:ℝ))^(t-n) * ((2/L^2)*(1+r))^n := mul_le_mul (pow_le_pow_left₀ hv0 hv _) (pow_le_pow_left₀ (mul_nonneg hv0 (rush_nn h _)) hf n) (by apply pow_nonneg (mul_nonneg hv0 (rush_nn h _))) (by positivity) |
| 49 | _ = _:= by rw [mul_pow,mul_left_comm,← pow_add]; congr 2; omega |
| 50 | have ht := mul_le_mul hh hm (Real.exp_pos _).le (by positivity); unfold spot; unfold shelter; unfold v at ht; rw [div_pow,← pow_mul] at ht; simp only [sub_zero,max_eq_right hx]; exact le_trans (le_of_eq (mul_right_comm ..)) (ht.trans_eq (mul_assoc ..)) |
| 51 | |
| 52 | open Planned.PrimaryIntegral295.Cases |
| 53 | variable {α β L:ℝ} {A:I→ℕ} {B:J→ℕ}{t:ℕ} |
| 54 | def ferries (A:I→ℕ)(α t) (g:Rays J→ X) (f:Rays I→ Rays J) (x:Rays I)(c:OrderedFinpartition m):=cost A α t 0 fun b=> caseRead c g f x (desk ∘ b) |
| 55 | lemma fares (g:Rays J→ X) (f:Rays I → Rays J)(x:Rays I) (c:OrderedFinpartition m) (hL : 1≤L) (ha:0≤α) : |
| 56 | ferries A α t g f x c ≤ ∑ z, (shelter α t ((limitN B z)/L) * ∏ i, sail f x A (c.partSize i) (z i) α t ((limitN B z)/L))* ‖leaf g (f x) _ z‖ := by |
| 57 | exact volume_join A _ _ c (iteratedFDeriv ℝ c.length g (f x)) (fun i=>leaf f x (c.partSize i)) (fun z=>(limitN B z)/L) ha (fun z=>by have he:= lt_of_lt_of_le zero_lt_one hL; positivity) |
| 58 | lemma fee_coarse {g:Rays J→ X}{f:Rays I → Rays J}{x:Rays I}(c:OrderedFinpartition m) (hL : 1≤L) (ha:0≤α) (hx : α/L ≤ β) (F: Fin c.length→ℝ) (hr : ∀ i j, sail f x A (c.partSize i) j α t (B j/L) ≤ F i) : |
| 59 | ferries A α t g f x c ≤ (∏ i,F i) * cost B β t 0 (leaf g (f x) c.length) := by |
| 60 | have hp := lt_of_lt_of_le zero_lt_one hL; refine (fares g f x c (A:=A) (B:=B) hL ha).trans ?_ |
| 61 | unfold cost; rw [Finset.mul_sum]; apply sum_le_sum; intro i _; rw [← mul_assoc, mul_comm (∏ j,F j)]; apply mul_le_mul_of_nonneg_right _ (norm_nonneg _) |
| 62 | have hz : ∀ j,sail f x A (c.partSize j) (i j) α t ((limitN B i)/L)≤F j:=fun j=>(sail_anti _ _ _ _ _ _ _ (B (i j)/L) _ ha (div_le_div_of_nonneg_right (Nat.cast_le.mpr (limitN_ge B i j)) hp.le)).trans (hr j (i j)) |
| 63 | exact le_trans (mul_le_mul_of_nonneg_left (prod_le_prod (fun j _=> sail_nn ..) (fun j _=> hz j)) (shelter_pos _ _ (by positivity)).le) (mul_le_mul_of_nonneg_right (moment_collect t _ ha hL hx) (prod_nonneg fun j _=> (sail_nn ..).trans (hz j))) |
| 64 | lemma fee_atomic {g:Rays J→ X}{f:Rays I → Rays J}{x:Rays I}(hL : 1≤L) (ha:0≤α) (hx : α/L ≤ β)(hm:m≤t) {S:ℝ}(hs:0 ≤ S) (hr: ∀ j,sail f x A 1 j α t (B j/L)≤ S * rush L (B j)) : |
| 65 | ferries A α t g f x (.atomic m) ≤ (S*2/L^2)^m * cost B β t 0 (leaf g (f x) m):=by |
| 66 | let c:=atomic m; refine (fares g f x (B:=B) c hL ha).trans ?_; unfold cost; rw [Finset.mul_sum]; apply sum_le_sum; intro i _; rw [←mul_assoc]; apply mul_le_mul_of_nonneg_right _ (norm_nonneg _) |
| 67 | let R:= limitN B i; have hp:= lt_of_lt_of_le zero_lt_one hL; have hh:= rush_nn hp R |
| 68 | let Z:=∏ j,sail f x A (c.partSize j) (i j) α t (R/L) |
| 69 | have hz: Z ≤ (S*rush L R)^c.length:=by |
| 70 | unfold Z |
| 71 | refine (prod_le_prod (fun j _=> sail_nn ..) (g:=fun _=> S*rush L R) (fun j _ => ?_)).trans_eq (by simp) |
| 72 | have he:=limitN_ge B i j |
| 73 | exact ((sail_anti _ _ _ 1 _ _ _ (B (i j)/L) _ ha (div_le_div_of_nonneg_right (Nat.cast_le.mpr he) hp.le)).trans (hr _)).trans (mul_le_mul_of_nonneg_left (rush_incr hp he) hs) |
| 74 | change shelter α t (R/L)*Z ≤ _ |
| 75 | calc |
| 76 | _ ≤ shelter α t (R/L)*(S*rush L R)^m:= mul_le_mul_of_nonneg_left hz (shelter_pos _ _ (by positivity)).le |
| 77 | _ = S^m*(shelter α t (R/L)*rush L R^m) := by ring |
| 78 | _ ≤ S^m*(2^m/L^(2*m)*spot β t 0 R):= mul_le_mul_of_nonneg_left (golden m _ _ hL hx hm) (pow_nonneg hs _) |
| 79 | _ = _:= by rw [div_pow,mul_pow,pow_mul]; unfold R; ring_nf; rfl |
| 80 | |
| 81 | lemma split_fees (g:Rays J→X)(f:Rays I → Rays J) (x:Rays I) (he : ContDiffAt ℝ ω g (f x))(hx : ContDiffAt ℝ ω f x)(n : ℕ): cost A α t 0 (leaf (g ∘ f) x n) ≤ ∑ c: OrderedFinpartition n, ferries A α t g f x c:= by |
| 82 | let P c b := caseRead (n:=n) c g f x (desk ∘ b) |
| 83 | have hz : leaf (g ∘ f) x n=(fun b=>∑ c,P c b):= funext fun b=> compReads he hx (by simp) _ |
| 84 | rw [hz]; exact cost_sum .. |
| 85 | |
| 86 | end YM.Trace.Perfect |