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.Extra.WEAK_SCALING_ACTLAW.Geometry |
| 2 | import YM.Work.B06 |
| 3 | |
| 4 | /-! |
| 5 | # Directional finite rows, continuous convergence and k-grid interpolation |
| 6 | |
| 7 | Small weighted gradients (scale = size of a rescaled grid step, Torus |
| 8 | mesh refinements aren't performed here) and aligned-generic convergence |
| 9 | suffice on open sets. Used twice: first with coordinate transfer off the |
| 10 | tie sets; then, after the derivative fits, on full open separated windows |
| 11 | including collinear tests. Need also the matrix norms, not just univariate |
| 12 | partial derivatives at individual points. |
| 13 | -/ |
| 14 | set_option autoImplicit false |
| 15 | noncomputable section |
| 16 | namespace YM.Extra.WeakScaling |
| 17 | open Set Function Filter Extraction MeasureTheory |
| 18 | open scoped Topology ContDiff |
| 19 | |
| 20 | section analysis |
| 21 | variable {ι A : Type*} [Fintype ι] {l : Filter A} |
| 22 | |
| 23 | lemma multi_fitted {V : ι → Type*} [∀ i, NormedAddCommGroup (V i)] [∀ i, NormedSpace ℂ (V i)] |
| 24 | [∀ i, FiniteDimensional ℂ (V i)] {X : Type*} [NormedAddCommGroup X] [NormedSpace ℂ X] |
| 25 | (f : A → MultilinearMap ℂ V X) (g : MultilinearMap ℂ V X) |
| 26 | (h : ∀ v, Tendsto (fun k => f k v) l (𝓝 (g v))) |
| 27 | {u : A → ∀ i, V i} {x : ∀ i, V i} (hu : ∀ i, Tendsto (fun k => u k i) l (𝓝 (x i))) : |
| 28 | Tendsto (fun k => f k (u k)) l (𝓝 (g x)) := by |
| 29 | classical |
| 30 | let B (i : ι) := Module.finBasis ℂ (V i) |
| 31 | have he (F : MultilinearMap ℂ V X) (y : ∀ i, V i) : F y = |
| 32 | ∑ a : ((i : ι) → Fin (Module.finrank ℂ (V i))), (∏ i, (B i).repr (y i) (a i)) • (F fun i => B i (a i)) := by |
| 33 | have ht : (fun i => ∑ j, (B i).repr (y i) j • (B i) j) = y := funext fun i => (B i).sum_repr _ |
| 34 | conv_lhs => rw [← ht] |
| 35 | rw [MultilinearMap.map_sum] |
| 36 | exact Finset.sum_congr rfl fun a _ => F.map_smul_univ _ _ |
| 37 | conv => arg 1; intro k; rw [he] |
| 38 | rw [he g x] |
| 39 | refine tendsto_finsetSum _ fun a _ => ?_ |
| 40 | refine (tendsto_finsetProd _ fun i _ => ?_).smul (h _) |
| 41 | exact (((B i).coord (a i)).continuous_of_finiteDimensional.tendsto _).comp (hu i) |
| 42 | |
| 43 | /-- Convergence of finite matrices suffices. -/ |
| 44 | lemma norm_fit {E X Y : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] |
| 45 | [NormedAddCommGroup X] [NormedSpace ℝ X] [FiniteDimensional ℝ X] |
| 46 | (f : E →ₗ[ℝ] X) (h : Injective f) {a : Y → E} {e : E} {s : Filter Y} |
| 47 | (he : Tendsto (fun y => f (a y)) s (𝓝 (f e))) : Tendsto a s (𝓝 e) := by |
| 48 | obtain ⟨g,hg⟩ := f.exists_leftInverse_of_injective (LinearMap.ker_eq_bot.mpr h) |
| 49 | have hp (x : E) : g (f x)=x := LinearMap.congr_fun hg x |
| 50 | have ht := (g.continuous_of_finiteDimensional.tendsto _).comp he |
| 51 | simpa [comp_def,hp] using ht |
| 52 | |
| 53 | variable {m n : ℕ} |
| 54 | |
| 55 | lemma components (v : Points n) : v = ∑ i : Fin n × Axis, v i.1 i.2 • Points.direction i.1 i.2 := by |
| 56 | apply Points.flatten.injective |
| 57 | apply PiLp.ext |
| 58 | rintro ⟨i,a⟩ |
| 59 | rw [map_sum]; simp [← Finset.univ_product_univ, Finset.sum_product, map_smul, Points.direction, |
| 60 | PiLp.single_apply, apply_ite, ite_apply, Finset.sum_ite_irrel] |
| 61 | |
| 62 | /-- Actual Fréchet norm convergence from coordinate-direction convergence. -/ |
| 63 | lemma norm_fit_deriv {f : A → Points n →L[ℝ] ℂ} {g : Points n →L[ℝ] ℂ} |
| 64 | (h : ∀ (i : Fin n × Axis), Tendsto (fun k => f k (Points.direction i.1 i.2)) l |
| 65 | (𝓝 (g (Points.direction i.1 i.2)))) : Tendsto f l (𝓝 g) := by |
| 66 | let p : (Points n →L[ℝ] ℂ) →ₗ[ℝ] ((Fin n × Axis) → ℂ) := LinearMap.pi fun i => |
| 67 | (ContinuousLinearMap.apply ℝ ℂ (Points.direction i.1 i.2)).toLinearMap |
| 68 | refine norm_fit p ?_ (tendsto_pi_nhds.mpr h) |
| 69 | intro u v e; ext1 x; rw [components x, map_sum,map_sum] |
| 70 | exact Finset.sum_congr rfl fun i _ => by rw [map_smul,map_smul]; exact congrArg _ (congrFun e i) |
| 71 | |
| 72 | lemma norm_fit_jet {f : A → Tensor.T (Points n) ℂ m} {g : Tensor.T (Points n) ℂ m} |
| 73 | (h : ∀ v : Fin m → Fin n × Axis, Tendsto (fun k => f k (fun j => Points.direction (v j).1 (v j).2)) l |
| 74 | (𝓝 (g fun j => Points.direction (v j).1 (v j).2))) : Tendsto f l (𝓝 g) := by |
| 75 | let p : (Tensor.T (Points n) ℂ m) →ₗ[ℝ] ((Fin m → Fin n × Axis) → ℂ) := LinearMap.pi fun v => |
| 76 | (ContinuousMultilinearMap.apply ℝ _ ℂ (fun j => Points.direction (v j).1 (v j).2)).toLinearMap |
| 77 | refine norm_fit p ?_ (tendsto_pi_nhds.mpr h) |
| 78 | intro F G e; ext1 v |
| 79 | change F.toMultilinearMap v = G.toMultilinearMap v |
| 80 | rw [show v = _ from funext (fun i => components (v i)),MultilinearMap.map_sum,MultilinearMap.map_sum] |
| 81 | refine Finset.sum_congr rfl fun s _ => Eq.trans (F.map_smul_univ _ _) ?_ |
| 82 | exact (congrArg (fun z : ℂ => (_ : ℝ) • z) (congrFun e s)).trans (G.map_smul_univ _ _).symm |
| 83 | |
| 84 | variable {X Y : Type*} [MetricSpace X] [NormedAddCommGroup Y] |
| 85 | |
| 86 | /-- Local continuous convergence along stations. -/ |
| 87 | def Follows (O : Set X) (F : ℕ → X → Y) (g : X → Y) : Prop := ∀ s : ℕ → ℕ, Tendsto s atTop atTop → |
| 88 | ∀ x ∈ O, ∀ z : ℕ → X, Tendsto z atTop (𝓝 x) → Tendsto (fun i => F (s i) (z i)) atTop (𝓝 (g x)) |
| 89 | |
| 90 | lemma Follows.onCompact {F : ℕ → X → Y} {g : X → Y} {O K : Set X} (h : Follows O F g) |
| 91 | (hK : IsCompact K) (he : K ⊆ O) (hg : ContinuousOn g K) {ε : ℝ} (hε : 0 < ε) : |
| 92 | ∀ᶠ k : ℕ in atTop, ∀ x ∈ K, ‖F k x - g x‖ ≤ ε := by |
| 93 | by_contra! ht |
| 94 | choose s hs x hx hE using frequently_atTop.mp ht |
| 95 | obtain ⟨y,hy,u,hu,hl⟩ := hK.tendsto_subseq hx |
| 96 | have hp := h (s ∘ u) (tendsto_atTop_mono (fun i => hs (u i)) hu.tendsto_atTop) y (he hy) _ hl |
| 97 | have hP := (hg y hy).tendsto.comp (tendsto_nhdsWithin_iff.mpr ⟨hl,Eventually.of_forall (fun i => hx (u i))⟩) |
| 98 | have hw := ((hp.sub hP).norm).eventually (gt_mem_nhds (by simpa using hε : ‖g y - g y‖ < ε)) |
| 99 | obtain ⟨i,hi⟩ := hw.exists |
| 100 | exact (hE (u i)).asymm hi |
| 101 | |
| 102 | /-- Convergence only checked at generic samples aligned on the current coarse grid, |
| 103 | whose spacing h is expressed in the *rescaled* coordinates. -/ |
| 104 | def Sampled (O : Set (Points n)) (h : ℕ → ℝ) (F : ℕ → Points n → ℂ) (g : Points n → ℂ) : Prop := |
| 105 | ∀ s : ℕ → ℕ, Tendsto s atTop atTop → ∀ x ∈ O, ∀ z : ℕ → Fin n → Lattice.Cover, |
| 106 | Tendsto (fun i => tag (h (s i)) (z i)) atTop (𝓝 x) → (∀ᶠ i in atTop, tag (h (s i)) (z i) ∈ generic n) → |
| 107 | Tendsto (fun i => F (s i) (tag (h (s i)) (z i))) atTop (𝓝 (g x)) |
| 108 | |
| 109 | lemma interpolate {O : Set (Points n)} (hO : IsOpen O) {h : ℕ → ℝ} (hp : ∀ k, 0 < h k) |
| 110 | (hlim : Tendsto h atTop (𝓝 0)) {F : ℕ → Points n → ℂ} {g : Points n → ℂ} |
| 111 | (hf : ∀ k x, x ∈ O → DifferentiableAt ℝ (F k) x) (hw : Sampled O h F g) |
| 112 | (H : ∀ (j : Fin n × Axis), Follows O |
| 113 | (fun k x => h k • (fderiv ℝ (F k) x (Points.direction j.1 j.2))) 0) : Follows O F g := by |
| 114 | have he : Follows O (fun k x => h k • fderiv ℝ (F k) x) 0 := |
| 115 | fun s hs x hx z hz => norm_fit_deriv (fun j => H j s hs x hx z hz) |
| 116 | intro s hs x hx z hz |
| 117 | obtain ⟨δ,hδ,hd⟩ := Metric.nhds_basis_closedBall.mem_iff.mp (hO.mem_nhds hx) |
| 118 | let K := Metric.closedBall x δ |
| 119 | let u (i : ℕ) := sample (h (s i)) (z i) |
| 120 | let v (i : ℕ) := tag (h (s i)) (u i) |
| 121 | let B : ℝ := 4*n*(2*n+1)+1 |
| 122 | have hB : 0<B := by dsimp [B]; positivity |
| 123 | have hdist (i : ℕ) : dist (v i) (z i) ≤ B*h (s i) := |
| 124 | (sample_bound (hp (s i)) (z i)).trans (by dsimp [B]; linarith [hp (s i)]) |
| 125 | have hv : Tendsto v atTop (𝓝 x) := hz.congr_dist (squeeze_zero (fun _ => dist_nonneg) |
| 126 | (fun i => (dist_comm _ _).trans_le (hdist i)) |
| 127 | (by simpa [comp_def] using ((hlim.comp hs).const_mul B))) |
| 128 | refine (hw s hs x hx u hv (Eventually.of_forall (fun i => sample_clear (hp _) (z i)))).congr_dist ?_ |
| 129 | apply Metric.tendsto_nhds.mpr |
| 130 | intro ε hε |
| 131 | have hw := hs.eventually (he.onCompact (isCompact_closedBall x δ) hd continuousOn_const |
| 132 | (by positivity : 0<ε/(2*B))) |
| 133 | filter_upwards [hz.eventually (Metric.closedBall_mem_nhds x hδ), hv.eventually (Metric.closedBall_mem_nhds x hδ),hw] |
| 134 | with i hi hi' he |
| 135 | have h' : 0 < h (s i) := hp _ |
| 136 | have he' y (hy : y ∈ K) : ‖fderiv ℝ (F (s i)) y‖ ≤ ε / (2*B) / h (s i) := by |
| 137 | apply (le_div_iff₀' h').mpr |
| 138 | have hi := he y hy |
| 139 | rwa [Pi.zero_apply,sub_zero,norm_smul, Real.norm_eq_abs,abs_of_pos h'] at hi |
| 140 | rw [Real.dist_eq,sub_zero,abs_of_nonneg dist_nonneg,dist_eq_norm] |
| 141 | calc |
| 142 | ‖F (s i) (v i) - F (s i) (z i)‖ ≤ _ := (convex_closedBall x δ).norm_image_sub_le_of_norm_fderiv_le |
| 143 | (fun y hy => hf _ y (hd hy)) he' hi hi' |
| 144 | _ ≤ (ε/(2*B) / h (s i))*(B*h (s i)) := by rw [← dist_eq_norm]; gcongr; exact hdist i |
| 145 | _ = ε/2 := by field_simp |
| 146 | _ < ε := half_lt_self hε |
| 147 | |
| 148 | end analysis |
| 149 | end YM.Extra.WeakScaling |