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.FREE_RESOLVENT.Gap |
| 2 | |
| 3 | /-! |
| 4 | # Weighted finite-matrix resolvent |
| 5 | |
| 6 | Use diagonal weight conjugation with `exp` and a real shift `+ u I`. |
| 7 | Dimension-*independent* pointwise cost: no comparison of l¹ |
| 8 | and l² at all sites. The only volume constant paid to conclude Schur |
| 9 | bounds is for summing an exponential of distance with some of the width. |
| 10 | Use the very same threshold for every principal submatrix (every window). |
| 11 | |
| 12 | `safeRate` is symbolic schedule data (no M based on the sampled volume |
| 13 | allowed for a uniform application). The shift is not charged in the width. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | noncomputable section |
| 18 | namespace YM.FreeResolvent |
| 19 | open Matrix |
| 20 | open scoped BigOperators |
| 21 | variable {X ι : Type*} |
| 22 | |
| 23 | section tilt |
| 24 | variable [Fintype ι] |
| 25 | /-- Diagonal weight tilt (value at the output divided by that at the input). -/ |
| 26 | def tilt (F : ι → ℝ) (A : Matrix ι ι ℝ) : Matrix ι ι ℝ := |
| 27 | of fun i j => Real.exp (F i-F j) * A i j |
| 28 | |
| 29 | lemma tilt_mul (F : ι → ℝ) (A B : Matrix ι ι ℝ) : tilt F A * tilt F B = tilt F (A*B) := by |
| 30 | ext i j; simp only [tilt,Matrix.mul_apply,Matrix.of_apply,Finset.mul_sum] |
| 31 | refine Finset.sum_congr rfl fun k _ => ?_ |
| 32 | rw [show F i-F j = (F i-F k)+(F k-F j) by ring, Real.exp_add]; ring |
| 33 | |
| 34 | omit [Fintype ι] in |
| 35 | @[simp] lemma tilt_one [DecidableEq ι] (F : ι → ℝ) : tilt F 1 = 1 := by |
| 36 | ext i j; by_cases i=j <;> simp [*,tilt,Matrix.one_apply] |
| 37 | |
| 38 | omit [Fintype ι] in |
| 39 | lemma tilt_shift [DecidableEq ι] (F : ι → ℝ) (A : Matrix ι ι ℝ) (u : ℝ) : tilt F (A + u • 1) = tilt F A + u • 1 := by |
| 40 | ext i j; by_cases i=j <;> simp [*,tilt,Matrix.one_apply] |
| 41 | |
| 42 | -- useful without small-s assumption |
| 43 | lemma exp_move (s : ℝ) : |Real.exp s - 1| ≤ |s| * Real.exp |s| := by |
| 44 | by_cases h : 0 ≤ s |
| 45 | · rw [abs_of_nonneg h, abs_of_nonneg (sub_nonneg.mpr (Real.one_le_exp h))] |
| 46 | have hh := mul_le_mul_of_nonneg_right (Real.add_one_le_exp (-s)) (Real.exp_pos s).le |
| 47 | rw [← Real.exp_add, neg_add_cancel, Real.exp_zero] at hh |
| 48 | linarith |
| 49 | have ha := Real.add_one_le_exp s |
| 50 | have he : Real.exp s ≤ 1 := by simpa using Real.exp_monotone (le_of_lt (lt_of_not_ge h)) |
| 51 | rw [abs_of_nonpos (sub_nonpos.mpr he), abs_of_nonpos (le_of_lt (lt_of_not_ge h))] |
| 52 | have hz : 1 ≤ Real.exp (-s) := Real.one_le_exp (neg_nonneg.mpr (le_of_lt (lt_of_not_ge h))) |
| 53 | linarith only [ha, mul_le_mul_of_nonneg_left hz (neg_nonneg.mpr (le_of_lt (lt_of_not_ge h)))] |
| 54 | |
| 55 | lemma exp_distortion (D : Cost X) (x y : X) {s σ γ : ℝ} (hγ : 0 ≤ γ) (hg : γ < σ) |
| 56 | (he : |s| ≤ γ * D.d x y) : |
| 57 | |Real.exp s - 1| ≤ γ * (σ-γ)⁻¹ * D.weight σ x y := by |
| 58 | have hd := D.nonneg x y |
| 59 | have hw := sub_pos.mpr hg |
| 60 | have hb : D.d x y ≤ (σ-γ)⁻¹ * D.weight (σ-γ) x y := by |
| 61 | rw [inv_mul_eq_div, le_div_iff₀ hw] |
| 62 | unfold Cost.weight; linarith only [Real.add_one_le_exp ((σ-γ)*D.d x y)] |
| 63 | calc |
| 64 | _ ≤ |s| * Real.exp |s| := exp_move _ |
| 65 | _ ≤ (γ * ((σ-γ)⁻¹ * D.weight (σ-γ) x y)) * D.weight γ x y := by |
| 66 | refine mul_le_mul (he.trans (mul_le_mul_of_nonneg_left hb hγ)) (Real.exp_monotone he) |
| 67 | (Real.exp_pos _).le (mul_nonneg hγ (mul_nonneg (inv_pos.mpr hw).le (D.weight_pos ..).le)) |
| 68 | _ = _ := by rw [mul_assoc _ _ (D.weight γ _ _), mul_assoc _ _ (D.weight γ _ _), |
| 69 | ← D.weight_add, sub_add_cancel]; ring |
| 70 | |
| 71 | /-- Schur control of change in quadratic form generator. Only uses the |
| 72 | Lipschitz condition. No sup bound on the conjugators required. -/ |
| 73 | lemma tilt_deviation (D : Cost X) (a : ι → X) (F : ι → ℝ) |
| 74 | {σ γ M : ℝ} {A : Matrix ι ι ℝ} (hγ : 0 ≤ γ) (hg : γ < σ) |
| 75 | (hF : ∀ i j, |F i - F j| ≤ γ * D.d (a i) (a j)) (hA : D.Schur a a σ M A) : |
| 76 | D.Schur a a 0 (γ*(σ-γ)⁻¹*M) (tilt F A-A) := by |
| 77 | let t := γ*(σ-γ)⁻¹ |
| 78 | have ht : 0 ≤ t := mul_nonneg hγ (inv_pos.mpr (sub_pos.mpr hg)).le |
| 79 | have h (i j : ι) : |(tilt F A-A) i j| ≤ t*(D.weight σ (a i) (a j)*|A i j|) := by |
| 80 | rw [Matrix.sub_apply, tilt, Matrix.of_apply, |
| 81 | show Real.exp (F i-F j)*A i j - A i j = (Real.exp (F i-F j)-1)*A i j by ring, |
| 82 | abs_mul, ← mul_assoc] |
| 83 | exact mul_le_mul_of_nonneg_right (exp_distortion D _ _ hγ hg (hF i j)) (abs_nonneg _) |
| 84 | constructor <;> constructor <;> intro i |
| 85 | · simp only [Cost.weight_zero, one_mul] |
| 86 | refine le_trans (Finset.sum_le_sum fun j _ => h i j) ?_ |
| 87 | rw [← Finset.mul_sum]; exact mul_le_mul_of_nonneg_left (hA.rows.bound i) ht |
| 88 | simp only [Cost.weight_zero, one_mul, Matrix.transpose_apply] |
| 89 | apply le_trans (Finset.sum_le_sum fun j _ => h j i) |
| 90 | rw [← Finset.mul_sum] |
| 91 | refine mul_le_mul_of_nonneg_left ?_ ht |
| 92 | simpa only [Matrix.transpose_apply,D.weight_symm σ (a i)] using hA.cols.bound i |
| 93 | end tilt |
| 94 | |
| 95 | /-- One common tilt exponent; works also for smaller tilt. Assumes (in |
| 96 | uses) positive width and r, nonnegative M. -/ |
| 97 | def safeRate (σ M r : ℝ) : ℝ := min (σ/2) (r*σ/(4*(M+1))) |
| 98 | lemma rate_pos {σ M r : ℝ} (hσ : 0 < σ) (hM : 0 ≤ M) (hr : 0 < r) : |
| 99 | 0 < safeRate σ M r := lt_min (half_pos hσ) (by positivity) |
| 100 | lemma rate_lt {σ M r : ℝ} (hσ : 0 < σ) : safeRate σ M r < σ := |
| 101 | lt_of_le_of_lt (min_le_left ..) (half_lt_self hσ) |
| 102 | lemma rate_safe {σ M r γ : ℝ} (hσ : 0 < σ) (hM : 0 ≤ M) (hr : 0 ≤ r) (hγ : 0 ≤ γ) |
| 103 | (hg : γ ≤ safeRate σ M r) : γ*(σ-γ)⁻¹*M ≤ r/2 := by |
| 104 | have hh := hg.trans (min_le_left .. : safeRate σ M r ≤ σ/2) |
| 105 | have hw : 0 < σ-γ := sub_pos.mpr (hg.trans_lt (rate_lt hσ)) |
| 106 | have hl := (le_div_iff₀ (show 0 < 4*(M+1) by positivity)).mp (hg.trans (min_le_right ..)) |
| 107 | rw [show γ*(σ-γ)⁻¹*M = (γ*M)/(σ-γ) by ring, div_le_iff₀ hw] |
| 108 | nlinarith only [hγ, mul_le_mul_of_nonneg_right hh hr, hl] |
| 109 | |
| 110 | variable [Fintype ι] [DecidableEq ι] |
| 111 | /-- Total (check invertibility hypotheses for conclusions). -/ |
| 112 | def resolve (A : Matrix ι ι ℝ) (u : ℝ) := (A + u • 1)⁻¹ |
| 113 | |
| 114 | lemma resolve_right {A : Matrix ι ι ℝ} {r u : ℝ} (h : Gap A r) (hr : 0 < r) (hu : 0 ≤ u) : |
| 115 | (A+u • 1) * resolve A u = 1 := Matrix.mul_nonsing_inv _ ((h.shift u).unit_det (by linarith)) |
| 116 | lemma resolve_left {A : Matrix ι ι ℝ} {r u : ℝ} (h : Gap A r) (hr : 0 < r) (hu : 0 ≤ u) : |
| 117 | resolve A u * (A+u • 1) = 1 := Matrix.nonsing_inv_mul _ ((h.shift u).unit_det (by linarith)) |
| 118 | |
| 119 | /-- Same constants for any cardinality/admissible masks. -/ |
| 120 | theorem resolve_point {A : Matrix ι ι ℝ} {D : Cost X} {a : ι → X} {σ M r u γ : ℝ} |
| 121 | (hM : 0 ≤ M) (hσ : 0 < σ) (h : D.Schur a a σ M A) (hw : Gap A r) |
| 122 | (hr : 0 < r) (hu : 0 ≤ u) (hγ : 0 ≤ γ) (hg : γ ≤ safeRate σ M r) (i j : ι) : |
| 123 | |resolve A u i j| ≤ D.weight (-γ) (a i) (a j) * (r/2+u)⁻¹ := by |
| 124 | let F (k : ι) := γ*D.d (a k) (a j) |
| 125 | have hh := tilt_deviation D a F hγ (hg.trans_lt (rate_lt hσ)) (fun x y => by |
| 126 | unfold F; rw [← mul_sub, abs_mul, abs_of_nonneg hγ] |
| 127 | refine mul_le_mul_of_nonneg_left (abs_le.mpr ⟨?_,?_⟩) hγ |
| 128 | · rw [D.comm (a x) (a y)]; linarith only [D.triangle (a y) (a x) (a j)] |
| 129 | linarith only [D.triangle (a x) (a y) (a j)]) h |
| 130 | have hj : Gap (tilt F (A+u • 1)) (r/2+u) := by |
| 131 | rw [tilt_shift] |
| 132 | exact ((hw.perturb hh).mono (by linarith only [rate_safe hσ hM hr.le hγ hg])).shift u |
| 133 | have H := hj.point (by linarith) (B := tilt F (resolve A u)) (by rw [tilt_mul, resolve_right hw hr hu, tilt_one]) i j |
| 134 | rw [Cost.weight_neg, inv_mul_eq_div, le_div_iff₀ (D.weight_pos ..), mul_comm] |
| 135 | simpa only [Cost.weight,tilt,Matrix.of_apply,F,D.self,mul_zero,sub_zero,abs_mul,abs_of_pos (Real.exp_pos _)] using H |
| 136 | |
| 137 | theorem resolve_schur {A : Matrix ι ι ℝ} {D : Cost X} {a : ι → X} {σ M r u γ V : ℝ} |
| 138 | (hM : 0 ≤ M) (hσ : 0 < σ) (h : D.Schur a a σ M A) (hw : Gap A r) |
| 139 | (hr : 0 < r) (hu : 0 ≤ u) (hv : D.Volume a (safeRate σ M r-γ) V) : |
| 140 | D.Schur a a γ (V*(r/2+u)⁻¹) (resolve A u) := |
| 141 | Cost.Schur.of_point (by positivity) (resolve_point hM hσ h hw hr hu (rate_pos hσ hM hr).le le_rfl) hv hv |
| 142 | |
| 143 | lemma uniform_shift (r u : ℝ) (hr : 0 < r) (hu : 0 ≤ u) : |
| 144 | (r/2+u)⁻¹ ≤ (min (r/2) 1)⁻¹ * (1+u)⁻¹ := by |
| 145 | rw [mul_comm, ← _root_.mul_inv_rev] |
| 146 | apply inv_anti₀ (mul_pos (lt_min (half_pos hr) zero_lt_one) (by linarith)) |
| 147 | rw [mul_add, mul_one] |
| 148 | exact add_le_add (min_le_left ..) (mul_le_of_le_one_left hu (min_le_right ..)) |
| 149 | |
| 150 | lemma resolve_diff {A B : Matrix ι ι ℝ} {u : ℝ} |
| 151 | (h : IsUnit (A+u • 1).det) (g : IsUnit (B+u • 1).det) : |
| 152 | resolve B u - resolve A u = resolve B u * (A-B) * resolve A u := by |
| 153 | rw [show A-B = (A+u • 1)-(B+u • 1) by abel, Matrix.mul_sub, Matrix.sub_mul, |
| 154 | Matrix.mul_assoc, show (A+u • 1)*resolve A u = 1 from Matrix.mul_nonsing_inv _ h, |
| 155 | show resolve B u*(B+u • 1) = 1 from Matrix.nonsing_inv_mul _ g] |
| 156 | simp |
| 157 | |
| 158 | |
| 159 | |
| 160 | end YM.FreeResolvent |