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.MultiNext.SIGNED_SOURCE_CONTINUATION.Mediator |
| 2 | import YM.MultiNext.SIGNED_SOURCE_CONTINUATION.Pattern |
| 3 | import YM.MultiNext.SIGNED_SOURCE_CONTINUATION.Powers |
| 4 | import YM.MultiNext.SIGNED_SOURCE_CONTINUATION.Weighted |
| 5 | import YM.Next.FOUNDATIONS.LinkBounds |
| 6 | |
| 7 | set_option warningAsError false |
| 8 | |
| 9 | /-! |
| 10 | # Log-link map. Actual tested lattice support, screen to the support, |
| 11 | carried real positions evaluated via true lift at both endpoints |
| 12 | (nonwrapping AND side large, compare `Foundations.size_one` -- doesn't |
| 13 | follow from nonwrapping alone at the degenerate one-site boundary!). |
| 14 | No claim screens commute with RG or caps, used at the single vacancy |
| 15 | test only. |
| 16 | -/ |
| 17 | set_option autoImplicit false |
| 18 | noncomputable section |
| 19 | namespace YM.MultiNext.SignedSource.Mom |
| 20 | open Function Filter Finset Tensor Work Set MeasureTheory RG Wilson Lattice Labels Source Drops Analysis |
| 21 | open Powers Mediator Next.Foundations Pattern |
| 22 | open scoped Topology ContDiff Matrix.Norms.Frobenius BigOperators Classical |
| 23 | variable {G : Gauge} {d : ℕ} {n : Side} |
| 24 | |
| 25 | abbrev Slate (G : Gauge) (n : Side) (d : ℕ) := (Site n → G.Color) × Snap G d |
| 26 | |
| 27 | abbrev needed (X : Support n) (x : Edge (Site n)) := x.1∈X ∧ x.1+Lattice.step x.2∈ X |
| 28 | |
| 29 | def stamp (o : Site n) (x : Site n) := Pattern.xyz (lift (x-o)) |
| 30 | |
| 31 | def Sites (o : Site n) (X : Support n) (k : ℕ) : Submodule ℝ (Slate G n d) where |
| 32 | carrier := {v | (∃ p : E4→G.Color, p∈space E4 G.Color k ∧ ∀ i∈X,v.1 i=p (stamp o i)) ∧ |
| 33 | ∀ i : Fin (d-1), k < i.val+2 → v.2 i=0 } |
| 34 | zero_mem' := by refine ⟨⟨0,(space E4 G.Color k).zero_mem,fun _ _ => rfl⟩,fun _ _ => rfl⟩ |
| 35 | add_mem' := by |
| 36 | rintro a b ⟨⟨p,hp,hP⟩,ha⟩ ⟨⟨q,hq,hQ⟩,hb⟩ |
| 37 | exact ⟨⟨p+q,(space E4 G.Color k).add_mem hp hq,fun i hi => congr_arg₂ (· + ·) (hP i hi) (hQ i hi)⟩, |
| 38 | fun i hi => by change a.2 i+b.2 i=_; rw [ha _ hi,hb _ hi,add_zero]⟩ |
| 39 | smul_mem' := by |
| 40 | rintro c a ⟨⟨p,hp,hP⟩,ha⟩; exact ⟨⟨c • p,(space E4 G.Color k).smul_mem _ hp,fun i hi => congr_arg (c • ·) (hP i hi)⟩, |
| 41 | fun i hi => by change c • (a.2 i) = _; rw [ha _ hi,smul_zero]⟩ |
| 42 | |
| 43 | def Maps (o : Site n) (X : Support n) (i : ℕ) : Submodule ℝ (Directions G n) where |
| 44 | carrier := {v | ∃ f : Axis → E4 → G.Color,(∀ j,f j∈space E4 G.Color (i-1)) ∧ |
| 45 | ∀ x, v x=if needed X x then f x.2 (stamp o x.1) else 0 } |
| 46 | zero_mem' := ⟨0,fun _ => (space E4 G.Color (i-1)).zero_mem,fun x => by simp⟩ |
| 47 | add_mem' := by |
| 48 | rintro a b ⟨p,hp,h⟩ ⟨q,hq,H⟩; refine ⟨p+q,fun j => (space E4 G.Color _).add_mem (hp _) (hq _),fun i => ?_⟩ |
| 49 | change a _+b _= _; rw [h,H]; split; rfl; simp |
| 50 | smul_mem' := by |
| 51 | rintro c a ⟨p,hp,h⟩; refine ⟨c • p,fun j => (space E4 G.Color _).smul_mem _ (hp _),fun i => ?_⟩ |
| 52 | change c • a _=_; rw [h]; split; rfl; simp |
| 53 | |
| 54 | /-- Log links after local gauge. Values outside deliberately not tested. -/ |
| 55 | def runway (o : Site n) (x : Edge (Site n)) : Slate G n d →L[ℝ] Panel G d := by |
| 56 | let A : Slate G n d →ₗ[ℝ] Panel G d := { |
| 57 | toFun v := (v.1 x.1,v.1 (x.1+step x.2)-v.1 x.1,tempo (stamp o x.1) x.2 v.2) |
| 58 | map_add' a b := by |
| 59 | refine Prod.ext rfl (Prod.ext ?_ (map_add (tempo _ _) a.2 b.2)) |
| 60 | change a.1 _ + b.1 _ - (a.1 _+b.1 _) = _; change _=(a.1 _- a.1 _)+(b.1 _- b.1 _); abel |
| 61 | map_smul' c a := Prod.ext rfl (Prod.ext (smul_sub c _ _).symm (map_smul (tempo _ _) _ a.2)) } |
| 62 | exact A.toContinuousLinearMap |
| 63 | |
| 64 | def optic (X : Support n) (o : Site n) (v : Slate G n d) : Directions G n := fun i => |
| 65 | if needed X i then stereo G d (runway o i v) else 0 |
| 66 | |
| 67 | lemma osmotic (X : Support n) (o : Site n) : ContDiffAt ℝ ω (optic X o (G:=G) (d:=d)) 0 ∧ optic X o (0:Slate G n d)=0 := by |
| 68 | constructor |
| 69 | · apply contDiffAt_pi.mpr; intro i; unfold optic; by_cases h:needed X i |
| 70 | · simp only [if_pos h] |
| 71 | exact ((map_zero (runway (G:=G) (d:=d) o i)).symm ▸ (scripts G d).1).comp 0 (f:=runway o i) (ContinuousLinearMap.contDiff ..).contDiffAt |
| 72 | simp only [if_neg h]; exact contDiffAt_const |
| 73 | funext i; unfold optic; split |
| 74 | · rw [map_zero,(scripts G d).2]; rfl |
| 75 | rfl |
| 76 | |
| 77 | lemma papertrail {o : Site n} {x : Edge (Site n)} (H : Hol G) : |
| 78 | ∀ᶠ v : Slate G n d in 𝓝 0, |
| 79 | G.lieExp (stereo G d (runway o x v)) = gauge (fun i => G.lieExp (v.1 i)) (H.testLinks d o (expand d v.2) 1) x := by |
| 80 | have h := G02.linkGerm H d (lift (x.1-o),x.2) |
| 81 | have hz : H.testLinks d o (expand d (0:Snap G d)) 1 x=1 := h.2.1 |
| 82 | have hs : ContinuousAt (fun v : Snap G d => H.testLinks d o (expand d v) 1 x) 0 := |
| 83 | (G.continuous_mat.isClosedEmbedding G.mat_injective).isInducing.continuousAt_iff.mpr h.1.continuousAt |
| 84 | let S (v : Slate G n d) := gauge (fun i => G.lieExp (v.1 i)) (H.testLinks d o (expand d v.2) 1) x |
| 85 | have hh : Tendsto S (𝓝 0) (𝓝 1) := by |
| 86 | rw [← show S 0=1 by simp [S,Lattice.gauge,hz,- Drops.expand_zero]] |
| 87 | have hf i : Continuous (fun x : Slate G n d => G.lieExp (x.1 i)) := by fun_prop |
| 88 | exact (show ContinuousAt S 0 from ((hf _).continuousAt.mul (hs.comp_of_eq (continuous_snd.continuousAt (x:= (0:Slate G n d))) rfl)).mul (hf _).continuousAt.inv).tendsto |
| 89 | filter_upwards [hh.eventually G.plog_right] with v hv |
| 90 | change _=S v; rw [←hv] |
| 91 | apply congrArg G.lieExp |
| 92 | unfold S Lattice.gauge |
| 93 | rw [G.mat_mul,G.mat_mul,G.mat_inv] |
| 94 | let f := tempo (stamp o x.1) x.2 (d:=d) (G:=G) |
| 95 | rw [show G.mat (H.testLinks d o (expand d v.2) 1 x)=run G d (f v.2) from stem H ..] |
| 96 | apply congrArg G.plog |
| 97 | change _ * run G d (f v.2)* star (G.mat (G.lieExp (v.1 x.1+(v.1 _-v.1 _))))=_ |
| 98 | rw [add_sub_cancel ..] |
| 99 | rfl |
| 100 | |
| 101 | lemma appears {o : Site n} {X : Support n} {p : Config G n → ℂ} (h : LocalOn X p) (hw : GaugeInvariant p) (H : Hol G) : |
| 102 | (p ∘ increment 1) ∘ (optic X o)=ᶠ[𝓝 (0:Slate G n d)] (fun v => p (H.testLinks d o (expand d v.2) 1)) := by |
| 103 | filter_upwards [Filter.eventually_all.mpr (papertrail (d:=d) (o:=o) H (x:=·))] with v hv |
| 104 | apply Eq.trans (h _ _ (fun i hi hI => ?_)) (hw (fun i => G.lieExp (v.1 i)) _) |
| 105 | change G.lieExp (optic X o v i)*1=_ |
| 106 | rw [mul_one,optic,if_pos (show needed X i from ⟨hi,hI⟩)]; exact hv i |
| 107 | |
| 108 | section Scale |
| 109 | |
| 110 | def deck (i : Fin (d-1)) : Snap G d →L[ℝ] Snap G d := |
| 111 | let Y : Snap G d →ₗ[ℝ] Snap G d := { |
| 112 | toFun v := Pi.single i (v i) |
| 113 | map_add' f g := by rw [Pi.add_apply,Pi.single_add] |
| 114 | map_smul' c f := by funext j; by_cases H:j=i; subst j; simp |
| 115 | simp [Pi.single_eq_of_ne H] } |
| 116 | Y.toContinuousLinearMap |
| 117 | lemma deck_at (v : Snap G d) (i : Fin (d-1)) : deck i v=Pi.single i (v i) := rfl |
| 118 | lemma decks (v : Snap G d) : (∑ i,deck i v)=v := by |
| 119 | funext i |
| 120 | simp [deck_at,Finset.sum_apply] |
| 121 | lemma deck_price (v : Snap G d) (h : ℝ) : Weighted.scaled (fun i : Fin (d-1) => i.val+2) (deck (G:=G)) h v=trunk d (scaleJet (expand d v) h) := by |
| 122 | unfold Weighted.scaled; funext i |
| 123 | simp only [Finset.sum_apply,Pi.smul_apply]; rw [sum_eq_single i] |
| 124 | · simp [trunk,expand,scaleJet,deck_at] |
| 125 | · intro j _ hj; rw [deck_at,Pi.single_eq_of_ne (Ne.symm hj),smul_zero] |
| 126 | simp |
| 127 | end Scale |
| 128 | |
| 129 | set_option maxHeartbeats 520000 in |
| 130 | lemma formal_null {o : Site n} {X : Support n} {p : Config G n → ℂ} (d : ℕ) (H : Hol G) (h : LocalOn X p) (hw : GaugeInvariant p) |
| 131 | {j : ℕ} (he : ∀ J : Jet G,∀ l,l ≤ j → iteratedDeriv l (fun t => p (H.testLinks d o J t)) 0=0) |
| 132 | (hp : ContDiffAt ℝ j (p ∘ increment 1) 0) : valence (fun i => (Sites o X i (G:=G) (d:=d):Set _)) j ((p ∘ increment 1) ∘ (optic X o (d:=d))) := by |
| 133 | let A (v : Snap G d) := p (H.testLinks d o (expand d v) 1) |
| 134 | let B := (p ∘ increment 1) ∘ (optic X o (d:=d)) |
| 135 | let L : Slate G n d →L[ℝ] Snap G d := ContinuousLinearMap.snd ℝ _ _ |
| 136 | let K : Snap G d →L[ℝ] Slate G n d := ContinuousLinearMap.inr ℝ _ _ |
| 137 | have hz v : L (K v)=v := rfl |
| 138 | have ht : B=ᶠ[𝓝 0] (A ∘ L) := appears h hw H |
| 139 | obtain ⟨hC,h₀⟩ := osmotic (G:=G) (d:=d) X o |
| 140 | have hB : ContDiffAt ℝ j B 0 := (h₀.symm ▸ hp).comp (f:=optic X o) 0 (hC.of_le le_top) |
| 141 | have hA : ContDiffAt ℝ j A 0 := by |
| 142 | have hx : Tendsto K (𝓝 0) (𝓝 0) := by simpa using K.continuous.tendsto (0:Snap G d) |
| 143 | refine ((show ContDiffAt ℝ j B (K (0:Snap G d)) from (map_zero K).symm ▸ hB).comp (f:=K) 0 K.contDiff.contDiffAt).congr_of_eventuallyEq |
| 144 | ((ht.comp_tendsto hx).symm) |
| 145 | have hs : Weighted.evolved (fun i : Fin (d-1) => i.val+2) (deck (G:=G)) j A := by |
| 146 | intro v i hi |
| 147 | simp_rw [deck_price, A, ← test_scaled] |
| 148 | exact he _ i hi |
| 149 | intro m a u ha |
| 150 | have hv1 : ∀ i,1 ≤ a i := fun i => (ha.1 i).1 |
| 151 | have hM : m ≤ j := le_trans (by simpa using sum_le_sum (s:=Finset.univ) (f:=fun _ => 1) (fun i _ => hv1 i)) ha.2 |
| 152 | letI : NormedAddCommGroup (Slate G n d) := inferInstanceAs (NormedAddCommGroup ((Site n → G.Color) × Snap G d)) |
| 153 | letI : NormedSpace ℝ (Slate G n d) := inferInstanceAs (NormedSpace ℝ ((Site n → G.Color) × Snap G d)) |
| 154 | have hx := (ht.iteratedFDeriv ℝ m).eq_of_nhds |
| 155 | change iteratedFDeriv ℝ m B 0 u=0; rw [hx,jets_linear L (hA.of_le (Nat.cast_le.mpr hM)), ContinuousMultilinearMap.compContinuousLinearMap_apply] |
| 156 | apply Weighted.cancel (fun i : Fin (d-1) => i.val+2) (deck (G:=G)) _ (fun i => by omega) decks hs hA _ a hv1 ha.2 |
| 157 | intro i x hx |
| 158 | rw [deck_at] |
| 159 | change (Pi.single x ((u i).2 x) : Snap G d)=0 |
| 160 | rw [((ha.1 i).2.2 x hx),Pi.single_zero] |
| 161 | end YM.MultiNext.SignedSource.Mom |