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.Resolvent |
| 2 | import YM.Push.FREE_RESOLVENT.Windows |
| 3 | import YM.Push.SECTOR_MEASURE.Presented |
| 4 | import YM.SectorNext.GAUSSIAN_SECTOR_CHANGE.Windows |
| 5 | |
| 6 | |
| 7 | /-! |
| 8 | # Uniform window-resolvent overheads |
| 9 | |
| 10 | Uses the actual `SectorChange.Schur.clouded` convention. The inverse |
| 11 | is priced by FREE_RESOLVENT.Window, *u left in*. In particular errors |
| 12 | have no volume term. Principle: compare on the completed keys, but |
| 13 | principal here is a compression of that *same* built matrix. Don't rerun |
| 14 | sector decisions in a subwindow to fill its A entries. |
| 15 | |
| 16 | Rates γ used below also bear the root and all other matrix addresses; |
| 17 | tilt is fixed for the whole period-independent estimate. |
| 18 | -/ |
| 19 | set_option autoImplicit false |
| 20 | |
| 21 | noncomputable section |
| 22 | namespace YM.AnalyticBridge.RelativeLogdet |
| 23 | open Filter Function Set Matrix Unitary MeasureTheory |
| 24 | open Next.SectorChange FreeResolvent |
| 25 | open scoped Topology BigOperators Classical Matrix.Norms.Frobenius |
| 26 | |
| 27 | variable {ι : Type} {X : Type*} [Fintype ι] [DecidableEq ι] |
| 28 | variable (W : ι → Set ι) |
| 29 | |
| 30 | /-- Π, the actual assembled column selection (including zeros). -/ |
| 31 | def pie (A : Square ι) (u : ℝ) : Square ι := Schur.per W (A+u • 1) |
| 32 | /-- E obstruction to exact inversion. -/ |
| 33 | def defect (A : Square ι) (u : ℝ) := (A+u • 1)*pie W A u - 1 |
| 34 | /-- S, differs from `defect` due to symmetrization. -/ |
| 35 | def excess (A : Square ι) : Square ι := A*Schur.clouded W A-1 |
| 36 | |
| 37 | lemma sym_cloud (A : Square ι) : Schur.clouded W A = (1/2:ℝ) • (pie W A 0 + (pie W A 0).transpose) := by |
| 38 | simp only [pie,zero_smul,add_zero,Schur.clouded] |
| 39 | lemma self_cloud (A : Square ι) : (Schur.clouded W A).IsHermitian := by |
| 40 | rw [sym_cloud]; apply Matrix.isHermitian_iff_isSymm.mpr; simp only [Matrix.IsSymm,transpose_smul,transpose_add,transpose_transpose,add_comm] |
| 41 | |
| 42 | lemma pie_miss (A : Square ι) (u : ℝ) (i j) (hi : i ∉ W j) : pie W A u i j = 0 := Schur.per_zero W _ hi |
| 43 | /-- read on submatrix of A; true positive link index. -/ |
| 44 | lemma pie_read (A : Square ι) (u : ℝ) (i j) (hi : i ∈ W j) (hj : j ∈ W j) : |
| 45 | pie W A u i j = resolve (Schur.principal A (W j)) u ⟨i,hi⟩ ⟨j,hj⟩ := by |
| 46 | rw [pie,Schur.per_read W _ hj hi] |
| 47 | unfold Schur.principal resolve |
| 48 | rw [shift_compress ((↑) : W j→ι) _ u Subtype.val_injective] |
| 49 | |
| 50 | def study (hW : ∀ i, i∈W i) : Window.Survey (fun i => W i) where |
| 51 | loc _ := Embedding.subtype _ |
| 52 | root i := ⟨i,hW i⟩ |
| 53 | atRoot _ := rfl |
| 54 | |
| 55 | lemma pie_inspects (A : Square ι) (u : ℝ) (hW : ∀ i, i∈W i) : pie W A u = (study W hW).inspect A u := by |
| 56 | ext i j |
| 57 | let z : W j := ⟨j,hW j⟩ |
| 58 | change _ = Pane.column A ((↑): W j→ι) u z i |
| 59 | by_cases hi : i ∈ W j |
| 60 | · rw [pie_read W _ u i j hi (hW j)]; exact (Pane.local_entry A u _ Subtype.val_injective z (⟨i,hi⟩ : W j)).symm |
| 61 | rw [pie_miss W _ _ _ _ hi, Pane.unused _ _ _ _ _ ?_] |
| 62 | rintro ⟨x,rfl⟩; exact hi x.property |
| 63 | lemma defect_survey (A : Square ι) (u : ℝ) (hW : ∀ i, i∈W i) : defect W A u=(study W hW).error A u := by rw [defect,pie_inspects _ _ _ hW]; rfl |
| 64 | |
| 65 | lemma defect_zero {A : Square ι} (u : ℝ) (hw : ∀ i, i∈W i) |
| 66 | (hg : ∀ i, IsUnit ((Schur.principal A (W i)+u • 1).det)) {i j} (h : i ∈ W j) : |
| 67 | defect W A u i j = 0 := by |
| 68 | let T := study W hw |
| 69 | rw [defect_survey W _ _ hw]; change T.error A u i j=0 |
| 70 | rw [T.residual _ _ hg,Window.Survey.outside_apply,if_pos ⟨⟨i,h⟩,rfl⟩] |
| 71 | |
| 72 | section envelopes |
| 73 | variable {W} {D : Cost X} {p : ι → X} {A : Square ι} |
| 74 | |
| 75 | /-- Bundle at *one* width and cost. `q` may then be made arbitrarily |
| 76 | small at exponential rate by window size. Here no smallness or gap |
| 77 | hypothesis in the definition except A itself positive; ask q<1 and PosDef |
| 78 | of covariance separately when using. -/ |
| 79 | structure Priced (D : Cost X) (p : ι → X) (W : ι → Set ι) (A : Square ι) (v C q : ℝ) : Prop where |
| 80 | root : ∀ i, i ∈ W i |
| 81 | gram : A.PosDef |
| 82 | paid : 1 ≤ C |
| 83 | rate : 0 ≤ v |
| 84 | coupon : 0 ≤ q |
| 85 | kernel : D.Schur p p v C A |
| 86 | inverse : ∀ u : ℝ, 0 ≤ u → D.Schur p p v (C*attenuation u) (resolve A u) |
| 87 | columns : ∀ u : ℝ, 0 ≤ u → D.Schur p p v (C*attenuation u) (pie W A u) |
| 88 | shift : ∀ u : ℝ, 0 ≤ u → D.Schur p p v (q*attenuation u) (defect W A u) |
| 89 | mix : D.Schur p p v q (excess W A) |
| 90 | |
| 91 | omit [Fintype ι] [DecidableEq ι] in |
| 92 | lemma sym_change (C L : Square ι) (hL : L.IsSymm) : (1/2:ℝ) • (C + C.transpose) - L = |
| 93 | (1/2:ℝ) • ((C-L)+(C-L).transpose) := by |
| 94 | rw [transpose_sub,hL.eq]; ext i j; change (1/2:ℝ)*(C i j+C j i)-L i j= (1/2:ℝ)*((C i j-L i j)+(C j i-L i j)); ring |
| 95 | |
| 96 | omit [DecidableEq ι] in |
| 97 | lemma sym_cost {C L : Square ι} (hL : L.IsSymm) {v q : ℝ} |
| 98 | (he : D.Schur p p v q (C-L)) : D.Schur p p v q ((1/2:ℝ) • (C + C.transpose)-L) := by |
| 99 | rw [sym_change _ _ hL] |
| 100 | exact (((he.add he.transpose).smul (1/2:ℝ))).mono le_rfl (by rw [abs_of_nonneg (by norm_num)]; linarith) |
| 101 | |
| 102 | lemma tilted_price {D : Cost X} {σ M r m γ V R C : ℝ} (hm : 0 ≤ M) (hσ : 0 < σ) (hr : 0<r) |
| 103 | (hγ : 0 ≤ γ) (he : γ ≤ m) (hl : m ≤ σ) (hV : 0 ≤ V) |
| 104 | (hC : 1≤C) (hx : M ≤ C) (hc : V*(min (r/2) 1)⁻¹ ≤ C) |
| 105 | (h : D.Schur p p σ M A) (hA : Gap A r) (hp : A.PosDef) |
| 106 | (hv : D.Volume p (safeRate σ M r-m) V) |
| 107 | (hw : ∀ i, i∈W i) (hw' : ∀ i j, j ∉ W i → R ≤ D.d (p i) (p j)) : |
| 108 | Priced D p W A γ C (C^4 * Real.exp (-(m-γ)*R)) := by |
| 109 | let e := Real.exp (-(m-γ)*R) |
| 110 | let T := study W hw |
| 111 | have hh (u : ℝ) (hu : 0 ≤ u) : V*(r/2+u)⁻¹ ≤ C * attenuation u := calc |
| 112 | _ ≤ V*((min (r/2) 1)⁻¹ * attenuation u) := mul_le_mul_of_nonneg_left (uniform_shift r u hr hu) hV |
| 113 | _ ≤ _ := by rw [← mul_assoc]; exact mul_le_mul_of_nonneg_right hc (attenuation_pos hu).le |
| 114 | have ht : T.Near D p R := fun i j hi => hw' i j (fun hx => hi ⟨⟨j,hx⟩,rfl⟩) |
| 115 | have hg u (hu : 0 ≤ u) : D.Schur p p γ (C * attenuation u) (resolve A u) := |
| 116 | (resolve_schur hm hσ h hA hr hu hv).mono he (hh u hu) |
| 117 | have hy u (hu : 0 ≤ u) : D.Schur p p γ (C * attenuation u) (pie W A u) := by |
| 118 | rw [pie_inspects _ _ _ hw] |
| 119 | exact (T.prices hu hr hσ hm h hA hv).mono he (hh u hu) |
| 120 | have he' : 0 < e := Real.exp_pos _ |
| 121 | have h₀ : 0 < C := zero_lt_one.trans_le hC |
| 122 | have hz u (hu : 0 ≤ u) : D.Schur p p γ (C^2 * e * attenuation u) (defect W A u) := by |
| 123 | rw [defect_survey _ _ _ hw] |
| 124 | apply (T.error_price ht hu hr hσ hm (hγ.trans he) he hl hV h hA hv).mono le_rfl |
| 125 | have hi : 0 ≤ V*(r/2+u)⁻¹ := by positivity |
| 126 | exact (mul_le_mul_of_nonneg_left (mul_le_mul hx (hh u hu) hi h₀.le) he'.le).trans_eq (by ring) |
| 127 | have ha : D.Schur p p γ C A := h.mono (he.trans hl) hx |
| 128 | refine ⟨hw,hp,hC,hγ,(mul_pos (by positivity) he').le,ha,hg,hy,fun u hu => (hz u hu).mono le_rfl ?_,?_⟩ |
| 129 | · change _ ≤ C^4*e*_ |
| 130 | have := attenuation_pos hu; gcongr; norm_num |
| 131 | unfold excess |
| 132 | rw [show A*Schur.clouded W A-1=A*(Schur.clouded W A-A⁻¹) by |
| 133 | rw [Matrix.mul_sub,Matrix.mul_nonsing_inv _ (IsUnit.mk0 _ hp.det_pos.ne')], sym_cloud] |
| 134 | have hi : resolve A 0=A⁻¹ := by simp [resolve] |
| 135 | have hsum : pie W A 0-A⁻¹=resolve A 0*defect W A 0 := by |
| 136 | rw [defect_survey _ _ _ hw,pie_inspects _ _ _ hw,← hi]; exact T.replacement A 0 ((hA.shift 0).unit_det (by linarith)) |
| 137 | have hj : D.Schur p p γ (C*(C^2*e)) (pie W A 0-A⁻¹) := by |
| 138 | rw [hsum]; apply Cost.Schur.mul (b:=p) _ _ hγ h₀.le (by positivity) |
| 139 | · simpa only [attenuation,add_zero, inv_one,mul_one] using hg 0 le_rfl |
| 140 | simpa only [attenuation,add_zero, inv_one,mul_one] using hz 0 le_rfl |
| 141 | exact (ha.mul (sym_cost (Matrix.isHermitian_iff_isSymm.mp hp.inv.isHermitian) hj) hγ h₀.le (by positivity)).mono le_rfl (Eq.le (by ring)) |
| 142 | end envelopes |
| 143 | end YM.AnalyticBridge.RelativeLogdet |