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.Climb.Cells |
| 2 | |
| 3 | /-! |
| 4 | # Test matrices consumed after weak data, finite Ward part |
| 5 | -/ |
| 6 | set_option autoImplicit false |
| 7 | noncomputable section |
| 8 | namespace YM.Climb |
| 9 | open Function Set Filter MeasureTheory Measure Complex Analysis Extraction Table Ward Spin |
| 10 | open scoped Topology ContDiff BigOperators Matrix.Norms.Frobenius |
| 11 | variable {G : Gauge} {L : Register G} {S : Table L} {n d e : ℕ} |
| 12 | |
| 13 | /-- all `v : S.Field d`. Filtration caps homogeneous labels. -/ |
| 14 | def column (v : Fin n → S.Field d) := fun i => (⟨d,v i⟩ : S.Tag) |
| 15 | |
| 16 | def diagram (v : Fin n→ S.Field d) (q : Matrix d e S) (x : Points n) := |
| 17 | ∑ k, disc (update (column v) k (⟨e,q (v k)⟩ : S.Tag)) x |
| 18 | |
| 19 | def observed (v : Fin n → S.Field d) (x : Points n) (e : ℕ) : Matrix d e S →ₗ[ℂ] ℂ := |
| 20 | ∑ i : Fin n, (here (column v) x i e).comp (ContinuousLinearMap.apply ℂ (S.Field e) (v i)).toLinearMap |
| 21 | lemma observation (v : Fin n→ S.Field d) (q : Matrix d e S) (x : Points n) : observed v x e q=diagram v q x := by |
| 22 | unfold diagram observed; simp only [LinearMap.sum_apply]; apply Finset.sum_congr rfl; intro i _; exact takes .. |
| 23 | |
| 24 | structure Scene (S : Table L) (d : ℕ) where |
| 25 | n : ℕ |
| 26 | v : Fin n→ S.Field d |
| 27 | a : Axis |
| 28 | b : Axis |
| 29 | offAxis : b≠a |
| 30 | x : Points n |
| 31 | strict : x ∈ conf n |
| 32 | positions : onLine a x |
| 33 | m : ℕ |
| 34 | dirs : Fin m → Points n |
| 35 | |
| 36 | namespace Scene |
| 37 | variable (X : Scene S d) |
| 38 | |
| 39 | def lens (p : Vector d S) : ℂ := iteratedFDeriv ℝ X.m (diagram X.v (p X.b)) X.x X.dirs |
| 40 | end Scene |
| 41 | namespace Scaling |
| 42 | variable (p : Scaling S) |
| 43 | |
| 44 | def carry (k : ℕ) (t : Matrix d e S) : Matrix d e (Bel L) := LinearMap.toContinuousLinearMap |
| 45 | ((p.U k e).symm.toLinearMap.comp (t.toLinearMap.comp (p.U k d).toLinearMap)) |
| 46 | @[simp] lemma carries_f (x : (Bel L).Field d) (t : Matrix d e S) (k) : |
| 47 | p.U k e (p.carry k t x)=t (p.U k d x) := (p.U k e).apply_symm_apply _ |
| 48 | |
| 49 | def aisle (k : ℕ) (d) : Vector d S→ₗ[ℝ] Vector d (Bel L) where |
| 50 | toFun v := fun a => p.carry k (v a) |
| 51 | map_add' x y := by |
| 52 | ext1 i; ext1 v; change p.carry k _ v=p.carry k _ v+p.carry k _ v; apply (p.U k _).injective; simp |
| 53 | map_smul' a x := by |
| 54 | ext1 i; ext1 v; apply (p.U k (d+1)).injective |
| 55 | change p.U k _ (p.carry k _ _)=p.U k _ (a • p.carry k (x i) v) |
| 56 | have he (U : (Bel L).Field (d+1)) : p.U k (d+1) (a • U) = a • p.U k (d+1) U := ((p.U k _).toLinearMap.restrictScalars ℝ).map_smul _ _ |
| 57 | rw [he,carries_f,carries_f]; rfl |
| 58 | |
| 59 | lemma aisle_ext (k : ℕ) (d : ℕ) : Injective (p.aisle k d) := by |
| 60 | intro x y he |
| 61 | ext1 i; ext1 v |
| 62 | obtain ⟨u,rfl⟩ := (p.U k _).surjective v |
| 63 | rw [← p.carries_f u (x i),← p.carries_f u (y i)]; exact congr_arg (fun g : Vector d _ => p.U k (d+1) (g i u)) he |
| 64 | |
| 65 | lemma toColor {D : ℕ} {W : DiffPlan S} {T : DiffPlan (Bel L)} {H a} (hp : p.Align W T H a D) |
| 66 | {t : Vector d S} (hc : t∈Colors W H d) (hd : d<D) (k : ℕ) : p.aisle k d t∈ Colors T a d := by |
| 67 | obtain ⟨A,B,C⟩ := hc |
| 68 | refine ⟨fun i => ⟨?_,?_⟩,fun i s v => ?_,fun i v => ?_⟩ |
| 69 | · apply (p.U k (d+1)).injective |
| 70 | change p.U k _ (p.carry _ _ _)=_ |
| 71 | rw [p.carries_f,hp.carries k d hd.le,map_zero]; exact (A i).1 |
| 72 | · intro i' hu v |
| 73 | obtain ⟨y,hy⟩ := (A i).2 i' hu (p.U k i' v) |
| 74 | obtain ⟨u,rfl⟩ := (p.U k _).surjective y |
| 75 | refine ⟨u,(p.U k _).injective ?_⟩ |
| 76 | change p.U k _ _=p.U k _ (p.carry k _ _); rw [p.carries_f,hp.incl k i' d hu hd.le,hp.incl k _ _ _ hd]; exact hy |
| 77 | · change (Bel L).mirror _ _ _ (p.carry k _ _) = ∑ j : Axis, _ • (p.carry k (t j) ((Bel L).mirror _ d _ _)) |
| 78 | apply (p.U k _).injective |
| 79 | set u := p.U k d v |
| 80 | rw [(hp.Hsym k _ hd).1, p.carries_f,B]; rw [_root_.map_sum]; simp only [map_smul,p.carries_f,(hp.Hsym k d hd.le).1] |
| 81 | apply (p.U k _).injective |
| 82 | rw [(hp.Hsym k _ hd).2]; change S.conj _ _ (p.U k _ (p.carry _ _ _))= p.U k _ (p.carry _ _ _); rw [carries_f,carries_f,(hp.Hsym k d hd.le).2,C] |
| 83 | |
| 84 | /-- actual rescaled matrix entries evaluated on free vectors -/ |
| 85 | def test (k : ℕ) (s : Scene (Bel L) d) (T : Vector d (Bel L)) : ℂ := |
| 86 | iteratedFDeriv ℝ s.m (fun x => ∑ i, disc (p.pins k ∘ update (column s.v) i (⟨_,T s.b (s.v i)⟩ : (Bel L).Tag)) (p.r k • x)) s.x s.dirs |
| 87 | |
| 88 | end Scaling |
| 89 | /-! |
| 90 | Finite rows extraction. Inputs through all same d filtration. Armed |
| 91 | maps computed on diagrams; only need converge finite, not all selectors. |
| 92 | -/ |
| 93 | abbrev V0 (L : Register G) (d : ℕ) := Vector d (Bel L) |
| 94 | |
| 95 | structure Select (L : Register G) (d : ℕ) where |
| 96 | m : ℕ |
| 97 | rows (i : Fin m) : Scene (Bel L) d |
| 98 | reads : V0 L d →L[ℝ] (Fin m→ℂ) |
| 99 | stimulated i p : reads p i=(rows i).lens p |
| 100 | |
| 101 | structure Ens (P : Select L d) (K : DiffPlan (Bel L)) (h : (Bel L).RealSpin) : Prop where |
| 102 | vec : leaves K.deriv d∈ Colors K h d |
| 103 | nz : leaves K.deriv d ≠ 0 |
| 104 | identifies (v : V0 L d) : v ∈ Colors K h d → (P.reads v=0 ↔ ∃ c : ℝ, v=c • leaves K.deriv d) |
| 105 | |
| 106 | structure Subs (P : Select L d) (p : Scaling S) where |
| 107 | moves (k : ℕ) : V0 L d→L[ℝ] (Fin P.m→ℂ) |
| 108 | values k i s : moves k s i=p.test k (P.rows i) s |
| 109 | |
| 110 | end YM.Climb |