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.SectorNext.GAUSSIAN_SECTOR_CHANGE.Gaussian |
| 2 | |
| 3 | /-! |
| 4 | # Exponential of a real affine + quadratic on counting coordinates |
| 5 | |
| 6 | At fixed finite period with the very same type and volume as SectorChange. |
| 7 | Necessity includes a possible flat direction: translations of an L¹ function |
| 8 | cost vanishing mass against a decaying test at infinity, whereas if there is |
| 9 | a nonpositive quadratic direction the sum of two opposite translates of the |
| 10 | kernel dominates the kernel everywhere. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | namespace YM.SectorTools.PhysicalGaussianSwitch |
| 16 | open Function Filter Set Matrix MeasureTheory Next.SectorChange.Gaussian |
| 17 | open scoped Topology BigOperators ENNReal |
| 18 | |
| 19 | section quad |
| 20 | variable {I : Type} [Fintype I] |
| 21 | |
| 22 | /-- Counting metric quadratic form (so `force A = quad A⁻¹`). -/ |
| 23 | def quad (M : Table I) (x : Vec I) : ℝ := x ⬝ᵥ (M *ᵥ x) |
| 24 | |
| 25 | omit [Fintype I] in |
| 26 | lemma star_vec (x : Vec I) : star x = x := by ext; simp |
| 27 | |
| 28 | lemma sumsq_pos {x : Vec I} (h : x ≠ 0) : 0 < x ⬝ᵥ x := by |
| 29 | obtain ⟨i,hi⟩ := Function.ne_iff.mp h |
| 30 | unfold dotProduct |
| 31 | exact lt_of_lt_of_le (mul_self_pos.mpr (show x i ≠ 0 from hi)) |
| 32 | (Finset.single_le_sum (fun j _ => mul_self_nonneg (x j)) (Finset.mem_univ i)) |
| 33 | lemma sumsq_nonneg (x : Vec I) : 0 ≤ x ⬝ᵥ x := Finset.sum_nonneg fun i _ => mul_self_nonneg (x i) |
| 34 | |
| 35 | lemma quad_pos {M : Table I} (h : M.PosDef) {x : Vec I} (hx : x ≠ 0) : 0 < quad M x := by |
| 36 | simpa only [star_vec, quad] using (posDef_iff_dotProduct_mulVec.mp h).2 hx |
| 37 | lemma quad_nonneg {M : Table I} (h : M.PosDef) (x : Vec I) : 0 ≤ quad M x := by |
| 38 | by_cases he : x=0 |
| 39 | · simp [he,quad] |
| 40 | exact (quad_pos h he).le |
| 41 | omit [Fintype I] in |
| 42 | lemma symm_pos {M : Table I} (h : M.PosDef) : M.IsSymm := Matrix.isHermitian_iff_isSymm.mp h.isHermitian |
| 43 | |
| 44 | lemma turn {M : Table I} (h : M.IsSymm) (x y : Vec I) : x ⬝ᵥ (M *ᵥ y) = y ⬝ᵥ (M *ᵥ x) := by |
| 45 | nth_rw 1 [← h.eq] |
| 46 | exact Matrix.dotProduct_transpose_mulVec .. |
| 47 | |
| 48 | lemma quad_add {M : Table I} (h : M.IsSymm) (x y : Vec I) : |
| 49 | quad M (x+y) = quad M x + 2*(x ⬝ᵥ (M *ᵥ y)) + quad M y := by |
| 50 | unfold quad |
| 51 | rw [mulVec_add, add_dotProduct, dotProduct_add, dotProduct_add, turn h y] |
| 52 | ring |
| 53 | lemma quad_sub {M : Table I} (h : M.IsSymm) (x y : Vec I) : |
| 54 | quad M (x-y) = quad M x - 2*(x ⬝ᵥ (M *ᵥ y)) + quad M y := by |
| 55 | rw [sub_eq_add_neg,quad_add h] |
| 56 | unfold quad |
| 57 | rw [Matrix.mulVec_neg,dotProduct_neg,neg_dotProduct,dotProduct_neg]; ring |
| 58 | lemma quad_scale (M : Table I) (u : ℝ) (x : Vec I) : quad M (u • x) = u^2 * quad M x := by |
| 59 | unfold quad; rw [Matrix.mulVec_smul,smul_dotProduct,dotProduct_smul]; simp only [smul_eq_mul]; ring |
| 60 | |
| 61 | lemma quad_smul (M : Table I) (u : ℝ) (x : Vec I) : quad (u • M) x = u * quad M x := by |
| 62 | unfold quad; rw [Matrix.smul_mulVec,dotProduct_smul,smul_eq_mul] |
| 63 | lemma quad_sum (M T : Table I) (x : Vec I) : quad (M+T) x = quad M x + quad T x := by |
| 64 | unfold quad; rw [add_mulVec,dotProduct_add] |
| 65 | lemma quad_diff (M T : Table I) (x : Vec I) : quad (M-T) x = quad M x - quad T x := by |
| 66 | unfold quad; rw [sub_mulVec,dotProduct_sub] |
| 67 | |
| 68 | /-- No constant term. -/ |
| 69 | def exponent (M : Table I) (b x : Vec I) := b ⬝ᵥ x - quad M x / 2 |
| 70 | def kernel (M : Table I) (b x : Vec I) := Real.exp (exponent M b x) |
| 71 | |
| 72 | lemma continuous_exponent (M : Table I) (b : Vec I) : Continuous (exponent M b) := by |
| 73 | unfold exponent quad Matrix.mulVec dotProduct; fun_prop |
| 74 | lemma continuous_kernel (M : Table I) (b : Vec I) : Continuous (kernel M b) := |
| 75 | Real.continuous_exp.comp (continuous_exponent M b) |
| 76 | lemma kernel_pos (M : Table I) (b x : Vec I) : 0 < kernel M b x := Real.exp_pos _ |
| 77 | |
| 78 | variable [DecidableEq I] |
| 79 | lemma unit_det {M : Table I} (h : M.PosDef) : IsUnit M.det := IsUnit.mk0 _ h.det_pos.ne' |
| 80 | |
| 81 | lemma complete {M : Table I} (h : M.PosDef) (b z : Vec I) : |
| 82 | exponent M b z = exponent M 0 (z-M⁻¹ *ᵥ b) + quad M⁻¹ b / 2 := by |
| 83 | have he : M *ᵥ (M⁻¹ *ᵥ b)=b := by rw [mulVec_mulVec,M.mul_nonsing_inv (unit_det h),one_mulVec] |
| 84 | unfold exponent |
| 85 | rw [quad_sub (symm_pos h), he,zero_dotProduct, dotProduct_comm b z] |
| 86 | unfold quad; rw [he,dotProduct_comm (M⁻¹ *ᵥ b) b]; ring |
| 87 | |
| 88 | /-- The unnormalized quadratic calculation, proved FROM the bona fide |
| 89 | probability Gaussian. Positivity of the precision is not optional. -/ |
| 90 | theorem kernel_paid {M : Table I} (h : M.PosDef) (b : Vec I) : |
| 91 | Integrable (kernel M b) ∧ (∫ z, kernel M b z) = coat M⁻¹ * Real.exp (quad M⁻¹ b/2) := by |
| 92 | let C := M⁻¹ |
| 93 | let f := kernel M (0 : Vec I) |
| 94 | have hp : C.PosDef := h.inv |
| 95 | -- centered volume price (under_cloud with a compensating exponent) |
| 96 | have he (x : Vec I) : Real.exp (force C x / 2) • f x = (1:ℝ) := by |
| 97 | unfold f kernel exponent force quad C |
| 98 | rw [M.nonsing_inv_nonsing_inv (unit_det h), zero_dotProduct,zero_sub,smul_eq_mul,← Real.exp_add] |
| 99 | simp |
| 100 | obtain ⟨hg,hg'⟩ := under_cloud hp f |
| 101 | dsimp only at hg hg'; simp_rw [he] at hg hg' |
| 102 | have hf := hg.mpr (integrable_const _) |
| 103 | have hv : (∫ z,f z)=coat C := by simpa using hg' |
| 104 | let m := M⁻¹ *ᵥ b |
| 105 | have ht : Integrable (fun z => f (-m+z)) := by |
| 106 | let e := MeasurableEquiv.addLeft (-m) |
| 107 | have hu : MeasurePreserving e volume volume := measurePreserving_add_left .. |
| 108 | exact (hu.integrable_comp_emb e.measurableEmbedding).mpr hf |
| 109 | have hu : kernel M b = fun z => f (-m+z)*Real.exp (quad C b/2) := by |
| 110 | funext z; unfold kernel; rw [complete h,Real.exp_add,sub_eq_neg_add]; rfl |
| 111 | simp_rw [show ∀ z, kernel M b z = _ from congrFun hu, integral_mul_const, integral_add_left_eq_self, hv]; rw [hu]; exact ⟨ht.mul_const _,rfl⟩ |
| 112 | |
| 113 | end quad |
| 114 | |
| 115 | section necessity |
| 116 | variable {I : Type} [Fintype I] |
| 117 | |
| 118 | private def cutoff (x : Vec I) := Real.exp (-‖x‖) |
| 119 | private lemma cutoff_cont : Continuous (cutoff (I:=I)) := by unfold cutoff; fun_prop |
| 120 | private lemma cutoff_pos (x : Vec I) : 0 < cutoff x := Real.exp_pos _ |
| 121 | private lemma cutoff_le (x : Vec I) : cutoff x ≤ 1 := Real.exp_le_one_iff.mpr (by simp) |
| 122 | |
| 123 | /-- Translations against an everywhere-positive decaying test. -/ |
| 124 | private theorem drifting {f : Vec I → ℝ} (hf : Integrable f) {v : Vec I} (hv : v ≠ 0) : |
| 125 | Tendsto (fun n : ℕ => ∫ x, f ((n:ℝ) • v + x) * cutoff x) atTop (𝓝 0) := by |
| 126 | let u (n : ℕ) := (n:ℝ) • v |
| 127 | let F (n : ℕ) := fun x : Vec I => f x * cutoff (-u n+x) |
| 128 | have hF (n : ℕ) : AEStronglyMeasurable (F n) volume := |
| 129 | hf.aestronglyMeasurable.mul (cutoff_cont.comp (continuous_const.add continuous_id)).aestronglyMeasurable |
| 130 | have hB n : ∀ᵐ x ∂volume, ‖F n x‖ ≤ ‖f x‖ := Eventually.of_forall fun x => by |
| 131 | unfold F; rw [norm_mul,Real.norm_of_nonneg (cutoff_pos _).le] |
| 132 | exact mul_le_of_le_one_right (norm_nonneg _) (cutoff_le _) |
| 133 | have hL : ∀ᵐ x ∂volume, Tendsto (fun n => F n x) atTop (𝓝 0) := Eventually.of_forall fun x => by |
| 134 | have he : Tendsto (fun n => ‖-u n+x‖) atTop atTop := by |
| 135 | refine tendsto_atTop.mpr fun a => ?_ |
| 136 | have ht : Tendsto (fun n => ‖u n‖) atTop atTop := by |
| 137 | unfold u; simp_rw [norm_smul,Real.norm_of_nonneg (Nat.cast_nonneg _)] |
| 138 | exact tendsto_natCast_atTop_atTop.atTop_mul_const (norm_pos_iff.mpr hv) |
| 139 | filter_upwards [ht.eventually_ge_atTop (a+‖x‖)] with n hn |
| 140 | have hh := norm_sub_norm_le (u n) x |
| 141 | rw [show -u n+x=-(u n-x) by abel,norm_neg]; linarith |
| 142 | simpa only [mul_zero,F,cutoff,Function.comp_apply] using ((Real.tendsto_exp_atBot.comp (tendsto_neg_atTop_atBot.comp he)).const_mul (f x)) |
| 143 | have h := tendsto_integral_of_dominated_convergence (fun x => ‖f x‖) hF hf.norm hB (f:=fun _=>0) hL |
| 144 | have he n : (∫ x,F n x)=∫ x, f (u n+x)*cutoff x := by |
| 145 | rw [← integral_add_left_eq_self (F n) (u n)]; simp [F] |
| 146 | simp_rw [he,integral_zero] at h; exact h |
| 147 | |
| 148 | /-- Integrability forces strict positive definiteness of a symmetric |
| 149 | precision, even in presence of the linear term. -/ |
| 150 | theorem kernel_requires {M : Table I} (hM : M.IsSymm) {b : Vec I} (hf : Integrable (kernel M b)) : M.PosDef := by |
| 151 | classical |
| 152 | refine posDef_iff_dotProduct_mulVec.mpr ⟨Matrix.isHermitian_iff_isSymm.mpr hM,fun v hv => ?_⟩ |
| 153 | rw [star_vec]; change 0 < quad M v |
| 154 | by_contra! h |
| 155 | let f := kernel M b; let u (n : ℕ) := (n:ℝ) • v |
| 156 | have hc : Continuous f := continuous_kernel M b |
| 157 | have he z (t : ℝ) : exponent M b (t • v+z) = exponent M b z + t*(b ⬝ᵥ v - v ⬝ᵥ (M *ᵥ z)) - t^2*(quad M v)/2 := by |
| 158 | unfold exponent; rw [quad_add hM,dotProduct_add,dotProduct_smul,quad_scale,smul_dotProduct]; simp only [smul_eq_mul]; ring |
| 159 | have hh z (n : ℕ) : f z ≤ f (u n+z)+f (-u n+z) := by |
| 160 | have ht : exponent M b (u n+z)+exponent M b (-u n+z)≥2*exponent M b z := by |
| 161 | unfold u; rw [he,←neg_smul,he]; nlinarith [mul_nonpos_of_nonneg_of_nonpos (sq_nonneg (n:ℝ)) h] |
| 162 | rcases le_total (exponent M b z) (exponent M b (u n+z)) with h1|h1 |
| 163 | · exact (Real.exp_monotone h1).trans (le_add_of_nonneg_right (kernel_pos M b _).le) |
| 164 | have h2 : f z ≤ f (-u n+z) := Real.exp_monotone (by linarith) |
| 165 | linarith only [h2, show 0<f (u n+z) from kernel_pos ..] |
| 166 | let drift (t x : Vec I) := f (t+x)*cutoff x |
| 167 | have hI (t) : Integrable (drift t) := by |
| 168 | let e := MeasurableEquiv.addLeft t |
| 169 | have h0 : MeasurePreserving e volume volume := measurePreserving_add_left .. |
| 170 | have ht : Integrable (fun x => f (t+x)) := (h0.integrable_comp_emb e.measurableEmbedding).mpr hf |
| 171 | refine ht.norm.mono' (ht.aestronglyMeasurable.mul cutoff_cont.aestronglyMeasurable) (Eventually.of_forall fun x => ?_) |
| 172 | dsimp only [drift]; rw [norm_mul,Real.norm_of_nonneg (cutoff_pos _).le] |
| 173 | exact mul_le_of_le_one_right (norm_nonneg _) (cutoff_le _) |
| 174 | have hl (n : ℕ) : (∫ x, drift 0 x) ≤ (∫ x, drift (u n) x) + ∫ x, drift (-u n) x := by |
| 175 | rw [← integral_add (hI _) (hI _)] |
| 176 | apply integral_mono (hI _) ((hI _).add (hI _)) |
| 177 | intro z |
| 178 | change f (0+z)*cutoff z ≤ _ |
| 179 | rw [zero_add] |
| 180 | simpa [drift,add_mul] using mul_le_mul_of_nonneg_right (hh z n) (cutoff_pos z).le |
| 181 | have ha : 0 < ∫ x, drift 0 x := integral_pos_of_integrable_nonneg_nonzero (by simp only [drift,zero_add]; exact hc.mul cutoff_cont) |
| 182 | (hI 0) (fun _ => mul_nonneg (kernel_pos ..).le (cutoff_pos _).le) |
| 183 | (mul_pos (kernel_pos M b _) (cutoff_pos (0:Vec I))).ne' |
| 184 | have hz : Tendsto (fun n => ∫ x, drift (-(u n)) x) atTop (𝓝 0) := by |
| 185 | simpa only [drift,u,smul_neg] using drifting hf (neg_ne_zero.mpr hv) |
| 186 | have ht := le_of_tendsto_of_tendsto' (tendsto_const_nhds (x:=∫ x, drift 0 x) (f:=atTop)) |
| 187 | ((drifting hf hv).add hz) hl |
| 188 | linarith only [ha, ht] |
| 189 | |
| 190 | -- includes the zero-dimensional case |
| 191 | theorem kernel_integrable_iff {M : Table I} (hM : M.IsSymm) (b : Vec I) : |
| 192 | Integrable (kernel M b) ↔ M.PosDef := by |
| 193 | classical |
| 194 | exact ⟨kernel_requires hM,fun hp => (kernel_paid hp b).1⟩ |
| 195 | end necessity |
| 196 | end YM.SectorTools.PhysicalGaussianSwitch |