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.Labor |
| 2 | import YM.AnalyticNext.QUARTIC_MATCH.Hessian.Grade |
| 3 | import YM.AnalyticNext.QUARTIC_MATCH.Hessian.Stripe |
| 4 | |
| 5 | /-! # Lipschitz pivot by two parallel windows. -/ |
| 6 | set_option autoImplicit false |
| 7 | noncomputable section |
| 8 | namespace YM.Trace.Perfect |
| 9 | open Function Matrix Lattice Precision Laurent Stationary Bloch Next.Free Exterior Finset RG |
| 10 | open YM.AnalyticNext.QuarticMatch.Hessian |
| 11 | open scoped BigOperators Topology ContDiff Classical |
| 12 | variable {c f:Side} (S : StepData c f) |
| 13 | set_option quotPrecheck false |
| 14 | local notation "v"=> S.patch.Small |
| 15 | local notation "L"=> S.ratio.count |
| 16 | lemma across_w (t : Site S.ratio.count) (j:Axis)(h : 2*(lift t j+1) ≤ S.ratio.count.val): lift (t+ step j)=lift t+step j:=by |
| 17 | ext i; by_cases hi:i=j |
| 18 | · subst i; rw [grow_lit _ _ h]; simp |
| 19 | rw [glower_step _ _ _ _ (Ne.symm hi)]; simp [hi] |
| 20 | private def leak (t:Site S.ratio.count)(j:Axis):ℝ:=if S.ratio.count.val<2*(lift t j+1) then 1 else 0 |
| 21 | private lemma leaks (i:Axis) : ∑ t:Site S.ratio.count, leak S t i ≤ (S.ratio.count.val:ℝ)^3:=by |
| 22 | have hL:0<(L).val:= (L).property |
| 23 | have h (t:Site L): ∑ p : Per L, leak S (Function.update t i p) i ≤1:=by |
| 24 | let U p:=Function.update t i p |
| 25 | have hh(a b: Per L)(h:(L).val<2*(lift (U a) i+1))(hk:(L).val<2*(lift (U b) i+1)): a=b:=by |
| 26 | have hg: lift (U a) i=lift (U b) i:=by have ha:=lift_centers (U a) i; have hb:=lift_centers (U b) i; omega |
| 27 | have ha (x:Per L): ((lift (U x) i:ℤ):Per L)=x:=by unfold lift; simp [U,ZMod.coe_valMinAbs] |
| 28 | exact (ha a).symm.trans ((congr_arg (fun x:ℤ=>(x:Per L)) hg).trans (ha b)) |
| 29 | by_cases H:∃ p,(L).val<2*(lift (U p) i+1) |
| 30 | · obtain ⟨p,hp⟩:=H |
| 31 | rw [Finset.sum_eq_single p]; rotate_left |
| 32 | · intro b _ he; unfold leak; exact if_neg (fun hx=> he (hh _ _ hx hp)) |
| 33 | · simp |
| 34 | rw [leak, if_pos hp] |
| 35 | push Not at H |
| 36 | rw [Finset.sum_eq_zero (fun j _=>?_)] |
| 37 | · norm_num |
| 38 | unfold leak; exact if_neg (not_lt.mpr (H _)) |
| 39 | have hu (t: Site L): ∑ p:Per L, leak S (t+Pi.single i p) i ≤ 1:=by |
| 40 | change _ ≤ _ ; have He p:t+Pi.single i p= Function.update t i (p+t i):=by |
| 41 | ext j; by_cases H:j=i <;> simp [Pi.single_apply, H, Function.update, add_comm] |
| 42 | simp_rw [He]; rw [show (∑ p:Per L, leak S (Function.update t i (p+t i)) i)=∑ p:Per L,leak S (Function.update t i p) i from Equiv.sum_comp (Equiv.addRight (t i)) (fun p=> leak S (update t i p) i)]; exact h t |
| 43 | have hh(p:Per L): ∑ t:Site L,leak S (t+Pi.single i p) i = ∑ t:Site L,leak S t i:= Equiv.sum_comp (Equiv.addRight (Pi.single i p:Site L)) (fun t=> leak S t i) |
| 44 | have he: ∑ t:Site L,∑ p:Per L,leak S (t+Pi.single i p) i≤ ((L).val:ℝ)^4:= (Finset.sum_le_sum (fun j _=> hu j)).trans_eq (by simp [site_card]) |
| 45 | rw [Finset.sum_comm] at he; simp_rw [hh] at he |
| 46 | apply le_of_mul_le_mul_left _ (side_pos L); simp [ZMod.card,Per] at he; apply he.trans_eq; ring |
| 47 | |
| 48 | local notation "sδ"=> fun t:Site S.ratio.count=> wrap f (lift t) |
| 49 | local notation "R_"=> S.ratio.embed |
| 50 | abbrev emits (z : Site f) (k:Site f) :ℝ:= if z=k then 1 else 0 |
| 51 | lemma emits_run (z : Site f)(i : Axis)(x:Site f) : |
| 52 | ∑ b: Site c, |(∑ u : S.patch.Small,∑ t:S.patch.Small, emits (z+step i) (x+wrap f u.val + wrap f t.val + S.ratio.embed b))- (∑ u : S.patch.Small,∑ t:S.patch.Small, emits z (x+wrap f u.val + wrap f t.val+S.ratio.embed b))| ≤ 2*(S.ratio.count.val:ℝ)^3:=by |
| 53 | let k (z:Site f) (t : Site L) b := ∑ u:S.patch.Small, emits z (x+(sδ t)+wrap f u.val +R_ b) |
| 54 | have hk (z:Site f) b : (∑ u:S.patch.Small, ∑ t:S.patch.Small, emits z (x+wrap f u.val+wrap f t.val +R_ b))=∑ t:Site L,k z t b:=by |
| 55 | rw [← (Equiv.ofBijective (window S) (window_onto _)).sum_comp (fun u=> ∑ t:S.patch.Small, emits z (x+wrap f u.val+wrap f t.val+R_ b))]; rfl |
| 56 | let g (z:Site f) t:= ∑ b:Site c,k z t b |
| 57 | have hy (z:Site f) t : (∑ b:Site c,k z t b)=1:=by unfold k; rw [tile S _ (emits z)]; unfold emits; simp |
| 58 | have hf z t b: 0≤k z t b:= Finset.sum_nonneg fun _ _ => by unfold emits; split <;> norm_num |
| 59 | simp_rw [hk]; let Y:= (Equiv.addRight (step i:Site L)); have hx (b): ∑ t:Site L,k (z+step i) t b=∑ t:Site L,k (z+step i) (Y t) b:= (Equiv.sum_comp Y (fun t=> k (z+step i) t b)).symm |
| 60 | simp_rw [hx,← Finset.sum_sub_distrib]; apply le_trans (sum_le_sum (fun _ _=> Finset.abs_sum_le_sum_abs ..)) |
| 61 | rw [sum_comm] |
| 62 | apply le_trans (sum_le_sum (s:=univ) (g:=fun t=> 2*leak S t i) (fun t _=> ?_)) |
| 63 | · rw [← mul_sum]; exact mul_le_mul_of_nonneg_left (leaks S _) (by positivity) |
| 64 | unfold leak; split_ifs with ht |
| 65 | · rw [mul_one]; refine (sum_le_sum (s:=univ) (g:=fun b=> k (z+step i) (Y t) b+k z t b) (fun b _ => (abs_sub ..).trans_eq (by rw [abs_of_nonneg (hf ..),abs_of_nonneg (hf ..)]))).trans ?_ |
| 66 | rw [sum_add_distrib,hy,hy];norm_num |
| 67 | have he : lift (t+step i)=lift t+step i:= across_w S _ _ (le_of_not_gt ht) |
| 68 | rw [mul_zero, sum_eq_zero (fun b _=>?_)] |
| 69 | rw [show k (z+step i) (Y t) b=k z t b from ?_]; rotate_left |
| 70 | · apply Finset.sum_congr rfl; intro u _; have hh z y: emits (z+step i) (y+step i)= emits (f:=f) z y:=by simp [emits] |
| 71 | rw [show Y t=t+step i from rfl]; dsimp only; rw [he,map_add,wrap_step,show x+(_+step i)+(wrap f) u.val+S.ratio.embed b=x+wrap f (lift t)+wrap f u.val+R_ b+step i from by abel, hh] |
| 72 | simp |
| 73 | |
| 74 | lemma roll_turn (a b : Site f)(i: Axis)(n:ℕ): |
| 75 | ∑ w : Site c, |(∑ p:Fin (n+2)→ S.patch.Small, emits (b+step i) (a+wrap f (∑ j,(p j).val)+R_ w))- (∑ p:Fin (n+2)→ S.patch.Small, emits b (a+wrap f (∑ j,(p j).val)+ R_ w))| ≤ Fintype.card (Fin n → S.patch.Small)*(2*((L).val:ℝ)^3) :=by |
| 76 | let H (z : Site f) (w : Site c) (y : Cover):= emits z (a+wrap f y+R_ w) |
| 77 | let T (u:Fin n→ S.patch.Small)(z:Site f)(w:Site c):= ∑ p:S.patch.Small,∑ t:S.patch.Small, emits z (a+wrap f (∑ j,(u j).val)+wrap f p.val+wrap f t.val+ R_ w) |
| 78 | let E (n:ℕ) : ((Fin n→S.patch.Small)×S.patch.Small)≃(Fin (n+1)→S.patch.Small) := (Equiv.prodComm ..).trans (Fin.consEquiv (fun _:Fin (n+1)=> S.patch.Small)) |
| 79 | have hE (k:ℕ) (F:(Fin (k+1)→ S.patch.Small)→ℝ): ∑ p,F p=∑ u:Fin k→ S.patch.Small,∑ t:S.patch.Small,F (Fin.cons t u):= by rw [← (E k).sum_comp,Fintype.sum_prod_type];rfl |
| 80 | have hx z w:(∑ p:Fin (n+2)→ S.patch.Small,H z w (∑ j,(p j).val))=∑ p:Fin n → S.patch.Small,T p z w:=by |
| 81 | rw [hE (n+1),hE n]; refine sum_congr rfl fun p _=> sum_congr rfl fun t _=> sum_congr rfl fun q _=> ?_ |
| 82 | rw [Fin.sum_univ_succ]; simp_rw [Fin.cons_succ,Fin.cons_zero]; rw [Fin.sum_univ_succ]; simp only [Fin.cons_zero,Fin.cons_succ]; unfold H; rw [map_add,map_add]; congr 2; abel |
| 83 | change ∑ w: Site c, |(∑ p:Fin (n+2)→ S.patch.Small,H _ w (∑ j,(p j).val))-(∑ p:Fin (n+2)→ S.patch.Small,H _ w (∑ j,(p j).val))| ≤ _ |
| 84 | simp_rw [hx,← sum_sub_distrib]; apply le_trans (sum_le_sum (fun j _=> Finset.abs_sum_le_sum_abs ..)); rw [sum_comm]; exact (sum_le_sum (s:=univ) (fun j _=>emits_run S b i (a+wrap f (∑ k, (j k).val)))).trans_eq (by simp) |
| 85 | |
| 86 | lemma polar_turn (a b:Site f)(i:Axis) : |
| 87 | ∑ w: Site c, |(∑ p:S.patch.Points,S.patch.weight p*emits (b+step i) (a+atPoint S w p))-(∑ p:S.patch.Points,S.patch.weight p*emits b (a+atPoint S w p))| ≤ 2/((L).val:ℝ)^5:=by |
| 88 | let N:= S.patch.J-2; let n:= Fintype.card S.patch.Rolls; have hL: n>0:=Fintype.card_pos |
| 89 | have hx (x:S.patch.Small):x.val=x.val:=rfl |
| 90 | have he z w : ∑ p:S.patch.Points,S.patch.weight p*emits z (a+atPoint S w p)=(n:ℝ)⁻¹ * ∑ p:S.patch.Rolls, emits z (a+wrap f (∑ j,(p j).val)+R_ w):=by |
| 91 | unfold Patch.weight;simp_rw [sum_mul, ite_mul, zero_mul];rw [sum_comm];simp_rw [sum_ite_eq,mem_univ,if_true];rw [← mul_sum]; congr 1; apply sum_congr rfl; intro i _; unfold atPoint Patch.addRoll; rw [add_assoc] |
| 92 | have hN:S.patch.J=N+2:=by unfold N; have he:= S.patch.order_cut; omega |
| 93 | have hh x:(Fintype.card (Fin (x+2)→ S.patch.Small):ℝ)⁻¹ * ∑ w : Site c, |(∑ p:Fin (x+2)→ S.patch.Small, emits (b+step i) (a+wrap f (∑ j,(p j).val)+R_ w))- (∑ p:Fin (x+2)→ S.patch.Small, emits b (a+wrap f (∑ j,(p j).val)+ R_ w))| ≤ 2/((L).val:ℝ)^5:=by |
| 94 | apply le_trans (mul_le_mul_of_nonneg_left (roll_turn S a b i _) (inv_nonneg.mpr (by positivity))) |
| 95 | apply le_of_eq; rw [Fintype.card_fun, Fintype.card_fun,Fintype.card_fin,Fintype.card_fin, Nat.cast_pow,Nat.cast_pow,tile_size]; change _=2/(S.patch.L.val:ℝ)^5; rw [show (L)=S.patch.L from rfl]; field_simp; ring |
| 96 | simp_rw [he,← mul_sub,abs_mul,abs_of_nonneg (inv_nonneg.mpr (Nat.cast_nonneg (α:=ℝ) n)), ← mul_sum]; unfold n Patch.Rolls; rw [hN]; exact hh N |
| 97 | |
| 98 | lemma mean_shard (x : Site f)(z : Site c)(i j : TypeFace 1): mean S (z,j) (x,i)=if i=j then (∑ p:S.patch.Points,S.patch.weight p*∑ k ∈ range S.patch.L.val, emits x (k • step (axisEquiv.symm j)+atPoint S z p)) else 0 :=by |
| 99 | rw [show mean S (z,j) (x,i)= (mean S *ᵥ (Pi.single (x,i) 1)) (z,j) from ?_, mean_run_real]; rotate_left |
| 100 | · rw [Matrix.mulVec_single_one]; rfl |
| 101 | split_ifs with he |
| 102 | · subst i; refine sum_congr rfl fun a _=>?_ ; congr 1; apply Finset.sum_congr rfl; intro b _; simp [Pi.single_apply,emits,eq_comm,add_comm] |
| 103 | apply sum_eq_zero; intro _ _; simp [Pi.single_apply,he,Ne.symm he] |
| 104 | |
| 105 | lemma mean_motion (i:TypeFace 1)(x: Site f)(j:Axis): ∑ p : Body 1 c, |mean S p (x+step j,i)-mean S p (x,i)| ≤ 2/((L).val:ℝ)^4:=by |
| 106 | rw [Fintype.sum_prod_type, sum_comm]; rw [sum_eq_single i] |
| 107 | rotate_left |
| 108 | · intro b _ he; simp_rw [mean_shard]; simp only [if_neg (Ne.symm he),sub_zero, abs_zero,sum_const_zero] |
| 109 | · simp |
| 110 | simp only [mean_shard,↓reduceIte]; simp_rw [Finset.mul_sum] |
| 111 | let F (k:ℕ)(p : Site c)(z:Site f):=∑ t:S.patch.Points,S.patch.weight t * emits z (k • step (axisEquiv.symm i)+atPoint S p t) |
| 112 | let R:= range S.patch.L.val |
| 113 | have hh p z : ∑ t:S.patch.Points,∑ k∈ R,S.patch.weight t*emits z (k • step (axisEquiv.symm i)+atPoint S p t)=∑ k∈R,F k p z:= Finset.sum_comm |
| 114 | dsimp only [R] at hh |
| 115 | simp_rw [hh,← sum_sub_distrib]; apply le_trans (sum_le_sum fun i _=> Finset.abs_sum_le_sum_abs ..); rw [sum_comm]; refine (sum_le_sum (fun k _=> polar_turn S (k • step (axisEquiv.symm i)) x j)).trans_eq ?_; simp [R]; change _=2/(S.patch.L.val:ℝ)^4; field_simp; rfl |
| 116 | end YM.Trace.Perfect |