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.PSeries |
| 2 | import Mathlib.Probability.Distributions.Gaussian.Multivariate |
| 3 | import YM.AnalyticBridge.RELATIVE_LOGDET_TRACE.Resolvent |
| 4 | import YM.Next.EXTRACTION.Tails |
| 5 | import YM.Next.FREE_KERNELS.Moderate |
| 6 | import YM.Push.FREE_RESOLVENT.Differentiated |
| 7 | import YM.Work.C13.Decay |
| 8 | import YM.Work.G07.Calculus |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | /-! |
| 14 | # Meeting a smooth germ along a compact shift |
| 15 | |
| 16 | This layer is qualitative (NO uniformity assumptions/prices on the size |
| 17 | of neighborhoods, we use only ambient smoothness at the given point). We will |
| 18 | be careful to parameterize even the *tail* integrals on a compact interval |
| 19 | so real germs through at most k derivatives make sense despite the absence |
| 20 | of sector validity on neighborhoods. Use ordinary coordinates in left patches; |
| 21 | no-step derivatives inferred from passage through changing masks. |
| 22 | -/ |
| 23 | set_option autoImplicit false |
| 24 | noncomputable section |
| 25 | namespace YM.AnalyticBridge.RelativeLogdet |
| 26 | open Function Set Filter MeasureTheory FreeResolvent TestD |
| 27 | open scoped Topology BigOperators Classical ContDiff Matrix.Norms.Frobenius |
| 28 | variable {E F : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 29 | {τ : Type*} |
| 30 | |
| 31 | namespace Ink |
| 32 | |
| 33 | abbrev interval := Icc (0:ℝ) 1 |
| 34 | |
| 35 | omit [NormedSpace ℝ E] in |
| 36 | lemma onward {r : E × ℝ → Prop} {x : E} (h : ∀ t∈ interval, ∀ᶠ p in 𝓝 (x,t), r p) : ∀ᶠ y in 𝓝 x,∀ t∈interval,r (y,t) := by |
| 37 | obtain ⟨u,v,hu,-,hx,hv,hp⟩ := generalized_tube_lemma (isCompact_singleton (x:=x)) (s:={x}) (show IsCompact interval from isCompact_Icc) |
| 38 | (isOpen_interior (s:={p| r p})) (show {x} ×ˢ interval ⊆ interior {p | r p} from by |
| 39 | rintro ⟨z,t⟩ ⟨(he : z∈({x}:Set E)),ht⟩; replace he := mem_singleton_iff.mp he; rw [he]; exact mem_interior_iff_mem_nhds.mpr (h t ht)) |
| 40 | filter_upwards [hu.mem_nhds (hx (mem_singleton _))] with y hy using fun t ht => interior_subset (hp (show (y,t)∈u×ˢv from ⟨hy,hv ht⟩)) |
| 41 | |
| 42 | section integral |
| 43 | variable {g : E × ℝ→ F} {k : ℕ} {x : E} |
| 44 | |
| 45 | def Arc (g : E × ℝ → F) (k : ℕ) (x : E) := ∀ t∈interval, ContDiffAt ℝ k g (x,t) |
| 46 | |
| 47 | lemma Arc.persists (h : Arc g k x) : ∀ᶠ y in 𝓝 x, Arc g k y := onward (fun t ht => (h t ht).eventually (by simp)) |
| 48 | lemma Arc.slice (h : Arc g k x) : ContinuousOn (fun t => g (x,t)) interval := fun t ht => |
| 49 | ((h t ht).continuousAt.comp (continuous_const.prodMk continuous_id).continuousAt).continuousWithinAt |
| 50 | lemma Arc.int (h : Arc g k x) : IntegrableOn (fun t=>g (x,t)) interval := h.slice.integrableOn_Icc |
| 51 | |
| 52 | lemma offset {f : E × ℝ→ F} {t : ℝ} (h : ContDiffAt ℝ k f (x,t)) : ContDiffAt ℝ k (fun y => f (y,t)) x := |
| 53 | h.comp x ((contDiff_id.prodMk contDiff_const).contDiffAt) |
| 54 | |
| 55 | def margin (g : E × ℝ → F) (p : E × ℝ) := fderiv ℝ (fun x => g (x,p.2)) p.1 |
| 56 | |
| 57 | lemma margin_smooth {t : ℝ} (h : ContDiffAt ℝ (↑(k+1:ℕ):ℕ∞ω) g (x,t)) : ContDiffAt ℝ k (margin g) (x,t) := |
| 58 | ContDiffAt.fderiv (f:=fun (p : E × ℝ) (x : E) => g (x,p.2)) (g:=Prod.fst) |
| 59 | (h.comp (f:=fun p : (E × ℝ) × E => (p.2,p.1.2)) ((x,t),x) ((contDiff_snd.prodMk (contDiff_snd.comp contDiff_fst)).contDiffAt)) contDiffAt_fst (by simp) |
| 60 | |
| 61 | lemma Arc.margins (h : Arc g (k+1) x) : Arc (margin g) k x := fun t ht => margin_smooth (h t ht) |
| 62 | |
| 63 | variable [FiniteDimensional ℝ E] |
| 64 | |
| 65 | lemma Arc.cont (h : Arc g k x) : ContinuousAt (fun y => ∫ t in interval,g (y,t)) x := by |
| 66 | obtain ⟨a,ha,hp⟩ := Metric.mem_nhds_iff.mp h.persists |
| 67 | have hx : 0<a/2 := half_pos ha |
| 68 | let B := Metric.closedBall x (a/2) |
| 69 | have ht (y : E) (hy : y∈B) : Arc g k y := hp ((Metric.closedBall_subset_ball (half_lt_self ha)) hy) |
| 70 | obtain ⟨C,hC⟩ := ((isCompact_closedBall x (a/2)).prod (show IsCompact interval from isCompact_Icc)).exists_bound_of_continuousOn (show ContinuousOn g (B ×ˢ interval) from |
| 71 | fun ⟨y,t⟩ hy => (ht y hy.1 t hy.2).continuousAt.continuousWithinAt) |
| 72 | refine continuousAt_of_dominated (bound:=fun _ : ℝ => C) (h.persists.mono fun x he => (Arc.int he).aestronglyMeasurable) ?_ (integrable_const _) ?_ |
| 73 | · filter_upwards [Metric.closedBall_mem_nhds x hx] with y hy |
| 74 | exact (ae_restrict_mem measurableSet_Icc).mono fun z (hz : z∈interval) => hC (y,z) ⟨hy,hz⟩ |
| 75 | exact (ae_restrict_mem measurableSet_Icc).mono fun t (ht : t∈interval) => (offset (h t ht)).continuousAt |
| 76 | |
| 77 | variable [FiniteDimensional ℝ F] |
| 78 | |
| 79 | omit [FiniteDimensional ℝ F] in |
| 80 | lemma Arc.move (h : Arc g (k+1) x) : HasFDerivAt (fun y => ∫ t in interval,g (y,t)) (∫ t in interval, margin g (x,t)) x := by |
| 81 | obtain ⟨a,ha,hp⟩ := Metric.mem_nhds_iff.mp h.persists |
| 82 | have hx : 0<a/2 := half_pos ha |
| 83 | let B := Metric.closedBall x (a/2) |
| 84 | have ht (y : E) (hy : y∈B) : Arc g (k+1) y := hp ((Metric.closedBall_subset_ball (half_lt_self ha)) hy) |
| 85 | obtain ⟨C,hC⟩ := ((isCompact_closedBall x (a/2)).prod (show IsCompact interval from isCompact_Icc)).exists_bound_of_continuousOn |
| 86 | (show ContinuousOn (margin g) (B ×ˢ interval) from fun ⟨y,t⟩ hy => |
| 87 | ((ht y hy.1).margins t hy.2).continuousAt.continuousWithinAt) |
| 88 | apply hasFDerivAt_integral_of_dominated_of_fderiv_le (bound:=fun _ : ℝ => C) (F' := fun y t => margin g (y,t)) |
| 89 | (Metric.closedBall_mem_nhds x hx) (h.persists.mono fun _ he => (Arc.int he).aestronglyMeasurable) h.int h.margins.int.aestronglyMeasurable |
| 90 | ((ae_restrict_mem measurableSet_Icc).mono fun t (hz : t∈interval) y hy => hC (y,t) ⟨hy,hz⟩) (integrable_const _) |
| 91 | exact (ae_restrict_mem measurableSet_Icc).mono fun t (hz : t∈interval) y hy => |
| 92 | ((offset (ht y hy t hz)).differentiableAt (by simp)).hasFDerivAt |
| 93 | |
| 94 | lemma Arc.writes (h : Arc g k x) : ContDiffAt ℝ k (fun y => ∫ t in interval,g (y,t)) x := by |
| 95 | induction k generalizing F with |
| 96 | | zero => exact contDiffAt_zero.mpr ⟨{y|Arc g 0 y},h.persists,fun y hy => (Arc.cont hy).continuousWithinAt⟩ |
| 97 | | succ k ih => rw [Nat.cast_add,Nat.cast_one,contDiffAt_succ_iff_hasFDerivAt]; exact |
| 98 | ⟨fun y => ∫ t in interval,margin g (y,t), ⟨{y| Arc g (k+1) y},h.persists,fun y (hy : Arc g (k+1) y) => hy.move⟩,ih h.margins⟩ |
| 99 | |
| 100 | variable (v : τ → E) |
| 101 | |
| 102 | def over (g : E × ℝ → F) (j : List τ) (p : E × ℝ) := TestD.jet v (fun x => g (x,p.2)) j p.1 |
| 103 | |
| 104 | omit [FiniteDimensional ℝ E] [FiniteDimensional ℝ F] in |
| 105 | lemma over_smooth {t : ℝ} (j : List τ) (h : ContDiffAt ℝ (↑(k+j.length):ℕ∞ω) g (x,t)) : ContDiffAt ℝ k (over v g j) (x,t) := by |
| 106 | induction j generalizing x t k with |
| 107 | | nil => unfold over; simp_rw [zeroth]; simpa using h |
| 108 | | cons a l ih => |
| 109 | rw [show k+(a::l).length=k+1+l.length by simp; omega] at h |
| 110 | refine ((margin_smooth (ih h)).clm_apply (g:=fun _ => v a) contDiffAt_const).congr_of_eventuallyEq ?_ |
| 111 | have hv (n : ℕ) : (n:ℕ∞ω) ≠ ∞ := by simp |
| 112 | filter_upwards [h.eventually (hv _)] with ⟨y,z⟩ hy |
| 113 | exact jet_step v _ _ (offset (smooth_of_le hy (by omega))) |
| 114 | |
| 115 | lemma Arc.report (j : List τ) (h : Arc g j.length x) : |
| 116 | TestD.jet v (fun y => ∫ t in interval,g (y,t)) j x = ∫ t in interval, over v g j (x,t) := by |
| 117 | induction j generalizing x with |
| 118 | | nil => unfold over; simp_rw [zeroth] |
| 119 | | cons a l ih => |
| 120 | have hm : Arc (over v g l) (0+1) x := fun t ht => over_smooth v _ (by simpa [add_comm] using (h t ht)) |
| 121 | rw [jet_step v _ _ h.writes] |
| 122 | have he : TestD.jet v (fun y => ∫ t in interval,g (y,t)) l =ᶠ[𝓝 x] fun y => ∫ t in interval,over v g l (y,t) := by |
| 123 | filter_upwards [h.persists] with y hy using ih (fun t ht => smooth_of_le (hy t ht) (by simp)) |
| 124 | rw [he.fderiv_eq,hm.move.fderiv] |
| 125 | rw [ContinuousLinearMap.integral_apply (𝕜:=ℝ) hm.margins.int] |
| 126 | exact setIntegral_congr_fun measurableSet_Icc fun t ht => (jet_step v a l (offset (h t ht))).symm |
| 127 | end integral |
| 128 | |
| 129 | section scaling |
| 130 | |
| 131 | lemma atten_image : attenuation '' Ioi 0 = Ioo 0 1 := by |
| 132 | ext t; constructor |
| 133 | · rintro ⟨x,h,rfl⟩ |
| 134 | refine ⟨attenuation_pos h.out.le,?_⟩ |
| 135 | have hx := h.out |
| 136 | exact inv_lt_one_of_one_lt₀ (by linarith) |
| 137 | intro ⟨ht,h⟩; refine ⟨t⁻¹-1,?_,?_⟩ |
| 138 | · rw [mem_Ioi]; apply sub_pos.mpr; exact (one_lt_inv₀ ht).mpr h |
| 139 | unfold attenuation; rw [show 1+(t⁻¹-1) = t⁻¹ from by ring,inv_inv] |
| 140 | private lemma atten_j : Set.InjOn attenuation (Ioi 0) := fun x hx y hy he => by simpa only [attenuation, inv_inj,add_right_inj] using he |
| 141 | private lemma atten_der (u : ℝ) (hu : u ∈ Ioi 0) : HasDerivWithinAt attenuation (- attenuation u^2) (Ioi 0) u := by |
| 142 | have hx := hu.out |
| 143 | have he := ((hasDerivAt_id' u).const_add 1).inv (show 1+u ≠ 0 from ne_of_gt (by linarith)) |
| 144 | simpa only [attenuation,inv_pow,one_div,neg_div] using! he.hasDerivWithinAt |
| 145 | |
| 146 | lemma panel_integral (f : ℝ → F) : (∫ t in interval, f t) = ∫ u in Ioi 0, attenuation u^2 • f (attenuation u) := by |
| 147 | rw [integral_Icc_eq_integral_Ioo,← atten_image, integral_image_eq_integral_abs_deriv_smul measurableSet_Ioi atten_der atten_j f] |
| 148 | simp_rw [abs_neg,abs_of_nonneg (sq_nonneg (attenuation _))] |
| 149 | lemma panel_int {f : ℝ→ F} (h : IntegrableOn f interval) : IntegrableOn (fun u : ℝ => attenuation u^2 • f (attenuation u)) (Ioi 0) := by |
| 150 | have hf : IntegrableOn f (attenuation '' Ioi 0) := by rw [atten_image]; exact h.mono_set Ioo_subset_Icc_self |
| 151 | have hh := (integrableOn_image_iff_integrableOn_abs_deriv_smul measurableSet_Ioi atten_der atten_j f).mp hf |
| 152 | simp_rw [abs_neg,abs_of_nonneg (sq_nonneg (attenuation _))] at hh; exact hh |
| 153 | |
| 154 | lemma jet_const_smul {f : E→F} (v : τ→E) (j : List τ) {x : E} (c : ℝ) (h : ContDiffAt ℝ j.length f x) : |
| 155 | jet v (fun y => c • f y) j x = c • jet v f j x := jet_linear v _ (c • ContinuousLinearMap.id ℝ F) h |
| 156 | |
| 157 | variable [FiniteDimensional ℝ E] [FiniteDimensional ℝ F] {g : E × ℝ → F} {f : E → ℝ → F} {x : E} {k : ℕ} |
| 158 | |
| 159 | /-- Price-independent language for the *actual* markings at a point, |
| 160 | including IntegrableOn of differentiated label arcs. hV on the WHOLE common |
| 161 | letter at y, holding geometry (including both W and F, all tags) fixed. -/ |
| 162 | lemma panel_report (h : Arc g k x) (hV : ∀ᶠ y in 𝓝 x, ∀ u∈Ioi (0:ℝ), f y u=attenuation u^2 • g (y,attenuation u)) (v : τ→E) : |
| 163 | let r := fun y => ∫ u in Ioi 0,f y u |
| 164 | ContDiffAt ℝ k r x ∧ ∀ j : List τ, j.length ≤ k → |
| 165 | let F u := jet v (fun y => f y u) j x |
| 166 | IntegrableOn F (Ioi 0) ∧ jet v r j x=∫ u in Ioi 0, F u := by |
| 167 | intro r |
| 168 | have hh : r =ᶠ[𝓝 x] fun y => ∫ t in interval, g (y,t) := by |
| 169 | filter_upwards [hV] with y hy |
| 170 | unfold r; rw [panel_integral]; exact setIntegral_congr_fun measurableSet_Ioi hy |
| 171 | refine ⟨h.writes.congr_of_eventuallyEq hh,?_⟩ |
| 172 | intro j hj F |
| 173 | have hx : Arc g j.length x := fun t ht => smooth_of_le (h t ht) hj |
| 174 | let T (t : ℝ) := over v g j (x,t) |
| 175 | have hp : EqOn (fun u => attenuation u^2 • T (attenuation u)) F (Ioi 0) := by |
| 176 | intro u hu |
| 177 | unfold F |
| 178 | rw [identical v (B:=fun y => attenuation u^2 • g (y,attenuation u)) (hV.mono fun _ hy => hy _ hu) j, |
| 179 | jet_const_smul v j _ (offset (hx (attenuation u) ⟨(attenuation_pos hu.out.le).le, attenuation_le hu.out.le⟩))]; rfl |
| 180 | have hi : Arc (over v g j) 0 x := fun t ht => over_smooth v j (by simpa using hx t ht) |
| 181 | refine ⟨(panel_int (show IntegrableOn T interval from hi.int)).congr_fun hp measurableSet_Ioi,?_⟩ |
| 182 | rw [identical v hh,hx.report,panel_integral]; exact setIntegral_congr_fun measurableSet_Ioi hp |
| 183 | end scaling |
| 184 | end Ink |
| 185 | end YM.AnalyticBridge.RelativeLogdet |