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.Next.FOUNDATIONS.TestBounds |
| 2 | import YM.ProjectorNext.PROJECTOR_EQUIVARIANCE.Test |
| 3 | import YM.ProjectorNext.PROJECTOR_EQUIVARIANCE.Words |
| 4 | |
| 5 | |
| 6 | /-! |
| 7 | # Optional tighter readout gate: sum exchange |
| 8 | |
| 9 | A Coefficient check will compare actual placed canonical functions, smooth |
| 10 | in the chart at flat, with sums of (infinitely many!) regular occurrences. |
| 11 | Before using jet test, need a proof that those germs can be tested through |
| 12 | the correct order even when the covariance is not asserted termwise. Use |
| 13 | B.Regular and B.supBounds at one **fixed** torus and order. No uniform |
| 14 | constant across periods claimed -- the theorem here is an exact identity, |
| 15 | not an approximate matrix estimate. |
| 16 | -/ |
| 17 | set_option autoImplicit false |
| 18 | noncomputable section |
| 19 | namespace YM.ProjectorNext.Equivariance |
| 20 | open Function Filter Lattice Wilson RG Source Analysis Labels Next.Foundations |
| 21 | open scoped Topology BigOperators InnerProductSpace Matrix.Norms.Frobenius ContDiff |
| 22 | |
| 23 | section Layers |
| 24 | variable {ι : Type*} {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] {n : ℕ} |
| 25 | |
| 26 | private def forms (n : ℕ) (E : Type*) [NormedAddCommGroup E] [NormedSpace ℝ E] : Submodule ℝ (Tensor.T E ℂ n) where |
| 27 | carrier := { x | Tensor.Sym x } |
| 28 | zero_mem' := fun _ _ => rfl |
| 29 | add_mem' {A B} (ha : Tensor.Sym A) (hb : Tensor.Sym B) v w := by simp only [add_apply,ha _ _,hb _ _] |
| 30 | smul_mem' r A (ha : Tensor.Sym A) v w := by simp only [smul_apply,ha _ _] |
| 31 | |
| 32 | lemma polarization_sum {T : Tensor.T E ℂ n} {M : ι → Tensor.T E ℂ n} (hT : Tensor.Sym T) |
| 33 | (hM : ∀ i, Tensor.Sym (M i)) (h : ∀ x : E, HasSum (fun i => Tensor.diagonal (M i) x) (Tensor.diagonal T x)) |
| 34 | (x : Fin n → E) : HasSum (fun i => M i x) (T x) := by |
| 35 | let F := forms n E |
| 36 | let A (x : Fin n → E) : F →ₗ[ℝ] ℂ := |
| 37 | (ContinuousMultilinearMap.apply ℝ (fun _ : Fin n => E) ℂ x).toLinearMap.comp F.subtype |
| 38 | let p (b : Bool) : ℂ →L[ℝ] ℝ := if b then Complex.reCLM else Complex.imCLM |
| 39 | let L (i : E × Bool) := (p i.2).toLinearMap.comp (A (fun _ => i.1)) |
| 40 | have ht (y : F) (ht : ∀ i, L i y = 0) : y = 0 := Subtype.ext (by |
| 41 | apply Tensor.ext_diag _ _ y.2 (fun _ _ => rfl) |
| 42 | exact funext fun v => Complex.ext (ht (v,true)) (ht (v,false))) |
| 43 | let u : F := ⟨T,hT⟩; let v (i : ι) : F := ⟨M i,hM i⟩ |
| 44 | let P (B : F →ₗ[ℝ] ℝ) := HasSum (fun i => B (v i)) (B u) |
| 45 | have hp (B : F →ₗ[ℝ] ℝ) : P B := by |
| 46 | have he : B ∈ Submodule.span ℝ (Set.range L) := FiniteDimensional.mem_span_of_iInf_ker_le_ker (by |
| 47 | intro y hy; rw [ht y (fun i => (Submodule.mem_iInf _).mp hy i)]; exact Submodule.zero_mem _) |
| 48 | refine Submodule.span_induction (s:=Set.range L) (p:=fun B _ => P B) ?_ ?_ ?_ ?_ he |
| 49 | · rintro B ⟨i,rfl⟩; exact (h i.1).mapL (p i.2) |
| 50 | · exact hasSum_zero |
| 51 | · exact fun b c _ _ hb hc => hb.add hc |
| 52 | exact fun b c _ hc => hc.const_smul b |
| 53 | have h1 : HasSum (fun i => (M i x).re) (T x).re := hp ((p true).toLinearMap.comp (A x)) |
| 54 | have h2 : HasSum (fun i => (M i x).im) (T x).im := hp ((p false).toLinearMap.comp (A x)) |
| 55 | have he := (h1.mapL Complex.ofRealCLM).add ((h2.mapL Complex.ofRealCLM).mul_right Complex.I) |
| 56 | simpa only [Complex.ofRealCLM_apply,Complex.re_add_im] using he |
| 57 | end Layers |
| 58 | |
| 59 | section Ray |
| 60 | variable {G : Gauge} {n : Side} {U : Config G n} {P : BudgetPoint} |
| 61 | |
| 62 | private lemma lies (U : Config G n) (A : Directions G n) (s t : ℝ) : |
| 63 | increment (increment U (t • A)) (s • A) = increment U ((s+t) • A) := by |
| 64 | funext i; apply G.mat_injective |
| 65 | simp only [increment, G.mat_mul, Pi.smul_apply, G.mat_lieExp,map_smul,add_smul,map_add,← mul_assoc] |
| 66 | haveI : NormedAlgebra ℚ G.Mat := .restrictScalars ℚ ℝ _ |
| 67 | apply congr_arg (fun x => x * G.mat (U i)) |
| 68 | exact (NormedSpace.exp_add_of_commute (((Commute.refl (G.colorMat (A i))).smul_left s).smul_right t)).symm |
| 69 | |
| 70 | private lemma scope_at {d : ℕ} {f : Config G n → ℂ} (U : Config G n) (A : Directions G n) (t : ℝ) |
| 71 | (h : HasOrderAt f (increment U (t • A)) d) (j : ℕ) (hj : j < d) : |
| 72 | HasDerivAt (iteratedDeriv j fun t : ℝ => f (increment U (t • A))) |
| 73 | (iteratedDeriv (j+1) (fun t : ℝ => f (increment U (t • A))) t) t := by |
| 74 | let L (s : ℝ) : ℂ := f (increment U (s • A)); let V := increment U (t • A) |
| 75 | have he : L = (f ∘ increment V) ∘ (fun s => (s - t) • A) := by |
| 76 | funext s; simp only [Function.comp_apply,V,lies,sub_add_cancel]; rfl |
| 77 | have hd : ContDiffAt ℝ d L t := by |
| 78 | rw [he]; refine ContDiffAt.comp t ?_ (by fun_prop) |
| 79 | simp only [sub_self,zero_smul]; exact h |
| 80 | have ht : DifferentiableAt ℝ (iteratedDeriv j L) t := |
| 81 | (ContinuousMultilinearMap.apply ℝ (fun _ : Fin j => ℝ) ℂ (fun _ => 1)).differentiableAt.comp t |
| 82 | (hd.differentiableAt_iteratedFDeriv (Nat.cast_lt.mpr hj)) |
| 83 | change HasDerivAt _ (iteratedDeriv (j+1) L t) t |
| 84 | rw [iteratedDeriv_succ]; exact ht.hasDerivAt |
| 85 | |
| 86 | /-- One ray at flat. Spell out the local summation step. Each cost may depend |
| 87 | on the budget and torus. No uniform control over the chosen ball claimed. -/ |
| 88 | private lemma ray_sum {ι : Type*} {D : ι → Support n} {g : ι → Config G n → ℂ} {c : ι → ℝ} {o : Site n} |
| 89 | (h : ∀ i, P.Regular (D i) (g i)) (hc : ∀ i, P.supBounds o (D i) (g i) (c i)) (hh : Summable c) |
| 90 | {f : Config G n → ℂ} (hf : f =ᶠ[𝓝 (1:Config G n)] fun U => ∑' i, g i U) (A : Directions G n) |
| 91 | (j : ℕ) (hj : j ≤ P.order) : |
| 92 | HasSum (fun i => iteratedDeriv j (fun t : ℝ => g i (increment 1 (t • A))) 0) |
| 93 | (iteratedDeriv j (fun t : ℝ => f (increment 1 (t • A))) 0) := by |
| 94 | classical |
| 95 | let B (t : ℝ) := increment (1:Config G n) (t • A) |
| 96 | have he : Tendsto B (𝓝 0) (𝓝 1) := by |
| 97 | have ht : Continuous B := by unfold B increment; fun_prop |
| 98 | have he : B 0 = 1 := by rw [show B 0=increment (1:Config G n) ((0:ℝ) • A) from rfl,zero_smul,Work.G07.at_zero_increment] |
| 99 | simpa only [he] using ht.tendsto 0 |
| 100 | obtain ⟨r,hr,hR⟩ := Metric.mem_nhds_iff.mp (he.eventually ((offFlags P.threshold P.threshold_pos).and hf)) |
| 101 | let V := Metric.ball (0 : ℝ) r |
| 102 | have hV : IsOpen V := Metric.isOpen_ball |
| 103 | have h0 : (0:ℝ)∈V := Metric.mem_ball_self hr |
| 104 | let z := (1+‖A‖)/P.threshold |
| 105 | have hz : 0 < z := div_pos (by positivity) P.threshold_pos |
| 106 | have ht : P.dirBound o (z⁻¹ • A) := by |
| 107 | intro e; rw [Pi.smul_apply, norm_smul, Real.norm_of_nonneg (inv_pos.mpr hz).le] |
| 108 | have h₁ : ‖A e‖ ≤ 1+‖A‖ := (norm_le_pi_norm A e).trans (by linarith) |
| 109 | calc |
| 110 | _ ≤ z⁻¹*(1+‖A‖) := mul_le_mul_of_nonneg_left h₁ (inv_pos.mpr hz).le |
| 111 | _ = P.threshold := by unfold z; field_simp |
| 112 | _ ≤ _ := le_mul_of_one_le_right P.threshold_pos.le (one_le_pow₀ (by simp)) |
| 113 | have hg i (t : ℝ) (ht : t∈V) : Healthy P.threshold (D i) (B t) := by unfold Healthy; rw [(hR ht).1]; simp |
| 114 | let L (j : ℕ) (i : ι) := iteratedDeriv j ((g i) ∘ B) |
| 115 | have hp (j) (hv : j≤P.order) (i) (t : ℝ) (h' : t∈V) : ‖L j i t‖ ≤ z^j*c i := by |
| 116 | let l := List.replicate j (z⁻¹ • A) |
| 117 | have hl : l.length = j := List.length_replicate |
| 118 | change ‖iteratedDeriv j (fun t => g i (B t)) t‖ ≤ _ |
| 119 | rw [show (fun t => g i (B t)) = (fun t => g i (increment 1 (t • A))) from rfl, ← leftDerivs_diag] |
| 120 | change ‖leftDerivs _ _ (B t)‖ ≤ _ |
| 121 | have hL : l.map (z • ·) = List.replicate j A := by simp only [l,List.map_replicate]; simp [hz.ne'] |
| 122 | have hB : HasOrderAt (g i) (B t) l.length := HasOrderAt.fewer (hl.symm ▸ hv) ((h i).smooth _ (hg i t h')) |
| 123 | rw [← hL,slot_scale l z hB,hl, norm_smul, Real.norm_of_nonneg (pow_nonneg hz.le _)] |
| 124 | exact mul_le_mul_of_nonneg_left ((hc i).2 _ (hg i t h') _ (hl.symm ▸ hv) fun A hA => |
| 125 | (List.mem_replicate.mp hA).2.symm ▸ ht) (by positivity) |
| 126 | have hs (j) (hj : j ≤ P.order) (t) (ht : t∈V) : Summable fun i => L j i t := |
| 127 | Summable.of_norm_bounded (hh.mul_left (z^j)) fun i => hp j hj i t ht |
| 128 | let y j := iteratedDeriv j (f ∘ B) |
| 129 | have hh (j) (hj : j ≤ P.order) (t : ℝ) (ht : t∈V) : y j t = ∑' i, L j i t := by |
| 130 | induction j generalizing t with |
| 131 | | zero => exact (hR ht).2 |
| 132 | | succ j ih => |
| 133 | have he : ∀ i t, t∈V → HasDerivAt (L j i) (L (j+1) i t) t := fun i t hU => |
| 134 | scope_at 1 A t ((h i).smooth _ (hg i t hU)) j hj |
| 135 | have hd := hasDerivAt_tsum_of_isPreconnected (hh.mul_left (z^(j+1))) hV Metric.isPreconnected_ball |
| 136 | he (hp (j+1) hj) h0 (hs j (Nat.le_of_lt hj) 0 h0) ht |
| 137 | change iteratedDeriv _ _ _ = _ |
| 138 | rw [iteratedDeriv_succ] |
| 139 | exact (hd.congr_of_eventuallyEq (Filter.eventually_of_mem (hV.mem_nhds ht) (ih (Nat.le_of_lt hj)))).deriv |
| 140 | exact (hs j hj _ h0).hasSum_iff.mpr (hh j hj 0 h0).symm |
| 141 | /-- Pass through the jet at flat (uses only finite-dimensionality of each |
| 142 | actual torus chart for polarization). Then transfer through `testLog`. |
| 143 | Do not exchange tests with masked sums blindly. -/ |
| 144 | theorem jet_sum {ι : Type*} {D : ι → Support n} {g : ι → Config G n → ℂ} {c : ι → ℝ} {o : Site n} |
| 145 | (h : ∀ i, P.Regular (D i) (g i)) (hc : ∀ i, P.supBounds o (D i) (g i) (c i)) (hh : Summable c) |
| 146 | {f : Config G n → ℂ} (hf : f =ᶠ[𝓝 (1:Config G n)] fun U => ∑' i, g i U) |
| 147 | (d : ℕ) (he : HasOrderAt f 1 d) (hd : d ≤ P.order) (A : Hol G) (J : Jet G) (k : ℕ) (hk : k≤d) : |
| 148 | HasSum (fun i => iteratedDeriv k (fun t => g i (A.testLinks d o J t)) 0) (iteratedDeriv k (f ∘ A.testLinks d o J) 0) := by |
| 149 | have hp (i : ι) : HasOrderAt (g i) 1 d := HasOrderAt.fewer hd |
| 150 | ((h i).smooth _ (one_healthy (D i) _ P.threshold_pos.le)) |
| 151 | let K (F : Config G n → ℂ) j := iteratedFDeriv ℝ j (F ∘ increment 1) 0 |
| 152 | have hu (j : ℕ) (hJ : j ≤ d) (x) : HasSum (fun i => K (g i) j x) (K f j x) := by |
| 153 | refine polarization_sum (sym_Jet (he.fewer hJ)) (fun i => sym_Jet ((hp i).fewer hJ)) ?_ x |
| 154 | intro A |
| 155 | have hw (u : Config G n → ℂ) (ht : HasOrderAt u 1 d) : Tensor.diagonal (K u j) A = |
| 156 | iteratedDeriv j (fun t : ℝ => u (increment 1 (t • A))) 0 := (iteratedDeriv_on_line (ht.fewer hJ) A).symm |
| 157 | change HasSum (fun i => Tensor.diagonal (K (g i) j) A) (Tensor.diagonal (K f j) A) |
| 158 | rw [hw f he]; simp_rw [hw (g _) (hp _)] |
| 159 | exact ray_sum h hc hh hf A _ (hJ.trans hd) |
| 160 | let B := testLog A d o J |
| 161 | let v (a : OrderedFinpartition k) (i : Fin a.length) := iteratedDeriv (a.partSize i) B 0 |
| 162 | have hx (u : Config G n → ℂ) (ht : HasOrderAt u 1 d) : iteratedDeriv k (u ∘ A.testLinks d o J) 0 = |
| 163 | ∑ a : OrderedFinpartition k, K u a.length (v a) := by |
| 164 | have hl : B 0=0 := testLog_zero .. |
| 165 | have hy : u ∘ A.testLinks d o J =ᶠ[𝓝 0] (u ∘ increment 1) ∘ B := (increment_testLog ..).fun_comp u |
| 166 | rw [hy.iteratedDeriv_eq, iteratedDeriv_vcomp_eq_sum_orderedFinpartition |
| 167 | (show ContDiffAt ℝ d (u ∘ increment 1) (B 0) by rw [hl]; exact ht) |
| 168 | ((testLog_diff A d o J).of_le le_top) (Nat.cast_le.mpr hk),hl] |
| 169 | rw [hx f he]; change HasSum (fun i => iteratedDeriv k (g i ∘ _) 0) _ |
| 170 | simp_rw [hx (g _) (hp _)] |
| 171 | exact hasSum_sum fun i _ => hu _ (i.length_le.trans hk) _ |
| 172 | end Ray |
| 173 | end YM.ProjectorNext.Equivariance |