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.MultipleContact.Bunch.Cord |
| 2 | import YM.MultipleContact.Matching.Arena |
| 3 | /-! Kinematics of comparable arbitrary products and their genuine field derivatives. -/ |
| 4 | set_option autoImplicit false |
| 5 | set_option maxHeartbeats 1600000 |
| 6 | set_option synthInstance.maxHeartbeats 500000 |
| 7 | noncomputable section |
| 8 | namespace YM.MultipleContact.Bunching.Guard |
| 9 | open Filter Function MeasureTheory Analysis Extraction Table Ward MergeProof Ribbons Around Cells Wilson Lattice Climb Set |
| 10 | open scoped Topology BigOperators Classical ContDiff |
| 11 | open YM.Next.UVStress Matching Local Cord Acme WithLp |
| 12 | variable {G:Gauge}{C:Family G}{n':ℕ} [Inhabited (Fin n')] |
| 13 | variable {ι:Type*}[Fintype ι]{n:ι→ℕ} |
| 14 | variable (K:Set ((i:ι)→Points (n i)))(hK:IsCompact K)(hsafe:∀x∈K,∀i, Points.cons 0 (x i) ∈ conf (n i+1)) |
| 15 | variable (hw:Note C.S (fun i=>fuga C.path.levels (i+1)) (-1)) |
| 16 | set_option quotPrecheck false |
| 17 | local notation "R'" => (fun i:ℕ=> fuga C.path.levels (i+1)) |
| 18 | local notation "Yb" => (fun i:ℕ=> topZone C.path.levels (C.S.block i) (i+1)) |
| 19 | include hsafe hw hK |
| 20 | lemma fits (L:Lattice.Side):∀ᶠ m in atTop, ∀ (r:ℝ), (R') m ≤ r → r≤ (Yb) m → ∀ z∈K,∀ y:Fin n'→E4,Cord.Band n' L r y →∀i,slide C.S (m+1) (lands y (z i)):=by |
| 21 | obtain ⟨δ,hδ,hp⟩:=Local.gapK K hK hsafe |
| 22 | filter_upwards [((Local.topNote hw).thins (show -(1:ℝ)<0 by norm_num)|>.const_mul (8*(L.val:ℝ))).eventually (gt_mem_nhds (show 8*L.val*(0:ℝ)<δ by simpa using hδ))] with m hm r hr hr' z hz y hy i |
| 23 | have hr0:0<r:=(hw.pos m).trans_le hr |
| 24 | have hδm: 8* (L.val:ℝ)*((Yb) m) < δ:=hm |
| 25 | have hLpos:0<(L.val:ℝ):=by exact_mod_cast L.pos |
| 26 | have hδ': 5*(L.val:ℝ)*r<δ:= (mul_lt_mul_of_pos_right (show 5*(L.val:ℝ)<8*(L.val:ℝ) from (by linarith only [hLpos])) hr0).trans (hδm.trans_le' (mul_le_mul_of_nonneg_left hr' (by positivity))) |
| 27 | have hb:(1:ℝ)≤ (C.path.levels.budget (m+1)).B := by exact_mod_cast (C.path.levels.budget (m+1)).B_pos |
| 28 | have hd:=C.S.a_pos (m+1) |
| 29 | have hwa:4*C.S.a (m+1) ≤ r/32:=by change 128*_*(C.S.a _ ) ≤ _ at hr; nlinarith only [hr,mul_le_mul_of_nonneg_right (one_le_pow₀ hb (n:=2)) hd.le,hd] |
| 30 | have h1 s:lands y (z i) (Fin.castAdd (n i) s)=y s:=Fin.append_left .. |
| 31 | have h2 s:lands y (z i) (Fin.natAdd n' s)=z i s:= Fin.append_right .. |
| 32 | have hx(k:Fin (n i)): δ<‖z i k‖:=by |
| 33 | have hx:= hp z hz i k.succ 0 k.succ_ne_zero; simpa only [Points.cons,points_apply,Fin.cons_zero,Fin.cons_succ,sub_zero] using hx |
| 34 | have hβ: r ≤ (L.val:ℝ)*r:= le_mul_of_one_le_left hr0.le (show (1:ℝ)≤L.val from Nat.one_le_cast.mpr L.pos) |
| 35 | intro s t; revert t; refine Fin.addCases (fun s t=>?_) (fun s t=>?_) s |
| 36 | · refine Fin.addCases (fun u h=>?_ ) (fun v _=>?_) t |
| 37 | · rw [h1,h1]; have hx:=hy.2.1 u s (show u≠s from fun e=>h (e ▸ rfl)); linarith only [hwa,hx,hr0] |
| 38 | rw [h2,h1]; nlinarith only [hr0,hLpos,hwa,hδ',hβ,hy.2.2 s,hx v,norm_sub_norm_le (z i v) (y s)] |
| 39 | refine Fin.addCases (fun u _=>?_) (fun v h=>?_) t |
| 40 | · rw [h1,h2,norm_sub_rev]; nlinarith only [hr0,hLpos,hwa,hδ',hβ,hy.2.2 u,hx s,norm_sub_norm_le (z i s) (y u)] |
| 41 | rw [h2,h2]; nlinarith only [hr0,hLpos,hwa,hδ',hβ,show δ<‖z i v-z i s‖ from hp z hz i v.succ s.succ (fun e=>h (by rw [Fin.succ_inj.mp e]))] |
| 42 | |
| 43 | lemma onGrid {y:Fin n' → E4}{m:ℕ} (h0:y default=0)(hp:∀i,Cord.Placed _ (C.S.a m) y i):∃ u:Fin n' → Cover,y=C.S.gridPoint m ∘u ∧u default=0∧∀a:Axis,Injective (fun s=> y s a):=by |
| 44 | have he(s:Fin n')(a:Axis):∃ v:ℤ, y s a=C.S.a m*v:= by |
| 45 | by_cases h:s=default |
| 46 | · exact ⟨0,by rw [h,h0,Int.cast_zero,mul_zero];rfl⟩ |
| 47 | exact (hp (s,a) h).1 |
| 48 | choose u hu using he |
| 49 | have hm: y=C.S.gridPoint m ∘u:=by ext s a; exact hu .. |
| 50 | refine ⟨u,hm,?_,fun a i j he=>?_⟩ |
| 51 | · ext1 a |
| 52 | change u default a=0 |
| 53 | exact_mod_cast (mul_eq_zero.mp (show C.S.a m*((u default a:ℤ):ℝ)=0 from (hu default a).symm.trans (h0.symm ▸ rfl))).resolve_left (C.S.a_pos _).ne' |
| 54 | by_contra ne; by_cases h:i=default |
| 55 | · exact (hp (j,a) (h ▸ Ne.symm ne)).2 _ ne (by change y j a=y i a; exact he.symm) |
| 56 | exact (hp (i,a) h).2 _ (Ne.symm ne) he |
| 57 | end YM.MultipleContact.Bunching.Guard |
| 58 | |
| 59 | namespace YM.MultipleContact.Bunching.Line |
| 60 | open Filter Function MeasureTheory Analysis Extraction Table Ward MergeProof Ribbons Around Cells Wilson Lattice Climb Set |
| 61 | open scoped Topology BigOperators Classical ContDiff |
| 62 | open YM.Next.UVStress Matching Local Cord Acme WithLp |
| 63 | variable {G:Gauge}{C:Family G}{n':ℕ} |
| 64 | variable {ι:Type*}{n:ι→ℕ} |
| 65 | variable {S:Table C.book}(V:Fin n'→S.Tag) |
| 66 | -- indexed changed tag at slot k after j derivatives |
| 67 | def tags (W:DiffPlan S)(k:Fin n')(b:Axis)(j:ℕ):= Function.update V k (trek W b (V k) j) |
| 68 | private lemma tags_step (W:DiffPlan S)(k:Fin n')(b:Axis)(j:ℕ): tags V W k b (j+1)=Function.update (tags V W k b j) k (Ward.rise W b ((tags V W k b j) k)):=by unfold tags; rw [Function.update_self,Function.update_idem]; rfl |
| 69 | lemma whole_update {m:ℕ}(w:Fin m →S.Tag)(W:DiffPlan S)(k:Fin n')(b:Axis)(j:ℕ):let f(j:ℕ):=Fin.append (tags V W k b j) w; f (j+1)=Function.update (f j) (Fin.castAdd m k) (Ward.rise W b ((f j) (Fin.castAdd m k))):=by |
| 70 | intro f; unfold f; rw [Fin.append_left,tags_step]; funext s; refine Fin.addCases (fun u=>?_) (fun u=>?_) s |
| 71 | · rw [Fin.append_left]; by_cases h:u=k |
| 72 | · simp only [h,Function.update_self] |
| 73 | rw [Function.update_of_ne h,Function.update_of_ne (show Fin.castAdd m u≠Fin.castAdd m k from Fin.castAdd_injective n' m |>.ne h)]; exact (Fin.append_left ..).symm |
| 74 | rw [Fin.append_right,Function.update_of_ne (show Fin.natAdd n' u≠Fin.castAdd m k from (by intro h; have h:=congr_arg Fin.val h; simp at h; omega)),Fin.append_right] |
| 75 | variable (q:∀i:ι,Fin (n i)→ C.book.Token) (W:DiffPlan S) (H:S.Hierarchy)(hp:W.Derivatives S) |
| 76 | omit V in |
| 77 | lemma path (k:Fin n'×Axis)(x:Fin n'→E4)(u:ℝ)(i:ι)(z:Points (n i)): lands (Cord.polar k x 1 u) z= lands (Cord.polar k x 1 0) z+ u • Points.direction (Fin.castAdd (n i) k.1) k.2:=by |
| 78 | ext1 j; change (lands (Cord.polar k x 1 u) z) j= _ |
| 79 | refine Fin.addCases ?_ ?_ j; swap |
| 80 | · intro a |
| 81 | have ht: Fin.castAdd (n i) k.1 ≠ Fin.natAdd n' a:=fun e=> by have e:=congr_arg Fin.val e; simp at e; have h:=k.1.isLt; omega |
| 82 | simp [lands,Points.direction,PiLp.single_apply,ht] |
| 83 | intro a; by_cases ha:a=k.1 |
| 84 | · simp [lands,Points.direction,PiLp.single_apply,ha,Cord.polar,Cord.streak,Ward.inc] |
| 85 | have ht: Fin.castAdd (n i) k.1≠Fin.castAdd (n i) a:=by intro he; apply ha; exact (Fin.castAdd_injective n' (n i)) he.symm |
| 86 | simp [lands,Cord.polar,Points.direction,PiLp.single_apply,ha,ht] |
| 87 | include H hp |
| 88 | lemma deriv (x:Fin n'→E4)(a:ℝ)(j:Fin n')(b:Axis)(z:∀i,Points (n i))(i:ι) (t:ℝ) (hv:lands (Cord.polar (j,b) x a t) (z i) ∈conf _) (l:ℕ): |
| 89 | HasDerivAt (fun u:ℝ=>(a^l:ℝ) • many (tags V W j b l) (q i) (Cord.polar (j,b) x a u) (z i)) |
| 90 | ((a^(l+1):ℝ) • many (tags V W j b (l+1)) (q i) (Cord.polar (j,b) x a t) (z i)) t:=by |
| 91 | have hx : HasDerivAt (fun v:ℝ=> v*a) a t:=by simpa using (hasDerivAt_id' t).mul_const a |
| 92 | let p:= Fin.castAdd (n i) j; let d:= Points.direction p b |
| 93 | let h u:= lands (Cord.polar (j,b) x 1 u) (z i); let w l:= Fin.append (tags V W j b l) (S.classTokens∘q i) |
| 94 | have heq(v):Cord.polar (j,b) x a v=Cord.polar (j,b) x 1 (v*a):=by unfold Cord.polar Cord.streak; simp only [mul_one] |
| 95 | rw [heq] at hv; simp_rw [heq]; |
| 96 | have hh: HasDerivAt h (Points.direction p b) (t*a):=by |
| 97 | rw [show h=(fun u=>h 0+u • d) from funext (path (j,b) x · i (z i))] |
| 98 | apply (hasDerivAt_const_add_iff _).mpr |
| 99 | exact (show HasDerivAt (ContinuousLinearMap.toSpanSingleton ℝ d) _ _ from |
| 100 | (ContinuousLinearMap.toSpanSingleton ℝ d).hasDerivAt.congr_deriv (by simp; rfl)) |
| 101 | have hq := ((cont_disc H (w l) hv).differentiableAt (by simp)).hasFDerivAt.comp_hasDerivAt (t*a) hh |
| 102 | have hD:= fromD W H hp hv p b (w l) |
| 103 | rw [pow_succ, ← smul_smul] |
| 104 | convert (hq.scomp t hx).const_smul (a^l) using 1 |
| 105 | all_goals first |rfl| skip |
| 106 | change _ = (_ : ℂ) |
| 107 | unfold many; unfold w |
| 108 | have hw := whole_update V (S.classTokens∘q i) W j b l |
| 109 | change (fderiv ℝ (disc (w l)) (h (t*a))) (Points.direction p b) = disc (update (w l) p _) _ at hD |
| 110 | change w (l+1)=update (w l) p (Ward.rise W b _) at hw |
| 111 | exact congr_arg (fun x:ℂ=> a^l • (a • x)) ((congr_arg (fun v:Fin _→ S.Tag=>disc v (h (t*a))) hw).trans hD.symm) |
| 112 | end YM.MultipleContact.Bunching.Line |