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.Primitives.SMALL_FIELD_EXTERIOR.Range |
| 2 | |
| 3 | /-! |
| 4 | # Normalized covariance estimate with site weights |
| 5 | |
| 6 | In a conjugated Hessian gap regime one can charge inverse weights at the |
| 7 | second test. Unweighted reads off a Poincaré constant from the *actual* |
| 8 | Hessian lower bound; the weight clause needs its own verification. No |
| 9 | ambient coordinate count in this estimate. |
| 10 | -/ |
| 11 | set_option autoImplicit false |
| 12 | noncomputable section |
| 13 | namespace YM.Primitives.SmallFieldExterior |
| 14 | open Function Set Filter MeasureTheory |
| 15 | open scoped BigOperators Topology ContDiff |
| 16 | |
| 17 | variable {ι : Type} [Fintype ι] [DecidableEq ι] {V u f g : Points ι → ℝ} {w : ι → ℝ} {r m d : ℝ} |
| 18 | |
| 19 | private lemma calculus (hV : ContinuousOn V (cube ι r)) (hf : Regular r 1 f) (hg : Regular r 1 g) {q p : ι → ℝ} : |
| 20 | |∑ i, q i * p i * bracket r V (pc i f) (pc i g)| ≤ Dirichlet q r V f * Dirichlet p r V g := by |
| 21 | let a i := |q i| * size r V (pc i f) |
| 22 | let b i := |p i| * size r V (pc i g) |
| 23 | have he : (∑ i,a i*b i)^2 ≤ (Dirichlet q r V f * Dirichlet p r V g)^2 := by |
| 24 | have hh := Finset.sum_mul_sq_le_sq_mul_sq Finset.univ a b |
| 25 | rw [mul_pow,dirichlet_sq,dirichlet_sq] |
| 26 | simpa only [a,b,mul_pow,sq_abs] using hh |
| 27 | apply (Finset.abs_sum_le_sum_abs _ _).trans |
| 28 | apply le_trans _ (le_of_abs_le (abs_le_of_sq_le_sq he (mul_nonneg (dirichlet_nn ..) (dirichlet_nn ..)))) |
| 29 | refine Finset.sum_le_sum fun i _ => ?_ |
| 30 | rw [abs_mul,abs_mul]; apply (mul_le_mul_of_nonneg_left (cauchy hV (hf.tangent_continuous i) (hg.tangent_continuous i)) |
| 31 | (by positivity : 0 ≤ |q i| * |p i|)).trans_eq |
| 32 | unfold a b; ring |
| 33 | lemma inverse_weights (hr : 0 ≤ r) (hu : Neumann r u) (hf : Regular r 1 f) (hV : Regular r 2 V) (hw : ∀ i, w i ≠ 0) : |
| 34 | |bracket r V (elliptic V u) f| ≤ Dirichlet w r V u * Dirichlet w⁻¹ r V f := by |
| 35 | rw [hu.energy hr hV hf] |
| 36 | simpa only [Pi.inv_apply,mul_inv_cancel₀ (hw _),one_mul] using calculus hV.cOn (hu.reg) hf (q:=w) (p:=w⁻¹) |
| 37 | lemma same_weights (hr : 0 ≤ r) (hu : Neumann r u) (hf : Regular r 1 f) (hV : Regular r 2 V) (w : ι → ℝ) : |
| 38 | |bracket r V (adjRow w V u) f| ≤ Dirichlet w r V u * Dirichlet w r V f := by |
| 39 | have hc (i) : ContinuousOn (w i^2 • row V i u) (cube ι r) := ((hu.row1 hV i).smul _).cOn |
| 40 | unfold adjRow; rw [bracket_sum hV.cOn _ (fun i _ => hc i) hf.cOn] |
| 41 | simp_rw [bracket_smul, hu.by_row hr (hV.mono (k:=1) (by norm_num)) hf, pow_two] |
| 42 | exact calculus hV.cOn hu.reg hf |
| 43 | |
| 44 | /-- Gradient estimate for approximate inverse on the Neumann range, in the |
| 45 | WEIGHTED counting metric. Thus the weighting method affects responses, not |
| 46 | merely pointwise entries of an inverse Hessian. -/ |
| 47 | theorem gradient_budget (hr : 0 < r) (hV : Regular r 2 V) (hB : Charged r V 0) (hm : 0 < m) |
| 48 | (hw : ∀ i,w i ≠ 0) (hh : ∀ x∈cube ι r, YM.Push.Uniform.Charge (conjugated w (curvature V x)) m) |
| 49 | (hf : Regular r 1 f) (h : raw r V f=0) (hd : 0 < d) : |
| 50 | ∃ u, Neumann r u ∧ size r V (f-elliptic V u) ≤ d ∧ Dirichlet w r V u ≤ Dirichlet w r V f / m + d := by |
| 51 | obtain ⟨K,hK,hy⟩ := row_size hr hV hB w |
| 52 | let S := K*(size r V f+d) |
| 53 | have hs : 0 < S := mul_pos hK (by have := size_nn r V f; linarith) |
| 54 | let a := Dirichlet w r V f |
| 55 | let ε := min d (m*d^2/S) |
| 56 | have he : 0 < ε := lt_min hd (by positivity) |
| 57 | obtain ⟨u,hu,hc⟩ := range_zero hr hV hB hf.cOn h he |
| 58 | let L := elliptic V u; let A := adjRow w V u |
| 59 | have hL : ContinuousOn L (cube ι r) := (hu.elliptic1 hV).cOn |
| 60 | have hA : ContinuousOn A (cube ι r) := (Regular.fsum (n:=1) _ (f:=fun i=>w i^2 • row V i u) fun i _ => |
| 61 | (hu.row1 hV i).smul _).cOn |
| 62 | have hi : size r V (f-L) ≤ d := hc.trans (min_le_left ..) |
| 63 | refine ⟨u,hu,hi,?_⟩ |
| 64 | have hp : size r V A ≤ S := (hy u hu).trans (mul_le_mul_of_nonneg_left |
| 65 | ((deficit hV.cOn hL hf.cOn).trans (add_le_add (le_refl _) hi)) hK.le) |
| 66 | have hw : |bracket r V A L - bracket r V A f| ≤ m*d^2 := by |
| 67 | rw [abs_sub_comm, bracket_sym r V A L,bracket_sym r V A f,← bracket_sub hV.cOn hf.cOn hL hA] |
| 68 | exact (cauchy hV.cOn (hf.cOn.sub hL) hA).trans ((mul_le_mul |
| 69 | (show size r V (f-L) ≤ m*d^2/S from hc.trans (min_le_right ..)) hp |
| 70 | (size_nn ..) (by positivity)).trans_eq (by field_simp)) |
| 71 | let b := Dirichlet w r V u |
| 72 | have h₁ : m*b^2 ≤ bracket r V A L := weighed hr.le hu hV (by assumption) hh |
| 73 | have h₂ : bracket r V A L-bracket r V A f ≤ m*d^2 := le_of_abs_le hw |
| 74 | have h₃ : bracket r V A f ≤ b*a := le_of_abs_le (same_weights hr.le hu hf hV _) |
| 75 | have ha : 0 ≤ a/m := div_nonneg (dirichlet_nn ..) hm.le |
| 76 | have hz : m*(a/m)=a := by field_simp |
| 77 | change b ≤ a/m+d |
| 78 | apply le_of_not_gt |
| 79 | intro hv |
| 80 | have hhh : m*d < m*b-a := by linarith only [mul_lt_mul_of_pos_left hv hm,hz] |
| 81 | have h' := mul_le_mul_of_nonneg_left hhh.le (show 0 ≤ b from dirichlet_nn ..) |
| 82 | have h'' := mul_lt_mul_of_pos_left (show d < b by linarith only [ha,hv]) (mul_pos hm hd) |
| 83 | linarith |
| 84 | |
| 85 | private lemma kernel (hr : 0 < r) (hV : Regular r 2 V) (hB : Charged r V 0) (hm : 0 < m) |
| 86 | (hw : ∀ i,w i ≠ 0) (hh : ∀ x∈cube ι r, YM.Push.Uniform.Charge (conjugated w (curvature V x)) m) |
| 87 | (hf : Regular r 1 f) (h : raw r V f=0) (hg : Regular r 1 g) : |
| 88 | |bracket r V f g| ≤ Dirichlet w r V f/m*Dirichlet w⁻¹ r V g := by |
| 89 | refine le_of_forall_pos_le_add fun ε he => ?_ |
| 90 | let C := Dirichlet w⁻¹ r V g |
| 91 | let a := size r V g |
| 92 | have hC : 0 ≤ C := dirichlet_nn .. |
| 93 | have ht : 0 < C+a+1 := by have ha : 0 ≤ a := size_nn ..; linarith |
| 94 | let d := ε/(C+a+1) |
| 95 | have hd : 0 < d := div_pos he ht |
| 96 | obtain ⟨u,hu,hp,hs⟩ := gradient_budget hr hV hB hm hw hh hf h hd |
| 97 | let L := elliptic V u |
| 98 | have hL : ContinuousOn L (cube ι r) := (hu.elliptic1 hV).cOn |
| 99 | calc |
| 100 | _ ≤ |bracket r V L g| + |bracket r V (f-L) g| := by rw [bracket_sub hV.cOn hf.cOn hL hg.cOn]; |
| 101 | exact abs_add_le .. |>.trans' (Eq.le (by rw [add_sub_cancel])) |
| 102 | _ ≤ (Dirichlet w r V f/m+d)*C+d*a := add_le_add ((inverse_weights hr.le hu hg hV hw).trans |
| 103 | (mul_le_mul_of_nonneg_right hs hC)) ((cauchy hV.cOn (hf.cOn.sub hL) hg.cOn).trans (mul_le_mul_of_nonneg_right hp (size_nn ..))) |
| 104 | _ ≤ _ := by |
| 105 | have heq : d*(C+a+1)=ε := div_mul_cancel₀ _ ht.ne' |
| 106 | change _ ≤ _/m*C+ε; linarith |
| 107 | |
| 108 | def mean (r : ℝ) (V f : Points ι → ℝ) : ℝ := raw r V f / raw r V 1 |
| 109 | |
| 110 | def covariance (r : ℝ) (V f g : Points ι → ℝ) := mean r V (f*g)- mean r V f * mean r V g |
| 111 | |
| 112 | def chargeNorm (w : ι → ℝ) (r : ℝ) (V f : Points ι → ℝ) := Real.sqrt (∑ i, w i ^ 2 * mean r V (pc i f ^ 2)) |
| 113 | |
| 114 | lemma chargeNorm_nn (w : ι → ℝ) (r : ℝ) (V f : Points ι → ℝ) : 0 ≤ chargeNorm w r V f := Real.sqrt_nonneg _ |
| 115 | lemma chargeNorm_eq (hr : 0 < r) (hV : Regular r 2 V) (w : ι → ℝ) (f : Points ι → ℝ) : |
| 116 | chargeNorm w r V f = Dirichlet w r V f / Real.sqrt (raw r V 1) := by |
| 117 | have hz := raw_one_pos hr hV.cOn |
| 118 | unfold chargeNorm mean; simp_rw [← mul_div_assoc,← Finset.sum_div,pow_two (pc _ _)] |
| 119 | rw [show ∑ x : ι, w x^2*raw r V (pc x f*pc x f) = Dirichlet w r V f ^2 by simp_rw [dirichlet_sq,size_sq]; rfl, |
| 120 | Real.sqrt_div (by positivity), Real.sqrt_sq (dirichlet_nn ..)] |
| 121 | |
| 122 | /-- The variance/covariance estimate in normalized units. Hessian hypotheses |
| 123 | sufficient here are positive weighting gap and ordinary convexity of |
| 124 | the total potential (genuine strong-convex uses include the scalar margin). |
| 125 | Both f and g genuine, no scalar/tensor/Hessian domination input on their laws. -/ |
| 126 | theorem normalized (hr : 0 < r) (hV : Regular r 2 V) (hB : Charged r V 0) (hm : 0 < m) |
| 127 | (hw : ∀ i,w i ≠ 0) (hh : ∀ x∈cube ι r, YM.Push.Uniform.Charge (conjugated w (curvature V x)) m) |
| 128 | (hf : Regular r 1 f) (hg : Regular r 1 g) : |
| 129 | |covariance r V f g| ≤ chargeNorm w r V f / m * chargeNorm w⁻¹ r V g := by |
| 130 | let Z := raw r V 1; let a := mean r V f |
| 131 | have hp : 0 < Z := raw_one_pos hr hV.cOn |
| 132 | let c : Points ι → ℝ := fun _ => a; let L := f-c |
| 133 | have hi : c=a • 1 := by ext; simp [c] |
| 134 | have H : Regular r 1 L := hf.sub (Regular.coefficient a) |
| 135 | have ha : a*Z=raw r V f := div_mul_cancel₀ _ hp.ne' |
| 136 | have hc : ContinuousOn c (cube ι r) := continuousOn_const |
| 137 | have hz : raw r V L=0 := by unfold L; rw [raw_sub hV.cOn hf.cOn hc, hi,raw_smul]; exact sub_eq_zero.mpr ha.symm |
| 138 | have he : covariance r V f g= bracket r V L g / Z := by |
| 139 | unfold L; rw [bracket_sub hV.cOn hf.cOn hc hg.cOn,hi,bracket_smul]; unfold bracket covariance |
| 140 | rw [one_mul]; change _/Z-a*(_/Z)=_/Z; ring |
| 141 | have hq i : size r V (pc i L)=size r V (pc i f) := size_congr V (fun x hx => by |
| 142 | unfold L |
| 143 | rw [pc_minus i (hf.diff one_ne_zero hx) (differentiableAt_const a), show pc i c x=0 from congr_fun (pc_const i a) x, sub_zero]) |
| 144 | have hT : Dirichlet w r V L=Dirichlet w r V f := by unfold Dirichlet; simp_rw [hq] |
| 145 | have hk := kernel hr hV hB hm hw hh H hz hg |
| 146 | rw [hT] at hk |
| 147 | rw [chargeNorm_eq hr hV, chargeNorm_eq hr hV,he,abs_div, abs_of_nonneg hp.le] |
| 148 | exact (div_le_div_of_nonneg_right hk hp.le).trans_eq (by |
| 149 | change _ = (_/Real.sqrt Z /m)*(_/Real.sqrt Z); field_simp; rw [Real.sq_sqrt hp.le]) |
| 150 | |
| 151 | -- ordinary Hessian Poincaré gap |
| 152 | |
| 153 | end YM.Primitives.SmallFieldExterior |