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.Walls |
| 2 | import YM.Next.FREE_KERNELS.Lifts |
| 3 | import YM.SectorNext.VACUUM_NORMALIZATION.Round |
| 4 | |
| 5 | |
| 6 | /-! |
| 7 | # E log determinant chain identities (trace before unwinding into labels) |
| 8 | -/ |
| 9 | set_option autoImplicit false |
| 10 | noncomputable section |
| 11 | namespace YM.AnalyticBridge.RelativeLogdet |
| 12 | open Filter Function Set Matrix Unitary MeasureTheory |
| 13 | open Next.SectorChange FreeResolvent |
| 14 | open scoped Topology BigOperators Classical Matrix.Norms.Frobenius |
| 15 | |
| 16 | variable {ι : Type} {X : Type*} [Fintype ι] [DecidableEq ι] {W : ι → Set ι} {u : ℝ} {A : Square ι} |
| 17 | |
| 18 | lemma resolve_cont (hA : A.PosDef) (hu : 0 ≤ u) : ContinuousAt (resolve A) u := by |
| 19 | refine ContinuousAt.comp (f:=fun v => A+v • 1) (g:=Inv.inv) ?_ (continuousAt_const.add (continuousAt_id.smul continuousAt_const)) |
| 20 | apply continuousAt_matrix_inv; rw [show Ring.inverse = fun x : ℝ => x⁻¹ from funext Ring.inverse_eq_inv] |
| 21 | exact continuousAt_inv₀ (shift_posDef hA hu).det_pos.ne' |
| 22 | lemma pie_entry_cont (hA : A.PosDef) (h : ∀ i, i∈W i) (hu : 0 ≤ u) (i j) : ContinuousAt (fun x => pie W A x i j) u := by |
| 23 | by_cases he : i∈W j |
| 24 | · simp_rw [pie_read W _ _ _ _ he (h j)] |
| 25 | exact ((continuous_id (X:=Square ↑(W j))).matrix_elem _ _).continuousAt.comp (resolve_cont |
| 26 | (hA.submatrix Subtype.val_injective) hu) |
| 27 | simp_rw [pie_miss W _ _ _ _ he]; exact continuousAt_const |
| 28 | lemma pie_cont (hA : A.PosDef) (h : ∀ i, i∈W i) (hu : 0 ≤ u) : ContinuousAt (pie W A) u := by |
| 29 | apply continuousAt_pi.mpr; intro i; exact continuousAt_pi.mpr fun j => pie_entry_cont hA h hu i j |
| 30 | lemma defect_cont (hA : A.PosDef) (h : ∀ i, i∈W i) (hu : 0 ≤ u) : ContinuousAt (defect W A) u := |
| 31 | ((continuousAt_const.add (continuousAt_id.smul continuousAt_const)).mul (pie_cont hA h hu)).sub continuousAt_const |
| 32 | |
| 33 | lemma integral_price {C : ℝ} {f : ℝ → ℝ} |
| 34 | (h : ContinuousOn f (Ioi 0)) (hp : ∀ u ∈ Ioi 0, |f u| ≤ C * attenuation u ^ 2) : |
| 35 | IntegrableOn f (Ioi 0) ∧ (∫ u in Ioi 0, |f u|) ≤ C ∧ |∫ u in Ioi 0, f u| ≤ C := by |
| 36 | have hh : ∀ᵐ u ∂(Measure.restrict volume (Ioi 0)), ‖f u‖ ≤ C*attenuation u ^ 2 := |
| 37 | (ae_restrict_mem measurableSet_Ioi).mono fun u hu => hp u hu |
| 38 | have hx := attenuation_square.1.const_mul C |
| 39 | have he : IntegrableOn f (Ioi 0) := hx.mono' (h.aestronglyMeasurable measurableSet_Ioi) hh |
| 40 | have ht : (∫ u in Ioi 0, |f u|) ≤ C := (integral_mono_ae he.norm hx hh).trans_eq (by |
| 41 | rw [integral_const_mul, attenuation_square.2, mul_one]) |
| 42 | exact ⟨he,ht,abs_integral_le_integral_abs.trans ht⟩ |
| 43 | |
| 44 | /-- Genuine single-window log entry. -/ |
| 45 | def letterBase (W : ι → Set ι) (A : Square ι) (i : ι) := |
| 46 | ∫ u in Ioi 0, attenuation u-pie W A u i i |
| 47 | |
| 48 | lemma base_log (hw : ∀ i, i ∈ W i) (A : Square ι) (i : ι) : |
| 49 | let j : W i:= ⟨i,hw i⟩ |
| 50 | letterBase W A i=logKernel (Schur.principal A (W i)) j j := by |
| 51 | intro j |
| 52 | unfold letterBase logKernel density |
| 53 | simp_rw [pie_read W A _ _ _ (hw i) (hw i),of_apply,Matrix.sub_apply, Matrix.smul_apply, Matrix.one_apply_eq, smul_eq_mul, mul_one] |
| 54 | -- definitional |
| 55 | rfl |
| 56 | |
| 57 | lemma density_base (hu : ℝ) (i : ι) (W : ι → Set ι) (A : Square ι) : |
| 58 | density A hu i i=(attenuation hu-pie W A hu i i)+(pie W A hu-resolve A hu) i i := by |
| 59 | unfold density |
| 60 | rw [Matrix.sub_apply, Matrix.sub_apply,Matrix.smul_apply, Matrix.one_apply_eq, smul_eq_mul,mul_one]; ring |
| 61 | |
| 62 | /-- begins at n+1 E factors, n=0 first nonlocal contribution. Includes sign |
| 63 | for `log A`. -/ |
| 64 | def term (W : ι → Set ι) (A : Square ι) (i : ι) (n : ℕ) (u : ℝ) := |
| 65 | - ((pie W A u)*(-defect W A u)^(n+1)) i i |
| 66 | |
| 67 | section bounds |
| 68 | variable {D : Cost X} {p : ι → X} {σ C q : ℝ} |
| 69 | |
| 70 | namespace Priced |
| 71 | |
| 72 | variable (b : Priced D p W A σ C q) |
| 73 | include b |
| 74 | lemma regular_price (i : ι) : |
| 75 | IntegrableOn (fun u => attenuation u - pie W A u i i) (Ioi 0) ∧ |letterBase W A i| ≤ (C+1)*C := by |
| 76 | suffices he : ∀ u ∈ Ioi 0, |attenuation u-pie W A u i i| ≤ ((C+1)*C)*attenuation u^2 by |
| 77 | have h u (hu : u∈Ioi (0:ℝ)) : ContinuousAt (fun u => attenuation u - pie W A u i i) u := |
| 78 | ((continuousAt_const.add continuousAt_id).inv₀ (ne_of_gt (by have := hu.out; change 0<1+u; linarith))).sub |
| 79 | (pie_entry_cont b.gram b.root hu.out.le i i) |
| 80 | obtain ⟨ht,-,hx⟩ := integral_price (fun x hx => (h x hx).continuousWithinAt) he |
| 81 | exact ⟨ht,hx⟩ |
| 82 | intro u hu |
| 83 | have he := defect_zero W u b.root (A:=A) (fun i => IsUnit.mk0 _ (shift_posDef (b.gram.submatrix Subtype.val_injective) hu.out.le).det_pos.ne') (b.root i) |
| 84 | let P:=pie W A u |
| 85 | have hh : (A*P) i i + u*P i i = 1 := by |
| 86 | apply sub_eq_zero.mp |
| 87 | unfold defect at he |
| 88 | simpa only [Matrix.add_mul, Matrix.sub_apply,Matrix.add_apply,Matrix.smul_mul,Matrix.smul_apply, Matrix.one_mul, Matrix.one_apply_eq, smul_eq_mul, P] using he |
| 89 | have hp : 0 < 1+u := by have := hu.out; linarith |
| 90 | have hx := attenuation_pos hu.out.le |
| 91 | have hm : 0 ≤ C := zero_le_one.trans b.paid |
| 92 | have hv := (((b.kernel.sub Cost.Schur.one).mul (b.columns u hu.out.le) b.rate (by linarith) (by positivity)).rows.weighted i i) |
| 93 | rw [D.weight_self, one_mul] at hv |
| 94 | rw [show attenuation u - pie W A u i i=attenuation u * ((A-1)*pie W A u) i i from ?_, abs_mul, abs_of_pos hx] |
| 95 | · exact (mul_le_mul_of_nonneg_left hv hx.le).trans_eq (by ring) |
| 96 | unfold attenuation |
| 97 | rw [Matrix.sub_mul, Matrix.one_mul, Matrix.sub_apply] |
| 98 | field_simp |
| 99 | unfold P at hh |
| 100 | linarith only [hh] |
| 101 | |
| 102 | lemma pie_schur_distance (hu : 0 ≤ u) : D.Schur p p σ (C*q*attenuation u^2) (pie W A u-resolve A u) := by |
| 103 | have hg : pie W A u-resolve A u=resolve A u*defect W A u := by |
| 104 | rw [defect_survey _ _ _ b.root, pie_inspects W _ _ b.root] |
| 105 | exact (study W b.root).replacement _ _ (IsUnit.mk0 _ (shift_posDef b.gram hu).det_pos.ne') |
| 106 | have hv := b.shift u hu |
| 107 | have he := attenuation_pos hu |
| 108 | have hm : 0 ≤ C := zero_le_one.trans b.paid |
| 109 | rw [hg]; exact ((b.inverse u hu).mul hv b.rate (by positivity) (mul_nonneg b.coupon he.le)).mono le_rfl (Eq.le (by ring)) |
| 110 | |
| 111 | lemma pie_log_distance (i : ι) : |
| 112 | let f u := (pie W A u-resolve A u) i i |
| 113 | IntegrableOn f (Ioi 0) ∧ (∫ u in Ioi 0, f u)= logKernel A i i - letterBase W A i ∧ |
| 114 | |logKernel A i i - letterBase W A i| ≤ C*q := by |
| 115 | intro f |
| 116 | have hf u (hu : u∈Ioi (0:ℝ)) := ((b.pie_schur_distance hu.out.le).rows.weighted i i) |
| 117 | simp_rw [Cost.weight_self, one_mul] at hf |
| 118 | obtain ⟨he,-,hh⟩ := integral_price (f:=f) (fun u hu => |
| 119 | (((continuous_id (X:=Square ι)).matrix_elem i i).continuousAt.comp |
| 120 | ((pie_cont b.gram b.root hu.out.le).sub (resolve_cont b.gram hu.out.le))).continuousWithinAt) hf |
| 121 | have hs : logKernel A i i = letterBase W A i + ∫ u in Ioi 0,f u := by |
| 122 | rw [logKernel, of_apply] |
| 123 | simp_rw [density_base _ _ W A]; exact integral_add (b.regular_price i).1 he |
| 124 | rw [hs,add_sub_cancel_left]; exact ⟨he,rfl,hh⟩ |
| 125 | |
| 126 | omit b in |
| 127 | lemma schur_power {T : Square ι} (h : D.Schur p p σ q T) (hs : 0 ≤ σ) (hq : 0 ≤ q) (k : ℕ) : |
| 128 | D.Schur p p σ (q^k) (T^k) := by |
| 129 | induction k with |
| 130 | | zero => simp only [pow_zero]; exact Cost.Schur.one |
| 131 | | succ k ih => rw [pow_succ,pow_succ]; exact ih.mul h hs (by positivity) hq |
| 132 | |
| 133 | lemma inverse_series (hq : q<1) (hu : 0≤u) : |
| 134 | HasSum (fun n : ℕ => (pie W A u)*(-defect W A u)^n) (resolve A u) := by |
| 135 | let E := -defect W A u; let P:=pie W A u |
| 136 | have hp : D.Schur p p 0 q E := (b.shift u hu).neg.mono b.rate (mul_le_of_le_one_right b.coupon (attenuation_le hu)) |
| 137 | have he (n : ℕ) := schur_power hp le_rfl b.coupon n |
| 138 | have hv : Summable (fun n : ℕ => E^n) := by |
| 139 | apply Pi.summable.mpr |
| 140 | intro i; apply Pi.summable.mpr; intro j |
| 141 | refine Summable.of_norm_bounded (summable_geometric_of_lt_one b.coupon hq) fun n => ?_ |
| 142 | have ht := (he n).rows.weighted i j |
| 143 | rw [D.weight_zero, one_mul] at ht |
| 144 | exact ht |
| 145 | let H := ∑' n : ℕ, E^n |
| 146 | have hg : (A+u • 1)*P=1-E := by unfold P E defect; abel |
| 147 | have hh : resolve A u = P*H := Matrix.inv_eq_right_inv (by |
| 148 | rw [← Matrix.mul_assoc,hg]; exact hv.one_sub_mul_tsum_pow) |
| 149 | rw [hh] |
| 150 | exact hv.hasSum.mul_left P |
| 151 | |
| 152 | lemma term_cont (i : ι) (n : ℕ) (hu : 0 ≤ u) : ContinuousAt (term W A i n) u := |
| 153 | (((continuous_id (X:=Square ι)).matrix_elem _ _).continuousAt.comp |
| 154 | ((pie_cont b.gram b.root hu).mul ((defect_cont b.gram b.root hu).neg.pow (n+1)))).neg |
| 155 | |
| 156 | lemma term_cost (i : ι) (n : ℕ) : |
| 157 | IntegrableOn (term W A i n) (Ioi 0) ∧ (∫ u in Ioi 0, |term W A i n u|) ≤ C*q^(n+1) := by |
| 158 | suffices hp : ∀ u ∈ Ioi 0, |term W A i n u| ≤ C*q^(n+1)*attenuation u^2 by |
| 159 | obtain ⟨hr,h,-⟩ := integral_price (fun u hu => (b.term_cont i n hu.out.le).continuousWithinAt) hp |
| 160 | exact ⟨hr,h⟩ |
| 161 | intro u hu |
| 162 | have ht := b.shift u hu.out.le |
| 163 | have hq := b.coupon |
| 164 | have hv := attenuation_pos hu.out.le |
| 165 | have hC : 0<C := lt_of_lt_of_le zero_lt_one b.paid |
| 166 | have hp := schur_power ht.neg b.rate (by positivity) (n+1) |
| 167 | have h := ((b.columns u hu.out.le).mul hp b.rate (by positivity) (by positivity)).rows.weighted i i |
| 168 | rw [D.weight_self,one_mul] at h |
| 169 | unfold term; rw [abs_neg]; apply h.trans |
| 170 | have hL : (attenuation u)^(n+1) ≤ attenuation u := by |
| 171 | rw [pow_succ] |
| 172 | exact mul_le_of_le_one_left hv.le (pow_le_one₀ hv.le (attenuation_le hu.out.le)) |
| 173 | calc |
| 174 | C*attenuation u*(q*attenuation u)^(n+1) ≤ C*attenuation u*(q^(n+1)*attenuation u) := by rw [mul_pow]; gcongr |
| 175 | _ = _ := by ring |
| 176 | |
| 177 | lemma resolvent_tail (hq : q<1) (hu : 0 ≤ u) (i : ι) : |
| 178 | HasSum (fun n => term W A i n u) ((pie W A u-resolve A u) i i) := by |
| 179 | let P:=pie W A u |
| 180 | have he : HasSum (fun n : ℕ => P*(-defect W A u)^(n+1)) (resolve A u-P) := by |
| 181 | have he := (hasSum_nat_add_iff' 1).mpr (b.inverse_series hq hu) |
| 182 | simpa [P] using he |
| 183 | have hh := he.neg |
| 184 | rw [neg_sub] at hh |
| 185 | -- take entries |
| 186 | exact Pi.hasSum.mp (Pi.hasSum.mp hh i) i |
| 187 | |
| 188 | lemma log_tail (hq : q<1) (i : ι) : |
| 189 | HasSum (fun n : ℕ => ∫ u in Ioi 0, term W A i n u) (logKernel A i i-letterBase W A i) := by |
| 190 | let f := term W A i |
| 191 | have he := b.term_cost i |
| 192 | have hp : Summable fun n : ℕ => ∫ u in Ioi 0, ‖f n u‖ := by |
| 193 | apply Summable.of_nonneg_of_le (fun n => integral_nonneg fun u => norm_nonneg _) (fun n => (he n).2) |
| 194 | have ht := (((summable_geometric_of_lt_one b.coupon hq).mul_right q).mul_left C) |
| 195 | simpa only [pow_succ] using ht |
| 196 | have hh := hasSum_integral_of_summable_integral_norm (fun n => (he n).1) hp |
| 197 | have hr := b.pie_log_distance i |
| 198 | rw [← hr.2.1] |
| 199 | have hf : (∫ u in Ioi 0, (pie W A u-resolve A u) i i)= ∫ u in Ioi 0, ∑' n, f n u := setIntegral_congr_fun measurableSet_Ioi fun u hu => |
| 200 | (b.resolvent_tail hq hu.out.le i).tsum_eq.symm |
| 201 | rw [hf]; exact hh |
| 202 | |
| 203 | open SectorNext.Vacuum in |
| 204 | /-- All terms with true PosDef Gram, using assembled (different |
| 205 | window each column!) approximation. `A*C` needn't be symmetric. |
| 206 | Note no missing j=0 for S: starts at 1, sign built into `ripple`. |
| 207 | Symmetric C's *use as covariance* requires also its positivity. -/ |
| 208 | theorem chains (hq : q < 1) (hC : (Schur.clouded W A).PosDef) : |
| 209 | let S := excess W A |
| 210 | let r (i : ι) := (fun n : ℕ => ∫ u in Ioi 0, term W A i n u) |
| 211 | Real.log A.det = ∑ i, (letterBase W A i + ∑' n,r i n) ∧ |
| 212 | Real.log (Schur.clouded W A).det = -Real.log A.det + ∑ i, (∑' n,Round.ripple S n i i) ∧ |
| 213 | Real.log (1+S).det = ∑ i, (∑' n,Round.ripple S n i i) ∧ |
| 214 | ∀ i, Summable (r i) ∧ Summable (fun n=>Round.ripple S n i i) := by |
| 215 | intro S r |
| 216 | have he : Round.rowRate q S := fun i => by simpa only [Cost.weight_zero,one_mul] using ((b.mix.mono b.rate le_rfl).rows.bound i) |
| 217 | have ht := (Round.exact_trace b.gram hC.1 S rfl he b.coupon hq).2.2.2 |
| 218 | rw [Round.lines S he b.coupon hq] at ht |
| 219 | have hv : Real.log (1+S).det=Real.log A.det+Real.log (Schur.clouded W A).det := by |
| 220 | rw [show 1+S=A*Schur.clouded W A by unfold S excess; abel,Matrix.det_mul, |
| 221 | Real.log_mul b.gram.det_pos.ne' hC.det_pos.ne'] |
| 222 | refine ⟨?_,?_,ht.symm,fun i => ⟨(b.log_tail hq i).summable,Round.lineSummable S he b.coupon hq i i⟩⟩ |
| 223 | · rw [log_trace b.gram] |
| 224 | refine Finset.sum_congr rfl fun i _ => ?_ |
| 225 | rw [(show (∑' n,r i n)=_ from (b.log_tail hq i).tsum_eq)]; abel |
| 226 | change _ = -Real.log A.det + ∑ i, Round.onLine S i |
| 227 | rw [ht, hv]; abel |
| 228 | end Priced |
| 229 | end bounds |
| 230 | end YM.AnalyticBridge.RelativeLogdet |