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.PRICE_COMPILER.Post |
| 2 | |
| 3 | /-! |
| 4 | # Actual row cost from the pre-L kernel quote, for one path convention |
| 5 | |
| 6 | For use by path construction. This supplies one small |
| 7 | piece of `PathInputs`: assuming a priced Fourier kernel (`Floor` etc on one |
| 8 | Bed, such as priced by the Pin interface), can make canonical path rows, |
| 9 | with *actual counts*, ending at the needed site on the cover and paying the |
| 10 | true length mass. At the symbolic cost and widths here there is no need to |
| 11 | assume this additional price inequality from L-dependent path choices. Matches |
| 12 | the B70 `Attached` hashes. For this convention `Adjoint` is always actual |
| 13 | matrix adjoint via the evaluator; if using these lemmas with towers etc |
| 14 | must use these SAME paths (or supply a justified different calculation). |
| 15 | |
| 16 | It doesn't give the loop/cubic/quartic pieces, nor produce the underlying |
| 17 | Fourier data. Not claiming suitability of these paths for all stationary |
| 18 | or RG constructions. |
| 19 | -/ |
| 20 | |
| 21 | set_option autoImplicit false |
| 22 | noncomputable section |
| 23 | namespace YM.Push.PriceCompiler.Canonical |
| 24 | open Filter Function Lattice RG Precision Laurent Exterior Matrix Bloch |
| 25 | open scoped Topology Matrix.Norms.Frobenius BigOperators |
| 26 | |
| 27 | variable {G : Gauge} |
| 28 | |
| 29 | /-- One canonical choice of shortest coordinate walk; retain as a real |
| 30 | kernel address. -/ |
| 31 | def slot (b : PlaqAxes) (x : Cover) : Slot := ⟨route 0 x 1,b⟩ |
| 32 | lemma endSlot (b : PlaqAxes) (x : Cover) : (slot b x).offset = x := route_end .. |
| 33 | lemma sizeSlot (b : PlaqAxes) (x : Cover) : (slot b x).length = size x + 4 := by |
| 34 | have ha : allAxes 1 = [0,1,2,3] := by decide |
| 35 | simp [Slot.length,slot,route, axisRoute,ha,size,Fin.sum_univ_succ,straight,Axis] |
| 36 | |
| 37 | def enumPath : ℕ ≃ PlaqAxes × Cover := by |
| 38 | classical |
| 39 | have : Nonempty PlaqAxes := ⟨⟨(0,1),by decide⟩⟩ |
| 40 | letI : Denumerable (PlaqAxes × Cover) := Classical.choice (nonempty_denumerable (PlaqAxes × Cover)) |
| 41 | exact (Denumerable.eqv _).symm |
| 42 | |
| 43 | /-- No wrap/residue truncation. -/ |
| 44 | def row (H : Bed) (b : PlaqAxes) (i : ℕ) : ℝ × Slot := |
| 45 | let v := enumPath i |
| 46 | (H.roots (plaquette b) (plaquette v.1) v.2,slot v.1 v.2) |
| 47 | |
| 48 | /-- Layout holds independent of summability. -/ |
| 49 | lemma attached {H : Bed} (W : PathData G) (h : W.row=row H) : Attached H W := by |
| 50 | classical |
| 51 | constructor |
| 52 | intro b p x |
| 53 | rw [h] |
| 54 | let a := enumPath.symm (p,x) |
| 55 | have hw (i : ℕ) : (row H b i).2.plaq = p ∧ (row H b i).2.offset=x ↔ i=a := by |
| 56 | change (enumPath i).1=p ∧ _ ↔ _ |
| 57 | rw [show (row H b i).2 = _ from (show (row H b i).2=slot _ _ from rfl),endSlot] |
| 58 | suffices hb : enumPath i = (p,x) ↔ i=a by simpa only [Prod.ext_iff] using hb |
| 59 | exact ⟨fun h => enumPath.injective (h.trans (enumPath.apply_symm_apply ..).symm), |
| 60 | fun h => by rw [h]; exact enumPath.apply_symm_apply _⟩ |
| 61 | simp_rw [hw] |
| 62 | have he : H.roots (plaquette b) (plaquette p) x = (if a=a then (row H b a).1 else 0) := by simp [row,a] |
| 63 | rw [he]; exact hasSum_single a (fun i hi => by simp [hi]) |
| 64 | |
| 65 | /-- Price for all columns for a *fixed row*, not requiring counting |
| 66 | period-specific numbers of torus sites. -/ |
| 67 | def fee (s C : ℝ) := (Fintype.card PlaqAxes : ℝ) * (Real.exp (s*4)*C) |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | lemma cost {a A : ℝ} (H : Bed) (h : H.roots.strip a A) (b : PlaqAxes) : |
| 73 | SumBudget (fun i : ℕ => |(row H b i).1| * Real.exp (a * (row H b i).2.length)) (fee a A) := by |
| 74 | classical |
| 75 | let f (y : PlaqAxes × Cover) : ℝ := |H.roots (plaquette b) (plaquette y.1) y.2| * |
| 76 | Real.exp (a * (slot y.1 y.2).length) |
| 77 | let c := Real.exp (a*4) |
| 78 | have hh (p : PlaqAxes) : SumBudget (fun x : Cover => f (p,x)) (c*A) := by |
| 79 | let G x := Real.exp (a*size (α:=Axis) x)*‖H.roots (plaquette b) (plaquette p) x‖ |
| 80 | have hg : SumBudget G A := h (plaquette b) (plaquette p) |
| 81 | rw [show (fun x : Cover => f (p,x)) = (fun x => c*G x) by |
| 82 | funext x; unfold f G c; rw [sizeSlot]; push_cast; rw [mul_add,Real.exp_add,Real.norm_eq_abs]; ring] |
| 83 | exact ⟨fun i => mul_nonneg (Real.exp_pos _).le (hg.1 i),hg.2.1.mul_left c,(Eq.trans_le tsum_mul_left |
| 84 | (mul_le_mul_of_nonneg_left hg.2.2 (Real.exp_pos _).le))⟩ |
| 85 | have hz : 0 ≤ f := fun p => (hh p.fst).1 _ |
| 86 | have hu := (summable_prod_of_nonneg hz).mpr ⟨fun p => (hh p).2.1,Summable.of_finite⟩ |
| 87 | change SumBudget (f ∘ enumPath) _ |
| 88 | refine ⟨fun _ => hz _, enumPath.summable_iff.mpr hu,?_⟩ |
| 89 | calc |
| 90 | _ = ∑' i, f i := enumPath.tsum_eq f |
| 91 | _ = ∑' i, ∑' x, f (i,x) := hu.tsum_prod |
| 92 | _ ≤ ∑ _i : PlaqAxes, c*A := by rw [tsum_fintype]; exact Finset.sum_le_sum fun p _ => (hh p).2.2 |
| 93 | _ = fee a A := by simp [fee,c] |
| 94 | |
| 95 | /-- The scalar zero mode read and smallest-torus action agree exactly, |
| 96 | no mode-count normalization. This statement doesn't need convergence of |
| 97 | separate fibers; using these sums with arithmetic will still require the |
| 98 | absolute budget. -/ |
| 99 | private lemma harmonic {α β : Type*} (R : Row α β) (i : α) (j : β) : |
| 100 | R.read 0 i j = (R.acts 1 (0,i) (0,j):ℝ) := by |
| 101 | change (∑' a, mode 0 a • ((R i j a:ℝ):ℂ)) = ((∑' x, if (0 : Site 1) = 0 + wrap 1 x then R i j x else 0 : ℝ):ℂ) |
| 102 | letI : Subsingleton (Site 1) := inferInstanceAs (Subsingleton (Axis → ZMod 1)) |
| 103 | have he (x : Cover) : (0 : Site 1) = 0 + wrap 1 x := Subsingleton.elim .. |
| 104 | simp only [mode_constant,one_smul] |
| 105 | rw [Complex.ofReal_tsum] |
| 106 | exact tsum_congr (fun x => by rw [if_pos (he x)]) |
| 107 | |
| 108 | /-- `symbol0` at one plaque pair from the canonical row; all wraps |
| 109 | come in the sum. Need `h` credit. -/ |
| 110 | lemma symbol {a A : ℝ} {H : Bed} (h : H.roots.strip a A) (ha : 0 ≤ a) |
| 111 | (b p : PlaqAxes) {W : PathData G} (hw : W.row=row H) : |
| 112 | W.symbol0 b p = H.roots.acts 1 ((0 : Site 1),plaquette b) ((0 : Site 1),plaquette p) := by |
| 113 | classical |
| 114 | let f (y : PlaqAxes × Cover) := if y.1=p then H.roots (plaquette b) (plaquette p) y.2 else 0 |
| 115 | have he : Summable (H.roots (plaquette b) (plaquette p)) := ((h (plaquette b) (plaquette p)).summable ha) |
| 116 | have hb : Summable f := by |
| 117 | apply Summable.of_norm |
| 118 | apply (summable_prod_of_nonneg (fun x => norm_nonneg (f x))).mpr |
| 119 | constructor |
| 120 | · intro i; by_cases ht : i=p |
| 121 | · simpa [f,ht] using (he.norm) |
| 122 | simp [f,ht] |
| 123 | exact Summable.of_finite |
| 124 | unfold PathData.symbol0 |
| 125 | rw [hw] |
| 126 | have hg : (fun i => if (row H b i).2.plaq = p then (row H b i).1 else 0) = f ∘ enumPath := by |
| 127 | funext i; by_cases he : (enumPath i).1=p <;> simp [row,f,Function.comp,he,slot] |
| 128 | rw [hg,show ∑' i, (f ∘ enumPath) i = ∑' j, f j from enumPath.tsum_eq _, hb.tsum_prod,tsum_fintype] |
| 129 | rw [Finset.sum_eq_single p] |
| 130 | · simp only [f,if_true] |
| 131 | change _ = ∑' _, _ |
| 132 | letI : Subsingleton (Site 1) := inferInstanceAs (Subsingleton (Axis → ZMod 1)) |
| 133 | apply tsum_congr; intro i; rw [if_pos (Subsingleton.elim ..)] |
| 134 | · intro i _ hi; simp [f,hi] |
| 135 | simp |
| 136 | |
| 137 | /-- Use the harmonic part of Floor. No wrongly treating the smallest torus as |
| 138 | having no constrained modes. The *promises* from Rack/Horizon require Floor |
| 139 | for EVERY n. -/ |
| 140 | lemma weights {a A v : ℝ} {H : Bed} (h : H.roots.strip a A) (ha : 0 ≤ a) {p : Clip} |
| 141 | (hp : Floor H p 1 v A) {W : PathData G} (hw : W.row=row H) : W.metric_zero p := by |
| 142 | classical |
| 143 | let f := H.full p 1 |
| 144 | have he (i j : TypeFace 2) : H.metric.acts 1 ((0 : Site 1),i) ((0 : Site 1),j) = if i=j then 1 else 0 := by |
| 145 | have h' := harmonic H.metric i j |
| 146 | rw [hp.starts] at h'; by_cases hh : i=j <;> simp [hh, Matrix.one_apply] at h' ⊢ <;> exact_mod_cast h'.symm |
| 147 | intro i j |
| 148 | simp_rw [symbol h ha _ _ hw] |
| 149 | let x := plaquette i; let y := plaquette j |
| 150 | have hx : x=y ↔ i=j := Exterior.plaq_iff i j |
| 151 | have hh := congr_fun (congr_fun hp.roots ((0 : Site 1),x)) ((0 : Site 1),y) |
| 152 | rw [he x y, Matrix.mul_apply, Fintype.sum_prod_type] at hh |
| 153 | -- one physical site |
| 154 | letI : Unique (Site 1) := inferInstanceAs (Unique (Axis → ZMod 1)) |
| 155 | have hu : (default : Site 1) = 0 := Subsingleton.elim .. |
| 156 | rw [Fintype.sum_unique,hu] at hh |
| 157 | rw [Fintype.sum_sum_type] at hh |
| 158 | dsimp [Matrix.transpose,Bed.full] at hh |
| 159 | -- known quadratic direct block |
| 160 | let g (r z : TypeFace 2) := Real.sqrt p.direct * (1: Matrix (Co (1:Side) (TypeFace 2)) (Co (1:Side) (TypeFace 2)) ℝ) (0,r) (0,z) |
| 161 | let Gg (r z : TypeFace 2) := H.roots.acts 1 (0,r) (0,z) |
| 162 | change (∑ z : TypeFace 2, g z x * g z y) + ∑ z : TypeFace 2, Gg z x * Gg z y = _ at hh |
| 163 | have ht : ∑ z : TypeFace 2, g z x * g z y = if i=j then p.direct else 0 := by |
| 164 | rw [Finset.sum_eq_single x] |
| 165 | · by_cases hm : i=j |
| 166 | · have hk : x=y := hx.mpr hm |
| 167 | simp [g,hk,hm,Matrix.one_apply, Real.mul_self_sqrt p.quadratic_pos.le] |
| 168 | have hk : ¬x=y := fun h => hm (hx.mp h) |
| 169 | simp [g,hk,hm,Matrix.one_apply] |
| 170 | · intro b _ hb |
| 171 | simp [g, Matrix.one_apply,hb] |
| 172 | simp |
| 173 | have hf (m : TypeFace 2 → ℝ) : (∑ z, m z) = ∑ w : PlaqAxes, m (plaquette w) := |
| 174 | (Equiv.sum_comp plaqEquiv m).symm |
| 175 | rw [ht, hf] at hh |
| 176 | simpa only [hx] using hh |
| 177 | /-- Arrange the corresponding pre-L quotes without using a particular |
| 178 | `Rolls`. -/ |
| 179 | structure Quotes (K : MapPrices) (w : Openings) (u : Amounts) : Prop where |
| 180 | fit : w.wish ≤ K.α |
| 181 | top i : fee (K.α i) (K.Ω i) ≤ u.born i |
| 182 | send i j : StepStages j i → fee (K.α i) (K.Ω i) ≤ u.sends j i |
| 183 | |
| 184 | /-- Before choosing the amounts, fix width upper requests to include |
| 185 | these. Kernel quotation itself must still be priced **before** this use. -/ |
| 186 | def orderWidth (K : MapPrices) (w : Openings) : Openings := |
| 187 | { w with wish := fun i => min (w.wish i) (K.α i), wp := fun i => lt_min (w.wp i) (K.alpha_pos i) } |
| 188 | |
| 189 | lemma orderWidth_le (K : MapPrices) (w : Openings) : (orderWidth K w).wish ≤ w.wish := |
| 190 | fun _ => min_le_left .. |
| 191 | |
| 192 | /-- Given raw input amounts including the estimates *at the installed |
| 193 | widths*, **before** committing caps, ensure canonical row cost also paid. -/ |
| 194 | def orderRows (K : MapPrices) (u : Amounts) : Amounts := |
| 195 | let f (i : ℕ) := fee (K.α i) (K.Ω i) |
| 196 | { u with born := fun i => max (u.born i) (f i) |
| 197 | sends := fun j i => max (u.sends j i) (f i) |
| 198 | born_pos := fun i => (u.born_pos i).trans_le (le_max_left ..) |
| 199 | sends_pos := fun j i => (u.sends_pos j i).trans_le (le_max_left ..) } |
| 200 | lemma orderRows_quotes (K : MapPrices) (w : Openings) (u : Amounts) : |
| 201 | u.born ≤ (orderRows K u).born ∧ u.sends ≤ (orderRows K u).sends ∧ |
| 202 | Quotes K (orderWidth K w) (orderRows K u) := |
| 203 | ⟨fun _ => le_max_left .., fun _ _ => le_max_left .., fun _ => min_le_right .., |
| 204 | fun _ => le_max_right ..,fun _ _ _ => le_max_right ..⟩ |
| 205 | |
| 206 | open RG.Supply |
| 207 | |
| 208 | |
| 209 | |
| 210 | /-- When trying to choose Clip/Stage numbers that actually cross the |
| 211 | canonical port, note that Clip alone only asks `0 < direct`. Taking any |
| 212 | old Clip later may be impossible. -/ |
| 213 | lemma direct_le_one {W : PathData G} {p : Clip} (h : W.metric_zero p) : p.direct ≤ 1 := by |
| 214 | let a : PlaqAxes := ⟨(0,1),by decide⟩ |
| 215 | have he := h a a |
| 216 | simp only [if_true] at he |
| 217 | have hp : 0 ≤ ∑ i : PlaqAxes, W.symbol0 i a * W.symbol0 i a := Finset.sum_nonneg fun _ _ => mul_self_nonneg _ |
| 218 | linarith |
| 219 | end YM.Push.PriceCompiler.Canonical |