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.Phase.Detect |
| 2 | |
| 3 | |
| 4 | /-! |
| 5 | # Finite rescaling ranks in phase. Interface TEST on SAME project. No uniformity at |
| 6 | arity assumed. Detect hypotheses are full reflected expectations, not densities alone. |
| 7 | -/ |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | namespace YM.Extraction.Retain |
| 11 | open Function Set Filter MeasureTheory Measure |
| 12 | open Table Cells CellHyp OS Ground Wilson Word |
| 13 | open scoped Topology NNReal ENNReal InnerProductSpace BigOperators ContDiff |
| 14 | variable {G : Gauge} {C : Family G} {S D : Table C.book} {V : Chamber S timeAxis} {d : ℕ} {X : Columns C S d} |
| 15 | variable {f : Order} (Y : X.Trials) (Q : Y.Valid f) (P : Spread V) (a : P.Resolution) (H : Funds Y Q P) |
| 16 | |
| 17 | /-- Row tests on TARGET; compare any phase's actual lifts via scalar values. -/ |
| 18 | def probe' (k : ℕ) (i : Fin X.amount) : D.Field d →ₗ[ℂ] ℂ := |
| 19 | Ward.here (x := Y.realPlace k i) (q := Fin.cons ⟨d,(0:D.Field d)⟩ |
| 20 | (fun s => ⟨d,D.project _ (Y.later k ((X.row i).uses s))⟩)) 0 d |
| 21 | |
| 22 | lemma at_row (k : ℕ) (i) (x) : probe' (D := D) Y k i x = D.useAt D (Y.realPlace k i) |
| 23 | (Fin.cons ⟨d,x⟩ fun s => ⟨d,D.project _ (Y.later k ((X.row i).uses s))⟩) := by |
| 24 | unfold probe' |
| 25 | rw [Ward.takes]; unfold Ward.disc; congr 1 |
| 26 | funext j; refine Fin.cases ?_ (fun s => ?_) j <;> simp |
| 27 | |
| 28 | private def plot (i : Fin X.amount) : (standard C).Field d→ₗ[ℂ] ℂ := |
| 29 | Ward.here (q := Fin.cons ⟨d,(0:(standard C).Field d)⟩ (fun s => ⟨d,X.basis ((X.row i).uses s)⟩)) (X.row i).expected 0 _ |
| 30 | private lemma plott (i : Fin X.amount) (v) : plot i v=(X.row i).tests _ X.basis v := by |
| 31 | unfold plot; rw [Ward.takes]; unfold SampleRow.tests Ward.disc; congr 1 |
| 32 | ext1 s; refine Fin.cases ?_ (fun j => ?_) s <;> simp |
| 33 | |
| 34 | lemma ready (k i c) (hD : D.Symmetric) (hh : Y.realPlace k i ∈ conf _) : |
| 35 | probe' Y k i (D.project d (Y.later k c))= D.read (Y.realPlace k i) (fun s => token Y k i c s) := by |
| 36 | rw [at_row,← D.at_project D hD (fun _ => le_rfl) hh]; congr 1 |
| 37 | funext s; refine Fin.cases ?_ (fun u => ?_) s <;> simp [token, Columns.Trials.names, Table.classTokens] |
| 38 | |
| 39 | |
| 40 | |
| 41 | def testFns (i : Fin X.amount) (c : Fin (X.dim+1)) : Fin ((X.row i).extra+1) → (standard C).Tag := fun s => |
| 42 | ⟨d,X.basis (Columns.Trials.names (X := X) i c s)⟩ |
| 43 | |
| 44 | include Q in |
| 45 | lemma limits (i c) : Tendsto (fun k => (standard C).useAt (standard C) (Y.tested k i) (testFns (X := X) i c)) atTop |
| 46 | (𝓝 ((X.row i).tests (standard C) X.basis (X.basis c))) := by |
| 47 | let B := (standard C) |
| 48 | have hx : (X.row i).expected ∈ conf _ := generic_conf _ (X.row i).probes |
| 49 | have hp := ((B.class_smooth B (Maxwell.table_smooth C.labels) (testFns (X := X) i c)).continuousOn.continuousAt |
| 50 | ((conf_open _).mem_nhds hx)).tendsto.comp (Q.tuned i) |
| 51 | unfold SampleRow.tests |
| 52 | rw [show Fin.cons (α := fun _ => B.Tag) ⟨d,X.basis c⟩ (fun j => ⟨d,X.basis ((X.row i).uses j)⟩)=testFns (X := X) i c by |
| 53 | ext1 j; refine Fin.cases ?_ (fun l => ?_) j <;> simp [testFns, Columns.Trials.names]] |
| 54 | exact hp |
| 55 | |
| 56 | private lemma fOne {L : Register G} {S : Table L} (x : E4) (p : S.Tag) : S.expect [(x,Ward.expose p)] = |
| 57 | S.useAt S (points (fun _ : Fin 1 => x)) (fun _ => p) := by |
| 58 | exact S.readAt (fun _ : Fin 1 => Ward.expose p) (points (fun _ => x)) -- defeq list? |
| 59 | private lemma fTwo {L : Register G} {S : Table L} (x y : E4) (a b : S.Tag) : S.expect [(x,Ward.expose a),(y,Ward.expose b)] = |
| 60 | S.useAt S (points ![x,y]) ![a,b] := S.readAt (fun j => Ward.expose (![a,b] j)) (points ![x,y]) |
| 61 | include H |
| 62 | lemma result (hq : a.Out) {v} (h : a.receives D v) (hD : D.Symmetric) (i c) : Tendsto |
| 63 | (fun k => probe' Y k i (D.project d (Y.later k c))) atTop (𝓝 ((X.row i).tests (standard C) X.basis (X.basis c))) := by |
| 64 | have hc k : Y.realPlace k i∈ conf _ := generic_conf _ (Q.generic k i) |
| 65 | let F k := D.read (Y.realPlace k i) (fun s => token Y k i c s) |
| 66 | let U k := (standard C).useAt (standard C) (Y.tested k i) (testFns (X := X) i c) |
| 67 | have hp (k : ℕ) : F k= D.expect (List.ofFn fun s => plant Y k i c s) := (D.readAt _ _).symm |
| 68 | suffices he : Tendsto (fun k => F k-U k) atTop (𝓝 0) by |
| 69 | simp_rw [ready Y _ i c hD (hc _)] -- Q binder? |
| 70 | convert (he.add (limits Y Q i c)) using 1 |
| 71 | · funext k; exact (sub_add_cancel (F k) (U k)).symm |
| 72 | simp |
| 73 | apply tendsto_zero_iff_norm_tendsto_zero.mpr |
| 74 | -- at arity 1 can still use counts. padded extra slot. |
| 75 | have hu : ∀ k, U k=(standard C).expect (List.ofFn fun j => (Y.tested k i j, Ward.expose (testFns (X := X) i c j))) := |
| 76 | fun k => ((standard C).readAt (fun j => Ward.expose (testFns (X := X) i c j)) (Y.tested k i)).symm |
| 77 | rcases eq_or_ne (X.row i).extra 0 with he|he |
| 78 | · apply squeeze_zero (fun _ => norm_nonneg _) _ Y.small |
| 79 | intro k |
| 80 | have v0 {R : Type} (f : Fin ((X.row i).extra+1) → R) : List.ofFn f=[f 0] := by |
| 81 | rw [List.ofFn_succ]; congr; simp [he] |
| 82 | have hh : U k=Y.singleton k i c 0 := by |
| 83 | rw [hu,v0]; exact fOne (S := standard C) (Y.tested k i 0) (testFns (X := X) i c 0) |
| 84 | change ‖F k-U k‖ ≤ _ |
| 85 | rw [hp,v0,hh]; exact one_near Y Q P a H hq h _ _ _ _ |
| 86 | have he : (X.row i).extra=1 := by have := (X.row i).cap; omega |
| 87 | let b : Fin ((X.row i).extra) := ⟨0,by omega⟩ |
| 88 | let s := b.succ |
| 89 | let j (p : Fin ((X.row i).extra+1)) (k : ℕ) := Y.singleton k i c p |
| 90 | let g (k) := Y.gap k+(‖j 0 k‖+‖j s k‖)*Y.gap k |
| 91 | have ht (p) : ∃ C : ℂ,Tendsto (j p) atTop (𝓝 C) := by |
| 92 | let T (x : Points ((X.row i).extra+1)) := points fun _ : Fin 1 => x p |
| 93 | have hv : Continuous T := by unfold T points; fun_prop |
| 94 | let E := T (X.row i).expected |
| 95 | have hm : E ∈ conf _ := fun _ _ _ => @Subsingleton.elim (Fin 1) _ _ _ |
| 96 | refine ⟨_,(((standard C).class_smooth (standard C) (Maxwell.table_smooth _) (fun _ : Fin 1 => testFns (X := X) i c p)).continuousOn.continuousAt |
| 97 | ((conf_open _).mem_nhds hm)).tendsto.comp (hv.continuousAt.tendsto.comp (Q.tuned i))⟩ |
| 98 | have hg : Tendsto g atTop (𝓝 0) := by |
| 99 | obtain ⟨B,hb⟩ := ht 0; obtain ⟨G,hG⟩ := ht s |
| 100 | simpa only [mul_zero,add_zero] using Y.small.add (((hb.norm).add hG.norm).mul Y.small) |
| 101 | refine squeeze_zero (fun _ => norm_nonneg _) (fun k => ?_) hg |
| 102 | have hv2 {R : Type} (f : Fin ((X.row i).extra+1) → R) : List.ofFn f=[f 0,f s] := by |
| 103 | rw [List.ofFn_succ]; congr |
| 104 | apply nice _ b he |
| 105 | have hb : U k=free2 Y k i c 0 s := by |
| 106 | unfold free2 Columns.Trials.cumulant; rw [sub_add_cancel, hu,hv2]; exact fTwo (S := standard C) (Y.tested k i 0) (Y.tested k i s) _ _ |
| 107 | change ‖F k-U k‖ ≤ _; rw [hp,hv2,hb]; exact pair_near Y Q P a H hq h _ _ _ 0 s (by exact Fin.succ_pos b) |
| 108 | where nice {R : Type} {n : ℕ} (f : Fin (n+1) → R) (b : Fin n) (h : n=1) : List.ofFn (fun i => f i.succ)=[f b.succ] := by subst n; fin_cases b; rfl |
| 109 | |
| 110 | omit H in |
| 111 | private theorem converge {V E : Type*} [NormedAddCommGroup V] [NormedSpace ℂ V] [FiniteDimensional ℂ V] |
| 112 | [NormedAddCommGroup E] [NormedSpace ℂ E] [FiniteDimensional ℂ E] {i : Type*} [Fintype i] |
| 113 | (H : Module.Basis i ℂ V) (f : ℕ → V →L[ℂ] E) (F : V →L[ℂ] E) (h : ∀ i,Tendsto (fun k => f k (H i)) atTop (𝓝 (F (H i)))) : |
| 114 | Tendsto f atTop (𝓝 F) := by |
| 115 | let L : (i→E) →ₗ[ℂ] V →L[ℂ] E := { |
| 116 | toFun p := LinearMap.toContinuousLinearMap (H.constr ℂ p) |
| 117 | map_add' p q := by change LinearMap.toContinuousLinearMap (H.constr ℂ (p+q))=_; rw [map_add (H.constr ..), map_add] |
| 118 | map_smul' c p := by change LinearMap.toContinuousLinearMap (H.constr ℂ (c • p))=_; rw [map_smul (H.constr ..), map_smul];rfl } |
| 119 | have he (g : V →L[ℂ] E) : L (fun i => g (H i))=g := by |
| 120 | apply ContinuousLinearMap.coe_injective |
| 121 | exact H.ext (fun i => H.constr_basis ..) |
| 122 | have hL := L.continuous_of_finiteDimensional.continuousAt.tendsto.comp |
| 123 | (tendsto_pi_nhds.mpr (show ∀ b, Tendsto ((fun x : i→E => x b) ∘ fun k i => f k (H i)) atTop (𝓝 (F (H b))) from h)) -- likely notation |
| 124 | convert hL using 1 |
| 125 | · funext v; exact (he _).symm |
| 126 | · rw [he] |
| 127 | |
| 128 | theorem lift_detect (hi : a.Out) {v} (h : a.receives D v) (hD : D.Symmetric) (hp : D.respects S) : D.null d=S.null d := by |
| 129 | let U k := X.basis.constr ℂ fun i => Y.later k i |
| 130 | have he k : S.project d ∘ₗ U k= X.basis.constr ℂ fun i => S.project _ (Y.later k i) := X.basis.ext fun i => by simp [U] |
| 131 | let f (k : ℕ) : (standard C).Field d→L[ℂ] (Fin X.amount → ℂ) := LinearMap.toContinuousLinearMap |
| 132 | ((LinearMap.pi (probe' (D := D) Y k)).comp ((D.project d).comp (U k))) |
| 133 | let F : (standard C).Field d →L[ℂ] (Fin X.amount→ℂ) := LinearMap.toContinuousLinearMap (LinearMap.pi (plot (X := X))) |
| 134 | have hg k i j : f k (X.basis i) j=probe' Y k j (D.project d (Y.later k i)) := by simp [f,U] |
| 135 | have hh i : Tendsto (fun n => f n (X.basis i)) atTop (𝓝 (F (X.basis i))) := by |
| 136 | refine tendsto_pi_nhds.mpr fun j => ?_ |
| 137 | simp_rw [hg, show F (X.basis i) j=_ from plott j (X.basis i)] |
| 138 | exact result Y Q P a H hi h hD j i |
| 139 | have hx : Injective F := fun q p h => X.full (show _ from by |
| 140 | change (fun i => (X.row i).tests _ _ q)=fun i => (X.row i).tests _ _ p; simp_rw [← plott]; exact h) |
| 141 | obtain ⟨k,hk,Hk⟩ := (((converge X.basis _ _ hh).eventually (ContinuousLinearMap.isOpen_injective |
| 142 | |>.mem_nhds hx)).and Q.span).exists |
| 143 | change Injective (f k) at hk |
| 144 | suffices hv : Surjective (S.project d ∘ₗ U k) by |
| 145 | refine le_antisymm (fun i H' => ?_) (hp d) |
| 146 | obtain ⟨w,hw⟩ := hv (S.project _ i) |
| 147 | have ht : U k w - i ∈ D.null d := hp _ ((Submodule.Quotient.mk_eq_zero _).1 (show S.project d _=0 from |
| 148 | by rw [map_sub]; exact sub_eq_zero.mpr hw)) |
| 149 | have he := (D.null d).add_mem ht H' |
| 150 | rw [sub_add_cancel] at he |
| 151 | apply (Submodule.Quotient.mk_eq_zero _).mp |
| 152 | change S.project d _=_ |
| 153 | rw [← hw]; suffices w=0 by rw [this,map_zero] |
| 154 | apply hk; rw [map_zero] |
| 155 | change (LinearMap.pi (probe' Y k)) (D.project d (U k w))=0 |
| 156 | rw [show D.project d (U k w)=0 from (Submodule.Quotient.mk_eq_zero _).mpr he,map_zero] |
| 157 | apply LinearMap.range_eq_top.mp; rw [eq_top_iff,← Hk,Submodule.span_le]; rintro _ ⟨i,rfl⟩ |
| 158 | exact ⟨X.basis i,by simp [U]⟩ |
| 159 | end YM.Extraction.Retain |