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.Invert |
| 2 | import YM.Next.UV_STRESS.Local |
| 3 | |
| 4 | |
| 5 | /-! |
| 6 | # Comparison already in rescaled coordinates, any fixed compact on Conf |
| 7 | -/ |
| 8 | |
| 9 | set_option autoImplicit false |
| 10 | noncomputable section |
| 11 | namespace YM.Next.UVStress |
| 12 | open Set Function Filter MeasureTheory Analysis Extraction Table Ward Climb |
| 13 | open scoped Topology ContDiff BigOperators |
| 14 | variable {G : Gauge} {L : Register G} {T : Table L} {n : ℕ} {C : Family G} {S : Table C.book} {X : Scaling S} |
| 15 | variable {W : DiffPlan S} {V : DiffPlan (Bel C.book)} |
| 16 | |
| 17 | section Rows |
| 18 | |
| 19 | abbrev tiltScale (X : Scaling S) (W : DiffPlan S) (k d : ℕ) (a : Axis) := |
| 20 | X.r k • X.carry k (leaves W.deriv d a) |
| 21 | |
| 22 | lemma scaled_identity (H : S.Hierarchy) (h : W.Derivatives S) (X : Scaling S) (k : ℕ) (p : Fin n) |
| 23 | (v : Fin n → (Bel C.book).Tag) (a : Axis) {x : Points n} (hx : x∈conf n) : |
| 24 | Points.gradient p a (tested (X.r k) (isoPanel X k) v) x = |
| 25 | tested (X.r k) (isoPanel X k) (update v p ⟨(v p).1+1,tiltScale X W k (v p).1 a (v p).2⟩) x := by |
| 26 | let V := panels (isoPanel X k) |
| 27 | let y := X.r k • x |
| 28 | let d := (v p).1 |
| 29 | have he : y∈conf n := (enlarged (X.positive k) x).1 hx |
| 30 | have hv := cont_disc H (V ∘ v) he |
| 31 | let f := X.carry k (leaves W.deriv d a) (v p).2 |
| 32 | let j : (Bel C.book).Tag := ⟨d+1,X.r k • f⟩ |
| 33 | change Points.gradient p a (fun x => disc (V ∘ v) (X.r k • x)) _ = disc (V ∘ update v p j) y |
| 34 | rw [Work.A04.gradient_scaled _ _ _ (hv.differentiableAt (by simp))]; unfold Points.gradient |
| 35 | rw [Ward.fromD W H h he, Ward.born W] |
| 36 | have hz : V ∘ update v p j=update (V ∘ v) p (V j) := by |
| 37 | ext1 i; by_cases h:i=p |
| 38 | · subst i; simp |
| 39 | simp [h] |
| 40 | rw [hz] |
| 41 | have hF : X.U k (d+1) (X.r k • f) = X.r k • (W.deriv d a (X.U k d (v p).2)) := by |
| 42 | have ht := ((X.U k (d+1)).toLinearMap.restrictScalars ℝ).map_smul (X.r k) f |
| 43 | change X.U k (d+1) (X.r k • f) = X.r k • X.U k (d+1) f at ht |
| 44 | rw [ht]; congr 1; exact X.carries_f .. |
| 45 | change X.r k • disc (update (V ∘ v) p ⟨d+1,W.deriv d a (X.U k d (v p).2)⟩) y = |
| 46 | disc (update (V ∘ v) p ⟨d+1,X.U k (d+1) (X.r k • f)⟩) y |
| 47 | rw [hF,← takes,← takes]; symm |
| 48 | exact ((here (V ∘ v) y p (d+1)).restrictScalars ℝ).map_smul _ _ |
| 49 | |
| 50 | open MeterTest |
| 51 | |
| 52 | lemma head_tilt (H : S.Hierarchy) (hs : W.Derivatives S) (X : Scaling S) (d k : ℕ) |
| 53 | (a : Axis) (v : (Bel C.book).Field d) (y : MeterTest (Bel C.book)) : |
| 54 | rescaled H.smooth (isoPanel X k) y (X.r k) (X.positive k) (d+1) (tiltScale X W k d a v) = |
| 55 | - (Dash.down y.t 0 a).applyTo (tested (X.r k) (isoPanel X k) (y.headTest d v)) := by |
| 56 | let q := y.headTest d v |
| 57 | let f := tested (X.r k) (isoPanel X k) q |
| 58 | rw [rescaled_eval, ← Dash.compactTest (K:=f) (smoothZoom H.smooth _ (X.positive k)) y.t 0 a] |
| 59 | apply y.t.apply_eq |
| 60 | intro x hx; change _ = Points.gradient 0 a f x |
| 61 | rw [show Points.gradient 0 a f x = _ from scaled_identity H hs X k 0 q a hx] |
| 62 | have hp (w : (Bel C.book).Field (d+1)) : y.headTest (d+1) w = update q 0 (⟨d+1,w⟩ : (Bel C.book).Tag) := by |
| 63 | unfold headTest; simp [q,headTest] |
| 64 | rw [hp] |
| 65 | rfl |
| 66 | |
| 67 | lemma bend_limit (H : S.Hierarchy) (h : W.Derivatives S) (L : (Bel C.book).Hierarchy) (hp : V.Derivatives (Bel C.book)) |
| 68 | (X : Scaling S) (d : ℕ) (a : Axis) (ht : Approaches (path X) (isoPanel X)) : |
| 69 | Tendsto (fun k => tiltScale X W k d a) atTop (𝓝 (leaves V.deriv d a)) := by |
| 70 | classical |
| 71 | have he (y : MeterTest (Bel C.book)) (x : (Bel C.book).Field d) : |
| 72 | Tendsto (fun k => rescaled H.smooth (isoPanel X k) y (X.r k) (X.positive k) (d+1) (tiltScale X W k d a x)) atTop |
| 73 | (𝓝 (zeroScale y L.smooth _ (leaves V.deriv d a x))) := by |
| 74 | let z := {y with t:=Dash.down y.t 0 a} |
| 75 | simp_rw [head_tilt H h] |
| 76 | have hv := Tendsto.neg (reads_limit H.smooth L.smooth ht z d x) |
| 77 | simp_rw [rescaled_eval,zeroScale_eq] at hv |
| 78 | have ho : y.zeroScale L.smooth (d+1) (leaves V.deriv d a x)= -(z.t.applyTo (disc (z.headTest d x))) := by |
| 79 | rw [zeroScale_eq,show z.t=Dash.down y.t 0 a from rfl,← Dash.compactTest (smoothDisc L.smooth _) y.t 0 a] |
| 80 | apply y.t.apply_eq |
| 81 | intro i hi |
| 82 | exact hp.kernels d a x hi y.q |
| 83 | rw [ho]; exact hv |
| 84 | obtain ⟨s,hv⟩ := detects (Bel C.book) L (d+1) |
| 85 | suffices hz : Tendsto (fun k => LinearMap.toContinuousLinearMap (tiltScale X W k d a).toLinearMap) atTop |
| 86 | (𝓝 (LinearMap.toContinuousLinearMap (V.deriv d a))) by exact hz |
| 87 | apply Dash.fit_plane |
| 88 | intro v |
| 89 | refine Work.A04.tendsto_of_fitted (fun k => LinearMap.pi fun y : s => rescaled H.smooth (isoPanel X k) y.val |
| 90 | (X.r k) (X.positive k) (d+1)) _ hv ?_ ?_ |
| 91 | · exact fun x => tendsto_pi_nhds.mpr fun y => reads_limit H.smooth L.smooth ht y.val (d+1) x |
| 92 | exact tendsto_pi_nhds.mpr fun y => he y.val v |
| 93 | end Rows |
| 94 | |
| 95 | section moving |
| 96 | variable {t : Caps n} |
| 97 | abbrev Ribbon (T : Table L) {n : ℕ} (t : Caps n) := (i : Fin n) → T.Field (t i) |
| 98 | def hang {T : Table L} (t : Caps n) (w : Ribbon T t) (i : Fin n) : T.Tag := ⟨t i,w i⟩ |
| 99 | |
| 100 | lemma flowing (H : S.Hierarchy) (L : (Bel C.book).Hierarchy) (X : Scaling S) |
| 101 | (ht : Approaches (path X) (isoPanel X)) (v : ℕ → Ribbon (Bel C.book) t) (x : Ribbon (Bel C.book) t) |
| 102 | (hz : ∀ i, Tendsto (fun k => v k i) atTop (𝓝 (x i))) : |
| 103 | Fades (fun k => tested (X.r k) (isoPanel X k) (hang t (v k)) - disc (hang t x)) := by |
| 104 | let A (i) := (Bel C.book).Field (t i) |
| 105 | let R (b : Code A) (k : ℕ) := tested (X.r k) (isoPanel X k) (hang t (combination A b)) |
| 106 | let F (b : Code A) := disc (hang t (combination A b)) |
| 107 | let U (b : Code A) k := coords A b (v k) • (R b k - F b) |
| 108 | let D (b : Code A) k := (coords A b (v k)-coords A b x) • F b |
| 109 | refine ((Fades.sum U Finset.univ ?_).plus (Fades.sum D Finset.univ ?_)).congr ?_ (Eventually.of_forall (fun k y hy => ?_)) |
| 110 | · intro b _ |
| 111 | exact (ht.values n (hang t (combination A b))).times (tendsto_coords A b hz) |
| 112 | · intro b _ |
| 113 | have he := (tendsto_coords A b hz).sub_const (coords A b x) |
| 114 | rw [sub_self] at he |
| 115 | exact Fades.small_scalar (smoothDisc L.smooth _) he |
| 116 | · exact fun k => (smoothZoom H.smooth _ (X.positive k)).sub (smoothDisc L.smooth _) |
| 117 | let M := (S.classMoment S t (X.r k • y)).compLinearMap fun i => (X.U k (t i)).toLinearMap |
| 118 | let N := (Bel C.book).classMoment (Bel C.book) t y |
| 119 | change ((∑ b : Code A, U b)+(∑ b, D b)) k y = M (v k)-N x |
| 120 | have hu b : R b k y=M (combination A b) := rfl |
| 121 | have hv b : F b y=N (combination A b) := rfl |
| 122 | rw [basis_tuple A _ M,basis_tuple A _ N,← Finset.sum_sub_distrib] |
| 123 | simp only [Pi.add_apply, Finset.sum_apply, U, D, Pi.smul_apply, Pi.sub_apply,hu,hv, smul_eq_mul] |
| 124 | rw [← Finset.sum_add_distrib]; exact Finset.sum_congr rfl fun b _ => by ring |
| 125 | |
| 126 | -- Composing with position gradients stays in moving |
| 127 | |
| 128 | def Travels (n : ℕ) (X : Scaling S) (K : ℕ→Points n→ℂ) : Prop := |
| 129 | ∃ (t : Caps n) (v : ℕ → Ribbon (Bel C.book) t) (x : Ribbon (Bel C.book) t), |
| 130 | (∀ i, Tendsto (fun k => v k i) atTop (𝓝 (x i))) ∧ |
| 131 | K = fun k => tested (X.r k) (isoPanel X k) (hang t (v k)) - disc (hang t x) |
| 132 | |
| 133 | /-- Update a tuple without switching the type of the companion positions. -/ |
| 134 | def updated (i : Fin n) (e : ℕ) (v : Ribbon T t) (x : T.Field e) : Ribbon T (update t i e) := fun j => |
| 135 | if h : j=i then by rw [h,update_self]; exact x else by rw [update_of_ne h]; exact v j |
| 136 | |
| 137 | lemma hangs (i : Fin n) (e : ℕ) (v : Ribbon T t) (x : T.Field e) : hang (update t i e) (updated i e v x) = |
| 138 | update (hang t v) i ⟨e,x⟩ := by |
| 139 | ext1 j; by_cases h : j=i |
| 140 | · subst j; simp [hang,updated] |
| 141 | simp [hang,updated,h] |
| 142 | |
| 143 | lemma tendsto_updated (i : Fin n) (e : ℕ) {v : ℕ → Ribbon T t} {x : Ribbon T t} |
| 144 | (ht : ∀ i, Tendsto (fun k => v k i) atTop (𝓝 (x i))) |
| 145 | {w : ℕ → T.Field e} {y : T.Field e} (hw : Tendsto w atTop (𝓝 y)) : |
| 146 | ∀ j, Tendsto (fun k => updated i e (v k) (w k) j) atTop (𝓝 (updated i e x y j)) := by |
| 147 | have he (d l : ℕ) (h : d=l) (f : ℕ → T.Field d) (b : T.Field d) (hc : Tendsto f atTop (𝓝 b)) : |
| 148 | Tendsto (fun k => _root_.cast (congr_arg (T.Field ·) h) (f k)) atTop |
| 149 | (𝓝 (_root_.cast (congr_arg (T.Field ·) h) b)) := by |
| 150 | subst l; exact hc |
| 151 | intro j; by_cases h : j=i |
| 152 | · subst j; dsimp [updated]; simp |
| 153 | exact he e (update t i e i) (by simp) _ _ hw |
| 154 | simp only [updated,dif_neg h] |
| 155 | -- casts, proof irrelevance after simplification |
| 156 | exact he (t j) (update t i e j) (update_of_ne h .. |>.symm) _ _ (ht j) |
| 157 | |
| 158 | lemma closed_path (H : S.Hierarchy) (h : W.Derivatives S) (L : (Bel C.book).Hierarchy) (hp : V.Derivatives (Bel C.book)) |
| 159 | (X : Scaling S) (ht : Approaches (path X) (isoPanel X)) (n : ℕ) : GradientFamily (Travels n X) where |
| 160 | entry K hk := by |
| 161 | obtain ⟨t,v,x,hv,rfl⟩ := hk; exact flowing H L X ht _ _ hv |
| 162 | step K hk p a := by |
| 163 | obtain ⟨t,v,x,hv,rfl⟩ := hk |
| 164 | let d := t p |
| 165 | let T := update t p (d+1) |
| 166 | let w (k : ℕ) := updated p (d+1) (v k) (tiltScale X W k d a (v k p)) |
| 167 | let y := updated p (d+1) x (V.deriv d a (x p)) |
| 168 | have hy : ∀ j, Tendsto (fun k => w k j) atTop (𝓝 (y j)) := |
| 169 | tendsto_updated p (d+1) hv (Dash.arcing (bend_limit H h L hp X d a ht) (hv p)) |
| 170 | refine ⟨_,⟨T,w,y,hy,rfl⟩,Eventually.of_forall (fun k z hz => ?_)⟩ |
| 171 | dsimp only [T,w,y]; simp only [hangs] |
| 172 | -- kernel difference after updating p |
| 173 | let Wf := tested (X.r k) (isoPanel X k) (hang t (v k)) |
| 174 | let Vf := disc (hang t x) |
| 175 | have hh : DifferentiableAt ℝ Wf z := |
| 176 | (((smoothZoom H.smooth _ (X.positive k)) _ hz).contDiffAt ((conf_open _).mem_nhds hz)).differentiableAt (by simp) |
| 177 | have hf := (cont_disc L (hang t x) hz).differentiableAt (by simp) |
| 178 | change fderiv ℝ (Wf - Vf) z (Points.direction p a) = _ |
| 179 | rw [fderiv_sub hh hf, _root_.sub_apply] |
| 180 | change Points.gradient p a _ _ - Analysis.D _ (disc _) _ = _ |
| 181 | rw [scaled_identity H h X k p (hang t (v k)) a hz, Ward.fromD V L hp hz p a]; rfl |
| 182 | |
| 183 | lemma travels_jet (H : S.Hierarchy) (h : W.Derivatives S) (L : (Bel C.book).Hierarchy) (hp : V.Derivatives (Bel C.book)) |
| 184 | (X : Scaling S) (ht : Approaches (path X) (isoPanel X)) (v : ℕ → Ribbon (Bel C.book) t) (x : Ribbon (Bel C.book) t) |
| 185 | (hv : ∀ i, Tendsto (fun k => v k i) atTop (𝓝 (x i))) |
| 186 | (j : ℕ) (s : Set (Points n)) (hs : IsCompact s) (hu : s ⊆ conf n) (ε : ℝ) (he : 0<ε) : |
| 187 | ∀ᶠ k in atTop, ∀ y∈s, |
| 188 | ‖iteratedFDeriv ℝ j (tested (X.r k) (isoPanel X k) (hang t (v k))) y - iteratedFDeriv ℝ j (disc (hang t x)) y‖ ≤ ε := by |
| 189 | filter_upwards [(closed_path H h L hp X ht n).jets (show Travels n X _ from ⟨t,v,x,hv,rfl⟩) s hs hu j he] with k hk y hy |
| 190 | specialize hk y hy |
| 191 | -- symmetry/derivative closure is inside conf |
| 192 | have hh := ((smoothZoom H.smooth (panels (isoPanel X k) ∘ (hang t (v k))) (X.positive k)) _ (hu hy)).contDiffAt |
| 193 | ((conf_open _).mem_nhds (hu hy)) |
| 194 | have hF := cont_disc L (hang t x) (hu hy) |
| 195 | rw [← iteratedFDeriv_sub_apply (show ContDiffAt ℝ (j : WithTop ℕ∞) (tested (X.r k) (isoPanel X k) (hang t (v k))) y from |
| 196 | hh.of_le (WithTop.coe_le_coe.mpr le_top)) (hF.of_le (WithTop.coe_le_coe.mpr le_top))]; exact hk |
| 197 | |
| 198 | lemma window_closed (R : ℝ) (n : ℕ) : IsCompact (Scaling.window R n) := by |
| 199 | have he : IsClosed {x : Points n | spaced R⁻¹ x} := by |
| 200 | rw [show {x : Points n|spaced R⁻¹ x} = ⋂ i : Fin n, ⋂ j : Fin n, ⋂ _ : i≠j, |
| 201 | {x : Points n | R⁻¹ ≤ cubedist (x i) (x j)} from by ext; simp [spaced]] |
| 202 | exact isClosed_iInter fun i => isClosed_iInter fun j => isClosed_iInter fun h => isClosed_le continuous_const |
| 203 | (continuous_cubedist.comp (show Continuous (fun x : Points n => (x i,x j)) by fun_prop)) |
| 204 | rw [Scaling.window,show {x : Points n|spaced R⁻¹ x ∧ ‖x‖ ≤ R} = Metric.closedBall 0 R ∩ {x | spaced R⁻¹ x} from |
| 205 | Set.ext (fun x => by simp [and_comm])] |
| 206 | exact (isCompact_closedBall (0 : Points n) R).inter_right he |
| 207 | |
| 208 | lemma comparison_jets (H : S.Hierarchy) (h : W.Derivatives S) (L : (Bel C.book).Hierarchy) (hp : V.Derivatives (Bel C.book)) |
| 209 | (X : Scaling S) (ht : Approaches (path X) (isoPanel X)) (N d m : ℕ) (R : ℝ) (hr : 0<R) : X.jets N d m R := by |
| 210 | intro n _ j _ v hv ε he |
| 211 | exact travels_jet H h L hp X ht (t:=fun i => (v i).1) (fun _ i => (v i).2) (fun i => (v i).2) |
| 212 | (fun _ => tendsto_const_nhds) j _ (window_closed ..) (fun _ h => spaced_conf (inv_pos.mpr hr) h.1) ε he |
| 213 | end moving |
| 214 | end YM.Next.UVStress |