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.AnalyticBridge.RELATIVE_LOGDET_TRACE.Series |
| 2 | import YM.Next.BOUNDARY.Core |
| 3 | |
| 4 | /-! |
| 5 | # Local determinant chain alphabet |
| 6 | |
| 7 | Use physical real component keys, one for every link-color pair, incl |
| 8 | repetitions. Support assigned later. `n` starts at zero for *both* |
| 9 | alphabets; one off-window jump even at n=0 in the integrated alphabet, |
| 10 | and the correction alphabet (no shift integral) starts with tr(S). Do not |
| 11 | sum away intermediate indices before asking for absolute price. Log changes |
| 12 | use both actual addresses at the same ordered indices. |
| 13 | -/ |
| 14 | set_option autoImplicit false |
| 15 | noncomputable section |
| 16 | namespace YM.AnalyticBridge.RelativeLogdet |
| 17 | open Filter Function Set Matrix MeasureTheory FreeResolvent |
| 18 | open scoped Topology BigOperators Classical Matrix.Norms.Frobenius |
| 19 | |
| 20 | section roads |
| 21 | variable {ι : Type} {n : ℕ} (P S : Square ι) |
| 22 | |
| 23 | /-- Start with P, followed by n copies of S along x; n=0 is direct P. -/ |
| 24 | def road : {n : ℕ} → (P S : Square ι) → ι → ι → (Fin n → ι) → ℝ |
| 25 | | 0, P, _, i,j,_ => P i j |
| 26 | | k+1,P,S,i,j,x => P i (x 0) * road (n:=k) S S (x 0) j (Fin.tail x) |
| 27 | |
| 28 | lemma road_succ (i j m : ι) (x : Fin n → ι) : road P S i j (Fin.cons m x) = P i m * road S S m j x := by |
| 29 | rw [road,Fin.cons_zero,Fin.tail_cons] |
| 30 | |
| 31 | /-- The geometry of the jumps is kept separately; assigning zero |
| 32 | coefficients for invalid jumps is measure-independent. -/ |
| 33 | def jumps (Q : ι → ι → Prop) : {n : ℕ} → ι → ι → (Fin n→ι) → Prop |
| 34 | | 0, i,j,_ => Q i j |
| 35 | | k+1,i,j,x => Q i (x 0) ∧ jumps Q (n:=k) (x 0) j (Fin.tail x) |
| 36 | |
| 37 | variable {Q : ι→ι→Prop} |
| 38 | |
| 39 | lemma road_drop (hp : ∀ i j, ¬ Q i j → P i j=0) (hs : ∀ i j, ¬ Q i j → S i j=0) (i j) |
| 40 | (x : Fin n → ι) (h : ¬ jumps Q i j x) : road P S i j x = 0 := by |
| 41 | induction n generalizing i P with |
| 42 | | zero => exact hp i j h |
| 43 | | succ n ih => |
| 44 | rw [road] |
| 45 | by_cases he : Q i (x 0) |
| 46 | · rw [ih S hs _ _ (show ¬ jumps Q (x 0) j _ from fun hh => h ⟨he,hh⟩),mul_zero] |
| 47 | rw [hp _ _ he,zero_mul] |
| 48 | |
| 49 | lemma road_pos (hp : ∀ i j, 0 ≤ P i j) (hs : ∀ i j, 0 ≤ S i j) (i j) (x : Fin n → ι) : |
| 50 | 0 ≤ road P S i j x := by |
| 51 | induction n generalizing i P with |
| 52 | | zero => exact hp i j |
| 53 | | succ n ih => exact mul_nonneg (hp ..) (ih S hs _ _) |
| 54 | |
| 55 | lemma road_major {α β : ℝ} (ha : 0 ≤ α) (hb : 0 ≤ β) (R : Square ι) (hr : ∀ i j, 0 ≤ R i j) |
| 56 | (hp : ∀ i j, |P i j| ≤ α*R i j) (hs : ∀ i j, |S i j| ≤ β*R i j) |
| 57 | (i j) (x : Fin n → ι) : |road P S i j x| ≤ α*β^n*road R R i j x := by |
| 58 | induction n generalizing i P α with |
| 59 | | zero => rw [pow_zero,mul_one,road,road]; exact hp .. |
| 60 | | succ n ih => |
| 61 | rw [road,abs_mul,road,pow_succ] |
| 62 | exact (mul_le_mul (hp ..) (ih S hb hs _ _) (abs_nonneg _) (mul_nonneg ha (hr ..))).trans_eq (by ring) |
| 63 | |
| 64 | variable [Fintype ι] [DecidableEq ι] |
| 65 | |
| 66 | omit [DecidableEq ι] in |
| 67 | lemma sum_cons (g : (Fin (n+1) → ι) → ℝ) : (∑ x,g x)=∑ m,∑ x : Fin n → ι, g (Fin.cons m x) := by |
| 68 | rw [← Equiv.sum_comp (Fin.consEquiv (fun _ : Fin (n+1) => ι)) g,Fintype.sum_prod_type]; rfl |
| 69 | |
| 70 | lemma sums_road (n : ℕ) (i j) : (∑ x : Fin n → ι, road P S i j x)=(P*S^n) i j := by |
| 71 | induction n generalizing P i with |
| 72 | | zero => simp [road] |
| 73 | | succ n ih => |
| 74 | rw [sum_cons] |
| 75 | simp_rw [road_succ, ← Finset.mul_sum, ih] |
| 76 | rw [pow_succ',Matrix.mul_apply] |
| 77 | |
| 78 | end roads |
| 79 | |
| 80 | section letters |
| 81 | variable {ι : Type} [Fintype ι] [DecidableEq ι] {n : ℕ} |
| 82 | |
| 83 | abbrev Letter (ι : Type) (spacing : ℕ) := (n : ℕ) × (ι × (Fin (n+spacing) → ι)) |
| 84 | |
| 85 | /-- With shift integral from the replacement of A's inverse. -/ |
| 86 | def scroll (W : ι → Set ι) (A : Square ι) (i : ι) (x : Fin (n+1) → ι) (u : ℝ) := |
| 87 | - road (pie W A u) (-defect W A u) i i x |
| 88 | |
| 89 | def page (W : ι → Set ι) (A : Square ι) (z : Letter ι 1) := ∫ u in Ioi 0, scroll W A z.2.1 z.2.2 u |
| 90 | |
| 91 | /-- Covariance correction. -/ |
| 92 | def errata (W : ι → Set ι) (A : Square ι) (z : Letter ι 0) := |
| 93 | let S := excess W A; |
| 94 | -(road (-S) (-S) z.2.1 z.2.1 z.2.2) / ((z.1:ℝ)+1) |
| 95 | |
| 96 | lemma scroll_cont (W : ι → Set ι) (A : Square ι) (hw : ∀ i, i ∈ W i) (h : A.PosDef) (i : ι) (x : Fin (n+1) → ι) : |
| 97 | ContinuousOn (scroll W A i x) (Ioi 0) := by |
| 98 | intro u hu |
| 99 | have hh (m : ℕ) (p : ℝ → Square ι) (hp : ContinuousAt p u) (i j) (x : Fin m → ι) : |
| 100 | ContinuousAt (fun v : ℝ => road (p v) (-defect W A v) i j x) u := by |
| 101 | induction m generalizing p i with |
| 102 | | zero => simp only [road]; exact ((continuous_id (X:=Square ι)).matrix_elem _ _).continuousAt.comp hp |
| 103 | | succ m ih => |
| 104 | simp only [road] |
| 105 | exact (((continuous_id (X:=Square ι)).matrix_elem _ _).continuousAt.comp hp).mul |
| 106 | (ih _ (defect_cont h hw hu.out.le).neg _ _) |
| 107 | exact (hh _ _ (pie_cont h hw hu.out.le) i i x).neg.continuousWithinAt |
| 108 | |
| 109 | lemma unwind (W : ι → Set ι) (A : Square ι) (i n u) : |
| 110 | term W A i n u = ∑ x, scroll W A (n:=n) i x u := by |
| 111 | unfold term scroll; rw [Finset.sum_neg_distrib,sums_road] |
| 112 | |
| 113 | open SectorNext.Vacuum in |
| 114 | lemma unspool (W : ι → Set ι) (A : Square ι) (i n) : |
| 115 | Round.ripple (excess W A) n i i = ∑ x : Fin n → ι, errata W A ⟨n,i,x⟩ := by |
| 116 | unfold errata; dsimp only |
| 117 | simp_rw [← Finset.sum_div, Finset.sum_neg_distrib] |
| 118 | rw [sums_road, Round.ripple,pow_succ'] |
| 119 | |
| 120 | end letters |
| 121 | |
| 122 | section weights |
| 123 | variable {ι : Type} [Fintype ι] [DecidableEq ι] {X : Type*} {D : Cost X} {p : ι→X} {v C q : ℝ} |
| 124 | {W : ι → Set ι} {A : Square ι} |
| 125 | |
| 126 | def fares (D : Cost X) (p : ι → X) (v : ℝ) : Square ι := Matrix.of fun i j => D.weight (-v) (p i) (p j) |
| 127 | |
| 128 | omit [DecidableEq ι] [Fintype ι] in |
| 129 | lemma fares_nn (i j : ι) (D : Cost X) (p : ι → X) (v : ℝ) : 0 ≤ fares D p v i j := D.weight_nn .. |
| 130 | |
| 131 | omit [DecidableEq ι] in |
| 132 | lemma sum_fares (hv : 0 ≤ v) {L : ℝ} (hl : 0 ≤ L) (h : D.Volume p v L) (n i j) : |
| 133 | let J := fares D p v |
| 134 | (∑ x : Fin n → ι, road J J i j x) ≤ L^n := by |
| 135 | intro J |
| 136 | induction n generalizing i with |
| 137 | | zero => simpa only [J,road,fares,pow_zero,of_apply, Finset.sum_const, Finset.card_univ, Fintype.card_fun, |
| 138 | Fintype.card_fin,nsmul_eq_mul, Nat.cast_one,one_mul,D.weight_zero] using |
| 139 | ((D.weight_mono (neg_nonpos.mpr hv) (p i) (p j)).trans_eq (D.weight_zero ..)) |
| 140 | | succ n ih => |
| 141 | rw [sum_cons]; simp_rw [road_succ, ← Finset.mul_sum] |
| 142 | apply le_trans (Finset.sum_le_sum fun x _ => mul_le_mul_of_nonneg_left (ih _) (D.weight_nn (-v) (p i) (p x))) |
| 143 | rw [← Finset.sum_mul,pow_succ'] |
| 144 | exact mul_le_mul_of_nonneg_right (h.bound _) (by positivity) |
| 145 | |
| 146 | omit [DecidableEq ι] in |
| 147 | lemma road_fares {P S : Square ι} {α β : ℝ} {n : ℕ} (hp : D.Schur p p v α P) (hs : D.Schur p p v β S) |
| 148 | (ha : 0 ≤ α) (hb : 0 ≤ β) (i j : ι) (x : Fin n → ι) : |
| 149 | let J := fares D p v |
| 150 | |road P S i j x| ≤ α*β^n*road J J i j x := |
| 151 | road_major _ _ ha hb _ (fun _ _ => D.weight_nn ..) (fun i j => (hp.rows.point i j).trans_eq (mul_comm ..)) |
| 152 | (fun i j => (hs.rows.point i j).trans_eq (mul_comm ..)) i j x |
| 153 | |
| 154 | namespace Priced |
| 155 | variable (b : Priced D p W A v C q) |
| 156 | include b |
| 157 | lemma scroll_paid (z : Letter ι 1) : |
| 158 | let J := fares D p v; let i:=z.2.1; let x:=z.2.2 |
| 159 | let B := C*q^(z.1+1)*road J J i i x |
| 160 | IntegrableOn (scroll W A i x) (Ioi 0) ∧ (∫ u in Ioi 0, |scroll W A i x u|) ≤ B ∧ |page W A z| ≤ B := by |
| 161 | intro J i x B |
| 162 | apply integral_price (scroll_cont _ _ b.root b.gram i x) (C:=B) |
| 163 | intro u hu |
| 164 | have hv := attenuation_pos hu.out.le |
| 165 | have hm : 0<C := zero_lt_one.trans_le b.paid |
| 166 | have he := b.coupon |
| 167 | have hn : 0 ≤ road J J i i x := road_pos _ _ (fun _ _ => D.weight_nn ..) (fun _ _ => D.weight_nn ..) _ _ _ |
| 168 | have hh := road_fares (b.columns u hu.out.le) (b.shift u hu.out.le).neg (by positivity) (by positivity) i i x |
| 169 | unfold scroll; rw [abs_neg] |
| 170 | apply hh.trans |
| 171 | have hy : attenuation u ^ (z.1+1) ≤ attenuation u := by rw [pow_succ]; exact mul_le_of_le_one_left hv.le (pow_le_one₀ hv.le (attenuation_le hu.out.le)) |
| 172 | calc |
| 173 | C*attenuation u*(q*attenuation u)^(z.1+1)*_ ≤ C*attenuation u*(q^(z.1+1)*attenuation u)*road J J i i x := by |
| 174 | rw [mul_pow]; gcongr |
| 175 | _ = B*_ := by unfold B; ring |
| 176 | |
| 177 | lemma errata_paid (z : Letter ι 0) : |
| 178 | let J := fares D p v; let i:=z.2.1; let x:=z.2.2 |
| 179 | |errata W A z| ≤ q^(z.1+1)*road J J i i x := by |
| 180 | intro J i x |
| 181 | unfold errata; dsimp only |
| 182 | rw [abs_div, abs_neg, abs_of_pos (by positivity : (0:ℝ)<z.1+1),pow_succ'] |
| 183 | exact (div_le_self (abs_nonneg _) (by simp)).trans (road_fares b.mix.neg b.mix.neg b.coupon b.coupon i i x) |
| 184 | |
| 185 | lemma scroll_entry (hq : q<1) (i : ι) : |
| 186 | HasSum (fun n => ∑ x : Fin (n+1) → ι,page W A ⟨n,i,x⟩) (logKernel A i i-letterBase W A i) := by |
| 187 | have he (n : ℕ) : ∫ u in Ioi 0, term W A i n u = ∑ x : Fin (n+1) → ι,page W A ⟨n,i,x⟩ := by |
| 188 | simp_rw [unwind W A i n] |
| 189 | exact integral_finsetSum Finset.univ fun x _ => (b.scroll_paid ⟨n,i,x⟩).1 |
| 190 | have hh := b.log_tail hq i |
| 191 | simp_rw [he] at hh; exact hh |
| 192 | |
| 193 | /-- For using in full sector change. `s` is already a correction, not the |
| 194 | whole covariance log. Even for repeated colors/indices use ALL tuples, not |
| 195 | just nonzero or Gaussian-active ones. -/ |
| 196 | lemma labeled (hq : q<1) (hC : (Next.SectorChange.Schur.clouded W A).PosDef) : |
| 197 | Real.log A.det = ∑ i, (letterBase W A i + ∑' n, ∑ x : Fin (n+1)→ι,page W A ⟨n,i,x⟩) ∧ |
| 198 | Real.log (1 + excess W A).det = ∑ i, (∑' n, ∑ x : Fin n → ι, errata W A ⟨n,i,x⟩) ∧ |
| 199 | (∀ i, Summable (fun n => ∑ x : Fin (n+1)→ι,page W A ⟨n,i,x⟩)) ∧ |
| 200 | ∀ i, Summable (fun n => ∑ x : Fin n→ι, errata W A ⟨n,i,x⟩) := by |
| 201 | obtain ⟨-, -, h, H⟩ := (b.chains hq hC) |
| 202 | have hj i := (H i).2 |
| 203 | simp_rw [unspool] at h hj |
| 204 | refine ⟨?_,h,fun i => (b.scroll_entry hq i).summable,hj⟩ |
| 205 | rw [log_trace b.gram] |
| 206 | apply Finset.sum_congr rfl |
| 207 | intro i _ |
| 208 | rw [(b.scroll_entry hq i).tsum_eq]; abel |
| 209 | end Priced |
| 210 | end weights |
| 211 | end YM.AnalyticBridge.RelativeLogdet |