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.RG05Readout.Test.Native |
| 2 | /-! |
| 3 | |
| 4 | # Coordinates on center test jets |
| 5 | |
| 6 | Symmetric tensor basis (factorials displayed, thus change of basis if using |
| 7 | coordinate monomial/partial-derivative convention in consumers). For support |
| 8 | bounds keep address in D around physical root throughout. |
| 9 | -/ |
| 10 | set_option autoImplicit false |
| 11 | noncomputable section |
| 12 | namespace YM.RG05Readout.Native |
| 13 | open Tensor Analysis Function Set Filter MeasureTheory Push.FiniteDetection.Kelvin |
| 14 | open scoped Topology BigOperators ContDiff Matrix.Norms.Frobenius Classical |
| 15 | abbrev Orb (d:ℕ): Submodule ℂ (Tensor.T E4 ℂ d):={ |
| 16 | carrier:={f|Sym f} |
| 17 | zero_mem' := fun _ _ => rfl |
| 18 | add_mem' := fun {_ _} ha hb x y => congr_arg₂ (·+·) (ha x y) (hb x y) |
| 19 | smul_mem':= fun p _ ha x y=> congr_arg (p • ·) (ha x y) } |
| 20 | instance body_finite (d:ℕ):FiniteDimensional ℂ (Orb d):=by |
| 21 | haveI : FiniteDimensional ℂ (Tensor.T E4 ℂ d) := Module.Finite.of_restrictScalars_finite ℝ _ _ |
| 22 | infer_instance |
| 23 | abbrev Beam (i:ℕ):=Fin (Module.finrank ℂ (Orb i)) |
| 24 | abbrev BoltBasis (i:ℕ): Module.Basis (Beam i) ℂ (Orb i):= Module.finBasis ℂ _ |
| 25 | def records (x:E4)(d:ℕ) : Body →ₗ[ℂ] Orb d where |
| 26 | toFun f:= ⟨Tensor.coeff f.val d x,Tensor.coeff_symm (body_smooth f d).contDiffAt⟩ |
| 27 | map_add' a b:=Subtype.ext (coeff_add (body_smooth a d|>.contDiffAt) (body_smooth b d|>.contDiffAt)) |
| 28 | map_smul' a b:=Subtype.ext (show Tensor.coeff (a • b.val) d x=a • Tensor.coeff b.val d x by unfold coeff; rw [iteratedFDeriv_const_smul_apply (body_smooth b d|>.contDiffAt),smul_comm]) |
| 29 | -- dual read. analytic kernels would need to convert conventions in any c-diagnosis. |
| 30 | def writeC (j:ℕ): ↥(Orb j)→L[ℂ](Beam j→ℂ):= (Module.Basis.equivFun (BoltBasis j)).toLinearMap.toContinuousLinearMap |
| 31 | def consider {k:ℕ}(i:Beam k) (x:E4): PulseC:= LinearMap.proj (R:=ℂ) (φ:=fun _:Beam k=>ℂ) i ∘ₗ (writeC k).toLinearMap ∘ₗ records x k |
| 32 | lemma rate_consider {k:ℕ}(i:Beam k) (δ:E4)(x:E4) (r:ℝ)(f:Body): consider (k:=k) i x (pull δ r f)=(↑(r^k):ℂ) • consider (k:=k) i (δ+r • x) f:=by |
| 33 | let w:= (↑(r^k):ℂ) |
| 34 | have hC : records x k (pull δ r f)=w • records (δ+r • x) k f:= by |
| 35 | apply Subtype.ext; change Tensor.coeff _ k x = w • Tensor.coeff _ k (δ+r • x); unfold coeff; rw [pulled,smul_comm]; ext1 v; simp [smul_eq_mul,w,Complex.real_smul] |
| 36 | rw [consider]; change writeC k (records x k (pull δ r f)) i= w • writeC k (records _ k f) i |
| 37 | rw [hC,map_smul]; rfl |
| 38 | lemma write_cost (d:ℕ):∃ c>0,∀ x:Orb d, ‖writeC d x‖≤ c*‖x‖:= by |
| 39 | haveI:=FiniteDimensional.proper ℂ (Orb d) |
| 40 | obtain ⟨c,hc⟩:= (isCompact_closedBall (0:Orb d) 1).exists_bound_of_continuousOn ((writeC d).continuous.continuousOn) |
| 41 | refine ⟨max 1 c,lt_max_of_lt_left zero_lt_one, fun x=> ?_⟩ |
| 42 | by_cases h:x=0 |
| 43 | · simp [h] |
| 44 | let z:= ((‖x‖:ℝ):ℂ) |
| 45 | have hi: 0 < ‖x‖:=norm_pos_iff.mpr h |
| 46 | have hz: ‖z‖=‖x‖:= by simp [z] |
| 47 | have hk:‖z⁻¹ • x‖=1:= by change ‖z⁻¹ • x.val‖=_; rw [norm_smul,norm_inv,hz]; exact inv_mul_cancel₀ hi.ne' |
| 48 | have ht := hc (z⁻¹ • x) (by rw [mem_closedBall_zero_iff]; exact hk.le) |
| 49 | rw [map_smul,norm_smul,norm_inv,hz] at ht |
| 50 | rw [mul_comm (‖x‖)⁻¹, ← div_eq_mul_inv] at ht |
| 51 | exact ((div_le_iff₀ hi).mp ht).trans (mul_le_mul_of_nonneg_right (le_max_right ..) hi.le) |
| 52 | lemma record_cost (d:ℕ) (i:Beam d){s:ℕ} {x:E4}(hx:x∈box)(h:d≤s){f:Body}{C:ℝ}(hv:Cap s f C) : |
| 53 | |
| 54 | ‖consider (k:=d) i x f‖≤((write_cost d).choose*(d.factorial:ℝ)⁻¹) * C:=by |
| 55 | let r:=records x d f |
| 56 | have ht: ‖r‖ ≤ (d.factorial:ℝ)⁻¹*C:= by |
| 57 | change ‖Tensor.coeff f.val d x‖ ≤ _; rw [coeff,norm_smul,Real.norm_of_nonneg (by positivity)] |
| 58 | exact mul_le_mul_of_nonneg_left (hv _ h x hx) (by positivity) |
| 59 | exact (norm_le_pi_norm (writeC d r) i).trans ((write_cost d|>.choose_spec.2 r).trans ((mul_le_mul_of_nonneg_left ht ((write_cost d).choose_spec.1.le)).trans_eq (mul_assoc ..).symm)) |
| 60 | -- monomials from finite basis |
| 61 | noncomputable def lines (d : ℕ) : ↥(Orb d) →ₗ[ℂ] Body where |
| 62 | toFun p:= ⟨Tensor.diagonal p.val, diag_smooth p.val ∞⟩ |
| 63 | map_add' _ _:=rfl |
| 64 | map_smul' _ _:=rfl |
| 65 | def guide (d:ℕ)(i:Beam d):= lines d (BoltBasis d i) |
| 66 | lemma look_self (d:ℕ)(i j:Beam d)(x:E4) : consider (k:=d) i x (guide d j)=(if i=j then 1 else 0):=by |
| 67 | let S:=BoltBasis d j |
| 68 | have he :=diag_response S.val S.property x |
| 69 | have hp: records x d (guide d j)=S:=Subtype.ext he |
| 70 | unfold consider; change writeC d _ i= _; rw [hp] |
| 71 | change (BoltBasis d).repr S i= _; rw [Module.Basis.repr_self]; simp [Finsupp.single_apply,eq_comm] |
| 72 | lemma mono_vanish {d s:ℕ}(Y:Orb d)(hd:d<s):iteratedFDeriv ℝ s (Tensor.diagonal (Y.val))=0:=by |
| 73 | obtain ⟨k,rfl⟩:=Nat.exists_eq_add_of_le hd |
| 74 | clear hd; induction k with |
| 75 | | zero => exact funext (diag_above Y.val Y.property) |
| 76 | | succ k ih=> rw [show d+1+(k+1)=d+1+k+1 by omega,iteratedFDeriv_succ_eq_comp_left,ih]; ext; simp -- hp parameter issues |
| 77 | lemma below (d:ℕ)(i:Beam d) {s:ℕ}(j:Beam s) (hd:d<s)(x:E4) : consider (k:=s) j x (guide d i)=0:=by |
| 78 | let Y:=BoltBasis d i |
| 79 | have hp: records x s (guide d i)=0:= by apply Subtype.ext; change Tensor.coeff (Tensor.diagonal Y.val) s x=0; rw [coeff,mono_vanish Y hd,Pi.zero_apply, smul_zero] |
| 80 | unfold consider; change writeC s _ j=_; rw [hp,map_zero]; rfl |
| 81 | lemma above (d:ℕ)(i:Beam d) {s:ℕ}(j:Beam s) (hd:s<d) : consider (k:=s) j 0 (guide d i)=0:=by |
| 82 | let Y:=BoltBasis d i |
| 83 | have hp: records 0 s (guide d i)=0:=by |
| 84 | apply Subtype.ext; change Tensor.coeff (Tensor.diagonal Y.val) s 0=0 |
| 85 | have hw:=lower_term (s:=fun _=>1) (x:=0) (g:=id) Y.val Y.property contDiffAt_const contDiffAt_id rfl hd |
| 86 | rw [show dressed Y.val (fun _=>1) id= Tensor.diagonal Y.val from funext (fun x=> by simp [Push.FiniteDetection.Kelvin.dressed])] at hw; exact hw |
| 87 | unfold consider; change writeC s _ j=_; rw [hp,map_zero]; rfl |
| 88 | |
| 89 | abbrev Letter (d:ℕ):= Σ (i:Fin (d+1)),Beam i.val |
| 90 | abbrev depth {d:ℕ}(z:Letter d):ℕ:= z.1.val |
| 91 | def readJ {d:ℕ}(z:Letter d) (x:E4): PulseC:= consider (k:=z.1.val) z.2 x |
| 92 | def line {d:ℕ}(z:Letter d):Body:= guide _ z.2 |
| 93 | lemma headC {d:ℕ}(i j:Letter d): readJ i 0 (line j)= if i=j then 1 else 0:=by |
| 94 | by_cases h : i.1=j.1 |
| 95 | · rcases i with ⟨i,a⟩; rcases j with ⟨j,b⟩ |
| 96 | change i=j at h; subst j |
| 97 | change consider (k:=i.val) a 0 (guide i.val b)=_; rw [look_self]; split_ifs with hr hv hv; all_goals first | rfl | simp_all |
| 98 | have hn:i≠j:=fun hh=>h (hh ▸ rfl) |
| 99 | rw [if_neg hn]; cases lt_or_gt_of_ne h |
| 100 | · next hz => exact above _ j.2 i.2 hz |
| 101 | next hz => exact below _ j.2 i.2 hz 0 |
| 102 | lemma sliceC {d:ℕ}(i j:Letter d)(x:E4)(h:depth j ≤ depth i):readJ i x (line j)=if i=j then 1 else 0:=by |
| 103 | rw [← headC] |
| 104 | by_cases he:j.1=i.1 |
| 105 | · rcases i with ⟨i,a⟩; rcases j with ⟨j,b⟩; change j=i at he; subst j; exact Eq.trans (look_self i a b x) (look_self ..).symm |
| 106 | have hp:depth j<depth i:= Nat.lt_of_le_of_ne h (fun hg=>he (Fin.ext hg)); exact (below _ j.2 i.2 hp x).trans (below _ j.2 i.2 hp 0).symm |
| 107 | end YM.RG05Readout.Native |