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.Work.B10 |
| 2 | import YM.Work.D05 |
| 3 | import YM.Work.D06 |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | /-! |
| 9 | # A single input order for RClose |
| 10 | |
| 11 | The global assembly problem is **not** solved by choosing infinitely many |
| 12 | ordered mesh/period limits independently. Here is one positive theorem about |
| 13 | the compatibility it needs. Above explicit common lower data (through an |
| 14 | Order before some of the physics tasks), schedule certain *per-demand* |
| 15 | supplies in further orders, including powers-of-roots estimates and grid |
| 16 | estimates with specific quantifier dependencies, on that same family. Need |
| 17 | supplies at `f.refine p` with **arbitrary** p each time; just receiving one |
| 18 | estimate at some order of the producer's choosing and another separately |
| 19 | doesn't entitle calls to this theorem. But we can ask quite separately: e.g. |
| 20 | a RankWidths set of estimates *for one d* (all k still required); even grid |
| 21 | estimates *per arity and placement* can use further refinements. And Grid |
| 22 | service only need respond when (all-d) Seed already holds. |
| 23 | |
| 24 | Choose *nested* stations on requested Order axes. Prove there is a genuine |
| 25 | refinement of the original order retaining all these estimates; no switching |
| 26 | of histories, no auxiliary choices after boundary, no replacement of |
| 27 | `Order.limits` by a diagonal limit. Preserve the old Arrives (S₀ & Bin |
| 28 | interfaces) and Cleaner and prove full `UV`. Nothing proves that these |
| 29 | request-based antecedents will be inhabited -- important research |
| 30 | obligations! |
| 31 | -/ |
| 32 | |
| 33 | set_option autoImplicit false |
| 34 | noncomputable section |
| 35 | namespace YM.Next.BOUNDARY |
| 36 | |
| 37 | open Set Filter Function |
| 38 | open Extraction |
| 39 | open scoped Topology |
| 40 | |
| 41 | /-- `F` after `G`, in the two required axes separately, for purposes of tail |
| 42 | comparisons. Holds also for certain "diagonals" through *towers of Orders*, |
| 43 | even though F need not be literally `G.refine _`. -/ |
| 44 | structure Refines (F G : Order) : Prop where |
| 45 | mesh : Filter.map (fun n => F.mesh n) atTop ≤ Filter.map (fun n => G.mesh n) atTop |
| 46 | per : Filter.map (fun n => F.per n) atTop ≤ Filter.map (fun n => G.per n) atTop |
| 47 | |
| 48 | theorem refine_fits (F G : Order) : Refines (F.refine G) F := by |
| 49 | constructor |
| 50 | · intro s h |
| 51 | change ∀ᶠ i in atTop, F.mesh i∈s at h |
| 52 | exact G.mesh.cofinal.eventually h |
| 53 | intro s h |
| 54 | change ∀ᶠ i in atTop, F.per i∈s at h |
| 55 | exact G.per.cofinal.eventually h |
| 56 | |
| 57 | namespace Refines |
| 58 | variable {f g : Order} |
| 59 | protected theorem cons (h : Refines f g) (t : Order) : Refines (t.refine f) (t.refine g) := by |
| 60 | constructor |
| 61 | · simpa only [map_map] using! (map_mono (m:=fun n => t.mesh n) h.mesh) |
| 62 | simpa only [map_map] using! (map_mono (m:=fun n => t.per n) h.per) |
| 63 | |
| 64 | -- Include every usage distinguishing mesh THEN volume. |
| 65 | protected theorem late (h : Refines f g) {A : ℕ → ℕ → Prop} (ht : g.late A) : f.late A := by |
| 66 | change ∀ᶠ k in Filter.map (fun i => g.per i) atTop, ∀ᶠ j in Filter.map (fun i => g.mesh i) atTop, |
| 67 | A j k at ht |
| 68 | exact (ht.filter_mono h.per).mono fun _ he => he.filter_mono h.mesh |
| 69 | |
| 70 | protected theorem limits (h : Refines f g) {A : ℕ → Prop} {X : Type*} [TopologicalSpace X] {W : ℕ→ℕ→X} |
| 71 | {x : X} (H : g.limits A W x) : f.limits A W x := by |
| 72 | obtain ⟨u, v, hv, hx⟩ := H |
| 73 | refine ⟨(show ∀ᶠ k in Filter.map (fun i => g.per i) atTop, A k from u).filter_mono h.per, v, |
| 74 | fun p hp => ?_, ?_⟩ |
| 75 | · intro P hP |
| 76 | change ∀ᶠ j in Filter.map (fun i => f.mesh i) atTop, W j p∈P |
| 77 | exact Eventually.filter_mono h.mesh ((hv p hp) hP) |
| 78 | intro T hT |
| 79 | change ∀ᶠ k in Filter.map (fun i => f.per i) atTop, v k∈T |
| 80 | exact Eventually.filter_mono h.per (hx hT) |
| 81 | |
| 82 | protected theorem fuse (h : Refines f g) : f.fuse ≤ g.fuse := by |
| 83 | intro s hs |
| 84 | change ∀ᶠ k in g.fuse, k∈s at hs |
| 85 | change ∀ᶠ k in f.fuse, k∈s |
| 86 | rw [Order.fused] at hs ⊢ |
| 87 | exact h.late hs |
| 88 | end Refines |
| 89 | |
| 90 | section diagonal |
| 91 | private lemma one_axis (t : ℕ → Sequence) (H : ∀ i : ℕ, ∃ r : Sequence, t (i+1)=(t i).after r) : |
| 92 | ∃ g : Sequence, ∀ i : ℕ, Filter.map (fun k => g k) atTop ≤ Filter.map (fun k => t i k) atTop := by |
| 93 | let g (i : ℕ) := t i i |
| 94 | have hg : StrictMono g := strictMono_nat_of_lt_succ (fun n => by |
| 95 | obtain ⟨p, hp⟩ := H n |
| 96 | change t n n < t (n+1) (n+1) |
| 97 | rw [hp, Sequence.after_apply]; exact (t n).monotone (p.monotone.id_le (n+1))) |
| 98 | have he (i j : ℕ) (h : i≤j) : ∃ U : Sequence, t j=(t i).after U := by |
| 99 | induction j, h using Nat.le_induction with |
| 100 | | base => exact ⟨Sequence.full, rfl⟩ |
| 101 | | succ j hj ih => |
| 102 | obtain ⟨U, hu⟩ := ih |
| 103 | obtain ⟨V, hv⟩ := H j |
| 104 | exact ⟨U.after V, by rw [hv, hu]; rfl⟩ |
| 105 | refine ⟨⟨g, hg⟩, fun i => ?_⟩ |
| 106 | intro s hs |
| 107 | change ∀ᶠ j in atTop, t i j∈s at hs |
| 108 | obtain ⟨m, hm⟩ := eventually_atTop.mp hs |
| 109 | change ∀ᶠ j in atTop, t j j∈s |
| 110 | filter_upwards [eventually_ge_atTop i, eventually_ge_atTop m] with j hj hx |
| 111 | obtain ⟨U, hu⟩ := he i j hj |
| 112 | rw [hu] |
| 113 | exact hm (U j) (hx.trans (U.monotone.id_le j)) |
| 114 | |
| 115 | /-- Orders through a tower; this lemma alone gives tail comparison. -/ |
| 116 | theorem tower (T : ℕ→Order) (h : ∀ n, ∃ p, T (n+1)=(T n).refine p) : |
| 117 | ∃ g : Order, ∀ n, Refines g (T n) := by |
| 118 | obtain ⟨a, ha⟩ := one_axis (fun i => (T i).mesh) (fun i => by |
| 119 | obtain ⟨r, hr⟩ := h i; exact ⟨r.mesh, by rw [hr]; rfl⟩) |
| 120 | obtain ⟨b, hb⟩ := one_axis (fun i => (T i).per) (fun i => by |
| 121 | obtain ⟨r, hr⟩ := h i; exact ⟨r.per, by rw [hr]; rfl⟩) |
| 122 | exact ⟨⟨a, b⟩, fun i => ⟨ha i, hb i⟩⟩ |
| 123 | |
| 124 | /-- Countable fusion ending at a single **refinement of f**, paying all |
| 125 | requests. Feed producers genuine order refinements; use sides individually |
| 126 | in diagonalization. -/ |
| 127 | theorem concert (f : Order) {ι : Type*} [Nonempty ι] [Countable ι] (P : ι → Order → Prop) |
| 128 | (supply : ∀ i (g : Order), ∃ k : Order, P i ((f.refine g).refine k)) |
| 129 | (stays : ∀ i g k, Refines g k → P i k → P i g) : ∃ g : Order, ∀ i, P i (f.refine g) := by |
| 130 | choose r hr using supply |
| 131 | obtain ⟨s, hs⟩ := exists_surjective_nat ι |
| 132 | let T : ℕ → Order := Nat.rec Order.full fun n g => g.refine (r (s n) g) |
| 133 | obtain ⟨g, hg⟩ := tower T (fun n => ⟨r (s n) (T n), rfl⟩) |
| 134 | refine ⟨g, ?_⟩ |
| 135 | intro i |
| 136 | obtain ⟨n, rfl⟩ := hs i |
| 137 | exact stays (s n) _ (f.refine (T (n+1))) ((hg (n+1)).cons f) (hr _ (T n)) |
| 138 | end diagonal |
| 139 | |
| 140 | open Spec Org Cells |
| 141 | variable {G : Gauge} {C : Family G} {f g : Order} {S₀ S : Table C.book} {P : ℕ → Table C.book} {V : DiffPlan S} |
| 142 | |
| 143 | lemma keep_seed (H : Seed C f S) (g : Order) : Seed C (f.refine g) S := by |
| 144 | refine ⟨H.cutoff, Order.upon H.ordered _, Order.point_retained _ _ _ H.generic _, |
| 145 | H.kernel, Cells.recur H.copies g, fun d => ?_⟩ |
| 146 | obtain ⟨X, T, ht⟩ := H.corrected d |
| 147 | exact ⟨X, T, Columns.Trials.refresh _ _ ht g⟩ |
| 148 | |
| 149 | -- Use on mod-finite comparisons too, for fusion of late estimates on |
| 150 | -- specific concrete columns, not replacing their budget guarantees. |
| 151 | theorem Refines.rank (h : Refines g f) {d : ℕ} (X : Columns C S d) {Z : X.Trials} |
| 152 | (H : Columns.Trials.Valid f Z) : Columns.Trials.Valid g Z where |
| 153 | ratios := H.ratios |
| 154 | same_stage := H.same_stage |
| 155 | scale_down := H.scale_down |
| 156 | conjugate := H.conjugate |
| 157 | unit := H.unit |
| 158 | responds k i := h.limits (H.responds k i) |
| 159 | bounded k := by |
| 160 | obtain ⟨A,hA⟩ := H.bounded k |
| 161 | refine ⟨A, fun p => ?_⟩ |
| 162 | change ∀ᶠ i in Filter.map (fun j => g.mesh j) atTop, ∀ n, ‖Z.lift k i p n‖ ≤ A |
| 163 | exact Eventually.filter_mono h.mesh (hA p) |
| 164 | span := H.span |
| 165 | tuned := H.tuned |
| 166 | seams := H.seams |
| 167 | generic := H.generic |
| 168 | cheap k ε hε := h.late (H.cheap k ε hε) |
| 169 | |
| 170 | theorem Refines.plots {n k : ℕ} {v : Fin n → C.book.Token} {x : Fin n → Lattice.Cover} (h : Refines g f) |
| 171 | {Z : OS.Grid.Covering (C:=C) k v x} (H : OS.Grid.Covering.Works k v x Z f) : |
| 172 | OS.Grid.Covering.Works k v x Z g := by |
| 173 | refine ⟨fun a b c => h.late (H.controls a b c), fun a b c e => (H.fillings a b c e).mono ?_⟩ |
| 174 | intro t ht |
| 175 | exact h.late ht |
| 176 | |
| 177 | lemma Refines.bins (H : Refines g f) {h : Dash.Live S} (R : Dash.Bin S) (hs : Dash.Spans h R f) : |
| 178 | Dash.Spans h R g where |
| 179 | p d := ⟨(hs.p d).slides.mono_left H.fuse, fun i x => ((hs.p d).roots i x).mono_left H.fuse⟩ |
| 180 | q := hs.q |
| 181 | r a b p q := by |
| 182 | obtain ⟨x, hx⟩ := hs.r a b p q |
| 183 | exact ⟨x, ⟨fun i => (hx.meets i).mono_left H.fuse, fun i => (hx.costly i).mono_left H.fuse⟩⟩ |
| 184 | t a i x := by |
| 185 | obtain ⟨y, hy⟩ := hs.t a i x |
| 186 | exact ⟨y, ⟨fun j => (hy.meets j).mono_left H.fuse, fun j => (hy.costly j).mono_left H.fuse⟩⟩ |
| 187 | |
| 188 | lemma keep_arrives (h : Arrives C f S P) (g : Order) : Arrives C (f.refine g) S P := by |
| 189 | obtain ⟨T, ht⟩ := h.pin |
| 190 | exact ⟨copy_down _ _ h.census g, h.born, T, (refine_fits f g).bins T ht⟩ |
| 191 | |
| 192 | lemma keep_cleaner (h : Cleaner S₀ P S V f) (g : Order) : Cleaner S₀ P S V (f.refine g) := |
| 193 | ⟨h.sharp, copy_down _ _ h.mesh g, h.basic, h.smooth, h.ready, h.tilt⟩ |
| 194 | |
| 195 | /-- **Requires new producers**. Per-weight d `Valid` estimates, in full |
| 196 | including simultaneous over all of that detector family's rows and depths k; |
| 197 | here we need them in some further order each time. -/ |
| 198 | def AtRank (C : Family G) (f : Order) (S : Table C.book) : Prop := |
| 199 | ∀ (d : ℕ) (p : Order), ∃ (g : Order) (X : Columns C S d) (Z : X.Trials), |
| 200 | Columns.Trials.Valid ((f.refine p).refine g) Z |
| 201 | |
| 202 | /-- Estimate port in Grill, exact for this extraction, weight, grid |
| 203 | station k, arity and generic placement. Not claiming other mixed-approximation |
| 204 | or rotation inputs from this. Only needs |
| 205 | `Grid.Covering.Works` (including plot bounds and the cross expectations, |
| 206 | with the stated eventuality in t and the `late` |
| 207 | filter, and on the actual cutoff measure of C). -/ |
| 208 | def PlotBounds (C : Family G) (f : Order) (d k n : ℕ) (x : Fin n → Lattice.Cover) : Prop := |
| 209 | Order.grid C k x ∈ YM.generic n → |
| 210 | ∀ v : Fin n → C.book.Token, (∀ i,(v i).fst ≤ d) → OS.Grid.plain (C:=C) v → |
| 211 | ∃ P : OS.Grid.Covering (C:=C) k v x, OS.Grid.Covering.Works k v x P f |
| 212 | |
| 213 | /-- k cofinal must work for all arities n. However we can ask for each n, |
| 214 | x separately in further Orders (arbitrary refinement supply). No |
| 215 | diagonalization through the continuum of all `v`: require all such v at |
| 216 | that n/x. -/ |
| 217 | def AtGrid (C : Family G) (f : Order) (S : Table C.book) : Prop := |
| 218 | ∀ p : Order, Seed C (f.refine p) S → ∀ d m : ℕ, ∃ k : ℕ, m≤k ∧ ∃ q : Order, |
| 219 | ∀ (n : ℕ) (x : Fin n → Lattice.Cover) (g : Order), ∃ r : Order, |
| 220 | PlotBounds C ((((f.refine p).refine q).refine g).refine r) d k n x |
| 221 | |
| 222 | lemma plotted {d k n : ℕ} {x : Fin n → Lattice.Cover} (H : PlotBounds C f d k n x) (h : Refines g f) : PlotBounds C g d k n x := by |
| 223 | intro hg v hv e |
| 224 | obtain ⟨X,hX⟩ := H hg v hv e |
| 225 | exact ⟨X, h.plots hX⟩ |
| 226 | |
| 227 | lemma rank_count (X : AtRank C f S) : ∃ g : Order, RankWidths C (f.refine g) S := by |
| 228 | refine concert f (fun d F => ∃ (X : Columns C S d) (Z : X.Trials), Columns.Trials.Valid F Z) |
| 229 | (fun i j => X i j) ?_ |
| 230 | rintro i F Q h ⟨X, Z, e⟩ |
| 231 | exact ⟨X, Z, h.rank _ e⟩ |
| 232 | |
| 233 | lemma grid_count (X : AtGrid C f S) (p : Order) (s : Seed C (f.refine p) S) : |
| 234 | ∃ g : Order, Grill C ((f.refine p).refine g) := by |
| 235 | let base := f.refine p |
| 236 | let J := (n : ℕ) × (Fin n → Lattice.Cover) |
| 237 | letI : Nonempty J := ⟨⟨0, Fin.elim0⟩⟩ |
| 238 | letI : Countable J := by unfold J; infer_instance |
| 239 | let A := fun d : ℕ×ℕ => fun t : Order => ∃ k ≥ d.2, ∀ x : J, PlotBounds C t d.1 k x.1 x.2 |
| 240 | have he (i : ℕ × ℕ) (g : Order) : ∃ q, A i ((base.refine g).refine q) := by |
| 241 | obtain ⟨k, hk, q, hq⟩ := X (p.refine g) (keep_seed s g) i.1 i.2 |
| 242 | let F := (base.refine g).refine q |
| 243 | obtain ⟨Q, hQ⟩ := concert F (fun x : J => fun u : Order => PlotBounds C u i.1 k x.1 x.2) |
| 244 | (fun j u => hq j.1 j.2 u) (fun _ _ _ H h => plotted h H) |
| 245 | exact ⟨q.refine Q, k, hk, hQ⟩ |
| 246 | have hh (i : ℕ × ℕ) (F G : Order) (h : Refines G F) (p : A i F) : A i G := by |
| 247 | obtain ⟨k, hk, hX⟩ := p |
| 248 | exact ⟨k, hk, fun t => plotted (hX t) h⟩ |
| 249 | obtain ⟨q, hq⟩ := concert base A he (fun _ _ _ h => hh _ _ _ h) |
| 250 | refine ⟨q, fun d m => ?_⟩ |
| 251 | obtain ⟨k, hv, hw⟩ := hq (d,m) |
| 252 | exact ⟨k, hv, fun n v ht hV x hx => hw (⟨n,x⟩ : J) hx v ht hV⟩ |
| 253 | |
| 254 | open RG.Supply |
| 255 | variable {M : Metals G} {D : Rolls M.p} {A : Alloy M D} {B : Bolt A} |
| 256 | |
| 257 | /-- Once a (possibly already deliberately chosen) common f, history, S and |
| 258 | V have reached this point, choose the joint refinement. Actual birth of |
| 259 | objects from Mesh/Grill etc retained in theorem types: NOT assumption-free. |
| 260 | |
| 261 | `W : MaxwellData C` and `I : IR S` and their physical equations/tests via |
| 262 | `Climb` required on these specific common spaces and derivatives, after |
| 263 | arriving at the seed & grill -- never assigned independently. (Their two |
| 264 | Climb conditions have no further f-dependence; producers needing further |
| 265 | refinement there may use `keep_*`, `Refines` and `plotted` too.) |
| 266 | -/ |
| 267 | theorem synchronized (simple : G.Simple) (hB : Assembly B C) (h : Arrives C f S₀ P) |
| 268 | (hc : Cleaner S₀ P S V f) |
| 269 | (hr : AtRank C f S) (ht : AtGrid C f S) |
| 270 | (climb : ∀ g : Order, ∀ s : Seed C (f.refine g) S, Grill C (f.refine g) → |
| 271 | ∃ (W : MaxwellData C) (I : IR (C:=C) S), Climb.Pre s.kernel V I.J I.p I.Y ∧ |
| 272 | Climb.ActLaw V W.T I.J s.kernel.spin W.hT.spin) : |
| 273 | ∃ g : Order, Arrives C (f.refine g) S₀ P ∧ Cleaner S₀ P S V (f.refine g) ∧ |
| 274 | ∃ (W : MaxwellData C) (I : IR (C:=C) S), UV C (f.refine g) S V W I := by |
| 275 | have c := hB.port simple f |
| 276 | obtain ⟨L, hL⟩ := Bid.healthy hB.stamp c Work.D05.answer Work.B10.answer Work.D06.answer hc |
| 277 | obtain ⟨g, hg⟩ := rank_count hr |
| 278 | have hw := (keep_cleaner hc g).mesh |
| 279 | have s : Seed C (f.refine g) S := |
| 280 | ⟨hB.stamp, hw.integral, ⟨P, hw.mesh, hw.volume⟩, L, Cells.recur c.cells g, hg⟩ |
| 281 | obtain ⟨q, hq⟩ := grid_count ht g s |
| 282 | have H : Seed C (f.refine (g.refine q)) S := keep_seed s q |
| 283 | obtain ⟨W, I, hp, he⟩ := climb (g.refine q) H hq |
| 284 | exact ⟨g.refine q, keep_arrives h _, keep_cleaner hc _, W, I, ⟨H, hL, hp, he, hq⟩⟩ |
| 285 | end YM.Next.BOUNDARY |