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.Further.GAUSSIAN_SCALAR_LEDGER.Gaussian |
| 2 | import YM.Next.FREE_KERNELS.Lifts |
| 3 | import YM.SectorNext.VACUUM_NORMALIZATION.Round |
| 4 | |
| 5 | |
| 6 | set_option warningAsError false |
| 7 | |
| 8 | /-! |
| 9 | # Ratio matrix on regular-only or identity-completed coordinates |
| 10 | |
| 11 | S below acts on the LEFT of the precision correction. Pay in |
| 12 | absolute row-sum (column budgets useful too but not needed here), |
| 13 | not assuming a symmetric AC. C must be symmetric; earn *its* |
| 14 | positive definiteness. The window estimates separately produce |
| 15 | sufficient rate inputs. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | noncomputable section |
| 20 | namespace YM.Further.GaussianScalar |
| 21 | |
| 22 | open Matrix Function Filter Precision SectorNext.Vacuum |
| 23 | open Round (rowRate) |
| 24 | open scoped Topology BigOperators Matrix.Norms.Frobenius MatrixOrder |
| 25 | |
| 26 | variable {ι : Type*} [Fintype ι] {A C S : Wall ι} {q : ℝ} |
| 27 | |
| 28 | lemma row_entry (A : Wall ι) (h : rowRate q A) (i j : ι) : |A i j| ≤ q := |
| 29 | (Finset.single_le_sum (f := fun j => |A i j|) (fun _ _ => abs_nonneg _) (Finset.mem_univ j)).trans (h i) |
| 30 | |
| 31 | variable [DecidableEq ι] |
| 32 | |
| 33 | lemma row_pow (S : Wall ι) (hr : rowRate q S) (hz : 0 ≤ q) (n : ℕ) : rowRate (q^n) ((-S)^n) := by |
| 34 | induction n with |
| 35 | | zero => intro i; simp [Matrix.one_apply, abs_ite] |
| 36 | | succ k ih => |
| 37 | rw [pow_succ, pow_succ] |
| 38 | exact Round.ride _ _ ih (fun i => by simpa using hr i) hz |
| 39 | |
| 40 | private lemma row_summable (S : Wall ι) (hr : rowRate q S) (hz : 0 ≤ q) (hq : q < 1) (i j : ι) : |
| 41 | Summable fun k : ℕ => ((-S)^k) i j := |
| 42 | .of_norm_bounded (summable_geometric_of_lt_one hz hq) fun k => row_entry _ (row_pow S hr hz k) i j |
| 43 | |
| 44 | private lemma sum_left (S X : Wall ι) (hr : rowRate q S) (hz : 0 ≤ q) (hq : q < 1) (i j : ι) : |
| 45 | Summable fun k : ℕ => ((-S)^k * X) i j := |
| 46 | summable_sum fun b (_ : b∈Finset.univ) => (row_summable S hr hz hq i b).mul_right (X b j) |
| 47 | |
| 48 | private lemma sum_right (S X : Wall ι) (hr : rowRate q S) (hz : 0 ≤ q) (hq : q < 1) (i j : ι) : |
| 49 | Summable fun k : ℕ => (X * (-S)^k) i j := |
| 50 | summable_sum fun b (_ : b∈Finset.univ) => (row_summable S hr hz hq b j).mul_left (X i b) |
| 51 | |
| 52 | /-- Neumann relation with termination on a true matrix; no inverse |
| 53 | sign assumption on S. -/ |
| 54 | lemma build_left (X T : Wall ι) (h : (1 + S)*T = X) (hr : rowRate q S) (hz : 0 ≤ q) (hq : q < 1) (i j : ι) : |
| 55 | HasSum (fun k : ℕ => ((-S)^k * X) i j) (T i j) := by |
| 56 | have he (k : ℕ) : ∑ n∈Finset.range k, ((-S)^n * X) i j = T i j - ((-S)^k*T) i j := by |
| 57 | simp only [← Matrix.sum_apply,← Matrix.sum_mul] |
| 58 | rw [← h,← mul_assoc, show 1+S=1-(-S) by abel, geom_sum_mul_neg, Matrix.sub_mul, one_mul, Matrix.sub_apply] |
| 59 | apply (sum_left S X hr hz hq i j).hasSum_iff_tendsto_nat.mpr |
| 60 | simp_rw [he]; simpa using ((tendsto_const_nhds (x := T i j)).sub (sum_left S T hr hz hq i j).tendsto_atTop_zero) |
| 61 | |
| 62 | lemma build_right (X T : Wall ι) (h : T*(1 + S) = X) (hr : rowRate q S) (hz : 0 ≤ q) (hq : q < 1) (i j : ι) : |
| 63 | HasSum (fun k : ℕ => (X*(-S)^k) i j) (T i j) := by |
| 64 | have he (k : ℕ) : ∑ n∈Finset.range k, (X * (-S)^n) i j = T i j - (T*(-S)^k) i j := by |
| 65 | simp only [← Matrix.sum_apply,← Matrix.mul_sum] |
| 66 | rw [← h,mul_assoc, show 1+S=1-(-S) by abel, mul_neg_geom_sum, Matrix.mul_sub, mul_one, Matrix.sub_apply] |
| 67 | apply (sum_right S X hr hz hq i j).hasSum_iff_tendsto_nat.mpr |
| 68 | simp_rw [he]; simpa using ((tendsto_const_nhds (x := T i j)).sub (sum_right S T hr hz hq i j).tendsto_atTop_zero) |
| 69 | |
| 70 | lemma covariance_from_rate (hA : A.PosDef) (hC : C.IsHermitian) (hr : rowRate q (A*C-1)) |
| 71 | (hq : q < 1) : C.PosDef := by |
| 72 | let G := CFC.sqrt A |
| 73 | let X := G*C*G |
| 74 | have hg : G*G=A := CFC.sqrt_mul_sqrt_self _ hA.posSemidef.nonneg |
| 75 | have hl : Gᴴ=G := (Matrix.nonneg_iff_posSemidef.mp (CFC.sqrt_nonneg A)).1 |
| 76 | have hn : det G ≠ 0 := by |
| 77 | intro hn; have he : det A=0 := by rw [←hg,det_mul, hn,mul_zero] |
| 78 | exact hA.det_pos.ne' he |
| 79 | have hL := nonsing_inv_mul G (isUnit_iff_ne_zero.mpr hn) |
| 80 | have hR := mul_nonsing_inv G (isUnit_iff_ne_zero.mpr hn) |
| 81 | have hs : X.IsHermitian := by unfold X Matrix.IsHermitian; rw [conjTranspose_mul,conjTranspose_mul,hC.eq,hl,mul_assoc] |
| 82 | have hh : X.PosDef := hs.posDef_iff_eigenvalues_pos.mpr fun i => by |
| 83 | let v : VV ι := ⇑(hs.eigenvectorBasis i) |
| 84 | let w := G*ᵥv |
| 85 | let t := hs.eigenvalues i |
| 86 | have hx : 0 < ‖w‖ := norm_pos_iff.mpr fun he => by |
| 87 | have hv : v=0 := by rw [← one_mulVec v,←hL,←mulVec_mulVec,show G *ᵥ v=0 from he, mulVec_zero] |
| 88 | exact hs.eigenvectorBasis.orthonormal.ne_zero i (by ext k; exact congr_fun hv k) |
| 89 | have he : (A*C-1) *ᵥ w = (t-1) • w := by |
| 90 | have hw : A*C*G= G*X := by rw [←hg]; unfold X; simp only [mul_assoc] |
| 91 | rw [sub_mulVec,one_mulVec, show (A*C) *ᵥ w=(A*C*G)*ᵥ v from mulVec_mulVec .., hw, |
| 92 | ← mulVec_mulVec, show X *ᵥ v=t • v from hs.mulVec_eigenvectorBasis i, mulVec_smul,sub_smul,one_smul] |
| 93 | have hp := Round.rows_norm _ hr w |
| 94 | rw [he,norm_smul,Real.norm_eq_abs] at hp |
| 95 | have := (abs_le.mp (le_of_mul_le_mul_right hp hx)).1 |
| 96 | change 0 < t; linarith |
| 97 | let J := G⁻¹ |
| 98 | have he : Jᴴ * X * J=C := by |
| 99 | unfold J X; rw [conjTranspose_nonsing_inv,hl]; simp only [mul_assoc] |
| 100 | rw [hR,mul_one, ←mul_assoc, hL,one_mul] |
| 101 | rw [← he] |
| 102 | apply hh.conjTranspose_mul_mul_same |
| 103 | intro x y hx |
| 104 | rw [← one_mulVec x,← hR, ← mulVec_mulVec, hx, mulVec_mulVec,hR,one_mulVec] |
| 105 | |
| 106 | /-- Real symmetric precision, actual covariance—not just interpreting |
| 107 | its tentative log via formal series—and all three determinant prices |
| 108 | (including unused completions when present). Inverse series as in Echs. |
| 109 | `traceLog` need not use a symmetric S. -/ |
| 110 | theorem split_costs (hA : A.PosDef) (hC : C.IsHermitian) (he : S=A*C-1) (hr : rowRate q S) |
| 111 | (hz : 0 ≤ q) (hq : q < 1) : |
| 112 | C.PosDef ∧ 0 < A.det ∧ 0 < C.det ∧ 0 < (1+S).det ∧ |
| 113 | Summable (Round.wave S) ∧ Round.traceLog S=Real.log (1+S).det ∧ |
| 114 | Real.log C.det= -Real.log A.det + Round.traceLog S ∧ |
| 115 | ∀ i j, HasSum (fun k : ℕ => ((-S)^(k+1) * A) i j) ((C⁻¹-A) i j) := by |
| 116 | have h := covariance_from_rate hA hC (he ▸ hr) hq |
| 117 | obtain ⟨hp,hL,hU,hT⟩ := Round.exact_trace hA hC S he hr hz hq |
| 118 | have hh : 1+S=A*C := by rw [he]; abel |
| 119 | refine ⟨h,hA.det_pos,h.det_pos,hL,hU,hT,?_,fun i j => ?_⟩ |
| 120 | · rw [hT,hh,det_mul,Real.log_mul hA.det_pos.ne' hp.ne']; abel |
| 121 | have hf : (1+S)*C⁻¹=A := by rw [hh,mul_assoc,C.mul_nonsing_inv (isUnit_iff_ne_zero.mpr hp.ne'),mul_one] |
| 122 | simpa using (hasSum_nat_add_iff' 1).mpr (build_left _ _ hf hr hz hq i j) |
| 123 | |
| 124 | lemma tail_ripple (S : Wall ι) (hr : rowRate q S) (hz : 0 ≤ q) (hq : q < 1) (i j : ι) (n : ℕ) : |
| 125 | Summable (fun k : ℕ => Round.ripple S (k+n) i j) ∧ |
| 126 | ∑' k : ℕ, |Round.ripple S (k+n) i j| ≤ q ^ (n+1) / (1-q) := by |
| 127 | have he (k : ℕ) : |Round.ripple S (k+n) i j| ≤ q^k * q^(n+1) := by |
| 128 | unfold Round.ripple; rw [abs_div, abs_neg, abs_of_pos (by positivity : 0 < ((_ : ℕ):ℝ) +1)] |
| 129 | rw [← pow_add,← Nat.add_assoc] |
| 130 | exact (div_le_self (abs_nonneg _) (by push_cast; have h := Nat.cast_nonneg (α:=ℝ) k; have l := Nat.cast_nonneg (α:=ℝ) n; linarith)).trans (row_entry _ (row_pow S hr hz _) i j) |
| 131 | have hl := (hasSum_geometric_of_lt_one hz hq).mul_right (q^(n+1)) |
| 132 | have hh := Summable.of_norm_bounded hl.summable (f := fun k : ℕ => Round.ripple S (k+n) i j) he |
| 133 | refine ⟨hh, (hh.norm.tsum_le_tsum he hl.summable).trans_eq (hl.tsum_eq.trans ?_)⟩ |
| 134 | rw [div_eq_mul_inv,mul_comm] |
| 135 | |
| 136 | end YM.Further.GaussianScalar |