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.Calculus.ContDiff.RestrictScalars |
| 2 | import Mathlib.LinearAlgebra.PiTensorProduct.Generators |
| 3 | import YM.Analysis.Polydisc |
| 4 | import YM.Bid.Tar |
| 5 | |
| 6 | |
| 7 | |
| 8 | /-! |
| 9 | # Identifying the two `NearPair.Panes` germs at a Euclidean point |
| 10 | |
| 11 | Read each pane on a totally real slice (real space and PURE IMAGINARY time, |
| 12 | including variations of those imaginary times). On *different open subsets* |
| 13 | of that slice they evaluate the same off-coincidence smooth function. This |
| 14 | gives ALL-order jet agreement on the slice at the point in question. Upgrade |
| 15 | to full germ agreement by complex analyticity. |
| 16 | |
| 17 | No need for the spin, how the panes were built, obtaining causal frequency |
| 18 | support, or realizing/testing the partial distributions from the germs here. |
| 19 | -/ |
| 20 | |
| 21 | set_option autoImplicit false |
| 22 | noncomputable section |
| 23 | namespace YM.Work.C20 |
| 24 | open Function Set Filter Metric Complex Boundary |
| 25 | open scoped Topology ContDiff ENNReal |
| 26 | |
| 27 | section analytic |
| 28 | |
| 29 | variable {E V : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 30 | [NormedAddCommGroup V] [NormedSpace ℝ V] [NormedSpace ℂ V] [IsScalarTower ℝ ℂ V] |
| 31 | |
| 32 | /-- Agreement just on the open side is enough to identify any derivatives |
| 33 | which are continuous up to the point (here packaged with `ContDiffAt`). -/ |
| 34 | theorem jets_on_open_side {p : E} {U : Set E} {f g : E → ℂ} (hu : IsOpen U) |
| 35 | (hp : (𝓝[U] p).NeBot) (h : f =ᶠ[𝓝[U] p] g) (m : ℕ) |
| 36 | (hf : ContDiffAt ℝ m f p) (hg : ContDiffAt ℝ m g p) : |
| 37 | iteratedFDeriv ℝ m f p = iteratedFDeriv ℝ m g p := by |
| 38 | have heq : iteratedFDeriv ℝ m f =ᶠ[𝓝[U] p] iteratedFDeriv ℝ m g := by |
| 39 | filter_upwards [self_mem_nhdsWithin, eventually_eventually_nhdsWithin.2 h] with y hy hs |
| 40 | have h' : f =ᶠ[𝓝[U] y] g := hs |
| 41 | rw [hu.nhdsWithin_eq hy] at h' |
| 42 | exact (h'.iteratedFDeriv ℝ m).eq_of_nhds |
| 43 | exact tendsto_nhds_unique_of_eventuallyEq |
| 44 | ((hf.continuousAt_iteratedFDeriv le_rfl).tendsto.mono_left nhdsWithin_le_nhds) |
| 45 | ((hg.continuousAt_iteratedFDeriv le_rfl).tendsto.mono_left nhdsWithin_le_nhds) |
| 46 | heq |
| 47 | |
| 48 | /-- The real jets on the slice are just restrictions of the complex jets. -/ |
| 49 | theorem pullback_jet {M : E →L[ℝ] V} {p : E} {f : V → ℂ} {m : ℕ} |
| 50 | (hf : ContDiffAt ℂ m f (M p)) (u : Fin m → E) : |
| 51 | iteratedFDeriv ℝ m (f ∘ M) p u = iteratedFDeriv ℂ m f (M p) (fun i => M (u i)) := by |
| 52 | -- Get an open set to apply the within-version of composition on the right. |
| 53 | obtain ⟨r, hr, hball⟩ := Metric.mem_nhds_iff.mp ((hf.restrict_scalars ℝ).eventually (by simp)) |
| 54 | have ho : IsOpen (M ⁻¹' ball (M p) r) := isOpen_ball.preimage M.continuous |
| 55 | have huz : M p ∈ ball (M p) r := mem_ball_self hr |
| 56 | have hu : ContDiffOn ℝ m f (ball (M p) r) := fun y hy => |
| 57 | (show ContDiffAt ℝ m f y from hball hy).contDiffWithinAt |
| 58 | have h := M.iteratedFDerivWithin_comp_right hu isOpen_ball.uniqueDiffOn ho.uniqueDiffOn huz le_rfl |
| 59 | rw [iteratedFDerivWithin_of_isOpen m ho (show p ∈ M ⁻¹' ball (M p) r from huz), |
| 60 | iteratedFDerivWithin_of_isOpen m isOpen_ball huz, |
| 61 | ← hf.restrictScalars_iteratedFDeriv (𝕜 := ℝ)] at h |
| 62 | rw [h] |
| 63 | rfl |
| 64 | |
| 65 | /-- Germ equality from all real jets of a real-linear pullback whose image |
| 66 | spans the complex space. -/ |
| 67 | theorem complex_germ {M : E →L[ℝ] V} {p : E} {f g : V → ℂ} |
| 68 | (hf : AnalyticAt ℂ f (M p)) (hg : AnalyticAt ℂ g (M p)) |
| 69 | (hspan : Submodule.span ℂ (range M) = ⊤) |
| 70 | (hjet : ∀ m, iteratedFDeriv ℝ m (f ∘ M) p = iteratedFDeriv ℝ m (g ∘ M) p) : |
| 71 | f =ᶠ[𝓝 (M p)] g := by |
| 72 | have hall (m : ℕ) : iteratedFDeriv ℂ m f (M p) = iteratedFDeriv ℂ m g (M p) := by |
| 73 | apply ContinuousMultilinearMap.toMultilinearMap_injective |
| 74 | apply MultilinearMap.ext_of_span_eq_top (γ := fun _ : Fin m => E) |
| 75 | (g := fun {_} (x : E) => M x) (fun _ => hspan) |
| 76 | intro u |
| 77 | change iteratedFDeriv ℂ m f (M p) (fun i => M (u i)) = iteratedFDeriv ℂ m g (M p) (fun i => M (u i)) |
| 78 | rw [← pullback_jet hf.contDiffAt u, ← pullback_jet hg.contDiffAt u, hjet m] |
| 79 | obtain ⟨a, r, hr⟩ := hf |
| 80 | obtain ⟨b, s, hs⟩ := hg |
| 81 | filter_upwards [eball_mem_nhds (M p) hr.r_pos, eball_mem_nhds (M p) hs.r_pos] with y hy hz |
| 82 | have he := hr.hasSum_iteratedFDeriv (y := y-M p) (by |
| 83 | rw [mem_eball, ← edist_sub_right y (M p) (M p), sub_self] at hy; exact hy) |
| 84 | have hx := hs.hasSum_iteratedFDeriv (y := y-M p) (by |
| 85 | rw [mem_eball, ← edist_sub_right y (M p) (M p), sub_self] at hz; exact hz) |
| 86 | simp_rw [hall] at he |
| 87 | simpa using he.unique hx |
| 88 | |
| 89 | end analytic |
| 90 | |
| 91 | variable {n : ℕ} |
| 92 | |
| 93 | /-- `space -> space` (real), `time -> I*time`, in absolute coordinates. -/ |
| 94 | def wickSlice (n : ℕ) : Points n →L[ℝ] Full n := LinearMap.toContinuousLinearMap |
| 95 | { toFun := fun x : Points n => WithLp.toLp 2 fun i : Fin n × Axis => |
| 96 | (x i.1 i.2 : ℂ) * if i.2 = timeAxis then I else 1 |
| 97 | map_add' := by intro x y; ext1 i; by_cases h : i.2 = timeAxis <;> simp [h, add_mul] |
| 98 | map_smul' := by intro c x; ext1 i; simp [mul_assoc, Complex.real_smul] } |
| 99 | |
| 100 | theorem wick_apply (x : Points n) (i : Fin n × Axis) : |
| 101 | wickSlice n x i = (x i.1 i.2 : ℂ) * if i.2 = timeAxis then I else 1 := rfl |
| 102 | |
| 103 | theorem wick_span (n : ℕ) : Submodule.span ℂ (range (wickSlice n)) = ⊤ := by |
| 104 | apply top_unique |
| 105 | intro z _ |
| 106 | -- z = slice u + I * slice v |
| 107 | let u : Points n := points fun i => WithLp.toLp 2 fun a => |
| 108 | if a = timeAxis then (z (i,a)).im else (z (i,a)).re |
| 109 | let v : Points n := points fun i => WithLp.toLp 2 fun a => |
| 110 | if a = timeAxis then -(z (i,a)).re else (z (i,a)).im |
| 111 | have he : wickSlice n u + I • wickSlice n v = z := by |
| 112 | ext1 i |
| 113 | obtain ⟨i,a⟩ := i |
| 114 | apply Complex.ext <;> by_cases h : a = timeAxis <;> simp [wick_apply, u, v, h] |
| 115 | rw [← he] |
| 116 | exact Submodule.add_mem _ (Submodule.subset_span (mem_range_self _)) |
| 117 | (Submodule.smul_mem _ _ (Submodule.subset_span (mem_range_self _))) |
| 118 | |
| 119 | /-- Euclidean heights, not Minkowski times of the pane's base. -/ |
| 120 | def readings (q : Points n) : Heights n := fun i => time (q i) |
| 121 | |
| 122 | theorem place_same (q : Points n) : place (Boundary.trace q) (readings q) = q := by |
| 123 | ext1 i |
| 124 | simp [place, Boundary.trace, readings] |
| 125 | |
| 126 | theorem wick_glow (q : Points n) : wickSlice n q = |
| 127 | glow (place (Boundary.trace q) 0) (dawn (readings q)) := by |
| 128 | ext1 i |
| 129 | obtain ⟨i,a⟩ := i |
| 130 | refine Fin.lastCases ?_ (fun k => ?_) a |
| 131 | · rw [wick_apply]; change _ * (if timeAxis = timeAxis then I else 1) = |
| 132 | (time (place (Boundary.trace q) 0 i) : ℂ) + (time (dawn (readings q) i) : ℂ)*I |
| 133 | simp [place, dawn, readings]; rfl |
| 134 | · simp [wick_apply, glow, dawn, Boundary.trace, spatial, place, position, readings, time] |
| 135 | |
| 136 | theorem wick_name (X : NearPair n) (q : Points n) : X.name (wickSlice n q) = wickSlice n (X.switch q) := by |
| 137 | unfold NearPair.name |
| 138 | rw [wick_glow, re_glow, im_glow, wick_glow] |
| 139 | rfl |
| 140 | |
| 141 | theorem readings_place (t : SpacePoints n) (y : Heights n) : readings (place t y) = y := by |
| 142 | funext i |
| 143 | simp [readings, place] |
| 144 | |
| 145 | def ordered (n : ℕ) : Set (Points n) := readings ⁻¹' east n |
| 146 | |
| 147 | theorem ordered_open (n : ℕ) : IsOpen (ordered n) := |
| 148 | (open_east n).preimage (show Continuous (@readings n) by unfold readings; fun_prop) |
| 149 | |
| 150 | theorem wick_tube : MapsTo (wickSlice n) (ordered n) (tube n) := by |
| 151 | intro u hu |
| 152 | have hv : readings u ∈ east n := hu |
| 153 | rw [wick_glow] |
| 154 | change shade _ ∈ fields n |
| 155 | rw [im_glow]; exact etched hv |
| 156 | |
| 157 | /-- There really are ordered Euclidean configurations approaching. -/ |
| 158 | theorem ordered_neBot {q : Points n} (h : readings q ∈ sunrise n) : |
| 159 | (𝓝[ordered n] q).NeBot := by |
| 160 | have hn : (𝓝[east n] (readings q)).NeBot := awaits h |
| 161 | have he : Tendsto (place (Boundary.trace q)) (𝓝[east n] (readings q)) (𝓝[ordered n] q) := by |
| 162 | rw [tendsto_nhdsWithin_iff] |
| 163 | refine ⟨?_, ?_⟩ |
| 164 | · have hc : Continuous (place (Boundary.trace q)) := by |
| 165 | change Continuous (fun t : Heights n => WithLp.toLp 2 (fun i => Mink.divide.symm (_,t i))) |
| 166 | fun_prop |
| 167 | simpa only [place_same] using (hc.tendsto (readings q)).mono_left |
| 168 | (nhdsWithin_le_nhds (s := east n)) |
| 169 | · filter_upwards [self_mem_nhdsWithin] with y hy |
| 170 | exact (show readings _ ∈ east n from readings_place (Boundary.trace q) y |>.symm ▸ hy) |
| 171 | exact he.neBot |
| 172 | |
| 173 | theorem switch_neBot (X : NearPair n) {q : Points n} (h : readings (X.switch q) ∈ sunrise n) : |
| 174 | (𝓝[X.switch ⁻¹' ordered n] q).NeBot := by |
| 175 | have hn := ordered_neBot h |
| 176 | have he : Tendsto X.switch.symm (𝓝[ordered n] (X.switch q)) (𝓝[X.switch ⁻¹' ordered n] q) := by |
| 177 | rw [tendsto_nhdsWithin_iff] |
| 178 | refine ⟨?_, ?_⟩ |
| 179 | · simpa using (X.switch.symm.continuous.tendsto (X.switch q)).mono_left |
| 180 | (nhdsWithin_le_nhds (s := ordered n)) |
| 181 | · filter_upwards [self_mem_nhdsWithin] with y hy |
| 182 | simpa using hy |
| 183 | exact he.neBot |
| 184 | |
| 185 | theorem before_east {y : Heights n} {X : NearPair n} (h : X.spectator y) : y ∈ sunrise n := by |
| 186 | intro a b hab |
| 187 | rcases lt_or_eq_of_le hab with hl|hl |
| 188 | · by_cases hij : a ≠ X.i ∨ b ≠ X.j |
| 189 | · exact (h.2 a b hl hij).le |
| 190 | push Not at hij |
| 191 | rw [hij.1, hij.2, h.1] |
| 192 | exact (congr_arg y hl).le |
| 193 | |
| 194 | theorem same_height {y : Heights n} {X : NearPair n} (h : y X.i = y X.j) (s : SpacePoints n) : |
| 195 | readings (X.switch (place s y)) = y := by |
| 196 | funext i |
| 197 | rw [readings, NearPair.switch_at]; simp only [place, points_apply, time_position] |
| 198 | by_cases hi : i = X.i |
| 199 | · simp [hi, NearPair.s, h] |
| 200 | by_cases hj : i = X.j |
| 201 | · simp [hj, NearPair.s, h] |
| 202 | rw [NearPair.s, Equiv.swap_apply_of_ne_of_ne hi hj] |
| 203 | |
| 204 | /-- The Euclidean point in question is not on any collision diagonal. -/ |
| 205 | theorem euclid_conf {y : Heights n} {X : NearPair n} (h : X.spectator y) {x : Points n} (hx : x ∈ X.gap) : |
| 206 | place (Boundary.trace x) y ∈ conf n := by |
| 207 | have hw : spatial (x X.i) ≠ spatial (x X.j) := by |
| 208 | intro hh |
| 209 | rw [NearPair.gap, Set.mem_setOf, Mink.lateral, sub_eq_add_neg, Mink.rest_add, Mink.rest_neg, hh] at hx |
| 210 | simp at hx |
| 211 | exact (abs_nonneg _).not_gt hx |
| 212 | let q := place (Boundary.trace x) y |
| 213 | have he (i j : Fin n) (hlt : i < j) : q i ≠ q j := by |
| 214 | intro hh |
| 215 | by_cases hij : i ≠ X.i ∨ j ≠ X.j |
| 216 | · have hs := congr_arg time hh |
| 217 | simp only [q, place, points_apply, time_position] at hs |
| 218 | exact (h.2 i j hlt hij).ne hs |
| 219 | push Not at hij |
| 220 | rw [hij.1, hij.2] at hh |
| 221 | have hs := congr_arg spatial hh |
| 222 | exact hw (by simpa [q, place, Boundary.trace] using hs) |
| 223 | intro i j hij |
| 224 | by_contra H |
| 225 | exact (lt_or_gt_of_ne H).elim (fun hi => he i j hi hij) (fun hi => he j i hi hij.symm) |
| 226 | |
| 227 | variable {G : Gauge} {L : Register G} {S T : Table L} {F : Waves S} |
| 228 | {Y : Surface S} {D : ∀ i, Blanket i} {Z : Y.Aurora D} |
| 229 | |
| 230 | theorem emit_table (ht : T.Symmetric) (hr : T.respects S) (hR : F.Region T) (hF : Z.FullBody F) |
| 231 | (w : Fin n → L.Token) {q : Points n} (h : q ∈ ordered n) : |
| 232 | Z.emit (fun i => S.pin (w i).1 (S.project _ (w i).2)) (wickSlice n q) = T.read q w := by |
| 233 | let t := Boundary.trace q |
| 234 | have hy : readings q ∈ east n := h |
| 235 | have hspace : Boundary.trace (place t 0) = t := by funext i; simp [Boundary.trace, place, t] |
| 236 | have htime : shift (place t 0) (readings q) = (fun i => (time (q i) : ℂ)*I) := by |
| 237 | funext i |
| 238 | simp [shift, readings, place] |
| 239 | rw [wick_glow, hF.pure n _ _ _ hy, Waves.restricted, htime, hspace] |
| 240 | exact F.root_raw ht hr hR w q hy |
| 241 | |
| 242 | theorem answer : YM.Bid.C20 := by |
| 243 | intro G L S T P F Y D Z hs hi ht hh hr hR hF n v y X A x hx hz |
| 244 | let p := place (Boundary.trace x) y |
| 245 | let M := wickSlice n |
| 246 | let f := (A.original x hx).extendF |
| 247 | let g := (A.tilted x hx).extendF |
| 248 | have hy : X.spectator y := A.permitted.willing |
| 249 | have hup : readings p = y := readings_place .. |
| 250 | have hvp : readings (X.switch p) = y := same_height hy.1 _ |
| 251 | have hp := euclid_conf hy hx |
| 252 | have hspace : Boundary.trace p = Boundary.trace x := by funext i; simp [Boundary.trace, p, place] |
| 253 | have hx0 : readings x = 0 := funext hz |
| 254 | have hM : M p = glow x (dawn y) := by |
| 255 | unfold M |
| 256 | rw [wick_glow, hup, hspace, ← hx0, place_same] |
| 257 | change f =ᶠ[𝓝 _] g |
| 258 | have ha : AnalyticAt ℂ f (M p) := hM.symm ▸ (A.original x hx).doc |
| 259 | have hb : AnalyticAt ℂ g (M p) := hM.symm ▸ (A.tilted x hx).doc |
| 260 | |
| 261 | -- Lift actual Union labels only once (including in both orientations). |
| 262 | obtain ⟨d, b, hv⟩ := P.joint hs hi v |
| 263 | choose l hl using fun i => S.onto d (b i) |
| 264 | let w : Fin n → L.Token := fun i => ⟨d, l i⟩ |
| 265 | have hw : v = fun i => S.pin (w i).1 (S.project _ (w i).2) := by |
| 266 | funext i |
| 267 | exact (congr_fun hv i).trans (congr_arg (S.pin d) (hl i).symm) |
| 268 | let C := fun x => T.read x w |
| 269 | have hC : ContDiffAt ℝ ∞ C p := (T.smooth_read hh w).contDiffAt ((conf_open n).mem_nhds hp) |
| 270 | |
| 271 | have hu : Tendsto M (𝓝[ordered n] p) (𝓝[tube n] (glow x (dawn y))) := by |
| 272 | rw [← hM] |
| 273 | exact M.continuous.continuousWithinAt.tendsto_nhdsWithin wick_tube |
| 274 | have heq : f ∘ M =ᶠ[𝓝[ordered n] p] C := by |
| 275 | have hf : f ∘ M =ᶠ[𝓝[ordered n] p] Z.emit v ∘ M := hu.eventually (A.original x hx |>.fits) |
| 276 | refine hf.trans ?_ |
| 277 | rw [hw] |
| 278 | filter_upwards [self_mem_nhdsWithin] with i hi using emit_table ht hr hR hF w hi |
| 279 | |
| 280 | let V : Set (Points n) := X.switch ⁻¹' ordered n |
| 281 | have hu' : Tendsto M (𝓝[V] p) (𝓝[X.name ⁻¹' tube n] (glow x (dawn y))) := by |
| 282 | rw [← hM] |
| 283 | refine M.continuous.continuousWithinAt.tendsto_nhdsWithin fun u hu => ?_ |
| 284 | change X.name (wickSlice n u) ∈ tube n |
| 285 | rw [wick_name]; exact wick_tube (show X.switch u ∈ ordered n from hu) |
| 286 | have heq' : g ∘ M =ᶠ[𝓝[V] p] C := by |
| 287 | have hg : g ∘ M =ᶠ[𝓝[V] p] ((Z.emit (v ∘ X.s)) ∘ X.name) ∘ M := |
| 288 | hu'.eventually (A.tilted x hx |>.fits) |
| 289 | refine hg.trans ?_ |
| 290 | rw [hw] |
| 291 | have hn : ∀ᶠ u in 𝓝[V] p, u ∈ conf n := |
| 292 | Eventually.filter_mono nhdsWithin_le_nhds ((conf_open n).mem_nhds hp) |
| 293 | filter_upwards [self_mem_nhdsWithin, hn] with u hu hc |
| 294 | simp only [Function.comp_apply, M, wick_name] |
| 295 | exact (emit_table ht hr hR hF (w ∘ X.s) (show X.switch u ∈ ordered n from hu)).trans |
| 296 | (ht.same X.s hc w) |
| 297 | |
| 298 | rw [← hM] |
| 299 | refine complex_germ ha hb (wick_span n) fun m => ?_ |
| 300 | have hm : ContDiffAt ℝ m C p := hC.of_le (WithTop.coe_le_coe.mpr le_top) |
| 301 | have hf : ContDiffAt ℂ m f (M p) := ha.contDiffAt |
| 302 | have hg : ContDiffAt ℂ m g (M p) := hb.contDiffAt |
| 303 | have hne := ordered_neBot (q := p) (hup.symm ▸ before_east hy) |
| 304 | have hne' := switch_neBot X (q := p) (hvp.symm ▸ before_east hy) |
| 305 | exact (jets_on_open_side (ordered_open n) hne heq m ((hf.restrict_scalars ℝ).comp p M.contDiff.contDiffAt) |
| 306 | hm).trans (jets_on_open_side ((ordered_open n).preimage X.switch.continuous) hne' heq'.symm m |
| 307 | hm ((hg.restrict_scalars ℝ).comp p M.contDiff.contDiffAt)) |
| 308 | |
| 309 | end YM.Work.C20 |