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.Org.Input |
| 2 | |
| 3 | /-! |
| 4 | Heterogeneous probes: choose enough of them *before* the Track request; |
| 5 | invert their readings even though the tests move with the weak system. |
| 6 | No unit or particular Maxwell label singled out here. |
| 7 | -/ |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | namespace YM.Work.A05 |
| 11 | open Set Function Filter Table Climb Ward |
| 12 | open scoped Topology BigOperators ContDiff Matrix.Norms.Frobenius |
| 13 | |
| 14 | section FD |
| 15 | variable {V F : Type*} [NormedAddCommGroup V] [NormedSpace ℂ V] [FiniteDimensional ℂ V] |
| 16 | [NormedAddCommGroup F] [NormedSpace ℂ F] [FiniteDimensional ℂ F] |
| 17 | |
| 18 | /-- Convenient CLM spelling of `Dash.fit_plane`. -/ |
| 19 | lemma clm_convergence (A : ℕ → V →L[ℂ] F) (a : V →L[ℂ] F) |
| 20 | (h : ∀ v, Tendsto (fun k => A k v) atTop (𝓝 (a v))) : Tendsto A atTop (𝓝 a) := by |
| 21 | exact Dash.fit_plane (fun k => (A k).toLinearMap) a.toLinearMap h |
| 22 | |
| 23 | lemma finite_separates {O : Type*} (t : O → V →ₗ[ℂ] ℂ) |
| 24 | (ht : ∀ x y : V, (∀ o, t o x = t o y) → x = y) : |
| 25 | ∃ s : Finset O, ∀ x y : V, (∀ o ∈ s, t o x = t o y) → x = y := by |
| 26 | classical |
| 27 | let K (s : Finset O) := ⨅ i : s, LinearMap.ker (t i) |
| 28 | have hs (s : Finset O) (v : V) : v ∈ K s ↔ ∀ i ∈ s, t i v = 0 := by |
| 29 | simp [K, Submodule.mem_iInf] |
| 30 | let p : ℕ → Prop := fun n => ∃ s : Finset O, Module.finrank ℂ (K s) = n |
| 31 | have H : ∃ n, p n := ⟨_, ∅, rfl⟩ |
| 32 | obtain ⟨s, hmin⟩ := (show p (Nat.find H) from Nat.find_spec H) |
| 33 | have he (i : O) : K (insert i s) = K s := by |
| 34 | refine Submodule.eq_of_le_of_finrank_le ?_ ?_ |
| 35 | · intro v hv |
| 36 | exact (hs s v).2 fun j hj => (hs _ v).1 hv j (Finset.mem_insert_of_mem hj) |
| 37 | · rw [hmin]; exact Nat.find_min' H (show p _ from ⟨insert i s, rfl⟩) |
| 38 | refine ⟨s, fun x y h => ht x y fun i => ?_⟩ |
| 39 | have hx : x-y ∈ K s := (hs s _).2 (fun j hj => by rw [map_sub, h j hj, sub_self]) |
| 40 | have hy := (hs (insert i s) _).1 (show x-y ∈ K (insert i s) by rw [he]; exact hx) |
| 41 | apply sub_eq_zero.mp |
| 42 | rw [← map_sub]; exact hy i (Finset.mem_insert_self ..) |
| 43 | |
| 44 | /-- Left inverse at the limit, then invert a near-identity square family. In |
| 45 | particular no bound on the sequence being tested has to be assumed. -/ |
| 46 | lemma recover_clm (A : ℕ → V →L[ℂ] F) (a : V →L[ℂ] F) (ha : Injective a) |
| 47 | (hA : Tendsto A atTop (𝓝 a)) (v : ℕ → V) (w : V) |
| 48 | (hv : Tendsto (fun k => A k (v k)) atTop (𝓝 (a w))) : Tendsto v atTop (𝓝 w) := by |
| 49 | let B := LinearMap.toContinuousLinearMap a.toLinearMap.leftInverse |
| 50 | have hB (u : V) : B (a u) = u := |
| 51 | LinearMap.leftInverse_apply_of_inj ((LinearMap.ker_eq_bot (f := a.toLinearMap)).2 ha) u |
| 52 | let D (k : ℕ) := B.comp (A k) |
| 53 | have hD : Tendsto D atTop (𝓝 (1 : V →L[ℂ] V)) := by |
| 54 | rw [← show B.comp a = 1 from ContinuousLinearMap.ext hB] |
| 55 | exact (show Continuous (fun y : V →L[ℂ] F => B.comp y) from |
| 56 | continuous_const.clm_comp continuous_id).continuousAt.tendsto.comp hA |
| 57 | have he : Tendsto (fun k => D k (v k)) atTop (𝓝 w) := by |
| 58 | have he : Tendsto (fun k => D k (v k)) atTop (𝓝 (B (a w))) := |
| 59 | B.continuous.continuousAt.tendsto.comp hv |
| 60 | rwa [hB w] at he |
| 61 | have hi : Tendsto (fun k => Ring.inverse (D k)) atTop (𝓝 (1 : V →L[ℂ] V)) := by |
| 62 | have hh := NormedRing.inverse_continuousAt (1 : (V →L[ℂ] V)ˣ) |
| 63 | change ContinuousAt Ring.inverse (1 : V →L[ℂ] V) at hh |
| 64 | simpa only [Ring.inverse_one,Function.comp_def] using hh.tendsto.comp hD |
| 65 | have hw : Tendsto (fun k => Ring.inverse (D k) (D k (v k))) atTop (𝓝 w) := Dash.arcing hi he |
| 66 | apply hw.congr' |
| 67 | filter_upwards [hD.eventually (Units.isOpen.mem_nhds isUnit_one)] with k hk |
| 68 | exact congr_arg (fun g : V →L[ℂ] V => g (v k)) (Ring.inverse_mul_cancel _ hk) |
| 69 | |
| 70 | lemma recover_on {O : Type*} (s : Finset O) (t : O → V →ₗ[ℂ] ℂ) |
| 71 | (hs : ∀ x y : V, (∀ o ∈ s, t o x = t o y) → x = y) (u : O → ℕ → V →ₗ[ℂ] ℂ) |
| 72 | (hu : ∀ o ∈ s, ∀ x, Tendsto (fun k => u o k x) atTop (𝓝 (t o x))) (v : ℕ → V) (w : V) |
| 73 | (hv : ∀ o ∈ s, Tendsto (fun k => u o k (v k)) atTop (𝓝 (t o w))) : Tendsto v atTop (𝓝 w) := by |
| 74 | classical |
| 75 | let A (k : ℕ) := LinearMap.pi fun o : s => u o k |
| 76 | let a := LinearMap.pi fun o : s => t o |
| 77 | refine recover_clm (fun k => LinearMap.toContinuousLinearMap (A k)) |
| 78 | (LinearMap.toContinuousLinearMap a) ?_ (Dash.fit_plane A a ?_) v w ?_ |
| 79 | · exact fun x y h => hs x y fun o ho => congr_fun h (⟨o,ho⟩ : s) |
| 80 | · exact fun x => tendsto_pi_nhds.mpr fun o : s => hu o o.property x |
| 81 | · exact tendsto_pi_nhds.mpr fun o : s => hv o o.property |
| 82 | end FD |
| 83 | |
| 84 | variable {G : Gauge} {L : Register G} {S : Table L} {n : ℕ} |
| 85 | |
| 86 | def frontRead (x : Points (n+1)) (q : Fin n → S.Tag) (d : ℕ) : S.Field d →ₗ[ℂ] ℂ := |
| 87 | Ward.here (q := Fin.cons ⟨d,(0:S.Field d)⟩ q) x 0 d |
| 88 | |
| 89 | lemma frontRead_at (x : Points (n+1)) (q : Fin n → S.Tag) (d : ℕ) (u : S.Field d) : |
| 90 | frontRead x q d u = Ward.disc (Fin.cons ⟨d,u⟩ q) x := by |
| 91 | unfold frontRead; rw [Ward.takes]; congr 1 |
| 92 | funext i; refine Fin.cases ?_ (fun j => ?_) i <;> simp |
| 93 | |
| 94 | lemma caps_cons_le {d D : ℕ} (B : S.Field d) (q : Fin n → S.Tag) (hd : d ≤ D) |
| 95 | (hq : ∀ i, (q i).1 ≤ D) : |
| 96 | ∀ i, ((Fin.cons (α := fun _ => S.Tag) ⟨d,B⟩ q) i).1 ≤ D := by |
| 97 | intro i; refine Fin.cases ?_ (fun j => ?_) i <;> simp [hd,hq] |
| 98 | |
| 99 | lemma pins_cons (X : Climb.Scaling S) (k d : ℕ) (v : (Bel L).Field d) (q : Fin n → (Bel L).Tag) : |
| 100 | X.pins k ∘ (Fin.cons ⟨d,v⟩ q) = (Fin.cons (α := fun _ => S.Tag) ⟨d,X.U k d v⟩ (X.pins k ∘ q)) := by |
| 101 | funext i; refine Fin.cases ?_ (fun j => ?_) i <;> simp only [Function.comp_apply, Fin.cons_zero, Fin.cons_succ] |
| 102 | rfl |
| 103 | |
| 104 | /-- What order zero of `Scaling.jets` says on the same window. -/ |
| 105 | lemma value_bound (X : Scaling S) {N D m : ℕ} {R : ℝ} (h : X.jets N D m R) (hn : n ≤ N) |
| 106 | (v : Fin n → (Bel L).Tag) (hv : ∀ i, (v i).1 ≤ D) {ε : ℝ} (hε : 0 < ε) : |
| 107 | ∀ᶠ k in atTop, ∀ x ∈ Scaling.window R n, |
| 108 | ‖disc (X.pins k ∘ v) (X.r k • x) - disc v x‖ ≤ ε := by |
| 109 | filter_upwards [h n hn 0 (Nat.zero_le _) v hv ε hε] with k hk |
| 110 | intro x hx |
| 111 | let F (z : Points n) := disc (X.pins k ∘ v) (X.r k • z) |
| 112 | have he : iteratedFDeriv ℝ 0 F x - iteratedFDeriv ℝ 0 (disc v) x = |
| 113 | iteratedFDeriv ℝ 0 (fun y => F y - disc v y) x := by |
| 114 | ext1 y; simp |
| 115 | have hh := hk x hx |
| 116 | change ‖iteratedFDeriv ℝ 0 F x - iteratedFDeriv ℝ 0 (disc v) x‖ ≤ ε at hh |
| 117 | rw [he,norm_iteratedFDeriv_zero] at hh; exact hh |
| 118 | |
| 119 | /-- One heterogeneous exterior test. Includes the insertion point in `x` but |
| 120 | leaves its field slot open. -/ |
| 121 | structure Observer (S : Table L) where |
| 122 | n : ℕ |
| 123 | x : Points (n+1) |
| 124 | hx : x ∈ conf _ |
| 125 | q : Fin n → S.Tag |
| 126 | |
| 127 | namespace Observer |
| 128 | |
| 129 | def test (o : Observer S) (d : ℕ) := frontRead o.x o.q d |
| 130 | |
| 131 | def moving (o : Observer (Bel L)) (X : Scaling S) (d k : ℕ) : (Bel L).Field d →ₗ[ℂ] ℂ := |
| 132 | (frontRead (X.r k • o.x) (X.pins k ∘ o.q) d).comp (X.U k d).toLinearMap |
| 133 | |
| 134 | lemma exists_reads (H : S.Hierarchy) (d : ℕ) : |
| 135 | ∃ s : Finset (Observer S), ∀ u v : S.Field d, (∀ o ∈ s, o.test d u = o.test d v) → u=v := by |
| 136 | apply finite_separates |
| 137 | intro u v h |
| 138 | apply S.field_ext H.laws.toSymmetric |
| 139 | intro n q x hx |
| 140 | have ht := h ⟨n,x,hx,q⟩ |
| 141 | change frontRead x q d u = frontRead x q d v at ht |
| 142 | rw [frontRead_at,frontRead_at] at ht |
| 143 | exact ht |
| 144 | |
| 145 | lemma reads_converge (o : Observer (Bel L)) (X : Scaling S) {N D m : ℕ} {R : ℝ} |
| 146 | (h : X.jets N D m R) (hn : o.n+1 ≤ N) (hq : ∀ i, (o.q i).1 ≤ D) (hx : o.x ∈ Scaling.window R _) |
| 147 | (d : ℕ) (hd : d ≤ D) (v : (Bel L).Field d) : |
| 148 | Tendsto (fun k => o.moving X d k v) atTop (𝓝 (o.test d v)) := by |
| 149 | refine Metric.tendsto_nhds.mpr ?_ |
| 150 | intro ε hε |
| 151 | filter_upwards [value_bound X h hn (Fin.cons ⟨d,v⟩ o.q) (caps_cons_le v o.q hd hq) (half_pos hε)] with k hk |
| 152 | rw [dist_eq_norm]; apply lt_of_le_of_lt _ (half_lt_self hε) |
| 153 | change ‖frontRead _ _ _ (X.U k d v) - frontRead _ _ _ v‖ ≤ _ |
| 154 | rw [frontRead_at,frontRead_at,← pins_cons]; exact hk _ hx |
| 155 | end Observer |
| 156 | end YM.Work.A05 |