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.EveryPhase.Vitali |
| 2 | import YM.EveryPhase.Pack |
| 3 | /-! |
| 4 | Strict waves as continuous scalar functions on the character space. |
| 5 | A common polynomial margin bound. Analytic continuation also commutes |
| 6 | with the ground-algebra barycenter here. |
| 7 | -/ |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | namespace YM.EveryPhase |
| 11 | open Function Set Filter MeasureTheory Spec Boundary Probe Complex Next.BOUNDARY |
| 12 | open scoped Topology NNReal ContDiff InnerProductSpace |
| 13 | |
| 14 | section power |
| 15 | open Org OS |
| 16 | variable {G : Gauge} {C : Family G} {S : Table C.book} {f : Extraction.Order} |
| 17 | {F : Final C f S} (L : Almanac F) |
| 18 | |
| 19 | theorem power (n : ℕ) (v : Fin n → S.Union) : ∃ m : ℕ, ∃ C₀ : ℝ, 0≤C₀ ∧ |
| 20 | ∀ i, ∀ (y : Heights n) (k : ℝ), k∈Ioc 0 1 → broad y k → ∀ x, |
| 21 | ‖(L.contours i).waves.restricted v y x‖ ≤ C₀*k⁻¹^m := by |
| 22 | obtain ⟨B,hB,-⟩ := (onFinal F).1.reveals |
| 23 | choose Q d hQ h using (fun i => B.price (v i)) |
| 24 | let P (i : Fin n) := Q i * 8^d i |
| 25 | have hP i : 0 ≤ P i := by have := hQ i; unfold P; positivity |
| 26 | have hn := Finset.prod_nonneg (s:=Finset.univ) (fun i _ => hP i) |
| 27 | refine ⟨∑ i, d i, ∏ i, P i, hn, fun i y k hk hb x => ?_⟩ |
| 28 | obtain ⟨Y,hY,-⟩ := (L.cards i).reveals |
| 29 | let p := Small.logD k |
| 30 | have hp : Small.enough y p := Work.C03.enough_logD hk hb |
| 31 | have he : Small.lit (shift x y) p := by simpa [Small.lit,shift] using hp |
| 32 | have hX (a : S.Union) : ‖Y.bits.bar p a‖ ≤ ‖B.bits.bar p a‖ := by |
| 33 | obtain ⟨r,t,rfl⟩ := F.sector.derivatives.covered F.room.kernel.laws.toSymmetric F.phase.transport.injection a |
| 34 | rw [B.linked r t p hp.1,Y.linked r t p hp.1] |
| 35 | exact L.priced i _ _ (Work.C01.centeredSlab _ _ hp.1) |
| 36 | have hi j : ‖Y.bits.bar p (v j)‖ ≤ P j * k⁻¹^d j := by |
| 37 | apply le_trans (hX _) ((h j p ⟨hp.1,hp.2.1⟩).trans_eq ?_) |
| 38 | unfold p P; rw [Work.C03.coe_logD hk, inv_div,div_eq_mul_inv,mul_pow,mul_assoc] |
| 39 | rw [← hY, Waves.restricted,Y.yields n _ (Work.C03.lit_strict he) p he] |
| 40 | calc |
| 41 | _ ≤ ∏ j, ‖Y.bits.bar p (v j)‖ := by |
| 42 | have ht : ‖(L.chambers i).omega‖=1 := OS.nil_norm _ (F.phase.phase.states i).laws |
| 43 | convert Work.C03.norm_matrix Y.bits p v (shift x y) (trace x) he using 1 |
| 44 | rw [ht]; ring |
| 45 | _ ≤ ∏ j, (P j * k⁻¹^d j) := Finset.prod_le_prod (fun _ _ => norm_nonneg _) (fun j _ => hi j) |
| 46 | _ = _ := by rw [Finset.prod_mul_distrib, Finset.prod_pow_eq_pow_sum] |
| 47 | end power |
| 48 | |
| 49 | section path |
| 50 | variable {n : ℕ} (y : Heights n) (x : Points n) |
| 51 | |
| 52 | def scalePath (c : ℂ) : Times n := fun i => ↑(y i)*I + c*↑(YM.time (x i)) |
| 53 | |
| 54 | def scaleIm (t : ℝ) : Heights n := fun i => y i+t*YM.time (x i) |
| 55 | |
| 56 | lemma path_im (c : ℂ) : (fun i => (scalePath y x c i).im) = scaleIm y x c.im := by |
| 57 | funext; simp [scalePath,scaleIm] |
| 58 | |
| 59 | lemma path_one : scalePath y x 1=shift x y := by funext; simp [scalePath,shift,add_comm] |
| 60 | |
| 61 | lemma path_I (t : ℝ) : scalePath y x (↑t*I)= fun i => ↑(scaleIm y x t i)*I := by |
| 62 | funext; dsimp only [scalePath,scaleIm]; push_cast; ring |
| 63 | |
| 64 | lemma path_open (hy : y ∈ east n) : ∃ (k : ℝ), k ∈ Ioc 0 1 ∧ |
| 65 | ∃ (δ : ℝ), 0<δ ∧ ∀ t∈Ioo (-δ) δ, broad (scaleIm y x t) k := by |
| 66 | obtain ⟨j,hj,hb⟩ := Work.C15.east_broad hy |
| 67 | refine ⟨j/2, ⟨by linarith [hj.1],by linarith [hj.2]⟩,?_⟩ |
| 68 | let U : Set ℝ := {s | broad (scaleIm y x s) (j/2)} |
| 69 | have hT : ∀ᶠ s in 𝓝 (0:ℝ), broad (scaleIm y x s) (j/2) := by |
| 70 | simp only [broad,eventually_all] |
| 71 | intro a b hij |
| 72 | have hp : Continuous fun t => scaleIm y x t b-scaleIm y x t a := by unfold scaleIm; fun_prop |
| 73 | have hg : j / 2 < scaleIm y x 0 b-scaleIm y x 0 a := by |
| 74 | simp [scaleIm]; linarith [hb a b hij,hj.1] |
| 75 | exact ((hp.tendsto 0).eventually (lt_mem_nhds hg)).mono fun _ h => h.le |
| 76 | obtain ⟨δ,hδ,hx⟩ := Metric.mem_nhds_iff.mp (show U∈ 𝓝 0 from hT) |
| 77 | exact ⟨δ,hδ,fun t ht => hx (Metric.mem_ball.mpr (by simpa [abs_lt,Real.dist_eq] using ht))⟩ |
| 78 | |
| 79 | variable {δ k : ℝ} |
| 80 | def ribbon (δ : ℝ) : Set ℂ := im ⁻¹' Ioo (-δ) δ |
| 81 | lemma ribbon_zero (h : 0<δ) : (0:ℂ) ∈ ribbon δ := ⟨neg_lt_zero.mpr h,h⟩ |
| 82 | lemma ribbon_one (h : 0<δ) : (1:ℂ) ∈ ribbon δ := ⟨neg_lt_zero.mpr h,h⟩ |
| 83 | lemma open_ribbon (δ : ℝ) : IsOpen (ribbon δ) := isOpen_Ioo.preimage continuous_im |
| 84 | lemma pre_ribbon (δ : ℝ) : IsPreconnected (ribbon δ) := |
| 85 | Convex.isPreconnected ((convex_Ioo (-δ) δ).linear_preimage imCLM.toLinearMap) |
| 86 | lemma path_strict {c : ℂ} (h : c∈ribbon δ) |
| 87 | (hk : k∈Ioc (0:ℝ) 1) (hb : ∀ t∈Ioo (-δ) δ, broad (scaleIm y x t) k) : |
| 88 | scalePath y x c ∈ strict n := fun a b hp => by |
| 89 | simpa [scaleIm,scalePath] using |
| 90 | (sub_pos.mp (hk.1.trans_le (hb c.im h a b hp))) |
| 91 | |
| 92 | lemma path_shift (c : ℂ) : scalePath y x c=shift (place (trace x) (fun i => c.re*YM.time (x i))) |
| 93 | (scaleIm y x c.im) := by |
| 94 | funext i; apply Complex.ext <;> simp [scalePath,place,scaleIm,shift] |
| 95 | |
| 96 | lemma from_imaginary {P : ℂ → Prop} {U : Set ℂ} (h : U ∈ 𝓝 0) |
| 97 | (he : ∀ t : ℝ, (↑t*I)∈U → P (↑t*I)) : ∃ᶠ q in 𝓝[≠] (0:ℂ), q∈U ∧ P q := by |
| 98 | intro hn |
| 99 | let f (t : ℝ) := ↑t*I |
| 100 | have hh : Tendsto f (𝓝[>] (0:ℝ)) (𝓝[≠] (0:ℂ)) := by |
| 101 | apply tendsto_nhdsWithin_of_tendsto_nhds_of_eventually_within |
| 102 | · have hi : Continuous f := continuous_ofReal.mul continuous_const |
| 103 | simpa [f] using ((hi.tendsto 0).mono_left nhdsWithin_le_nhds) |
| 104 | filter_upwards [self_mem_nhdsWithin] with i hi |
| 105 | change f i ≠ 0; simp [f,(mem_Ioi.mp hi).ne'] |
| 106 | obtain ⟨c,hc,h⟩ := ((hh.eventually hn).and ((hh.mono_right nhdsWithin_le_nhds).eventually h)).exists |
| 107 | exact hc ⟨h, he c h⟩ |
| 108 | end path |
| 109 | |
| 110 | section |
| 111 | open Metric |
| 112 | /-- An integrable locally uniform bound suffices here too; only need the |
| 113 | constant-bound finite-measure version. -/ |
| 114 | theorem integral_holomorphic {α : Type*} [MeasurableSpace α] {μ : Measure α} [IsFiniteMeasure μ] |
| 115 | {F : α → ℂ → ℂ} {U : Set ℂ} {C : ℝ} (h : IsOpen U) (he : ∀ i, DifferentiableOn ℂ (F i) U) |
| 116 | (ha : ∀ x∈U, Integrable (fun i => F i x) μ) (hb : ∀ i x, x∈U → ‖F i x‖ ≤ C) : |
| 117 | DifferentiableOn ℂ (fun x => ∫ i, F i x ∂μ) U := by |
| 118 | intro x hx |
| 119 | obtain ⟨r,hr,hU⟩ := Metric.mem_nhds_iff.mp (h.mem_nhds hx) |
| 120 | have ht : 0<r/2 := by linarith |
| 121 | let B := ball x (r/2) |
| 122 | have hB : B ⊆ U := (ball_subset_ball (by linarith : r/2 ≤ r)).trans hU |
| 123 | let D (z : ℂ) (i : α) := deriv (F i) z |
| 124 | have hv i y (hy : y∈B) : HasDerivAt (F i) (D y i) y := |
| 125 | ((he i).differentiableAt (h.mem_nhds (hB hy))).hasDerivAt |
| 126 | have hp i y (hy : y∈B) : ‖D y i‖ ≤ C/(r/2) := by |
| 127 | have hw : closedBall y (r/2) ⊆ U := by |
| 128 | intro w hw; exact hU (mem_ball.mpr ((dist_triangle w y x).trans_lt (by linarith [mem_closedBall.mp hw, mem_ball.mp hy]))) |
| 129 | dsimp only [D]; rw [← Complex.cderiv_eq_deriv h (he i) ht hw]; exact Complex.norm_cderiv_le ht |
| 130 | fun w hw' => hb i w (hw (sphere_subset_closedBall hw')) |
| 131 | classical |
| 132 | have hm : AEStronglyMeasurable (D x) μ := by |
| 133 | let G y (i : α) := if y∈U then slope (F i) x y else 0 |
| 134 | have hG (y) : AEStronglyMeasurable (G y) μ := by |
| 135 | by_cases H : y∈U |
| 136 | · simp only [G,H,if_true,slope_def_module]; exact ((ha y H).aestronglyMeasurable.sub |
| 137 | (ha x hx).aestronglyMeasurable).const_smul (y-x)⁻¹ |
| 138 | simp only [G,H,if_false]; exact aestronglyMeasurable_const |
| 139 | apply aestronglyMeasurable_of_tendsto_ae (𝓝[≠] x) hG |
| 140 | refine ae_of_all _ fun i => ((hv i x (mem_ball_self ht)).tendsto_slope).congr' |
| 141 | (Eventually.mono (show ∀ᶠ z in 𝓝[≠] x, z∈U from nhdsWithin_le_nhds (h.mem_nhds hx)) (fun z hz => by simp only [G,hz,if_true])) |
| 142 | have hh := hasDerivAt_integral_of_dominated_loc_of_deriv_le (F:=fun z i => F i z) |
| 143 | (s:=B) (F':=D) (bound:=fun _ : α => C/(r/2)) (ball_mem_nhds x ht) |
| 144 | (Eventually.mono (h.mem_nhds hx) (fun y hy => (ha y hy).aestronglyMeasurable)) |
| 145 | (ha x hx) hm (ae_of_all μ hp) (integrable_const _) (ae_of_all μ hv) |
| 146 | exact hh.2.differentiableAt.differentiableWithinAt |
| 147 | end |
| 148 | |
| 149 | variable {G : Gauge} {C : Family G} {S : Table C.book} {f : Extraction.Order} |
| 150 | {F : Final C f S} (L : Almanac F) {n : ℕ} |
| 151 | |
| 152 | lemma imaginary_evaluation (x : SpacePoints n) (v : Fin n → S.Union) |
| 153 | {y : Heights n} (hy : y∈east n) : |
| 154 | let z : Times n := fun j => ↑(y j)*I |
| 155 | Continuous (fun i => (L.contours i).waves.F n z x v) ∧ |
| 156 | (∫ i, (L.contours i).waves.F n z x v ∂F.α.space.μ)=F.B.waves.F n z x v := by |
| 157 | dsimp only |
| 158 | choose d t h using (fun i => F.sector.derivatives.covered F.room.kernel.laws.toSymmetric |
| 159 | F.phase.transport.injection (v i)) |
| 160 | let u : Fin n → S.Tag := fun i => ⟨d i,t i⟩ |
| 161 | rw [show v=(fun i => S.pin (u i).1 (u i).2) from (funext h).symm] |
| 162 | simp_rw [fun i => (L.cards i).fromPhase.heat.roots n u x y hy, F.realization.allWorld.heat.roots n u x y hy] |
| 163 | let q := Word.realize (fun i => (⟨d i,S.representative _ (t i)⟩ : C.book.Token)) (place x y) |
| 164 | have hp : Word.distinct q := (Word.realized ..).mpr (clear hy _) |
| 165 | have hh (T : Table C.book) : S.useAt T (place x y) u=T.expect q := (T.readAt (fun i => ⟨d i,S.representative _ (t i)⟩) (place x y)).symm |
| 166 | simp_rw [hh] |
| 167 | refine ⟨?_, F.α.space.barycenter _ F.phase.phase.decomposition F.phase.phase.chosen |
| 168 | F.room.kernel.translations q hp⟩ |
| 169 | simp_rw [fun i => OS.Cluster.track F.α.unselected q hp i (F.phase.phase.chosen i)] |
| 170 | exact F.phase.phase.decomposition.weak _ |
| 171 | |
| 172 | private lemma path_price (x : Points n) (v : Fin n → S.Union) (y : Heights n) {k δ : ℝ} |
| 173 | (hk : k∈Ioc 0 1) (hp : ∀ t∈Ioo (-δ) δ, broad (scaleIm y x t) k) : ∃ C₀ : ℝ, ∀ i z, z∈ribbon δ → |
| 174 | ‖(L.contours i).waves.F n (scalePath y x z) (trace x) v‖ ≤ C₀ := by |
| 175 | obtain ⟨m,A,hA,h⟩ := power L n v |
| 176 | refine ⟨A*k⁻¹^m, fun i z hz => ?_⟩ |
| 177 | rw [path_shift y x z] |
| 178 | let X := place (trace x) (fun i => z.re * YM.time (x i)) |
| 179 | have hh : trace X=trace x := by ext1; simp [trace,X,place] |
| 180 | have he := h i (scaleIm y x z.im) k hk (hp _ hz) X |
| 181 | unfold Waves.restricted at he |
| 182 | rwa [hh] at he |
| 183 | |
| 184 | private lemma path_diff {T : Table C.book} {A : Contour S} (h : A.From T) (x : Points n) |
| 185 | (v : Fin n → S.Union) (y : Heights n) {k δ : ℝ} (hk : k∈Ioc 0 1) |
| 186 | (hp : ∀ t∈Ioo (-δ) δ, broad (scaleIm y x t) k) : |
| 187 | DifferentiableOn ℂ (fun z => A.waves.F n (scalePath y x z) (trace x) v) (ribbon δ) := by |
| 188 | apply (h.heat.hol n v (trace x)).comp (f:=scalePath y x) |
| 189 | (show Differentiable ℂ (scalePath y x) from by unfold scalePath; fun_prop).differentiableOn |
| 190 | intro z hz; exact path_strict y x hz hk hp |
| 191 | |
| 192 | /-- At strict heights -- includes ALL points, not just tested limits. -/ |
| 193 | lemma strict_evaluation (x : Points n) (v : Fin n → S.Union) {y : Heights n} (hy : y∈east n) : |
| 194 | Continuous (fun i => (L.contours i).waves.restricted v y x) ∧ |
| 195 | (∫ i, (L.contours i).waves.restricted v y x ∂F.α.space.μ)=F.B.waves.restricted v y x := by |
| 196 | obtain ⟨k,hk,δ,hδ,H⟩ := path_open y x hy |
| 197 | let g i (z : ℂ) := (L.contours i).waves.F n (scalePath y x z) (trace x) v |
| 198 | let U := ribbon δ |
| 199 | have hp i : DifferentiableOn ℂ (g i) U := path_diff (L.cards i).fromPhase x v y hk H |
| 200 | obtain ⟨D,hD⟩ := path_price L x v y hk H |
| 201 | have hb i (z : ℂ) (h : z∈U) : ‖g i z‖ ≤ D := hD i z h |
| 202 | have hu : U∈𝓝 (0:ℂ) := (open_ribbon δ).mem_nhds (ribbon_zero hδ) |
| 203 | have he (t : ℝ) (ht : ↑t*I∈U) : scaleIm y x t∈east n := by |
| 204 | have hz := path_strict y x ht hk H |
| 205 | change (fun i => (scalePath y x (↑t*I) i).im)∈east n at hz |
| 206 | simpa only [path_im,mul_I_im,ofReal_re] using hz |
| 207 | have hf (z : ℂ) (hz : z∈U) : Continuous fun i => g i z := by |
| 208 | apply continuous_iff_continuousAt.mpr; intro i |
| 209 | apply propagate_limit (F:=g) (f:=g i) (open_ribbon _) (pre_ribbon _) (Eventually.of_forall hp) (hp i) |
| 210 | _ (ribbon_zero hδ) _ hz |
| 211 | · intro x hx |
| 212 | obtain ⟨r,hr,hT⟩ := Metric.mem_nhds_iff.mp ((open_ribbon δ).mem_nhds hx) |
| 213 | exact ⟨r,hr,D,Eventually.of_forall fun i z hz => hb i z (hT hz)⟩ |
| 214 | refine from_imaginary hu fun t ht => ?_ |
| 215 | dsimp only [g]; rw [path_I] |
| 216 | exact (imaginary_evaluation L (trace x) v (he t ht)).1.tendsto _ |
| 217 | haveI := F.phase.phase.decomposition.normalized |
| 218 | let G₀ z := F.B.waves.F n (scalePath y x z) (trace x) v |
| 219 | have hg : EqOn (fun z => ∫ i, g i z ∂F.α.space.μ) G₀ U := by |
| 220 | have ha := integral_holomorphic (μ:=F.α.space.μ) (open_ribbon _) hp (fun z hz => (hf z hz).integrable_of_hasCompactSupport |
| 221 | (HasCompactSupport.of_compactSpace _)) hb |
| 222 | apply (ha.analyticOnNhd (open_ribbon _)).eqOn_of_preconnected_of_frequently_eq |
| 223 | ((path_diff F.realization.allWorld x v y hk H).analyticOnNhd (open_ribbon _)) (pre_ribbon δ) (ribbon_zero hδ) |
| 224 | refine (from_imaginary (P:=fun z => (∫ i, g i z ∂F.α.space.μ)=G₀ z) hu (fun t ht => ?_)).mono (fun _ h => h.2) |
| 225 | dsimp only [g,G₀]; rw [path_I]; exact (imaginary_evaluation L (trace x) v (he t ht)).2 |
| 226 | unfold Waves.restricted |
| 227 | rw [← path_one y x] |
| 228 | exact ⟨hf 1 (ribbon_one hδ),hg (ribbon_one hδ)⟩ |
| 229 | |
| 230 | end YM.EveryPhase |