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 | |
| 3 | /-! |
| 4 | # A07: transfer of internal Ward kernel detection |
| 5 | |
| 6 | At a fixed degree cap, work on the fixed finite-dimensional **real** vector space |
| 7 | of `Winds` on the comparator side. Use its erasure hypothesis (not the |
| 8 | polar-vector test `cuts`) to choose a finite family of separating rows there. |
| 9 | On this same vector space we can run approximating rows with the S-kernels at |
| 10 | rescaled, still separated points. Jet convergence at *order zero* suffices |
| 11 | for eventual injectivity. Only then test on the unknown, k-dependent pulled-back |
| 12 | defect. |
| 13 | |
| 14 | This is conditional on free erasure, aligned weak comparison, etc.; no |
| 15 | construction of `MaxwellData` or `ActLaw` here. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | noncomputable section |
| 20 | namespace YM.Work.A07 |
| 21 | |
| 22 | open Org Table Climb Ward Set Function Filter |
| 23 | open scoped Topology BigOperators Matrix.Norms.Frobenius |
| 24 | |
| 25 | /-- Finite rows still separate. Does not assume nonzero dimension or |
| 26 | nonempty testing family. -/ |
| 27 | theorem finite_rows {I E F : Type*} [AddCommGroup E] [Module ℝ E] |
| 28 | [FiniteDimensional ℝ E] [AddCommGroup F] [Module ℝ F] |
| 29 | (f : I → E →ₗ[ℝ] F) (h : ∀ x : E, (∀ i, f i x = 0) → x = 0) : |
| 30 | ∃ s : Finset I, Injective (LinearMap.pi (fun i : s => f i.1)) := by |
| 31 | classical |
| 32 | let K (s : Finset I) := ⨅ i : s, LinearMap.ker (f i.1) |
| 33 | have ex : ∃ n : ℕ, ∃ s : Finset I, Module.finrank ℝ (K s) = n := ⟨_, ∅, rfl⟩ |
| 34 | obtain ⟨s, hs⟩ := Nat.find_spec ex |
| 35 | refine ⟨s, LinearMap.ker_eq_bot.mp (LinearMap.ker_eq_bot'.mpr ?_)⟩ |
| 36 | intro x hx |
| 37 | have hmem : x ∈ K s := (Submodule.mem_iInf _).mpr fun j => |
| 38 | LinearMap.mem_ker.mpr (congr_fun hx j) |
| 39 | refine h x fun i => ?_ |
| 40 | -- Inserting any further row leaves the intersection equal. |
| 41 | have le : K (insert i s) ≤ K s := le_iInf fun j => |
| 42 | iInf_le_of_le (⟨j.1, Finset.mem_insert_of_mem j.2⟩ : (insert i s : Finset I)) le_rfl |
| 43 | have he : K (insert i s) = K s := Submodule.eq_of_le_of_finrank_le le |
| 44 | (hs ▸ Nat.find_min' ex (show ∃ s', Module.finrank ℝ (K s') = Module.finrank ℝ (K (insert i s)) from |
| 45 | ⟨_, rfl⟩)) |
| 46 | rw [← he] at hmem |
| 47 | exact LinearMap.mem_ker.mp ((Submodule.mem_iInf _).mp hmem |
| 48 | (⟨i, Finset.mem_insert_self ..⟩ : (insert i s : Finset I))) |
| 49 | |
| 50 | /-- Full rank of approximating finite-dimensional systems, using convergence |
| 51 | on fixed inputs. No topology needed on E. -/ |
| 52 | theorem eventually_injective {E F : Type*} [AddCommGroup E] [Module ℝ E] |
| 53 | [FiniteDimensional ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 54 | (f : ℕ → E →ₗ[ℝ] F) (g : E →ₗ[ℝ] F) (hg : Injective g) |
| 55 | (h : ∀ x, Tendsto (fun k => f k x) atTop (𝓝 (g x))) : |
| 56 | ∀ᶠ k in atTop, Injective (f k) := by |
| 57 | let B := Module.finBasis ℝ E |
| 58 | have hl := B.linearIndependent.map' g (LinearMap.ker_eq_bot.mpr hg) |
| 59 | have ht : Tendsto (fun k => f k ∘ B) atTop (𝓝 (g ∘ B)) := |
| 60 | tendsto_pi_nhds.mpr (fun i => h (B i)) |
| 61 | filter_upwards [ht.eventually hl.eventually] with k hk |
| 62 | have hd := Submodule.range_ker_disjoint (show LinearIndependent ℝ (f k ∘ B) from hk) |
| 63 | rw [B.span_eq] at hd |
| 64 | exact LinearMap.ker_eq_bot.mp (LinearMap.ker_eq_bot'.mpr fun x hx => |
| 65 | Submodule.disjoint_def.mp hd _ (Submodule.mem_top) (LinearMap.mem_ker.mpr hx)) |
| 66 | |
| 67 | variable {G : Gauge} {L : Register G} {S : Table L} |
| 68 | |
| 69 | section Param |
| 70 | |
| 71 | /-- Package exactly the `Winds` restrictions as a *real* submodule. -/ |
| 72 | def internal (H : S.RealSpin) (P : DiffPlan S) (d : ℕ) : Submodule ℝ (Two S d) where |
| 73 | carrier := {T | Winds H P d T} |
| 74 | add_mem' {x y} (hx : Winds H P d x) (hy : Winds H P d y) := by |
| 75 | refine ⟨fun g hg u v z => ?_, fun u v z => ?_, fun u v => ?_, fun u => ?_, |
| 76 | fun k h u v z => ?_⟩ |
| 77 | · simp only [LinearMap.add_apply, map_add, hx.polar g hg, hy.polar g hg] |
| 78 | · simp only [LinearMap.add_apply, map_add, hx.real, hy.real] |
| 79 | · simp only [LinearMap.add_apply, hx.unit, hy.unit, add_zero] |
| 80 | · simp only [LinearMap.add_apply, hx.alt, hy.alt, add_zero] |
| 81 | · exact (LinearMap.range _).add_mem (hx.rises k h u v z) (hy.rises k h u v z) |
| 82 | zero_mem' := by |
| 83 | exact ⟨by intros; simp, by intros; simp, by intros; simp, by intros; simp, |
| 84 | by intros; simp⟩ |
| 85 | smul_mem' (c : ℝ) (x : Two S d) (hx : Winds H P d x) := by |
| 86 | refine ⟨fun g hg u v z => ?_, fun u v z => ?_, fun u v => ?_, fun u => ?_, |
| 87 | fun k h u v z => ?_⟩ |
| 88 | · change S.mirror H _ _ (c • _) = c • x (orients g u) _ _ |
| 89 | simp only [RCLike.real_smul_eq_coe_smul (K := ℂ), map_smul, hx.polar g hg] |
| 90 | · change S.conj H _ (c • _) = c • x u v _ |
| 91 | simp only [RCLike.real_smul_eq_coe_smul (K := ℂ), map_smulₛₗ, hx.real] |
| 92 | change (starRingEnd ℂ) ((c : ℝ) : ℂ) • _ = ((c : ℝ) : ℂ) • x u v _ |
| 93 | rw [Complex.conj_ofReal] |
| 94 | · change c • x u v (S.unit d) = _ |
| 95 | simp [hx.unit] |
| 96 | · change c • x u u = _ |
| 97 | simp [hx.alt] |
| 98 | · change c • x u v _ ∈ LinearMap.range _ |
| 99 | rw [RCLike.real_smul_eq_coe_smul (K := ℂ)] |
| 100 | exact (LinearMap.range _).smul_mem _ (hx.rises k h u v z) |
| 101 | |
| 102 | variable {d : ℕ} |
| 103 | |
| 104 | /-- Transport both ways between free and actual internal map-shaped data. -/ |
| 105 | def pushTwo (U : Spin.change S d) : Two (Bel L) d ≃ₗ[ℝ] Two S d := by |
| 106 | let e : ((Bel L).Field d →ₗ[ℂ] (Bel L).Field d) ≃ₗ[ℂ] (S.Field d →ₗ[ℂ] S.Field d) := |
| 107 | LinearEquiv.arrowCongr U U |
| 108 | let a : (Ortho.Skew →ₗ[ℝ] ((Bel L).Field d →ₗ[ℂ] (Bel L).Field d)) ≃ₗ[ℝ] |
| 109 | (Ortho.Skew →ₗ[ℝ] (S.Field d →ₗ[ℂ] S.Field d)) := |
| 110 | LinearEquiv.arrowCongr (LinearEquiv.refl ℝ _) (e.restrictScalars ℝ) |
| 111 | exact LinearEquiv.arrowCongr (LinearEquiv.refl ℝ _) a |
| 112 | |
| 113 | theorem push_apply (U : Spin.change S d) (T : Two (Bel L) d) (u v : Ortho.Skew) |
| 114 | (x : (Bel L).Field d) : pushTwo U T u v (U x) = U (T u v x) := by |
| 115 | change U (T u v (U.symm (U x))) = _ |
| 116 | rw [LinearEquiv.symm_apply_apply] |
| 117 | |
| 118 | theorem pull_apply (U : Spin.change S d) (T : Two S d) (u v : Ortho.Skew) |
| 119 | (x : (Bel L).Field d) : U ((pushTwo U).symm T u v x) = T u v (U x) := by |
| 120 | rw [← push_apply, LinearEquiv.apply_symm_apply] |
| 121 | |
| 122 | /-- `Align` protects the `Winds` side conditions, even for maps varying with k. -/ |
| 123 | theorem pull_winds (X : Scaling S) {D : ℕ} {P : DiffPlan S} {Q : DiffPlan (Bel L)} |
| 124 | {H a} (hX : X.Align P Q H a D) (hd : d ≤ D) (k : ℕ) (T : Two S d) |
| 125 | (hT : Winds H P d T) : Winds a Q d ((pushTwo (X.U k d)).symm T) where |
| 126 | polar g hg u v z := by |
| 127 | apply (X.U k d).injective |
| 128 | rw [(hX.Hsym k d hd).1, pull_apply, pull_apply, hT.polar g hg, (hX.Hsym k d hd).1] |
| 129 | real u v z := by |
| 130 | apply (X.U k d).injective |
| 131 | rw [(hX.Hsym k d hd).2, pull_apply, pull_apply, (hX.Hsym k d hd).2, hT.real] |
| 132 | unit u v := by |
| 133 | apply (X.U k d).injective |
| 134 | rw [pull_apply, hX.carries k d hd, hT.unit, map_zero] |
| 135 | alt u := by |
| 136 | apply LinearMap.ext |
| 137 | intro z |
| 138 | apply (X.U k d).injective |
| 139 | rw [pull_apply, hT.alt]; simp |
| 140 | rises c hc u v z := by |
| 141 | obtain ⟨y, hy⟩ := hT.rises c hc u v (X.U k c z) |
| 142 | obtain ⟨w, rfl⟩ := (X.U k c).surjective y |
| 143 | refine ⟨w, (X.U k d).injective ?_⟩ |
| 144 | rwa [pull_apply, hX.incl k c d hc hd, hX.incl k c d hc hd] |
| 145 | end Param |
| 146 | |
| 147 | -- Aid typeclass search through the nested maps (same additive structures). |
| 148 | local instance agInner (d : ℕ) : AddCommGroup (Ortho.Skew →ₗ[ℝ] (S.Field d →ₗ[ℂ] S.Field d)) := |
| 149 | inferInstance |
| 150 | local instance agTwo (d : ℕ) : AddCommGroup (Two S d) := inferInstance |
| 151 | |
| 152 | theorem finiteDimensional_internal (H : S.RealSpin) (P : DiffPlan S) (d : ℕ) : |
| 153 | FiniteDimensional ℝ (internal H P d) := by |
| 154 | letI : FiniteDimensional ℝ (S.Field d →ₗ[ℂ] S.Field d) := Module.Finite.trans ℂ _ |
| 155 | infer_instance |
| 156 | |
| 157 | section Rows |
| 158 | |
| 159 | variable {d : ℕ} |
| 160 | |
| 161 | /-- The row-sum in `erases`, as a real linear map. -/ |
| 162 | def rowSum {m : ℕ} (x : Points m) (w : Fin m → S.Field d) (u v : Ortho.Skew) : |
| 163 | Two S d →ₗ[ℝ] ℂ := by |
| 164 | let obs : (S.Field d →ₗ[ℂ] S.Field d) →ₗ[ℂ] ℂ := |
| 165 | (observed w x d).comp LinearMap.toContinuousLinearMap.toLinearMap |
| 166 | exact (obs.restrictScalars ℝ).comp ((LinearMap.applyₗ v).comp (LinearMap.applyₗ u)) |
| 167 | |
| 168 | theorem rowSum_eq {m : ℕ} (x : Points m) (w : Fin m → S.Field d) (u v : Ortho.Skew) |
| 169 | (T : Two S d) : rowSum x w u v T = |
| 170 | ∑ i, disc (update (Climb.column w) i ⟨d, T u v (w i)⟩) x := |
| 171 | observation w (LinearMap.toContinuousLinearMap (T u v)) x |
| 172 | |
| 173 | /-- One test at a separated configuration. -/ |
| 174 | structure CellRow (S : Table L) (d : ℕ) where |
| 175 | m : ℕ |
| 176 | x : Points m |
| 177 | separated : x ∈ conf m |
| 178 | w : Fin m → S.Field d |
| 179 | u : Ortho.Skew |
| 180 | v : Ortho.Skew |
| 181 | |
| 182 | def CellRow.testRow (q : CellRow S d) : Two S d →ₗ[ℝ] ℂ := |
| 183 | rowSum q.x q.w q.u q.v |
| 184 | |
| 185 | /-- Windows exhaust all separated points including tuples of length zero and one. -/ |
| 186 | theorem eventually_window {m : ℕ} (x : Points m) (hx : x ∈ conf m) : |
| 187 | ∀ᶠ R : ℝ in atTop, x ∈ Scaling.window R m := by |
| 188 | have sp : ∀ᶠ R : ℝ in atTop, spaced R⁻¹ x := by |
| 189 | unfold spaced |
| 190 | refine Filter.eventually_all.mpr fun i => Filter.eventually_all.mpr fun j => |
| 191 | Filter.eventually_all.mpr fun h => ?_ |
| 192 | have hp : 0 < cubedist (x i) (x j) := dist_pos.mpr fun e => |
| 193 | h ((show Injective x.ofLp from hx) ((WithLp.ofLp_injective 2) e)) |
| 194 | exact (eventually_ge_atTop _).mono fun _ he => inv_le_of_inv_le₀ hp he |
| 195 | exact sp.and (eventually_ge_atTop ‖x‖) |
| 196 | |
| 197 | /-- The approximating row, still a linear map on the *fixed free side*. -/ |
| 198 | def actual (X : Scaling S) (k : ℕ) (q : CellRow (Bel L) d) : Two (Bel L) d →ₗ[ℝ] ℂ := |
| 199 | (rowSum (X.r k • q.x) ((X.U k d) ∘ q.w) q.u q.v).comp (pushTwo (X.U k d)).toLinearMap |
| 200 | |
| 201 | theorem actual_eq (X : Scaling S) (k : ℕ) (q : CellRow (Bel L) d) (T : Two (Bel L) d) : |
| 202 | actual X k q T = ∑ i, disc (X.pins k ∘ update (Climb.column q.w) i |
| 203 | (⟨d, T q.u q.v (q.w i)⟩ : (Bel L).Tag)) (X.r k • q.x) := by |
| 204 | change rowSum (X.r k • q.x) ((X.U k d) ∘ q.w) q.u q.v (pushTwo (X.U k d) T) = _ |
| 205 | rw [rowSum_eq] |
| 206 | apply Finset.sum_congr rfl; intro i _ |
| 207 | congr 1 |
| 208 | funext j |
| 209 | by_cases h : j = i |
| 210 | · subst j |
| 211 | simp only [comp_apply, update_self, push_apply] |
| 212 | rfl |
| 213 | · simp only [comp_apply, update_of_ne h]; rfl |
| 214 | |
| 215 | /-- Zero-th order jet convergence for a fixed word. -/ |
| 216 | theorem value_limit (X : Scaling S) {N m j : ℕ} {R : ℝ} (hb : X.jets N d j R) |
| 217 | (hm : m ≤ N) (x : Points m) (hx : x ∈ Scaling.window R m) |
| 218 | (w : Fin m → (Bel L).Tag) (hw : ∀ i, (w i).1 ≤ d) : |
| 219 | Tendsto (fun k => disc (X.pins k ∘ w) (X.r k • x)) atTop (𝓝 (disc w x)) := by |
| 220 | refine Metric.tendsto_nhds.mpr fun ε hε => ?_ |
| 221 | filter_upwards [hb m hm 0 (Nat.zero_le j) w hw (ε/2) (by positivity)] with k hk |
| 222 | rw [dist_eq_norm] |
| 223 | specialize hk x hx |
| 224 | simp only [iteratedFDeriv_zero_eq_comp, comp_apply, ← map_sub, LinearIsometryEquiv.norm_map] at hk |
| 225 | exact hk.trans_lt (half_lt_self hε) |
| 226 | |
| 227 | /-- Pointwise convergence of each approximating row on the free map space. |
| 228 | Not applied to a k-dependent transformed argument. -/ |
| 229 | theorem row_limit (X : Scaling S) (q : CellRow (Bel L) d) (T : Two (Bel L) d) {N j : ℕ} {R : ℝ} |
| 230 | (hm : q.m ≤ N) (hx : q.x ∈ Scaling.window R q.m) (hb : X.jets N d j R) : |
| 231 | Tendsto (fun k => actual X k q T) atTop (𝓝 (q.testRow T)) := by |
| 232 | simp only [actual_eq, CellRow.testRow, rowSum_eq] |
| 233 | refine tendsto_finsetSum _ fun i _ => value_limit X hb hm q.x hx _ fun l => ?_ |
| 234 | by_cases he : l = i |
| 235 | · subst l; rw [update_self] |
| 236 | · rw [update_of_ne he] |
| 237 | exact le_rfl |
| 238 | |
| 239 | end Rows |
| 240 | |
| 241 | /-- Transfer from the free internal-map erasure input, on the same actual table |
| 242 | and aligned scalings. -/ |
| 243 | theorem transfer (P : DiffPlan S) (R : Lighthouse L) (J : S.Stress) |
| 244 | (H : S.RealSpin) (a : (Bel L).RealSpin) (A : ActLaw P R J H a) |
| 245 | (hf : erases a R.W) : erases H P := by |
| 246 | classical |
| 247 | obtain ⟨n, hn⟩ := hf |
| 248 | refine ⟨n, ?_⟩ |
| 249 | intro d hd |
| 250 | let M : Submodule ℝ (Two (Bel L) d) := internal a R.W d |
| 251 | letI : FiniteDimensional ℝ M := finiteDimensional_internal a R.W d |
| 252 | let F (q : CellRow (Bel L) d) := q.testRow.comp M.subtype |
| 253 | have detect (x : M) (hx : ∀ i, F i x = 0) : x = 0 := by |
| 254 | apply Subtype.ext |
| 255 | refine hn d hd _ x.2 ?_ |
| 256 | intro m p hp u v w |
| 257 | rw [← rowSum_eq p w u v x.1]; exact hx ⟨m, p, hp, w, u, v⟩ |
| 258 | obtain ⟨s, hs⟩ := finite_rows F detect |
| 259 | -- A single comparison system for this cap and all of these finitely many rows. |
| 260 | let N := s.sup CellRow.m |
| 261 | have hN (q : s) : q.1.m ≤ N := Finset.le_sup q.2 |
| 262 | have hw : ∀ᶠ B : ℝ in atTop, ∀ q : s, q.1.x ∈ Scaling.window B q.1.m := |
| 263 | Filter.eventually_all.mpr fun q => eventually_window _ q.1.separated |
| 264 | obtain ⟨B, hB, hpts⟩ := ((eventually_ge_atTop 1).and hw).exists |
| 265 | obtain ⟨X, hX⟩ := A.connects N d 0 B hB |
| 266 | let f : ℕ → M →ₗ[ℝ] (s → ℂ) := fun k => |
| 267 | LinearMap.pi fun q : s => (actual X k q.1).comp M.subtype |
| 268 | have he : ∀ᶠ k in atTop, Injective (f k) := |
| 269 | eventually_injective f _ hs fun x => tendsto_pi_nhds.mpr |
| 270 | (fun q => row_limit X q.1 x.1 (hN q) (hpts q) hX.thick) |
| 271 | obtain ⟨k, hk⟩ := he.exists |
| 272 | intro T hT hz |
| 273 | let y : M := ⟨(pushTwo (X.U k d)).symm T, pull_winds X hX.path (le_max_left d 4) k T hT⟩ |
| 274 | have hem : f k y = 0 := by |
| 275 | funext q |
| 276 | change rowSum (X.r k • q.1.x) ((X.U k d) ∘ q.1.w) q.1.u q.1.v |
| 277 | (pushTwo (X.U k d) ((pushTwo (X.U k d)).symm T)) = 0 |
| 278 | rw [LinearEquiv.apply_symm_apply, rowSum_eq] |
| 279 | refine hz _ _ ?_ _ _ _ |
| 280 | intro i j hij |
| 281 | apply (show Injective q.1.x.ofLp from q.1.separated) |
| 282 | exact smul_right_injective _ (X.positive k).ne' (show X.r k • q.1.x i = X.r k • q.1.x j from hij) |
| 283 | have hy : (pushTwo (X.U k d)).symm T = 0 := |
| 284 | congr_arg Subtype.val (hk (hem.trans (map_zero (f k)).symm)) |
| 285 | exact (pushTwo (X.U k d)).symm.injective (hy.trans (map_zero _).symm) |
| 286 | |
| 287 | theorem answer : YM.Bid.A07 := by |
| 288 | intro G C S H V _ _ _ R J A |
| 289 | exact transfer V R.T J H.spin R.hT.spin A R.frames |
| 290 | |
| 291 | end YM.Work.A07 |