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.Ward.Walk |
| 2 | |
| 3 | /-! |
| 4 | # Geometry . Park to-axis from injective times any chosen |
| 5 | normal, three movements of the earliest, conceptually. Includes no path with |
| 6 | zero/invalid segment, though intervals can be degenerate. Perturb any Conf via |
| 7 | avoiding finitely many hyperplanes. |
| 8 | -/ |
| 9 | set_option autoImplicit false |
| 10 | noncomputable section |
| 11 | namespace YM.Ward |
| 12 | open Set Function Filter |
| 13 | open scoped Topology BigOperators |
| 14 | variable {n : ℕ} (a b : Axis) |
| 15 | |
| 16 | abbrev arranged (x : Points n) := Injective (fun i : Fin n => x i a) |
| 17 | lemma also {x : Points n} (h : arranged a x) : x∈ conf n := fun _ _ e => h (congr_arg (fun p : E4 => p a) e) |
| 18 | lemma suffices_dist {x y : Points n} {j : Fin n} (h : x∈conf _) (he : ∀ i≠j, x i=y i) |
| 19 | (hp : ∀ i≠j, y i a ≠ y j a) : y∈conf _ := by |
| 20 | intro i k hg |
| 21 | by_contra hk |
| 22 | have hx : y i a=y k a := congr_arg (fun p : E4 => p a) hg |
| 23 | by_cases p : j=i |
| 24 | · subst i; exact hp k (Ne.symm hk) hx.symm |
| 25 | by_cases s : j=k |
| 26 | · subst k; exact hp _ hk hx |
| 27 | exact hk ((show Injective x.ofLp from h) ((he i (Ne.symm p)).trans (hg.trans (he k (Ne.symm s)).symm))) |
| 28 | |
| 29 | lemma still_first {x : Points n} {k : Fin n} (h : Earliest x a k) (w : b≠a) (s : ℝ) : Earliest (cast x k b s) a k := by |
| 30 | have he (j) (hj : j≠k) : cast x k b s k a < cast x k b s j a := by simp [atCast,near x k j hj,w.symm,h.2 j hj] |
| 31 | exact ⟨suffices_dist a h.1 (fun i hi => (near x k i hi b s).symm) (fun i hi => (he i hi).ne'),he⟩ |
| 32 | lemma still_last {x : Points n} {k : Fin n} (h : Latest x a k) (w : b≠a) (s : ℝ) : Latest (cast x k b s) a k := by |
| 33 | have he (j) (hj : j≠k) : cast x k b s j a < cast x k b s k a := by simp [atCast,near x k j hj,w.symm,h.2 j hj] |
| 34 | exact ⟨suffices_dist a h.1 (fun i hi => (near x k i hi b s).symm) (fun i hi => (he i hi).ne),he⟩ |
| 35 | |
| 36 | lemma park1 {x : Points n} {k : Fin n} (h : Latest x a k) : ∀ s : Finset Axis, |
| 37 | a∉s → ∃ y : Points n, Walk n x y ∧ y k a=x k a ∧ (∀ i≠k, x i=y i) ∧ |
| 38 | Latest y a k ∧ ∀ b∈s, y k b=0 := by |
| 39 | intro s ht |
| 40 | induction s using Finset.induction_on with |
| 41 | | empty => exact ⟨x,.id x,rfl,fun _ _ => rfl,h,by simp⟩ |
| 42 | | @insert b s hb ih => |
| 43 | obtain ⟨y,hy,he,hs,h',hh⟩ := ih (fun e => ht (Finset.mem_insert_of_mem e)) |
| 44 | let v := -(y k b) |
| 45 | let z := cast y k b v |
| 46 | have hv : b≠a := by intro H; subst a; exact ht (by simp) |
| 47 | refine ⟨z,Walk.transit hy (Walk.bridge y k a b v fun i _ => Or.inr (still_last a b h' hv i)), by simp [z, Ne.symm hv,he], |
| 48 | fun i hi => (hs i hi).trans (near y _ _ hi _ _).symm, still_last a b h' hv v, ?_⟩ |
| 49 | intro i hi |
| 50 | rcases Finset.mem_insert.mp hi with hi|hi |
| 51 | · subst i; simp [z,v] |
| 52 | have hv' : i≠b := fun h => hb (h ▸ hi) |
| 53 | simp [z,hv',hh i hi] |
| 54 | |
| 55 | private lemma ta (y : Fin n → ℝ) : ∃ J : ℝ, ∀ i, y i<J := |
| 56 | ((eventually_all).mpr (fun i => eventually_gt_atTop (y i))).exists |
| 57 | lemma pushes {x : Points n} {k : Fin n} (h : Earliest x a k) (w : b≠a) : ∃ y : Points n, |
| 58 | Walk n x y ∧ (∀ i≠k, x i=y i) ∧ Latest y a k ∧ (∃ t : ℝ, y k=t • basis a) := by |
| 59 | obtain ⟨T,hT⟩ := ta (fun i : Fin n => x i b) |
| 60 | let u := cast x k b (T-x k b) |
| 61 | have hi : Walk n x u := .bridge _ _ a _ _ (fun i s => Or.inl (still_first a b h w i)) |
| 62 | have hx : Latest u b k := by |
| 63 | refine ⟨(still_first a b h w _).1,fun i h => ?_⟩ |
| 64 | simp [u,near _ _ _ h,hT i] |
| 65 | obtain ⟨J,hJ⟩ := ta (fun i : Fin n => u i a) |
| 66 | let v := cast u k a (J-u k a) |
| 67 | have hv : Walk n u v := .bridge _ _ b a _ (fun i s => Or.inr (still_last b a hx w.symm i)) |
| 68 | have hz : Latest v a k := by |
| 69 | refine ⟨(still_last b a hx w.symm _).1,fun i h => ?_⟩ |
| 70 | simp [v,near _ _ _ h,hJ i] |
| 71 | obtain ⟨y,hy,he,hh,H,Hq⟩ := park1 a hz (Finset.univ.erase a) (by simp) |
| 72 | refine ⟨y,(hi.transit hv).transit hy,fun i hi => (near x _ _ hi _ _).symm.trans |
| 73 | ((near u _ _ hi _ _).symm.trans (hh i hi)), H,y k a, ?_⟩ |
| 74 | ext i; by_cases h : i=a; subst i; simp; simp [Hq i (by simp [h]),h] |
| 75 | |
| 76 | lemma after {x : Points n} {k : Fin n} (h : arranged a x) {y : Points n} (hy : ∀ i≠k, x i=y i) (ht : Latest y a k) : |
| 77 | arranged a y := by |
| 78 | intro s t he |
| 79 | by_contra H |
| 80 | by_cases E : s=k |
| 81 | · subst s; exact (ht.2 t (Ne.symm H)).ne' he |
| 82 | by_cases e : t=k |
| 83 | · subst t; exact (ht.2 s H).ne he |
| 84 | exact H (h (show _ from by dsimp only; rw [hy s E, hy t e]; exact he)) |
| 85 | |
| 86 | lemma line (w : a≠b) (x : Points n) (h : arranged a x) (N : Finset (Fin n)) |
| 87 | (H : ∀ i∉N, (∃ t : ℝ, x i=t • basis a) ∧ ∀ j∈ N, x j a < x i a) : ∃ y, Walk n x y ∧ y∈conf n ∧ onLine a y := by |
| 88 | induction N using Finset.strongInductionOn generalizing x with |
| 89 | | _ N ih => |
| 90 | rcases N.eq_empty_or_nonempty with hv|hh |
| 91 | · subst N; exact ⟨x,.id _, also a h,fun i => (H i (by simp)).1⟩ |
| 92 | obtain ⟨i,hi,hz⟩ := Finset.exists_min_image N (fun i => x i a) hh |
| 93 | have hu : Earliest x a i := by |
| 94 | refine ⟨also a h,fun j hj => ?_⟩ |
| 95 | by_cases e : j∈N |
| 96 | · exact lt_of_le_of_ne (hz j e) (arranged_ne a h hj.symm) |
| 97 | exact (H j e).2 _ hi |
| 98 | obtain ⟨y,he,hD,hv,Hl⟩ := pushes a b hu w.symm |
| 99 | have hr : ∀ j∉ N.erase i, (∃ t : ℝ, y j=t • basis a) ∧ ∀ k∈N.erase i, y k a < y j a := by |
| 100 | intro j h' |
| 101 | by_cases p : i=j |
| 102 | · subst j; exact ⟨Hl,fun j hj => hv.2 _ (Finset.mem_erase.mp hj).1⟩ |
| 103 | have hr := H j (fun hi => h' (Finset.mem_erase.mpr ⟨Ne.symm p,hi⟩)) |
| 104 | refine ⟨by rw [← hD j (Ne.symm p)]; exact hr.1,fun k hk => ?_⟩ |
| 105 | rw [← hD k (Finset.mem_erase.mp hk).1,← hD j (Ne.symm p)]; exact hr.2 _ (Finset.mem_erase.mp hk).2 |
| 106 | obtain ⟨z,hI,hv',hp⟩ := ih (N.erase i) (Finset.erase_ssubset hi) y (after a h hD hv) hr |
| 107 | exact ⟨z, Walk.transit he hI,hv',hp⟩ |
| 108 | where arranged_ne (a) {x : Points n} (h : arranged a x) {i j} (e : i≠j) : x i a≠x j a := h.ne e |
| 109 | |
| 110 | private lemma fills (x : Points n) : x∈closure {x : Points n | arranged a x} := by |
| 111 | let v := points fun i : Fin n => (↑(i.val):ℝ) • basis a |
| 112 | let z := fun t : ℝ => x+t • v |
| 113 | have he : Tendsto z (𝓝[>] 0) (𝓝 x) := by |
| 114 | have h : Continuous z := continuous_const.add (continuous_id.smul continuous_const) |
| 115 | simpa [z] using (h.tendsto 0).mono_left (nhdsWithin_le_nhds (s := Ioi 0)) |
| 116 | have hu : ∀ᶠ t in 𝓝[>] 0, ∀ i j, i≠j → z t i a≠ z t j a := by |
| 117 | apply eventually_all.mpr; intro i; apply eventually_all.mpr; intro j |
| 118 | by_cases h : i=j |
| 119 | · exact Eventually.of_forall fun _ hx => (hx h).elim |
| 120 | have hh : (i.val:ℝ)≠j.val := by exact_mod_cast (show i.val≠j.val from fun p => h (Fin.ext p)) |
| 121 | by_cases hi : x i a=x j a |
| 122 | · filter_upwards [self_mem_nhdsWithin] with t ht Hh |
| 123 | have hr : t≠0 := LT.lt.ne' ht |
| 124 | simp [z,v,hi,hr]; exact fun hy => h (Fin.ext hy) |
| 125 | have hp := he.eventually (show ({x : Points n | x i a ≠ x j a} : Set _) ∈ _ from |
| 126 | (isOpen_ne_fun (by fun_prop : Continuous (fun x : Points n => x i a)) (by fun_prop)).mem_nhds hi) |
| 127 | exact hp.mono fun x h _ => h |
| 128 | apply mem_closure_of_tendsto he (hu.mono fun i hi => show arranged a (z i) from fun j k h => by_contra fun hg => hi j k hg h) |
| 129 | |
| 130 | theorem global {G : Gauge} {L : Register G} (S : Table L) (H : S.Hierarchy) (W : DiffPlan S) (T : SpinRows S) (P : W.Derivatives S) |
| 131 | (C : commutes W T) (Y : Collinear W T) {n : ℕ} (x : Points n) (hx : x∈conf n) : Still W T x := by |
| 132 | let a : Axis := 0; let b : Axis := 1 |
| 133 | have he i (h : arranged (n := n) a i) : Still W T i := by |
| 134 | obtain ⟨p,ht,hP,ha⟩ := line a b (by norm_num [a,b]) i h Finset.univ (by simp) |
| 135 | exact along W T H P Y C ht (fun k g => Y _ _ _ k _ hP ha) |
| 136 | obtain ⟨f,hf,hv⟩ := mem_closure_iff_seq_limit.mp (fills a x) |
| 137 | intro q K |
| 138 | have ht := (ac W T H hx K q).continuousAt.tendsto.comp hv |
| 139 | exact tendsto_nhds_unique ht (tendsto_const_nhds.congr (fun i => (he _ (hf i) q K).symm)) |
| 140 | end YM.Ward |