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.UV_STRESS.Arrange |
| 2 | import YM.Work.A01.Support |
| 3 | import YM.Work.A04 |
| 4 | |
| 5 | |
| 6 | |
| 7 | /-! |
| 8 | # Isomorphisms actually from the weak estimates |
| 9 | |
| 10 | Finite comparison used with all-spectator quotient (no uniform-test-space |
| 11 | infinite determinant). Do this already at the smeared level, before jets. |
| 12 | -/ |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | namespace YM.Next.UVStress |
| 16 | open Set Function Filter MeasureTheory Analysis Table Ward Climb Extraction |
| 17 | open scoped Topology ContDiff BigOperators |
| 18 | variable {G : Gauge} {L : Register G} {T : Table L} {n : ℕ} {C : Family G} {F : Order} {S : Table C.book} |
| 19 | |
| 20 | /-- A joint test of the first slot of a correlation. -/ |
| 21 | structure MeterTest (T : Table L) where |
| 22 | n : ℕ |
| 23 | t : Test (n+1) |
| 24 | q : Fin n → T.Tag |
| 25 | |
| 26 | namespace MeterTest |
| 27 | variable (y : MeterTest T) |
| 28 | |
| 29 | def headTest (d : ℕ) (v : T.Field d) := Fin.cons (α:=fun _ : Fin (y.n+1) => T.Tag) ⟨d,v⟩ y.q |
| 30 | |
| 31 | def checkAt (hc : T.Smooth) (d : ℕ) (r : ℝ) (hr : 0 < r) : T.Field d →ₗ[ℂ] ℂ where |
| 32 | toFun v := y.t.applyTo fun x => disc (y.headTest d v) (r • x) |
| 33 | map_add' b c := by |
| 34 | let F (p : T.Field d) (x : Points (y.n+1)) := disc (y.headTest d p) (r • x) |
| 35 | have H (p : T.Field d) : ContinuousOn (F p) (conf _) := (smoothZoom hc (y.headTest d p) hr).continuousOn |
| 36 | have he : F (b+c)=F b+F c := by |
| 37 | funext x; unfold F headTest disc |
| 38 | simp only [Pi.add_apply, ← Work.A01.front_eval, map_add] |
| 39 | change y.t.applyTo (F (b+c))=_ |
| 40 | rw [he]; exact test_add _ _ (H _) (H _) _ |
| 41 | map_smul' a b := by |
| 42 | have he : (fun x => disc (y.headTest d (a • b)) (r • x))= a • (fun x => disc (y.headTest d b) (r • x)) := by |
| 43 | funext x; unfold headTest disc; simp only [Pi.smul_apply, ← Work.A01.front_eval, map_smul] |
| 44 | rw [he]; exact test_smul .. |
| 45 | |
| 46 | def zeroScale (hc : T.Smooth) (d : ℕ) := checkAt y hc d 1 one_pos |
| 47 | lemma zeroScale_eq (hc : T.Smooth) (d : ℕ) (v : T.Field d) : zeroScale y hc d v=y.t.applyTo (disc (y.headTest d v)) := by |
| 48 | change y.t.applyTo (fun x => disc (y.headTest d v) ((1:ℝ) • x))=_; simp |
| 49 | |
| 50 | lemma known (T : Table L) (H : T.Hierarchy) (d : ℕ) : Injective (LinearMap.pi fun y : MeterTest T => zeroScale y H.smooth d) := by |
| 51 | intro u v he |
| 52 | apply T.field_ext H.laws.toSymmetric |
| 53 | intro n q x hx |
| 54 | let F (v : T.Field d) := disc (Fin.cons (α:=fun _ : Fin (n+1) => T.Tag) ⟨d,v⟩ q) |
| 55 | have hv (v) : ContinuousOn (F v) (conf _) := (smoothDisc H.smooth _).continuousOn |
| 56 | refine (Test.unique_kernel (hv u) (hv v)).1 (fun t => ?_) hx |
| 57 | let Y : MeterTest T := ⟨n,t,q⟩ |
| 58 | exact Eq.trans (Y.zeroScale_eq H.smooth _ _).symm ((congr_fun he Y).trans (Y.zeroScale_eq H.smooth _ _)) |
| 59 | |
| 60 | lemma detects (T : Table L) (H : T.Hierarchy) (d : ℕ) : |
| 61 | ∃ s : Finset (MeterTest T), Injective (LinearMap.pi (fun y : s => zeroScale y.val H.smooth d)) := |
| 62 | Work.A04.finite_faithful _ (known T H d) |
| 63 | |
| 64 | variable {U : ℕ → Panel S} {X : Zoom} |
| 65 | |
| 66 | def rescaled (H : S.Smooth) (U : Panel S) (y : MeterTest (Bel C.book)) (r : ℝ) (hr : 0<r) (d : ℕ) : |
| 67 | (Bel C.book).Field d →ₗ[ℂ] ℂ := |
| 68 | let z : MeterTest S := ⟨y.n,y.t,panels U ∘ y.q⟩ |
| 69 | (z.checkAt H d r hr).comp (U d) |
| 70 | |
| 71 | lemma rescaled_eval (H : S.Smooth) (U : Panel S) (y : MeterTest (Bel C.book)) {r : ℝ} (hr : 0<r) (d : ℕ) |
| 72 | (v : (Bel C.book).Field d) : rescaled H U y r hr d v = y.t.applyTo (tested r U (y.headTest d v)) := by |
| 73 | have he : panels U ∘ y.headTest d v = Fin.cons ⟨d,U d v⟩ (panels U ∘ y.q) := |
| 74 | Work.A01.comp_cons (panels U) ⟨d,v⟩ _ |
| 75 | unfold tested; simp_rw [he]; rfl |
| 76 | |
| 77 | lemma reads_limit (H : S.Smooth) (h : (Bel C.book).Smooth) (ht : Approaches X U) |
| 78 | (y : MeterTest (Bel C.book)) (d : ℕ) (v : (Bel C.book).Field d) : |
| 79 | Tendsto (fun k => rescaled H (U k) y (X.r k) (X.positive k) d v) atTop (𝓝 (zeroScale y h d v)) := by |
| 80 | let q := y.headTest d v |
| 81 | have he := (ht.values _ q).at_test y.t |>.add_const (zeroScale y h d v) |
| 82 | rw [zero_add] at he |
| 83 | refine he.congr fun k => ?_ |
| 84 | rw [rescaled_eval, test_sub (tested (X.r k) (U k) q) _ (smoothZoom H (panels (U k) ∘ q) (X.positive k)).continuousOn |
| 85 | (smoothDisc h _).continuousOn, zeroScale_eq] |
| 86 | exact sub_add_cancel _ _ |
| 87 | |
| 88 | lemma injects (H : S.Smooth) (h : (Bel C.book).Hierarchy) (ht : Approaches X U) (d : ℕ) : |
| 89 | ∀ᶠ k in atTop, Injective (U k d) := by |
| 90 | classical |
| 91 | obtain ⟨s,hs⟩ := detects (Bel C.book) h d |
| 92 | let F := fun k => LinearMap.pi (fun y : s => rescaled H (U k) y.val (X.r k) (X.positive k) d) |
| 93 | have he := Dash.fit_plane F (LinearMap.pi fun y : s => zeroScale y.val h.smooth d) |
| 94 | (fun v => tendsto_pi_nhds.mpr fun y => reads_limit H h.smooth ht _ d v) |
| 95 | have hp : ∀ᶠ k in atTop, Injective (LinearMap.toContinuousLinearMap (F k)) := |
| 96 | he.eventually (ContinuousLinearMap.isOpen_injective.mem_nhds (show _ ∈ setOf _ from hs)) |
| 97 | filter_upwards [hp] with k hk |
| 98 | intro a b h |
| 99 | apply hk |
| 100 | change F k a=F k b |
| 101 | funext y |
| 102 | change rescaled H (U k) y.val _ (X.positive k) _ _=rescaled H (U k) y.val _ (X.positive k) _ _ |
| 103 | simp only [rescaled,LinearMap.comp_apply,h] |
| 104 | end MeterTest |
| 105 | |
| 106 | /-- Only the numerical upper rank. Comes here from `RankWidths.span` (can |
| 107 | alternatively call prep before Seed via another proof of this upper bound). -/ |
| 108 | def DimAbove {L : Register G} (S : Table L) := ∀ d, Module.finrank ℂ (S.Field d) ≤ Module.finrank ℂ ((Bel L).Field d) |
| 109 | |
| 110 | lemma cap_given (H : Cells.RankWidths C F S) : DimAbove S := by |
| 111 | intro d |
| 112 | obtain ⟨X,Z,H⟩ := H d |
| 113 | obtain ⟨k,hk⟩ := H.span.exists |
| 114 | rw [show Module.finrank ℂ ((Bel C.book).Field d)= _ from Module.finrank_eq_card_basis X.basis] |
| 115 | exact finrank_le_of_span_eq_top hk |
| 116 | |
| 117 | variable {V : DiffPlan (Bel C.book)} {W : DiffPlan S} {H : S.Hierarchy} {a : (Bel C.book).Hierarchy} |
| 118 | |
| 119 | /-- Eventual coherence per degree. Allows spreading requirements for a Track |
| 120 | into how far to go along the path. -/ |
| 121 | structure Stable (H : S.RealSpin) (a : (Bel C.book).RealSpin) (W : DiffPlan S) (V : DiffPlan (Bel C.book)) |
| 122 | (X : Scaling S) : Prop where |
| 123 | hsym d : ∀ᶠ k in atTop, _root_.YM.Spin.realH H a (X.U k d) |
| 124 | rises (d e : ℕ) (h : d≤e) : ∀ᶠ k in atTop, ∀ v, X.U k e (V.rise h v)=W.rise h (X.U k d v) |
| 125 | units d : ∀ᶠ k in atTop,X.U k d ((Bel C.book).unit d)=S.unit d |
| 126 | |
| 127 | abbrev isoPanel (X : Scaling S) (k : ℕ) : Panel S := fun d => (X.U k d).toLinearMap |
| 128 | def path (X : Scaling S) : Zoom := ⟨X.r,X.positive,X.later,X.drips⟩ |
| 129 | |
| 130 | /-- First build the exact incl/H path from corrections. Not assumed in station |
| 131 | cost. `Scaling.xi` here does not yet do anything. -/ |
| 132 | theorem Stations.equivalences (H : S.Hierarchy) (h : F.Ordered C S) (a : (Bel C.book).Hierarchy) |
| 133 | (ht : Stations C F a.spin) (hW : W.Inclusions S) (hp : W.Orientation H.spin) |
| 134 | (hV : V.Inclusions (Bel C.book)) (hf : V.Orientation a.spin) (dim : DimAbove S) : |
| 135 | ∃ X : Scaling S, Approaches (path X) (isoPanel X) ∧ Stable H.spin a.spin W V X := by |
| 136 | classical |
| 137 | obtain ⟨x,U,hU,hy,ha⟩ := Stations.build_curve (H:=H) h a ht |
| 138 | choose R hR hb hr using fun d => signed_section (H:=a) (Nat.le_succ d) hV hf |
| 139 | let Q k := corrected W V R (U k) |
| 140 | have hu d := solid (H:=H) (a:=a) U hp hf R hb hr hU d |
| 141 | have ha : Approaches x Q := adjusts H a hW hV x R ha |
| 142 | have he d : ∀ᶠ k : ℕ in atTop, Bijective (Q k d) := by |
| 143 | filter_upwards [MeterTest.injects H.smooth a ha d] with k hk |
| 144 | exact ⟨hk,(LinearMap.injective_iff_surjective_of_finrank_eq_finrank |
| 145 | (le_antisymm (LinearMap.finrank_le_finrank_of_injective hk) (dim d))).1 hk⟩ |
| 146 | let M k d := if p : Bijective (Q k d) then LinearEquiv.ofBijective _ p else |
| 147 | LinearEquiv.ofBijective _ (he d).exists.choose_spec |
| 148 | let X : Scaling S := ⟨M,fun _ => 1,x.r,fun _ => one_pos,x.positive,x.shrinking,x.limits⟩ |
| 149 | have hX (d) : ∀ᶠ k in atTop, isoPanel X k d=Q k d := by |
| 150 | filter_upwards [he d] with k hk |
| 151 | dsimp only [isoPanel,X,M]; rw [dif_pos hk]; rfl |
| 152 | have hv (k d e : ℕ) (h : d≤e) z : Q k e (V.rise h z)=W.rise h (Q k d z) := |
| 153 | balanced H a _ hW hV R hR d e h z |
| 154 | refine ⟨X,⟨fun n v => ?_⟩,fun_kit hu hX hv ?_⟩ |
| 155 | · refine (ha.values n v).congr (fun k => (smoothZoom H.smooth _ (X.positive k)).sub (smoothDisc a.smooth v)) ?_ |
| 156 | filter_upwards [eventually_all.mpr (fun i : Fin n => hX (v i).1)] with k hk |
| 157 | intro y _; change tested _ _ _ _ - _ = tested _ _ _ _ - _ |
| 158 | unfold tested; rw [show (panels (Q k) ∘ v)=panels (isoPanel X k) ∘ v from funext (fun i => by |
| 159 | change Sigma.mk (v i).1 (Q k _ _) = Sigma.mk (v i).1 (isoPanel X k (v i).1 (v i).2) |
| 160 | rw [hk])]; rfl |
| 161 | intro k; simpa only [Q,corrected] using hy k |
| 162 | where |
| 163 | fun_kit {Q : ℕ → Panel S} {X : Scaling S} (hq : ∀ d, ∀ᶠ k in atTop, StraightAt H.spin a.spin (Q k) d) |
| 164 | (hX : ∀ d, ∀ᶠ k in atTop, isoPanel X k d=Q k d) |
| 165 | (hp : ∀ k d e : ℕ, ∀ h : d≤e,∀ z,Q k e (V.rise h z)=W.rise h (Q k d z)) |
| 166 | (hu : ∀ k,Q k 0 ((Bel C.book).unit 0)=S.unit 0) : Stable H.spin a.spin W V X := by |
| 167 | refine ⟨fun d => ?_,fun d e h => ?_,fun d => ?_⟩ |
| 168 | · filter_upwards [hX d,hq d] with k hk ht |
| 169 | constructor |
| 170 | · intro h x |
| 171 | change (isoPanel X k d) _= S.mirror _ _ _ ((isoPanel X k d) _) |
| 172 | rw [hk]; exact ht.reflects .. |
| 173 | intro x; change (isoPanel X k d) _= S.conj _ _ ((isoPanel X k d) _) |
| 174 | rw [hk]; exact ht.bars .. |
| 175 | · filter_upwards [hX d,hX e] with k hk he v |
| 176 | change (isoPanel X k e) _=W.rise h ((isoPanel X k d) _) |
| 177 | rw [he,hk,hp] |
| 178 | filter_upwards [hX d] with k hk |
| 179 | change (isoPanel X k d) _=_ |
| 180 | let h := Nat.zero_le d |
| 181 | rw [hk,← V.fixs hV a.laws h,hp,hu,W.fixs hW H.laws h] |
| 182 | end YM.Next.UVStress |