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.Focus |
| 2 | import YM.Push.FREE_RESOLVENT.FullRow |
| 3 | import YM.Push.FREE_RESOLVENT.GaugeProjection |
| 4 | import YM.Work.A15 |
| 5 | |
| 6 | |
| 7 | /-! |
| 8 | # Compare arbitrary periods in the interior of matched patches |
| 9 | |
| 10 | Transport from both periods to ONE numbering in the patch. Same lengths, |
| 11 | parameters, placement and slots there; allow different worlds outside. |
| 12 | No treating resonance grids or periodizing an inverse after an unrelated |
| 13 | tree choice. Match includes all colors used, though comparisons at one |
| 14 | column need only the distance hypotheses to excluded coordinates. Theorem |
| 15 | `shared_price` is usable in nonuniform geometries too (local discrepancy in |
| 16 | precision on *matched patch*, not whole operator or inverse). |
| 17 | -/ |
| 18 | |
| 19 | set_option autoImplicit false |
| 20 | noncomputable section |
| 21 | namespace YM.FreeResolvent |
| 22 | open Lattice Matrix RG Precision Bloch Laurent Tree Bid |
| 23 | open scoped BigOperators |
| 24 | |
| 25 | section Two |
| 26 | variable {X Y ι ι' κ : Type*} [Fintype ι] [Fintype ι'] [Fintype κ] [DecidableEq ι] [DecidableEq ι'] [DecidableEq κ] |
| 27 | |
| 28 | -- pull metrics with exact numerical costs |
| 29 | omit [DecidableEq κ] in |
| 30 | lemma rows_here {D : Cost X} {D' : Cost Y} {x : κ → X} {y : κ → Y} |
| 31 | (h : D.pull x = D'.pull y) (A : Matrix κ κ ℝ) {M σ : ℝ} (H : D.Schur x x σ M A) : |
| 32 | D'.Schur y y σ M A := by |
| 33 | have hh (i j : κ) : D.weight σ (x i) (x j)=D'.weight σ (y i) (y j) := |
| 34 | congr_arg (fun C : Cost κ => C.weight σ i j) h |
| 35 | constructor <;> constructor <;> intro i |
| 36 | · simp_rw [← hh]; exact H.rows.bound i |
| 37 | simp_rw [← hh]; exact H.cols.bound i |
| 38 | |
| 39 | /-- Estimate for a common core with a shared horizon; both full inverse errors |
| 40 | from *their own* windows, local mismatch controlled only on these windows. -/ |
| 41 | theorem shared_price (e : κ ↪ ι) (f : κ ↪ ι') (i j : κ) |
| 42 | (D : Cost X) (D' : Cost Y) (a : ι → X) (b : ι' → Y) |
| 43 | {R M V W σ γ μ u r : ℝ} {A : Matrix ι ι ℝ} {B : Matrix ι' ι' ℝ} |
| 44 | (ha : ∀ k : ι, k ∉ Set.range e → R ≤ D.d (a (e i)) (a k)) |
| 45 | (hb : ∀ k : ι', k ∉ Set.range f → R ≤ D'.d (b (f i)) (b k)) |
| 46 | (he : D.pull (a ∘ e) = D'.pull (b ∘ f)) |
| 47 | (hp : D.Schur a a σ M A) (hq : D'.Schur b b σ M B) |
| 48 | (hg : Gap A r) (hg' : Gap B r) |
| 49 | (hx : D.Volume a (safeRate σ M r-μ) V) |
| 50 | (hy : D'.Volume b (safeRate σ M r-μ) V) |
| 51 | (hz : D.Schur (a ∘ e) (a ∘ e) γ W (A.submatrix e e-B.submatrix f f)) |
| 52 | (hu : 0 ≤ u) (hr : 0 < r) (hs : 0 < σ) (hM : 0 ≤ M) (hγ : 0 ≤ γ) (hm : γ ≤ μ) |
| 53 | (hσ : μ ≤ σ) (hV : 0 ≤ V) (hW : 0 ≤ W) : |
| 54 | D.weight γ (a (e i)) (a (e j)) * |resolve A u (e j) (e i)-resolve B u (f j) (f i)| ≤ |
| 55 | windowPrice M V r u μ γ R + (V*(r/2+u)⁻¹)*W*(V*(r/2+u)⁻¹) + windowPrice M V r u μ γ R := by |
| 56 | let E := V*(r/2+u)⁻¹ |
| 57 | let w := D.weight γ (a (e i)) (a (e j)) |
| 58 | have hw : w = D'.weight γ (b (f i)) (b (f j)) := congr_arg (fun C : Cost κ => C.weight γ i j) he |
| 59 | have ha' := hg.submatrix e e.injective |
| 60 | have hb' := hg'.submatrix f f.injective |
| 61 | have hp' : D.Schur (a ∘ e) (a ∘ e) γ E (Pane.thin A e u) := |
| 62 | (resolve_schur hM hs (hp.submatrix e.injective e.injective) ha' hr hu (hx.comp e.injective)).mono hm le_rfl |
| 63 | have hq' : D.Schur (a ∘ e) (a ∘ e) γ E (Pane.thin B f u) := rows_here he.symm _ |
| 64 | ((resolve_schur hM hs (hq.submatrix f.injective f.injective) hb' hr hu (hy.comp f.injective)).mono hm le_rfl) |
| 65 | have hE : 0 ≤ E := mul_nonneg hV (by positivity) |
| 66 | have ht : D.Schur (a ∘ e) (a ∘ e) γ (E*W*E) (Pane.thin B f u-Pane.thin A e u) := by |
| 67 | unfold Pane.thin |
| 68 | rw [resolve_diff ((ha'.shift u).unit_det (by positivity)) ((hb'.shift u).unit_det (by positivity))] |
| 69 | exact (hq'.mul hz hγ hE hW).mul hp' hγ (mul_nonneg hE hW) hE |
| 70 | let α := resolve A u (e j) (e i) |
| 71 | let β := resolve B u (f j) (f i) |
| 72 | let C := windowPrice M V r u μ γ R |
| 73 | let c := Pane.thin A e u j i |
| 74 | let d := Pane.thin B f u j i |
| 75 | have h1 : w*|α-c| ≤ C := by rw [abs_sub_comm]; exact focus_price e i ha hu hr hs hM hγ hm hσ hV hp hg hx j |
| 76 | have h2 : w*|d-β| ≤ C := by rw [hw]; exact focus_price f i hb hu hr hs hM hγ hm hσ hV hq hg' hy j |
| 77 | have h3 : w*|c-d| ≤ E*W*E := by rw [abs_sub_comm]; exact ht.cols.weighted i j |
| 78 | have hl : |α-β| ≤ |α-c| + |c-d| + |d-β| := by |
| 79 | rw [show α-β = (α-c + (c-d)) + (d-β) by ring] |
| 80 | exact (abs_add_le ..).trans (add_le_add_left (abs_add_le ..) _) |
| 81 | apply (mul_le_mul_of_nonneg_left hl (D.weight_nn γ (a (e i)) (a (e j)))).trans |
| 82 | rw [mul_add, mul_add] |
| 83 | exact add_le_add (add_le_add h1 h3) h2 |
| 84 | end Two |
| 85 | |
| 86 | -- Period system with embeddings to common cover offsets. |
| 87 | namespace Lifted |
| 88 | variable {G : Gauge} {c f : Side} |
| 89 | |
| 90 | /-- Coarse offsets in D.native widths, with *free* status preserved. -/ |
| 91 | def grid (S : StepData c f) (T : Forest S.ratio) (i : Active G T) := splitCo S.ratio (PAC G 1) (plant T i) |
| 92 | |
| 93 | lemma grid_site (S : StepData c f) (T : Forest S.ratio) (i : Active G T) : |
| 94 | (grid S T i).1 = theta _ T i := by rw [grid,split_co]; rfl |
| 95 | |
| 96 | variable {κ : Type*} [Fintype κ] [DecidableEq κ] |
| 97 | variable {P : Patch} {K : KernelChoices} |
| 98 | |
| 99 | -- need equality transporting also tile types: specialize S with sizes implicit |
| 100 | abbrev data {c f : Side} (h : f.val = c.val * P.L.val) (K : KernelChoices) := |
| 101 | StepData.mk (c:=c) (f:=f) P K h |
| 102 | |
| 103 | lemma tree_read {S : StepData c f} {s M : ℝ} {H : FaceRow} (hs : 0 ≤ s) (h : H.strip s M) |
| 104 | (T : Forest S.ratio) : |
| 105 | treeMatrix G S T H = ((fullRow G S.patch S.kernel.penalty H).acts c).submatrix (grid S T) (grid S T) := by |
| 106 | rw [treeMatrix, fullRow_periods S hs h]; rfl |
| 107 | |
| 108 | /-- e is the common patch's actual physical location in THIS period. y is |
| 109 | any chosen anchor. Use one patch offset/name/color `names` in corresponding |
| 110 | calls for both tori. -/ |
| 111 | def Copies (S : StepData c f) (T : Forest S.ratio) (e : κ ↪ Active G T) |
| 112 | (y : Site c) (names : κ → Cover × Co S.patch.L (PAC G 1)) := |
| 113 | ∀ i, grid S T (e i)=(y+wrap c (names i).1,(names i).2) |
| 114 | |
| 115 | /-- Common max-cost on the lifted patch. -/ |
| 116 | def spread (x : Cover) := Finset.univ.sup fun i => (x i).natAbs |
| 117 | |
| 118 | def Small {L : Side} (names : κ → Cover × Co L (PAC G 1)) (R : ℕ) : Prop := |
| 119 | ∀ i j, size ((names i).1-(names j).1) ≤ R |
| 120 | |
| 121 | omit [Fintype κ] [DecidableEq κ] in |
| 122 | lemma agrees {S : StepData c f} {T : Forest S.ratio} {e : κ ↪ Active G T} {y} |
| 123 | {names} (h : Copies S T e y names) {R : ℕ} (H : Small names R) (hp : 2*R < c.val) (i j : κ) : |
| 124 | separation (theta S.ratio T (e i)) (theta S.ratio T (e j)) = spread ((names i).1-(names j).1) := by |
| 125 | rw [← grid_site, ← grid_site,h i,h j]; simp only [separation,pdist, add_sub_add_left_eq_sub, ← map_sub, |
| 126 | size_centers _ _ (H i j) hp,spread] |
| 127 | |
| 128 | omit [Fintype κ] [DecidableEq κ] in |
| 129 | lemma chargeHere {S : StepData c f} {T : Forest S.ratio} {e : κ ↪ Active G T} {y} |
| 130 | {names} (h : Copies S T e y names) {R : ℕ} (H : Small names R) (hp : 2*R < c.val) (A : Row (Co S.patch.L (PAC G 1)) (Co S.patch.L (PAC G 1))) |
| 131 | (i j : κ) : |
| 132 | (shorten R A).acts c (grid S T (e i)) (grid S T (e j)) = A (names i).2 (names j).2 ((names j).1-(names i).1) := by |
| 133 | rw [h i,h j, show y+wrap c (names j).1=y+wrap c (names i).1+wrap c ((names j).1-(names i).1) by rw [map_sub]; abel] |
| 134 | exact cut_lift A _ _ _ _ _ (H j i) hp |
| 135 | |
| 136 | lemma grid_inj (S : StepData c f) (T : Forest S.ratio) : Function.Injective (grid (G:=G) S T) := |
| 137 | (splitCo S.ratio _).injective.comp (plant_inj T) |
| 138 | |
| 139 | def shortenMatrix (G : Gauge) (S : StepData c f) (T : Forest S.ratio) (H : FaceRow) (R : ℕ) := |
| 140 | let g := grid S T |
| 141 | ((shorten R (fullRow G S.patch S.kernel.penalty H)).acts c).submatrix g g |
| 142 | |
| 143 | -- W exponential in R not in shortest image. No circular comparison of Bs. |
| 144 | lemma matrix_tail (S : StepData c f) (T : Forest S.ratio) (R : ℕ) {σ μ M : ℝ} {H : FaceRow} |
| 145 | (hm : 0 ≤ μ) (he : μ ≤ σ) (hM : 0 ≤ M) (hp : H.strip σ M) : |
| 146 | (native c).Schur (theta S.ratio T) (theta S.ratio T) μ |
| 147 | (Real.exp ((μ-σ)*R)*billing G S.patch S.kernel.penalty σ M) |
| 148 | (treeMatrix G S T H-shortenMatrix G S T H R) := by |
| 149 | have hw := fullRow_width (G:=G) S.patch S.kernel.penalty (hm.trans he) hM hp |
| 150 | let e := grid S T (G:=G) |
| 151 | have hg : Function.Injective e := grid_inj .. |
| 152 | have hy : Prod.fst ∘ e = theta S.ratio T := funext (grid_site S T) |
| 153 | have hh := (physical (strip_tail hw R he) hm c).submatrix hg hg |
| 154 | erw [Work.F08.acts_minus (hm.trans he) hw (strip_shorten hw R), Matrix.submatrix_sub, hy] at hh |
| 155 | rw [billing, mul_left_comm, tree_read (hm.trans he) hp]; exact hh |
| 156 | |
| 157 | omit [Fintype κ] [DecidableEq κ] in |
| 158 | lemma native_match {c' f' : Side} {h : f.val = c.val*P.L.val} {h' : f'.val = c'.val*P.L.val} |
| 159 | {T : Forest (data h K).ratio} {U : Forest (data h' K).ratio} (i : κ ↪ Active G T) (j : κ ↪ Active G U) |
| 160 | {names : κ → Cover × Co P.L (PAC G 1)} {y y'} (hv : Copies (data h K) T i y names) (hw : Copies (data h' K) U j y' names) |
| 161 | {R : ℕ} (hh : Small names R) (hr : 2*R < c.val) (hr' : 2*R < c'.val) : |
| 162 | (native c).pull (theta (data h K).ratio T ∘ i) = (native c').pull (theta (data h' K).ratio U ∘ j) := by |
| 163 | have he : ∀ a b, ((native c).pull (theta (data h K).ratio T ∘ i)).d a b = |
| 164 | ((native c').pull (theta (data h' K).ratio U ∘ j)).d a b := by |
| 165 | intro a b |
| 166 | change ((separation _ _):ℝ) = ((separation _ _):ℝ) |
| 167 | rw [Function.comp_apply,Function.comp_apply,Function.comp_apply,Function.comp_apply,agrees hv hh hr, |
| 168 | agrees hw hh hr'] |
| 169 | cases hx : (native c).pull (theta (data h K).ratio T ∘ i) |
| 170 | cases hy : (native c').pull (theta (data h' K).ratio U ∘ j) |
| 171 | rw [hx,hy] at he |
| 172 | congr; exact funext fun a => funext (he a) |
| 173 | |
| 174 | /-- Compare tree inverse *in place*, not replacing either by a different |
| 175 | tree or an averaged kernel. Can pay all displacements across the retained |
| 176 | patch (γ ≤ μ is not enough for exponential depth in ρ, so reserve μ>γ |
| 177 | when using that). `R` in stencil one units; hp & hq in output periods. |
| 178 | Works also when comparing with same period/different tree. -/ |
| 179 | theorem columns {c' f' : Side} {h : f.val = c.val*P.L.val} {h' : f'.val = c'.val*P.L.val} |
| 180 | (T : Forest (data h K).ratio) (U : Forest (data h' K).ratio) (i : κ ↪ Active G T) (j : κ ↪ Active G U) |
| 181 | {names : κ → Cover × Co P.L (PAC G 1)} {y y'} |
| 182 | (ht : Copies (data h K) T i y names) (ht' : Copies (data h' K) U j y' names) |
| 183 | (hx : Larger (G:=G) (data h K)) (hx' : Larger (G:=G) (data h' K)) |
| 184 | {R : ℕ} (hR : Small names R) (hp : 2*R < c.val) (hq : 2*R < c'.val) |
| 185 | {ρ u a γ μ σ M : ℝ} {H : FaceRow} (hm : 0 ≤ M) (hu : 0 ≤ u) (hs : 0 < σ) |
| 186 | (hH : H.strip σ M) (ha : 0 < a) (hc : Gap (H.acts f) a) (hd : Gap (H.acts f') a) |
| 187 | (he : 0 ≤ γ) (hh : γ ≤ μ) (hk : μ < expansion G P K σ M a) |
| 188 | (k l : κ) |
| 189 | (hl : ∀ z : Active G T, z ∉ Set.range i → |
| 190 | ρ ≤ (native c).d (theta _ T (i k)) (theta _ T z)) |
| 191 | (hl' : ∀ z : Active G U, z ∉ Set.range j → |
| 192 | ρ ≤ (native c').d (theta _ U (j k)) (theta _ U z)) : |
| 193 | let V := torusPay (Co P.L (PAC G 1)) (expansion G P K σ M a-μ) |
| 194 | let r := treeFare G P K a |
| 195 | let B := billing G P K.penalty σ M |
| 196 | let D := Real.exp ((γ-σ)*R)*B |
| 197 | let C := V*(r/2+u)⁻¹ |
| 198 | (native c).weight γ (theta _ T (i k)) (theta _ T (i l)) * |
| 199 | |treeInverse G (data h K) T H u (i l) (i k)-treeInverse G (data h' K) U H u (j l) (j k)| ≤ |
| 200 | windowPrice B V r u μ γ ρ + C*(D+D)*C + windowPrice B V r u μ γ ρ := by |
| 201 | let S := data h K |
| 202 | let S' := data h' K |
| 203 | have hy := native_match i j ht ht' hR hp hq |
| 204 | intro V r B D C |
| 205 | have hB : 0 ≤ B := billing_nn G P K.penalty σ M hm |
| 206 | have hr : 0 < r := treeFare_pos _ _ _ ha |
| 207 | have hv : 0 ≤ D := mul_nonneg (Real.exp_pos _).le hB |
| 208 | have hσ : μ ≤ σ := le_trans hk.le (rate_lt hs).le |
| 209 | apply shared_price i j k l (native c) (native c') (theta _ T) (theta _ U) hl hl' hy |
| 210 | (treeSchur _ _ hs.le hm hH) (treeSchur _ _ hs.le hm hH) (tree_gap _ _ _ hx ha hc) |
| 211 | (tree_gap _ _ _ hx' ha hd) (treeVolume (data h K) T (sub_pos.mpr hk)) |
| 212 | (treeVolume (data h' K) U (sub_pos.mpr hk)) _ hu hr hs hB he hh hσ |
| 213 | (torusPay_nn _ _ (sub_pos.mpr hk)) (add_nonneg hv hv) |
| 214 | let A := treeMatrix G S T H |
| 215 | let A' := treeMatrix G S' U H |
| 216 | let F := shortenMatrix G S T H R |
| 217 | let F' := shortenMatrix G S' U H R |
| 218 | have hF : F.submatrix i i = F'.submatrix j j := by |
| 219 | ext v w |
| 220 | exact (chargeHere ht hR hp (fullRow G P K.penalty H) v w).trans (chargeHere ht' hR hq _ v w).symm |
| 221 | rw [show A.submatrix i i-A'.submatrix j j = (A-F).submatrix i i - (A'-F').submatrix j j by simp only [submatrix_sub,Pi.sub_apply,hF]; abel] |
| 222 | have h1 := (matrix_tail (G:=G) S T R he (hh.trans hσ) hm hH).submatrix i.injective i.injective |
| 223 | have h2 := (matrix_tail (G:=G) S' U R he (hh.trans hσ) hm hH).submatrix j.injective j.injective |
| 224 | exact h1.sub (rows_here hy.symm _ h2) |
| 225 | end Lifted |
| 226 | end YM.FreeResolvent |