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.Filch.Brad |
| 2 | set_option autoImplicit false |
| 3 | set_option maxHeartbeats 180000 |
| 4 | noncomputable section |
| 5 | namespace YM.Trace.Filch |
| 6 | open Function Filter Matrix Lattice Precision Laurent Stationary Perfect Exterior Tree RG Wilson Finset Push.Uniform Det Planned.PrimaryIntegral295.Cases Lamp |
| 7 | open scoped BigOperators Topology ContDiff Matrix.Norms.Frobenius Classical |
| 8 | variable {G:Gauge}{n:Side}{o:Site n}{r:ℕ} |
| 9 | |
| 10 | variable (o r) |
| 11 | def lakesC (F:Peat G n): Peat G n:= fun U=>cloud (ballX F) o r U 0 |
| 12 | def lakesY (Y:Gal G n):Gal G n:=fun U x =>cloud (bottom Y) o r U (bolt x) |
| 13 | variable {F:Peat G n}(h:F∈loom G n) {Y:Gal G n}(hY:Y∈rains G n) |
| 14 | private abbrev L(A:Link G n): Acr G n:= takea G n A |
| 15 | private abbrev P(o:Site n)(r:ℕ): Acr G n →L[ℝ] Acr G n := stone (landW o) r |
| 16 | private def f'(W:Config G n)(z:Link G n): Acr G n:= P o r (patio o 4 W z) |
| 17 | private abbrev fx:=ballX F |
| 18 | private abbrev fy:=bottom Y |
| 19 | private lemma same(o:Site n)(r:ℕ)(U:Config G n)(v w:Link G n): aleft G n (f' o r U v)=aleft G n (f' o r U w):=by |
| 20 | ext1 i; change P o r _ (.inl i)=P o r _ (.inl i); rw [stone_at (landW o),stone_at (landW o)]; rfl |
| 21 | include h in |
| 22 | lemma cloudF_eq (U:Config G n)(v:Link G n): cloud (ballX F) o r U v=lakesC o r F U:=by |
| 23 | unfold cloud; have hv a k:neap k (ballX F) 0 a=neap k (F ∘ input G n) 0 (aleft G n a):=by |
| 24 | unfold neap; change _=_ ; rw[show ballX F=(F ∘ input G n) ∘ aleft G n from rfl,iter_lin_at (L:=aleft G n) ((map_zero (aleft G n)).symm ▸ (show Cleric _ from (show Cleric F∧_ from h).1).dye.of_le (m:=k) le_top),map_zero];rfl |
| 25 | change choral 4 _ (f' o r U v)= choral 4 _ (f' o r U _); rw [reverberate,reverberate]; apply sum_congr rfl fun i _=>?_ ; rw [hv,hv,same o r U v 0] |
| 26 | private lemma tenor (U:Config G n):∃ L: Link G n→L[ℝ] Link G n,∀ v,L v=aright G n (f' o r U v):=by |
| 27 | let L:= aright G n ∘L (P o r ∘L ((bite G n).symm.toContinuousLinearMap ∘L (ContinuousLinearMap.inr ℝ (Link G n) (Link G n) ∘L armor (march o U)))) |
| 28 | refine ⟨L,fun v=>?_⟩; ext1 i; change P o r ((bite G n).symm (0,_)) (.inr i)=f' o r U v (.inr i);rw[f',stone_at (landW o),patio,stone_at (landW o)]; rfl |
| 29 | include hY |
| 30 | private lemma forge (U: Config G n): ∃ L: Link G n→ₗ[ℝ]ℝ,∀ v: Link G n,cloud (bottom Y) o r U v = L v :=by |
| 31 | obtain ⟨Lₛ,hL⟩:=tenor o r U |
| 32 | let A:Link G n:=aleft G n (f' o r U 0) |
| 33 | have he(v:Link G n)(t:ℝ): bottom Y (t • f' o r U v)=t • (dotB (Y (input G n (t • A))) (Lₛ v)):=by |
| 34 | change Y (input G n (aleft G n (t • f' o r U v))) ⬝ᵥ _ = _ |
| 35 | rw[hL, map_smul]; change Y (input G n _) ⬝ᵥ aright G n (t • f' o r U v)=_; rw [map_smul,dotProduct_smul,same o r U v 0, fast_dot] |
| 36 | let M: ℝ→ Link G n→L[ℝ] ℝ:= fun t=> t • ((dotB (Y (input G n (t • A)))) ∘L Lₛ) |
| 37 | obtain ⟨hp,hy01⟩:=hY; change Cloaked Y at hp |
| 38 | have hm:ContDiffAt ℝ ω M 0:=by |
| 39 | have hv: ContDiffAt ℝ ω (fun t:ℝ=>Y (input G n (t • A))) 0:=by |
| 40 | apply ContDiffAt.comp (g:=Y ∘ input G n) (f:=fun t:ℝ=>t • A) (0:ℝ) |
| 41 | · rw[zero_smul]; exact hp.dye |
| 42 | fun_prop |
| 43 | exact contDiffAt_id.smul ((dotB.contDiff.contDiffAt.comp _ hv).clm_comp contDiffAt_const) |
| 44 | refine ⟨(choral 4 M 1).toLinearMap,fun v=>?_⟩ |
| 45 | let B:ℝ→L[ℝ] Acr G n:= ContinuousLinearMap.smulRight (ContinuousLinearMap.id ..) (f' o r U v) |
| 46 | let E: (Link G n→L[ℝ] ℝ)→L[ℝ] ℝ:= ContinuousLinearMap.apply ℝ ℝ v |
| 47 | have hy:E ∘ M =ᶠ[𝓝 0] bottom Y ∘ B:=Eventually.of_forall fun t=>(he v t).symm |
| 48 | have hz:= intoned B _ _ hy 4 (rain_read (Y:=Y) ⟨hp,by assumption⟩).2.2.1 1 |
| 49 | have hb:B 1=f' o r U v:=show (1:ℝ) • _=_ from one_smul .. |
| 50 | rw[hb] at hz; exact hz.symm.trans (slice_tone E M 4 hm 1) |
| 51 | lemma liftY (U:Config G n)(v:Link G n): cloud (bottom Y) o r U v=(lakesY o r Y U) ⬝ᵥ v:=by |
| 52 | obtain ⟨K,hK⟩:= forge o r hY U; rw [hK,dotProduct]; apply Eq.trans (b:=K (∑ i:Lines G n 1,v i • bolt i)); rotate_left |
| 53 | · rw [map_sum]; refine sum_congr rfl (fun i _=> ?_); rw[map_smul]; unfold lakesY; rw[hK]; exact mul_comm .. |
| 54 | apply congr_arg; ext1 i; simp [bolt,Finset.sum_apply, Pi.single_apply] |
| 55 | omit hY in |
| 56 | private lemma bead(o:Site n)(U V:Link G n)(h:∀ v:Link G n, U ⬝ᵥ v=V ⬝ᵥ v): U=V:=by ext1 i; simpa [dotProduct,bolt, Pi.single_apply] using h (bolt i) |
| 57 | omit hY in |
| 58 | private lemma widthV(W:Coats G n)(v:Link G n): armor W (armor W⁻¹ v)=v:=by |
| 59 | apply edgeColor.injective; funext i; rw[armor_at,armor_at,← G.adjoint_mul,Pi.inv_apply,mul_inv_cancel,G.adjoint_one] |
| 60 | lemma Y_swept(U:Config G n)(W:Coats G n): lakesY o r Y (Lattice.gauge W U) = armor W (lakesY o r Y U):=by |
| 61 | apply bead o; intro v |
| 62 | obtain ⟨hp,ha,hc,-⟩:=rain_read hY; have hC: Cloaked Y:= (show Cloaked _ ∧ _ from hY).1 |
| 63 | let p:=armor W⁻¹ v |
| 64 | rw [← show armor W p=v from widthV W v,loyS, ← liftY _ _ hY, ← liftY _ _ hY, cloud_r hc (bloomY hC)] |
| 65 | omit hY |
| 66 | variable {X : Type} [NormedAddCommGroup X][NormedSpace ℝ X] |
| 67 | lemma Y_warm(U:X→ Config G n)(x:X)(hp:Army U x)(Y:Gal G n) : ContDiffAt ℝ ω (lakesY o r Y ∘ U) x:= contDiffAt_pi.mpr fun i=>cloudful (bottom Y) _ _ U (fun _=>bolt i) _ hp contDiffAt_const |
| 68 | lemma J_warm(U:X→ Config G n)(x:X)(hp:Army U x)(F:Peat G n): ContDiffAt ℝ ω (lakesC o r F ∘ U) x:= cloudful _ _ _ U (fun _=>0) x hp contDiffAt_const |
| 69 | lemma J_take(F:Peat G n): LocalOn (feed o (r+1)) (lakesC o r F):=cloud_local (ballX F) o r 0 |
| 70 | lemma Y_take (Y:Gal G n) : LocalOn (feed o (r+1)) (lakesY o r Y):=fun U V H=>funext fun v=> cloud_local (bottom Y) o r (bolt v) U V H |
| 71 | include hY in |
| 72 | lemma Y_dry (U:Config G n)(e:Edge (Site n))(h:¬separation o e.1≤r): edgeColor (lakesY o r Y U) e=0:=by |
| 73 | have hs (i:G.ColorIndex): lakesY o r Y U (e.1,coord e.2,i)=0:=by |
| 74 | let x:=e.1; let v:Link G n:= bolt (e.1,coord e.2,i) |
| 75 | have hp(d:Edge (Site n))(hd:separation o d.1 ≤r):edgeColor v d=edgeColor (0:Link G n) d:=by |
| 76 | have hx:e.1≠d.1:=fun he=>h (he.symm ▸ hd) |
| 77 | ext j; change bolt (ι:=Lines G n 1) (e.1,coord e.2,i) (d.1,coord d.2,j)=(0:ℝ); simp[bolt,Pi.single_apply,hx,hx.symm] |
| 78 | change cloud _ _ _ _ v=_; rw [cloudV _ _ _ _ 0 U hp, liftY o r hY, dotProduct_zero] |
| 79 | ext i; exact hs i |
| 80 | private lemma nozero {A:Acr G n→ℝ}(h:ContDiffAt ℝ ω A 0)(ht:A 0=0)(hp:fderiv ℝ A 0=0): braid A (fun _=>0) 0 1:=by |
| 81 | intro i hi; interval_cases i <;> ext1 v; simpa [iteratedFDeriv_zero_apply] using ht; simp [hp,iteratedFDeriv_one_apply] |
| 82 | include h in |
| 83 | lemma C_swept (U:Config G n)(W:Coats G n): lakesC o r F (Lattice.gauge W U)=lakesC o r F U:=by simpa only[lakesC,map_zero] using cloud_r ((loom_read h).2.2) (glowB (show Cleric _∧_ from h).1) o r U W 0 |
| 84 | include h in |
| 85 | lemma pinch : ballX (lakesC o r F)= (choral 4 (ballX F) ∘ P o r) ∘ par o 4:=funext fun z=>(cloudF_eq o r h (input G n (bite G n z).1) (aright G n z)).symm |
| 86 | include hY in |
| 87 | lemma pinchY : bottom (lakesY o r Y)=(choral 4 (bottom Y) ∘ P o r) ∘ par o 4:=funext fun z=> (liftY o r hY (input G n (bite G n z).1) (aright G n z)).symm |
| 88 | lemma rain_null {A:Acr G n→ℝ}(h:ContDiffAt ℝ ω A 0)(hh:braid A (fun _=>0) 0 1) : braid ((choral 4 A ∘ P o r) ∘ par o 4) (fun _=>0) 0 1:=by |
| 89 | let T:Acr G n→ Acr G n:= P o r ∘ par o 4; have hz:T 0=0:=by rw[show T 0=P o r (par o 4 0) from rfl,parZ,map_zero] |
| 90 | have hx:= braid.trans (F:=choral 4 A) (Z:=fun _=>0) (show braid _ A 0 1 from fun i hi=> ((repitch h 4) i (by omega)).symm) hh |
| 91 | exact wove (a:=0) (w:=T) (hz.symm ▸ hx) ((rhythm A 4).contDiffAt) contDiffAt_const ((P o r).contDiff.contDiffAt.comp _ (parW ..)) |
| 92 | include h in |
| 93 | lemma lake_lo : lakesC o r F∈ loom G n:=by |
| 94 | let A:=lakesC o r F |
| 95 | have hd:ContDiffAt ℝ ω (A ∘ input G n) 0:= J_warm o r (input G n) 0 (Army.powL (v:=id) contDiffAt_id) F |
| 96 | have hb: Cleric A:= ⟨hd, fun T _ _ _ _ V d u hv hy he hz => Eventually.of_forall fun x=> C_swept o r h _ _⟩ |
| 97 | obtain ⟨hp,hx,he⟩:=loom_read h |
| 98 | have hP:braid (ballX A) (fun _=>0) 0 1:=by unfold A; rw[pinch o r h]; exact rain_null o r he (nozero he hp hx) |
| 99 | refine ⟨hb,?_⟩; let T:=takea G n |
| 100 | have hh:A ∘ input G n=ballX A ∘ T:= funext (fun x=> by simp [T,ballX]) |
| 101 | change braid (A ∘ input G n) _ _ _; rw [hh] |
| 102 | have hc:ContDiffAt ℝ ω (ballX A) 0:=ContDiffAt.comp (g:=A ∘ input G n) (f:=aleft G n) _ ((map_zero (aleft G n)).symm ▸ hd) (aleft G n).contDiff.contDiffAt; exact wove (w:=T) ((map_zero T).symm ▸ hP) ((map_zero T).symm ▸ hc) contDiffAt_const T.contDiff.contDiffAt |
| 103 | include hY in |
| 104 | lemma lake_y: lakesY o r Y∈ rains G n:=by |
| 105 | let A:=lakesY o r Y; have hc:Cloaked A:= ⟨Y_warm o r _ _ (Army.powL (v:=id) contDiffAt_id) Y, fun T _ _ _ _ V d u hv hy he hz=> Eventually.of_forall fun x=>Y_swept o r hY (V x) (d x)⟩ |
| 106 | obtain ⟨hp,hx,he,-⟩:= rain_read hY |
| 107 | have hv:braid (bottom A) (fun _=>0) 0 1:=by unfold A;rw[pinchY o r hY]; exact rain_null o r he (nozero he hp hx) |
| 108 | refine ⟨hc,?_⟩; apply bead o; intro v |
| 109 | let u: Acr G n:= (bite G n).symm (0,v) |
| 110 | have ha (t:ℝ): bottom A (t • u)=t • (A 1 ⬝ᵥ v):=by unfold bottom; rw[map_smul,show bite G n u=_ from (bite G n).apply_symm_apply _]; simp |
| 111 | have ht : iteratedFDeriv ℝ 1 (bottom A) 0 ![u]=0:=by rw [hv 1 le_rfl];simp |
| 112 | have hZ:ContDiffAt ℝ ω (bottom A) 0:=by rw [show bottom A=_ from pinchY o r hY]; exact (((rhythm ..).comp (P o r).contDiff).contDiffAt.comp _ (parW ..)) |
| 113 | change A 1 ⬝ᵥ v=0 ⬝ᵥ v; rw [zero_dotProduct] |
| 114 | have hb:= Push.side (bottom A) (hZ.differentiableAt (by simp)) u |
| 115 | simp only[iteratedFDeriv_one_apply,cons_val_zero] at ht |
| 116 | rw [ht,funext ha] at hb; exact HasDerivAt.unique (by simpa using! (hasDerivAt_id (x:=(0:ℝ))).smul_const (A 1 ⬝ᵥ v)) hb |
| 117 | end YM.Trace.Filch |