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.Push.STRESS_FLUX.LinkD |
| 2 | import YM.Work.A15 |
| 3 | import YM.Work.C13.Decay |
| 4 | |
| 5 | /-! |
| 6 | Haar-Wilson Ward identity, including contact terms on the genuine probability measure. |
| 7 | No assumption that arbitrary coordinate changes preserve the *weighted* measure or that a |
| 8 | field-dependent link variation has zero divergence. Coefficients depending on transports |
| 9 | (in particular from negative link reads) must also be differentiated. . |
| 10 | -/ |
| 11 | set_option autoImplicit false |
| 12 | noncomputable section |
| 13 | namespace YM.StressFlux |
| 14 | open Function Set Gauge Lattice Wilson MeasureTheory Filter |
| 15 | open scoped Topology BigOperators Matrix.Norms.Frobenius InnerProductSpace |
| 16 | variable {G : Gauge} {n : Side} |
| 17 | |
| 18 | structure Tame (f : Config G n → ℂ) : Prop where |
| 19 | meas : Measurable f |
| 20 | bounded : ∃ C : ℝ, 0≤C ∧ ∀ U, ‖f U‖ ≤ C |
| 21 | |
| 22 | variable {f g : Config G n → ℂ} {x : Site n} {d : Step} {c : G.Color} |
| 23 | lemma tame_of_continuous (hf : Continuous f) : Tame f := by |
| 24 | obtain ⟨C,hC⟩ := (isCompact_range hf.norm).bddAbove |
| 25 | exact ⟨hf.measurable, C, (norm_nonneg _).trans (hC (mem_range_self (1:Config G n))),fun U => hC (mem_range_self U)⟩ |
| 26 | lemma Tame.int (hf : Tame f) (μ : Measure (Config G n)) [IsFiniteMeasure μ] : Integrable f μ := by |
| 27 | obtain ⟨C,-,hC⟩ := hf.bounded; exact Integrable.of_bound hf.meas.aestronglyMeasurable C (.of_forall hC) |
| 28 | lemma Tame.mul (hf : Tame f) (hg : Tame g) : Tame (fun U => f U * g U) := by |
| 29 | obtain ⟨a,ha,H⟩ := hf.bounded; obtain ⟨b,hb,h⟩ := hg.bounded |
| 30 | exact ⟨hf.meas.mul hg.meas,a*b,by positivity,fun U => by rw [norm_mul]; exact mul_le_mul (H _) (h _) (norm_nonneg _) ha⟩ |
| 31 | lemma Tame.add (hf : Tame f) (hg : Tame g) : Tame (fun U => f U + g U) := by |
| 32 | obtain ⟨a,ha,H⟩ := hf.bounded; obtain ⟨b,hb,h⟩ := hg.bounded |
| 33 | exact ⟨hf.meas.add hg.meas,a+b,add_nonneg ha hb,fun U => (norm_add_le ..).trans (add_le_add (H _) (h _))⟩ |
| 34 | lemma Tame.sub (hf : Tame f) (hg : Tame g) : Tame (fun U => f U - g U) := by |
| 35 | obtain ⟨a,ha,H⟩ := hf.bounded; obtain ⟨b,hb,h⟩ := hg.bounded |
| 36 | exact ⟨hf.meas.sub hg.meas,a+b,add_nonneg ha hb,fun U => (norm_sub_le ..).trans (add_le_add (H _) (h _))⟩ |
| 37 | lemma Tame.post (hf : Tame f) (L : ℂ →L[ℝ] ℂ) : |
| 38 | Tame (fun U => L (f U)) := by |
| 39 | obtain ⟨a,ha,H⟩ := hf.bounded |
| 40 | exact ⟨L.continuous.measurable.comp hf.meas, ‖L‖ * a, by positivity, fun U => L.le_of_opNorm_le_of_le le_rfl (H U)⟩ |
| 41 | |
| 42 | |
| 43 | structure Varies (x : Site n) (d : Step) (c : G.Color) (f : Config G n → ℂ) : Prop where |
| 44 | tame : Tame f |
| 45 | slope : Tame (Dlink x d c f) |
| 46 | has (U : Config G n) : HasDerivAt (fun t => f (bump x d c t U)) (Dlink x d c f U) 0 |
| 47 | lemma Varies.atTime (h : Varies x d c f) (U : Config G n) (t : ℝ) : HasDerivAt (fun s => f (bump x d c s U)) |
| 48 | (Dlink x d c f (bump x d c t U)) t := bump_deriv x d c (h.has _) |
| 49 | lemma RegularD.varies (h : RegularD f) : Varies x d c f := ⟨tame_of_continuous h.cont,tame_of_continuous (h.contD ..), fun U => h.has x d U c⟩ |
| 50 | lemma Varies.of_off (h : Tame f) (hf : ∀ U t, f (bump x d c t U)=f U) : Varies x d c f := by |
| 51 | refine ⟨h,?_,fun U => ?_⟩ |
| 52 | · apply tame_of_continuous; change Continuous fun U => Dlink ..; simp_rw [Dlink, hf, deriv_const]; exact continuous_const |
| 53 | simp_rw [Dlink, hf, deriv_const]; exact hasDerivAt_const .. |
| 54 | lemma Varies.localOn (h : Tame f) {B : Set (Site n)} (hb : LocalOn B f) (hx : x∉B ∨ x+d.vec∉B) : Varies x d c f := by |
| 55 | apply Varies.of_off h (fun U t => hb _ _ ?_); intro i hi hI |
| 56 | have hq : i ≠ d.used x := by rintro rfl; unfold Step.used at hi hI; unfold Step.vec at hx; split at hi <;> simp_all [← sub_eq_add_neg] |
| 57 | unfold bump modify; rw [if_neg hq] |
| 58 | |
| 59 | lemma Varies.Dmul (h : Varies x d c f) (hq : Varies x d c g) (U) : Dlink x d c (fun U => f U * g U) U = Dlink x d c f U * g U + f U * Dlink x d c g U := by |
| 60 | simpa only [Dlink,bump_zero] using! ((h.has U).fun_mul (hq.has U)).deriv |
| 61 | lemma Varies.mul (h : Varies x d c f) (hq : Varies x d c g) : Varies x d c (fun U => f U*g U) := by |
| 62 | refine ⟨h.tame.mul hq.tame,?_,fun U => ?_⟩ |
| 63 | · rw [funext (h.Dmul hq)]; exact (h.slope.mul hq.tame).add (h.tame.mul hq.slope) |
| 64 | exact ((h.has U).fun_mul (hq.has U)).differentiableAt.hasDerivAt |
| 65 | |
| 66 | /-- Unnormalized Haar integral (probability Haar prior; does not forget spectator |
| 67 | contact derivatives). Regularity only needed in one direction. -/ |
| 68 | theorem haar_deriv (h : Varies x d c f) : ∫ U, Dlink x d c f U ∂prior G n = 0 := by |
| 69 | let μ := prior G n |
| 70 | let F (t : ℝ) U := f (bump x d c t U) |
| 71 | have hF (t) : Measurable (F t) := h.tame.meas.comp (continuous_modify ..).measurable |
| 72 | have he t : ∫ U, F t U ∂μ = ∫ U, f U ∂μ := by |
| 73 | have he := prior_modify x d (G.lieExp (t • c)) |
| 74 | have hp := integral_map (μ:=μ) (φ:=bump x d c t) (f:=f) he.measurable.aemeasurable h.tame.meas.aestronglyMeasurable |
| 75 | rw [show Measure.map (bump x d c t) μ=μ from he.map_eq] at hp; exact hp.symm |
| 76 | let A (t : ℝ) U := Dlink x d c f (bump x d c t U) |
| 77 | obtain ⟨C,hC,hb⟩ := h.slope.bounded |
| 78 | obtain ⟨-,hd⟩ := hasDerivAt_integral_of_dominated_loc_of_deriv_le (μ:=μ) (F:=F) (x₀:=0) (F':=A) (bound:=fun _ => C) |
| 79 | (s:=univ) univ_mem (.of_forall (fun t => (hF t).aestronglyMeasurable)) (by simpa [F] using h.tame.int μ) |
| 80 | (by simpa [A] using h.slope.meas.aestronglyMeasurable) (.of_forall (fun U t _ => hb _)) (integrable_const _) |
| 81 | (.of_forall (fun U t _ => h.atTime U t)) |
| 82 | simp only [A,bump_zero,he] at hd; exact hd.unique (hasDerivAt_const ..) |
| 83 | |
| 84 | abbrev bill (β : ℝ) (U : Config G n) : ℂ := (bare β U : ℝ) |
| 85 | lemma bare_varies (β : ℝ) : Varies x d c (bill β) := by |
| 86 | have ht (U : Config G n) : HasDerivAt (fun t => bill β (bump x d c t U)) |
| 87 | (bill β U * ((↑(-β * ⟪c,force U x d⟫_ℝ) : ℂ))) 0 := by |
| 88 | exact (Complex.ofRealCLM.hasFDerivAt.comp_hasDerivAt 0 (bare_variation β x d c 0 U)).congr_deriv (by simp [Complex.ofReal_mul]) |
| 89 | have he U := (ht U).deriv |
| 90 | refine ⟨tame_of_continuous (Complex.continuous_ofReal.comp (bare_cont β)),tame_of_continuous ?_,fun U => (ht U).differentiableAt.hasDerivAt⟩ |
| 91 | rw [show Dlink x d c (bill β) = _ from funext he]; unfold bill; fun_prop |
| 92 | |
| 93 | private def cost (x : Site n) (d : Step) (c : G.Color) (U : Config G n) : ℂ := ⟪c,force U x d⟫_ℝ |
| 94 | @[fun_prop] lemma continuous_cost (x : Site n) (d : Step) (c : G.Color) : Continuous (cost x d c) := by unfold cost; fun_prop |
| 95 | |
| 96 | /-- Finite change of variables on the actual normalized Wilson law, including β and |
| 97 | all insertions inside f. No division by β needed. Includes every finite period and β=0. -/ |
| 98 | theorem wilson_deriv (h : Varies x d c f) (β : ℝ) : |
| 99 | moment β (fun U => (↑(β * ⟪c,force U x d⟫_ℝ) : ℂ) * f U) = moment β (Dlink x d c f) := by |
| 100 | have hc : Continuous (fun U => (↑(β * ⟪c,force U x d⟫_ℝ) : ℂ)) := by fun_prop |
| 101 | have hP := (tame_of_continuous hc).mul h.tame |
| 102 | have hf : Tame (bill (G:=G) (n:=n) β) := (tame_of_continuous (Complex.continuous_ofReal.comp (bare_cont β) : Continuous (bill (G:=G) (n:=n) β))) |
| 103 | have he (U : Config G n) : Dlink x d c (bill β) U = -bill β U * ↑(β * ⟪c,force U x d⟫_ℝ) := by |
| 104 | have ht := (Complex.ofRealCLM.hasFDerivAt.comp_hasDerivAt 0 (bare_variation β x d c 0 U)).deriv |
| 105 | change Dlink x d c (bill β) U = (↑(bare β _ * (_ * _) : ℝ) : ℂ) at ht |
| 106 | rw [ht, bump_zero,Complex.ofReal_mul, neg_mul,Complex.ofReal_neg,neg_mul,mul_neg] |
| 107 | have hp (U) : Dlink x d c (fun V => bill β V * f V) U = |
| 108 | bill β U * Dlink x d c f U - bill β U * (↑(β * ⟪c,force U x d⟫_ℝ) * f U) := by rw [(bare_varies β).Dmul h, he]; ring |
| 109 | rw [moment_formula _ _ (hP.int _),moment_formula _ _ (h.slope.int _)]; congr 1 |
| 110 | have hl := haar_deriv ((bare_varies β).mul h) |
| 111 | rw [funext hp, integral_sub ((hf.mul h.slope).int _) ((hf.mul hP).int _)] at hl |
| 112 | exact (sub_eq_zero.mp hl).symm |
| 113 | |
| 114 | /-- Scalar-weighted direction, normalized equation insertion at βG − div scale. -/ |
| 115 | def insertion (β : ℝ) (x : Site n) (d : Step) (c : G.Color) (g : Config G n → ℂ) U := |
| 116 | (↑(β * ⟪c,force U x d⟫_ℝ) : ℂ)*g U - Dlink x d c g U |
| 117 | |
| 118 | lemma Varies.tameInsertion (h : Varies x d c g) (β : ℝ) : Tame (insertion β x d c g) := |
| 119 | ((tame_of_continuous (show Continuous (fun U => (↑(β * ⟪c,force U x d⟫_ℝ) : ℂ)) by fun_prop)).mul h.tame).sub h.slope |
| 120 | |
| 121 | theorem insertion_moment (h : Varies x d c g) (hf : Varies x d c f) (β : ℝ) : |
| 122 | moment β (fun U => insertion β x d c g U * f U) = moment β (fun U => g U * Dlink x d c f U) := by |
| 123 | have ht := wilson_deriv (h.mul hf) β |
| 124 | unfold moment at * |
| 125 | simp_rw [h.Dmul hf] at ht |
| 126 | simp_rw [integral_add ((h.slope.mul hf.tame).int _) ((h.tame.mul hf.slope).int _)] at ht |
| 127 | have hc : Continuous (fun U => (↑(β * ⟪c,force U x d⟫_ℝ) : ℂ)) := by fun_prop |
| 128 | simp_rw [insertion, sub_mul, mul_assoc, integral_sub (((tame_of_continuous hc).mul (h.tame.mul hf.tame)).int _) ((h.slope.mul hf.tame).int _),ht,add_sub_cancel_left] |
| 129 | |
| 130 | abbrev orth (i : G.ColorIndex) : G.Color := (EuclideanSpace.basisFun _ ℝ) i |
| 131 | |
| 132 | lemma orth_inner (x : G.Color) (i : G.ColorIndex) : ⟪orth i, x⟫_ℝ = x i := by simp [orth, EuclideanSpace.basisFun_apply, EuclideanSpace.inner_single_left] |
| 133 | |
| 134 | def divLink (x : Site n) (d : Step) (X : Config G n → G.Color) U := ∑ i : G.ColorIndex, Dlink x d (orth i) X U i |
| 135 | |
| 136 | |
| 137 | |
| 138 | @[fun_prop] theorem continuous_divLink (x : Site n) (d : Step) {X : Config G n → G.Color} (hX : RegularD X) : Continuous (divLink x d X) := by |
| 139 | unfold divLink; fun_prop (disch:=assumption) |
| 140 | |
| 141 | def equation (β : ℝ) (x : Site n) (d : Step) (X : Config G n → G.Color) (U : Config G n) := β * ⟪X U,force U x d⟫_ℝ - divLink x d X U |
| 142 | |
| 143 | |
| 144 | |
| 145 | |
| 146 | abbrev paint (X : Config G n → G.Color) (i : G.ColorIndex) (U : Config G n) := (↑(X U i) : ℂ) |
| 147 | lemma regular_paint {X : Config G n → G.Color} (i : G.ColorIndex) (h : RegularD X) : RegularD (paint X i) := h.post (Complex.ofRealCLM.comp (EuclideanSpace.proj i)) |
| 148 | lemma D_paint (x : Site n) (d : Step) (c : G.Color) (U : Config G n) (i : G.ColorIndex) {X : Config G n → G.Color} (h : RegularD X) : |
| 149 | Dlink x d c (paint X i) U = ↑(Dlink x d c X U i) := ((Complex.ofRealCLM.comp (EuclideanSpace.proj i)).hasFDerivAt.comp_hasDerivAt 0 (h.has x d U c)).deriv |
| 150 | lemma insertion_sum (β : ℝ) (x : Site n) (d : Step) {X : Config G n → G.Color} (hX : RegularD X) (U : Config G n) : |
| 151 | ∑ i, insertion β x d (orth i) (paint X i) U = (equation β x d X U : ℂ) := by |
| 152 | have h : ∀ i, ↑(β * ⟪orth i,force U x d⟫_ℝ) * paint X i U = ((β * (X U i * force U x d i) : ℝ):ℂ) := by |
| 153 | intro i; rw [orth_inner]; push_cast; unfold paint; ring |
| 154 | simp only [insertion, equation, h, D_paint x d _ U _ hX,Finset.sum_sub_distrib, ← Complex.ofReal_sum, ← Finset.mul_sum] |
| 155 | rw [← Complex.ofReal_sub]; congr 2 |
| 156 | simp only [real_inner_comm (force U x d), EuclideanSpace.inner_eq_star_dotProduct,star_trivial,dotProduct,Finset.mul_sum] |
| 157 | |
| 158 | |
| 159 | def contact (x : Site n) (d : Step) (X : Config G n → G.Color) (f : Config G n → ℂ) U := ∑ i, paint X i U * Dlink x d (orth i) f U |
| 160 | |
| 161 | |
| 162 | /-- Change-of-variables identity for a vector field in physical color coordinates; complex |
| 163 | extension by linear combinations, β nonzero for the inverse-β version. -/ |
| 164 | theorem equation_moment (β : ℝ) {X : Config G n → G.Color} (hX : RegularD X) (hf : ∀ i, Varies x d (orth i) f) : |
| 165 | moment β (fun U => ↑(equation β x d X U) * f U) = moment β (contact x d X f) := by |
| 166 | simp_rw [← insertion_sum β _ d hX, Finset.sum_mul,moment,contact, |
| 167 | integral_finsetSum _ (fun i _ => (((regular_paint i hX).varies.tameInsertion β).mul (hf i).tame).int _), |
| 168 | integral_finsetSum _ (fun i _ => ((tame_of_continuous (regular_paint i hX).cont).mul (hf i).slope).int _)] |
| 169 | exact Finset.sum_congr rfl fun i _ => insertion_moment (regular_paint i hX).varies (hf i) β |
| 170 | lemma equation_continuous (β : ℝ) (x : Site n) (d : Step) {X : Config G n → G.Color} (hX : RegularD X) : Continuous (equation β x d X) := |
| 171 | (continuous_const.mul (hX.cont.inner (𝕜:=ℝ) (force_cont ..))).sub (continuous_divLink x d hX) |
| 172 | |
| 173 | |
| 174 | theorem haar_nullity (β : ℝ) {X : Config G n → G.Color} (hX : RegularD X) (h : Tame f) {B : Set (Site n)} (hb : LocalOn B f) (he : x∉B ∨ x+d.vec∉B) : |
| 175 | moment β (fun U => ↑(equation β x d X U) * f U) = 0 := by |
| 176 | rw [equation_moment β hX (fun _ => Varies.localOn h hb he)]; simp [moment, contact, Dlink_off hb he] |
| 177 | end YM.StressFlux |