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 Mathlib.Analysis.Analytic.Binomial |
| 2 | import Mathlib.Analysis.Calculus.BumpFunction.Convolution |
| 3 | import Mathlib.Analysis.Calculus.ContDiff.RestrictScalars |
| 4 | import Mathlib.Analysis.Calculus.ImplicitContDiff |
| 5 | import Mathlib.Analysis.Calculus.IteratedDeriv.FaaDiBruno |
| 6 | import Mathlib.Analysis.Calculus.LineDeriv.Measurable |
| 7 | import Mathlib.Analysis.Calculus.VectorField |
| 8 | import Mathlib.Analysis.Complex.RemovableSingularity |
| 9 | import Mathlib.Analysis.Normed.Group.Tannery |
| 10 | import Mathlib.Analysis.ODE.ExistUnique |
| 11 | import Mathlib.LinearAlgebra.Multilinear.Pi |
| 12 | import Mathlib.LinearAlgebra.PiTensorProduct.Generators |
| 13 | import Mathlib.RingTheory.Nilpotent.Exp |
| 14 | import YM.Ac.Table |
| 15 | import YM.Analysis.Polydisc |
| 16 | import YM.Bid.Drops |
| 17 | import YM.Bid.Fuels |
| 18 | import YM.Org.Theatre |
| 19 | import YM.Pressure.Seeds |
| 20 | import YM.Work.A05.Read |
| 21 | |
| 22 | /-! |
| 23 | # At station k: joint attachment to a `Bands` |
| 24 | |
| 25 | Addresses for actual orbit/frame of all copies, exact energies on old |
| 26 | representation without altering its K or swapping history. |
| 27 | |
| 28 | Use hypothesis of |
| 29 | spare forced catalog in that vacuum. |
| 30 | |
| 31 | Letter counts distinct. |
| 32 | |
| 33 | Merged forms grouped by mode for |
| 34 | each *old-address/new-marker connected configuration*; doesn't produce, |
| 35 | e.g., a solution of stronger genealogy requirements unspecified here. |
| 36 | |
| 37 | Same |
| 38 | threshold, marker and root orientation preferences as read in `Bands`. |
| 39 | -/ |
| 40 | |
| 41 | set_option autoImplicit false |
| 42 | set_option linter.unusedSectionVars false |
| 43 | noncomputable section |
| 44 | namespace YM.Push.GridApprox.Attach |
| 45 | open RG Lattice Wilson Cells MeasureTheory Function Filter Finset Ac Marker Overlay |
| 46 | open scoped Topology BigOperators |
| 47 | |
| 48 | variable {G : Gauge} {n : Side} {V : Type*} [Fintype V] [DecidableEq V] {R : Census V} |
| 49 | |
| 50 | /-- Coarse cylinders already scaled for physical source insertion. One per |
| 51 | site marker, allow an independent global c too. Y includes whole support and |
| 52 | origin. -/ |
| 53 | structure Plan {P : Rep G n} (a : Bands R P) where |
| 54 | Y : V → Support n |
| 55 | c : V → ℂ |
| 56 | F : V → Config G n → ℂ |
| 57 | good i : P.p.Regular (Y i) (F i) |
| 58 | origin i : a.origins i∈ Y i |
| 59 | |
| 60 | variable {P : Rep G n} {a : Bands R P} (I : Plan a) |
| 61 | |
| 62 | abbrev Alphabet (V : Type*) := ℕ ⊕ V |
| 63 | |
| 64 | def patch : Alphabet V → Support n := Sum.elim (fun i => (P.activities.forced i).support) I.Y |
| 65 | |
| 66 | def peel (j : V) (U : Config G n) : ℂ := I.F j U - masked P.p.threshold (I.Y j) (I.F j) U |
| 67 | |
| 68 | def leaf (l : Alphabet V) (U : Config G n) : Poly R := l.elim (fun i => a.each i U) |
| 69 | (fun j => Poly.send (R.fire j) (peel I j U)) |
| 70 | |
| 71 | def sheet (s : Finset (Alphabet V)) := s.biUnion (patch I) |
| 72 | |
| 73 | def flagsFor (P : Rep G n) (s : Finset (Alphabet V)) := s.toLeft.biUnion (fun i => (P.activities.forced i).inventory) |
| 74 | |
| 75 | /-- Include even components with zero potential value. Never make two K |
| 76 | carriers within an admitted selection overlap. -/ |
| 77 | def Kept (s : Finset (Alphabet V)) : Prop := s.toLeft.Nonempty ∧ Spark (patch I) s ∧ |
| 78 | ((s.toLeft : Set ℕ).PairwiseDisjoint (fun i => (P.activities.forced i).support)) |
| 79 | |
| 80 | def Fresh (s : Finset (Alphabet V)) : Prop := Kept I s ∧ s.toRight.Nonempty |
| 81 | |
| 82 | abbrev Block := {s // Fresh I s} |
| 83 | |
| 84 | |
| 85 | |
| 86 | |
| 87 | |
| 88 | |
| 89 | |
| 90 | |
| 91 | |
| 92 | /-- Need actual dormant names with these capabilities in P. Not a license |
| 93 | to create them in somebody else's path. `extraTest` still used for the OLD |
| 94 | carriers; for the new names assume unconditionally available. Order along P |
| 95 | unchanged. -/ |
| 96 | structure Spares where |
| 97 | tag : Block I → ℕ |
| 98 | injective : Injective tag |
| 99 | full j : (P.activities.forced (tag j)).support = sheet I j.val |
| 100 | flags j : (P.activities.forced (tag j)).inventory = flagsFor P j.val |
| 101 | plain j U : (P.activities.forced (tag j)).extraTest U |
| 102 | idle j : P.activities.K (tag j)=0 |
| 103 | marks j i : a.entries (tag j) i = 0 |
| 104 | |
| 105 | variable {I} (T : Spares I) |
| 106 | |
| 107 | open scoped Classical in |
| 108 | private def from? (q : ℕ) := if h : ∃ j, T.tag j=q then some h.choose else none |
| 109 | |
| 110 | open scoped Classical in |
| 111 | private lemma from_inside (j : Block I) : from? T (T.tag j)=some j := by |
| 112 | unfold from?; split_ifs with hx |
| 113 | · rw [T.injective hx.choose_spec] |
| 114 | exact False.elim (hx ⟨j,rfl⟩) |
| 115 | |
| 116 | open scoped Classical in |
| 117 | private lemma from_outside (q : ℕ) (h : ∀ j, T.tag j ≠ q) : from? T q = none := by |
| 118 | unfold from? |
| 119 | split |
| 120 | next he => obtain ⟨j,hj⟩ := he; exact False.elim (h j hj) |
| 121 | rfl |
| 122 | |
| 123 | def group (q : ℕ) : Finset (Alphabet V) := match from? T q with |
| 124 | | some j => j.val |
| 125 | | none => {Sum.inl q} |
| 126 | |
| 127 | lemma group_inside (j : Block I) : group T (T.tag j) = j.val := by unfold group; rw [from_inside] |
| 128 | lemma group_outside (q : ℕ) (h : ∀ j, T.tag j≠q) : group T q={Sum.inl q} := by unfold group; rw [from_outside T q h] |
| 129 | |
| 130 | lemma group_injective : Injective (group T) := by |
| 131 | classical |
| 132 | have hm (q : ℕ) (p : Block I) (e : group T q=p.val) : q=T.tag p := by |
| 133 | by_cases h : ∃ j, T.tag j=q |
| 134 | · obtain ⟨j,rfl⟩ := h; rw [group_inside] at e; exact congr_arg T.tag (Subtype.ext e) |
| 135 | rw [group_outside T q (by tauto)] at e |
| 136 | have ht := p.property.2 |
| 137 | rw [← e] at ht |
| 138 | obtain ⟨j,hj⟩ := ht; simp at hj |
| 139 | intro i j he; by_cases h : ∃ k, T.tag k=i |
| 140 | · obtain ⟨k,rfl⟩ := h; rw [group_inside] at he; exact (hm j k he.symm).symm |
| 141 | by_cases hh : ∃ k,T.tag k=j |
| 142 | · obtain ⟨k,rfl⟩ := hh; rw [group_inside] at he; exact hm i k he |
| 143 | rw [group_outside T _ (by tauto),group_outside T _ (by tauto)] at he; simpa using he |
| 144 | |
| 145 | |
| 146 | |
| 147 | section output |
| 148 | variable [Nonempty V] |
| 149 | |
| 150 | open scoped Classical in |
| 151 | /-- Addressed product is actually admitted. Components otherwise zero. |
| 152 | Other `extraTest`s remain via the old `a.each`. -/ |
| 153 | def connection (j : Block I) (U : Config G n) : Poly R := |
| 154 | if (P.activities.forced (T.tag j)).eligible P.p.threshold U then ∏ l∈j.val, leaf I l U else 0 |
| 155 | |
| 156 | /-- Mark access names inside a new combined address. -/ |
| 157 | def code (s : R.Mode) := (Fintype.equivFin R.Mode s).val |
| 158 | |
| 159 | lemma code_inj : Injective (code (R:=R)) := fun _ _ h => (Fintype.equivFin _).injective (Fin.ext h) |
| 160 | |
| 161 | open scoped Classical in |
| 162 | private def choice (R : Census V) (i : ℕ) := if h : ∃ s : R.Mode, s.val.Nonempty ∧ code s=i then some h.choose else none |
| 163 | lemma choice_in (s : R.Mode) (h : s.val.Nonempty) : choice R (code s)=some s := by |
| 164 | classical |
| 165 | unfold choice |
| 166 | split_ifs with hx; exacts [congr_arg _ (code_inj hx.choose_spec.2),False.elim (hx ⟨s,h,rfl⟩)] |
| 167 | lemma choice_out (R : Census V) (i) (h : ∀ s : R.Mode, s.val.Nonempty → code s≠i) : choice R i=none := by |
| 168 | classical |
| 169 | unfold choice |
| 170 | split |
| 171 | next h' => obtain ⟨j,hj,he⟩ := h'; exact False.elim (h _ hj he) |
| 172 | rfl |
| 173 | |
| 174 | def shapes (V : Type*) [Fintype V] : ℕ ≃ Alphabet V := |
| 175 | letI := Classical.choice (nonempty_denumerable (Alphabet V)) |
| 176 | (Denumerable.eqv _).symm |
| 177 | |
| 178 | def attached : Bands R P where |
| 179 | origins := a.origins |
| 180 | units := fun j => a.units j + I.c j |
| 181 | support q := (shapes V q).elim a.support I.Y |
| 182 | rays q := (shapes V q).elim a.rays R.fire |
| 183 | H q := (shapes V q).elim a.H I.F |
| 184 | marks q i := match from? T q with |
| 185 | | none => a.marks q i |
| 186 | | some _ => (choice R i).getD (R.fire (Classical.arbitrary V)) |
| 187 | entries q i := match from? T q with |
| 188 | | none => a.entries q i |
| 189 | | some j => match choice R i with |
| 190 | | none => 0 |
| 191 | | some s => fun U => (connection T j U).part s |
| 192 | |
| 193 | lemma mark_in (j : Block I) (s : R.Mode) (h : s.val.Nonempty) : (attached T).marks (T.tag j) (code s) = s := by |
| 194 | dsimp only [attached]; rw [from_inside]; simp [choice_in s h] |
| 195 | lemma entry_in (j : Block I) (s : R.Mode) (h : s.val.Nonempty) : (attached T).entries (T.tag j) (code s) = |
| 196 | fun U => (connection T j U).part s := by dsimp only [attached]; rw [from_inside]; simp [choice_in s h] |
| 197 | lemma mark_out (q : ℕ) (h : ∀ j, T.tag j≠q) (i) : (attached T).marks q i = a.marks q i := by dsimp only [attached]; rw [from_outside T q h] |
| 198 | lemma entry_out (q : ℕ) (h : ∀ j, T.tag j≠q) (i) : (attached T).entries q i = a.entries q i := by dsimp only [attached]; rw [from_outside T q h] |
| 199 | lemma entry_extra (j : Block I) (i) (h : ∀ s : R.Mode, s.val.Nonempty → code s ≠ i) : |
| 200 | (attached T).entries (T.tag j) i=0 ∧ (attached T).marks (T.tag j) i = R.fire (Classical.arbitrary V) := by |
| 201 | dsimp only [attached]; rw [from_inside]; simp [choice_out R i h] |
| 202 | end output |
| 203 | end YM.Push.GridApprox.Attach |