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.Bid.Angular |
| 2 | set_option autoImplicit false |
| 3 | noncomputable section |
| 4 | namespace YM.Work.A04 |
| 5 | open Set Function Filter Org Bid Extraction Climb Table Ward Spin |
| 6 | open scoped Topology ContDiff BigOperators Matrix.Norms.Frobenius NNReal InnerProductSpace |
| 7 | |
| 8 | section Linear |
| 9 | variable {ι E F : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] [FiniteDimensional ℂ E] |
| 10 | [NormedAddCommGroup F] [NormedSpace ℂ F] [FiniteDimensional ℂ F] |
| 11 | |
| 12 | /-- A finite set of tests suffices at each finite cap. -/ |
| 13 | theorem finite_faithful (f : ι → E →ₗ[ℂ] ℂ) (hf : Injective (LinearMap.pi f)) : |
| 14 | ∃ s : Finset ι, Injective (LinearMap.pi (fun i : s => f i)) := by |
| 15 | classical |
| 16 | let K (s : Finset ι) := LinearMap.ker (LinearMap.pi (fun i : s => f i)) |
| 17 | obtain ⟨_, ⟨s, rfl⟩, h⟩ := wellFounded_lt.has_min |
| 18 | (Set.range (fun s : Finset ι => Module.finrank ℂ (K s))) (Set.range_nonempty _) |
| 19 | refine ⟨s, LinearMap.ker_eq_bot.mp ?_⟩ |
| 20 | refine bot_unique (fun v (hv : v ∈ K s) => ?_) |
| 21 | rw [← LinearMap.ker_eq_bot.mpr hf] |
| 22 | apply LinearMap.mem_ker.mpr |
| 23 | funext i |
| 24 | have he : K (insert i s) = K s := by |
| 25 | refine Submodule.eq_of_le_of_finrank_le ?_ (not_lt.mp (h _ (Set.mem_range_self (insert i s)))) |
| 26 | intro x hx |
| 27 | apply funext |
| 28 | exact fun j => congr_fun (show (LinearMap.pi _) x = 0 from hx) |
| 29 | ⟨j.val, Finset.mem_insert_of_mem j.property⟩ |
| 30 | rw [← he] at hv |
| 31 | exact congr_fun (show (LinearMap.pi _) v = 0 from hv) ⟨i, Finset.mem_insert_self ..⟩ |
| 32 | |
| 33 | /-- Fit a signal through varying linear tests whose limit is injective. -/ |
| 34 | theorem tendsto_of_fitted (f : ℕ → E →ₗ[ℂ] F) (g : E →ₗ[ℂ] F) |
| 35 | {w : ℕ → E} {z : E} (hg : Injective g) (hf : ∀ x, Tendsto (fun k => f k x) atTop (𝓝 (g x))) |
| 36 | (hw : Tendsto (fun k => f k (w k)) atTop (𝓝 (g z))) : Tendsto w atTop (𝓝 z) := by |
| 37 | obtain ⟨h, hh⟩ := g.exists_leftInverse_of_injective (LinearMap.ker_eq_bot.mpr hg) |
| 38 | have he (x : E) : h (g x) = x := LinearMap.congr_fun hh x |
| 39 | let A (k : ℕ) : E →L[ℂ] E := LinearMap.toContinuousLinearMap (h.comp (f k)) |
| 40 | have hh' := h.continuous_of_finiteDimensional |
| 41 | have ha : Tendsto A atTop (𝓝 1) := by |
| 42 | change Tendsto _ _ (𝓝 (LinearMap.toContinuousLinearMap (LinearMap.id : E →ₗ[ℂ] E))) |
| 43 | refine Dash.fit_plane _ _ (fun x => ?_) |
| 44 | change Tendsto _ _ (𝓝 x) |
| 45 | nth_rw 2 [← he x] |
| 46 | exact (hh'.tendsto (g x)).comp (hf x) |
| 47 | have hva : Tendsto (fun k => A k (w k)) atTop (𝓝 z) := by |
| 48 | rw [← he z]; exact (hh'.tendsto _).comp hw |
| 49 | have hi : Tendsto (fun k => Ring.inverse (A k)) atTop (𝓝 (1 : E →L[ℂ] E)) := by |
| 50 | rw [← Ring.inverse_one (E →L[ℂ] E)] |
| 51 | exact (NormedRing.inverse_continuousAt (1 : (E →L[ℂ] E)ˣ)).tendsto.comp ha |
| 52 | have hv := Dash.arcing hi hva |
| 53 | rw [one_apply_eq_self] at hv |
| 54 | apply hv.congr' |
| 55 | filter_upwards [ha.eventually (Units.nhds (1 : (E →L[ℂ] E)ˣ))] with k hk |
| 56 | change (Ring.inverse (A k) * A k) (w k) = _ |
| 57 | rw [Ring.inverse_mul_cancel _ hk]; rfl |
| 58 | end Linear |
| 59 | |
| 60 | variable {G : Gauge} {L : Register G} {S : Table L} {d n : ℕ} |
| 61 | |
| 62 | /-- Free row at a separated exterior tuple and its varying version. -/ |
| 63 | def row (S : Table L) (d : ℕ) (e : Exterior L) : S.Field d →ₗ[ℂ] ℂ := |
| 64 | (LinearMap.proj e).comp (S.spectra d) |
| 65 | |
| 66 | theorem row_faithful (S : Table L) (d : ℕ) : Injective (LinearMap.pi (row S d)) := S.faithfully d |
| 67 | |
| 68 | def tags (S : Table L) (e : Exterior L) (v : S.Field d) : Fin (e.n+1) → S.Tag := |
| 69 | Fin.cons ⟨d,v⟩ (S.classTokens ∘ e.letter) |
| 70 | |
| 71 | theorem row_eq (h : S.Symmetric) (e : Exterior L) (v : S.Field d) : |
| 72 | row S d e v = disc (tags S e v) e.point := (S.through h v _ e.clear).symm |
| 73 | |
| 74 | def approxRow (p : Scaling S) (d : ℕ) (e : Exterior (Maxwell.standard L.grid)) (k : ℕ) : (Bel L).Field d →ₗ[ℂ] ℂ := |
| 75 | (here (p.pins k ∘ tags (Bel L) e (0 : (Bel L).Field d)) (p.r k • e.point) 0 d).comp (p.U k d).toLinearMap |
| 76 | |
| 77 | theorem approxRow_eq (p : Scaling S) (e : Exterior (Maxwell.standard L.grid)) (k : ℕ) (v : (Bel L).Field d) : |
| 78 | approxRow p d e k v = disc (p.pins k ∘ tags (Bel L) e v) (p.r k • e.point) := by |
| 79 | rw [approxRow, LinearMap.comp_apply, takes] |
| 80 | simp only [tags, Fin.comp_cons, Fin.update_cons_zero, Scaling.pins] |
| 81 | rfl |
| 82 | |
| 83 | theorem jetsAt (p : Scaling S) {N D m j : ℕ} {B : ℝ} (h : p.jets N D m B) |
| 84 | (hn : n ≤ N) (hj : j ≤ m) {v : Fin n → (Bel L).Tag} |
| 85 | (hv : ∀ i, (v i).1 ≤ D) {x : Points n} (hx : x ∈ Scaling.window B n) (u : Fin j → Points n) : |
| 86 | Tendsto (fun k => iteratedFDeriv ℝ j (fun y => disc (p.pins k ∘ v) (p.r k • y)) x u) |
| 87 | atTop (𝓝 (iteratedFDeriv ℝ j (disc v) x u)) := by |
| 88 | have he : Tendsto (fun k => iteratedFDeriv ℝ j (fun y => disc (p.pins k ∘ v) (p.r k • y)) x) |
| 89 | atTop (𝓝 (iteratedFDeriv ℝ j (disc v) x)) := by |
| 90 | apply Metric.tendsto_nhds.mpr |
| 91 | intro ε hε |
| 92 | filter_upwards [h _ hn _ hj v hv _ (half_pos hε)] with k hk |
| 93 | rw [dist_eq_norm]; exact (hk _ hx).trans_lt (half_lt_self hε) |
| 94 | exact (ContinuousMultilinearMap.apply ℝ _ _ u).continuous.continuousAt.tendsto.comp he |
| 95 | |
| 96 | theorem tags_cap {e : Exterior L} {D : ℕ} (hd : d ≤ D) (h : ∀ i, (e.letter i).1 ≤ D) (v : S.Field d) : |
| 97 | ∀ i, ((tags S e v) i).1 ≤ D := Fin.cases hd h |
| 98 | |
| 99 | theorem tendsto_row (p : Scaling S) (hB : (Bel L).Symmetric) {e : Exterior (Maxwell.standard L.grid)} |
| 100 | {D N m : ℕ} {B : ℝ} (h : p.jets N D m B) |
| 101 | (hn : e.n+1 ≤ N) (hd : d ≤ D) (hD : ∀ i, (e.letter i).1 ≤ D) (hx : e.point ∈ Scaling.window B (e.n+1)) : |
| 102 | ∀ v, Tendsto (fun k => approxRow p d e k v) atTop (𝓝 (row (Bel L) d e v)) := by |
| 103 | intro v |
| 104 | simp only [approxRow_eq, row_eq hB] |
| 105 | simpa only [iteratedFDeriv_zero_apply] using! |
| 106 | jetsAt p h hn (Nat.zero_le m) (tags_cap hd hD v) hx (fun _ => 0) |
| 107 | |
| 108 | theorem scale_conf (r : ℝ) (hr : 0 < r) {x : Points n} (hx : x ∈ conf n) : r • x ∈ conf n := by |
| 109 | intro i j hij |
| 110 | exact hx (smul_right_injective E4 hr.ne' (show r • x i = r • x j from hij)) |
| 111 | |
| 112 | theorem gradient_scaled (r : ℝ) (f : Points n → ℂ) (x : Points n) (hf : DifferentiableAt ℝ f (r • x)) |
| 113 | (i : Fin n) (a : Axis) : Points.gradient i a (fun y => f (r • y)) x = r • Points.gradient i a f (r • x) := by |
| 114 | let R := r • ContinuousLinearMap.id ℝ (Points n) |
| 115 | change fderiv ℝ (f ∘ R) x _ = _ |
| 116 | rw [fderiv_comp x (show DifferentiableAt ℝ f (R x) from hf) R.differentiableAt, R.fderiv, |
| 117 | ContinuousLinearMap.comp_apply] |
| 118 | exact (fderiv ℝ f (r • x)).map_smul r _ |
| 119 | |
| 120 | /-- Evaluation after carrying and scaling the derivative is exactly a derivative in the rescaled positions. -/ |
| 121 | theorem approxDeriv (H : S.Hierarchy) (V : DiffPlan S) (hV : V.Derivatives S) |
| 122 | (p : Scaling S) (e : Exterior (Maxwell.standard L.grid)) (a : Axis) (v : (Bel L).Field d) (k : ℕ) : |
| 123 | approxRow p (d+1) e k ((p.r k • p.aisle k d (leaves V.deriv d)) a v) = |
| 124 | Points.gradient 0 a (fun y => disc (p.pins k ∘ tags (Bel L) e v) (p.r k • y)) e.point := by |
| 125 | rw [approxRow_eq] |
| 126 | let y := p.r k • e.point |
| 127 | let w := (p.pins k ∘ tags (Bel L) e v) |
| 128 | have hy : y ∈ conf _ := scale_conf _ (p.positive k) e.clear |
| 129 | rw [gradient_scaled (p.r k) (disc w) _ ((cont_disc H _ hy).differentiableAt (by simp))] |
| 130 | simp only [w, tags, Fin.comp_cons] |
| 131 | have he (z : (Bel L).Field (d+1)) : p.U k (d+1) (p.r k • z) = p.r k • p.U k (d+1) z := |
| 132 | ((p.U k (d+1)).toLinearMap.restrictScalars ℝ).map_smul _ _ |
| 133 | let l := (p.pins k ∘ ((Bel L).classTokens ∘ e.letter)) |
| 134 | change disc (Fin.cons ⟨_,p.U k (d+1) (p.r k • p.carry k (leaves V.deriv d a) v)⟩ l) y = |
| 135 | p.r k • Points.gradient 0 a (disc (Fin.cons ⟨d,p.U k d v⟩ l)) y |
| 136 | rw [he,p.carries_f]; unfold disc; rw [← hV.kernels d a (p.U k d v) hy l] |
| 137 | let z := V.deriv d a (p.U k d v) |
| 138 | have H (v : S.Field (d+1)) : disc (Fin.cons ⟨d+1,v⟩ l) y = here (Fin.cons ⟨d+1,z⟩ l) y 0 (d+1) v := by |
| 139 | rw [takes, Fin.update_cons_zero] |
| 140 | exact (H _).trans ((((here _ _ _ _).restrictScalars ℝ).map_smul _ z).trans (congr_arg _ (H z).symm)) |
| 141 | |
| 142 | theorem tendsto_deriv_row (H : S.Hierarchy) (V : DiffPlan S) (hV : V.Derivatives S) |
| 143 | (hB : (Bel L).Symmetric) (W : DiffPlan (Bel L)) (hW : W.Derivatives (Bel L)) |
| 144 | (p : Scaling S) {e : Exterior (Maxwell.standard L.grid)} |
| 145 | {D N m : ℕ} {B : ℝ} (h : p.jets N D m B) |
| 146 | (hn : e.n+1 ≤ N) (hd : d ≤ D) (hD : ∀ i, (e.letter i).1 ≤ D) (hm : 1 ≤ m) |
| 147 | (hx : e.point ∈ Scaling.window B (e.n+1)) (a : Axis) (v : (Bel L).Field d) : |
| 148 | Tendsto (fun k => approxRow p (d+1) e k ((p.r k • p.aisle k d (leaves V.deriv d)) a v)) |
| 149 | atTop (𝓝 (row (Bel L) (d+1) e ((leaves W.deriv d) a v))) := by |
| 150 | simp only [approxDeriv H V hV, row_eq hB] |
| 151 | change Tendsto _ _ (𝓝 ((Bel L).useAt (Bel L) e.point (Fin.cons ⟨d+1,W.deriv d a v⟩ _))) |
| 152 | rw [hW.kernels _ _ _ e.clear] |
| 153 | simpa only [iteratedFDeriv_one_apply] using! jetsAt p h hn hm (tags_cap hd hD v) hx (fun _ => Points.direction 0 a) |
| 154 | |
| 155 | theorem eventually_window {x : Points n} (hx : x ∈ conf n) : |
| 156 | ∀ᶠ B in (atTop : Filter ℝ), x ∈ Scaling.window B n := by |
| 157 | have he : ∀ᶠ B in (atTop : Filter ℝ), ∀ i j : Fin n, (cubedist (x i) (x j))⁻¹ ≤ B := |
| 158 | eventually_all.mpr fun _ => eventually_all.mpr fun _ => eventually_ge_atTop _ |
| 159 | filter_upwards [eventually_ge_atTop (1 : ℝ), he, eventually_ge_atTop ‖x‖] with B hB he h |
| 160 | refine ⟨fun i j hij => (inv_le_comm₀ (zero_lt_one.trans_le hB) ?_).mpr (he i j),h⟩ |
| 161 | exact dist_pos.mpr (fun he => hij (hx (congr_arg (WithLp.toLp 2) he))) |
| 162 | |
| 163 | theorem answer : YM.Bid.A04 := by |
| 164 | intro G C S H V _ hV R J d |
| 165 | obtain ⟨s, hs⟩ := finite_faithful _ (row_faithful (Bel C.book) (d+1)) |
| 166 | obtain ⟨N, hN⟩ := (eventually_all.mpr fun i : s => eventually_ge_atTop (i.val.n+1)).exists |
| 167 | have hD : ∀ᶠ D in (atTop : Filter ℕ), ∀ i : s, ∀ j, (i.val.letter j).1 ≤ D := |
| 168 | eventually_all.mpr fun _ => eventually_all.mpr fun _ => eventually_ge_atTop _ |
| 169 | obtain ⟨D, hd, hD⟩ := ((eventually_ge_atTop (d+1)).and hD).exists |
| 170 | obtain ⟨B, hB⟩ := eventually_atTop.mp |
| 171 | ((eventually_ge_atTop (1 : ℝ)).and (eventually_all.mpr fun i : s => eventually_window i.val.clear)) |
| 172 | refine ⟨D,N,1,B,(hB B le_rfl).1,fun p D' N' m B' hD' hN' hm hB' h => ?_⟩ |
| 173 | unfold ConLap |
| 174 | apply tendsto_pi_nhds.mpr; intro a |
| 175 | apply Dash.fit_plane (fun k => ((p.r k • p.aisle k d (leaves V.deriv d)) a).toLinearMap) (R.T.W.deriv d a) |
| 176 | intro v |
| 177 | apply tendsto_of_fitted (fun k => LinearMap.pi fun i : s => approxRow p (d+1) i.val k) _ hs |
| 178 | · intro x; refine tendsto_pi_nhds.mpr fun i => ?_ |
| 179 | exact tendsto_row p R.hT.laws.toSymmetric h.thick ((hN i).trans hN') (hd.trans hD') |
| 180 | (fun j => (hD i j).trans hD') ((hB B' hB').2 i) x |
| 181 | refine tendsto_pi_nhds.mpr fun i => ?_ |
| 182 | exact tendsto_deriv_row H V hV R.hT.laws.toSymmetric R.T.W R.lit.pales p h.thick |
| 183 | ((hN i).trans hN') (by omega) (fun j => (hD i j).trans hD') hm ((hB B' hB').2 i) a v |
| 184 | end YM.Work.A04 |