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.STATIONARY_UNIFORM.Beacons |
| 2 | import YM.Push.STATIONARY_UNIFORM.Count |
| 3 | |
| 4 | |
| 5 | /-! |
| 6 | # From symbolic Hessian gap & summability to actual counting/sup resolvents |
| 7 | |
| 8 | An alternative to going through Fourier. Even works with irregular |
| 9 | (nontranslation invariant) trees. Use full-site distances on genuine four-dimensional |
| 10 | finite torus with bounded site/T multiplicities. Dimension, gauge group, |
| 11 | spectrum not baked into constants except as they pay these prerequisites. |
| 12 | No projecting away the harmonic input. Edge case no free indices included. |
| 13 | |
| 14 | Widened distance proof: only test coercivity, not Hermitianity, after |
| 15 | exponential weighting. Use φ changing slowly in a single leg's native |
| 16 | distance, for norm of the tilted inverse pay a little gap. Rate in this |
| 17 | bound is not claimed adequate for the LOOP/tilted summability station in the |
| 18 | scheduling ledger. This is for local field-implicit estimates. |
| 19 | -/ |
| 20 | set_option autoImplicit false |
| 21 | noncomputable section |
| 22 | namespace YM.Push.Uniform |
| 23 | open Filter Function Set Metric Lattice Matrix |
| 24 | open scoped Topology ContDiff BigOperators Classical |
| 25 | |
| 26 | variable {n : Side} {ι : Type} [Fintype ι] {l : ι → Site n} {K : ℕ} |
| 27 | variable {S T : Matrix ι ι ℝ} {a r C M : ℝ} |
| 28 | |
| 29 | /-- unweighted coercivity in TRUE counting. don't misread as a uniform |
| 30 | lower bound in Euclidean pairs of matrix of dimension unrelated to period. -/ |
| 31 | def Charge (S : Matrix ι ι ℝ) (m : ℝ) := ∀ v : Positions ι, m * (∑ i, v i^2) ≤ v ⬝ᵥ (S *ᵥ v) |
| 32 | |
| 33 | lemma Charge.positive (h : Charge S M) (he : S.IsHermitian) (hm : 0 < M) : S.PosDef := by |
| 34 | refine posDef_iff_dotProduct_mulVec.mpr ⟨he, fun {x} hx => ?_⟩ |
| 35 | have hp : ∃ i, 0 < x i ^2 := by |
| 36 | by_contra! h0; apply hx; funext i; apply (sq_eq_zero_iff.mp ((h0 i).antisymm (sq_nonneg _))) |
| 37 | rw [star_trivial] |
| 38 | obtain ⟨i,hi⟩ := hp |
| 39 | exact lt_of_lt_of_le (mul_pos hm (hi.trans_le (Finset.single_le_sum (fun i _ => sq_nonneg _) (Finset.mem_univ i)))) (h _) |
| 40 | |
| 41 | def Sealed (l : ι → Site n) (a : ℝ) (S : Matrix ι ι ℝ) (C : ℝ) : Prop := ∀ i j, |S i j| ≤ C*Decay a (l i) (l j) |
| 42 | |
| 43 | section Rows |
| 44 | lemma Sealed.row (h : Sealed l a S C) (ha : 0<a) (hC : 0≤C) (hk : Multiplicity l K) (i) : |
| 45 | (∑ j, |S i j|) ≤ C * ((K:ℝ)*countCost a) := by |
| 46 | apply (Finset.sum_le_sum (f:=fun j => |S i j|) (fun j _ => h i j)).trans |
| 47 | rw [← Finset.mul_sum]; exact mul_le_mul_of_nonneg_left (hk.count l ha _) hC |
| 48 | omit [Fintype ι] in |
| 49 | lemma Sealed.tran (h : Sealed l a S C) : Sealed l a S.transpose C := fun i j => by rw [decay_comm]; exact h j i |
| 50 | |
| 51 | lemma Sealed.weighted (h : Sealed l a S C) (hC : 0≤C) (hk : Multiplicity l K) {r : ℝ} (ha : r<a) (i) : |
| 52 | (∑ j, |S i j| * Real.exp (r * separation (l i) (l j))) ≤ C * ((K:ℝ)*countCost (a-r)) := by |
| 53 | let R := Matrix.of fun i j => S i j * Real.exp (r * separation (l i) (l j)) |
| 54 | have hr i j : |R i j| = |S i j| * Real.exp (r * separation (l i) (l j)) := by rw [show R i j=S i j * Real.exp (r * separation (l i) (l j)) from rfl,abs_mul, abs_of_nonneg (Real.exp_pos _).le] |
| 55 | have hf : Sealed l (a-r) R C := fun i j => by |
| 56 | rw [hr]; apply (mul_le_mul_of_nonneg_right (h i j) (Real.exp_pos _).le).trans_eq |
| 57 | unfold Decay; rw [mul_assoc, ← Real.exp_add]; congr 2; ring |
| 58 | simp_rw [← hr]; exact hf.row (sub_pos.mpr ha) hC hk i |
| 59 | |
| 60 | lemma rows_test (hn : ∀ i, (∑ j, |S i j|) ≤ C) (hc : 0 ≤ C) (v : Positions ι) : ‖(S *ᵥ v)‖ ≤ C*‖v‖ := by |
| 61 | apply (pi_norm_le_iff_of_nonneg (by positivity : 0 ≤ C*‖v‖)).mpr; intro i |
| 62 | rw [Real.norm_eq_abs]; apply le_trans (Finset.abs_sum_le_sum_abs (fun j => S i j*v j) _) |
| 63 | calc |
| 64 | _ ≤ ∑ j, |S i j| * ‖v‖ := Finset.sum_le_sum fun j _ => by |
| 65 | rw [abs_mul]; exact mul_le_mul_of_nonneg_left (norm_le_pi_norm v j) (abs_nonneg _) |
| 66 | _ ≤ _ := by rw [← Finset.sum_mul]; exact mul_le_mul_of_nonneg_right (hn _) (norm_nonneg _) |
| 67 | |
| 68 | lemma quadratic_test (hn : ∀ i, (∑ j, |S i j|) ≤ C) (hj : ∀ j, (∑ i, |S i j|) ≤ C) (v : Positions ι) : |
| 69 | |v ⬝ᵥ (S *ᵥ v)| ≤ C*(∑ i,v i^2) := by |
| 70 | let F i j := |S i j| * v i ^ 2 + |S i j| * v j ^ 2 |
| 71 | have he i j : |v i * (S i j*v j)| ≤ F i j / 2 := by |
| 72 | rw [abs_mul,abs_mul] |
| 73 | unfold F; rw [← sq_abs (v i),← sq_abs (v j)] |
| 74 | nlinarith only [mul_nonneg (abs_nonneg (S i j)) (sq_nonneg (|v i| - |v j|))] |
| 75 | have h₁ : (∑ i, ∑ j, |S i j| * v i ^ 2) ≤ C*(∑ i,v i^2) := by |
| 76 | rw [Finset.mul_sum]; apply Finset.sum_le_sum; intro i _; rw [← Finset.sum_mul]; exact mul_le_mul_of_nonneg_right (hn i) (sq_nonneg _) |
| 77 | have h₂ : (∑ i, ∑ j, |S i j| * v j ^ 2) ≤ C*(∑ i,v i^2) := by |
| 78 | rw [Finset.sum_comm, Finset.mul_sum]; apply Finset.sum_le_sum; intro j _; rw [← Finset.sum_mul]; exact mul_le_mul_of_nonneg_right (hj j) (sq_nonneg _) |
| 79 | conv_lhs => simp only [Matrix.mulVec,dotProduct,Finset.mul_sum] |
| 80 | apply le_trans (Finset.abs_sum_le_sum_abs _ _) |
| 81 | calc |
| 82 | _ ≤ ∑ i, ∑ j, F i j / 2 := Finset.sum_le_sum fun i _ => le_trans (Finset.abs_sum_le_sum_abs _ _) (Finset.sum_le_sum (fun j _ => he i j)) |
| 83 | _ ≤ _ := by simp_rw [← Finset.sum_div,F,Finset.sum_add_distrib]; linarith |
| 84 | |
| 85 | /-- Composes with absolute kernel bounds, no selfadjointness assumption here. -/ |
| 86 | lemma Charge.transfer (hS : Charge S M) (ha : 0<a) (hC : 0≤C) (h : Sealed l a (S-T) C) (hk : Multiplicity l K) : |
| 87 | Charge T (M-C*((K:ℝ)*countCost a)) := by |
| 88 | intro v |
| 89 | have he := quadratic_test (S:=S-T) (h.row ha hC hk) (fun j => h.tran.row ha hC hk j) v |
| 90 | have hh := (abs_le.mp he).2 |
| 91 | rw [Matrix.sub_mulVec, dotProduct_sub] at hh |
| 92 | linarith [hS v] |
| 93 | end Rows |
| 94 | |
| 95 | namespace Charge |
| 96 | |
| 97 | variable [DecidableEq ι] |
| 98 | lemma energy_inverse (h : Charge S M) (hM : 0 < M) (hS : IsUnit S.det) (v : Positions ι) : |
| 99 | (∑ i, ((S⁻¹ *ᵥ v) i)^2) ≤ M⁻¹^2 * ∑ i, v i^2 := by |
| 100 | let w := S⁻¹ *ᵥ v |
| 101 | let r : ℝ := ∑ i,w i^2 |
| 102 | let s : ℝ := ∑ i,v i^2 |
| 103 | have hr : 0 ≤ r := by unfold r; positivity |
| 104 | have hs : 0 ≤ s := by unfold s; positivity |
| 105 | have ht : S *ᵥ w=v := by rw [show w=_ from rfl, Matrix.mulVec_mulVec,S.mul_nonsing_inv hS, one_mulVec] |
| 106 | have he := h w; rw [ht] at he; change M*r ≤ _ at he |
| 107 | have hy : (w ⬝ᵥ v)^2 ≤ r*s := Finset.sum_mul_sq_le_sq_mul_sq _ w v |
| 108 | change r ≤ _*s |
| 109 | rcases eq_or_lt_of_le hr with hr|hr |
| 110 | · rw [← hr]; positivity |
| 111 | have hx := (pow_le_pow_left₀ (mul_nonneg hM.le hr.le) he 2).trans hy |
| 112 | rw [inv_pow,mul_comm, ← div_eq_mul_inv, le_div_iff₀ (by positivity)]; nlinarith |
| 113 | end Charge |
| 114 | |
| 115 | section tilted |
| 116 | |
| 117 | def tilt (a : ℝ) (l : ι → Site n) (x : Site n) (S : Matrix ι ι ℝ) := Matrix.of fun i j => |
| 118 | Real.exp (a*((separation x (l i):ℝ)-(separation x (l j):ℝ))) * S i j |
| 119 | |
| 120 | private lemma modulus (x t : ℝ) (h : |x|≤t) : |1-Real.exp x| ≤ t*Real.exp t := by |
| 121 | have ht := (abs_le.mp h).1; have hh := (abs_le.mp h).2 |
| 122 | have hm := Real.exp_pos t |
| 123 | have he := mul_le_mul_of_nonneg_right (Real.add_one_le_exp (-t)) hm.le |
| 124 | rw [← Real.exp_add,neg_add_cancel,Real.exp_zero] at he |
| 125 | apply abs_le.mpr; constructor |
| 126 | · linarith [Real.exp_monotone hh] |
| 127 | have hu : 1 ≤ Real.exp t := Real.one_le_exp ((abs_nonneg x).trans h) |
| 128 | have hy := le_trans (Real.add_one_le_exp (-t)) (Real.exp_monotone ht) |
| 129 | nlinarith [(abs_nonneg x).trans h] |
| 130 | |
| 131 | omit [Fintype ι] in |
| 132 | lemma Sealed.tilt (h : Sealed l a S C) (ha : 0<a) (hr : 0<r) (hC : 0 ≤ C) (ht : r ≤ a/4) (x : Site n) : |
| 133 | Sealed l (a/2) (S - Uniform.tilt r l x S) (C*r*(4/a)) := by |
| 134 | intro i j |
| 135 | let d : ℝ := separation (l i) (l j); let v : ℝ := separation x (l i); let w : ℝ := separation x (l j) |
| 136 | have hd : 0 ≤ d := by unfold d; positivity |
| 137 | have hv : v ≤ w+d := by |
| 138 | unfold v w d; rw [separation_comm (l i)]; exact_mod_cast separation_triangle x (l j) (l i) |
| 139 | have hw : w ≤ v+d := by unfold w v d; exact_mod_cast separation_triangle x (l i) (l j) |
| 140 | have he := modulus (r*(v-w)) (r*d) (by rw [abs_mul,abs_of_pos hr]; gcongr; rw [abs_le]; constructor <;> linarith) |
| 141 | have hu : d ≤ 4/a * Real.exp ((a/4)*d) := by |
| 142 | rw [div_mul_eq_mul_div, le_div_iff₀ ha]; nlinarith [Real.add_one_le_exp ((a/4)*d)] |
| 143 | have hq := Real.exp_monotone (mul_le_mul_of_nonneg_right ht hd) |
| 144 | have hz : (S - Uniform.tilt r l x S) i j = (1-Real.exp (r*(v-w))) * S i j := by unfold Uniform.tilt; simp only [Matrix.sub_apply, Matrix.of_apply,v,w]; ring |
| 145 | rw [hz,abs_mul]; apply (mul_le_mul he (h i j) (abs_nonneg _) (by positivity)).trans |
| 146 | calc |
| 147 | _ ≤ (r*(4/a * Real.exp ((a/4)*d)) * Real.exp ((a/4)*d)) * (C*Real.exp (-a*d)) := mul_le_mul_of_nonneg_right (mul_le_mul (mul_le_mul_of_nonneg_left hu hr.le) hq (by positivity) (by positivity)) (mul_nonneg hC (Real.exp_pos _).le) |
| 148 | _ = C*r*(4/a)*((Real.exp ((a/4)*d)*Real.exp ((a/4)*d))*Real.exp (-a*d)) := by ring |
| 149 | _ = _ := by unfold Decay; rw [← Real.exp_add, ← Real.exp_add]; congr 2; unfold d; ring |
| 150 | |
| 151 | /-- Useful exponential rate in inverse coordinates. -/ |
| 152 | def tiltWidth (K : ℕ) (M a C : ℝ) := min (a/4) (M/(2*(1+(C*(4/a))*((K:ℝ)*countCost (a/2))))) |
| 153 | |
| 154 | lemma tiltWidth_pos (K : ℕ) (hM : 0<M) (ha : 0<a) (hC : 0 ≤ C) : 0<tiltWidth K M a C := |
| 155 | lt_min (by positivity) (div_pos hM (by have he := count_pos (half_pos ha); positivity)) |
| 156 | |
| 157 | lemma tiltedCharge (h : Sealed l a S C) (hM : 0<M) (ha : 0<a) (hp : Charge S M) (hC : 0≤C) |
| 158 | (hk : Multiplicity l K) (x : Site n) : Charge (tilt (tiltWidth K M a C) l x S) (M/2) := by |
| 159 | let r := tiltWidth K M a C |
| 160 | have hr : 0 < r := tiltWidth_pos K hM ha hC |
| 161 | have he := hp.transfer (half_pos ha) (by positivity) (h.tilt ha hr hC (min_le_left ..) x) hk |
| 162 | have hA : C * r *(4/a)* ((K:ℝ)*countCost (a/2)) ≤ M/2 := by |
| 163 | let v := C*(4/a)*((K:ℝ)*countCost (a/2)) |
| 164 | have hh : 0≤v := by have hy := count_pos (half_pos ha); unfold v; positivity |
| 165 | have hi := (le_div_iff₀ (show 0<2*(1+v) by positivity)).mp (show r ≤ M/(2*(1+v)) from min_le_right ..) |
| 166 | rw [show C*r*(4/a)*((K:ℝ)*countCost (a/2))=r*v by unfold v; ring]; linarith |
| 167 | intro i; apply le_trans _ (he i) |
| 168 | exact mul_le_mul_of_nonneg_right (by linarith only [hA]) (by positivity) |
| 169 | |
| 170 | variable [DecidableEq ι] |
| 171 | lemma inverse_sealed (h : Sealed l a S C) (hM : 0<M) (ha : 0<a) (hp : Charge S M) (hC : 0≤C) |
| 172 | (hk : Multiplicity l K) (hi : IsUnit S.det) : Sealed l (tiltWidth K M a C) S⁻¹ ((M/2)⁻¹) := by |
| 173 | intro i j |
| 174 | let r := tiltWidth K M a C; let m := M/2 |
| 175 | have hm : 0<m := half_pos hM |
| 176 | let x := l j; let u (b : ι) := (S⁻¹) b j |
| 177 | have hx : S *ᵥ u = Pi.single j 1 := by |
| 178 | change S *ᵥ S⁻¹.col j = _ |
| 179 | rw [← mulVec_single_one, mulVec_mulVec, mul_nonsing_inv S hi, one_mulVec] |
| 180 | let w (b : ι) := Real.exp (r*separation x (l b)) |
| 181 | let T := tilt r l x S |
| 182 | let v (b : ι) := w b*u b |
| 183 | have ht b d : T b d * v d=w b*(S b d * u d) := by |
| 184 | dsimp only [T, tilt,Matrix.of_apply,v,w] |
| 185 | rw [mul_sub, Real.exp_sub]; field_simp |
| 186 | have hU : T *ᵥ v=Pi.single j 1 := by |
| 187 | funext b |
| 188 | simp only [mulVec,dotProduct, ht, ← Finset.mul_sum]; change w b * (S *ᵥ u) b = _ |
| 189 | rw [hx]; by_cases h : b=j |
| 190 | · subst b; simp [w,x] |
| 191 | simp [h] |
| 192 | have hb := tiltedCharge h hM ha hp hC hk x v |
| 193 | change m * _ ≤ dotProduct v (T *ᵥ v) at hb |
| 194 | rw [hU, dotProduct] at hb |
| 195 | have h1 : (∑ x, v x * (Pi.single (M:=fun _ => ℝ) j (1:ℝ) x : ℝ))=v j := by rw [Finset.sum_eq_single_of_mem j (Finset.mem_univ _)]; simp; intro b _ hb; simp [hb] |
| 196 | rw [h1] at hb |
| 197 | have hd b : m*(v b)^2 ≤ v j := le_trans (mul_le_mul_of_nonneg_left (Finset.single_le_sum (fun b _ => sq_nonneg (v b)) (Finset.mem_univ _)) hm.le) hb |
| 198 | have hh : v j ≤ m⁻¹ := by |
| 199 | apply le_of_not_gt; intro hs |
| 200 | have hs' : 1 < v j * m := (div_lt_iff₀ hm).1 (by rwa [one_div]) |
| 201 | nlinarith [hd j, inv_pos.mpr hm] |
| 202 | have hv : |v i| ≤ m⁻¹ := by |
| 203 | apply (sq_le_sq₀ (abs_nonneg _) (inv_pos.mpr hm).le).mp |
| 204 | rw [sq_abs]; apply le_of_mul_le_mul_left _ hm |
| 205 | rw [pow_two (a:=m⁻¹),mul_inv_cancel_left₀ hm.ne']; exact (hd i).trans hh |
| 206 | dsimp only [v] at hv; rw [abs_mul, abs_of_pos (show 0 < w i from Real.exp_pos _)] at hv |
| 207 | change |u i| ≤ m⁻¹ * Decay r (l i) x |
| 208 | rwa [decay_comm,Decay,neg_mul,Real.exp_neg,← div_eq_mul_inv,le_div_iff₀ (show 0 < w i from Real.exp_pos _),mul_comm] |
| 209 | end tilted |
| 210 | end YM.Push.Uniform |